|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5382],{89489:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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:"outlined"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},59477:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},40001:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},26227:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},49198:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},41464:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},73331:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},15277:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},52671:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},8657:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},56082:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},33853:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},15075:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},43531:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},61485:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},38819:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},47472:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(Se,Oe){return Pt.createElement(De.Z,(0,tt.Z)({},Se,{ref:Oe,icon:Ge}))},ce=Pt.forwardRef(me),we=ce},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(Rn,wn){"use strict";wn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function Rn(fe,z,ee,ae){ee===void 0&&(ee=0),ae===void 0&&(ae=1/0),this._name=fe,this._defaultValue=z,this._minimum=ee,this._maximum=ae}Object.defineProperty(Rn.prototype,"name",{get:function(){return this._name},set:function(fe){if(typeof fe!="string"||fe==="")throw new Error("Shape name must be a valid string.");this._name=fe}}),Object.defineProperty(Rn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("The default value must be a real number, not: "+fe);this._defaultValue=fe}}),Object.defineProperty(Rn.prototype,"minimum",{get:function(){return this._minimum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Minimum must be a real number, not: "+fe);this._minimum=fe}}),Object.defineProperty(Rn.prototype,"maximum",{get:function(){return this._maximum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Maximum must be a real number, not: "+fe);this._maximum=fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(fe,z){var ee=go.Shape._FigureParameters[fe];return ee?ee[z]:null},go.Shape.setFigureParameter=function(fe,z,ee){if(!(ee instanceof Rn))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[fe];ae||(ae=[],go.Shape._FigureParameters[fe]=ae),ae[z]=ee};var wn=[];function $e(fe,z){var ee=wn.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function tt(){var fe=wn.pop();return fe===void 0?new go.Point:fe}function Pt(fe){wn.push(fe)}function oe(fe,z,ee,ae,re,le,ue,pe,be){be||(be=new go.Point);var Ce=fe-ee,Fe=re-ue,je=NaN,ke=NaN;if(Ce===0)if(Fe===0)fe===ee&&(je=fe,ke=z);else{var Ae=(le-pe)/Fe,Be=le-Ae*re;je=fe,ke=Ae*je+Be}else if(Fe===0){var _e=(z-ae)/Ce,et=z-_e*fe;je=re,ke=_e*je+et}else{var _e=(z-ae)/Ce,Ae=(le-pe)/Fe,et=z-_e*fe,Be=le-Ae*re;je=(Be-et)/(_e-Ae),ke=_e*je+et}return be.x=je,be.y=ke,be}function Ge(fe,z,ee,ae,re,le,ue,pe,be,Ce,Fe,je,ke,Ae){var Be=1-be,_e=be,et=fe*Be+ee*_e,ze=z*Be+ae*_e,Xe=ee*Be+re*_e,Qe=ae*Be+le*_e,lt=re*Be+ue*_e,ct=le*Be+pe*_e,vt=et*Be+Xe*_e,nt=ze*Be+Qe*_e,it=Xe*Be+lt*_e,pt=Qe*Be+ct*_e,xt=vt*Be+it*_e,yt=nt*Be+pt*_e;Ce.x=et,Ce.y=ze,Fe.x=vt,Fe.y=nt,je.x=xt,je.y=yt,ke.x=it,ke.y=pt,Ae.x=lt,Ae.y=ct}var De=new go.Spot(.156,.156),me=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Rn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=5),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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=De,re.spot2=me,re.defaultStretch=go.GraphObject.Uniform,re}),go.Shape.defineFigureGenerator("Line1",function(fe,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(fe,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(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,ce*z,0,z,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,ce*ee,(1-ce)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,ce*ee,ce*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-ce)*z,0,0,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(fe,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(fe,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(fe,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(fe,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 Rn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(fe,z,ee){var ae=fe?fe.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 Rn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(fe,z,ee){var ae=fe?fe.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 Rn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(fe,z,ee){var ae=fe?fe.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 Rn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(fe,z,ee){var ae=fe?fe.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 Rn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(fe,z,ee){var ae=fe?fe.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 we=[];function Le(){var fe=we.pop();return fe===void 0?[]:fe}function Se(fe){fe.length=0,we.push(fe)}function Oe(fe){for(var z=Le(),ee=.5,ae=.5,re=Math.PI*1.5,le=0,ue=0;ue<fe;ue++)le=2*Math.PI/fe*ue+re,z[ue]=new go.Point(ae+ee*Math.cos(le),ae+ee*Math.sin(le));return z.push(z[0]),z}function ve(fe){var z=xe(fe),ee=Le();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 Se(z),ee}function xe(fe){for(var z=Oe(fe),ee=Le(),ae=Math.floor(z.length/2),re=z.length-1,le=fe%2===0?2:1,ue=0;ue<re;ue++){var pe=z[ue],be=z[ue+1],Ce=z[(ae+ue-1)%re],Fe=z[(ae+ue+le)%re];ee[ue*2]=pe,ee[ue*2+1]=oe(pe.x,pe.y,Ce.x,Ce.y,be.x,be.y,Fe.x,Fe.y,new go.Point)}return ee[ee.length]=ee[0],Se(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(fe,z,ee){var ae=Oe(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()),Se(ae),re.spot1=new go.Spot(.2,.22),re.spot2=new go.Spot(.8,.9),re}),go.Shape.defineFigureGenerator("Hexagon",function(fe,z,ee){var ae=Oe(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()),Se(ae),re.spot1=new go.Spot(.07,.25),re.spot2=new go.Spot(.93,.75),re}),go.Shape.defineFigureGenerator("Heptagon",function(fe,z,ee){var ae=Oe(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()),Se(ae),re.spot1=new go.Spot(.2,.15),re.spot2=new go.Spot(.8,.85),re}),go.Shape.defineFigureGenerator("Octagon",function(fe,z,ee){var ae=Oe(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()),Se(ae),re.spot1=new go.Spot(.15,.15),re.spot2=new go.Spot(.85,.85),re}),go.Shape.defineFigureGenerator("Nonagon",function(fe,z,ee){var ae=Oe(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()),Se(ae),re.spot1=new go.Spot(.17,.13),re.spot2=new go.Spot(.82,.82),re}),go.Shape.defineFigureGenerator("Decagon",function(fe,z,ee){var ae=Oe(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()),Se(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("Dodecagon",function(fe,z,ee){var ae=Oe(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()),Se(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("FivePointedStar",function(fe,z,ee){var ae=xe(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()),Se(ae),re.spot1=new go.Spot(.266,.333),re.spot2=new go.Spot(.733,.733),re}),go.Shape.defineFigureGenerator("SixPointedStar",function(fe,z,ee){var ae=xe(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()),Se(ae),re.spot1=new go.Spot(.17,.25),re.spot2=new go.Spot(.83,.75),re}),go.Shape.defineFigureGenerator("SevenPointedStar",function(fe,z,ee){var ae=xe(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()),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("EightPointedStar",function(fe,z,ee){var ae=xe(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()),Se(ae),re.spot1=new go.Spot(.25,.25),re.spot2=new go.Spot(.75,.75),re}),go.Shape.defineFigureGenerator("NinePointedStar",function(fe,z,ee){var ae=xe(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()),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("TenPointedStar",function(fe,z,ee){var ae=xe(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()),Se(ae),re.spot1=new go.Spot(.281,.261),re.spot2=new go.Spot(.723,.748),re}),go.Shape.defineFigureGenerator("FivePointedBurst",function(fe,z,ee){var ae=ve(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(),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("SixPointedBurst",function(fe,z,ee){var ae=ve(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(),Se(ae),re.spot1=new go.Spot(.17,.222),re.spot2=new go.Spot(.833,.777),re}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(fe,z,ee){var ae=ve(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(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("EightPointedBurst",function(fe,z,ee){var ae=ve(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(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("NinePointedBurst",function(fe,z,ee){var ae=ve(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(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("TenPointedBurst",function(fe,z,ee){var ae=ve(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(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.setFigureParameter("FramedRectangle",0,new Rn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Rn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(fe,z,ee){var ae=fe?fe.parameter1:NaN,re=fe?fe.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 Rn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(fe,z,ee){var ae=fe?fe.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=De,le.spot2=me,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(fe,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(fe,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 Rn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Rn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(fe,z,ee){var ae=fe?fe.parameter1:NaN,re=fe?fe.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(fe,z,ee){var ae=ce/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 Rn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(fe,z,ee){var ae=fe?fe.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 Rn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(fe,z,ee){var ae=fe?fe.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 Rn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(fe,z,ee){var ae=fe?fe.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),be=ae-Math.min(Math.cos(pe)*ae/2,le),Ce=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Fe=new go.PathFigure(be,0,!0);return re.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-be,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-be,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,be,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new Rn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(fe,z,ee){var ae=fe?fe.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 Rn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(fe,z,ee){var ae=fe?fe.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 Rn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(fe,z,ee){var ae=fe?fe.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(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,ce*z,0,z,(.5-ce/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+ce/2)*ee,ce*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(fe,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(fe,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(fe,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(fe,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,be=le*ce;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+be+pe)*ee,(.5-be+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+be+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+be+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-be+pe)*ee,(.5+be+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-be+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-be+pe-.02)*ee)),le=.2,ue=0,pe=-.3,be=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+be+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+be+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-be+pe)*ee,(.5+be+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-be+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-be+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-be+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+be+pe)*ee,(.5-be+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,be=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-be+pe-.02)*ee,(.5+be+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-be+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-be+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+be+pe)*ee,(.5-be+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+be+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+be+pe)*ee).close()),ae.setSpots(.06,.33,.93,.68),ae}),go.Shape.defineFigureGenerator("YinYang",function(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,be=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.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=ce*.4;var Ce=tt(),Fe=tt(),je=tt(),ke=tt();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,Ce,Fe,je,ke,ke);var Ae=tt(),Be=tt(),_e=tt();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,ke,ke,_e,Ae,Be);var et=tt(),ze=tt(),Xe=tt();Ge(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,et,ze,Xe,ke,ke);var Qe=tt(),lt=tt(),ct=tt();return Ge(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,ke,ke,ct,Qe,lt),be.add(new go.PathSegment(go.PathSegment.Move,ct.x*z,ct.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Qe.x*z,Qe.y*ee,lt.x*z,lt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,je.x*z,je.y*ee,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,ct.x*z,ct.y*ee).close()),be.add(new go.PathSegment(go.PathSegment.Move,Xe.x*z,Xe.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,_e.x*z,_e.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ae.x*z,Ae.y*ee,Be.x*z,Be.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,Xe.x*z,Xe.y*ee,et.x*z,et.y*ee,ze.x*z,ze.y*ee).close()),Pt(Ce),Pt(Fe),Pt(je),Pt(ke),Pt(Ae),Pt(Be),Pt(_e),Pt(et),Pt(ze),Pt(Xe),Pt(Qe),Pt(lt),Pt(ct),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Fragile",function(fe,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 Rn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(fe,z,ee){var ae=fe?fe.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,be=tt(),Ce=tt(),Fe=tt(),je=tt(),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)),Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Fe,je,Ce,be,be),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,je.x*z,je.y*ee));var Ae=$e(Ce.x,Ce.y);Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,be,be,Ce,Fe,je);var Be=$e(Ce.x,Ce.y);ke.add(new go.PathSegment(go.PathSegment.Line,(Ae.x*.1+.95*.9)*z,Ae.y*.1*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,.85*z,Ae.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,(Be.x*.1+.9)*z,.15*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,(Be.y*.1+.05*.9)*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,Be.x*z,Be.y*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,je.x*z,je.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=ce*.35;var _e=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(_e),_e.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.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.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.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 et=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(et),Pt(be),Pt(Ce),Pt(Fe),Pt(je),Pt(Ae),Pt(Be),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(fe,z,ee){var ae=new go.Geometry,re=.375,le=0,ue=-.125,pe=re*ce,be=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(be),be.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)),be.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)),be.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)),be.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)),be.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*ce;var be=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(be),be.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)),be.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)),be.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)),be.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 be=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(be),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(fe,z,ee){var ae=fe?fe.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(fe,z,ee){var ae=fe?fe.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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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 Rn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Rn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=.3);var le=(1-ae)*z,ue=(.5-re/2)*ee,pe=(.5+re/2)*ee,be=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);be.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()),be.spot1=new go.Spot(0,ue/ee);var Fe=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,tt());return be.spot2=new go.Spot(Fe.x,Fe.y),Pt(Fe),be}),go.Shape.setFigureParameter("Arrow2",0,new Rn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Rn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=30),ae>z&&(ae=z);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=30),re=Math.min(re,ee/2);var le=z-ae,ue=(ee-re)/2,pe=ue+re,be=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);be.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()),be.spot1=new go.Spot(0,ue/ee);var Fe=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,tt());return be.spot2=new go.Spot(Fe.x,Fe.y),Pt(Fe),be}),go.Shape.defineFigureGenerator("Chevron",function(fe,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(fe,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 Rn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(fe,z,ee){var ae=fe?fe.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 be=oe(0,.5,.3,0,0,re/ee,.1,re/ee,tt());return ue.spot1=new go.Spot(be.x,be.y),be=oe(.7,1,1,.5,0,le/ee,1,le/ee,be),ue.spot2=new go.Spot(be.x,be.y),Pt(be),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Rn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Rn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,be=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,be=ee):(le=0,ue=ee,pe=0,be=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var je=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,tt());return Ce.spot1=new go.Spot(je.x,je.y),je=oe(.7,be/ee,1,.5,0,ue/ee,1,ue/ee,je),Ce.spot2=new go.Spot(je.x,je.y),Pt(je),Ce}),go.Shape.setFigureParameter("IBeamArrow",0,new Rn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(fe,z,ee){var ae=fe?fe.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 be=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(be.x,be.y),Pt(be),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new Rn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Rn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,be=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,be=ee):(le=0,ue=ee,pe=0,be=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,be)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Ce.spot1=new go.Spot(0,le/ee);var je=oe(.7,be/ee,1,.5,0,ue/ee,1,ue/ee,tt());return Ce.spot2=new go.Spot(je.x,je.y),Pt(je),Ce}),go.Shape.setFigureParameter("Pointer",0,new Rn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(fe,z,ee){var ae=fe?fe.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,tt());return re.spot2=new go.Spot(ue.x,ue.y),Pt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new Rn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(fe,z,ee){var ae=fe?fe.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,tt());return re.spot2=new go.Spot(ue.x,ue.y),Pt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new Rn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(fe,z,ee){var ae=fe?fe.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 be=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(be.x,be.y),Pt(be),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Rn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(fe,z,ee){var ae=fe?fe.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 be=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(be.x,be.y),Pt(be),ue}),go.Shape.setFigureParameter("SquareArrow",0,new Rn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(fe,z,ee){var ae=fe?fe.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(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.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(fe,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(fe,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(fe,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(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,1*z,ae,(.5+le)*z,0,1*z,ce*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-ce*ae,(.5+le)*z,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,1*ee,0,ee-ce*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-ce*ae,(.5+le)*z,2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ae,(.5-le)*z,2*ae,0,2*ae-ce*ae)),re.spot1=new go.Spot(0,0,0,2*ae),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.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,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,(.5+le)*z,0,z,ce*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-ce*ae,(.5+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,ee,0,ee-ce*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-ce*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-ce*ae)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,0,-2*ae),re}),go.Shape.defineFigureGenerator("Cylinder3",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.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-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*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+ce*ae,0,2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,ee,2*ae,(.5+le)*ee,ae+ce*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(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(z-ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*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-ce*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-ce*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(fe,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(fe,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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=.2,le=.1,ue=ce*re,pe=ce*le,be=.5,Ce=.1,Fe=new go.PathFigure(be*z,(Ce+le)*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(be-re)*z,Ce*ee,(be-ue)*z,(Ce+le)*ee,(be-re)*z,(Ce+pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-le)*ee,(be-re)*z,(Ce-pe)*ee,(be-ue)*z,(Ce-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(be+re)*z,Ce*ee,(be+ue)*z,(Ce-le)*ee,(be+re)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+le)*ee,(be+re)*z,(Ce+pe)*ee,(be+ue)*z,(Ce+le)*ee));var je=.05,ke=ce*je;be=.05,Ce=.25;var Ae=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),be=.95,Ce=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be+je)*z,Ce*ee,(be+ke)*z,(Ce-je)*ee,(be+je)*z,(Ce-ke)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),je=.025,ke=ce*je,be=.825,Ce=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-je)*ee,(be+je)*z,(Ce-ke)*ee,(be+ke)*z,(Ce-je)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-je)*z,Ce*ee,(be-ke)*z,(Ce-je)*ee,(be-je)*z,(Ce-ke)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),je=.05,ke=ce*je,be=.5,Ce=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-je)*ee,(be+je)*z,(Ce-ke)*ee,(be+ke)*z,(Ce-je)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-je)*z,Ce*ee,(be-ke)*z,(Ce-je)*ee,(be-je)*z,(Ce-ke)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),je=.025,ke=ce*je,be=.175,Ce=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-je)*ee,(be+je)*z,(Ce-ke)*ee,(be+ke)*z,(Ce-je)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-je)*z,Ce*ee,(be-ke)*z,(Ce-je)*ee,(be-je)*z,(Ce-ke)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),je=.05,ke=ce*je,be=.05,Ce=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-je)*ee,(be-je)*z,(Ce-ke)*ee,(be-ke)*z,(Ce-je)*ee)),Ae.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 Rn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(fe,z,ee){var ae=fe?fe.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)?re=.2:re<.15&&(re=.15);var le=ce*.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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.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(fe,z,ee){var ae=new go.Geometry,re=1/Math.SQRT2,le=(1-1/Math.SQRT2)/2,ue=ce*.5,pe=.5,be=new go.PathFigure(z,pe*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),be.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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=fe?fe.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(fe,z,ee){var ae=new go.Geometry,re=ce*.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.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 be=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),ae}),go.Shape.defineFigureGenerator("Ground",function(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.9,pe=.5,be=new go.PathFigure(.8*z,.5*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.8*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(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.4,ue=ce*.1,pe=.1,be=.9,Ce=.5,Fe=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var je=new go.PathFigure((be+pe)*z,Ce*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z,Ce*ee,(be-ue)*z,(Ce+pe)*ee,(be-pe)*z,(Ce+ue)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z,Ce*ee,(be+ue)*z,(Ce-pe)*ee,(be+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(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,be=new go.PathFigure(.8*z,.5*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),be.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=ce*.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(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,be=new go.PathFigure(0,0,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),be.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(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,be=new go.PathFigure(.1*z,0,!1);ae.add(be),be.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=ce*.1,ue=.9,pe=.5;var Fe=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Fe.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(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,be=new go.PathFigure(.1*z,0,!1);ae.add(be),be.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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.1,pe=.5,be=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,be.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(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,be=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),be.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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=z,le=ee;z=z*.38,ee=ee*.6;var ue=ce*.8,pe=.8,be=0,Ce=.5,Fe=(re-z)/2,je=(le-ee)/2,ke=new go.PathFigure(be*z+Fe,(Ce+pe)*ee+je,!0);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Fe,Ce*ee+je,(be-ue)*z+Fe,(Ce+pe)*ee+je,(be-pe)*z+Fe,(Ce+ue)*ee+je)),ke.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be-pe)*z+Fe,(Ce-ue)*ee+je,(be-ue)*z+Fe,(Ce-pe)*ee+je)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe+ue*.5)*z+Fe,Ce*ee+je,be*z+Fe,(Ce-pe)*ee+je,(be-pe+ue*.5)*z+Fe,(Ce-ue)*ee+je)),ke.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be-pe+ue*.5)*z+Fe,(Ce+ue)*ee+je,be*z+Fe,(Ce+pe)*ee+je).close()),ue=ce*.4,pe=.4,be=.2,Ce=.5;var Ae=new go.PathFigure(be*z+Fe,(Ce+pe)*ee+je,!0);ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Fe,Ce*ee+je,(be-ue)*z+Fe,(Ce+pe)*ee+je,(be-pe)*z+Fe,(Ce+ue)*ee+je)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be-pe)*z+Fe,(Ce-ue)*ee+je,(be-ue)*z+Fe,(Ce-pe)*ee+je)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe+ue*.5)*z+Fe,Ce*ee+je,be*z+Fe,(Ce-pe)*ee+je,(be-pe+ue*.5)*z+Fe,(Ce-ue)*ee+je)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be-pe+ue*.5)*z+Fe,(Ce+ue)*ee+je,be*z+Fe,(Ce+pe)*ee+je).close()),ue=ce*.2,pe=.2,be=.5,Ce=.5;var Be=new go.PathFigure((be-pe)*z+Fe,Ce*ee+je,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be-pe)*z+Fe,(Ce-ue)*ee+je,(be-ue)*z+Fe,(Ce-pe)*ee+je)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Fe,Ce*ee+je,(be+ue)*z+Fe,(Ce-pe)*ee+je,(be+pe)*z+Fe,(Ce-ue)*ee+je)),Be.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be+pe)*z+Fe,(Ce+ue)*ee+je,(be+ue)*z+Fe,(Ce+pe)*ee+je)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Fe,Ce*ee+je,(be-ue)*z+Fe,(Ce+pe)*ee+je,(be-pe)*z+Fe,(Ce+ue)*ee+je)),ue=ce*.4,pe=.4,be=.8,Ce=.5;var _e=new go.PathFigure(be*z+Fe,(Ce-pe)*ee+je,!0);ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Fe,Ce*ee+je,(be+ue)*z+Fe,(Ce-pe)*ee+je,(be+pe)*z+Fe,(Ce-ue)*ee+je)),_e.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be+pe)*z+Fe,(Ce+ue)*ee+je,(be+ue)*z+Fe,(Ce+pe)*ee+je)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe-ue*.5)*z+Fe,Ce*ee+je,be*z+Fe,(Ce+pe)*ee+je,(be+pe-ue*.5)*z+Fe,(Ce+ue)*ee+je)),_e.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be+pe-ue*.5)*z+Fe,(Ce-ue)*ee+je,be*z+Fe,(Ce-pe)*ee+je).close()),ue=ce*.8,pe=.8,be=1,Ce=.5;var et=new go.PathFigure(be*z+Fe,(Ce-pe)*ee+je,!0);return ae.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Fe,Ce*ee+je,(be+ue)*z+Fe,(Ce-pe)*ee+je,(be+pe)*z+Fe,(Ce-ue)*ee+je)),et.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce+pe)*ee+je,(be+pe)*z+Fe,(Ce+ue)*ee+je,(be+ue)*z+Fe,(Ce+pe)*ee+je)),et.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe-ue*.5)*z+Fe,Ce*ee+je,be*z+Fe,(Ce+pe)*ee+je,(be+pe-ue*.5)*z+Fe,(Ce+ue)*ee+je)),et.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Fe,(Ce-pe)*ee+je,(be+pe-ue*.5)*z+Fe,(Ce-ue)*ee+je,be*z+Fe,(Ce-pe)*ee+je).close()),ae}),go.Shape.defineFigureGenerator("Email",function(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,be=tt(),Ce=tt(),Fe=tt(),je=tt();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,be,be,Ce,Fe,je);var ke=$e(Ce.x,Ce.y),Ae=new go.PathFigure(Ce.x*z,Ce.y*ee,!0);ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,je.x*z,je.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ge(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,je,Ce,be,be),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,je.x*z,je.y*ee)),re=ce*.3,le=.3,Ge(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,je,Ce,be,be),Ae.add(new go.PathSegment(go.PathSegment.Line,Ce.x*z,Ce.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,je.x*z,je.y*ee,Fe.x*z,Fe.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,be,be,Ce,Fe,je),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,je.x*z,je.y*ee,Fe.x*z,Fe.y*ee).close());var Ae=new go.PathFigure(.45*z,0,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),Pt(be),Pt(Ce),Pt(Fe),Pt(je),Pt(ke),ae.spot1=new go.Spot(.25,.45),ae.spot2=new go.Spot(.75,.8),ae}),go.Shape.defineFigureGenerator("Fallout",function(fe,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,be){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+be)*ee).close())}return le(re,0,0),le(re,.4,0),le(re,.2,-.3),ae}),go.Shape.defineFigureGenerator("IrritationHazard",function(fe,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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=.5,le=0,ue=0,pe=re*ce,be=.4*Math.SQRT2/2+.5,Ce=.5-.5*Math.SQRT2/2,Fe=1,je=.5,ke=.5,Ae=0,Be=new go.PathFigure(be*z,(1-Ce)*ee,!1);return ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,je*ee,Fe*z,.7*ee,Fe*z,je*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+le)*z,(Ae+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),Be.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)),Be.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)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+le)*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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,be=ue,Ce=Math.PI/4,Fe=4*(1-Math.cos(Ce))/(3*Math.sin(Ce)),je=Fe*.5,ke=ue,Ae=ue,Be=Fe*ke,_e=Fe*Ae;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ke)*z,be*ee,(pe-(Be+ke)/2)*z,(be+(Ae+_e)/2)*ee,(pe-ke)*z,(be+_e)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(be-Ae)*ee,(pe-ke)*z,(be-_e)*ee,(pe-Be)*z,(be-Ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ke)*z,be*ee,(pe+Be)*z,(be-Ae)*ee,(pe+ke)*z,(be-_e)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+ke)*z,(be+_e)*ee,(pe+(Be+ke)/2)*z,(be+(Ae+_e)/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 et=new go.PathFigure(.2*z,ee,!1);ae.add(et),et.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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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=ce*.1,be=.2,Ce=.9,Fe=new go.PathFigure((be-ue)*z,Ce*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(be+ue)*z,Ce*ee,(be+pe)*z,(Ce-ue)*ee,(be+ue)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(be-ue)*z,Ce*ee,(be-pe)*z,(Ce+ue)*ee,(be-ue)*z,(Ce+pe)*ee).close()),ue=.1,pe=ce*.1,be=.8,Ce=.9;var je=new go.PathFigure((be-ue)*z,Ce*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be+ue)*z,Ce*ee,(be+pe)*z,(Ce-ue)*ee,(be+ue)*z,(Ce-pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be-ue)*z,Ce*ee,(be-pe)*z,(Ce+ue)*ee,(be-ue)*z,(Ce+pe)*ee).close()),ae}),go.Shape.defineFigureGenerator("KanbanPost",function(fe,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(fe,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 be=.1,Ce=ce*.1,Fe=.1,je=.9,ke=new go.PathFigure((Fe-be)*z,je*ee,!0);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(je-be)*ee,(Fe-be)*z,(je-Ce)*ee,(Fe-Ce)*z,(je-be)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be)*z,je*ee,(Fe+Ce)*z,(je-be)*ee,(Fe+be)*z,(je-Ce)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(je+be)*ee,(Fe+be)*z,(je+Ce)*ee,(Fe+Ce)*z,(je+be)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be)*z,je*ee,(Fe-Ce)*z,(je+be)*ee,(Fe-be)*z,(je+Ce)*ee)),be=.1,Ce=ce*.1,Fe=.4,je=.9;var Ae=new go.PathFigure((Fe-be)*z,je*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(je-be)*ee,(Fe-be)*z,(je-Ce)*ee,(Fe-Ce)*z,(je-be)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be)*z,je*ee,(Fe+Ce)*z,(je-be)*ee,(Fe+be)*z,(je-Ce)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(je+be)*ee,(Fe+be)*z,(je+Ce)*ee,(Fe+Ce)*z,(je+be)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be)*z,je*ee,(Fe-Ce)*z,(je+be)*ee,(Fe-be)*z,(je+Ce)*ee)),ae}),go.Shape.defineFigureGenerator("RailShipment",function(fe,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 Fe=.05,je=ce*.05,ke=.175,Ae=.95,pe=new go.PathFigure((ke-Fe)*z,Ae*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae-Fe)*ee,(ke-Fe)*z,(Ae-je)*ee,(ke-je)*z,(Ae-Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Fe)*z,Ae*ee,(ke+je)*z,(Ae-Fe)*ee,(ke+Fe)*z,(Ae-je)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae+Fe)*ee,(ke+Fe)*z,(Ae+je)*ee,(ke+je)*z,(Ae+Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Fe)*z,Ae*ee,(ke-je)*z,(Ae+Fe)*ee,(ke-Fe)*z,(Ae+je)*ee));var Fe=.05,je=ce*.05,ke=.375,Ae=.95,be=new go.PathFigure((ke-Fe)*z,Ae*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae-Fe)*ee,(ke-Fe)*z,(Ae-je)*ee,(ke-je)*z,(Ae-Fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Fe)*z,Ae*ee,(ke+je)*z,(Ae-Fe)*ee,(ke+Fe)*z,(Ae-je)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae+Fe)*ee,(ke+Fe)*z,(Ae+je)*ee,(ke+je)*z,(Ae+Fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Fe)*z,Ae*ee,(ke-je)*z,(Ae+Fe)*ee,(ke-Fe)*z,(Ae+je)*ee));var Fe=.05,je=ce*.05,ke=.625,Ae=.95,Ce=new go.PathFigure((ke-Fe)*z,Ae*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae-Fe)*ee,(ke-Fe)*z,(Ae-je)*ee,(ke-je)*z,(Ae-Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Fe)*z,Ae*ee,(ke+je)*z,(Ae-Fe)*ee,(ke+Fe)*z,(Ae-je)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae+Fe)*ee,(ke+Fe)*z,(Ae+je)*ee,(ke+je)*z,(Ae+Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Fe)*z,Ae*ee,(ke-je)*z,(Ae+Fe)*ee,(ke-Fe)*z,(Ae+je)*ee));var Fe=.05,je=ce*.05,ke=.825,Ae=.95,Be=new go.PathFigure((ke-Fe)*z,Ae*ee,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae-Fe)*ee,(ke-Fe)*z,(Ae-je)*ee,(ke-je)*z,(Ae-Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Fe)*z,Ae*ee,(ke+je)*z,(Ae-Fe)*ee,(ke+Fe)*z,(Ae-je)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ae+Fe)*ee,(ke+Fe)*z,(Ae+je)*ee,(ke+je)*z,(Ae+Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Fe)*z,Ae*ee,(ke-je)*z,(Ae+Fe)*ee,(ke-Fe)*z,(Ae+je)*ee).close());var _e=new go.PathFigure(0,ee,!1);return ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(fe,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,be=ce*.05,Ce=.35,Fe=.775,je=new go.PathFigure((Ce-pe)*z,Fe*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe-pe)*ee,(Ce-pe)*z,(Fe-be)*ee,(Ce-be)*z,(Fe-pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z,Fe*ee,(Ce+be)*z,(Fe-pe)*ee,(Ce+pe)*z,(Fe-be)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe+pe)*ee,(Ce+pe)*z,(Fe+be)*ee,(Ce+be)*z,(Fe+pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z,Fe*ee,(Ce-be)*z,(Fe+pe)*ee,(Ce-pe)*z,(Fe+be)*ee).close()),ae}),go.Shape.defineFigureGenerator("ControlCenter",function(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=.3,le=ce*.3,ue=.5,pe=.7,be=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.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(fe,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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,be=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.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(fe,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(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,be=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.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=ce*.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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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 be=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),ae}),go.Shape.defineFigureGenerator("Staircase",function(fe,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(fe,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 be=new go.PathFigure(z*.816,ee,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),be.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),ae}),go.Shape.defineFigureGenerator("PC",function(fe,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 be=new go.PathFigure(z*1,0,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),be.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),be.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),ae}),go.Shape.defineFigureGenerator("Plane",function(fe,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(fe,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(fe,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 be=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),be.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),be.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),ae}),go.Shape.defineFigureGenerator("FloppyDisk",function(fe,z,ee){var ae=new go.Geometry,re=8,le=re*ce,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 be=new go.PathFigure(z*.83,ee*1,!1);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),be.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),be.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(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=15),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,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(fe,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(fe,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(fe,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(fe,z,ee){var ae=new go.Geometry,re=15,le=re*ce,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(fe,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(fe,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(fe,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(fe,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(fe,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(fe,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 Rn={},wn="5.0",$e={},tt=null,Pt=!1,oe=!1,Ge=null,De=!1,me=null,ce=null,we=0;we<arguments.length;we++){var Le=arguments[we];if(Le!==null)switch(typeof Le){case"number":wn=Le.toFixed(1);break;case"string":Le.match(new RegExp("^[0-9]\\.[0-9]+$"))?wn=Le:Ge=Le;break;case"object":typeof Le.is3D!="undefined"?tt=Le:$e=Le;break;case"boolean":Pt=Le,oe=!0;break}}tt===null&&(tt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},$e.material_id!==void 0&&!oe&&(Pt=!0)),Ge!==null&&$e.id===void 0&&($e.id=Ge);var Se="",Oe="",ve=!1,xe=null,fe=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;$e.height!==void 0&&($e.height=Math.round($e.height)),$e.width!==void 0&&($e.width=Math.round($e.width));var be=function(ft){return parseFloat(ft)>4?parseFloat(ft):5};Rn.setHTML5Codebase=function(ft,gt){ce=ft,pt(ft,gt)},Rn.setJavaCodebase=Rn.setJavaCodebaseVersion=Rn.isCompiledInstalled=Rn.setPreCompiledScriptPath=Rn.setPreCompiledResourcePath=function(){},Rn.setHTML5CodebaseVersion=function(ft,gt){var mt=parseFloat(ft);if(mt!==NaN&&mt<5){console.log("The GeoGebra HTML5 codebase version "+mt+" is deprecated. Using version latest instead.");return}me=ft,it(ft,gt)},Rn.getHTML5CodebaseVersion=function(){return fe},Rn.getParameters=function(){return $e},Rn.setFontsCSSURL=function(ft){ue=ft},Rn.setGiacJSURL=function(ft){},Rn.setJNLPFile=function(ft){Se=ft},Rn.setJNLPBaseDir=function(ft){},Rn.inject=function(){function ft(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var gt="auto",mt=$e.id,Nt,Tt=!1,zt=0;zt<arguments.length;zt++){var St=arguments[zt];typeof St=="string"?(St=St.toLowerCase(),St.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?gt=St:mt=arguments[zt]):typeof St=="boolean"?Tt=St:St instanceof HTMLElement&&(Nt=St)}wt();function wt(){if(!De){setTimeout(wt,200);return}gt=vt(gt);var at=Nt||document.getElementById(mt);if(!at){console.log("possibly bug on ajax loading? ");return}if(Rn.removeExistingApplet(at,!1),$e.width===void 0&&at.clientWidth&&($e.width=at.clientWidth),$e.height===void 0&&at.clientHeight&&($e.height=at.clientHeight),!($e.width&&$e.height)&>==="html5"&&(delete $e.width,delete $e.height),xe=gt,gt==="screenshot")ze(at,$e);else{var Ye=!1;$e.hasOwnProperty("playButton")&&$e.playButton||$e.hasOwnProperty("clickToLoad")&&$e.clickToLoad?Ye=!0:$e.hasOwnProperty("playButtonAutoDecide")&&$e.playButtonAutoDecide&&(Ye=(!Ce()||ft())&&Fe()),Ye?(xe="screenshot",Qe(at,$e,Tt,gt)):et(at,$e,Tt)}}};function Ce(){try{return window.self!==window.top}catch(ft){return!0}}function Fe(){return $e.hasOwnProperty("screenshotGenerator")&&$e.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Rn.getViews=function(){return tt},Rn.isJavaInstalled=function(){return!1};var je=function(ft){var gt=function(zt){var St=JSON.parse(zt),wt=function(Pe){return Pe.type=="G"||Pe.type=="E"},at=St.elements?St.elements.filter(wt)[0]:St;if(!at||!at.url){mt();return}$e.fileName=at.url,ke(at.settings||{}),tt.is3D=!0;var Ye="https://www.geogebra.org/images/";Rn.setPreviewImage(ae||at.previewUrl,Ye+"GeoGebra_loading.png",Ye+"applet_play.png"),ft()},mt=function(){$e.onError&&$e.onError(),xt("Error: Fetching material (id "+$e.material_id+") failed.",$e)},Nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Tt="/materials/"+$e.material_id+"?scope=basic";Ae("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(Tt),gt,mt)};function ke(ft){var gt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(mt){ft[mt]=!!ft[mt]}),gt.forEach(function(mt){$e[mt]===void 0&&ft[mt]!==void 0&&($e[mt]=ft[mt])}),$e.showToolBarHelp===void 0&&($e.showToolBarHelp=$e.showToolBar)}function Ae(ft,gt,mt){var Nt=new XMLHttpRequest;Nt.open("GET",ft),Nt.onload=function(){gt(Nt.responseText)},Nt.onerror=mt,Nt.send()}Rn.isHTML5Installed=function(){return!0},Rn.getLoadedAppletType=function(){return xe},Rn.setPreviewImage=function(ft,gt,mt){ae=ft,re=gt,le=mt},Rn.removeExistingApplet=function(ft,gt){var mt;typeof ft=="string"&&(ft=document.getElementById(ft)),xe=null;var Nt=null;for(mt=0;mt<ft.childNodes.length;mt++){var Tt=ft.childNodes[mt],zt=Tt.className;zt==="applet_screenshot"?gt?(Tt.style.display="block",xe="screenshot"):Tt.style.display="none":zt!=="applet_scaler prerender"&&(ft.removeChild(Tt),Nt=zt&&zt.indexOf("appletParameters")!=-1?Tt.id:null,mt--)}var St=$e.id!==void 0?$e.id:Nt,wt=window[St];wt&&typeof wt.getBase64=="function"&&(wt.remove(),window[St]=null)},Rn.refreshHitPoints=function(){if(be(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ft=Rn.getAppletObject();return ft&&typeof ft.recalculateEnvironments=="function"?(ft.recalculateEnvironments(),!0):!1},Rn.startAnimation=function(){var ft=Rn.getAppletObject();return ft&&typeof ft.startAnimation=="function"?(ft.startAnimation(),!0):!1},Rn.stopAnimation=function(){var ft=Rn.getAppletObject();return ft&&typeof ft.stopAnimation=="function"?(ft.stopAnimation(),!0):!1},Rn.getAppletObject=function(){var ft=$e.id!==void 0?$e.id:"ggbApplet";return window[ft]},Rn.resize=function(){};var Be=function(ft,gt,mt){var Nt=document.createElement("param");Nt.setAttribute("name",gt),Nt.setAttribute("value",mt),ft.appendChild(Nt)},_e=function(ft){return ft&&ft!=="false"},et=function(ft,gt,mt){be(fe)<=4.2&&(mt=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Tt=document.createElement("div");Tt.classList.add("appletParameters","notranslate");var zt=gt.width,St=gt.height;if(gt.disableAutoScale=gt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():gt.disableAutoScale,gt.width!==void 0)if(be(fe)<=4.4)_e(gt.showToolBar)&&(gt.height-=7),_e(gt.showAlgebraInput)&&(gt.height-=37),gt.width<605&&_e(gt.showToolBar)&&(gt.width=605,zt=605);else{var wt=100;(_e(gt.showToolBar)||_e(gt.showMenuBar))&&(gt.hasOwnProperty("customToolBar")&&(gt.customToolbar=gt.customToolBar),wt=_e(gt.showMenuBar)?245:155),zt<wt&&(gt.width=wt,zt=wt)}Tt.style.border="none",Tt.style.display="inline-block";for(var at in gt)gt.hasOwnProperty(at)&&at!=="appletOnLoad"&&Tt.setAttribute("data-param-"+at,gt[at]);ue&&Tt.setAttribute("data-param-fontscssurl",ue),Rn.resize=function(){GGBAppletUtils.responsiveResize(ft,gt)},window.addEventListener("resize",function(ht){Rn.resize()});var Ye=typeof gt.appletOnLoad=="function"?gt.appletOnLoad:function(){};if(!mt&>.width!==void 0){gt.hasOwnProperty("showSplash")||Tt.setAttribute("data-param-showSplash","false");var Pe=ft.querySelector(".applet_scaler.prerender"),Te=Pe!==null;if(Te)var Ve=Pe.querySelector(".ggb_preview");else{var Ve=ct(zt,St,gt.borderColor,!1);Pe=document.createElement("div"),Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.style.width=zt+"px",Pe.style.height=St+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pe,"66%"),be(fe)>=5?(gt.appletOnLoad=function(ht){var Lt=ft.querySelector(".ggb_preview");Lt&&Lt.parentNode.removeChild(Lt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pe),window.GGBT_wsf_view&&$(window).trigger("resize"),Ye(ht)},Te||Pe.appendChild(Ve)):Tt.appendChild(Ve),Pe.appendChild(Tt),Te||ft.appendChild(Pe),setTimeout(function(){Rn.resize()},1)}else{var Ze=document.createElement("div");Ze.className="applet_scaler",Ze.style.position="relative",Ze.style.display="block",Ze.appendChild(Tt),ft.appendChild(Ze),gt.appletOnLoad=function(ht){Rn.resize(),Ye(ht)}}function Ee(ht,Lt){Lt&&typeof Lt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,Lt.appletOnLoad):renderGGBElement(ht),xt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Lt)}function He(ht,Lt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:Lt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(en){Ee(en.article,en.params)}),html5AppletsToProcess=null)},be(fe)<5&&(ht.className+=" geogebraweb")):Ee(ht,Lt)}if(Nt){scriptLoadStarted=!0;for(var We=0;We<Tt.childNodes.length;We++){var Ke=Tt.childNodes[We].tagName;Ke==="TABLE"&&(Tt.removeChild(Tt.childNodes[We]),We--)}if(ggbHTML5LoadedScript!==null){var Je=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Je!=null&&Je.parentNode.removeChild(Je)}var dt=document.createElement("script"),Ct=function(){He(Tt,gt)};dt.src=Oe+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=fe,ggbHTML5LoadedScript=dt.src,xt("GeoGebra HTML5 codebase loaded: '"+Oe+"'.",gt),!ce&&(!me||me=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ct()):Oe.requirejs?__webpack_require__.e(4184).then(function(){var ht=[__webpack_require__(74620)];Ct.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(dt.onload=Ct,ft.appendChild(dt))}else He(Tt,gt);gt.height=St,gt.width=zt},ze=function(ft,gt,mt){var Nt=ct(gt.width,gt.height,gt.borderColor,mt),Tt=document.createElement("div");Tt.style.position="relative",Tt.style.display="block",Tt.style.width=gt.width+"px",Tt.style.height=gt.height+"px",Tt.className="applet_screenshot applet_scaler"+(mt?" applet_screenshot_play":""),Tt.appendChild(Nt);var zt=GGBAppletUtils.getScale(gt,ft,mt);mt?(ft.appendChild(lt()),window.GGBT_wsf_view||(ft.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Tt,"66%"),ft.appendChild(Tt),zt!==1&&!isNaN(zt)&&(GGBAppletUtils.scaleElement(Tt,zt),Tt.style.width=gt.width+"px",Tt.style.height=gt.height+"px",Tt.parentNode.style.width=gt.width*zt+"px",Tt.parentNode.style.height=gt.height*zt+"px"),Rn.resize=function(){Xe(ft,Nt,Tt,mt)},window.addEventListener("resize",function(St){Rn.resize()}),Rn.resize()};function Xe(ft,gt,mt,Nt){if(ft.contains(gt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ft.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ft)}var Tt=GGBAppletUtils.getScale($e,ft,Nt);mt.parentNode!==null&&(!isNaN(Tt)&&Tt!==1?(GGBAppletUtils.scaleElement(mt,Tt),mt.parentNode.style.width=$e.width*Tt+"px",mt.parentNode.style.height=$e.height*Tt+"px"):(GGBAppletUtils.scaleElement(mt,1),mt.parentNode.style.width=$e.width+"px",mt.parentNode.style.height=$e.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ft),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Rn.onExitFullscreen=function(ft,gt){gt.appendChild(ft)};var Qe=function(ft,gt,mt,Nt){ze(ft,gt,!0);for(var Tt=function(){var wt=[];for(St=0;St<ft.childNodes.length;St++)wt.push(ft.childNodes[St]);if(window.GGBT_wsf_view){var at=window.GGBT_wsf_view.renderFullScreen(ft,gt.id),Ye=document.getElementById("fullscreencontainer"),Pe=jQuery(ft).find(".fullscreencontent");Pe.length>0?(at.remove(),Pe.attr("id","fullscreencontent").show(),jQuery(Ye).append(Pe),window.dispatchEvent(new Event("resize"))):et(at,gt,!1),window.GGBT_wsf_view.launchFullScreen(Ye)}else xe=Nt,et(ft,gt,!1);if(!window.GGBT_wsf_view)for(St=0;St<wt.length;St++)ft.removeChild(wt[St])},zt=ft.getElementsByClassName("ggb_preview_play"),St=0;St<zt.length;St++)zt[St].addEventListener("click",Tt,!1),zt[St].addEventListener("ontouchstart",Tt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ft),Fe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},lt=function(){var ft=document.createElement("div");if(ft.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var gt='.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");}',mt=document.createElement("style");mt.styleSheet?mt.styleSheet.cssText=gt:mt.appendChild(document.createTextNode(gt)),document.getElementsByTagName("head")[0].appendChild(mt)}return ft},ct=function(ft,gt,mt,Nt){var Tt=document.createElement("div");Tt.className="ggb_preview",Tt.style.position="absolute",Tt.style.zIndex="90",Tt.style.width=ft-2+"px",Tt.style.height=gt-2+"px",Tt.style.top="0px",Tt.style.left="0px",Tt.style.overflow="hidden",Tt.style.backgroundColor="white";var zt="lightgrey";mt!==void 0&&(mt==="none"?zt="transparent":zt=mt),Tt.style.border="1px solid "+zt;var St=document.createElement("img");if(St.style.position="relative",St.style.zIndex="1000",St.style.top="-1px",St.style.left="-1px",ae!==null&&St.setAttribute("src",ae),St.style.opacity=.7,re!==null){var wt,at,Ye;if(!Nt){wt=document.createElement("img"),wt.style.position="absolute",wt.style.zIndex="1001",wt.style.opacity=1,St.style.opacity=.3,at=360,at>ft/4*3&&(at=ft/4*3),Ye=at/5.8,wt.setAttribute("src",re),wt.setAttribute("width",at),wt.setAttribute("height",Ye);var Pe=(ft-at)/2,Te=(gt-Ye)/2;wt.style.left=Pe+"px",wt.style.top=Te+"px",Tt.appendChild(wt)}}return Tt.appendChild(St),Tt},vt=function(ft){return ft=ft.toLowerCase(),ft==="html5"||ft==="screenshot"?ft:"html5"},nt=["web","webSimple","web3d","tablet","tablet3d","phone"],it=function(ft,gt){if(fe=ft,gt){pt(fe,!0);return}var mt=!Pt;if(mt){var Nt=be(fe);!isNaN(Nt)&&Nt<4.4&&(mt=!1)}var Tt,zt;window.location.protocol.substr(0,4)==="http"?Tt=window.location.protocol:Tt="http:";var St=fe.indexOf("//");St>0?zt=fe:St===0?zt=Tt+fe:zt="https://www.geogebra.org/apps/5.2.814.0/";for(var wt in nt)if(fe.slice(nt[wt].length*-1)===nt[wt]||fe.slice((nt[wt].length+1)*-1)===nt[wt]+"/"){pt(zt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&mt&&!tt.is3D&&!tt.AV&&!tt.SV&&!tt.CV&&!tt.EV2&&!tt.CP&&!tt.PC&&!tt.DA&&!tt.FI&&!tt.PV&&!_e($e.showToolBar)&&!_e($e.showMenuBar)&&!_e($e.showAlgebraInput)&&!_e($e.enableRightClick)&&(!$e.appName||$e.appName=="classic")?zt+="webSimple/":zt+="web3d/",pt(zt,!1)},pt=function(ft,gt){if(ft.requirejs){Oe=ft;return}ft.slice(-1)!=="/"&&(ft+="/"),Oe=ft,gt===null&&(gt=ft.indexOf("http")===-1),ve=gt,z="web.nocache.js",ee=!1;var mt=Oe.split("/");mt.length>1&&(!gt&&mt[mt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):nt.indexOf(mt[mt.length-2])>=0&&(z=mt[mt.length-2]+".nocache.js")),mt=ft.split("/"),fe=mt[mt.length-3],fe.substr(0,4)==="test"?fe=fe.substr(4,1)+"."+fe.substr(5,1):(fe.substr(0,3)==="war"||fe.substr(0,4)==="beta")&&(fe="5.0");var Nt=parseFloat(fe);Nt!==NaN&&Nt<5&&ft.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),it("5.0",gt))},xt=function(ft,gt){window.console&&window.console.log&&(!gt||typeof gt.showLogging=="undefined"||gt.showLogging&>.showLogging!=="false")&&console.log(ft)};$e.material_id!==void 0?je(yt):yt();function yt(){var ft=wn;me!==null?ft=me:parseFloat(ft)<5&&(ft="5.0"),it(ft,!1),ce!==null&&pt(ce,ve),De=!0}return Rn},GGBAppletUtils=function(){"use strict";function Rn(){return window.GGBT_wsf_edit!==void 0}function wn(De,me){me!=1?(De.style.transformOrigin="0% 0% 0px",De.style.webkitTransformOrigin="0% 0% 0px",De.style.transform="scale("+me+","+me+")",De.style.webkitTransform="scale("+me+","+me+")",De.style.maxWidth="initial",De.querySelector(".ggb_preview")!==null&&(De.querySelector(".ggb_preview").style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[0]!==void 0&&(De.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[1]!==void 0&&(De.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(De.style.transform="none",De.style.webkitTransform="none")}function $e(De,me,ce,we,Le,Se){var Oe=null;if(Se!=null&&Se!="")for(var ve=De.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+Se+" ")>-1){Oe=ve;break}else ve=ve.parentNode;var xe=0,fe=0,z=0,ee=0,ae=0,re=0,le=0;if(Oe)xe=Oe.offsetWidth,fe=Math.max(we?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),z=xe):(xe=window.innerWidth,fe=window.innerHeight,z=window.innerWidth),De){var ue=De.getBoundingClientRect();ue.left>0&&ue.left<=xe&&(Le===void 0||!Le)&&(document.dir==="rtl"?(ae=xe-ue.width-ue.left,re=z<=480?10:30):(re=ue.left,ae=z<=480?10:30),ee=re+ae)}if(De&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=De.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return De&&((ce===void 0||!ce)&&me>0&&me+ee<xe?xe=me:xe-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(fe-=le)),{width:xe,height:fe}}function tt(De,me,ce,we,Le){if(De.isScreenshoGenerator)return 1;var Se=we!==void 0&&we,Oe=De.noScaleMargin!=null&&De.noScaleMargin,ve=function(pe){return pe&&pe!=="false"},xe=ve(De.autoHeight),fe=$e(me,De.width,ce,xe,Se&&window.GGBT_wsf_view||Oe,Le),z=parseInt(fe.width),ee=De.width,ae=De.height;if(ee===void 0){var re=me.querySelector(".appletParameters");re&&(ee=re.offsetWidth,ae=re.offsetHeight)}var le=z/ee,ue=Se?1:fe.height/ae;return ce!==void 0&&!ce&&(le=Math.min(1,le),ue=Math.min(1,ue)),Math.min(le,ue)}function Pt(De,me,ce){var we=1,Le,Se=!1;if(De.hasOwnProperty("allowUpscale")&&(Se=De.allowUpscale),De.hasOwnProperty("scale")&&(we=parseFloat(De.scale),(isNaN(we)||we===null||we===0)&&(we=1),we>1&&(Se=!0)),me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se=!0),!(De.hasOwnProperty("disableAutoScale")&&De.disableAutoScale))Le=tt(De,me,Se,ce,De.scaleContainerClass);else return we;return Se&&(!De.hasOwnProperty("scale")||we===1)?Le:Math.min(we,Le)}function oe(De){var me=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),we=De.getBoundingClientRect(),Le=(me-we.width)/2,Se=(ce-we.height)/2;Se<0&&(Se=0),De.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Le<40?De.style.left="40px":De.style.left=Le+"px",De.style.top=Se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Se<40?De.style.top="40px":De.style.top=Se+"px",De.style.left=Le+"px")}function Ge(De,me){var ce=De.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(De)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var we=Pt(me,De);Rn()&&ce.setAttribute("data-param-scale",we);for(var Le=null,Se=0;Se<De.childNodes.length;Se++)if(De.childNodes[Se].className!==void 0&&De.childNodes[Se].className.match(/^applet_scaler/)){Le=De.childNodes[Se];break}if(Le!==null&&Le.querySelector(".noscale")!==null)return;var Oe=me.id!==void 0?me.id:"ggbApplet",ve=window[Oe];(ve==null||!ve.recalculateEnvironments)&&Le!==null&&!Le.className.match(/fullscreen/)&&(Le.parentNode.style.transform="",!isNaN(we)&&we!==1?(Le.parentNode.style.width=me.width*we+"px",Le.parentNode.style.height=me.height*we+"px",wn(Le,we)):(wn(Le,1),Le.parentNode.style.width=me.width+"px",Le.parentNode.style.height=me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(De),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Ge,isFlexibleWorksheetEditor:Rn,positionCenter:oe,getScale:Pt,scaleElement:wn}}();__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 Rn=n.location.search;return Rn.indexOf(J)!=-1||Rn.indexOf(K)!=-1}function q(Rn,wn){}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(Rn){var wn=s[L].bindings;s[L].bindings=function(){for(var $e=wn?wn():{},tt=Rn[webModule.__softPermutationId],Pt=O;Pt<tt.length;Pt++){var oe=tt[Pt];$e[oe[O]]=oe[P]}return $e}};var t;function u(){return v(),t}function v(){if(!t){var Rn=o.createElement(Q);if(Rn.id=L,Rn.style.cssText=R+S,Rn.tabIndex=-1,o.body.appendChild(Rn),t=Rn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var wn=document.compatMode==U?V:W;t.write(wn+X),t.close()}}}function w(Rn){function wn(tt){function Pt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=Pt();if(oe){tt();return}function Ge(){if(!oe){if(!Pt())return;oe=!0,tt(),o.removeEventListener&&o.removeEventListener(Z,Ge,!1),De&&clearInterval(De)}}o.addEventListener&&o.addEventListener(Z,Ge,!1);var De=setInterval(function(){Ge()},$)}function $e(tt){var Pt=u(),oe=Pt.body,Ge=Pt.createElement(_);Ge.language=ab,Ge.crossOrigin=W,Ge.src=tt,webModule.__errFn&&(Ge.onerror=function(){webModule.__errFn(L,new Error(bb+tt))}),oe.appendChild(Ge)}wn(function(){$e(Rn)})}webModule.__startLoadingFragment=function(Rn){return C(Rn)},webModule.__installRunAsyncCode=function(Rn){var wn=u(),$e=wn.body,tt=wn.createElement(_);tt.language=ab,tt.text=Rn,$e.appendChild(tt),$e.removeChild(tt)};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(Rn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Rn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Rn){var wn=c[Rn];return wn==null?null:wn},r=d,webModule.__errFn=e}function B(){function Rn(De){var me=De.lastIndexOf(rb);me==-1&&(me=De.length);var ce=De.indexOf(sb);ce==-1&&(ce=De.length);var we=De.lastIndexOf(tb,Math.min(ce,me));return we>=O?De.substring(O,we+P):W}function wn(De){if(!De.match(/^\w+:\/\//)){var me=o.createElement(ub);me.src=De+vb,De=Rn(me.src)}return De}function $e(){var De=__gwt_getMetaProperty(wb);return De!=null?De:W}function tt(){for(var De=o.getElementsByTagName(_),me=O;me<De.length;++me)if(De[me].src.indexOf(xb)!=-1)return Rn(De[me].src);return W}function Pt(){var De=o.getElementsByTagName(yb);return De.length>O?De[De.length-P].href:W}function oe(){var De=o.location;return De.href==De.protocol+zb+De.host+De.pathname+De.search+De.hash}var Ge=$e();return Ge==W&&(Ge=tt()),Ge==W&&(Ge=Pt()),Ge==W&&oe()&&(Ge=Rn(o.location.href)),Ge=wn(Ge),Ge}function C(Rn){return Rn.match(/^\//)||Rn.match(/^[a-zA-Z]+:\/\//)?Rn:webModule.__moduleBase+Rn}function D(){var Rn=[],wn=O,$e=[],tt=[];function Pt(De){var me=tt[De](),ce=$e[De];if(me in ce)return me;var we=[];for(var Le in ce)we[ce[Le]]=Le;throw r&&r(De,we,me),null}if(__gwt_isKnownPropertyValue=function(De,me){return me in $e[De]},webModule.__getPropMap=function(){var De={};for(var me in $e)$e.hasOwnProperty(me)&&(De[me]=Pt(me));return De},webModule.__computePropValue=Pt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var Ge=oe.indexOf(Db);Ge!=-1&&(wn=parseInt(oe.substring(Ge+P),$),oe=oe.substring(O,Ge))}catch(De){}return webModule.__softPermutationId=wn,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(Rn,wn,$e){"use strict";$e.d(wn,{Ax:function(){return Ge},Ds:function(){return De},KI:function(){return ce},SI:function(){return oe},f1:function(){return Pt}});var tt=$e(3294);function Pt(we){let Le=!0;if(we.length>0){for(let Se=0;Se<we.length;Se++)if(we[Se].compile_success==0||!we[Se].compile_success){Le=!1;break}}else Le=!1;return Le}function oe(we,Le=""){let Se=[];for(let Oe=0;Oe<we.length;Oe++){let ve=we[Oe],xe=Le?`${Le}/${ve.name}`:`${ve.name}`;Se.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:xe})}return Se}function Ge(we,Le,Se){for(let Oe=0;Oe<we.length;Oe++){let ve=we[Oe];if(ve.key===Le){ve.children=Se;break}ve.children&&Ge(ve.children,Le,Se)}return we}function De(we,Le,Se){let Oe;return function(){let ve=this,xe=arguments,fe=function(){Oe=null,Se||we.apply(ve,xe)},z=Se&&!Oe;clearTimeout(Oe),Oe=setTimeout(fe,Le),z&&we.apply(ve,xe)}}const me=!0,ce=tt.Z.API_SERVER},73524:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Oe}});var tt=$e(59301),Pt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=$e(92310),Ge=$e.n(oe),De=$e(71418),me=$e(2859),ce=$e(99064),we=$e(955),Le=(ve,xe,fe)=>new Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(ve,xe)).next())}),Oe=({data:ve,className:xe,fullWidth:fe,style:z={},onClose:ee,onOk:ae,showFullTools:re,noAssociationId:le})=>{const ue=(0,tt.useRef)(null),pe=(0,tt.useRef)(null),be=(0,tt.useRef)(null),Ce=(0,tt.useRef)(null),[Fe,je]=(0,tt.useState)(!1),[ke,Ae]=(0,tt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,tt.useEffect)(()=>(be.current||(be.current=document.createElement("style"),document.head.appendChild(be.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),be.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&Be()):(document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)),()=>{document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)}),[ve==null?void 0:ve.visible]);const Be=()=>Le(void 0,null,function*(){je(!0),Ae("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Xe=yield(0,we.ZJ)(ve==null?void 0:ve.src);ue.current.src="",ue.current.src=Xe,ue.current.onload=function(){ze()},je(!1),Ae("")}),_e=Xe=>Le(void 0,null,function*(){je(!0),Ae("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Qe=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Xe.dataUrl}});Qe!=null&&Qe.id&&!le?(yield(0,ce.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Qe==null?void 0:Qe.id,settings:JSON.stringify(Xe.state)}})).status===0&&ae():Qe!=null&&Qe.id&&ae(Qe),je(!1),Ae("")}),et=()=>{const Xe=document.querySelector('a[href="https://markerjs.com/"]');Xe&&Xe.parentNode&&(Xe.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(lt=>{const ct=document.querySelector(lt.name);ct&&ct.setAttribute("title",lt.title)})},ze=()=>{pe.current=new me.hP(ue.current),pe.current.targetRoot=Ce.current,pe.current.addEventListener("render",_e),pe.current.addEventListener("beforeclose",ee),re&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),ve!=null&&ve.snapshotData&&pe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),et()},300)};return tt.createElement(tt.Fragment,null,(ve==null?void 0:ve.visible)&&tt.createElement(De.Z,{spinning:Fe,tip:ke,style:{position:"absolute",width:"100vw"}},tt.createElement("div",{ref:Ce,className:Ge()(Pt.imageDimensions,xe,fe?Pt.fullWidth:""),style:z},tt.createElement("img",{className:Pt.img,ref:ue}))))}},41588:function(Rn,wn,$e){"use strict";var tt=$e(59301),Pt=$e(95237),oe=$e(43604),Ge=$e(99313),De=$e(3113),me=$e(85149),ce=$e(88010),we=$e(48136),Le=$e(59301);const Se=(0,tt.forwardRef)(({callback:Oe,showSaveButton:ve,value:xe=""},fe)=>{const z=(0,tt.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:Le.createElement(Pt.Z,{className:ce.Z.lists,gutter:[10,10]},ee.map((pe,be)=>Le.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Le.createElement("div",null,Le.createElement(me.Z,{value:`$$${pe.value}$$`}),pe.name),Le.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Fe)=>Le.createElement("div",{key:Fe},Le.createElement("h1",null,Ce.name),Le.createElement(Pt.Z,{gutter:[10,10]},Ce.data.map((je,ke)=>Le.createElement(oe.Z,{key:ke,onClick:()=>re(je),className:ce.Z.diamond},Le.createElement(me.Z,{value:"`$$"+je.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Le.createElement(Pt.Z,{className:ce.Z.lists,gutter:[10,10]},ae.map((pe,be)=>Le.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Le.createElement("div",null,Le.createElement(me.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Le.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Fe)=>Le.createElement("div",{key:Fe},Ce.name&&Le.createElement("h1",null,Ce.name),Le.createElement(Pt.Z,{gutter:[10,10]},Ce.data.map((je,ke)=>Le.createElement(oe.Z,{key:ke,onClick:()=>re(je),className:ce.Z.diamond},Le.createElement(me.Z,{value:"`$$"+je.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var be=pe.innerText;return Oe&&Oe(be),be};return(0,tt.useImperativeHandle)(fe,()=>({getData:ue})),Le.createElement("div",{className:ce.Z.mathWrap},Le.createElement(Ge.default,{defaultActiveKey:"1",items:le}),Le.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},xe||""),ve&&Le.createElement("div",{className:ce.Z.button},Le.createElement(De.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});wn.Z=Se},8797:function(Rn,wn,$e){"use strict";var tt=$e(59301),Pt=$e(93314),oe=$e(3113),Ge=Object.defineProperty,De=Object.defineProperties,me=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Se=(fe,z,ee)=>z in fe?Ge(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,Oe=(fe,z)=>{for(var ee in z||(z={}))we.call(z,ee)&&Se(fe,ee,z[ee]);if(ce)for(var ee of ce(z))Le.call(z,ee)&&Se(fe,ee,z[ee]);return fe},ve=(fe,z)=>De(fe,me(z));const xe=({img:fe,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:be,loading:Ce=!1})=>tt.createElement("section",{className:"tc animated fadeIn",style:Oe(Oe({},{color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"}),ee)},tt.createElement("img",{src:fe||Pt,style:ve(Oe({},be),{pointerEvents:"none",userSelect:"none"})}),tt.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&tt.createElement(oe.ZP,Oe({className:ue,onClick:le},z),re),pe&&pe);wn.Z=xe},23210:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return ue}});var tt=$e(59301),Pt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=$e(3113),Ge=$e(70557),De=$e(23954),me=$e(6848),ce=$e(955),we=$e(94941),Le=$e(8797),Se=$e(3294),Oe=$e(19381),ve=$e(59301),xe=Object.defineProperty,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,be,Ce)=>be in pe?xe(pe,be,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):pe[be]=Ce,re=(pe,be)=>{for(var Ce in be||(be={}))z.call(be,Ce)&&ae(pe,Ce,be[Ce]);if(fe)for(var Ce of fe(be))ee.call(be,Ce)&&ae(pe,Ce,be[Ce]);return pe},le=(pe,be,Ce)=>new Promise((Fe,je)=>{var ke=_e=>{try{Be(Ce.next(_e))}catch(et){je(et)}},Ae=_e=>{try{Be(Ce.throw(_e))}catch(et){je(et)}},Be=_e=>_e.done?Fe(_e.value):Promise.resolve(_e.value).then(ke,Ae);Be((Ce=Ce.apply(pe,be)).next())}),ue=({editOffice:pe="view",data:be,theme:Ce,type:Fe,filename:je,monacoEditor:ke,className:Ae,style:Be,close:_e,onClose:et,hasMask:ze,disabledDownload:Xe,onImgDimensions:Qe,showNodata:lt,recordInfo:ct})=>{const[vt,nt]=(0,tt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[it,pt]=(0,tt.useState)(""),[xt,yt]=(0,tt.useState)(),ft=window.ENV==="build"?"/react/build":"",gt=location.host.startsWith("localhost")?Se.Z.PROXY_SERVER:Se.Z.API_SERVER,Nt=10*(1024*1024),Tt=(0,tt.useRef)();be!=null&&be.startsWith("/api")&&Fe!=="txt"&&(be=Se.Z.API_SERVER+be);const zt=Ye=>Ye.substring(Ye.lastIndexOf("/")+1).split(".").pop();je&&ke&&(ke.filename=je),(0,tt.useEffect)(()=>{var Ye,Pe;const Te=(Pe=(Ye=document.cookie)==null?void 0:Ye.replace(/\s/g,""))==null?void 0:Pe.split(";");Te==null||Te.map(Ve=>{let Ze=Ve.split("=");Ze[0]==="_educoder_session"&&pt(Ze[1])})},[]),(0,tt.useEffect)(()=>{Fe==="office"&&(be.indexOf("bigfilescdn.")>-1||be.indexOf("bigfiles1")>-1?yt({url:be,fileType:zt(be),model:be.indexOf("model=edit")?"edit":"view"}):St())},[Fe,be]);const St=()=>le(void 0,null,function*(){console.log("data:",be);let Ye=be;be.startsWith("http")||(Ye=location.origin+Ye);let Pe=new URL(Ye).pathname.split("/").pop();const Te=yield(0,we.gJ)({attachment_id:Pe});Te.url=gt+Te.url,yt(Te)}),wt=()=>{if(be.startsWith("http")||be.startsWith("blob:")){at();return}(0,ce.Sv)(je||"educoder",be,je)},at=()=>{ct&&(0,Oe.fc)({id:ct==null?void 0:ct.id,watch_type:1,course_id:ct==null?void 0:ct.course_id}),(0,ce.Nd)(je||"educoder",decodeURIComponent(be))};return ve.createElement("div",{style:re({},Be||{}),className:`${ze&&Pt.bgBlack} ${Fe?Pt.wrp:"hide"}`},_e&&ve.createElement("div",{className:Pt.close,ref:Tt},!!Qe&&ve.createElement(me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Tt.current},ve.createElement("span",{onClick:()=>{et(),Qe()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!Xe&&ve.createElement(me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Tt.current},ve.createElement("span",{onClick:at},ve.createElement("i",{className:"icon-quxiaozhiding"}))),ve.createElement(me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Tt.current},ve.createElement("span",{className:"",onClick:et},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${Pt[Ae]} ${Ae} ${Pt.monaco} ${Fe==="txt"?"show":"hide"}`},Fe==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(De.ZP,re({},ke)))),Fe==="audio"&&ve.createElement("audio",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${be}`,autoPlay:!0}),Fe==="video"&&ve.createElement(ve.Fragment,null,(be==null?void 0:be.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${be}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${be}`,autoPlay:!0})),Fe==="office"&&xt&&ve.createElement("iframe",{src:`${ft}/office.html?key=${xt.key}&url=${btoa(xt.url)}&callbackUrl=${gt+(xt.callbackUrl||"")}&fileType=${xt.fileType}&title=${xt.title||""}&model=${pe}&officeServer=${Se.Z.ONLYOFFICE}&disabledDownload=${!!Xe}`}),Fe==="html"&&ve.createElement("iframe",{src:be+"&disposition=inline"}),Fe==="pdf"&&ve.createElement("iframe",{src:`${ft}/js/pdfview/index.html?filename=${je||"educoder.pdf"}&url=${encodeURIComponent(be)}&disabledDownload=${!!Xe}`}),Fe==="image"&&ve.createElement("img",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${be}`}),(Fe==="other"||Fe==="download")&&ve.createElement(ve.Fragment,null,lt?ve.createElement(Le.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(oe.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:wt,disabled:Xe},"\u4E0B\u8F7D")}):ve.createElement(oe.ZP,{type:"primary",size:"middle",onClick:wt,disabled:Xe},ve.createElement(Ge.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Rn,wn,$e){"use strict";$e.d(wn,{z:function(){return Fe},Z:function(){return je}});var tt=$e(59301),Pt=$e(50304),oe=$e(24768),Ge=$e(64018),De=$e(40846),me=$e(3294),ce=$e(955),we=$e(15342),Le=$e(1012),Se=$e(23210),Oe=$e(59301),xe=({html:ke})=>{const Ae=(0,tt.useRef)(null),Be=(0,tt.useRef)(null),_e=`.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,tt.useEffect)(()=>{const et=Ae.current.attachShadow({mode:"open"});Be.current=document.createElement("div"),Be.current.className="markdown-body",Be.current.innerHTML=ke,et.appendChild(Be.current);const ze=document.createElement("style");return ze.textContent=_e,et.appendChild(ze),()=>{et.innerHTML=""}},[]),(0,tt.useEffect)(()=>{Be.current&&(Be.current.innerHTML=ke)},[ke]),Oe.createElement("div",{ref:Ae})},fe=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(ke,Ae,Be)=>Ae in ke?fe(ke,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[Ae]=Be,le=(ke,Ae)=>{for(var Be in Ae||(Ae={}))ee.call(Ae,Be)&&re(ke,Be,Ae[Be]);if(z)for(var Be of z(Ae))ae.call(Ae,Be)&&re(ke,Be,Ae[Be]);return ke};const ue="@\u2581\u2581@",pe="@\u2581@",be=/<pre[^>]*>/g;function Ce(ke){let Ae=document.createElement("div");return Ae.innerHTML=ke,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const Fe=(ke,Ae)=>{ke=ke||"";const Be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_e=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,et=/\(\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 Ae?ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Be,(Xe,Qe,lt,ct,vt,nt,it)=>{const pt=Qe||ct||nt,xt=lt||vt||it||"?";return me.Z.API_SERVER+"/api/attachments/"+pt+xt+"&t="+(0,ce.Jn)(pt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ke=ke.replace(ze,(Xe,Qe,lt,ct,vt,nt,it)=>{const pt=Qe||ct||nt,xt=lt||vt||it||"?";return me.Z.API_SERVER+"/attachments/download/"+pt+xt+"&t="+(0,ce.Jn)(pt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replace(Be,(Xe,Qe,lt,ct,vt,nt,it)=>{const pt=Qe||ct||nt,xt=lt||vt||it||"?";return me.Z.API_SERVER+"/api/attachments/"+pt+xt+"&t="+(0,ce.Jn)(pt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replace(_e,(Xe,Qe,lt,ct,vt)=>{const nt=Qe||ct,it=lt||vt||"";return'"'+me.Z.API_SERVER+"/api/attachments/"+nt+it+nt+it+"&t="+(0,ce.Jn)(nt,Date.now())}).replace(et,(Xe,Qe,lt,ct,vt)=>{const nt=Qe||ct,it=lt||vt||"";return"("+me.Z.API_SERVER+"/files/uploads/"+nt+it+nt+it+"&t="+(0,ce.Jn)(nt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),ke)};var je=({value:ke="",className:Ae,showTextOnly:Be,showLines:_e,style:et={},stylesPrev:ze={},highlightKeywords:Xe,showProgramFill:Qe,isProgramFill:lt,disabledFill:ct=!1,programFillValue:vt,onFillChange:nt=xt=>{},onFillBlur:it=()=>{},onFillFocus:pt=()=>{}})=>{let xt=String(ke);const[yt,ft]=(0,tt.useState)(""),[gt,mt]=(0,tt.useState)("office"),[Nt,Tt]=(0,tt.useState)([]),zt=(0,tt.useRef)("a"+(0,Le.Z)()),St={},wt=(dt,Ct,ht)=>{const Lt=document.createElement(dt===pe?"input":"textarea");Lt.style.width="100%",Lt.style.height=dt===pe?"40px":"151px",Lt.rows=5,Lt.spellcheck=!1,Lt.name="edu-program-fill",Lt.placeholder="\u8BF7\u8F93\u5165",Lt.dataset.id=Ct;const en=Object.keys(St).length;return St[en]=Lt,`<span class="edu-program-fill-wrap ${dt===pe?"":"show"}" style="width:${dt===pe?"400px":"100%"}" title=${ht||""}><span>${Lt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function at(dt){return dt=dt.replace(/!\[.*?\]\(.*?\)/g,""),dt=dt.replace(/\[.*?\]\(.*?\)/g,""),dt=dt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),dt=dt.replace(/<embed.*?>/g,""),dt=dt.replace(/<img.*?>/g,""),dt=dt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),dt=dt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),dt=dt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),dt=dt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),dt}const Ye=dt=>dt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ct,ht){let Lt=ht.replace(/(\n|\r)/g,"").split("}"),en=[];return Lt.map(Vt=>{Vt!=""&&en.push(`.${zt.current} ${Vt}`)}),`<style>${en.join("}")}</style>`}),Pe=(0,tt.useMemo)(()=>{try{const Lt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,en=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Vt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Kt=/\(\/attachments\/download\//g;xt=xt.replace(Kt,"("+me.Z.API_SERVER+"/attachments/download/").replace(Lt,"("+me.Z.API_SERVER+"/api/attachments/").replace(en,'"'+me.Z.API_SERVER+"/api/attachments/").replace(Vt,'"'+me.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(Lt){}if(Qe){let Lt=-1;return xt=xt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(en,Vt,Kt){var Ut;return++Lt,wt(en,Lt,(Ut=vt==null?void 0:vt[Lt])==null?void 0:Ut.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ye(xt||"")}</pre>`}let dt=Ye(xt);dt=(0,oe.ZP)(dt);const Ct=(0,oe.ez)();xt.match(/\[TOC\]/)&&(dt=dt.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),dt=dt.replace(/(__special_katext_id_\d+__)/g,(Lt,en)=>{const{type:Vt,expression:Kt}=Ct[en];return(0,we.renderToString)(Ce(Kt)||"",{displayMode:Vt==="block",throwOnError:!1,output:"html"})}),dt=dt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const ht=document.createElement("div");if(ht.innerHTML=dt,Be)return ht.innerText;if(Xe){const Lt=Xe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ee(ht,Lt),ht.innerHTML}return setTimeout(()=>Ke(),500),ht.innerHTML},[xt,Xe]);(0,tt.useEffect)(()=>{He.current&&He.current.querySelectorAll(["input","textarea"]).forEach(Ct=>{Ct.oninput=Te,Ct.onblur=Ve,Ct.onfocus=Ze})},[Nt]),(0,tt.useEffect)(()=>{var dt,Ct,ht,Lt,en;if(vt!=null&&vt.length)try{const Vt=He.current.querySelectorAll(".edu-program-fill-score"),Kt=He.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ut,rn]of Kt.entries())rn.value=((dt=vt==null?void 0:vt[Ut])==null?void 0:dt.value)||"",((Ct=vt==null?void 0:vt[Ut])==null?void 0:Ct.type)==="warning"?rn.className="program-fill-warning":((ht=vt==null?void 0:vt[Ut])==null?void 0:ht.type)==="success"?rn.className="program-fill-success":rn.className="";for(const[Ut,rn]of Vt.entries())rn.innerHTML=(Lt=vt==null?void 0:vt[Ut])!=null&&Lt.score?`${(en=vt==null?void 0:vt[Ut])==null?void 0:en.score}\u5206`:"";Tt(vt)}catch(Vt){console.log(Vt,"error")}},[vt]);const Te=dt=>{Nt[dt.target.dataset.id]=Nt[dt.target.dataset.id]||{},Nt[dt.target.dataset.id].value=dt.target.value,Tt([...Nt]),nt(Nt,dt.target.dataset.id)},Ve=dt=>{Nt[dt.target.dataset.id]=Nt[dt.target.dataset.id]||{},Nt[dt.target.dataset.id].value=dt.target.value,Tt([...Nt]),it(Nt,dt.target.dataset.id)},Ze=dt=>{Nt[dt.target.dataset.id]=Nt[dt.target.dataset.id]||{},Nt[dt.target.dataset.id].value=dt.target.value,Tt([...Nt]),pt(Nt,dt.target.dataset.id)};function Ee(dt,Ct){return dt.childNodes.forEach(ht=>{var Lt;if(ht.childNodes.length>0)Ee(ht,Ct);else if(ht.nodeName!=="IMG")if(ht.innerHTML)ht.innerHTML=(Lt=ht.innerHTML)==null?void 0:Lt.replace(new RegExp(Ct,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const en=document.createElement("span");en.innerHTML=ht.textContent.replace(new RegExp(Ct,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ht.replaceWith(en)}})}const He=(0,tt.useRef)();oe.jb.WebkitLineClamp=_e,_e&&(et=le(le({},et),oe.jb));function We(dt){let Ct=dt.target;if(Ct.tagName.toUpperCase()==="A"){let ht=Ct.getAttribute("href");if(ht.indexOf("office")>-1)dt.preventDefault(),ft(ht),mt("office");else if(ht.indexOf("application/pdf")>-1)dt.preventDefault(),ft(ht),mt("pdf");else if(ht.indexOf("text/html")>-1)dt.preventDefault(),ft(ht),mt("html");else if(ht.startsWith("#")){dt.preventDefault();let Lt=document.getElementById(ht.replace("#",""));Lt&&Lt.scrollIntoView(!0)}}}const Ke=()=>{var dt;const Ct=(dt=He.current)==null?void 0:dt.querySelectorAll("video");Ct==null||Ct.forEach(ht=>{if(ht.oncontextmenu=()=>!1,ht.src.indexOf(".m3u8")>-1&&!ht.canPlayType("application/vnd.apple.mpegurl")){if(De.ZP.isSupported()){var Lt=new De.ZP;Lt.loadSource(ht.src),Lt.attachMedia(ht)}}})};(0,tt.useEffect)(()=>{if(He.current&&Pe&&Pe.match(be)&&window.PR.prettyPrint(),He.current)return He.current.addEventListener("click",We),()=>{var dt;(dt=He.current)==null||dt.removeEventListener("click",We),(0,oe.AL)(),(0,oe.Iy)()}},[Pe,He.current,We]),(0,tt.useEffect)(()=>{var dt;const Ct=ht=>{ht.preventDefault(),ht.clipboardData.setData("text",window.getSelection().toString())};return(dt=He.current)==null||dt.addEventListener("copy",Ct),()=>{var ht;(ht=He.current)==null||ht.removeEventListener("copy",Ct)}},[He.current]);const Je=dt=>/<style[\s\S]*?>/i.test(dt||"");return tt.createElement(tt.Fragment,null,Be&&tt.createElement("div",{ref:He},Pe),!Be&&!Je(Pe)&&tt.createElement("div",{ref:He,style:le({},et),className:`${Ae||""} ${ct?"disabled-fill":""} markdown-body ${zt.current}`,dangerouslySetInnerHTML:{__html:Pe}}),!Be&&Je(Pe)&&tt.createElement(xe,{html:Pe}),tt.createElement(Se.Z,{close:!0,data:yt,type:yt!=null&&yt.length?gt:"",style:le({},ze),onClose:()=>ft("")}))}},81939:function(Rn,wn,$e){"use strict";$e.d(wn,{cT:function(){return ke},pe:function(){return Ce}});var tt=$e(59301),Pt=$e(54580),oe=$e(8591),Ge=$e(99064),De=$e(28209),me=$e.n(De),ce=$e(1012),we=$e(89070),Le=$e(47257),Se=$e.n(Le),Oe=Object.defineProperty,ve=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Be,_e,et)=>_e in Be?Oe(Be,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):Be[_e]=et,re=(Be,_e)=>{for(var et in _e||(_e={}))z.call(_e,et)&&ae(Be,et,_e[et]);if(fe)for(var et of fe(_e))ee.call(_e,et)&&ae(Be,et,_e[et]);return Be},le=(Be,_e)=>ve(Be,xe(_e)),ue=(Be,_e)=>{var et={};for(var ze in Be)z.call(Be,ze)&&_e.indexOf(ze)<0&&(et[ze]=Be[ze]);if(Be!=null&&fe)for(var ze of fe(Be))_e.indexOf(ze)<0&&ee.call(Be,ze)&&(et[ze]=Be[ze]);return et},pe=(Be,_e,et)=>new Promise((ze,Xe)=>{var Qe=vt=>{try{ct(et.next(vt))}catch(nt){Xe(nt)}},lt=vt=>{try{ct(et.throw(vt))}catch(nt){Xe(nt)}},ct=vt=>vt.done?ze(vt.value):Promise.resolve(vt.value).then(Qe,lt);ct((et=et.apply(Be,_e)).next())});const{Dragger:be}=Pt.default,Ce=Be=>{const _e="bf3c199c2470cb477d907b1e0917c17b",et="5183666c72eec9e4";var ze=me().enc.Utf8.parse(_e);let Xe=me().enc.Utf8.parse(et);var Qe=me().AES.decrypt(Be,ze,{iv:Xe,mode:me().mode.CBC});return Qe.toString(me().enc.Utf8)};let Fe;const je=Be=>pe(void 0,[Be],function*({identifier:_e,oldFilename:et,newFilename:ze}){var Xe,Qe,lt,ct,vt,nt;const it=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});it.data=JSON.parse(Ce(it.data));const pt=new OSS({endpoint:(Xe=it==null?void 0:it.data)==null?void 0:Xe.end_point,region:(Qe=it==null?void 0:it.data)==null?void 0:Qe.region,accessKeyId:(lt=it==null?void 0:it.data)==null?void 0:lt.access_key_id,accessKeySecret:(ct=it==null?void 0:it.data)==null?void 0:ct.access_key_secret,bucket:(vt=it==null?void 0:it.data)==null?void 0:vt.bucket,stsToken:(nt=it==null?void 0:it.data)==null?void 0:nt.security_token});return new Promise((xt,yt)=>{console.log(11111,`${_e}/${et}`,`${_e}/${ze}`,it.data),pt.copy(`/${_e}/${et}`,`/${_e}/${ze}`).then(ft=>{console.log("\u62F7\u8D1D\u6210\u529F",ft)}).catch(ft=>{console.log(ft)})})}),ke=(Be,_e,et)=>pe(void 0,null,function*(){var ze,Xe,Qe,lt,ct,vt;_e.file_name=Be.name;const nt=yield(0,Ge.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ce(nt.data)),nt.data=JSON.parse(Ce(nt.data));const it=Be.name.split(".");it.pop();const pt=_e.realFileName?it.join(""):(0,ce.Z)(),xt=new(Se())({endpoint:(ze=nt==null?void 0:nt.data)==null?void 0:ze.end_point,region:(Xe=nt==null?void 0:nt.data)==null?void 0:Xe.region,accessKeyId:(Qe=nt==null?void 0:nt.data)==null?void 0:Qe.access_key_id,accessKeySecret:(lt=nt==null?void 0:nt.data)==null?void 0:lt.access_key_secret,bucket:(ct=nt==null?void 0:nt.data)==null?void 0:ct.bucket,stsToken:(vt=nt==null?void 0:nt.data)==null?void 0:vt.security_token});return new Promise((yt,ft)=>{var gt;xt.multipartUpload(`${pt}`,new Blob([Be],{type:Be.type}),le(re({timeout:200*1e3,partSize:102400},et),{callback:{url:(gt=nt==null?void 0:nt.data)==null?void 0:gt.callback_url,host:nt==null?void 0:nt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ge.rz)(_e)}})).then(function(mt){var Nt;Be.response=(Nt=mt.data)==null?void 0:Nt.data,yt(mt==null?void 0:mt.data)}).catch(function(mt){ft(mt),console.log("err:",mt)})})}),Ae=Be=>{var _e=Be,{user:et,cancelUpload:ze}=_e,Xe=ue(_e,["user","cancelUpload"]);const[Qe,lt]=(0,tt.useState)([]);let[ct,vt]=(0,tt.useState)();const nt={onRemove:pt=>{lt([...Qe.filter(xt=>xt.name!==pt.name)]),Xe.onChange(Qe.filter(xt=>xt.name!==pt.name))},disabled:Xe.disabled,multiple:!0,fileList:Qe==null?void 0:Qe.map(pt=>pt.file),customRequest:()=>{},beforeUpload:pt=>pe(void 0,null,function*(){let xt=Xe.maxSize||1073741824;if(Qe.filter(yt=>yt.name===pt.name).length){oe.ZP.info(`${pt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(pt==null?void 0:pt.size)>xt?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${xt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Qe.push({name:pt.name,file:pt}),lt([...Qe]),Xe.onChange(Qe),!1)})},it=(pt,xt)=>pe(void 0,null,function*(){var yt,ft,gt,mt,Nt,Tt;xt.file_name=pt.name;const zt=pt.name,St=yield(0,Ge.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(St.data=JSON.parse(Ce(St.data)),(St==null?void 0:St.status)!==0){Qe[Qe.findIndex(Ye=>Ye.name===zt)].status="error",Qe[Qe.findIndex(Ye=>Ye.name===zt)].file.status="error",Xe.onChange(Qe),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ct=new(Se())({endpoint:(yt=St==null?void 0:St.data)==null?void 0:yt.end_point,region:(ft=St==null?void 0:St.data)==null?void 0:ft.region,accessKeyId:(gt=St==null?void 0:St.data)==null?void 0:gt.access_key_id,accessKeySecret:(mt=St==null?void 0:St.data)==null?void 0:mt.access_key_secret,bucket:(Nt=St==null?void 0:St.data)==null?void 0:Nt.bucket,stsToken:(Tt=St==null?void 0:St.data)==null?void 0:Tt.security_token}),console.log(pt,"file"),vt(ct);const wt=pt.name.split(".");wt.pop();const at=zt.indexOf(".")>-1?xt.realFileName?wt.join("."):(0,ce.Z)():zt;return new Promise((Ye,Pe)=>{var Te;try{ct.multipartUpload(`${Xe.identifier}/${at}${zt.indexOf(".")>-1?"."+zt.split(".").pop():""}`,new Blob([pt.file],{type:pt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ve,Ze,Ee)=>{try{console.log("\u8FDB\u5EA6",Ve,Ze,Ee);const He=Qe.findIndex(We=>We.name===zt);Qe[He].file.percent=Ve*100,Qe[He].tempCheckpoint=Ze,lt([...Qe])}catch(He){}},checkpoint:Qe[Qe.findIndex(Ve=>Ve.name===zt)].tempCheckpoint,callback:{customValue:{id:zt+""},url:(Te=St==null?void 0:St.data)==null?void 0:Te.callback_url,host:St==null?void 0:St.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ge.rz)(xt)}}).then(function(Ve){var Ze,Ee,He;const We=Qe.findIndex(Je=>Je.name===zt);let Ke="done";if(((Ze=Ve.data)==null?void 0:Ze.status)===0){pt.response=(Ee=Ve.data)==null?void 0:Ee.data;const Je=Qe.findIndex(dt=>dt.name===zt);Qe[Je].status="done",Qe[Je].file.status="done"}else oe.ZP.warning((He=Ve.data)==null?void 0:He.message),Ke="error";Qe[We].status=Ke,Qe[We].file.status=Ke,Xe.onChange(Qe),Ye(Ve==null?void 0:Ve.data)}).catch(function(Ve){Qe[Qe.findIndex(Ze=>Ze.name===zt)].status="error",Qe[Qe.findIndex(Ze=>Ze.name===zt)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),lt([...Qe]),Xe.onChange(Qe),Pe(Ve),console.log("err:",Ve)})}catch(Ve){}})});return(0,tt.useEffect)(()=>{Qe.every(pt=>pt==="done"||pt==="error")&&Xe.onComplete(Qe)},[Qe]),(0,tt.useEffect)(()=>{ze&&(ct==null||ct.cancel())},[ze]),(0,tt.useEffect)(()=>{Xe.uploading&&Qe.map(pt=>pe(void 0,null,function*(){var xt;if((!pt.status||pt.status==="error")&&!ze){pt.status="uploading",pt.file.status="uploading";const yt=yield it(pt,{login:(xt=et==null?void 0:et.userInfo)==null?void 0:xt.login,container_type:Xe.container_type,container_id:Xe.container_id,description:Xe.description,realFileName:Xe.realFileName})}}))},[Xe.uploading]),tt.createElement(be,le(re({},nt),{height:Xe.height,className:Xe.className}),tt.createElement("p",{className:"ant-upload-hint"},Xe.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};wn.ZP=(0,we.connect)(({loading:Be,globalSetting:_e,user:et})=>({globalSetting:_e,loading:Be.models.competitions,user:et}))(Ae)},97692:function(Rn,wn,$e){"use strict";$e.d(wn,{h:function(){return pe}});var tt=$e(59301),Pt=$e(57809),oe=$e(78241),Ge=$e(3113),De=$e(89780),me=$e.n(De),ce=$e(37036),we=$e(95625),Le=Object.defineProperty,Se=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,z=(be,Ce,Fe)=>Ce in be?Le(be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):be[Ce]=Fe,ee=(be,Ce)=>{for(var Fe in Ce||(Ce={}))xe.call(Ce,Fe)&&z(be,Fe,Ce[Fe]);if(ve)for(var Fe of ve(Ce))fe.call(Ce,Fe)&&z(be,Fe,Ce[Fe]);return be},ae=(be,Ce)=>Se(be,Oe(Ce));const re=Pt.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},ue={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"]};wn.Z=({callback:be,onCancel:Ce})=>{const[Fe,je]=(0,tt.useState)("python");function ke(Be){je(ue[Be][1])}function Ae(Be){be(Be)}return tt.createElement(oe.default,ae(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ae,style:{width:500}}),tt.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},tt.createElement(Pt.default,{getPopupContainer:Be=>Be.parentNode,onChange:ke},Object.keys(ue).map(Be=>tt.createElement(re,{key:Be,value:Be},ue[Be][0])))),tt.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},tt.createElement(pe,{mode:Fe})),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(Ge.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function pe({value:be,onChange:Ce,mode:Fe,options:je={}}){const ke=(0,tt.useRef)(),[Ae,Be]=(0,tt.useState)();return(0,tt.useEffect)(()=>{if(Ae){let _e=function(et){const ze=et.getValue();Ce&&Ce(ze)};return Ae.on("change",_e),()=>{Ae.off("change",_e)}}},[Ae,Ce]),(0,tt.useEffect)(()=>{Ae&&Ae.setOption("mode",Fe)},[Ae,Fe]),(0,tt.useEffect)(()=>{Ae&&(be!==Ae.getValue()||be==="")&&setTimeout(()=>{Ae.setValue(be||"")},300)},[Ae,be]),(0,tt.useEffect)(()=>{if(ke.current&&!Ae){const _e=me().fromTextArea(ke.current,ee({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},je));Be(_e)}},[ke.current,Ae]),tt.createElement("div",{className:"my-codemirror-container"},tt.createElement("textarea",{ref:ke}))}},12290:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return or}});var tt=$e(59301),Pt=$e(89780),oe=$e.n(Pt),Ge=$e(76374),De=$e(37036),me=$e(6313),ce=$e(25717),we=$e(99498),Le=$e(25419),Se=$e(67549),Oe=$e(85149),ve=({value:qt="",className:Jt,showTextOnly:Et,showLines:ln,style:Pn={}})=>{const $t=(0,tt.useMemo)(()=>"",[qt]);return tt.createElement(tt.Fragment,null,tt.createElement("div",{dangerouslySetInnerHTML:{__html:$t}}))},xe=$e(59301),fe=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(qt,Jt,Et)=>Jt in qt?fe(qt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):qt[Jt]=Et,pe=(qt,Jt)=>{for(var Et in Jt||(Jt={}))re.call(Jt,Et)&&ue(qt,Et,Jt[Et]);if(ae)for(var Et of ae(Jt))le.call(Jt,Et)&&ue(qt,Et,Jt[Et]);return qt},be=(qt,Jt)=>z(qt,ee(Jt));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 Fe({onActionCallback:qt,title:Jt,icon:Et,actionName:ln,className:Pn="",children:$t}){function It(){qt(ln)}return xe.createElement("a",{title:Jt,className:Pn,onClick:It},xe.createElement("i",{className:`${Et}`}),$t)}var je=({watch:qt,showNullButton:Jt,showNullProgramButton:Et,onActionCallback:ln,fullScreen:Pn,insertTemp:$t,hidetoolBar:It,extraUse:fn})=>{const un=[...Ce,{title:`${qt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${qt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!It&&un.map((Gn,Xn)=>xe.createElement("li",{key:Xn},Gn.actionName?xe.createElement(Fe,be(pe({},Gn),{onActionCallback:ln})):xe.createElement("span",{className:"v-line"}))),Jt?xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ln},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Et?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ln},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ln},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,$t&&xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${$t}`,onActionCallback:ln},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),fn&&xe.createElement("li",null,fn),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(Fe,{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:ln})))},ke=$e(79346),Ae=$e(78241),Be=$e(92832),_e=$e(3113),et=Object.defineProperty,ze=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,vt=(qt,Jt,Et)=>Jt in qt?et(qt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):qt[Jt]=Et,nt=(qt,Jt)=>{for(var Et in Jt||(Jt={}))lt.call(Jt,Et)&&vt(qt,Et,Jt[Et]);if(Qe)for(var Et of Qe(Jt))ct.call(Jt,Et)&&vt(qt,Et,Jt[Et]);return qt},it=(qt,Jt)=>ze(qt,Xe(Jt));const pt={labelCol:{span:4},wrapperCol:{span:20}};var xt=({callback:qt,onCancel:Jt})=>{function Et(ln){qt(ln)}return tt.createElement(Ae.default,it(nt({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Et,style:{width:500}}),tt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},tt.createElement(Be.default,null)),tt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},tt.createElement(Be.default,null)),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(_e.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},yt=$e(97692),ft=$e(28451),gt=$e(43418),mt=$e(95237),Nt=$e(73524),Tt=$e(59301),zt=({callback:qt,onCancel:Jt})=>{const Et=document.createElement("canvas"),ln=Et.getContext("2d");Et.width=1e3,Et.height=800,ln.fillStyle="#ffffff",ln.fillRect(0,0,Et.width,Et.height);const Pn=Et.toDataURL("image/png");return Tt.createElement(gt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Tt.createElement(mt.Z,{style:{height:"100vh"}},Tt.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Pn,visible:!0,title:String(Date.now())},onOk:$t=>{qt({src:$t.url})},onClose:Jt})))},St=$e(12378);function wt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(wt,go.CommandHandler),wt.prototype.canAlignSelection=function(){var qt=this.diagram;return!(qt===null||qt.isReadOnly||qt.isModelReadOnly||qt.selection.count<2)},wt.prototype.alignLeft=function(){var qt=this.diagram;qt.startTransaction("aligning left");var Jt=1/0;qt.selection.each(function(Et){Et instanceof go.Link||(Jt=Math.min(Et.position.x,Jt))}),qt.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Jt,Et.position.y))}),qt.commitTransaction("aligning left")},wt.prototype.alignRight=function(){var qt=this.diagram;qt.startTransaction("aligning right");var Jt=-1/0;qt.selection.each(function(Et){if(!(Et instanceof go.Link)){var ln=Et.actualBounds.x+Et.actualBounds.width;Jt=Math.max(ln,Jt)}}),qt.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Jt-Et.actualBounds.width,Et.position.y))}),qt.commitTransaction("aligning right")},wt.prototype.alignTop=function(){var qt=this.diagram;qt.startTransaction("alignTop");var Jt=1/0;qt.selection.each(function(Et){Et instanceof go.Link||(Jt=Math.min(Et.position.y,Jt))}),qt.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Et.position.x,Jt))}),qt.commitTransaction("alignTop")},wt.prototype.alignBottom=function(){var qt=this.diagram;qt.startTransaction("aligning bottom");var Jt=-1/0;qt.selection.each(function(Et){if(!(Et instanceof go.Link)){var ln=Et.actualBounds.y+Et.actualBounds.height;Jt=Math.max(ln,Jt)}}),qt.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Et.actualBounds.x,Jt-Et.actualBounds.height))}),qt.commitTransaction("aligning bottom")},wt.prototype.alignCenterX=function(){var qt=this.diagram,Jt=qt.selection.first();if(Jt){qt.startTransaction("aligning Center X");var Et=Jt.actualBounds.x+Jt.actualBounds.width/2;qt.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(Et-ln.actualBounds.width/2,ln.actualBounds.y))}),qt.commitTransaction("aligning Center X")}},wt.prototype.alignCenterY=function(){var qt=this.diagram,Jt=qt.selection.first();if(Jt){qt.startTransaction("aligning Center Y");var Et=Jt.actualBounds.y+Jt.actualBounds.height/2;qt.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(ln.actualBounds.x,Et-ln.actualBounds.height/2))}),qt.commitTransaction("aligning Center Y")}},wt.prototype.alignColumn=function(qt){var Jt=this.diagram;Jt.startTransaction("align Column"),qt===void 0&&(qt=0),qt=parseFloat(qt);var Et=new Array;Jt.selection.each(function(fn){fn instanceof go.Link||Et.push(fn)});for(var ln=0;ln<Et.length-1;ln++){var Pn=Et[ln],$t=Pn.actualBounds.y+Pn.actualBounds.height+qt,It=Et[ln+1];It.move(new go.Point(Pn.actualBounds.x,$t))}Jt.commitTransaction("align Column")},wt.prototype.alignRow=function(qt){qt===void 0&&(qt=0),qt=parseFloat(qt);var Jt=this.diagram;Jt.startTransaction("align Row");var Et=new Array;Jt.selection.each(function(fn){fn instanceof go.Link||Et.push(fn)});for(var ln=0;ln<Et.length-1;ln++){var Pn=Et[ln],$t=Pn.actualBounds.x+Pn.actualBounds.width+qt,It=Et[ln+1];It.move(new go.Point($t,Pn.actualBounds.y))}Jt.commitTransaction("align Row")},wt.prototype.canRotate=function(qt){var Jt=this.diagram;return!(Jt===null||Jt.isReadOnly||Jt.isModelReadOnly||Jt.selection.count<1)},wt.prototype.rotate=function(qt){qt===void 0&&(qt=90);var Jt=this.diagram;Jt.startTransaction("rotate "+qt.toString());var Jt=this.diagram;Jt.selection.each(function(Et){Et instanceof go.Link||Et instanceof go.Group||(Et.angle+=qt)}),Jt.commitTransaction("rotate "+qt.toString())},wt.prototype.pullToFront=function(){var qt=this.diagram;qt.startTransaction("pullToFront");var Jt=new go.Map;qt.selection.each(function(Et){Jt.set(Et.layer,0)}),Jt.iteratorKeys.each(function(Et){var ln=0;Et.parts.each(function(Pn){if(!Pn.isSelected){var $t=Pn.zOrder;isNaN($t)?Pn.zOrder=0:ln=Math.max(ln,$t)}}),Jt.set(Et,ln)}),qt.selection.each(function(Et){wt._assignZOrder(Et,Jt.get(Et.layer)+1)}),qt.commitTransaction("pullToFront")},wt.prototype.pushToBack=function(){var qt=this.diagram;qt.startTransaction("pushToBack");var Jt=new go.Map;qt.selection.each(function(Et){Jt.set(Et.layer,0)}),Jt.iteratorKeys.each(function(Et){var ln=0;Et.parts.each(function(Pn){if(!Pn.isSelected){var $t=Pn.zOrder;isNaN($t)?Pn.zOrder=0:ln=Math.min(ln,$t)}}),Jt.set(Et,ln)}),qt.selection.each(function(Et){wt._assignZOrder(Et,Jt.get(Et.layer)-1-wt._findGroupDepth(Et))}),qt.commitTransaction("pushToBack")},wt._assignZOrder=function(qt,Jt,Et){Et===void 0&&(Et=qt),qt.layer===Et.layer&&(qt.zOrder=Jt),qt instanceof go.Group&&qt.memberParts.each(function(ln){wt._assignZOrder(ln,Jt+1,Et)})},wt._findGroupDepth=function(qt){if(qt instanceof go.Group){var Jt=0;return qt.memberParts.each(function(Et){Jt=Math.max(Jt,wt._findGroupDepth(Et))}),Jt+1}else return 0},wt.prototype.doKeyDown=function(){var qt=this.diagram;if(qt!==null){var Jt=qt.lastInput;if(Jt.key==="Up"||Jt.key==="Down"||Jt.key==="Left"||Jt.key==="Right"){var Et=this.arrowKeyBehavior;if(Et==="none")return;if(Et==="select"){this._arrowKeySelect();return}else if(Et==="move"){this._arrowKeyMove();return}else if(Et==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},wt.prototype._getAllParts=function(){var qt=new Array;return this.diagram.nodes.each(function(Jt){qt.push(Jt)}),this.diagram.parts.each(function(Jt){qt.push(Jt)}),qt},wt.prototype._arrowKeyMove=function(){var qt=this.diagram,Jt=qt.lastInput,Et=0,ln=0;if(Jt.control||Jt.meta)Et=1,ln=1;else if(qt.grid!==null){var Pn=qt.grid.gridCellSize;ln=Pn.width,Et=Pn.height}qt.startTransaction("arrowKeyMove"),qt.selection.each(function($t){Jt.key==="Up"?$t.move(new go.Point($t.actualBounds.x,$t.actualBounds.y-Et)):Jt.key==="Down"?$t.move(new go.Point($t.actualBounds.x,$t.actualBounds.y+Et)):Jt.key==="Left"?$t.move(new go.Point($t.actualBounds.x-ln,$t.actualBounds.y)):Jt.key==="Right"&&$t.move(new go.Point($t.actualBounds.x+ln,$t.actualBounds.y))}),qt.commitTransaction("arrowKeyMove")},wt.prototype._arrowKeySelect=function(){var qt=this.diagram,Jt=qt.lastInput,Et=null;Jt.key==="Up"?Et=this._findNearestPartTowards(270):Jt.key==="Down"?Et=this._findNearestPartTowards(90):Jt.key==="Left"?Et=this._findNearestPartTowards(180):Jt.key==="Right"&&(Et=this._findNearestPartTowards(0)),Et!==null&&(Jt.shift?Et.isSelected=!0:Jt.control||Jt.meta?Et.isSelected=!Et.isSelected:qt.select(Et))},wt.prototype._findNearestPartTowards=function(qt){var Jt=this.diagram.selection.first();if(Jt===null)return null;for(var Et=Jt.actualBounds.center,ln=this._getAllParts(),Pn=1/0,$t=Jt,It=0;It<ln.length;It++){var fn=ln[It];if(fn!==Jt&&fn.canSelect()){var un=fn.actualBounds.center,Gn=Et.directionPoint(un),Xn=this._angleCloseness(Gn,qt);if(Xn<=45){var Ht=Et.distanceSquaredPoint(un);Ht*=1+Math.sin(Xn*Math.PI/180),Ht<Pn&&(Pn=Ht,$t=fn)}}}return $t},wt.prototype._angleCloseness=function(qt,Jt){return Math.min(Math.abs(Jt-qt),Math.min(Math.abs(Jt+360-qt),Math.abs(Jt-360-qt)))},wt.prototype._arrowKeyTree=function(){var qt=this.diagram,Jt=qt.selection.first();if(Jt instanceof go.Node){var Et=qt.lastInput;if(Et.key==="Right"){if(!Jt.isTreeLeaf)if(!Jt.isTreeExpanded)qt.commandHandler.canExpandTree(Jt)&&qt.commandHandler.expandTree(Jt);else{var ln=this._sortTreeChildrenByY(Jt).first();ln!==null&&qt.select(ln)}}else if(Et.key==="Left")if(!Jt.isTreeLeaf&&Jt.isTreeExpanded)qt.commandHandler.canCollapseTree(Jt)&&qt.commandHandler.collapseTree(Jt);else{var Pn=Jt.findTreeParentNode();Pn!==null&&qt.select(Pn)}else if(Et.key==="Up"){var Pn=Jt.findTreeParentNode();if(Pn!==null){var $t=this._sortTreeChildrenByY(Pn),It=$t.indexOf(Jt);if(It>0){for(var fn=$t.elt(It-1);fn!==null&&fn.isTreeExpanded&&!fn.isTreeLeaf;){var un=this._sortTreeChildrenByY(fn);fn=un.last()}fn!==null&&qt.select(fn)}else qt.select(Pn)}}else if(Et.key==="Down")if(Jt.isTreeExpanded&&!Jt.isTreeLeaf){var ln=this._sortTreeChildrenByY(Jt).first();ln!==null&&qt.select(ln)}else for(;Jt!==null;){var Pn=Jt.findTreeParentNode();if(Pn===null)break;var $t=this._sortTreeChildrenByY(Pn),It=$t.indexOf(Jt);if(It<$t.length-1){qt.select($t.elt(It+1));break}else Jt=Pn}var Gn=qt.selection.first();Gn!==null&&qt.scrollToRect(Gn.actualBounds)}},wt.prototype._sortTreeChildrenByY=function(qt){var Jt=new go.List().addAll(qt.findTreeChildrenNodes());return Jt.sort(function(Et,ln){var Pn=Et.location,$t=ln.location;return Pn.y<$t.y?-1:Pn.y>$t.y?1:Pn.x<$t.x?-1:Pn.x>$t.x?1:0}),Jt},wt.prototype.copyToClipboard=function(qt){go.CommandHandler.prototype.copyToClipboard.call(this,qt),this._lastPasteOffset.set(this.pasteOffset)},wt.prototype.pasteFromClipboard=function(){var qt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(qt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),qt},Object.defineProperty(wt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(qt){if(qt!=="move"&&qt!=="select"&&qt!=="scroll"&&qt!=="tree"&&qt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+qt);this._arrowKeyBehavior=qt}}),Object.defineProperty(wt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(qt){if(!(qt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+qt);this._pasteOffset.set(qt)}});var at=wt,Ye=$e(74413),Pe=$e(43604),Te=$e(99064),Ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ze=$e(24065),Ee=$e(59301),He=(qt,Jt,Et)=>new Promise((ln,Pn)=>{var $t=un=>{try{fn(Et.next(un))}catch(Gn){Pn(Gn)}},It=un=>{try{fn(Et.throw(un))}catch(Gn){Pn(Gn)}},fn=un=>un.done?ln(un.value):Promise.resolve(un.value).then($t,It);fn((Et=Et.apply(qt,Jt)).next())});function We({onCancel:qt,callback:Jt}){let Et=(0,tt.useRef)(),ln=(0,tt.useRef)(),Pn=(0,tt.useRef)(),$t=(0,tt.useRef)(!1);const It=(0,tt.useRef)(!1),[fn,un]=(0,tt.useState)(0);function Gn(){const Ht=St.bx.make,kn={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"};Et.current=new St.S0(ln.current,{padding:20,grid:Ht(St.s_,"Grid",Ht(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ht(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Jn=>{var sr=Jn.diagram.commandHandler.addTopLevelParts(Jn.diagram.selection,!0);sr||Jn.diagram.currentTool.doCancel()},commandHandler:Ht(at),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Jn=>{var sr=Jn.subject;sr.location=sr.location.copy().snapToGridPoint(Jn.diagram.grid.gridOrigin,Jn.diagram.grid.gridCellSize),setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Jn=>{var sr=Jn.subject;setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Jn=>{var sr=Jn.parameter.part;sr.invalidateConnectedLinks();var Sr=Jn.subject;Jn.diagram.toolManager.linkingTool.isForwards?Sr.toNode.invalidateConnectedLinks():Sr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Et.current.nodeTemplate=Ht(St.NB,"Auto",{locationSpot:St.z6.Center,locationObjectName:"SHAPE",desiredSize:new St.$u(120,60),minSize:new St.$u(40,40),resizable:!0,resizeCellSize:new St.$u(10,10),rotatable:!0},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),new St.KX("desiredSize","size",St.$u.parse).makeTwoWay(St.$u.stringify),Ht(St.bn,{name:"SHAPE",fill:kn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("figure"),new St.KX("fill"),new St.KX("stroke","borderColor"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ht(St.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ht(St.al,{margin:1,textAlign:"center",overflow:St.al.OverflowEllipsis,editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Et.current.nodeTemplate.toolTip=Ht("ToolTip",Ht(St.s_,"Vertical",{maxSize:new St.$u(200,NaN)},Ht(St.al,{font:"bold 10pt sans-serif",textAlign:"center"},new St.KX("text")),Ht(St.al,{font:"10pt sans-serif",textAlign:"center"},new St.KX("text","details"))));function Wn(Jn,sr){var Sr=(mr,$r)=>{mr.handled=!0,mr.diagram.model.commit(ri=>{var Rr=$r.part.adornedPart,br=new St.E9().setRectSpot(Rr.actualBounds,Jn);br.subtract(Rr.location),br.scale(2,2),br.x+=Math.sign(br.x)*130,br.y+=Math.sign(br.y)*130,br.add(Rr.location),br.snapToGridPoint(mr.diagram.grid.gridOrigin,mr.diagram.grid.gridCellSize);var ur=ri.copyNodeData(Rr.data);ri.setGroupKeyForNodeData(ur,ri.getGroupKeyForNodeData(Rr.data)),ri.addNodeData(ur);var vn={from:Rr.key,to:ri.getKeyForNodeData(ur)};ri.addLinkData(vn);var cr=mr.diagram.findNodeForData(ur);cr.location=br,mr.diagram.select(cr),setTimeout(()=>{mr.diagram.commandHandler.editTextBlock()},20)})};return Ht(St.bn,{figure:sr,alignment:Jn,alignmentFocus:Jn.opposite(),width:Jn.equals(St.z6.Top)||Jn.equals(St.z6.Bottom)?25:18,height:Jn.equals(St.z6.Top)||Jn.equals(St.z6.Bottom)?18:25,fill:"orange",stroke:kn.white,strokeWidth:4,mouseEnter:(mr,$r)=>$r.fill="dodgerblue",mouseLeave:(mr,$r)=>$r.fill="orange",isActionable:!0,click:Sr,contextClick:Sr})}function lr(Jn){return Ht(St.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:(sr,Sr)=>Sr.fill="dodgerblue",mouseLeave:(sr,Sr)=>Sr.fill="orange",click:(sr,Sr)=>{sr.diagram.commandHandler.showContextMenu(Sr.part.adornedPart)}},Jn||{})}Et.current.nodeTemplate.selectionAdornmentTemplate=Ht(St.uz,"Spot",Ht(St.Vm,{padding:10}),Wn(St.z6.Top,"TriangleUp"),Wn(St.z6.Left,"TriangleLeft"),Wn(St.z6.Right,"TriangleRight"),Wn(St.z6.Bottom,"TriangleDown"),lr({alignment:new St.z6(.75,0)}));function on(Jn,sr){return(Sr,mr)=>{Sr.handled=!0,Sr.diagram.model.commit($r=>{$r.set(mr.part.adornedPart.data,Jn,sr)})}}function Mn(Jn,sr){return sr||(sr="color"),Ht(St.bn,{width:16,height:16,stroke:"lightgray",fill:Jn,margin:1,background:"transparent",mouseEnter:(Sr,mr)=>mr.stroke="dodgerblue",mouseLeave:(Sr,mr)=>mr.stroke="lightgray",click:on(sr,Jn),contextClick:on(sr,Jn)})}function an(){return[Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Mn(kn.white,"fill"),Mn(kn.beige,"fill"),Mn(kn.extralightblue,"fill"),Mn(kn.extralightred,"fill"))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Mn(kn.lightgray,"fill"),Mn(kn.lightgreen,"fill"),Mn(kn.lightblue,"fill"),Mn(kn.lightred,"fill")))]}function Sn(){return[Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Mn(kn.black),Mn(kn.green),Mn(kn.blue),Mn(kn.red))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Mn(kn.white),Mn(kn.magenta),Mn(kn.purple),Mn(kn.orange)))]}function gn(Jn,sr){return sr||(sr="thickness"),Ht(St.bn,"LineH",{width:16,height:16,strokeWidth:Jn,margin:1,background:"transparent",mouseEnter:(Sr,mr)=>mr.background="dodgerblue",mouseLeave:(Sr,mr)=>mr.background="transparent",click:on(sr,Jn),contextClick:on(sr,Jn)})}function yn(Jn,sr){return sr||(sr="dash"),Ht(St.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Jn,margin:1,background:"transparent",mouseEnter:(Sr,mr)=>mr.background="dodgerblue",mouseLeave:(Sr,mr)=>mr.background="transparent",click:on(sr,Jn),contextClick:on(sr,Jn)})}function On(){return[Ht("ContextMenuButton",Ht(St.s_,"Horizontal",gn(1),gn(2),gn(3),gn(4))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",yn(null),yn([2,4]),yn([4,4])))]}function Nn(Jn,sr){return sr||(sr="figure"),Ht(St.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Jn,margin:1,background:"transparent",mouseEnter:(Sr,mr)=>mr.fill="dodgerblue",mouseLeave:(Sr,mr)=>mr.fill="lightgray",click:on(sr,Jn),contextClick:on(sr,Jn)})}Et.current.nodeTemplate.contextMenu=Ht("ContextMenu",Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Nn("Rectangle"),Nn("RoundedRectangle"),Nn("Ellipse"),Nn("Diamond"))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Nn("Parallelogram2"),Nn("ManualOperation"),Nn("Procedure"),Nn("Cylinder1"))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Nn("Terminator"),Nn("CreateRequest"),Nn("Document"),Nn("TriangleDown"))),an(),Sn(),On()),Et.current.groupTemplate=Ht(St.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:St.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Jn,sr)=>{var Sr=sr.addMembers(sr.diagram.selection,!0);Sr||sr.diagram.currentTool.doCancel()},avoidable:!1},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),Ht(St.s_,"Auto",{name:"BODY"},Ht(St.bn,{parameter1:10,fill:kn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("fill"),new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ht(St.Vm,{background:"transparent",margin:20})),Ht(St.al,{alignment:St.z6.Top,alignmentFocus:St.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new St.KX("text"),new St.KX("stroke","color"))),Et.current.groupTemplate.selectionAdornmentTemplate=Ht(St.uz,"Spot",Ht(St.s_,"Auto",Ht(St.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ht(St.Vm,{margin:1.5})),lr({alignment:St.z6.TopRight,alignmentFocus:St.z6.BottomRight})),Et.current.groupTemplate.contextMenu=Ht("ContextMenu",an(),Sn(),On()),Et.current.linkTemplate=Ht(St.rU,{layerName:"Foreground",routing:St.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new St.KX("fromSpot","fromSpot",St.z6.parse),new St.KX("toSpot","toSpot",St.z6.parse),new St.KX("fromShortLength","dir",Jn=>Jn>=1?10:0),new St.KX("toShortLength","dir",Jn=>Jn>=1?10:0),new St.KX("points").makeTwoWay(),Ht(St.bn,{strokeWidth:2},new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ht(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,0),segmentOrientation:St.rU.OrientAlong,alignmentFocus:St.z6.Right,figure:"circle",width:10,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Jn=>Jn===1)),Ht(St.bn,{segmentIndex:-1,segmentOffset:new St.E9(-10,6),segmentOrientation:St.rU.OrientPlus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Jn=>Jn>=1),new St.KX("width","thickness",Jn=>7+3*Jn),new St.KX("height","thickness",Jn=>7+3*Jn),new St.KX("segmentOffset","thickness",Jn=>new St.E9(-15,4+1.5*Jn))),Ht(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,-6),segmentOrientation:St.rU.OrientMinus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Jn=>Jn===2),new St.KX("width","thickness",Jn=>7+3*Jn),new St.KX("height","thickness",Jn=>7+3*Jn),new St.KX("segmentOffset","thickness",Jn=>new St.E9(-15,4+1.5*Jn))),Ht(St.al,{alignmentFocus:new St.z6(0,1,-4,0),editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Et.current.linkTemplate.selectionAdornmentTemplate=Ht(St.uz,Ht(St.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Fn(2)},new St.KX("pathPattern","thickness",Fn)),lr({alignmentFocus:new St.z6(0,0,-6,-4)}));function Fn(Jn){return Ht(St.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Jn+4).toString()+" H3"})}function zn(Jn){var sr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Jn===0?sr="M0 0 M16 16 M0 8 L16 8":Jn===2&&(sr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ht(St.bn,{geometryString:sr,margin:2,background:"transparent",mouseEnter:(Sr,mr)=>mr.background="dodgerblue",mouseLeave:(Sr,mr)=>mr.background="transparent",click:on("dir",Jn),contextClick:on("dir",Jn)})}function xr(Jn){var sr=(Sr,mr)=>{Sr.handled=!0,Sr.diagram.model.commit($r=>{var ri=mr.part.adornedPart;$r.set(ri.data,Jn?"toSpot":"fromSpot",St.z6.stringify(St.z6.AllSides)),(Jn?ri.toNode:ri.fromNode).invalidateConnectedLinks()})};return Ht(St.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Sr,mr)=>mr.background="dodgerblue",mouseLeave:(Sr,mr)=>mr.background="transparent",click:sr,contextClick:sr})}function mn(Jn,sr){var Sr=0,mr=St.z6.RightSide;Jn.equals(St.z6.Top)?(Sr=270,mr=St.z6.TopSide):Jn.equals(St.z6.Left)?(Sr=180,mr=St.z6.LeftSide):Jn.equals(St.z6.Bottom)&&(Sr=90,mr=St.z6.BottomSide),sr||(Sr-=180);var $r=(ri,Rr)=>{ri.handled=!0,ri.diagram.model.commit(br=>{var ur=Rr.part.adornedPart;br.set(ur.data,sr?"toSpot":"fromSpot",St.z6.stringify(mr)),(sr?ur.toNode:ur.fromNode).invalidateConnectedLinks()})};return Ht(St.bn,{alignment:Jn,alignmentFocus:Jn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Sr,background:"transparent",mouseEnter:(ri,Rr)=>Rr.background="dodgerblue",mouseLeave:(ri,Rr)=>Rr.background="transparent",click:$r,contextClick:$r})}Et.current.linkTemplate.contextMenu=Ht("ContextMenu",Sn(),On(),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",zn(0),zn(1),zn(2))),Ht("ContextMenuButton",Ht(St.s_,"Horizontal",Ht(St.s_,"Spot",xr(!1),mn(St.z6.Top,!1),mn(St.z6.Left,!1),mn(St.z6.Right,!1),mn(St.z6.Bottom,!1)),Ht(St.s_,"Spot",{margin:new St.Zt(0,0,0,2)},xr(!0),mn(St.z6.Top,!0),mn(St.z6.Left,!0),mn(St.z6.Right,!0),mn(St.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 Yr=["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 Br(Jn){return console.log("shapeName:",Jn),Yr.indexOf(Jn)>=0}var bn=new St.YI(Pn.current,{maxSelectionCount:1,linkTemplate:Ht(St.rU,{locationSpot:St.z6.Center,selectionAdornmentTemplate:Ht(St.uz,"Link",{locationSpot:St.z6.Center},Ht(St.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ht(St.bn,{toArrow:"Standard",stroke:null}))},{routing:St.rU.AvoidsNodes,curve:St.rU.JumpOver,corner:5,toShortLength:4},new St.KX("points"),Ht(St.bn,{isPanelMain:!0,strokeWidth:2}),Ht(St.bn,{toArrow:"Standard",stroke:null})),model:new St.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...St.bn.getFigureGenerators().toArray().map(Jn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Jn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Et.current.addDiagramListener("TextEdited",function(Jn){var sr;const Sr=Jn.subject.part;var mr=(sr=document.activeElement)==null?void 0:sr.value;typeof mr=="string"&&mr.trim()===""&&Et.current.model.commit(function($r){$r.set(Sr.data,"text","\u672A\u547D\u540D"),Et.current.commandHandler.stopCommand()},"increment")}),bn.nodeTemplate=Ht(St.NB,"Auto",{locationSpot:St.z6.Center},new St.KX("location","location",St.E9.parse).makeTwoWay(St.E9.stringify),Ht(St.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 St.KX("stroke").makeTwoWay(),new St.KX("fill").makeTwoWay(),new St.KX("figure")),Ht(St.al,{margin:new St.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new St.$u(16,16),maxSize:new St.$u(10,NaN),textAlign:"center",editable:!0},new St.KX("key").makeTwoWay())),setTimeout(()=>{Et.current.grid=Ht(St.s_,"Grid",Ht(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ht(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Et.current.grid.visible=!0,Et.current.grid.gridCellStroke="darkgray",Et.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Et.current,Et.current}const Xn=()=>He(this,null,function*(){var Ht,kn=Et.current.makeImage();const Wn=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:kn.src,file_data:JSON.stringify({login:(Ht=(0,Ze.eY)())==null?void 0:Ht.login,data:JSON.parse(Et.current.model.toJson())})}});Jt({src:Wn.url})});return(0,tt.useEffect)(()=>(setTimeout(()=>{Gn()},500),un(fn+1),()=>{Et.current=null}),[]),Ee.createElement("div",{ref:It,className:$t.current?`${Ve.maxH60} body-overflow-initial`:"body-overflow-initial"},Ee.createElement(gt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!fn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ee.createElement(mt.Z,null,Ee.createElement(Pe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ee.createElement(Pe.Z,{onClick:()=>{var Ht,kn,Wn=Et.current.selection.first();if($t.current=!$t.current,document.activeElement&&Wn){let lr=(kn=(Ht=document.activeElement)==null?void 0:Ht.value)==null?void 0:kn.trim();typeof lr=="string"&&Et.current.model.commit(function(on){on.set(Wn.data,"text",lr||"\u672A\u547D\u540D"),Et.current.commandHandler.stopCommand()},"increment")}un(fn+1)}},Ee.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:qt},Ee.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ve.flowChartWrp},Ee.createElement("div",{style:{display:"flex",height:"100%"}},Ee.createElement("div",{style:{width:"300px",height:"100%"}},Ee.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ee.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ve.myPaletteDiv,ref:Pn})),Ee.createElement("div",{style:{flex:1,position:"relative"}},Ee.createElement("div",{ref:ln,style:{height:"80vh"}}))),Ee.createElement("div",{className:"tr"},Ee.createElement(_e.ZP,{size:"large",onClick:Xn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ke=We,Je=$e(5112),dt=$e(5871);const Ct=Je.ZP.Group,ht={margin:"0 8px"};var Lt=({callback:qt,onCancel:Jt})=>{function Et(ln){qt(ln)}return tt.createElement(Ae.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Et},tt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},tt.createElement("span",{style:ht},"\u5355\u5143\u683C\u6570\uFF1A"),tt.createElement("span",{style:ht},"\u884C\u6570"),tt.createElement(Ae.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},tt.createElement(dt.Z,null)),tt.createElement("span",{style:ht},"\u5217\u6570"),tt.createElement(Ae.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},tt.createElement(dt.Z,null))),tt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},tt.createElement("span",{style:ht},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),tt.createElement(Ae.default.Item,{name:"align"},tt.createElement(Ct,null,tt.createElement(Je.ZP,{value:"default"},tt.createElement("i",{className:"fa fa-align-justify"})),tt.createElement(Je.ZP,{value:"left"},tt.createElement("i",{className:"fa fa-align-left"})),tt.createElement(Je.ZP,{value:"center"},tt.createElement("i",{className:"fa fa-align-center"})),tt.createElement(Je.ZP,{value:"right"},tt.createElement("i",{className:"fa fa-align-right"}))))),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(_e.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},en=$e(78673),Vt=$e(80727),Kt=$e.n(Vt),rn=(0,tt.forwardRef)(({use3d:qt,width:Jt,height:Et,callback:ln,showSaveButton:Pn},$t)=>{const It=(0,tt.useRef)(),fn=(0,tt.useRef)(),[un,Gn]=(0,tt.useState)(!1),Xn=(0,tt.useRef)({id:It,appName:"graphing",width:Jt||1e3,height:Et||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,tt.useEffect)(()=>{fn.current=new(Kt())(Xn.current,!0),window.onload=function(){fn.current.inject("applet_container")}},[]);const Ht=()=>{var kn=window.ggbApplet.getPNGBase64(1,!0,72);return ln&&ln(kn),kn};return(0,tt.useEffect)(()=>{Xn.current.appName=un?"3D":"graphing",fn.current.inject("applet_container")},[un]),(0,tt.useEffect)(()=>{Gn(qt)},[qt]),(0,tt.useImperativeHandle)($t,()=>({getImgData:Ht})),tt.createElement(tt.Fragment,null,tt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:It}),tt.createElement(mt.Z,{align:"middle"},tt.createElement(Pe.Z,{flex:1},tt.createElement(en.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:un,onChange:kn=>Gn(kn)})),tt.createElement(Pe.Z,null,tt.createElement(_e.ZP,{size:"large",onClick:Ht,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ft=$e(41588),Xt=$e(8591);const tn="link",dn="upload-image",En="add-flowchart",An="draw-image",ar="add-flowchart",tr="code-block",Tr="add-table",Vn="------------",Or={default:Vn,left:`:${Vn}`,center:`:${Vn}:`,right:`${Vn}:`};var Dr=$e(58856);function Jr(){}let ni=0;const Nr=1e4,di="\u2581",Ir="@\u2581\u2581@",ot="@\u2581@",Ci=`
|
|
|
**\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`,xi=["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 pr(qt){return/^\d+$/.test(qt)?`${qt}px`:qt}const Ar=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Li={[Ar+"-B"]:"bold",[Ar+"-I"]:"italic"},nr={[tn]:"\u6DFB\u52A0\u94FE\u63A5",[tr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[dn]:"\u6DFB\u52A0\u56FE\u7247",[An]:"\u6DFB\u52A0\u753B\u56FE",[En]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Tr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var or=({defaultValue:qt="",onChange:Jt,width:Et="100%",height:ln=400,miniToolbar:Pn=!1,isFocus:$t=!1,watch:It,insertTemp:fn,mode:un="markdown",id:Gn="markdown-editor-id",showResizeBar:Xn=!1,noStorage:Ht=!1,showNullButton:kn=!1,showNullProgramButton:Wn=!1,hidetoolBar:lr=!1,fullScreen:on=!1,onBlur:Mn,onCMBeforeChange:an,onFullScreen:Sn,className:gn="",disablePaste:yn=!1,disabled:On=!1,disabledFill:Nn=!1,placeholder:Fn="",values:zn="",extraUse:xr})=>{const[mn,Fr]=(0,tt.useState)(null),[Yr,Br]=(0,tt.useState)(qt),[bn,Jn]=(0,tt.useState)(It),[sr,Sr]=(0,tt.useState)(on),[mr,$r]=(0,tt.useState)(""),[ri,Rr]=(0,tt.useState)(0),[br,ur]=(0,tt.useState)(ln),[vn,cr]=(0,tt.useState)(!1),[xn,zr]=(0,tt.useState)(0),[$i,Mi]=(0,tt.useState)(0),yo=(0,tt.useRef)(),no=(0,tt.useRef)(),Wr=(0,tt.useRef)(),Hr=(0,tt.useRef)();(0,tt.useEffect)(()=>{const Kr=window.scrollY||window.pageYOffset;Br(zn),mn==null||mn.setValue(zn),window.scrollTo(0,Kr)},[zn]),(0,tt.useEffect)(()=>{Sn==null||Sn(sr)},[sr]),(0,tt.useEffect)(()=>{if(yo.current){let Kr=function(Yn,ci){var ro;if(yn){ci.preventDefault();return}const Wo=ci.clipboardData;if(Wo){const _o=Wo.types.toString(),Xo=Wo.items;if(_o==="Files"||Wo.types.indexOf("Files")>-1){if(ci.preventDefault(),un=="stex")return;try{let Pa=Xo[1];((ro=Xo[0])==null?void 0:ro.kind)==="file"&&(Pa=Xo[0]);const na=Pa.getAsFile(),os=na.name.split(".").pop();(0,ft.I)(na,Da=>{var fs,Ln,Fa;Da.id?((fs=na==null?void 0:na.type)==null?void 0:fs.indexOf("image"))>-1?Vr.replaceSelection(`<img width="100%" src="/api/attachments/${Da.id}?type=${Da.content_type})" alt="" />`):((Ln=na==null?void 0:na.type)==null?void 0:Ln.indexOf("video"))>-1?Vr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Da.id}"></video>`):((Fa=na==null?void 0:na.type)==null?void 0:Fa.indexOf("pdf"))>-1?Vr.replaceSelection(`<a href="/api/attachments/${Da.id}?type=${na.type}&disposition=inline" target="_blank">${na.name}</a>`):xi.includes(os)?Vr.replaceSelection(`<a href="/api/attachments/${Da.id}?type=office&disposition=inline" target="_blank">${na.name}</a>`):Vr.replaceSelection(`[${na.name}](/api/attachments/${Da.id}?type=${Da.content_type})`):(Da==null?void 0:Da.status)===401&&(document.location.href="/user/login")})}catch(Pa){Xt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Vr=oe().fromTextArea(yo.current,{mode:un,lineNumbers:!Pn,lineWrapping:!0,value:qt,autoCloseTags:!0,autoCloseBrackets:!0});return Vr.on("keyup",function(Yn,ci){ci.keyCode===8&&(Yn.getValue()==""?Vr.setOption("placeholder",Fn):Vr.setOption("placeholder",null))}),Vr.on("keydown",function(Yn,ci){if(ci.keyCode===8){var ro=vi(Yn);ro&&ci.preventDefault()}}),$t&&Vr.focus(),Vr.on("paste",Kr),On&&Vr.on("beforeChange",function(Yn,ci){(ci.origin==="paste"||ci.origin==="+input")&&ci.cancel()}),Fr(Vr),()=>{Vr.off("paste",Kr)}}},[]);const wi=(0,tt.useCallback)(()=>{if(no.current)try{}catch(Kr){console.log(Kr,"---- to set md editor body height")}},[br,no,sr]);(0,tt.useEffect)(()=>{function Kr(){let Vr=new Ge.Z(Yn=>{for(let ci of Yn)(ci.target.offsetHeight>0||ci.target.offsetWidth>0)&&(wi(),mn.setSize("100%","100%"),mn.refresh())});return Vr.observe(yo.current.parentElement),Vr}if(mn){const Vr=Kr();return()=>{var Yn,ci;(Yn=yo.current)!=null&&Yn.parentElement&&Vr.unobserve((ci=yo.current)==null?void 0:ci.parentElement)}}},[mn,wi]),(0,tt.useEffect)(()=>{if(mn){let Kr=[];for(const[Vr,Yn]of Object.entries(Li)){let ci={[Vr]:()=>{fr(Yn)}};Kr.push(ci),mn.addKeyMap(ci)}return()=>{for(let Vr of Kr)mn.removeKeyMap(Vr)}}},[mn]),(0,tt.useEffect)(()=>{on!==sr&&Sr(on)},[on]),(0,Dr.Z)(()=>{if(!Ht&&ri>0){let Kr=new Date().getTime(),Vr=window.sessionStorage.getItem(Gn);Kr>=ri+Nr&&(!Vr||Vr!==Yr)&&(window.sessionStorage.setItem(Gn,Yr),cr(!0))}},Nr),(0,tt.useEffect)(()=>{Jn(It)},[mn,It]),(0,tt.useEffect)(()=>{mn&&$t&&mn.focus()},[mn,$t]),(0,tt.useEffect)(()=>{if(bn&&mn){let Kr=function(Yn){let ci=Yn.target;if(Hr.current){let ro=ci.scrollTop/ci.scrollHeight;Hr.current.scrollTop=Hr.current.scrollHeight*ro}};const Vr=mn.getScrollerElement();return Vr.addEventListener("scroll",Kr),()=>{Vr.removeEventListener("scroll",Kr)}}},[mn,bn]),(0,tt.useEffect)(()=>{if(mn&&an){let Kr=function(Vr,Yn){an(Vr,Yn)};return mn.on("beforeChange",Kr),()=>{mn.off("beforeChange",Kr)}}},[mn,an]),(0,tt.useEffect)(()=>{if(mn&&Mn){let Kr=function(){Mn(mn.getValue())};return mn.on("blur",Kr),()=>{mn.off("blur",Kr)}}},[mn,Mn]);function vi(Kr,Vr){var Yn=Kr.getDoc(),ci=Yn.getCursor(),ro=Yn.getLine(ci.line),Wo=ro.charAt(ci.ch-1),_o=ro.lastIndexOf("@\u2581@",ci.ch),Xo=ro.lastIndexOf("@\u2581\u2581@",ci.ch),Pa=_o>Xo?_o:Xo,na=_o>Xo?3:4;if(Ir.indexOf(Wo)===-1)return null;if(console.log("change1:",Vr,Kr,ro,ci,Pa,_o,Xo,Wo),Pa>=0&&ci.ch-Pa<5){var os=Pa+na;return Yn.replaceRange("",{line:ci.line,ch:Pa},{line:ci.line,ch:os}),{line:ci.line,ch:os}}return null}(0,tt.useEffect)(()=>{if(mn){let Kr=function(Vr,Yn){const ci=Vr.getValue();Br(ci),Rr(new Date().getTime()),Vr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Jt&&(Wn?Jt(ci,ii(ci)):Jt(ci))};return mn.on("change",Kr),()=>{mn.off("change",Kr)}}},[mn,Jt]),(0,tt.useEffect)(()=>{if(mn)if(qt==null)mn.setValue(""),Br("");else{const Kr=window.scrollY||window.pageYOffset;qt!==mn.getValue()&&(mn.setValue(qt),Br(qt),mn.setCursor(On?1:mn.lineCount(),0),window.scrollTo(0,Kr))}},[mn,qt]);const fr=(0,tt.useCallback)(Kr=>{const Vr=mn.getCursor(),Yn=mn.getSelection();let ci=Yn.split(`
|
|
|
`);switch(Kr){case"bold":return mn.replaceSelection("**"+Yn+"**"),Yn===""&&mn.setCursor(Vr.line,Vr.ch+2),mn.focus();case"italic":return mn.replaceSelection("*"+Yn+"*"),Yn===""&&mn.setCursor(Vr.line,Vr.ch+1),mn.focus();case"code":return mn.replaceSelection("`"+Yn+"`"),Yn===""&&mn.setCursor(Vr.line,Vr.ch+1),mn.focus();case"inline-latex":return $r("inline-latex"),mn.focus();case"latex":return mn.replaceSelection("```latex\n"+Yn+"\n```"),mn.setCursor(Vr.line+1,Yn.length+1),mn.focus();case"line-break":return mn.replaceSelection(`<br/>
|
|
|
`),mn.focus();case"list-ul":return Yn===""?mn.replaceSelection("- "+Yn):mn.replaceSelection(ci.map(ro=>ro===""?"":`- ${ro}`).join(`
|
|
|
`)),mn.focus();case"list-ol":return Yn===""?mn.replaceSelection("1. "+Yn):mn.replaceSelection(ci.map((ro,Wo)=>ro===""?"":`${Wo+1}. ${ro}`).join(`
|
|
|
`)),mn.focus();case"add-null-ch":return Yn===""&&mn.setCursor(Vr.line,Vr.ch),mn.replaceSelection(di),mn.focus();case"add-signal":return Yn===""&&mn.setCursor(Vr.line,Vr.ch),mn.replaceSelection(ot),mn.focus();case"add-multiple":return Yn===""&&mn.setCursor(Vr.line,Vr.ch),mn.replaceSelection(Ir),mn.focus();case"inster-template-1":return Yn===""&&mn.setCursor(Vr.line,Vr.ch),mn.replaceSelection(Ci),mn.focus();case"eraser":return mn.setValue(""),mn.focus();case"trigger-watch":return Jn(!bn),mn.focus();case"trigger-full-screen":return Sr(!sr),mn.focus();case tn:$r(tn);return;case tr:$r(tr);return;case dn:$r(dn);return;case An:$r(An);return;case"maths-latex":$r("maths-latex");return;case En:$r(En);return;case Tr:$r(Tr);return;default:throw new Error}},[mn,bn,sr]),kt=(0,tt.useCallback)((Kr,Vr)=>{var Yn,ci,ro,Wo,_o,Xo;switch($r(""),mr){case tn:const{title:fs,link:Ln}=Kr;return mn.replaceSelection(`[${fs}](${Ln})`),mn.focus();case tr:const{language:Fa,content:rc}=Kr;return mn.replaceSelection(["```"+Fa,rc,"```"].join(`
|
|
|
`)),mn.focus();case"maths-latex":for(var Pa=atob(Kr),na=new Uint8Array(Pa.length),os=0;os<Pa.length;os++)na[os]=Pa.charCodeAt(os);var Da=new Blob([na],{type:"image/png"});(0,ft.I)(Da,bi=>{bi.id?mn.replaceSelection(``):(bi==null?void 0:bi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":mn.replaceSelection("`$$"+Kr+"$$`");break;case dn:case An:case ar:const{src:el,alt:xo}=Kr,eo=Vr,ga=(ro=(ci=(Yn=eo==null?void 0:eo.name)==null?void 0:Yn.split("."))==null?void 0:ci.pop)==null?void 0:ro.call(ci);return((Wo=eo==null?void 0:eo.type)==null?void 0:Wo.indexOf("image"))>-1||!(eo!=null&&eo.type)?eo!=null&&eo.align||eo!=null&&eo.width?mn.replaceSelection(`<p style="text-align:${eo.align||"initial"}"><img width="${eo.width?eo.width+"%":"initial"}" src="${el}" alt="${xo||""}" /></p>`):mn.replaceSelection(`<img width="100%" src="${el}" alt="${xo||""}" />`):((_o=eo==null?void 0:eo.type)==null?void 0:_o.indexOf("video"))>-1?mn.replaceSelection(`<video width="100%" controls src="${el}"></video>`):((Xo=eo==null?void 0:eo.type)==null?void 0:Xo.indexOf("pdf"))>-1?mn.replaceSelection(`<a href="${el}?type=${eo.type}&disposition=inline" target="_blank">${eo.name}</a>`):xi.includes(ga)?mn.replaceSelection(`<a href="${el}?type=office&disposition=inline" target="_blank">${eo.name}</a>`):mn.replaceSelection(`[${eo.name}](${el})`),mn.focus();case Tr:const{row:jo,col:Yi,align:No}=Kr;let xs=`
|
|
|
`;for(let bi=0;bi<jo;bi++){let so=[],io=[];for(let Lr=0;Lr<Yi;Lr++)bi===1&&io.push(Or[No]),so.push(" ");bi===1&&(xs+=`| ${io.join(" | ")} |
|
|
|
`),xs+=`| ${so.join(Yi===1?"":" | ")} |
|
|
|
`}return mn.replaceSelection(xs+`
|
|
|
`),mn.focus();default:throw new Error}},[mn,mr]),Fi=(0,tt.useMemo)(()=>{switch(mr){case tn:return tt.createElement(xt,{callback:kt,onCancel:Ki});case tr:return tt.createElement(yt.Z,{callback:kt,onCancel:Ki});case dn:return tt.createElement(ft.Z,{callback:kt,onCancel:Ki});case En:return tt.createElement(Ke,{callback:kt,onCancel:Ki});case Tr:return tt.createElement(Lt,{callback:kt,onCancel:Ki});case"maths-latex":return tt.createElement(rn,{showSaveButton:!0,callback:kt});case"inline-latex":return tt.createElement(Ft.Z,{showSaveButton:!0,callback:kt});default:return null}},[mr]);function Ki(){$r("")}(0,tt.useEffect)(()=>{if(Wr.current){let Kr=function(_o){ro=!0,Wo=_o.pageY},Vr=function(){ro=!1},Yn=function(_o){if(ro){let Xo=_o.pageY-Wo;Xo<0&&(Xo=0),Xo>300&&(Xo=300);let Pa=ln+Xo+"px";ur(Pa)}},ci=Wr.current,ro=!1,Wo=0;return ci.addEventListener("mousedown",Kr),document.addEventListener("mousemove",Yn),document.addEventListener("mouseup",Vr),()=>{ci.removeEventListener("mousedown",Kr),document.removeEventListener("mousemove",Yn),document.removeEventListener("mouseup",Vr)}}},[mn,Wr]),(0,tt.useEffect)(()=>{ur(ln)},[ln]);const gi=pr(Et),oo=pr(br),So={width:gi,height:oo},Qr=(0,tt.useMemo)(()=>{if(ri){let Kr=new Date(ri),Vr=Kr.getHours(),Yn=Kr.getMinutes(),ci=Kr.getSeconds();return Vr=Vr<10?"0"+Vr:Vr,Yn=Yn<10?"0"+Yn:Yn,ci=ci<10?"0"+ci:ci,`${Vr}:${Yn}:${ci}`}return 0},[ri]),ii=Kr=>{const Vr=[];if(Wn){let Yn=-1;Kr=Kr.replace(/(@▁▁@|@▁@)/g,function(ci,ro,Wo){Vr.push({multiLine:ci!==ot})})}return Vr};function Oi(){window.sessionStorage.removeItem(Gn),cr(!1),Rr(0)}function Pi(){cr(!1),Rr(0),mn.setValue(window.sessionStorage.getItem(Gn))}(0,tt.useEffect)(()=>{nr[mr]&&mr!==An&&mr!==En&&setTimeout(()=>{const Kr=document.getElementsByClassName("markdown-popup-form")[0],Vr=window.innerWidth/2-Kr.offsetWidth/2,Yn=window.innerHeight/2-Kr.offsetHeight/2;zr(Vr),Mi(Yn)},0)},[mr]);const co=Kr=>{Kr.preventDefault();const Vr=Kr.clientX-xn,Yn=Kr.clientY-$i;document.body.onmousemove=ci=>{let ro=ci.clientX-Vr,Wo=ci.clientY-Yn;const _o=document.getElementsByClassName("markdown-popup-form")[0],Xo=window.innerWidth-_o.offsetWidth,Pa=window.innerHeight-_o.offsetHeight;ro=Math.max(0,Math.min(ro,Xo)),Wo=Math.max(0,Math.min(Wo,Pa)),To(ci.clientX,ci.clientY,Vr,Yn)&&(zr(ro),Mi(Wo))},document.body.onmouseup=function(){document.body.onmousemove=null}},To=(Kr,Vr,Yn,ci)=>{const ro=document.body.clientHeight,Wo=document.body.clientWidth;return Kr<20&&Yn>Kr||Kr>Wo-20&&Yn<Kr||Vr<20&&ci>Vr||Vr>ro-20&&ci<Vr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return tt.createElement(tt.Fragment,null,tt.createElement("div",{className:"markdown-editor-wrapper",ref:no},tt.createElement("div",{className:`markdown-editor-container ${gn} ${bn?"on-preview":""} ${Pn?"mini":""} ${sr?"full-screen":""}`,style:So},tt.createElement(je,{insertTemp:fn,watch:bn,fullScreen:sr,showNullButton:kn,showNullProgramButton:Wn,onActionCallback:fr,hidetoolBar:lr,extraUse:xr}),tt.createElement("div",{className:"markdown-editor-body"},tt.createElement("div",{className:"codemirror-container"},tt.createElement("textarea",{ref:yo,placeholder:Fn})),bn?tt.createElement("div",{ref:Hr,className:"preview-container"},un==="stex"&&tt.createElement(ve,{value:Yr}),un!=="stex"&&tt.createElement(Oe.Z,{disabledFill:Nn,showProgramFill:Wn,value:Yr})):null))),Xn?tt.createElement("a",{ref:Wr,className:"editor-resize"}):null,mr===An&&tt.createElement(zt,{callback:kt,onCancel:Ki}),mr===En&&tt.createElement(Ke,{callback:kt,onCancel:Ki}),tt.createElement(ke.Z,null,nr[mr]&&mr!==An&&mr!==En?tt.createElement(gt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:xn,top:$i},title:tt.createElement("div",{style:{cursor:"move"},onMouseDown:co},nr[mr]),open:!0,onCancel:Ki,footer:null,destroyOnClose:!0,width:mr===En?"1200px":null,height:mr===En?"80vh":null,className:"markdown-popup-form"},Fi):null))}},28451:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Ce},I:function(){return je}});var tt=$e(78241),Pt=$e(8591),oe=$e(92832),Ge=$e(81327),De=$e(5871),me=$e(5112),ce=$e(3113),we=$e(77903),Le=$e(59301),Se=$e(59301),Oe=Object.defineProperty,ve=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(ke,Ae,Be)=>Ae in ke?Oe(ke,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[Ae]=Be,re=(ke,Ae)=>{for(var Be in Ae||(Ae={}))z.call(Ae,Be)&&ae(ke,Be,Ae[Be]);if(fe)for(var Be of fe(Ae))ee.call(Ae,Be)&&ae(ke,Be,Ae[Be]);return ke},le=(ke,Ae)=>ve(ke,xe(Ae));const{useForm:ue}=tt.default,pe={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:ke,onCancel:Ae})=>{const[Be]=ue();let _e=(0,Le.useRef)();function et(Qe){_e.current.width=Be.getFieldValue("width"),_e.current.align=Be.getFieldValue("align"),ke(Qe,_e.current)}function ze(Qe,lt){if(Qe.status===-1){Pt.ZP.error(Qe.message);return}Be.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:lt.type})}function Xe(Qe){let lt=Qe.target.files[0];_e.current=lt,je(lt,ze)}return Se.createElement(tt.default,le(re({form:Be},be),{className:"upload-image-panel",onFinish:et,style:{width:470,overflow:"hidden"}}),Se.createElement(tt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Se.createElement("div",{className:"flex-container"},Se.createElement(tt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Se.createElement(oe.default,{style:pe})),Se.createElement(Fe,{onFileChange:Xe}))),Se.createElement(tt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Se.createElement(oe.default,{style:{width:264}})),Se.createElement(tt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Se.createElement(Ge.Z,null,Se.createElement(tt.default.Item,{name:"width",style:{margin:0}},Se.createElement(De.Z,{style:{width:264}})),Se.createElement("span",{className:"ml8"},"%"))),Se.createElement(tt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Se.createElement(me.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Se.createElement("aside",null,Se.createElement(tt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Se.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Se.createElement(ce.ZP,{type:"default",onClick:Ae},"\u53D6\u6D88"))))};function Fe({onFileChange:ke}){return Se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Se.createElement("input",{type:"file",onChange:ke}))}function je(ke,Ae){if(!ke)throw new String("\u6CA1\u6709\u6587\u4EF6");let Be=new FormData;Be.append("editormd-image-file",ke),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var _e=new window.XMLHttpRequest;_e.withCredentials=!0,_e.addEventListener("load",function(et){Ae(JSON.parse(et.target.responseText),ke)},!1),_e.addEventListener("error",function(et){console.error(et)},!1),_e.open("POST",`${we.KI}/api/attachments.json`),_e.send(Be)}},79346:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return oe}});var tt=$e(59301),Pt=$e(4676);class oe extends tt.Component{constructor(De){super(De);const me=window.document;this.node=me.createElement("div"),me.body.appendChild(this.node)}render(){const{children:De}=this.props;return(0,Pt.createPortal)(De,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Rn,wn,$e){"use strict";$e.d(wn,{SV:function(){return He},ZP:function(){return Ee}});var tt=$e(59301),Pt=$e(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"]},Ge={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"]},De={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},me={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},ce={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 we=$e(53184),Le=$e.n(we),Se=Object.defineProperty,Oe=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(We,Ke,Je)=>Ke in We?Se(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Je}):We[Ke]=Je,ae=(We,Ke)=>{for(var Je in Ke||(Ke={}))fe.call(Ke,Je)&&ee(We,Je,Ke[Je]);if(xe)for(var Je of xe(Ke))z.call(Ke,Je)&&ee(We,Je,Ke[Je]);return We},re=(We,Ke)=>Oe(We,ve(Ke)),le=(We,Ke,Je)=>new Promise((dt,Ct)=>{var ht=Vt=>{try{en(Je.next(Vt))}catch(Kt){Ct(Kt)}},Lt=Vt=>{try{en(Je.throw(Vt))}catch(Kt){Ct(Kt)}},en=Vt=>Vt.done?dt(Vt.value):Promise.resolve(Vt.value).then(ht,Lt);en((Je=Je.apply(We,Ke)).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=(We,Ke)=>Ke.map(Je=>({label:Je,kind:We.languages.CompletionItemKind.Keyword,insertText:Je})),be=We=>Object.keys(ue.tables).map(Ke=>({label:Ke,kind:We.languages.CompletionItemKind.Variable,insertText:Ke})),Ce=(We,Ke)=>{const Je=ue.tables[We];return Je?Je.map(dt=>({label:dt,kind:Ke.languages.CompletionItemKind.Field,insertText:dt})):[]};function Fe(We,Ke,Je,dt,Ct){let ht=Ke.getWordUntilPosition(Je),Lt={startLineNumber:Je.lineNumber,endLineNumber:Je.lineNumber,startColumn:ht.startColumn,endColumn:ht.endColumn},en=dt.map(Vt=>({label:Vt,kind:We.languages.CompletionItemKind.Keyword,insertText:Vt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Lt}));return Ct.map(Vt=>{en.push(re(ae({},Vt),{range:Lt}))}),en}var je=We=>{ue.languages.map(Ct=>(We.languages.registerDocumentFormattingEditProvider(Ct,{provideDocumentFormattingEdits(ht,Lt,en){return le(this,null,function*(){const Vt=Le()(ht.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:ht.getFullModelRange(),text:Vt}]})}}),Ct));const Ke=De.quickKey.map(Ct=>({label:Ct.label,kind:We.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Je=me.quickKey.map(Ct=>({label:Ct.label,kind:We.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet})),dt=Ge.quickKey.map(Ct=>({label:Ct.label,kind:We.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet}));We.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn},Vt=Ct.getLineContent(ht.lineNumber).substring(Lt.startColumn-2,Lt.endColumn);return{suggestions:[...De.keywords.map(Kt=>({label:Kt,kind:We.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en})),...De.quickKey.map(Kt=>({label:Kt.label,kind:We.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}}),We.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn};return{suggestions:[...oe.keywords.map(Vt=>({label:Vt,kind:We.languages.CompletionItemKind.Function,documentation:Vt,insertText:Vt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}}),We.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn},Vt=Ct.getLineContent(ht.lineNumber).substring(Lt.startColumn-2,Lt.endColumn);return{suggestions:[...Ge.keywords.map(Kt=>({label:Kt,kind:We.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en})),...Ge.quickKey.map(Kt=>({label:Kt.label,kind:We.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}}),We.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn},Vt=Ct.getLineContent(ht.lineNumber).substring(Lt.startColumn-2,Lt.endColumn);return{suggestions:[...ce.keywords.map(Kt=>({label:Kt,kind:We.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en})),...ce.quickKey.map(Kt=>({label:Kt.label,kind:We.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}}),We.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ct,ht){var Lt=Ct.getWordUntilPosition(ht),en={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:Lt.startColumn,endColumn:Lt.endColumn},Vt=Ct.getLineContent(ht.lineNumber).substring(Lt.startColumn-2,Lt.endColumn);return{suggestions:[...me.keywords.map(Kt=>({label:Kt,kind:We.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en})),...me.quickKey.map(Kt=>({label:Kt.label,kind:We.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:en}))]}}})};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 Ae=Object.defineProperty,Be=(We,Ke,Je)=>Ke in We?Ae(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Je}):We[Ke]=Je,_e=(We,Ke,Je)=>Be(We,typeof Ke!="symbol"?Ke+"":Ke,Je);const et=class mx{constructor(Ke,Je,dt){this.placeholder=Ke,this.editor=Je,this.monaco=dt,Je.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)}};_e(et,"ID","editor.widget.placeholderHint");var Xe=et,Qe=$e(96236),lt=$e(8591),ct=$e(6848),vt=$e(89392),nt=$e(34604),it=$e(56102),pt=Object.defineProperty,xt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Nt=(We,Ke,Je)=>Ke in We?pt(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Je}):We[Ke]=Je,Tt=(We,Ke)=>{for(var Je in Ke||(Ke={}))gt.call(Ke,Je)&&Nt(We,Je,Ke[Je]);if(ft)for(var Je of ft(Ke))mt.call(Ke,Je)&&Nt(We,Je,Ke[Je]);return We},zt=(We,Ke)=>xt(We,yt(Ke)),St=(We,Ke)=>{var Je={};for(var dt in We)gt.call(We,dt)&&Ke.indexOf(dt)<0&&(Je[dt]=We[dt]);if(We!=null&&ft)for(var dt of ft(We))Ke.indexOf(dt)<0&&mt.call(We,dt)&&(Je[dt]=We[dt]);return Je},wt=(We,Ke,Je)=>new Promise((dt,Ct)=>{var ht=Vt=>{try{en(Je.next(Vt))}catch(Kt){Ct(Kt)}},Lt=Vt=>{try{en(Je.throw(Vt))}catch(Kt){Ct(Kt)}},en=Vt=>Vt.done?dt(Vt.value):Promise.resolve(Vt.value).then(ht,Lt);en((Je=Je.apply(We,Ke)).next())});function at(We){return/^\d+$/.test(We)?`${We}px`:We}function Ye(){}let Pe=!1;const Te={"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 Ve(We=[]){let Ke=We;if(Array.isArray(We)){for(let Je=0;Je<We.length;Je++){let dt=Te[We[Je]];if(dt)return dt}return Ke[0]}return Te[Ke]||Ke}let Ze=null;var Ee=We=>{var Ke=We,{width:Je="100%",height:dt="100%",value:Ct,language:ht="javascript",style:Lt={},options:en={},overrideServices:Vt={},theme:Kt="vs-dark",onEditBlur:Ut,isCopy:rn=!1,onSave:Ft,autoHeight:Xt=!1,forbidCopy:tn=!1,onChange:dn=Ye,editorDidMount:En=Ye,onFocus:An=Ye,onBreakPoint:ar=Ye,breakPointValue:tr=[],filename:Tr="educoder.txt",errorLine:Vn,errorContent:Or="",highlightLine:Dr,openBreakPoint:Jr=!1,placeholder:ni=""}=Ke,Nr=St(Ke,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const di=(0,tt.useRef)(),Ir=(0,tt.useRef)({}),ot=(0,tt.useRef)(),Ci=(0,tt.useRef)(),xi=(0,tt.useRef)([]),pr=(0,tt.useRef)(!1),Pr=(0,tt.useRef)(),Ar=(0,tt.useRef)(),Li=(0,tt.useRef)(!1),[nr,or]=(0,tt.useState)(!1);function qt(){let on;return di.current&&(on=new Pt.Z(Mn=>{for(let an of Mn)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&Ir.current.instance.layout()}),on.observe(di.current)),on}function Jt(){lt.ZP.warning({content:decodeURIComponent(ke),key:"monaco-editor-tip"})}const Et=()=>{let on=Ir.current.instance;if(Ct!=null&&on&&nr){const Mn=on.getModel();Mn&&Ct!==Mn.getValue()&&(Pe=!0,Mn.setValue(Ct),on.layout(),Pe=!1)}};(0,tt.useEffect)(()=>{const on=nt.Z.subscribe("formatDocument",Mn=>{var an;let Sn=Ir.current.instance;(an=Sn==null?void 0:Sn.getAction)==null||an.call(Sn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Mn=>{dn(Mn)},on},[]),(0,tt.useEffect)(()=>{var on;let Mn=Ir.current.instance;Ci.current&&clearTimeout(Ci.current),Ci.current=setTimeout(()=>{Et()},500),Ct&&(Ct!=null&&Ct.length)&&((on=Mn==null?void 0:Mn.updateOptions)==null||on.call(Mn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ct.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ct,nr,Ir.current]),(0,tt.useEffect)(()=>{if(Vn&&Ir.current&&Ir.current.instance){let Mn=Ir.current.instance;Mn.changeViewZones(function(an){var Sn=document.createElement("div");Sn.style.padding="10px 20px",Sn.style.width="calc(100% - 20px)",Sn.className="my-error-line-wrp",Sn.innerHTML=Or,an.addZone({afterLineNumber:Vn||11,heightInLines:3,domNode:Sn})});var on={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}};Mn.addOverlayWidget(on),Mn.revealPositionInCenter({lineNumber:20,column:1})}},[Vn,Ir.current,nr]);const ln=(on="",Mn)=>{if(!on||on.trim()==="")return!0;const Sn=Ir.current.instance.getModel().getLineTokens(Mn);let gn=!1;for(let yn=0;yn<2;yn++)Sn.getStandardTokenType(yn)===1&&(gn=!0);return gn};(0,tt.useEffect)(()=>{var on;const Mn=(on=Ir.current)==null?void 0:on.instance;if(Mn&&nr&&tn){const an=Mn.onDidBlurEditorWidget(()=>{Li.current=!1}),Sn=Mn.onDidFocusEditorText(()=>{Li.current=!0});return()=>{an.dispose(),Sn.dispose()}}},[Ir.current,nr,tn]),(0,tt.useEffect)(()=>{var on;if((on=Ir.current)!=null&&on.instance&&nr&&Jr){let Mn=Ir.current.instance,an=Mn.getModel();if(!an)return;(()=>{var Br;let bn=[],Jn=[];const sr=an.getAllDecorations();for(let mr of sr)mr.options.className==="highlighted-line"&&(bn.push((Br=mr==null?void 0:mr.range)==null?void 0:Br.startLineNumber),Jn.push(mr==null?void 0:mr.id));if(Dr===bn[0])return;an.deltaDecorations(Jn,[]);const Sr=an.getLineCount();Dr&&Dr<=Sr&&(Mn.deltaDecorations([],[{range:new Ze.Range(Dr,1,Dr,an.getLineMaxColumn(Dr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Mn.revealLineInCenter(Dr))})();const gn=(Br=!1)=>{var bn;let Jn=[],sr=[];const Sr=an.getAllDecorations();for(let mr of Sr)mr.options.linesDecorationsClassName==="breakpoints-select"&&(Jn.push((bn=mr==null?void 0:mr.range)==null?void 0:bn.startLineNumber),sr.push(mr==null?void 0:mr.id));if(Br)return{lines:Jn,ids:sr};ar(Jn)},yn=Br=>wt(void 0,null,function*(){let bn={range:new Ze.Range(Br,1,Br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield an.deltaDecorations([],[bn]),gn()}),On=Br=>wt(void 0,null,function*(){let bn=[];const Jn=Mn.getLineDecorations(Br);for(let sr of Jn)sr.options.linesDecorationsClassName==="breakpoints-select"&&bn.push(sr.id);yield an.deltaDecorations(bn,[]),gn()}),Nn=Br=>{let bn=Mn.getLineDecorations(Br);for(let Jn of bn)if(Jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,vt.isEqual)(tr,gn(!0).lines)){an.deltaDecorations(gn(!0).ids,[]);const Br=tr.map(bn=>({range:new Ze.Range(bn,1,bn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));an.deltaDecorations([],Br)}const Fn=Mn.onDidChangeModelContent(Br=>{let bn=Mn.getPosition();if(bn){let Jn=bn.lineNumber;clearTimeout(Ar.current),Ar.current=setTimeout(()=>{ln(an.getLineContent(Jn),Jn)?On(Jn):Nn(Jn)?(On(Jn),yn(Jn)):gn()},100)}}),zn=Mn.onMouseDown(Br=>{var bn,Jn,sr;if(Br.target.detail&&((sr=(Jn=(bn=Br.target)==null?void 0:bn.element)==null?void 0:Jn.className)!=null&&sr.includes("line-numbers"))){let Sr=Br.target.position.lineNumber;if(ln(an.getLineContent(Sr),Sr))return;Nn(Sr)?On(Sr):yn(Sr)}}),xr=Br=>{let bn={range:new Ze.Range(Br,1,Br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};xi.current=Mn.deltaDecorations(xi.current,[bn])},mn=()=>{xi.current=Mn.deltaDecorations(xi.current,[])},Fr=Mn.onMouseMove(Br=>{var bn,Jn,sr;if(mn(),Br.target.detail&&((sr=(Jn=(bn=Br.target)==null?void 0:bn.element)==null?void 0:Jn.className)!=null&&sr.includes("line-numbers"))){let Sr=Br.target.position.lineNumber;if(ln(an.getLineContent(Sr),Sr))return;xr(Sr)}}),Yr=Mn.onMouseLeave(()=>{mn()});return()=>{Fn.dispose(),zn.dispose(),Fr.dispose(),Yr.dispose()}}},[Ir.current,nr,tr,Dr,Jr,ht]),(0,tt.useEffect)(()=>{var on;(on=Ir.current)!=null&&on.instance&&Jr&&Ir.current.instance.setPosition({lineNumber:0,column:0})},[Dr]);function Pn(){let on=Ir.current.instance;if(on){const Mn=on.getSelection(),an=Ir.current.pastePos||{},Sn=new Ze.Range(an.startLineNumber||Mn.endLineNumber,an.startColumn||Mn.endColumn,an.endLineNumber||Mn.endLineNumber,an.endColumn||Mn.endColumn);setTimeout(()=>{on.executeEdits("",[{range:Sn,text:""}])},300)}}function $t(on){(window.navigator.platform.match("Mac")?on.metaKey:on.ctrlKey)&&on.keyCode==83&&(on.preventDefault(),Ft())}const It=()=>{if(Xt&&Ir.current.instance){const on=Ir.current.instance.getContentHeight();Wn(on<dt?dt:on)}else Wn(dt)};function fn(on){var Mn=document.createEvent("MouseEvents");Mn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),on.dispatchEvent(Mn)}const un=on=>{if(!Li.current)return;const{keyCode:Mn,ctrlKey:an,metaKey:Sn,target:gn,type:yn}=on;return(yn==="paste"||(Mn===67||Mn===86)&&(Sn||an))&&gn.nodeName==="TEXTAREA"&&(Jt(),on.preventDefault()),!1};function Gn(on,Mn){var an=window.URL||window.webkitURL||window,Sn=new Blob([Mn]),gn=document.createElementNS("http://www.w3.org/1999/xhtml","a");gn.href=an.createObjectURL(Sn),gn.download=on,fn(gn)}(0,tt.useEffect)(()=>{It()},[It]),(0,tt.useEffect)(()=>{di.current&&!nr&&Promise.all([$e.e(8909),$e.e(3267)]).then($e.bind($e,71448)).then(on=>{try{Ze=on,Ir.current.instance=Ze.editor.create(di.current,{value:Ct,language:Ve(ht),theme:Kt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Vt);const Mn=Ir.current.instance;let gn=[...Qe.BH._menuItems].find(Fn=>Fn[0]._debugName=="EditorContext")[1],yn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],On=(Fn,zn)=>{var xr,mn;let Fr=Fn._first;do zn.includes((mn=(xr=Fr.element)==null?void 0:xr.command)==null?void 0:mn.id)&&Fn._remove(Fr);while(Fr=Fr.next)};if(En(Mn,Ze),setTimeout(()=>{It(),Ir.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Gn(Tr||"educoder.txt",Mn.getValue())}})},500),Ir.current.subscription=Mn.onDidChangeModelContent(Fn=>{pr.current?clearTimeout(Pr.current):(It(),dn(Mn.getValue(),Fn)),Pr.current=setTimeout(()=>{pr.current=!1},500)}),window.Monaco||je(Ze,Ve(ht)),tn&&(On(gn,yn),di.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",un),window.removeEventListener("paste",un),window.addEventListener("keydown",un),window.addEventListener("paste",un)),window.Monaco=Ze,Ut&&Mn.onDidBlurEditorWidget(()=>{Ut(Mn.getValue())}),An&&Mn.onDidFocusEditorText(()=>{An(Mn.getValue())}),tn)try{Mn.onDidPaste(Fn=>{const zn=Mn.getSelection(),xr=Ir.current.pastePos||{},mn=new Ze.Range(xr.startLineNumber||zn.endLineNumber,xr.startColumn||zn.endColumn,xr.endLineNumber||zn.endLineNumber,xr.endColumn||zn.endColumn);Mn.executeEdits("",[{range:Fn.range,text:""}])})}catch(Fn){}let Nn=qt();return ni&&typeof ni=="string"&&new Xe(ni,Mn,Ze),or(!0),()=>{const Fn=Ir.current.instance;Fn.dispose();const zn=Fn.getModel();zn&&zn.dispose(),Ir.current.subscription&&Ir.current.subscription.dispose(),Nn.unobserve(di.current)}}catch(Mn){}})},[]),(0,tt.useEffect)(()=>{if(Ir.current.instance&&nr)return document.addEventListener("keydown",$t,!1),()=>{document.removeEventListener("keydown",$t)}},[Ft,nr]),(0,tt.useEffect)(()=>{let on=Ir.current.instance;if(on&&nr){let Mn=Ve(ht);Ze.editor.setModelLanguage(on.getModel(),Mn)}},[ht,nr]),(0,tt.useEffect)(()=>{Ir.current.instance&&nr&&Ze.editor.setTheme(Kt)},[Kt,nr]),(0,tt.useEffect)(()=>{let on=Ir.current.instance;ot.current=en,on&&nr&&(on.updateOptions(Tt({},en)),setTimeout(()=>{on.getModel().updateOptions(Tt({},en))},200))},[JSON.stringify(en),nr]),(0,tt.useEffect)(()=>{let on=Ir.current.instance;on&&nr&&on.layout()},[Je,dt,nr]);const[Xn,Ht]=(0,tt.useState)(at(Je)),[kn,Wn]=(0,tt.useState)(at(dt)),lr=zt(Tt({},Lt),{width:Xn,height:kn,position:"relative"});return tt.createElement("div",{className:"my-monaco-editor",ref:di,style:lr},rn&&tt.createElement(it.CopyToClipboard,{text:Ct,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},tt.createElement(ct.Z,{title:"\u590D\u5236\u4EE3\u7801"},tt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},tt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function He({width:We="100%",height:Ke="100%",original:Je,modified:dt,language:Ct,options:ht={}}){const Lt=(0,tt.useRef)(),[en,Vt]=(0,tt.useState)(null);function Kt(Xt){let tn;return Lt.current&&(tn=new Pt.Z(dn=>{for(let En of dn)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&Xt.layout()}),tn.observe(Lt.current)),tn}(0,tt.useEffect)(()=>(Lt.current&&Promise.all([$e.e(8909),$e.e(9404)]).then($e.bind($e,2550)).then(Xt=>{Ze=Xt;const tn=Ze.editor.createDiffEditor(Lt.current,zt(Tt({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},ht),{wordWrap:!0}));Vt(tn);let dn=Kt(tn);return()=>{tn.dispose();const En=tn.getModel();En&&En.dispose(),dn.unobserve(Lt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,tt.useEffect)(()=>{en&&en.setModel({original:Ze.editor.createModel(Je,Ct),modified:Ze.editor.createModel(dt,Ct)})},[Je,dt,Ct,en]);const Ut=at(We),rn=at(Ke),Ft={width:Ut,height:rn};return tt.createElement("div",{className:"my-diff-editor",ref:Lt,style:Ft})}},85057:function(Rn,wn,$e){"use strict";$e.d(wn,{jL:function(){return De},w9:function(){return gt},QD:function(){return dn},cQ:function(){return it},op:function(){return Kt},O5:function(){return Li},_b:function(){return Vn},t7:function(){return re},Gi:function(){return wt},YG:function(){return zt},qp:function(){return Oe},vr:function(){return ar},qE:function(){return Ft},Je:function(){return pe},wb:function(){return Qe},cq:function(){return Ze},tp:function(){return fe}});var tt=$e(59301),Pt={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==",De=({dataSource:nr=[],img:or,imgWidth:qt=346,title:Jt,sunTitle:Et,bannerExtraContent:ln})=>tt.createElement("div",{className:Pt.banner},tt.createElement("div",{className:Pt.content},tt.createElement("aside",null,tt.createElement("p",null,tt.createElement("b",null,Jt),tt.createElement("span",null,Et)),nr.length>0&&tt.createElement("div",{className:Pt.btns},nr.map((Pn,$t)=>tt.createElement("div",{key:$t,onClick:Pn.click},Pn.name,Pn.sign?tt.createElement("img",{src:oe,width:39}):null))),ln),or&&tt.createElement("img",{style:{marginTop:33,marginRight:38},src:or,width:qt}))),me={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ce=$e(92310),we=$e.n(ce),Le=$e(89392),Oe=({dataSource:nr=[],value:or,onChange:qt,onTitleChange:Jt,className:Et,title:ln,titleWidth:Pn=41,style:$t={},fontColor:It="#6A7283",showCount:fn})=>{const[un,Gn]=(0,tt.useState)(0),[Xn,Ht]=(0,tt.useState)(!1),kn=(0,tt.useRef)(null),Wn=(0,tt.useRef)(null);return(0,tt.useEffect)(()=>{var lr;nr.length!==0&&(((lr=kn==null?void 0:kn.current)==null?void 0:lr.clientHeight)>97?Gn(1):Gn(0)),nr.length===0&&Gn(0),Ht(!1)},[nr]),tt.createElement("div",{className:we()(me.row,Et),style:$t},tt.createElement("div",{onClick:(0,Le.throttle)(()=>Jt==null?void 0:Jt(),2e3),style:{width:Pn,marginTop:Xn?12:4},className:`${me.title} ${Jt?"current":""}`},ln),tt.createElement("div",{className:Xn?`${me.tagsWrap} ${me.tagsBorderWrap}`:me.tagsWrap},tt.createElement("div",{className:me.bar,ref:Wn,style:un>0?{height:un===1?97:"auto",overflow:un===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},tt.createElement("div",{className:me.tag,ref:kn},nr==null?void 0:nr.map(lr=>tt.createElement("span",{onClick:()=>qt(lr.id),key:lr.id,style:{color:It},className:or===lr.id?me.active:""},tt.createElement("span",{title:lr.name,className:me.name},lr.name),!!fn&&tt.createElement("span",{className:me.num},lr.count))))),!!un&&tt.createElement(tt.Fragment,null,un===1?tt.createElement("div",{onClick:()=>{var lr;Gn(2),((lr=kn==null?void 0:kn.current)==null?void 0:lr.clientHeight)>245?Ht(!0):Ht(!1)},className:me.action},"\u5C55\u5F00",tt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):tt.createElement("div",{onClick:()=>{Wn.current.scrollTop=0,Gn(1),Ht(!1)},className:me.action},"\u6536\u8D77",tt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ve={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},fe=({dataSource:nr=[],value:or,onChange:qt,className:Jt,style:Et={}})=>tt.createElement("div",{style:Et,className:we()(ve.tabs,Jt)},nr.map(ln=>tt.createElement("span",{onClick:()=>qt(ln.id),className:or===ln.id?ve.active:"",key:ln.id},ln.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=$e(92832),re=({dataSource:nr=[],value:or="",onChange:qt,onInputChange:Jt=()=>{},className:Et,style:ln={},placeholder:Pn,allowClear:$t=!1})=>{var It;const[fn,un]=(0,tt.useState)(""),[Gn,Xn]=(0,tt.useState)("");(0,tt.useEffect)(()=>{var Wn;let lr=or;(Wn=JSON.stringify(or))!=null&&Wn.includes("{")&&(un(or.id),lr=or.value||"");try{Xn(decodeURIComponent(lr||""))}catch(on){Xn(decodeURIComponent(lr||""))}},[or]);const Ht=()=>{qt(encodeURIComponent(Gn),fn||null)},kn=Wn=>{Wn!==fn&&(un(Wn),qt(encodeURIComponent(Gn),Wn))};return tt.createElement("div",{className:we()(z.input,Et),style:ln},!!nr.length&&tt.createElement("div",{className:z.dropdown},tt.createElement("div",{className:z.text},(It=nr.find(Wn=>Wn.id===fn))==null?void 0:It.name,tt.createElement("i",{className:"iconfont icon-zhankai4"}),tt.createElement("b",{className:z.b1}),tt.createElement("b",{className:z.b2})),tt.createElement("div",{className:z.menu},nr.map((Wn,lr)=>tt.createElement("div",{key:lr,onClick:()=>kn(Wn.id)},Wn.name)))),tt.createElement(ee.default,{onPressEnter:Ht,value:Gn,onChange:Wn=>{Xn(Wn.target.value),Jt(encodeURIComponent(Wn.target.value),fn||null)},bordered:!1,placeholder:Pn}),tt.createElement("i",{onClick:Ht,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:nr,onChange:or,className:qt,total:Jt,pageSize:Et,style:ln={}})=>{const Pn=nr<2,$t=nr>=Math.ceil(Jt/Et);return Jt<=Et?tt.createElement(tt.Fragment,null):tt.createElement("div",{className:we()(le.quickPager,qt),style:ln},tt.createElement("div",{onClick:()=>{Pn||or(nr-1,"prev")},className:Pn?le.disabled:""},"\u4E0A\u4E00\u9875"),tt.createElement("div",{onClick:()=>{$t||or(nr+1,"next")},className:$t?le.disabled:""},"\u4E0B\u4E00\u9875"))},be={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ce=$e(71418),Fe=$e(6848),je=$e(13570),ke=$e(3294),Ae=$e(955),Be=$e(96908),_e=$e(57177),et=$e(81378),ze=$e(8797),Qe=({className:nr,dataSource:or=[],col:qt=4,right:Jt,bottom:Et=23,precision:ln=0,wrapWidth:Pn=1200,trackEventItems:$t,loading:It})=>{const fn=Math.floor((Pn-(qt-1)*Jt)/qt);return tt.createElement(Ce.Z,{spinning:It},tt.createElement("div",{className:we()(be.list,nr)},!!or.length&&or.map((un,Gn)=>{const{name:Xn,id:Ht,identifier:kn,power:Wn,cover_image_id:lr,pic:on}=un;return tt.createElement("div",{className:be.wrap,key:Ht,style:{width:fn,marginRight:(1+Gn)%qt===0?0:Jt+ln,marginBottom:Et}},tt.createElement("a",{target:"_blank",href:`/shixuns/${kn}/challenges`,className:be.li,onClick:Mn=>{Mn.preventDefault(),$t&&(0,Ae.L9)([$t]),Wn&&(0,Ae.xg)(`/shixuns/${kn}/challenges`)}},tt.createElement("div",{className:be.img},tt.createElement("img",{className:be.cover,src:`${on}`}),un.is_jupyter&&tt.createElement("img",{className:be.sign,src:Be}),un.is_jupyter_lab&&tt.createElement("img",{className:be.sign,src:_e}),un.is_unity_3d&&tt.createElement("img",{className:be.sign,src:et})),tt.createElement("div",{className:be.name},tt.createElement(Fe.Z,{title:Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},tt.createElement("span",{className:be.e},Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),tt.createElement("div",{className:be.tags},tt.createElement(Fe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),tt.createElement("span",null,un.challenges_count))),!!un.myshixuns_count&&tt.createElement(Fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),tt.createElement("span",null,un.myshixuns_count))),tt.createElement(Fe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},tt.createElement("span",null,tt.createElement("span",null,un.level))),tt.createElement("div",{className:be.rate},tt.createElement(je.Z,{allowHalf:!0,disabled:!0,defaultValue:un.score_info}),tt.createElement("span",null,"\xA0",un.score_info?`${un.score_info}\u5206`:"5\u5206")))),!Wn&&tt.createElement("div",{className:be.lockWrap},tt.createElement("img",{src:`${ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),tt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!or.length&&tt.createElement(ze.Z,null)))},lt={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"},ct=$e(24065),vt=$e(59301),it=({className:nr,dataSource:or=[],col:qt=4,right:Jt,bottom:Et=23,precision:ln=0,wrapWidth:Pn=1200,trackEventItems:$t,loading:It,onRemove:fn=()=>{},isCurrent:un=!0,showAlias:Gn=!1})=>{const Xn=Math.floor((Pn-(qt-1)*Jt)/qt),Ht=[{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 vt.createElement(Ce.Z,{spinning:It},vt.createElement("div",{className:we()(lt.list,nr)},!!(or!=null&&or.length)&&(or==null?void 0:or.map((kn,Wn)=>{var lr;const{name:on,id:Mn,identifier:an,featured:Sn,school_name:gn,image_url:yn,excellent:On,is_plan:Nn}=kn;return vt.createElement("div",{key:Mn,className:lt.wrap,style:{width:Xn,marginRight:(1+Wn)%qt===0?0:Jt+ln,marginBottom:Et}},vt.createElement("a",{className:lt.li,onClick:Fn=>{Fn.preventDefault(),Fn.stopPropagation(),$t&&(0,Ae.L9)([$t]),(0,Ae.xg)(`/paths/${an}`)}},vt.createElement("div",{className:lt.img},vt.createElement("img",{className:lt.cover,src:`${yn}`}),un&&(0,ct.bg)()&&(kn==null?void 0:kn.studying)&&vt.createElement("div",{className:`${lt.movebq} user-path-items`,onClick:Fn=>{Fn.stopPropagation(),fn(kn)}},vt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),vt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(lr=kn==null?void 0:kn.subject_tags)==null?void 0:lr.map((Fn,zn)=>{var xr,mn;if(zn===0){const Yr=(xr=Ht.find(Br=>Br.name==Fn))==null?void 0:xr.swimg;return vt.createElement("img",{className:lt.sign,src:Yr,style:{left:"-4px"}})}const Fr=(mn=Ht.find(Yr=>Yr.name==Fn))==null?void 0:mn.ptimg;return vt.createElement("img",{className:lt.sign,src:Fr,style:{left:`${48+52*(zn-1)+2*zn}px`}})}),vt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(kn==null?void 0:kn.excellent)&&vt.createElement("div",{className:lt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),vt.createElement("div",{className:lt.name},vt.createElement(Fe.Z,{title:Gn&&(kn!=null&&kn.excellent_alias_name)?vt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${on}`,vt.createElement("br",null),vt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${kn==null?void 0:kn.excellent_alias_name}`)):on},vt.createElement("span",{className:lt.e},Gn&&(kn==null?void 0:kn.excellent_alias_name)||on))),vt.createElement(Fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${gn}`},vt.createElement("div",{className:lt.unit},vt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),gn)),vt.createElement("div",{className:lt.tags},vt.createElement("div",null,vt.createElement(Fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),vt.createElement("span",null,kn.stages_count))),vt.createElement(Fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),vt.createElement("span",null,kn.members_count)))))))})),!or.length&&vt.createElement(ze.Z,null)))},pt={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"},xt="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",yt=$e(59301),gt=({className:nr,dataSource:or=[],col:qt=4,right:Jt,bottom:Et=23,precision:ln=0,wrapWidth:Pn=1200,trackEventItems:$t,loading:It,handleVery:fn=()=>!0})=>{const un=Math.floor((Pn-(qt-1)*Jt)/qt);return yt.createElement(Ce.Z,{spinning:It},yt.createElement("div",{className:we()(pt.list,nr)},!!or.length&&or.map((Gn,Xn)=>{const{subject_identifier:Ht,id:kn,identifier:Wn,power:lr}=Gn,on=Gn.is_public!=0&&Gn.is_public;return yt.createElement("div",{className:pt.wrap,key:kn,style:{width:un,marginRight:(1+Xn)%qt===0?0:Jt+ln,marginBottom:Et}},yt.createElement("a",{className:pt.li,onClick:Mn=>{Mn.preventDefault(),fn(Gn==null?void 0:Gn.first_category_url)&&($t&&(0,Ae.L9)([$t]),(0,Ae.xg)(Gn.first_category_url))}},yt.createElement("div",{className:pt.top},yt.createElement(Fe.Z,{title:Gn.name},yt.createElement("div",{className:pt.name},Gn.name)),yt.createElement("img",{className:pt.img,src:ke.Z.IMG_SERVER+"/images/"+Gn.avatar_url}),yt.createElement("div",{className:pt.text,title:Gn.creator},Gn.creator),Ht&&yt.createElement("div",{className:pt.btns},yt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),yt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),on&&yt.createElement("div",{className:pt.sign},"\u516C\u5F00")),yt.createElement("div",{className:pt.bottom},Gn.visits>0&&yt.createElement(Fe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-liulanyan"}),yt.createElement("span",null,Gn.visits))),Gn.course_members_count>0&&yt.createElement(Fe.Z,{title:"\u6210\u5458",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-chengyuan"}),Gn.course_members_count)),Gn.tasks_count>0&&yt.createElement(Fe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-zuoye"}),Gn.tasks_count)),Gn.is_end?yt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):yt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gn.is_accessible&&yt.createElement("div",{className:pt.lockWrap},yt.createElement("img",{src:`${ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),yt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!or.length&&yt.createElement(ze.Z,null)))},mt={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"},Nt=$e(89070),zt=({dataSource:nr=[],value:or,onChange:qt,className:Jt,style:Et={},tabBarExtraContent:ln})=>tt.createElement("div",{className:we()(mt.tabs,Jt),style:Et},tt.createElement("div",{className:mt.tabsWrap},nr.map((Pn,$t)=>!(Pn!=null&&Pn.hide)&&tt.createElement("aside",{className:mt.tab,onClick:()=>{qt(Pn.id),Pn.link&&Nt.history.push(Pn.link)},key:$t},tt.createElement("div",{className:or===Pn.id?mt.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&tt.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&&tt.createElement(Fe.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},tt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",tt.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",tt.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),tt.createElement("div",{className:mt.tabBar},ln)),wt=({className:nr,style:or={},children:qt})=>tt.createElement("div",{className:we()(nr),style:or},qt),at={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"},Ye=$e(38854),Pe=$e(20834);const Te=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ze=({sortValue:nr,dropValue:or,className:qt,onSort:Jt,onDrop:Et,dataSource:ln=Te})=>{var Pn;return tt.createElement("div",{className:we()(at.orderWrap,qt)},tt.createElement(Ye.Z,{dropdownRender:()=>tt.createElement(Pe.default,null,ln.map(($t,It)=>tt.createElement(Pe.default.Item,{key:It,onClick:()=>Et($t.id)},$t.name)))},tt.createElement("span",{className:at.orderTextWrap},(Pn=ln.find($t=>or===$t.id))==null?void 0:Pn.name)),tt.createElement("span",{className:at.orderIconWrap},tt.createElement("span",{className:at.orderAsc},tt.createElement("i",{className:nr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer}`,onClick:()=>Jt(nr==="asc"?"desc":"asc")})),tt.createElement("span",{className:at.orderDesc},tt.createElement("i",{className:nr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer}`,onClick:()=>Jt(nr==="asc"?"desc":"asc")}))))},Ee={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},He=$e(3113),We=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Ct=(nr,or,qt)=>or in nr?We(nr,or,{enumerable:!0,configurable:!0,writable:!0,value:qt}):nr[or]=qt,ht=(nr,or)=>{for(var qt in or||(or={}))Je.call(or,qt)&&Ct(nr,qt,or[qt]);if(Ke)for(var qt of Ke(or))dt.call(or,qt)&&Ct(nr,qt,or[qt]);return nr},Lt=(nr,or)=>{var qt={};for(var Jt in nr)Je.call(nr,Jt)&&or.indexOf(Jt)<0&&(qt[Jt]=nr[Jt]);if(nr!=null&&Ke)for(var Jt of Ke(nr))or.indexOf(Jt)<0&&dt.call(nr,Jt)&&(qt[Jt]=nr[Jt]);return qt},en=(nr,or,qt)=>new Promise((Jt,Et)=>{var ln=It=>{try{$t(qt.next(It))}catch(fn){Et(fn)}},Pn=It=>{try{$t(qt.throw(It))}catch(fn){Et(fn)}},$t=It=>It.done?Jt(It.value):Promise.resolve(It.value).then(ln,Pn);$t((qt=qt.apply(nr,or)).next())}),Kt=nr=>{var or=nr,{className:qt,style:Jt,children:Et,loading:ln=!1,openLoading:Pn,onClick:$t=()=>{},size:It="middle",shape:fn="round"}=or,un=Lt(or,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gn,Xn]=(0,tt.useState)(!1);return tt.createElement(He.ZP,ht({onClick:(0,Le.throttle)(Ht=>en(void 0,null,function*(){Pn&&Xn(!0);try{yield $t(Ht)}catch(kn){console.log("error",kn)}Pn&&Xn(!1)}),2e3,{leading:!0,trailing:!1}),className:we()(Ee.btn,Ee[`${It}-${fn}`],qt),style:Jt,size:It,shape:fn,loading:Gn||ln},un),Et)},Ut={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"},Ft=({className:nr,style:or,children:qt=null,onClick:Jt,title:Et})=>tt.createElement("div",{className:we()(Ut.head,nr),style:or},tt.createElement("span",{className:"primary-hover",onClick:Jt},tt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),tt.createElement("b",{title:Et},Et),tt.createElement("div",{className:Ut.node},qt)),Xt={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"},dn=({confirmShow:nr=!0,confirmTitle:or,confirmClick:qt,cancelShow:Jt=!0,cancelTitle:Et,cancelClick:ln,className:Pn,style:$t,confirmLoading:It=!1})=>tt.createElement("div",{className:we()(Xt.btns,Pn),style:$t},nr&&tt.createElement(He.ZP,{loading:It,onClick:qt,type:"primary",className:Xt.confirm},or),Jt&&tt.createElement(He.ZP,{onClick:ln,className:Xt.cancel},Et)),En={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"},ar=({className:nr,style:or={},LeftContent:qt,children:Jt,RightContent:Et})=>tt.createElement("div",{className:we()(En.fixedBottom,nr),style:or},tt.createElement("div",{className:En.wrap},tt.createElement("div",{className:En.left},qt),tt.createElement("div",{className:En.center},Jt),tt.createElement("div",{className:En.right},Et))),tr={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"},Vn=({className:nr,style:or={},dataSource:qt=[]})=>tt.createElement("div",{className:we()(tr.crumbs,nr),style:or},qt.map((Jt,Et)=>Et<qt.length-1?tt.createElement(tt.Fragment,{key:Et},Jt.path||Jt.onClick?tt.createElement("span",{className:tr.hover,onClick:Jt!=null&&Jt.onClick?Jt.onClick:()=>Nt.history.push(Jt.path)},Jt.name):tt.createElement("span",null,Jt.name),tt.createElement("span",null,"\xA0",">","\xA0")):tt.createElement("span",{key:Et,style:{color:"#5F6368"}},Jt.name))),Or=$e(31797),Dr=Object.defineProperty,Jr=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,ot=(nr,or,qt)=>or in nr?Dr(nr,or,{enumerable:!0,configurable:!0,writable:!0,value:qt}):nr[or]=qt,Ci=(nr,or)=>{for(var qt in or||(or={}))di.call(or,qt)&&ot(nr,qt,or[qt]);if(Nr)for(var qt of Nr(or))Ir.call(or,qt)&&ot(nr,qt,or[qt]);return nr},xi=(nr,or)=>Jr(nr,ni(or)),pr=(nr,or)=>{var qt={};for(var Jt in nr)di.call(nr,Jt)&&or.indexOf(Jt)<0&&(qt[Jt]=nr[Jt]);if(nr!=null&&Nr)for(var Jt of Nr(nr))or.indexOf(Jt)<0&&Ir.call(nr,Jt)&&(qt[Jt]=nr[Jt]);return qt};const{Countdown:Pr}=Or.default;var Li=nr=>{var or=nr,{onChange:qt}=or,Jt=pr(or,["onChange"]);const[Et,ln]=(0,tt.useState)(null);(0,tt.useEffect)(()=>{typeof Et=="number"&&Et>=0&&qt(Et)},[Et]);const Pn=$t=>{const It=Math.floor($t/1e3);ln(It)};return tt.createElement(Pr,xi(Ci({},Jt),{onChange:Pn}))}},58856:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Pt}});var tt=$e(59301);function Pt(oe,Ge){const De=(0,tt.useRef)();(0,tt.useEffect)(()=>{De.current=oe}),(0,tt.useEffect)(()=>{function me(){De.current()}if(Ge!==null){let ce=setInterval(me,Ge);return()=>clearInterval(ce)}},[Ge])}},19683:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Xe}});var tt=$e(59301),Pt=$e(92832),oe=$e(78241),Ge=$e(8591),De=$e(43418),me=$e(71418),ce=$e(54580),we=$e(6848),Le=$e(93948),Se=$e(5112),Oe={flex_box_center:"flex_box_center___SntrE",flex_space_between:"flex_space_between___g4tse",flex_box_vertical_center:"flex_box_vertical_center___ooGcI",flex_box_center_end:"flex_box_center_end___UM2Cs",flex_box_column:"flex_box_column___vRGBc",prompt:"prompt___a_aRk",box:"box___X84XK",row:"row___wofpN",icon:"icon___ixIOQ"},ve=$e(99064),xe=$e(955),fe=$e(81939),z=$e(1012),ee=$e(47257),ae=$e.n(ee),re=$e(56210),le=$e(85057),ue=$e(24065),pe=$e(89070),be=$e(59301),Ce=Object.defineProperty,Fe=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ae=(Qe,lt,ct)=>lt in Qe?Ce(Qe,lt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Qe[lt]=ct,Be=(Qe,lt)=>{for(var ct in lt||(lt={}))je.call(lt,ct)&&Ae(Qe,ct,lt[ct]);if(Fe)for(var ct of Fe(lt))ke.call(lt,ct)&&Ae(Qe,ct,lt[ct]);return Qe},_e=(Qe,lt,ct)=>new Promise((vt,nt)=>{var it=yt=>{try{xt(ct.next(yt))}catch(ft){nt(ft)}},pt=yt=>{try{xt(ct.throw(yt))}catch(ft){nt(ft)}},xt=yt=>yt.done?vt(yt.value):Promise.resolve(yt.value).then(it,pt);xt((ct=ct.apply(Qe,lt)).next())});const et=Pt.default.TextArea,ze=({dataSetInfo:Qe,attachmentInfo:lt,visible:ct,user:vt,dispatch:nt,onClose:it=()=>{},onSuccess:pt=()=>{}})=>{var xt,yt;const[ft,gt]=(0,tt.useState)([]),[mt,Nt]=(0,tt.useState)(!1),[Tt,zt]=(0,tt.useState)(!1),[St]=oe.default.useForm(),[wt,at]=(0,tt.useState)([]),[Ye,Pe]=(0,tt.useState)({}),Te=(0,tt.useRef)([]);(0,tt.useEffect)(()=>{if(ct){if(Qe){const{title:ht,is_public:Lt,desc:en,attachments:Vt,data_set_tags:Kt}=Qe||{},Ut=Vt.map(Ft=>({id:String(Math.random()).slice(-6),name:Ft.title,response:{attachment_id:Ft.id},size:Ft.size,description:Ft.description||"",percent:100,status:"done"}));gt(Ut),at(Kt);const rn={title:ht,is_public:Lt,desc:en};St.setFieldsValue(rn)}if(lt){const ht=lt.map(Lt=>({id:String(Math.random()).slice(-6),name:Lt.title,response:{attachment_id:Lt.id},size:Lt.size,description:Lt.description||"",percent:100,status:"done"}));gt(ht)}Ve()}},[ct]),(0,tt.useEffect)(()=>{Te.current=ft},[ft]),(0,tt.useEffect)(()=>{ft!=null&&ft.length?St.setFields([{name:"attachments",errors:[]}]):St.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[ft.length]),(0,tt.useEffect)(()=>{wt!=null&&wt.length?St.setFields([{name:"tag_ids",errors:[]}]):St.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[wt.length]);const Ve=()=>_e(void 0,null,function*(){zt(!0);const ht=yield(0,ve.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});ht.status===0&&(Pe(ht==null?void 0:ht.data),zt(!1))}),Ze={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:ht=>_e(void 0,null,function*(){var Lt,en,Vt,Kt,Ut,rn;if(((Kt=(Vt=(en=(Lt=ht.name)==null?void 0:Lt.split("."))==null?void 0:en.slice(0,-1))==null?void 0:Vt.join("."))==null?void 0:Kt.length)>60)return Ge.ZP.warning(`\u300A${ht.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...Ye.data_set_filenames,...Te.current.map(An=>An.name)].includes(ht.name))return Ge.ZP.warning(`\u300A${ht.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const Xt=ht.size/1024/1024/1024;let tn=Ye==null?void 0:Ye.data_sets_filesize;if(Te.current.forEach(An=>{tn+=An==null?void 0:An.size}),tn=tn/1024/1024/1024,(0,ue.Ny)()){if(Xt>50)return Ge.ZP.warning(`\u300A${ht.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(50GB)`),Promise.reject()}else if(Xt>2)return Ge.ZP.warning(`\u300A${ht.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();if(tn+Xt>((Ut=vt==null?void 0:vt.userInfo)==null?void 0:Ut.cloud_space)&&!(Ye!=null&&Ye.current_user_no_limit))return Ge.ZP.warning(`\u300A${ht.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(${(rn=vt==null?void 0:vt.userInfo)==null?void 0:rn.cloud_space}GB)`),Promise.reject();const En={id:String(Math.random()).slice(-6),name:ht.name,size:ht.size,file:ht,description:"",percent:0,status:"uploading"};return We(En,{login:Ye==null?void 0:Ye.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),gt(An=>[...An,En]),Promise.reject()})},Ee=ht=>_e(void 0,null,function*(){var Lt,en,Vt;const Kt=Te.current.find(Ut=>Ut.name===ht.name);(Lt=Kt==null?void 0:Kt.response)!=null&&Lt.attachment_id&&(yield(0,ve.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(en=Kt==null?void 0:Kt.response)==null?void 0:en.attachment_id}})),Kt!=null&&Kt.client&&((Vt=Kt==null?void 0:Kt.client)==null||Vt.cancel()),gt(Ut=>Ut.filter(rn=>rn.name!==ht.name))}),He=()=>{var ht;(ht=Te.current)==null||ht.forEach(Lt=>{var en;Lt!=null&&Lt.client&&((en=Lt==null?void 0:Lt.client)==null||en.cancel())})};console.log(ft,"fileList1");const We=(ht,Lt)=>_e(void 0,null,function*(){var en,Vt,Kt,Ut,rn,Ft,Xt,tn,dn;Lt.file_name=ht.name;const En=ht.name,An=yield(0,ve.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((An==null?void 0:An.status)!==0){gt(Vn=>(Vn[Vn.findIndex(Or=>Or.name===En)].status="error",[...Vn])),Ge.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}An.data=JSON.parse((0,fe.pe)(An.data));const ar=new(ae())({endpoint:(en=An==null?void 0:An.data)==null?void 0:en.end_point,region:(Vt=An==null?void 0:An.data)==null?void 0:Vt.region,accessKeyId:(Kt=An==null?void 0:An.data)==null?void 0:Kt.access_key_id,accessKeySecret:(Ut=An==null?void 0:An.data)==null?void 0:Ut.access_key_secret,bucket:(rn=An==null?void 0:An.data)==null?void 0:rn.bucket,stsToken:(Ft=An==null?void 0:An.data)==null?void 0:Ft.security_token}),tr=ht.name.split(".");tr.pop();const Tr=Lt.realFileName?tr.join("."):(0,z.Z)();ar.multipartUpload(`datasets/${Lt==null?void 0:Lt.login}/${Tr}${En.indexOf(".")>-1?"."+En.split(".").pop():""}`,new Blob([ht.file],{type:ht.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Vn,Or,Dr)=>{console.log("\u8FDB\u5EA6",Vn,Or,Dr),gt(Jr=>{const ni=Jr.findIndex(Nr=>Nr.name===En);return Jr[ni].client=ar,Jr[ni].percent=Vn*100,Jr[ni].checkpoint=Or,[...Jr]})},checkpoint:(tn=Te.current[(Xt=Te.current)==null?void 0:Xt.findIndex(Vn=>Vn.name===En)])==null?void 0:tn.checkpoint,callback:{customValue:{id:En+""},url:(dn=An==null?void 0:An.data)==null?void 0:dn.callback_url,host:An==null?void 0:An.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ve.rz)(Lt)}}).then(function(Vn){gt(Or=>{var Dr,Jr,ni;const Nr=Or.findIndex(Ir=>Ir.name===En);let di="done";return((Dr=Vn.data)==null?void 0:Dr.status)===0?Or[Nr].response=(Jr=Vn.data)==null?void 0:Jr.data:(Ge.ZP.warning((ni=Vn.data)==null?void 0:ni.message),di="error"),Or[Nr].status=di,[...Or]})}).catch(function(Vn){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Vn),(Vn==null?void 0:Vn.name)!=="cancel"&>(Or=>{const Dr=Or.findIndex(Jr=>Jr.name===En);return Or[Dr].status="error",[...Or]})})}),Ke=ht=>(ht=ht||"",ht=String(ht),ht=ht.replace(/\s+/g,""),ht),Je=()=>_e(void 0,null,function*(){var ht;const Lt=St.getFieldsValue(),{title:en,is_public:Vt,desc:Kt}=Lt,Ut=[];if(Ke(en)||Ut.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),ft!=null&&ft.length||Ut.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),wt!=null&&wt.length||Ut.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),Ut.length){St.setFields(Ut);return}const rn=ft.map(tn=>{var dn;return{attachment_id:(dn=tn.response)==null?void 0:dn.attachment_id,description:tn.description}});Nt(!0);const Ft={title:Lt.title,attachments:rn,tag_ids:wt.map(tn=>tn.id),is_public:Vt,desc:Kt};let Xt;Qe?Xt=yield(0,ve.ZP)(`/api/data_sets/${Qe==null?void 0:Qe.id}.json`,{method:"put",body:Ft}):Xt=yield(0,ve.ZP)("/api/data_sets.json",{method:"post",body:Ft}),Xt.status===0&&(Ge.ZP.success("\u64CD\u4F5C\u6210\u529F"),pt((ht=Xt==null?void 0:Xt.data)==null?void 0:ht.data_set_id),nt({type:"user/getUserInfo"})),Nt(!1)}),dt=ht=>{at(ht)},Ct=ft.some(ht=>ht.status==="uploading");return console.log("fileList",ft),be.createElement(De.default,{destroyOnClose:!0,confirmLoading:mt,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:Ct},title:Qe?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(Ct){De.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{it()}});return}it()},okText:"\u786E\u5B9A",onOk:Je,open:ct,afterClose:()=>{gt([]),at([]),Nt(!1),zt(!1),He(),St.resetFields()}},be.createElement(me.Z,{spinning:Tt},!(Ye!=null&&Ye.current_user_no_limit)&&!Tt&&be.createElement("div",{className:Oe.prompt},be.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A:\u5E73\u53F0\u4E3A\u7528\u6237\u63D0\u4F9B\u4E86",be.createElement("span",{style:{color:"#3061D0",margin:"0 5px"}},(xt=vt==null?void 0:vt.userInfo)==null?void 0:xt.cloud_space,"GB"),"\u7684\u6570\u636E\u96C6\u5B58\u50A8\u7A7A\u95F4\uFF0C\u60A8\u76EE\u524D\u5DF2\u4F7F\u7528\u4E86",be.createElement("span",{style:{color:"#FF9D18",margin:"0 5px"}},((Ye==null?void 0:Ye.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),be.createElement(oe.default,{form:St,colon:!1,labelCol:{span:4},wrapperCol:{span:20},size:"large"},be.createElement(oe.default.Item,{label:"\u6570\u636E\u96C6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},be.createElement(Pt.default,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0",showCount:!0,maxLength:60})),be.createElement(oe.default.Item,{style:{marginBottom:0},name:"attachments",label:"\u4E0A\u4F20\u6570\u636E\u96C6",rules:[{required:!0,message:"\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"}]},be.createElement("div",{style:{position:"relative"}},be.createElement(ce.default,Be({},Ze),be.createElement(le.op,{style:{borderRadius:2}},be.createElement("i",{className:"icon-shangchuan3 mr5 font14"}),"\u4E0A\u4F20\u6587\u4EF6")),be.createElement("div",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px",position:"absolute",left:"115px",top:"-2px"}},be.createElement("div",null,"1.\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7",(0,ue.Ny)()?50:2,"G"),be.createElement("div",null,"2.",Ye!=null&&Ye.current_user_no_limit?"":`\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC7${(yt=vt==null?void 0:vt.userInfo)==null?void 0:yt.cloud_space}GB\uFF0C`,"\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),be.createElement("div",{className:Oe.box},ft.map(ht=>be.createElement("div",{key:ht.id,className:Oe.row},be.createElement("div",{className:Oe.icon},ht.status==="done"&&be.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),ht.status==="error"&&be.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),be.createElement("div",{style:{width:176}},be.createElement(we.Z,{title:ht==null?void 0:ht.name},be.createElement("div",{style:{color:ht.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,xe.tP)(ht==null?void 0:ht.name,9))),ht.status==="uploading"&&be.createElement(Le.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:ht.percent,showInfo:!1,size:[168,4]})),be.createElement("i",{onClick:()=>Ee(ht),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),be.createElement(Pt.default,{value:ht.description,onChange:Lt=>{gt(en=>{const Vt=en.findIndex(Kt=>Kt.name===ht.name);return en[Vt].description=Lt.target.value,[...en]})},placeholder:"\u5907\u6CE8\u8BF4\u660E",showCount:!0,maxLength:255,style:{width:"286px"}})))),be.createElement(oe.default.Item,{label:"\u6807\u7B7E",name:"tag_ids",rules:[{required:!0,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},be.createElement(re.Z,{isTagsValue:!0,width:"514",selectWidth:"514",placeholder:"\u6DFB\u52A0\u6807\u7B7E",getDataSet:dt,tags:wt})),be.createElement(oe.default.Item,{initialValue:0,label:"\u662F\u5426\u516C\u5F00",name:"is_public",rules:[{required:!0}]},be.createElement(Se.ZP.Group,null,be.createElement(Se.ZP,{value:1},"\u662F"),be.createElement(Se.ZP,{value:0},"\u5426"))),be.createElement("div",{style:{position:"relative",left:"100px",top:"-20px",width:"400px",color:"#9096A3",fontSize:"12px"}},"\u516C\u5F00\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\u53EF\u88AB\u5176\u4ED6\u7528\u6237\u8BBF\u95EE"),be.createElement(oe.default.Item,{label:"\u7B80\u4ECB\u6458\u8981",name:"desc",style:{marginBottom:0}},be.createElement(et,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))};var Xe=(0,pe.connect)(({user:Qe,dispatch:lt})=>({user:Qe,dispatch:lt}))(ze)},437:function(Rn,wn,$e){"use strict";$e.r(wn),$e.d(wn,{default:function(){return xi}});var tt=$e(59301),Pt=$e(89070),oe=$e(71418),Ge=$e(66104),De=$e(6848),me=$e(43418),ce=$e(24905),we=$e(8591),Le=$e(38854),Se=$e(5112),Oe=$e(1710),ve={flex_box_center:"flex_box_center___eNs_C",flex_space_between:"flex_space_between___oJc0d",flex_box_vertical_center:"flex_box_vertical_center___MoDEY",flex_box_center_end:"flex_box_center_end___BtlAV",flex_box_column:"flex_box_column___nUGZ8",bg:"bg___kj21E",wrap:"wrap___TtbC8",leftContent:"leftContent___FGaJd",header:"header___kobCa",headerBack:"headerBack___TI5PF",title:"title___B5Aew",time:"time___Ab938",introduction:"introduction___JKUBJ",from:"from___WId6_",bottom:"bottom___Expju",user_img:"user_img___igguI",user_name:"user_name___xNcx6",tags_name:"tags_name___xhTee",buttonList:"buttonList___ayDi1",buttonItem:"buttonItem___p_BX_",rightContent:"rightContent___XTwKA",share:"share___o0Kxt",publicStyle:"publicStyle___I8HuS",more:"more___ZQSDV",collectStyle:"collectStyle___FwPiJ",collectActiveStyle:"collectActiveStyle___vbqkD",content:"content___dl660",addTypeRadio:"addTypeRadio___iEl2Y",addBtn:"addBtn___SYc61",shixunTooltip:"shixunTooltip___krR3m",pageStyle:"pageStyle___UXmCF",pageCan:"pageCan___yNiQI",pageUnCan:"pageUnCan___M1D84",dropList:"dropList___KP6TZ",dropName:"dropName___hgrPU"},xe=$e(3294),fe={flex_box_center:"flex_box_center___Kaphe",flex_space_between:"flex_space_between___dzJWD",flex_box_vertical_center:"flex_box_vertical_center___iwu7i",flex_box_center_end:"flex_box_center_end___izksF",flex_box_column:"flex_box_column___ntJPh",content:"content___gDHym",addTypeRadio:"addTypeRadio___oUKH0",introduceNoData:"introduceNoData___iILly",introduceAdd:"introduceAdd___v9keU",introduceText:"introduceText___iTf1W",introduceButton:"introduceButton___bwZMR",close:"close___csBZw",submit:"submit___SQ6af",introduceContent:"introduceContent___Yad8G",introduceTitle:"introduceTitle___DfmXh",introContentWrap:"introContentWrap___bmjAL",action:"action___DPbIq",fileTable:"fileTable___xqsXc",addBtn:"addBtn___em6e3",wrap:"wrap___Q3aN8",colorBlue:"colorBlue____HNqk",repeatedName:"repeatedName___RIjaL",row:"row___ngnyh",icon:"icon___fQvup"},z=$e(12290),ee=$e(85149),ae=$e(78241),re=$e(92832),le=$e(54580),ue=$e(93948),pe=$e(37904),be=$e(61186),Ce=$e.n(be),Fe=$e(955),je=$e(1643),ke=$e(99064),Ae=$e(47257),Be=$e.n(Ae),_e=$e(81939),et=$e(1012),ze=$e(24065),Xe=$e(59301),Qe=Object.defineProperty,lt=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,pt=(pr,Pr,Ar)=>Pr in pr?Qe(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):pr[Pr]=Ar,xt=(pr,Pr)=>{for(var Ar in Pr||(Pr={}))nt.call(Pr,Ar)&&pt(pr,Ar,Pr[Ar]);if(vt)for(var Ar of vt(Pr))it.call(Pr,Ar)&&pt(pr,Ar,Pr[Ar]);return pr},yt=(pr,Pr)=>lt(pr,ct(Pr)),ft=(pr,Pr,Ar)=>new Promise((Li,nr)=>{var or=Et=>{try{Jt(Ar.next(Et))}catch(ln){nr(ln)}},qt=Et=>{try{Jt(Ar.throw(Et))}catch(ln){nr(ln)}},Jt=Et=>Et.done?Li(Et.value):Promise.resolve(Et.value).then(or,qt);Jt((Ar=Ar.apply(pr,Pr)).next())});const gt=({polls:pr,globalSetting:Pr,loading:Ar,dispatch:Li,user:nr,dataSetInfo:or,indexType:qt,getInfo:Jt})=>{const Et=(0,Pt.useParams)(),[ln,Pn]=(0,tt.useState)(!1),[$t,It]=(0,tt.useState)(0),fn=(0,tt.useRef)(null),un=(0,tt.useRef)(null),[Gn,Xn]=(0,tt.useState)(""),[Ht,kn]=(0,tt.useState)(""),[Wn]=ae.default.useForm(),[lr,on]=(0,tt.useState)([]),Mn=(0,tt.useRef)([]),[an,Sn]=(0,tt.useState)(!1),[gn,yn]=(0,tt.useState)(!1),[On,Nn]=(0,tt.useState)(""),Fn=lr.some(ur=>ur.status==="uploading"),[zn,xr]=(0,tt.useState)(!1),[mn,Fr]=(0,tt.useState)([]),[Yr,Br]=(0,tt.useState)(!1),[bn,Jn]=(0,tt.useState)(0),[sr,Sr]=(0,tt.useState)({page:1,limit:10,type:"",id:""}),mr=(ur,vn)=>ft(void 0,null,function*(){Br(!0);const cr=yield(0,pe.iw)({container_type:ur||(sr==null?void 0:sr.type),container_id:vn||(sr==null?void 0:sr.id),page:sr.page,limit:sr.limit});Fr(cr==null?void 0:cr.data),Jn(cr==null?void 0:cr.total_count),Br(!1)});(0,tt.useEffect)(()=>{var ur;((ur=fn==null?void 0:fn.current)==null?void 0:ur.clientHeight)>80?It(1):It(0)},[Gn]),(0,tt.useEffect)(()=>{Mn.current=lr},[lr]),(0,tt.useEffect)(()=>{Xn(or==null?void 0:or.introduce),kn(or==null?void 0:or.introduce)},[or==null?void 0:or.introduce]);const $r={multiple:!1,withCredentials:!0,showUploadList:!1,fileList:lr==null?void 0:lr.map(ur=>ur.file),beforeUpload:ur=>ft(void 0,null,function*(){var vn,cr,xn,zr,$i;if(((zr=(xn=(cr=(vn=ur.name)==null?void 0:vn.split("."))==null?void 0:cr.slice(0,-1))==null?void 0:xn.join("."))==null?void 0:zr.length)>60)return we.ZP.warning(`\u300A${ur.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...Mn.current.map(Wr=>Wr.name)].includes(ur.name))return we.ZP.warning(`\u300A${ur.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();if(ur.size/1024/1024/1024>2)return we.ZP.warning(`\u300A${ur.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();const no={id:String(Math.random()).slice(-6),name:ur.name,size:ur.size,file:ur,description:"",percent:0,status:"uploading"};return br(no,{login:($i=nr==null?void 0:nr.userInfo)==null?void 0:$i.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),on(Wr=>[...Wr,no]),Promise.reject()})},ri=ur=>ft(void 0,null,function*(){var vn,cr,xn;const zr=Mn.current.find($i=>$i.name===ur.name);(vn=zr==null?void 0:zr.response)!=null&&vn.attachment_id&&(yield(0,ke.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(cr=zr==null?void 0:zr.response)==null?void 0:cr.attachment_id}})),zr!=null&&zr.client&&((xn=zr==null?void 0:zr.client)==null||xn.cancel()),on($i=>$i.filter(Mi=>Mi.name!==ur.name))}),Rr=()=>{var ur;(ur=Mn.current)==null||ur.forEach(vn=>{var cr;vn!=null&&vn.client&&((cr=vn==null?void 0:vn.client)==null||cr.cancel())})},br=(ur,vn)=>ft(void 0,null,function*(){var cr,xn,zr,$i,Mi,yo,no,Wr,Hr;vn.file_name=ur.name;const wi=ur.name,vi=yield(0,ke.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((vi==null?void 0:vi.status)!==0){on(Ki=>(Ki[Ki.findIndex(gi=>gi.name===wi)].status="error",[...Ki])),we.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}vi.data=JSON.parse((0,_e.pe)(vi.data));const fr=new(Be())({endpoint:(cr=vi==null?void 0:vi.data)==null?void 0:cr.end_point,region:(xn=vi==null?void 0:vi.data)==null?void 0:xn.region,accessKeyId:(zr=vi==null?void 0:vi.data)==null?void 0:zr.access_key_id,accessKeySecret:($i=vi==null?void 0:vi.data)==null?void 0:$i.access_key_secret,bucket:(Mi=vi==null?void 0:vi.data)==null?void 0:Mi.bucket,stsToken:(yo=vi==null?void 0:vi.data)==null?void 0:yo.security_token}),kt=ur.name.split(".");kt.pop();const Fi=vn.realFileName?kt.join("."):(0,et.Z)();fr.multipartUpload(`datasets/${vn==null?void 0:vn.login}/${Fi}${wi.indexOf(".")>-1?"."+wi.split(".").pop():""}`,new Blob([ur.file],{type:ur.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ki,gi,oo)=>{console.log("\u8FDB\u5EA6",Ki,gi,oo),console.log("client--",fr),on(So=>{const Qr=So.findIndex(ii=>ii.name===wi);return Qr!==-1&&(So[Qr].client=fr,So[Qr].percent=Ki*100,So[Qr].checkpoint=gi),[...So]})},checkpoint:(Wr=Mn.current[(no=Mn.current)==null?void 0:no.findIndex(Ki=>Ki.name===wi)])==null?void 0:Wr.checkpoint,callback:{customValue:{id:wi+""},url:(Hr=vi==null?void 0:vi.data)==null?void 0:Hr.callback_url,host:vi==null?void 0:vi.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ke.rz)(vn)}}).then(function(Ki){on(gi=>{var oo,So,Qr;const ii=gi.findIndex(Pi=>Pi.name===wi);let Oi="done";return ii!==-1&&(((oo=Ki.data)==null?void 0:oo.status)===0?gi[ii].response=(So=Ki.data)==null?void 0:So.data:(we.ZP.warning((Qr=Ki.data)==null?void 0:Qr.message),Oi="error"),gi[ii].status=Oi),[...gi]})}).catch(function(Ki){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Ki),(Ki==null?void 0:Ki.name)!=="cancel"&&on(gi=>{const oo=gi.findIndex(So=>So.name===wi);return oo!==-1&&(gi[oo].status="error"),[...gi]})})});return Xe.createElement("div",{className:fe.content},!ln&&!Gn&&qt&&Xe.createElement("div",{className:fe.introduceNoData,onClick:()=>{Pn(!0)}},Xe.createElement("div",{className:fe.introduceAdd},Xe.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),Xe.createElement("div",{className:fe.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!ln&&Gn&&Xe.createElement("div",{className:fe.introduceContent},Xe.createElement("div",{className:fe.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",qt&&Xe.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{Pn(!0)}})),Xe.createElement("div",{className:fe.introContentWrap},Xe.createElement("div",null,Xe.createElement("div",{ref:un,style:$t>0?{height:$t===1?80:"auto",overflow:$t===1?"hidden":"auto"}:{paddingRight:0}},Xe.createElement("div",{ref:fn},Xe.createElement(ee.Z,{value:Gn,style:{fontSize:"14px"}}))),!!$t&&Xe.createElement(tt.Fragment,null,$t===1?Xe.createElement("div",{onClick:()=>{It(2)},className:fe.action},"\u5C55\u5F00",Xe.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):Xe.createElement("div",{onClick:()=>{It(1)},className:fe.action},"\u6536\u8D77",Xe.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),ln&&Xe.createElement("div",{style:{marginTop:"30px"}},Xe.createElement(z.Z,{watch:!0,onChange:ur=>{kn(ur)},defaultValue:Ht,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),Xe.createElement("div",{className:fe.introduceButton},Xe.createElement("div",{className:fe.close,onClick:ur=>{ur.stopPropagation(),Pn(!1)}},"\u53D6\u6D88"),Xe.createElement("div",{className:fe.submit,onClick:ur=>{ur.stopPropagation(),(0,pe.R2)({id:Et==null?void 0:Et.id,introduce:Ht}).then(vn=>{(vn==null?void 0:vn.status)==0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),Pn(!1),Jt(!0))})}},"\u786E\u8BA4"))),Xe.createElement("div",{className:fe.fileTable},Xe.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),qt&&Xe.createElement("div",{className:fe.addBtn,onClick:()=>{Sn(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),Xe.createElement(Oe.default,{dataSource:or==null?void 0:or.attachments,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"\u6587\u4EF6",align:"left",width:400,dataIndex:"title",ellipsis:!0},{title:"\u5907\u6CE8",align:"left",dataIndex:"description",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",align:"left",ellipsis:!0,dataIndex:"created_on",render:ur=>Xe.createElement("span",{style:{color:"#666666"}},ur?Ce()(ur).format("YYYY-MM-DD"):"--")},{title:"\u6587\u4EF6\u5927\u5C0F",align:"left",dataIndex:"filesize",ellipsis:!0},{title:"\u4E0B\u8F7D\u6570",align:"center",dataIndex:"downloads",ellipsis:!0,render:(ur,vn)=>Xe.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>ft(void 0,null,function*(){var cr;((0,ze.Ny)()||((cr=nr==null?void 0:nr.userInfo)==null?void 0:cr.login)==="mfflo3p2e")&&(xr(!0),sr.type=vn==null?void 0:vn.container_type,sr.id=vn==null?void 0:vn.container_id,sr.page=1,sr.limit=10,Sr(xt({},sr)),yield mr(vn==null?void 0:vn.container_type,vn==null?void 0:vn.container_id))})},ur||"0")},{title:"\u64CD\u4F5C",align:"right",dataIndex:"role",width:qt?130:60,render:(ur,vn,cr)=>Xe.createElement("span",{style:{color:"#3061D0"}},Xe.createElement("div",{style:{display:"flex"}},Xe.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>ft(void 0,null,function*(){yield(0,Fe.Nd)(vn.title,vn==null?void 0:vn.download_url),yield(0,pe.SG)({id:vn==null?void 0:vn.id}),Jt()})},"\u4E0B\u8F7D"),qt&&Xe.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var xn,zr,$i,Mi;let yo=(zr=vn==null?void 0:vn.title)==null?void 0:zr.substring(((xn=vn==null?void 0:vn.title)==null?void 0:xn.lastIndexOf("."))+1);Wn.setFieldsValue({title:(Mi=vn==null?void 0:vn.title)==null?void 0:Mi.substring(0,($i=vn==null?void 0:vn.title)==null?void 0:$i.lastIndexOf(".")),description:vn==null?void 0:vn.description}),me.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:Xe.createElement("div",null,Xe.createElement(ae.default,{form:Wn,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},Xe.createElement(ae.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},Xe.createElement(re.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:Xe.createElement("span",null,".",yo)})),Xe.createElement(ae.default.Item,{label:"\u5907\u6CE8",name:"description"},Xe.createElement(je.Z,{placeholder:"\u5907\u6CE8\u8BF4\u660E\uFF0C\u6700\u591A255\u5B57",size:"large"})))),onOk:()=>ft(void 0,null,function*(){yield Wn.validateFields(),(0,pe.A0)({id:Et==null?void 0:Et.id,attachment_id:vn.id,filename:Wn.getFieldValue("title")+"."+yo,description:Wn.getFieldValue("description")}).then(no=>{(no==null?void 0:no.status)==0&&(we.ZP.success("\u7F16\u8F91\u6210\u529F"),Jt())})})})}},"\u7F16\u8F91"),qt&&Xe.createElement("div",{style:{color:"#9096A3",cursor:"pointer"},onClick:()=>{me.default.confirm({icon:null,centered:!0,title:"\u63D0\u793A",content:"\u5220\u9664\u6570\u636E\u96C6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>ft(void 0,null,function*(){(0,pe.Il)({attachment_id:vn==null?void 0:vn.id}).then(xn=>{(xn==null?void 0:xn.status)==0&&(we.ZP.success("\u5220\u9664\u6210\u529F"),Li({type:"user/getUserInfo"}),Jt(!0))})})})}},"\u5220\u9664")))}]}),Xe.createElement(me.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:an,title:"\u4E0A\u4F20\u6587\u4EF6",okButtonProps:{loading:gn,disabled:Fn},width:"1000px",onOk:()=>ft(void 0,null,function*(){const ur=lr.map(cr=>{var xn;return{attachment_id:(xn=cr.response)==null?void 0:xn.attachment_id,description:On}});if(lr.length===0){we.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}yn(!0);const vn=yield(0,ke.ZP)(`/api/data_sets/${Et==null?void 0:Et.id}/upload_attachments.json`,{method:"post",body:{attachments:ur}});(vn==null?void 0:vn.status)==0&&(we.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),Jt(),Sn(!1),Li({type:"user/getUserInfo"})),yn(!1)}),onCancel:()=>{if(Fn){me.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Sn(!1)}});return}Sn(!1)},afterClose:()=>{on([]),Nn(""),yn(!1),Rr()}},Xe.createElement("div",{className:fe.wrap},Xe.createElement("div",{className:"mb10"},Xe.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",Xe.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC72GB)")),Xe.createElement("div",null,Xe.createElement(le.default.Dragger,yt(xt({},$r),{height:300}),Xe.createElement("div",null,Xe.createElement("i",{className:`iconfont icon-shangchuan font50 ${fe.colorBlue}`})),Xe.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",Xe.createElement("span",{className:`${fe.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),Xe.createElement("div",{className:fe.box},lr.map(ur=>Xe.createElement("div",{key:ur.id,className:fe.row},Xe.createElement("div",{style:{display:"flex",alignItems:"center"}},Xe.createElement("div",{className:fe.icon},ur.status==="done"&&Xe.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),ur.status==="error"&&Xe.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),Xe.createElement("div",{style:{flex:1}},Xe.createElement(De.Z,{title:ur==null?void 0:ur.name},Xe.createElement("div",{style:{width:"100%",color:ur.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,Fe.tP)(ur==null?void 0:ur.name,9))),ur.status==="uploading"&&Xe.createElement(ue.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:ur.percent,showInfo:!1,style:{width:"900px"}}))),Xe.createElement("i",{onClick:()=>ri(ur),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),Xe.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),Xe.createElement("div",null,Xe.createElement(re.default,{allowClear:!0,value:On,onChange:ur=>{Nn(ur.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))),Xe.createElement(me.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:zn,title:"\u4E0B\u8F7D\u4FE1\u606F",width:"730px",onCancel:()=>{xr(!1)},footer:null},Xe.createElement("div",null,Xe.createElement(Oe.default,{dataSource:mn,scroll:{y:47*6},className:"mt10 mb10",loading:Yr,pagination:{total:bn||0,onChange:(ur,vn)=>ft(void 0,null,function*(){sr.page=ur,sr.limit=vn,Sr(xt({},sr)),yield mr()}),onShowSizeChange:(ur,vn)=>ft(void 0,null,function*(){sr.page=1,sr.limit=vn,Sr(xt({},sr)),yield mr()}),current:sr==null?void 0:sr.page,pageSize:sr==null?void 0:sr.limit,showTotal:ur=>Xe.createElement(Xe.Fragment,null,"\u5171",Xe.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},ur),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:ur=>Xe.createElement("span",null,ur||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:ur=>Xe.createElement("span",null,ur||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:ur=>Xe.createElement("span",null,ur||"--")},{title:"\u67E5\u770B\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:ur=>Xe.createElement("span",{style:{color:"#666666"}},ur?Ce()(ur).format("YYYY-MM-DD"):"--")}]}))))};var mt=(0,Pt.connect)(({polls:pr,loading:Pr,user:Ar,globalSetting:Li})=>({polls:pr,globalSetting:Li,user:Ar,loading:Pr.effects}))(gt),Nt=$e(26227),Tt=$e(95237),zt=$e(43604),St=$e(3113),wt={flex_box_center:"flex_box_center___kjELP",flex_space_between:"flex_space_between___IoBKu",flex_box_vertical_center:"flex_box_vertical_center___NuujF",flex_box_center_end:"flex_box_center_end___Kc5UK",flex_box_column:"flex_box_column___ebFBu",reply:"reply___xDf2z",replyList:"replyList___zMH5f",comment:"comment___qHsYF",content:"content___vTju0",commentItem:"commentItem___aGdcc",commentParItem:"commentParItem___XkqkQ",submitStyle:"submitStyle___RwXx8"},at=$e(67508),Ye=$e(59301),Pe=Object.defineProperty,Te=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,We=(pr,Pr,Ar)=>Pr in pr?Pe(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):pr[Pr]=Ar,Ke=(pr,Pr)=>{for(var Ar in Pr||(Pr={}))Ee.call(Pr,Ar)&&We(pr,Ar,Pr[Ar]);if(Ze)for(var Ar of Ze(Pr))He.call(Pr,Ar)&&We(pr,Ar,Pr[Ar]);return pr},Je=(pr,Pr)=>Te(pr,Ve(Pr)),dt=(pr,Pr,Ar)=>new Promise((Li,nr)=>{var or=Et=>{try{Jt(Ar.next(Et))}catch(ln){nr(ln)}},qt=Et=>{try{Jt(Ar.throw(Et))}catch(ln){nr(ln)}},Jt=Et=>Et.done?Li(Et.value):Promise.resolve(Et.value).then(or,qt);Jt((Ar=Ar.apply(pr,Pr)).next())});Ce().locale("ZH-cn");function Ct({user:pr,vlist:Pr=[],dispatch:Ar,params:Li,id:nr,memo_replies:or,forumsDetail:qt}){return Ye.createElement("aside",{className:wt.comment},Pr.map(function(Jt,Et){var ln,Pn;return Ye.createElement(Tt.Z,{key:Et,className:wt.commentItem},Ye.createElement(zt.Z,{span:24},Ye.createElement(Tt.Z,null,Ye.createElement(zt.Z,{flex:"1"},Ye.createElement("a",{href:`/users/${Jt.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},Jt==null?void 0:Jt.username),Ye.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Jt.time)),(Jt.can_delete||Jt.user_id===((ln=pr.userInfo)==null?void 0:ln.user_id)||Jt.user_login===((Pn=pr.userInfo)==null?void 0:Pn.login))&&Ye.createElement(zt.Z,{className:"forums-comment-delete",style:{display:"none"}},Ye.createElement(De.Z,{title:"\u5220\u9664"},Ye.createElement(Nt.Z,{className:"current",onClick:()=>{me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ye.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>dt(this,null,function*(){const $t=yield(0,at.sW)({id:Jt.id,memo_type:"data_set"}),It=or.find(fn=>fn.id===nr).children.filter(fn=>fn.id!==Jt.id);or.find(fn=>fn.id===nr).children=It,Ar({type:"forumsDetail/setForumsDetailData",payload:Je(Ke({},qt.forumsDetailData),{memo_replies:[...or],memo_type:"data_set"})})})})}}))))),Ye.createElement(zt.Z,null,Ye.createElement(ee.Z,{value:Jt.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var ht=Ct,Lt=$e(59301),en=Object.defineProperty,Vt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Xt=(pr,Pr,Ar)=>Pr in pr?en(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):pr[Pr]=Ar,tn=(pr,Pr)=>{for(var Ar in Pr||(Pr={}))rn.call(Pr,Ar)&&Xt(pr,Ar,Pr[Ar]);if(Ut)for(var Ar of Ut(Pr))Ft.call(Pr,Ar)&&Xt(pr,Ar,Pr[Ar]);return pr},dn=(pr,Pr)=>Vt(pr,Kt(Pr)),En=(pr,Pr,Ar)=>new Promise((Li,nr)=>{var or=Et=>{try{Jt(Ar.next(Et))}catch(ln){nr(ln)}},qt=Et=>{try{Jt(Ar.throw(Et))}catch(ln){nr(ln)}},Jt=Et=>Et.done?Li(Et.value):Promise.resolve(Et.value).then(or,qt);Jt((Ar=Ar.apply(pr,Pr)).next())});Ce().locale("ZH-cn");const An=({user:pr,forumsDetail:Pr,globalSetting:Ar,loading:Li,dispatch:nr,handleClick:or,memoId:qt},Jt)=>{const{memo:Et,memo_replies:ln}=Pr.forumsDetailData||{},Pn=(0,Pt.useParams)(),[$t,It]=(0,tt.useState)(""),[fn,un]=(0,tt.useState)(""),[Gn,Xn]=(0,tt.useState)(-1),[Ht,kn]=(0,tt.useState)(!1),[Wn,lr]=(0,tt.useState)(!1),[on,Mn]=(0,tt.useState)(1);(0,tt.useEffect)(()=>{kn((Et==null?void 0:Et.reply_for_memo_count)>10)},[Et==null?void 0:Et.reply_for_memo_count]),(0,tt.useEffect)(()=>{nr({type:"forumsDetail/getForumsDetailData",payload:{id:qt,memo_type:"data_set"}})},[]);const an=()=>En(void 0,null,function*(){var gn;const yn=on+1;Mn(yn);const On=yield(0,at.z5)({id:qt,page:yn,memo_type:"data_set"});On!=null&&On.memo_replies&&(nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo_replies:[...ln,...On.memo_replies]})}),kn(((gn=On.memo_replies)==null?void 0:gn.length)===10))}),Sn=gn=>{var yn,On,Nn,Fn;return dn(tn({},gn),{image_url:(yn=pr.userInfo)==null?void 0:yn.image_url,children:[],user_id:(On=pr.userInfo)==null?void 0:On.user_id,user_login:(Nn=pr.userInfo)==null?void 0:Nn.login,username:(Fn=pr.userInfo)==null?void 0:Fn.username,time:`${(0,Fe.li)((new Date().getTime()-new Date(gn.created_at).getTime())/1e3)}\u524D`})};return Lt.createElement("section",{className:wt.wrap},!!(ln!=null&&ln.length)&&Lt.createElement("aside",{className:wt.content},Lt.createElement("aside",{className:wt.replyList},ln==null?void 0:ln.map(function(gn,yn){var On,Nn,Fn;return Lt.createElement(Tt.Z,{gutter:[12,12],key:yn},Lt.createElement(zt.Z,{flex:"40px"},Lt.createElement("a",{href:`/users/${gn.user_login}`,target:"_blank"},Lt.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${xe.Z.IMG_SERVER}/images/${gn==null?void 0:gn.image_url}`}))),Lt.createElement(zt.Z,{flex:"1"},Lt.createElement(Tt.Z,{align:"middle",className:wt.commentParItem},Lt.createElement(zt.Z,{span:24},Lt.createElement(Tt.Z,null,Lt.createElement(zt.Z,{flex:"1"},Lt.createElement("a",{href:`/users/${gn.user_login}`,target:"_blank"},Lt.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},gn==null?void 0:gn.username)),Lt.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},gn.time)),(gn.can_delete||gn.user_id===((On=pr.userInfo)==null?void 0:On.user_id)||gn.user_login===((Nn=pr.userInfo)==null?void 0:Nn.login))&&Lt.createElement(zt.Z,{className:"forums-comment-par-delete",style:{display:"none"}},Lt.createElement(De.Z,{title:"\u5220\u9664"},Lt.createElement(Nt.Z,{className:"current",onClick:()=>{me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Lt.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>En(this,null,function*(){const zn=yield(0,at.sW)({id:gn.id,memo_type:"data_set"}),xr=ln.filter(mn=>mn.id!==gn.id);nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo_replies:[...xr],memo_type:"data_set"})})})})}}))))),Lt.createElement(zt.Z,{span:24,style:{marginTop:"5px"}},Lt.createElement("div",{onClick:or},Lt.createElement(ee.Z,{value:gn.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((Fn=gn==null?void 0:gn.children)!=null&&Fn.length)&&Lt.createElement(ht,{user:pr,id:gn==null?void 0:gn.id,vlist:gn==null?void 0:gn.children,dispatch:nr,params:Pn,memo_replies:ln,forumsDetail:Pr}),Lt.createElement(zt.Z,{span:24,className:"mt5 c-light-black"},Gn===yn?Lt.createElement("aside",null,Lt.createElement(z.Z,{onChange:zn=>{un(zn)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),Lt.createElement(Tt.Z,null,Lt.createElement(zt.Z,{span:24,className:"tr"},Lt.createElement(St.ZP,{type:"primary",size:"middle",onClick:()=>En(this,null,function*(){if(fn==="")we.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const zn=yield(0,at.ts)({parent_id:gn.id,content:fn,memo_type:"data_set"});un(null),zn&&(Xn(-1),ln.find(xr=>xr.id===zn.parent_id).children.push(Sn(zn)),nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo:dn(tn({},Et),{reply_for_memo_count:(Et==null?void 0:Et.reply_for_memo_count)+1}),memo_replies:[...ln],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):Lt.createElement("div",{className:"tr",style:{textAlign:"left"}},Lt.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>Xn(yn)}),Lt.createElement(De.Z,{title:gn.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},Lt.createElement("span",{className:gn.user_praise?"c-orange":"c-gery-888"},Lt.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>En(this,null,function*(){const zn=yield(0,at.vL)({id:gn.id,container_type:"Memo",type:gn.user_praise?0:1,memo_type:"data_set"});(zn==null?void 0:zn.praise_count)>=0&&(ln.find(xr=>xr.id===gn.id).user_praise=!gn.user_praise,ln.find(xr=>xr.id===gn.id).praise_count=zn==null?void 0:zn.praise_count,nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo_replies:[...ln],memo_type:"data_set"})}))})}),gn.praise_count>0?gn.praise_count:"")))))))}))),Ht&&Lt.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},Lt.createElement(Tt.Z,{justify:"space-between"},Lt.createElement(zt.Z,null),Lt.createElement(zt.Z,null,Ht&&Lt.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:an},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",Lt.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),Lt.createElement("aside",{className:wt.reply},Lt.createElement(z.Z,{onBlur:()=>lr(!1),isFocus:Wn,defaultValue:$t,id:"writeForumsReviewId",onChange:gn=>{It(gn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),Lt.createElement(Tt.Z,null,Lt.createElement(zt.Z,{flex:"1"}),Lt.createElement(zt.Z,null,Lt.createElement("div",{className:wt.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>En(void 0,null,function*(){if($t==="")we.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const gn=yield(0,at.ts)({parent_id:Et==null?void 0:Et.id,content:$t,memo_type:"data_set"});It(null),gn&&nr({type:"forumsDetail/setForumsDetailData",payload:dn(tn({},Pr.forumsDetailData),{memo:dn(tn({},Et),{reply_for_memo_count:(Et==null?void 0:Et.reply_for_memo_count)+1}),memo_replies:[Sn(gn),...ln],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var ar=(0,Pt.connect)(({user:pr,forumsDetail:Pr,loading:Ar,globalSetting:Li})=>({user:pr,forumsDetail:Pr,globalSetting:Li,loading:Ar.models.forumsDetail}),null,null,{forwardRef:!0})((0,tt.forwardRef)(An)),tr=$e(85057),Tr=$e(19683),Vn=$e(59301),Or=Object.defineProperty,Dr=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,Nr=(pr,Pr,Ar)=>Pr in pr?Or(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):pr[Pr]=Ar,di=(pr,Pr)=>{for(var Ar in Pr||(Pr={}))Jr.call(Pr,Ar)&&Nr(pr,Ar,Pr[Ar]);if(Dr)for(var Ar of Dr(Pr))ni.call(Pr,Ar)&&Nr(pr,Ar,Pr[Ar]);return pr},Ir=(pr,Pr,Ar)=>new Promise((Li,nr)=>{var or=Et=>{try{Jt(Ar.next(Et))}catch(ln){nr(ln)}},qt=Et=>{try{Jt(Ar.throw(Et))}catch(ln){nr(ln)}},Jt=Et=>Et.done?Li(Et.value):Promise.resolve(Et.value).then(or,qt);Jt((Ar=Ar.apply(pr,Pr)).next())});let ot={public:"\u516C\u5F00\u6570\u636E\u96C6",mine:"\u6211\u7684\u6570\u636E\u96C6",share:"\u56E2\u961F\u5171\u4EAB",collect:"\u6211\u6536\u85CF\u7684"};const Ci=({polls:pr,globalSetting:Pr,loading:Ar,dispatch:Li,user:nr})=>{var or,qt,Jt;const Et=(0,Pt.useParams)(),[ln]=(0,Pt.useSearchParams)(),[Pn,$t]=(0,tt.useState)(!1),[It,fn]=(0,tt.useState)(1),[un,Gn]=(0,tt.useState)(null),[Xn,Ht]=(0,tt.useState)(""),[kn,Wn]=(0,tt.useState)(),[lr,on]=(0,tt.useState)(1),[Mn,an]=(0,tt.useState)(1),Sn=(0,tt.useRef)([]),[gn,yn]=(0,tt.useState)([]),[On,Nn]=(0,tt.useState)(!1),[Fn,zn]=(0,tt.useState)(!1),[xr,mn]=(0,tt.useState)(!1),[Fr,Yr]=(0,tt.useState)([]),[Br,bn]=(0,tt.useState)(!1),[Jn,sr]=(0,tt.useState)(0),[Sr,mr]=(0,tt.useState)({page:1,limit:10}),$r=()=>Ir(void 0,null,function*(){bn(!0);const cr=yield(0,pe.iw)({container_type:un==null?void 0:un.container_type,container_id:un==null?void 0:un.container_id,page:Sr==null?void 0:Sr.page,limit:Sr==null?void 0:Sr.limit});(cr==null?void 0:cr.status)==0&&(Yr(cr==null?void 0:cr.data),sr(cr==null?void 0:cr.total_count),bn(!1))});(0,tt.useEffect)(()=>{br(),(0,ke.ZP)("/api/teach_group_shares.json",{method:"get"}).then(cr=>{(cr==null?void 0:cr.status)==0&&yn(cr==null?void 0:cr.groups)})},[]),(0,tt.useEffect)(()=>{It==2&&Rr()},[It,lr]);const ri=(cr,xn)=>(cr=Math.max(cr,0),xn=Math.max(xn,1),Math.ceil(cr/xn)),Rr=()=>{(0,pe.Ce)({id:Et==null?void 0:Et.id,page:lr,limit:16}).then(cr=>{var xn,zr;(cr==null?void 0:cr.status)==0&&(Wn((xn=cr==null?void 0:cr.data)==null?void 0:xn.shixuns),an(ri((zr=cr==null?void 0:cr.data)==null?void 0:zr.count,16)))})},br=(cr=!1)=>{zn(!0),(0,pe.Ru)(Et==null?void 0:Et.id).then(xn=>{var zr,$i;(xn==null?void 0:xn.status)==0&&(Gn(xn==null?void 0:xn.data),$t((0,ze.Ny)()||((zr=xn==null?void 0:xn.data)==null?void 0:zr.is_creator)),Sn.current=($i=xn==null?void 0:xn.data)==null?void 0:$i.share_group_ids,cr&&Ht(new Date),zn(!1))})},ur=()=>{Nn(!1)},vn=()=>{br(),Nn(!1)};return Vn.createElement(oe.Z,{spinning:Fn},Vn.createElement("section",{className:ve.bg},un&&Vn.createElement(Vn.Fragment,null,Vn.createElement("div",{className:"edu-container"},Vn.createElement("aside",{className:"mt10"},Vn.createElement(Ge.Z,{separator:">"},Vn.createElement(Ge.Z.Item,null,Vn.createElement(Pt.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),Vn.createElement(Ge.Z.Item,null,Vn.createElement(Pt.Link,{to:`/dataset?tabId=${ln.get("tabId")}`},ot[ln.get("tabId")])),Vn.createElement(Ge.Z.Item,null,un==null?void 0:un.title))),Vn.createElement("aside",{className:ve.wrap},Vn.createElement("div",{className:ve.leftContent,style:{width:Pn?"78%":"87%"}},Vn.createElement("div",{className:ve.header},Vn.createElement("div",{className:ve.headerBack,onClick:()=>{Pt.history.push(`/dataset?tabId=${ln.get("tabId")}`)}},Vn.createElement("i",{className:"iconfont icon-fanhui4 ",style:{fontSize:"10px",margin:"0 3px 0 5px"}}),"\u8FD4\u56DE"),Vn.createElement("div",{className:ve.title},un==null?void 0:un.title),Vn.createElement("div",{className:ve.time},un==null?void 0:un.create_at)),Vn.createElement("div",{className:ve.introduction},un==null?void 0:un.desc),Vn.createElement("div",{className:ve.bottom},((or=un==null?void 0:un.user_info)==null?void 0:or.image_url)&&Vn.createElement("img",{className:ve.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${xe.Z.IMG_SERVER}/images/${(qt=un==null?void 0:un.user_info)==null?void 0:qt.image_url}`}),Vn.createElement("div",{className:ve.user_name},un==null?void 0:un.user_info_name),(Jt=un==null?void 0:un.data_set_tags)==null?void 0:Jt.map((cr,xn)=>{var zr;return xn<3?Vn.createElement("div",{key:xn,className:ve.tags_name},cr==null?void 0:cr.tag_name):xn==3?Vn.createElement(De.Z,{key:xn,title:(zr=un==null?void 0:un.data_set_tags)==null?void 0:zr.map(($i,Mi)=>{var yo;if(Mi>2)return($i==null?void 0:$i.tag_name)+(Mi===((yo=un==null?void 0:un.data_set_tags)==null?void 0:yo.length)-1?"":"\u3001")}).join("")},Vn.createElement("div",{key:xn,className:ve.tags_name},"...")):null}),Vn.createElement("div",{className:ve.buttonList},Vn.createElement(De.Z,{title:`\u5F15\u7528\u6570\uFF1A${un==null?void 0:un.used_count}`},Vn.createElement("div",{className:`${ve.buttonItem} current`},Vn.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),un==null?void 0:un.used_count)),Vn.createElement(De.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${un==null?void 0:un.visited_count}`},Vn.createElement("div",{className:`${ve.buttonItem} current`,onClick:()=>Ir(void 0,null,function*(){var cr;((0,ze.Ny)()||((cr=nr==null?void 0:nr.userInfo)==null?void 0:cr.login)==="mfflo3p2e")&&(mn(!0),Sr.page=1,Sr.limit=10,mr(di({},Sr)),yield $r())})},Vn.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),un==null?void 0:un.visited_count)),Vn.createElement(De.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${un==null?void 0:un.comment_count}`},Vn.createElement("div",{className:`${ve.buttonItem} current`},Vn.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),un==null?void 0:un.comment_count))))),Vn.createElement("div",{className:ve.rightContent,style:{width:Pn?"22%":"13%"}},Pn?Vn.createElement("div",{style:{display:"flex",marginLeft:"auto"}},Vn.createElement("div",{className:ve.share,onClick:()=>Ir(void 0,null,function*(){me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:Vn.createElement("div",{className:`font14 ${ve.overflow}`},Vn.createElement("div",{className:ve.tips},"\u63D0\u793A\uFF1A\u5171\u4EAB\u540E\u7684\u6570\u636E\u96C6\u652F\u6301\u56E2\u961F\u6210\u5458\u8FDB\u884C\u7F16\u8F91\uFF0C\u5982\u9700\u64A4\u9500\u672C\u6570\u636E\u96C6\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u3002"),Vn.createElement(ce.default.Group,{style:{marginTop:"10px"},defaultValue:un==null?void 0:un.share_group_ids,onChange:cr=>{Sn.current=cr}},gn==null?void 0:gn.map(cr=>Vn.createElement(ce.default,{key:cr==null?void 0:cr.group_id,value:cr==null?void 0:cr.group_id},cr==null?void 0:cr.name)))),onOk:()=>{(0,pe.l5)({ids:[un==null?void 0:un.id],clazz:"DataSet",group_ids:Sn.current}).then(cr=>{(cr==null?void 0:cr.status)==0&&(we.ZP.success("\u5171\u4EAB\u6210\u529F"),br())})}})})},"\u5171\u4EAB"),Vn.createElement("div",{className:ve.publicStyle,onClick:()=>{me.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:(un==null?void 0:un.public_status)==0?"\u7533\u8BF7\u516C\u5F00\u9700\u8981\u5F85\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u81EA\u52A8\u516C\u5F00":(un==null?void 0:un.public_status)==1?"\u53D6\u6D88\u516C\u5F00\u540E\uFF0C\u5176\u4ED6\u7528\u6237\u5C06\u4E0D\u53EF\u89C1\uFF0C\u540C\u65F6\u518D\u6B21\u516C\u5F00\u9700\u8981\u91CD\u65B0\u8FDB\u884C\u7533\u8BF7":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u7533\u8BF7\u8BB0\u5F55\u5C06\u5220\u9664\uFF0C\u5982\u9700\u516C\u5F00\u8BF7\u518D\u6B21\u7533\u8BF7",onOk:()=>Ir(void 0,null,function*(){let cr;switch(un==null?void 0:un.public_status){case 0:cr=(0,pe.To)(un==null?void 0:un.id);break;case 1:cr=(0,pe.a6)(un==null?void 0:un.id);break;case 2:cr=(0,pe.Dx)(un==null?void 0:un.id);break;default:return}cr.then(xn=>{(xn==null?void 0:xn.status)===0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),br())})})})}},(un==null?void 0:un.public_status)==0?"\u7533\u8BF7\u516C\u5F00":(un==null?void 0:un.public_status)==1?"\u53D6\u6D88\u516C\u5F00":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Vn.createElement(Le.Z,{menu:{items:[{label:Vn.createElement("div",null,"\u7F16\u8F91"),key:"4",onClick:()=>{Nn(!0)}},{label:Vn.createElement("div",{onClick:()=>{me.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,content:"\u5220\u9664\u6570\u636E\u96C6\u4E2D\u7684\u6587\u4EF6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk(){return Ir(this,null,function*(){(0,pe.pP)(un==null?void 0:un.id).then(cr=>{(cr==null?void 0:cr.status)==0&&(we.ZP.success("\u5220\u9664\u6210\u529F"),Pt.history.push("/dataset"))})})}})}},"\u5220\u9664"),key:"5"}]}},Vn.createElement("div",{className:ve.more},Vn.createElement("i",{className:"iconfont icon-gengduo6 font12"})))):Vn.createElement("div",{className:un!=null&&un.current_user_is_collect?ve.collectActiveStyle:ve.collectStyle,onClick:()=>{let cr;un!=null&&un.current_user_is_collect?cr=(0,pe.R9)({container_id:un==null?void 0:un.id,container_type:"DataSet"}):cr=(0,pe.nW)({container_id:un==null?void 0:un.id,container_type:"DataSet"}),cr.then(xn=>{(xn==null?void 0:xn.status)===0&&br()})}},Vn.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",un==null?void 0:un.collect_count))),Vn.createElement("div",{className:ve.content},Vn.createElement("div",{style:{display:"flex",alignItems:"center"}},Vn.createElement(Se.ZP.Group,{className:ve.addTypeRadio,optionType:"button",options:[{label:"\u8BE6\u60C5",value:1},{label:"\u5B9E\u8DF5\u9879\u76EE",value:2},{label:"\u8BA8\u8BBA",value:3}],onChange:cr=>{var xn;fn((xn=cr==null?void 0:cr.target)==null?void 0:xn.value)},value:It}),Vn.createElement("div",{className:ve.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${Et==null?void 0:Et.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),It==1&&Vn.createElement(mt,{dataSetInfo:un,getInfo:br,key:Xn,indexType:Pn}),It==2&&Vn.createElement("div",null,Vn.createElement("div",{className:ve.shixunTooltip},Vn.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A\uFF1A\u4EC5\u5C55\u793A\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u4E14\u516C\u5F00\u7684\u5B9E\u8DF5\u9879\u76EE"),Vn.createElement(tr.wb,{dataSource:kn,right:23,col:4,precision:1,loading:!1,wrapWidth:1140,trackEventItems:["\u5B9E\u8DF5\u9879\u76EE","\u9996\u9875","\u5B9E\u8BAD\u5217\u8868\u67E5\u770B\u8BE6\u60C5"]}),Mn>1&&Vn.createElement("div",{className:ve.pageStyle},Vn.createElement("div",{className:lr==1?ve.pageUnCan:ve.pageCan,style:{marginRight:"10px"},onClick:()=>{lr>1&&on(lr-1)}},"\u4E0A\u4E00\u9875"),Vn.createElement("div",{className:lr==Mn?ve.pageUnCan:ve.pageCan,style:{marginLeft:"10px"},onClick:()=>{lr<Mn&&on(lr+1)}},"\u4E0B\u4E00\u9875"))),It==3&&Vn.createElement(ar,{memoId:un==null?void 0:un.memo_id})))),Vn.createElement(Tr.Z,{dataSetInfo:un,visible:On,onClose:ur,onSuccess:vn}),Vn.createElement(me.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:xr,title:"\u6D4F\u89C8\u4FE1\u606F",width:"730px",onCancel:()=>{mn(!1)},footer:null},Vn.createElement("div",null,Vn.createElement(Oe.default,{dataSource:Fr,loading:Br,className:"mt10 mb10",scroll:{y:47*6},pagination:{total:Jn||0,onChange:(cr,xn)=>{Sr.page=cr,Sr.limit=xn,mr(di({},Sr)),$r()},current:Sr==null?void 0:Sr.page,pageSize:Sr==null?void 0:Sr.limit,showTotal:cr=>Vn.createElement(Vn.Fragment,null,"\u5171",Vn.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},cr),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:cr=>Vn.createElement("span",null,cr||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:cr=>Vn.createElement("span",null,cr||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:cr=>Vn.createElement("span",null,cr||"--")},{title:"\u67E5\u770B\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:cr=>Vn.createElement("span",{style:{color:"#666666"}},cr?Ce()(cr).format("YYYY-MM-DD"):"--")}]})))))};var xi=(0,Pt.connect)(({polls:pr,loading:Pr,user:Ar,globalSetting:Li})=>({polls:pr,globalSetting:Li,user:Ar,loading:Pr.effects}))(Ci)},56210:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Oe}});var tt=$e(59301),Pt=$e(89070),oe=$e(57809),Ge=$e(71418),De=$e(8591),me={flex_box_center:"flex_box_center___OmLFa",flex_space_between:"flex_space_between___Pwqhp",flex_box_vertical_center:"flex_box_vertical_center___UJzms",flex_box_center_end:"flex_box_center_end___qMu25",flex_box_column:"flex_box_column___AimtA",selectList:"selectList___hGJUN",selectHeader:"selectHeader___HxdBZ",selectContent:"selectContent___oWjby",contentTitle:"contentTitle___xlVyW",contentTags:"contentTags___BGCLU",tagName:"tagName___MIGDL",tagNameActive:"tagNameActive___JCRev",activeStyle:"activeStyle___FvXnt",activeLabel:"activeLabel___RzW9T",activeValue:"activeValue___qxoch",activeItem:"activeItem___NfFjA",activeClose:"activeClose___Su7dS",activeSubmit:"activeSubmit___gjhQA"},ce=$e(37904),we=$e(59301),Le=(ve,xe,fe)=>new Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(ve,xe)).next())});const Se=({user:ve,width:xe,selectWidth:fe,tags:z,getDataSet:ee,placeholder:ae="\u5168\u90E8\u6807\u7B7E",isTagsValue:re=!1})=>{const[le,ue]=(0,tt.useState)([]),[pe,be]=(0,tt.useState)([]),[Ce,Fe]=(0,tt.useState)(!1),je=(0,tt.useRef)(null);(0,tt.useEffect)(()=>{ke()},[]);const ke=()=>Le(void 0,null,function*(){Fe(!0),yield(0,ce.bj)({}).then(Be=>{(Be==null?void 0:Be.status)==0&&ue(Be==null?void 0:Be.data)}),Fe(!1)}),Ae=z==null?void 0:z.map(Be=>Be.tag_name).join("\u3001");return we.createElement(oe.default,{onFocus:()=>{be(z)},ref:je,style:{width:fe?fe+"px":300},placeholder:(z==null?void 0:z.length)>0?re?we.createElement("span",{className:"c-grey-333"},Ae):`\u5DF2\u9009\u4E2D${z==null?void 0:z.length}\u4E2A\u6807\u7B7E`:ae,size:"large",dropdownStyle:{width:xe+"px",zIndex:1e3},className:me.selectStyle,dropdownRender:()=>we.createElement("div",{className:me.selectList,style:{width:xe+"px"}},we.createElement("div",{className:me.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),we.createElement(Ge.Z,{spinning:Ce},we.createElement("div",{className:me.selectContent},le==null?void 0:le.map((Be,_e)=>{var et;return we.createElement("aside",{key:_e},we.createElement("div",{className:me.contentTitle,style:{marginTop:_e>0?"20px":"0"}},Be==null?void 0:Be.tag_type_cn),we.createElement("div",{className:me.contentTags},(et=Be==null?void 0:Be.child)==null?void 0:et.map((ze,Xe)=>{var Qe;return we.createElement("div",{key:Xe,className:(Qe=pe==null?void 0:pe.map(lt=>lt==null?void 0:lt.id))!=null&&Qe.includes(ze==null?void 0:ze.id)?me.tagNameActive:me.tagName,onClick:()=>{var lt;(lt=pe==null?void 0:pe.map(ct=>ct==null?void 0:ct.id))!=null&<.includes(ze==null?void 0:ze.id)?be(pe.filter(ct=>(ct==null?void 0:ct.id)!=(ze==null?void 0:ze.id))):(pe==null?void 0:pe.length)<5?be([...pe,ze]):De.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},ze==null?void 0:ze.tag_name)})))}))),we.createElement("div",{className:me.activeStyle},we.createElement("div",{className:me.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),we.createElement("div",{className:me.activeValue,style:{width:xe-120+"px"}},pe==null?void 0:pe.map((Be,_e)=>we.createElement("div",{key:_e,className:me.activeItem},Be==null?void 0:Be.tag_name,we.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{be(pe.filter(et=>(et==null?void 0:et.id)!==(Be==null?void 0:Be.id)))}}))))),we.createElement("div",{style:{display:"flex",marginBottom:"20px"}},we.createElement("div",{className:me.activeClose,onClick:Be=>{Be.stopPropagation(),ee([...z]),be([]),setTimeout(()=>{je.current&&je.current.blur()},10)}},"\u53D6\u6D88"),we.createElement("div",{className:me.activeSubmit,onClick:Be=>{Be.stopPropagation(),ee([...pe]),be([]),setTimeout(()=>{je.current&&je.current.blur()},10)}},"\u786E\u8BA4")))})};var Oe=(0,Pt.connect)(({user:ve})=>({user:ve}))(Se)},37904:function(Rn,wn,$e){"use strict";$e.d(wn,{A0:function(){return Ce},Ce:function(){return re},Dx:function(){return ve},Il:function(){return be},R2:function(){return ae},R9:function(){return z},Ru:function(){return ee},SG:function(){return je},To:function(){return Oe},_S:function(){return Se},a6:function(){return xe},bj:function(){return Le},iw:function(){return Fe},l5:function(){return pe},nW:function(){return fe},pP:function(){return ue},pi:function(){return le}});var tt=$e(99064),Pt=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,me=(ke,Ae,Be)=>Ae in ke?Pt(ke,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[Ae]=Be,ce=(ke,Ae)=>{for(var Be in Ae||(Ae={}))Ge.call(Ae,Be)&&me(ke,Be,Ae[Be]);if(oe)for(var Be of oe(Ae))De.call(Ae,Be)&&me(ke,Be,Ae[Be]);return ke},we=(ke,Ae,Be)=>new Promise((_e,et)=>{var ze=lt=>{try{Qe(Be.next(lt))}catch(ct){et(ct)}},Xe=lt=>{try{Qe(Be.throw(lt))}catch(ct){et(ct)}},Qe=lt=>lt.done?_e(lt.value):Promise.resolve(lt.value).then(ze,Xe);Qe((Be=Be.apply(ke,Ae)).next())});function Le(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/data_sets/tags.json",{method:"get",params:ce({},ke)})})}function Se(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/data_sets.json",{method:"get",params:ce({},ke)})})}function Oe(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}/apply_public.json`,{method:"post"})})}function ve(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}/revoke_apply_public.json`,{method:"post"})})}function xe(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}/cancel_public.json`,{method:"post"})})}function fe(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/collections.json",{method:"post",body:ce({},ke)})})}function z(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/collections/cancel.json",{method:"delete",body:ce({},ke)})})}function ee(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}.json`,{method:"get"})})}function ae(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke==null?void 0:ke.id}/edit_introduce.json`,{method:"put",body:ce({},ke)})})}function re(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke==null?void 0:ke.id}/used_shixuns.json`,{method:"get",params:ce({},ke)})})}function le(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/shixuns/${ke}/data_sets_list.json`,{method:"get"})})}function ue(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke}/delete.json`,{method:"delete"})})}function pe(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/teach_group_shares.json",{method:"post",body:ce({},ke)})})}function be(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:ce({},ke)})})}function Ce(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${ke==null?void 0:ke.id}/edit_file_info.json`,{method:"put",body:ce({},ke)})})}function Fe(ke){return we(this,null,function*(){return(0,tt.ZP)("/api/visit_logs.json",{method:"get",params:ce({},ke)})})}function je(ke){return we(this,null,function*(){return(0,tt.ZP)(`/api/attachments/${ke==null?void 0:ke.id}/update_download.json`,{method:"get"})})}},24768:function(Rn,wn,$e){"use strict";$e.d(wn,{AL:function(){return pe},Iy:function(){return Oe},Qv:function(){return fe},ez:function(){return ue},jb:function(){return ve}});var tt=$e(32834),Pt=$e.n(tt),oe=$e(11690),Ge=$e.n(oe);let De=1;function me(ke,Ae){const Be=ke.match(/^(\s+)(?:```)/);if(Be===null)return Ae;const _e=Be[1];return Ae.split(`
|
|
|
`).map(et=>{const ze=et.match(/^\s+/);if(ze===null)return et;const[Xe]=ze;return Xe.length>=_e.length?et.slice(_e.length):et}).join(`
|
|
|
`)}let ce=[],we=["<ul>"];const Le=new(Pt()).Renderer,Se=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Oe(){ce.length=0,we=["<ul>"]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function xe(ke,Ae,Be,_e){if(Ae>=ke.length||ke[Ae].level<=Be)return Ae;var et=ke[Ae];_e.push("<li><a href='#"+De+et.anchor+"'>"+et.text+"</a>"),Ae++;var ze=[];return Ae=xe(ke,Ae,et.level,ze),ze.length>0&&(_e.push("<ul>"),ze.forEach(function(Xe){_e.push(Xe)}),_e.push("</ul>")),_e.push("</li>"),Ae=xe(ke,Ae,Be,_e),Ae}function fe(){return xe(ce,0,0,we),we.push("</ul>"),we.join("")}const z={heading(ke){const Ae=Se.exec(ke);if(De+=1,Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},fences(ke){const Ae=this.rules.block.fences.exec(ke);if(Ae){const Be=Ae[0];let _e=me(Be,Ae[3]||"");const et=Ae[2]?Ae[2].trim():Ae[2];if(["latex","katex","math"].indexOf(et)>=0){const ze=re(),Xe=_e;_e=ze,le[ze]={type:"block",expression:Xe}}return{type:"code",raw:Be,lang:et,text:_e}}}},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 be(ke){return ke=ke.replace(ee,(Ae,Be)=>{const _e=re();return le[_e]={type:"inline",expression:Be},_e}),ke}const Ce=Le.listitem;Le.listitem=function(ke){return Ce(be(ke))};const Fe=Le.paragraph;Le.paragraph=function(ke){return Fe(be(ke))};const je=Le.tablecell;Le.tablecell=function(ke,Ae){return je(be(ke),Ae)},Le.code=function(ke,Ae,Be){const _e=(Ae||"").match(/\S*/)[0];return _e?["latex","katex","math"].indexOf(_e)>=0?`<p class='editormd-tex'>${ke}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ae}">${Be?ke:(0,oe.escape)(ke,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Be?ke:(0,oe.escape)(ke,!0))+"</code></pre>"},Le.heading=function(ke,Ae,Be){let _e=this.options.headerPrefix+Be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ce.push({anchor:_e,level:Ae,text:ke}),"<h"+Ae+' id="'+De+_e+'">'+ke+"</h"+Ae+">"},Pt().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pt().use({tokenizer:z,renderer:Le}),wn.ZP=Pt()},47257:function(Rn){(function(wn){(function($e){if(1)Rn.exports=$e();else var tt})(function(){var $e,tt,Pt;return function(){function oe(Ge,De,me){function ce(Se,Oe){if(!De[Se]){if(!Ge[Se]){var ve=void 0;if(!Oe&&ve)return require(Se,!0);if(we)return we(Se,!0);var xe=new Error("Cannot find module '"+Se+"'");throw xe.code="MODULE_NOT_FOUND",xe}var fe=De[Se]={exports:{}};Ge[Se][0].call(fe.exports,function(z){var ee=Ge[Se][1][z];return ce(ee||z)},fe,fe.exports,oe,Ge,De,me)}return De[Se].exports}for(var we=void 0,Le=0;Le<me.length;Le++)ce(me[Le]);return ce}return oe}()({1:[function(oe,Ge,De){"use strict";var me=oe("./browser/client");me.Buffer=oe("buffer").Buffer,me.urllib=oe("../shims/xhr"),me.version=oe("./browser/version").version,Ge.exports=me},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(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 Le=oe("assert"),Se=oe("../common/utils/checkBucketName"),Oe=Se.checkBucketName,ve=De;function xe(z){return Array.isArray?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"}function fe(z){return z?xe(z)?z:[z]:[]}ve.useBucket=function(ee){return Oe(ee),this.options.bucket=ee,this},ve.setBucket=function(ee){return Oe(ee),this.options.bucket=ee,this},ve.getBucket=function(){return this.options.bucket},ve.deleteBucket=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.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}(),ve.putBucketACL=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le,ue){var pe,be;return ce.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],Fe.next=5,this.request(pe);case 5:return be=Fe.sent,Fe.abrupt("return",{bucket:be.headers.location&&be.headers.location.substring(1)||null,res:be.res});case 7:case"end":return Fe.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketACL=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.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}(),ve.putBucketLogging=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le,ue){var pe,be,Ce;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return pe=this._bucketRequestParams("PUT",re,"logging",ue),be=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(re,`</TargetBucket>
|
|
|
`),le&&(be+="<TargetPrefix>".concat(le,`</TargetPrefix>
|
|
|
`)),be+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,pe.content=be,pe.mime="xml",pe.successStatuses=[200],je.next=9,this.request(pe);case 9:return Ce=je.sent,je.abrupt("return",{res:Ce.res});case 11:case"end":return je.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketLogging=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe,be;return ce.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,Fe.next=5,this.request(ue);case 5:return pe=Fe.sent,be=pe.data.LoggingEnabled,Fe.abrupt("return",{enable:!!be,prefix:be&&be.TargetPrefix||null,res:pe.res});case 8:case"end":return Fe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketLogging=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.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}(),ve.putBucketCORS=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le,ue){var pe,be,Ce,Fe,je,ke,Ae,Be,_e,et;return ce.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:for(le=le||[],Le(le.length,"rules is required"),le.forEach(function(Qe){Le(Qe.allowedOrigin,"allowedOrigin is required"),Le(Qe.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),be=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,Ce=function(lt){be+="<AllowedOrigin>".concat(lt,"</AllowedOrigin>")},Fe=function(lt){be+="<AllowedMethod>".concat(lt,"</AllowedMethod>")},je=function(lt){be+="<AllowedHeader>".concat(lt,"</AllowedHeader>")},ke=function(lt){be+="<ExposeHeader>".concat(lt,"</ExposeHeader>")},Ae=0,Be=le.length;Ae<Be;Ae++)_e=le[Ae],be+="<CORSRule>",fe(_e.allowedOrigin).forEach(Ce),fe(_e.allowedMethod).forEach(Fe),fe(_e.allowedHeader).forEach(je),fe(_e.exposeHeader).forEach(ke),_e.maxAgeSeconds&&(be+="<MaxAgeSeconds>".concat(_e.maxAgeSeconds,"</MaxAgeSeconds>")),be+="</CORSRule>";return be+="</CORSConfiguration>",pe.content=be,pe.mime="xml",pe.successStatuses=[200],Xe.next=16,this.request(pe);case 16:return et=Xe.sent,Xe.abrupt("return",{res:et.res});case 18:case"end":return Xe.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketCORS=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe,be,Ce;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ue=this._bucketRequestParams("GET",re,"cors",le),ue.successStatuses=[200],ue.xmlResponse=!0,je.next=5,this.request(ue);case 5:return pe=je.sent,be=[],pe.data&&pe.data.CORSRule&&(Ce=pe.data.CORSRule,xe(Ce)||(Ce=[Ce]),Ce.forEach(function(ke){var Ae={};Object.keys(ke).forEach(function(Be){Ae[Be.slice(0,1).toLowerCase()+Be.slice(1,Be.length)]=ke[Be]}),be.push(Ae)})),je.abrupt("return",{rules:be,res:pe.res});case 9:case"end":return je.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketCORS=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.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}(),ve.putBucketReferer=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le,ue,pe){var be,Ce,Fe,je;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(be=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>
|
|
|
`,Fe=0;Fe<ue.length;Fe++)Ce+=" <Referer>".concat(ue[Fe],`</Referer>
|
|
|
`);Ce+=` </RefererList>
|
|
|
`}else Ce+=` <RefererList />
|
|
|
`;return Ce+="</RefererConfiguration>",be.content=Ce,be.mime="xml",be.successStatuses=[200],Ae.next=10,this.request(be);case 10:return je=Ae.sent,Ae.abrupt("return",{res:je.res});case 12:case"end":return Ae.stop()}},ae,this)}));function ee(ae,re,le,ue){return z.apply(this,arguments)}return ee}(),ve.getBucketReferer=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe,be;return ce.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,Fe.next=5,this.request(ue);case 5:return pe=Fe.sent,be=pe.data.RefererList.Referer||null,be&&(xe(be)||(be=[be])),Fe.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:be,res:pe.res});case 9:case"end":return Fe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketReferer=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){return ce.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}(),ve._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,Ge,De){(function(me,ce){(function(){"use strict";var we=oe("@babel/runtime/helpers/interopRequireDefault"),Le=we(oe("@babel/runtime/regenerator")),Se=we(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 Oe=oe("debug")("ali-oss"),ve=oe("xml2js"),xe=oe("agentkeepalive"),fe=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"),be=oe("../common/utils/createRequest"),Ce=be.createRequest,Fe=oe("../common/utils/encoder"),je=Fe.encoder,ke=oe("../common/client/getReqUrl"),Ae=ke.getReqUrl,Be=oe("../common/utils/setSTSToken"),_e=Be.setSTSToken,et=oe("../common/utils/retry"),ze=et.retry,Xe=oe("../common/utils/isFunction"),Qe=Xe.isFunction,lt=new xe;function ct(){var yt=z.name,ft=z.version;yt&&yt.toLowerCase&&yt.toLowerCase()==="ie"&&ft.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function vt(){return location&&location.protocol==="https:"}function nt(yt,ft){if(ct(),!(this instanceof nt))return new nt(yt,ft);yt&&yt.inited?this.options=yt:this.options=nt.initOptions(yt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||lt),this.ctx=ft,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Ge.exports=nt,nt.initOptions=function(ft){ft.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var gt=Object.assign({secure:vt(),useFetch:!1},ft);return pe(gt)};var it=nt.prototype;it.debug=Oe,fe(it,oe("./object")),fe(it,oe("./bucket")),fe(it,oe("../common/bucket/getBucketWebsite")),fe(it,oe("../common/bucket/putBucketWebsite")),fe(it,oe("../common/bucket/deleteBucketWebsite")),fe(it,oe("../common/bucket/getBucketLifecycle")),fe(it,oe("../common/bucket/putBucketLifecycle")),fe(it,oe("../common/bucket/deleteBucketLifecycle")),fe(it,oe("../common/bucket/putBucketVersioning")),fe(it,oe("../common/bucket/getBucketVersioning")),fe(it,oe("../common/bucket/getBucketInventory")),fe(it,oe("../common/bucket/deleteBucketInventory")),fe(it,oe("../common/bucket/listBucketInventory")),fe(it,oe("../common/bucket/putBucketInventory")),fe(it,oe("../common/bucket/abortBucketWorm")),fe(it,oe("../common/bucket/completeBucketWorm")),fe(it,oe("../common/bucket/extendBucketWorm")),fe(it,oe("../common/bucket/getBucketWorm")),fe(it,oe("../common/bucket/initiateBucketWorm")),fe(it,oe("./managed-upload")),fe(it,oe("../common/multipart-copy")),fe(it,oe("../common/multipart")),fe(it,oe("../common/parallel")),it.signature=function(ft){return this.debug("authorization stringToSign: %s",ft,"info"),ue.computeSignature(this.options.accessKeySecret,ft,this.options.headerEncoding)},it._getReqUrl=Ae,it.authorization=function(ft,gt,mt,Nt){var Tt=ue.buildCanonicalString(ft.toUpperCase(),gt,{headers:Nt,parameters:mt});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,Tt,this.options.headerEncoding)},it.request=function(){var yt=(0,Se.default)(Le.default.mark(function ft(gt){var mt=this;return Le.default.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(!this.options.retryMax){Tt.next=6;break}return Tt.next=3,ze(pt.bind(this),this.options.retryMax,{errorHandler:function(St){var wt=function(Ye){if(gt.stream)return!1;var Pe=[-1,-2].includes(Ye.status),Te=mt.options.requestErrorRetryHandle||function(){return!0};return Pe&&Te(Ye)};return!!wt(St)}})(gt);case 3:return Tt.abrupt("return",Tt.sent);case 6:return Tt.abrupt("return",pt.call(this,gt));case 7:case"end":return Tt.stop()}},ft,this)}));return function(ft){return yt.apply(this,arguments)}}();function pt(yt){return xt.apply(this,arguments)}function xt(){return xt=(0,Se.default)(Le.default.mark(function yt(ft){var gt,mt,Nt,Tt,zt,St;return Le.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(!(this.options.stsToken&&Qe(this.options.refreshSTSToken))){at.next=3;break}return at.next=3,_e.call(this);case 3:return gt=Ce.call(this,ft),this.options.useFetch||(gt.params.mode="disable-fetch"),Tt=!!ft.stream,at.prev=6,at.next=9,this.urllib.request(gt.url,gt.params);case 9:mt=at.sent,this.debug("response %s %s, got %s, headers: %j",ft.method,gt.url,mt.status,mt.headers,"info"),at.next=16;break;case 13:at.prev=13,at.t0=at.catch(6),Nt=at.t0;case 16:if(!(mt&&ft.successStatuses&&ft.successStatuses.indexOf(mt.status)===-1)){at.next=28;break}return at.next=19,this.requestError(mt);case 19:if(zt=at.sent,!(zt.code==="RequestTimeTooSkewed"&&!Tt)){at.next=25;break}return this.options.amendTimeSkewed=+new Date(zt.serverTime)-new Date,at.next=24,this.request(ft);case 24:return at.abrupt("return",at.sent);case 25:zt.params=ft,at.next=32;break;case 28:if(!Nt){at.next=32;break}return at.next=31,this.requestError(Nt);case 31:zt=at.sent;case 32:if(!zt){at.next=34;break}throw zt;case 34:if(!ft.xmlResponse){at.next=39;break}return at.next=37,this.parseXML(mt.data);case 37:St=at.sent,mt.data=St;case 39:return at.abrupt("return",mt);case 40:case"end":return at.stop()}},yt,this,[[6,13]])})),xt.apply(this,arguments)}it._getResource=function(ft){var gt="/";return ft.bucket&&(gt+="".concat(ft.bucket,"/")),ft.object&&(gt+=je(ft.object,this.options.headerEncoding)),gt},it._escape=function(ft){return ee.encodeURIComponent(ft).replace(/%2F/g,"/")},it._getUserAgent=function(){var ft=ce&&ce.browser?"js":"nodejs",gt="aliyun-sdk-".concat(ft,"/").concat(re.version),mt=z.description;return!mt&&ce&&(mt="Node.js ".concat(ce.version.slice(1)," on ").concat(ce.platform," ").concat(ce.arch)),this._checkUserAgent("".concat(gt," ").concat(mt))},it._checkUserAgent=function(ft){var gt=ft.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return gt},it.checkBrowserAndVersion=function(ft,gt){return le.name===ft&&le.version.split(".")[0]===gt},it.parseXML=function(ft){return new Promise(function(gt,mt){me.isBuffer(ft)&&(ft=ft.toString()),ve.parseString(ft,{explicitRoot:!1,explicitArray:!1},function(Nt,Tt){Nt?mt(Nt):gt(Tt)})})},it.requestError=function(){var yt=(0,Se.default)(Le.default.mark(function gt(mt){var Nt,Tt,zt,St;return Le.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Nt=null,!(!mt.data||!mt.data.length)){at.next=5;break}mt.status===-1||mt.status===-2?(Nt=new Error(mt.message),Nt.name=mt.name,Nt.status=mt.status,Nt.code=mt.name):(mt.status===404?(Nt=new Error("Object not exists"),Nt.name="NoSuchKeyError",Nt.status=404,Nt.code="NoSuchKey"):mt.status===412?(Nt=new Error("Pre condition failed"),Nt.name="PreconditionFailedError",Nt.status=412,Nt.code="PreconditionFailed"):(Nt=new Error("Unknow error, status: ".concat(mt.status)),Nt.name="UnknownError",Nt.status=mt.status),Nt.requestId=mt.headers["x-oss-request-id"],Nt.host=""),at.next=32;break;case 5:return Tt=String(mt.data),this.debug("request response error data: %s",Tt,"error"),at.prev=7,at.next=10,this.parseXML(Tt);case 10:if(at.t0=at.sent,at.t0){at.next=13;break}at.t0={};case 13:zt=at.t0,at.next=23;break;case 16:return at.prev=16,at.t1=at.catch(7),this.debug(Tt,"error"),at.t1.message+=`
|
|
|
raw xml: `.concat(Tt),at.t1.status=mt.status,at.t1.requestId=mt.headers["x-oss-request-id"],at.abrupt("return",at.t1);case 23:St=zt.Message||"unknow request error, status: ".concat(mt.status),zt.Condition&&(St+=" (condition: ".concat(zt.Condition,")")),Nt=new Error(St),Nt.name=zt.Code?"".concat(zt.Code,"Error"):"UnknownError",Nt.status=mt.status,Nt.code=zt.Code,Nt.requestId=zt.RequestId,Nt.hostId=zt.HostId,Nt.serverTime=zt.ServerTime;case 32:return this.debug("generate error %j",Nt,"error"),at.abrupt("return",Nt);case 34:case"end":return at.stop()}},gt,this,[[7,16]])}));function ft(gt){return yt.apply(this,arguments)}return ft}()}).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,Ge,De){(function(me){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),we=ce(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 Le=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("util"),Oe=oe("path"),ve=oe("mime"),xe=oe("copy-to"),fe=oe("../common/utils/isBlob"),z=fe.isBlob,ee=oe("../common/utils/isFile"),ae=ee.isFile,re=oe("../common/utils/isBuffer"),le=re.isBuffer,ue=De;ue.multipartUpload=function(){var je=(0,Le.default)(we.default.mark(function Ae(Be,_e){var et,ze,Xe,Qe,lt,ct,vt,nt,it,pt=arguments;return we.default.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(et=pt.length>2&&pt[2]!==void 0?pt[2]:{},this.resetCancelFlag(),et.disabledMD5=et.disabledMD5===void 0?!0:!!et.disabledMD5,!(et.checkpoint&&et.checkpoint.uploadId)){yt.next=8;break}return _e&&ae(_e)&&(et.checkpoint.file=_e),yt.next=7,this._resumeMultipart(et.checkpoint,et);case 7:return yt.abrupt("return",yt.sent);case 8:return ze=102400,et.mime||(ae(_e)?et.mime=ve.getType(Oe.extname(_e.name)):z(_e)?et.mime=_e.type:le(_e)?et.mime="":et.mime=ve.getType(Oe.extname(_e))),et.headers=et.headers||{},this._convertMetaToHeaders(et.meta,et.headers),yt.next=14,this._getFileSize(_e);case 14:if(Xe=yt.sent,!(Xe<ze)){yt.next=26;break}return et.contentLength=Xe,yt.next=19,this.put(Be,_e,et);case 19:if(Qe=yt.sent,!(et&&et.progress)){yt.next=23;break}return yt.next=23,et.progress(1);case 23:return lt={res:Qe.res,bucket:this.options.bucket,name:Be,etag:Qe.res.headers.etag},(et.headers&&et.headers["x-oss-callback"]||et.callback)&&(lt.data=Qe.data),yt.abrupt("return",lt);case 26:if(!(et.partSize&&parseInt(et.partSize,10)!==et.partSize)){yt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(et.partSize&&et.partSize<ze)){yt.next=30;break}throw new Error("partSize must not be smaller than ".concat(ze));case 30:return yt.next=32,this.initMultipartUpload(Be,et);case 32:if(ct=yt.sent,vt=ct.uploadId,nt=this._getPartSize(Xe,et.partSize),it={file:_e,name:Be,fileSize:Xe,partSize:nt,uploadId:vt,doneParts:[]},!(et&&et.progress)){yt.next=39;break}return yt.next=39,et.progress(0,it,ct.res);case 39:return yt.next=41,this._resumeMultipart(it,et);case 41:return yt.abrupt("return",yt.sent);case 42:case"end":return yt.stop()}},Ae,this)}));function ke(Ae,Be){return je.apply(this,arguments)}return ke}(),ue._resumeMultipart=function(){var je=(0,Le.default)(we.default.mark(function Ae(Be,_e){var et,ze,Xe,Qe,lt,ct,vt,nt,it,pt,xt,yt,ft,gt,mt,Nt,Tt,zt,St;return we.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(et=this,!this.isCancel()){at.next=3;break}throw this._makeCancelEvent();case 3:return ze=Be.file,Xe=Be.fileSize,Qe=Be.partSize,lt=Be.uploadId,ct=Be.doneParts,vt=Be.name,nt=[],ct.length>0&&xe(ct).to(nt),it=this._divideParts(Xe,Qe),pt=it.length,xt=!1,yt=function(Pe,Te){return new Promise(function(){var Ve=(0,Le.default)(we.default.mark(function Ze(Ee,He){var We,Ke,Je,dt,Ct;return we.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(Lt.prev=0,Pe.isCancel()){Lt.next=29;break}return We=it[Te-1],Lt.next=5,Pe._createBuffer(ze,We.start,We.end);case 5:return Ke=Lt.sent,Je={content:Ke,size:We.end-We.start},Lt.prev=7,Lt.next=10,Pe._uploadPart(vt,lt,Te,Je,_e);case 10:dt=Lt.sent,Lt.next=18;break;case 13:if(Lt.prev=13,Lt.t0=Lt.catch(7),Lt.t0.status!==404){Lt.next=17;break}throw Pe._makeAbortEvent();case 17:throw Lt.t0;case 18:if(!(!Pe.isCancel()&&!xt)){Lt.next=26;break}if(Be.doneParts.push({number:Te,etag:dt.res.headers.etag}),!_e.progress){Lt.next=23;break}return Lt.next=23,_e.progress(ct.length/(pt+1),Be,dt.res);case 23:Ee({number:Te,etag:dt.res.headers.etag}),Lt.next=27;break;case 26:Ee();case 27:Lt.next=30;break;case 29:Ee();case 30:Lt.next=41;break;case 32:Lt.prev=32,Lt.t1=Lt.catch(0),Ct=new Error,Ct.name=Lt.t1.name,Ct.message=Lt.t1.message,Ct.stack=Lt.t1.stack,Ct.partNum=Te,xe(Lt.t1).to(Ct),He(Ct);case 41:case"end":return Lt.stop()}},Ze,null,[[0,32],[7,13]])}));return function(Ze,Ee){return Ve.apply(this,arguments)}}())},ft=Array.from(new Array(pt),function(Ye,Pe){return Pe+1}),gt=nt.map(function(Ye){return Ye.number}),mt=ft.filter(function(Ye){return gt.indexOf(Ye)<0}),Nt=5,Tt=_e.parallel||Nt,at.next=17,this._parallel(mt,Tt,function(Ye){return new Promise(function(Pe,Te){yt(et,Ye).then(function(Ve){Ve&&nt.push(Ve),Pe()}).catch(function(Ve){Te(Ve)})})});case 17:if(zt=at.sent,xt=!0,St=zt.find(function(Ye){return Ye.name==="abort"}),!St){at.next=22;break}throw St;case 22:if(!this.isCancel()){at.next=25;break}throw yt=null,this._makeCancelEvent();case 25:if(!(zt&&zt.length>0)){at.next=28;break}throw zt[0].message="Failed to upload some parts with error: ".concat(zt[0].toString()," part_num: ").concat(zt[0].partNum),zt[0];case 28:return at.next=30,this.completeMultipartUpload(vt,lt,nt,_e);case 30:return at.abrupt("return",at.sent);case 31:case"end":return at.stop()}},Ae,this)}));function ke(Ae,Be){return je.apply(this,arguments)}return ke}(),ue._getFileSize=function(){var je=(0,Le.default)(we.default.mark(function Ae(Be){return we.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(!le(Be)){et.next=4;break}return et.abrupt("return",Be.length);case 4:if(!(z(Be)||ae(Be))){et.next=6;break}return et.abrupt("return",Be.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return et.stop()}},Ae)}));function ke(Ae){return je.apply(this,arguments)}return ke}();var pe=oe("stream"),be=pe.Readable;function Ce(je,ke){if(!(this instanceof Ce))return new Ce(je,ke);be.call(this,ke),this.file=je,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}Se.inherits(Ce,be),Ce.prototype.readFileAndPush=function(ke){if(this.fileBuffer)for(var Ae=!0;Ae&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Be=this.start,_e=Be+ke;_e=_e>this.fileBuffer.length?this.fileBuffer.length:_e,this.start=_e,Ae=this.push(this.fileBuffer.slice(Be,_e))}},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 Ae=16*1024;ke=ke||Ae;var Be=this;this.reader.onload=function(et){Be.fileBuffer=me.from(new Uint8Array(et.target.result)),Be.file=null,Be.readFileAndPush(ke)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ke)};function Fe(je){return je.arrayBuffer?je.arrayBuffer():new Promise(function(ke,Ae){var Be=new FileReader;Be.onload=function(_e){ke(_e.target.result)},Be.onerror=function(_e){Ae(_e)},Be.readAsArrayBuffer(je)})}ue._createBuffer=function(){var je=(0,Le.default)(we.default.mark(function Ae(Be,_e,et){var ze,Xe;return we.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(!(z(Be)||ae(Be))){lt.next=8;break}return ze=Be.slice(_e,et),lt.next=4,Fe(ze);case 4:return Xe=lt.sent,lt.abrupt("return",me.from(Xe));case 8:if(!le(Be)){lt.next=12;break}return lt.abrupt("return",Be.subarray(_e,et));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return lt.stop()}},Ae)}));function ke(Ae,Be,_e){return je.apply(this,arguments)}return ke}(),ue._getPartSize=function(ke,Ae){var Be=1e4,_e=1*1024*1024;Ae||(Ae=_e);var et=Math.ceil(ke/Be);return Ae<et&&(Ae=et,console.warn("partSize has been set to ".concat(Ae,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ae},ue._divideParts=function(ke,Ae){for(var Be=Math.ceil(ke/Ae),_e=[],et=0;et<Be;et++){var ze=Ae*et,Xe=Math.min(ze+Ae,ke);_e.push({start:ze,end:Xe})}return _e}}).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,Ge,De){"use strict";var me=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 ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("fs"),Se=oe("copy-to"),Oe=oe("path"),ve=oe("mime"),xe=oe("../common/callback"),fe=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"),be=pe.obj2xml,Ce=De;Ce.append=function(){var Fe=(0,we.default)(ce.default.mark(function ke(Ae,Be,_e){var et;return ce.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return _e=_e||{},_e.position===void 0&&(_e.position="0"),_e.subres={append:"",position:_e.position},_e.method="POST",Xe.next=6,this.put(Ae,Be,_e);case 6:return et=Xe.sent,et.nextAppendPosition=et.res.headers["x-oss-next-append-position"],Xe.abrupt("return",et);case 9:case"end":return Xe.stop()}},ke,this)}));function je(ke,Ae,Be){return Fe.apply(this,arguments)}return je}(),Ce.put=function(){var Fe=(0,we.default)(ce.default.mark(function ke(Ae,Be,_e){var et,ze,Xe,Qe,lt;return ce.default.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(_e=_e||{},_e.disabledMD5=_e.disabledMD5===void 0?!0:!!_e.disabledMD5,_e.headers=_e.headers||{},Ae=this._objectName(Ae),!ue(Be)){vt.next=8;break}et=Be,vt.next=19;break;case 8:if(!(ee(Be)||re(Be))){vt.next=18;break}return _e.mime||(re(Be)?_e.mime=ve.getType(Oe.extname(Be.name)):_e.mime=Be.type),vt.next=12,this._createBuffer(Be,0,Be.size);case 12:return et=vt.sent,vt.next=15,this._getFileSize(Be);case 15:_e.contentLength=vt.sent,vt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(_e.meta,_e.headers),ze=_e.method||"PUT",Xe=this._objectRequestParams(ze,Ae,_e),xe.encodeCallback(Xe,_e),Xe.mime=_e.mime,Xe.disabledMD5=_e.disabledMD5,Xe.content=et,Xe.successStatuses=[200],vt.next=29,this.request(Xe);case 29:return Qe=vt.sent,lt={name:Ae,url:this._objectUrl(Ae),res:Qe.res},Xe.headers&&Xe.headers["x-oss-callback"]&&(lt.data=JSON.parse(Qe.data.toString())),vt.abrupt("return",lt);case 33:case"end":return vt.stop()}},ke,this)}));function je(ke,Ae,Be){return Fe.apply(this,arguments)}return je}(),Ce.putStream=function(){var Fe=(0,we.default)(ce.default.mark(function ke(Ae,Be,_e){var et,ze,Xe,Qe;return ce.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return _e=_e||{},_e.headers=_e.headers||{},Ae=this._objectName(Ae),_e.contentLength?_e.headers["Content-Length"]=_e.contentLength:_e.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_e.meta,_e.headers),et=_e.method||"PUT",ze=this._objectRequestParams(et,Ae,_e),xe.encodeCallback(ze,_e),ze.mime=_e.mime,ze.stream=Be,ze.successStatuses=[200],ct.next=13,this.request(ze);case 13:return Xe=ct.sent,Qe={name:Ae,url:this._objectUrl(Ae),res:Xe.res},ze.headers&&ze.headers["x-oss-callback"]&&(Qe.data=JSON.parse(Xe.data.toString())),ct.abrupt("return",Qe);case 17:case"end":return ct.stop()}},ke,this)}));function je(ke,Ae,Be){return Fe.apply(this,arguments)}return je}(),fe(Ce,oe("../common/object/copyObject")),fe(Ce,oe("../common/object/getObjectTagging")),fe(Ce,oe("../common/object/putObjectTagging")),fe(Ce,oe("../common/object/deleteObjectTagging")),fe(Ce,oe("../common/image")),fe(Ce,oe("../common/object/getBucketVersions")),fe(Ce,oe("../common/object/getACL")),fe(Ce,oe("../common/object/putACL")),fe(Ce,oe("../common/object/head")),fe(Ce,oe("../common/object/delete")),fe(Ce,oe("../common/object/get")),fe(Ce,oe("../common/object/putSymlink")),fe(Ce,oe("../common/object/getSymlink")),fe(Ce,oe("../common/object/deleteMulti")),fe(Ce,oe("../common/object/getObjectMeta")),fe(Ce,oe("../common/object/getObjectUrl")),fe(Ce,oe("../common/object/generateObjectUrl")),fe(Ce,oe("../common/object/signatureUrl")),fe(Ce,oe("../common/object/asyncSignatureUrl")),Ce.putMeta=function(){var Fe=(0,we.default)(ce.default.mark(function ke(Ae,Be,_e){var et;return ce.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,this.copy(Ae,Ae,{meta:Be||{},timeout:_e&&_e.timeout,ctx:_e&&_e.ctx});case 2:return et=Xe.sent,Xe.abrupt("return",et);case 4:case"end":return Xe.stop()}},ke,this)}));function je(ke,Ae,Be){return Fe.apply(this,arguments)}return je}(),Ce.list=function(){var Fe=(0,we.default)(ce.default.mark(function ke(Ae,Be){var _e,et,ze,Xe,Qe;return ce.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return _e=this._objectRequestParams("GET","",Be),_e.query=Ae,_e.xmlResponse=!0,_e.successStatuses=[200],ct.next=6,this.request(_e);case 6:return et=ct.sent,ze=et.data.Contents||[],Xe=this,ze&&(Array.isArray(ze)||(ze=[ze]),ze=ze.map(function(vt){return{name:vt.Key,url:Xe._objectUrl(vt.Key),lastModified:vt.LastModified,etag:vt.ETag,type:vt.Type,size:Number(vt.Size),storageClass:vt.StorageClass,owner:{id:vt.Owner.ID,displayName:vt.Owner.DisplayName}}})),Qe=et.data.CommonPrefixes||null,Qe&&(Array.isArray(Qe)||(Qe=[Qe]),Qe=Qe.map(function(vt){return vt.Prefix})),ct.abrupt("return",{res:et.res,objects:ze,prefixes:Qe,nextMarker:et.data.NextMarker||null,isTruncated:et.data.IsTruncated==="true"});case 13:case"end":return ct.stop()}},ke,this)}));function je(ke,Ae){return Fe.apply(this,arguments)}return je}(),Ce.listV2=function(){var Fe=(0,we.default)(ce.default.mark(function ke(Ae){var Be,_e,et,ze,Xe,Qe,lt,ct=arguments;return ce.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return Be=ct.length>1&&ct[1]!==void 0?ct[1]:{},_e=Ae["continuation-token"]||Ae.continuationToken,_e&&(Be.subres=Object.assign({"continuation-token":_e},Be.subres)),et=this._objectRequestParams("GET","",Be),et.query=Object.assign({"list-type":2},Ae),delete et.query["continuation-token"],delete et.query.continuationToken,et.xmlResponse=!0,et.successStatuses=[200],nt.next=11,this.request(et);case 11:return ze=nt.sent,Xe=ze.data.Contents||[],Qe=this,Xe&&(Array.isArray(Xe)||(Xe=[Xe]),Xe=Xe.map(function(it){var pt=null;return it.Owner&&(pt={id:it.Owner.ID,displayName:it.Owner.DisplayName}),{name:it.Key,url:Qe._objectUrl(it.Key),lastModified:it.LastModified,etag:it.ETag,type:it.Type,size:Number(it.Size),storageClass:it.StorageClass,owner:pt}})),lt=ze.data.CommonPrefixes||null,lt&&(Array.isArray(lt)||(lt=[lt]),lt=lt.map(function(it){return it.Prefix})),nt.abrupt("return",{res:ze.res,objects:Xe,prefixes:lt,isTruncated:ze.data.IsTruncated==="true",keyCount:+ze.data.KeyCount,continuationToken:ze.data.ContinuationToken||null,nextContinuationToken:ze.data.NextContinuationToken||null});case 18:case"end":return nt.stop()}},ke,this)}));function je(ke){return Fe.apply(this,arguments)}return je}(),Ce.restore=function(){var Fe=(0,we.default)(ce.default.mark(function ke(Ae){var Be,_e,et,ze,Xe=arguments;return ce.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return Be=Xe.length>1&&Xe[1]!==void 0?Xe[1]:{type:"Archive"},Be=Be||{},Be.subres=Object.assign({restore:""},Be.subres),Be.versionId&&(Be.subres.versionId=Be.versionId),_e=this._objectRequestParams("POST",Ae,Be),Be.type==="ColdArchive"&&(et={RestoreRequest:{Days:Be.Days?Be.Days:2,JobParameters:{Tier:Be.JobParameters?Be.JobParameters:"Standard"}}},_e.content=be(et,{headers:!0}),_e.mime="xml"),_e.successStatuses=[202],lt.next=9,this.request(_e);case 9:return ze=lt.sent,lt.abrupt("return",{res:ze.res});case 11:case"end":return lt.stop()}},ke,this)}));function je(ke){return Fe.apply(this,arguments)}return je}(),Ce._objectUrl=function(je){return this._getReqUrl({bucket:this.options.bucket,object:je})},Ce._objectRequestParams=function(je,ke,Ae){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ae=Ae||{},ke=this._objectName(ke);var Be={object:ke,bucket:this.options.bucket,method:je,subres:Ae&&Ae.subres,timeout:Ae&&Ae.timeout,ctx:Ae&&Ae.ctx};return Ae.headers&&(Be.headers={},Se(Ae.headers).to(Be.headers)),Be},Ce._objectName=function(je){return je.replace(/^\/+/,"")},Ce._convertMetaToHeaders=function(je,ke){je&&Object.keys(je).forEach(function(Ae){ke["x-oss-meta-".concat(Ae)]=je[Ae]})},Ce._deleteFileSafe=function(je){var ke=this;return new Promise(function(Ae){Le.exists(je,function(Be){Be?Le.unlink(je,function(_e){_e&&ke.debug("unlink %j error: %s",je,_e,"error"),Ae()}):Ae()})})}},{"../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,Ge,De){"use strict";De.version="6.18.1"},{}],7:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.abortBucketWorm=void 0;var Le=oe("../utils/checkBucketName");function Se(ve,xe){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,we.default)(ce.default.mark(function ve(xe,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return Le.checkBucketName(xe),z=this._bucketRequestParams("DELETE",xe,"worm",fe),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()}},ve,this)})),Oe.apply(this,arguments)}De.abortBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.completeBucketWorm=void 0;var Le=oe("../utils/checkBucketName");function Se(ve,xe,fe){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,we.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Le.checkBucketName(xe),ee=this._bucketRequestParams("POST",xe,{wormId:fe},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()}},ve,this)})),Oe.apply(this,arguments)}De.completeBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.deleteBucketInventory=void 0;var Le=oe("../utils/checkBucketName");function Se(ve,xe){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,we.default)(ce.default.mark(function ve(xe,fe){var z,ee,ae,re,le=arguments;return ce.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:fe},z.subres),Le.checkBucketName(xe),ae=this._bucketRequestParams("DELETE",xe,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()}},ve,this)})),Oe.apply(this,arguments)}De.deleteBucketInventory=Se},{"../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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=De;Oe.deleteBucketLifecycle=function(){var ve=(0,we.default)(ce.default.mark(function fe(z,ee){var ae,re;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Se(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()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=De;Oe.deleteBucketWebsite=function(){var ve=(0,we.default)(ce.default.mark(function fe(z,ee){var ae,re;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Se(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()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.extendBucketWorm=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function Oe(xe,fe,z,ee){return ve.apply(this,arguments)}function ve(){return ve=(0,we.default)(ce.default.mark(function xe(fe,z,ee,ae){var re,le,ue;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return Le.checkBucketName(fe),re=this._bucketRequestParams("POST",fe,{wormExtend:"",wormId:z},ae),le={ExtendWormConfiguration:{RetentionPeriodInDays:ee}},re.mime="xml",re.content=Se.obj2xml(le,{headers:!0}),re.successStatuses=[200],be.next=8,this.request(re);case 8:return ue=be.sent,be.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return be.stop()}},xe,this)})),ve.apply(this,arguments)}De.extendBucketWorm=Oe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.getBucketInventory=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function Oe(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,we.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ee=ue.length>2&&ue[2]!==void 0?ue[2]:{},ae=Object.assign({inventory:"",inventoryId:z},ee.subres),Le.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,ee),re.successStatuses=[200],re.xmlResponse=!0,be.next=8,this.request(re);case 8:return le=be.sent,be.abrupt("return",{status:le.status,res:le.res,inventory:Se.formatInventoryConfig(le.data)});case 10:case"end":return be.stop()}},xe,this)})),ve.apply(this,arguments)}De.getBucketInventory=Oe},{"../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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=oe("../utils/isArray"),ve=Oe.isArray,xe=oe("../utils/formatObjKey"),fe=xe.formatObjKey,z=De;z.getBucketLifecycle=function(){var ee=(0,we.default)(ce.default.mark(function re(le,ue){var pe,be,Ce;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Se(le),pe=this._bucketRequestParams("GET",le,"lifecycle",ue),pe.successStatuses=[200],pe.xmlResponse=!0,je.next=6,this.request(pe);case 6:return be=je.sent,Ce=be.data.Rule||null,Ce&&(ve(Ce)||(Ce=[Ce]),Ce=Ce.map(function(ke){return ke.ID&&(ke.id=ke.ID,delete ke.ID),ke.Tag&&!ve(ke.Tag)&&(ke.Tag=[ke.Tag]),fe(ke,"firstLowerCase")})),je.abrupt("return",{rules:Ce,res:be.res});case 10:case"end":return je.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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=De;Oe.getBucketVersioning=function(){var ve=(0,we.default)(ce.default.mark(function fe(z,ee){var ae,re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Se(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()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=oe("../utils/isObject"),ve=Oe.isObject,xe=De;xe.getBucketWebsite=function(){var fe=(0,we.default)(ce.default.mark(function ee(ae,re){var le,ue,pe;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Se(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&&(ve(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 fe.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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.getBucketWorm=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/dataFix");function Oe(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,we.default)(ce.default.mark(function xe(fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Le.checkBucketName(fe),ee=this._bucketRequestParams("GET",fe,"worm",z),ee.successStatuses=[200],ee.xmlResponse=!0,le.next=6,this.request(ee);case 6:return ae=le.sent,Se.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()}},xe,this)})),ve.apply(this,arguments)}De.getBucketWorm=Oe},{"../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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.initiateBucketWorm=void 0;var Le=oe("../utils/obj2xml"),Se=oe("../utils/checkBucketName");function Oe(xe,fe,z){return ve.apply(this,arguments)}function ve(){return ve=(0,we.default)(ce.default.mark(function xe(fe,z,ee){var ae,re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Se.checkBucketName(fe),ae=this._bucketRequestParams("POST",fe,"worm",ee),re={InitiateWormConfiguration:{RetentionPeriodInDays:z}},ae.mime="xml",ae.content=Le.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()}},xe,this)})),ve.apply(this,arguments)}De.initiateBucketWorm=Oe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.listBucketInventory=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function Oe(xe){return ve.apply(this,arguments)}function ve(){return ve=(0,we.default)(ce.default.mark(function xe(fe){var z,ee,ae,re,le,ue,pe,be,Ce=arguments;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.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),Le.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,z),re.successStatuses=[200],re.xmlResponse=!0,je.next=9,this.request(re);case 9:return le=je.sent,ue=le.data,pe=le.res,be=le.status,je.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:Se.formatInventoryConfig(ue.InventoryConfiguration,!0),status:be,res:pe});case 12:case"end":return je.stop()}},xe,this)})),ve.apply(this,arguments)}De.listBucketInventory=Oe},{"../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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.putBucketInventory=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function Oe(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,we.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue,pe,be,Ce,Fe,je,ke,Ae=arguments;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ee=Ae.length>2&&Ae[2]!==void 0?Ae[2]:{},ae=Object.assign({inventory:"",inventoryId:z.id},ee.subres),Le.checkBucketName(fe),re=z.OSSBucketDestination,le=z.optionalFields,ue=z.includedObjectVersions,pe="acs:oss:::",be="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(be).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)||[]}}},Fe=Se.obj2xml(Ce,{headers:!0,firstUpperCase:!0}),je=this._bucketRequestParams("PUT",fe,ae,ee),je.successStatuses=[200],je.mime="xml",je.content=Fe,_e.next=14,this.request(je);case 14:return ke=_e.sent,_e.abrupt("return",{status:ke.status,res:ke.res});case 16:case"end":return _e.stop()}},xe,this)})),ve.apply(this,arguments)}De.putBucketInventory=Oe},{"../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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=oe("../utils/isArray"),ve=Oe.isArray,xe=oe("../utils/deepCopy"),fe=xe.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"),be=pe.getStrBytesCount,Ce=De;Ce.putBucketLifecycle=function(){var Be=(0,we.default)(ce.default.mark(function et(ze,Xe,Qe){var lt,ct,vt,nt,it;return ce.default.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(Se(ze),ve(Xe)){xt.next=3;break}throw new Error("rules must be Array");case 3:return lt=this._bucketRequestParams("PUT",ze,"lifecycle",Qe),ct=[],vt={LifecycleConfiguration:{Rule:ct}},Xe.forEach(function(yt){Fe(yt),Ae(yt),yt.id&&(yt.ID=yt.id,delete yt.id),ct.push(yt)}),nt=re(vt,{headers:!0,firstUpperCase:!0}),lt.content=nt,lt.mime="xml",lt.successStatuses=[200],xt.next=13,this.request(lt);case 13:return it=xt.sent,xt.abrupt("return",{res:it.res});case 15:case"end":return xt.stop()}},et,this)}));function _e(et,ze,Xe){return Be.apply(this,arguments)}return _e}();function Fe(Be){Be.days&&(Be.expiration={days:Be.days}),Be.date&&(Be.expiration={createdBeforeDate:Be.date})}function je(Be,_e){var et=Be.days,ze=Be.createdBeforeDate;if(!et&&!ze)throw new Error("".concat(_e," must includes days or createdBeforeDate"));if(et&&!/^[1-9][0-9]*$/.test(et))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(Be){if(!ve(Be)&&!ee(Be))throw new Error("tag must be Object or Array");Be=ee(Be)?[Be]:Be;var _e={},et=fe(Be);et.forEach(function(ze){_e[ze.key]=ze.value}),ue(_e)}function Ae(Be){if(Be.id&&be(Be.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Be.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Be.status))throw new Error("Status must be Enabled or Disabled");if(Be.transition){if(!["IA","Archive"].includes(Be.transition.storageClass))throw new Error("StorageClass must be IA or Archive");je(Be.transition,"Transition")}if(Be.expiration){if(!Be.expiration.expiredObjectDeleteMarker)je(Be.expiration,"Expiration");else if(Be.expiration.days||Be.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Be.abortMultipartUpload&&je(Be.abortMultipartUpload,"AbortMultipartUpload"),!Be.expiration&&!Be.abortMultipartUpload&&!Be.transition&&!Be.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Be.tag){if(Be.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");ke(Be.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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.includes.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=oe("../utils/obj2xml"),ve=Oe.obj2xml,xe=De;xe.putBucketVersioning=function(){var fe=(0,we.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,be,Ce=arguments;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},Se(ae),["Enabled","Suspended"].includes(re)){je.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=ve(pe,{headers:!0}),je.next=10,this.request(ue);case 10:return be=je.sent,je.abrupt("return",{res:be.res,status:be.status});case 12:case"end":return je.stop()}},ee,this)}));function z(ee,ae){return fe.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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=oe("../utils/obj2xml"),ve=Oe.obj2xml,xe=oe("../utils/isArray"),fe=xe.isArray,z=De;z.putBucketWebsite=function(){var ee=(0,we.default)(ce.default.mark(function re(le){var ue,pe,be,Ce,Fe,je,ke,Ae=arguments;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(ue=Ae.length>1&&Ae[1]!==void 0?Ae[1]:{},pe=Ae.length>2?Ae[2]:void 0,Se(le),be=this._bucketRequestParams("PUT",le,"website",pe),Ce={Suffix:ue.index||"index.html"},Fe={IndexDocument:Ce},je={WebsiteConfiguration:Fe},ue.supportSubDir&&(Ce.SupportSubDir=ue.supportSubDir),ue.type&&(Ce.Type=ue.type),ue.error&&(Fe.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){_e.next=14;break}if(fe(ue.routingRules)){_e.next=13;break}throw new Error("RoutingRules must be Array");case 13:Fe.RoutingRules={RoutingRule:ue.routingRules};case 14:return je=ve(je),be.content=je,be.mime="xml",be.successStatuses=[200],_e.next=20,this.request(be);case 20:return ke=_e.sent,_e.abrupt("return",{res:ke.res});case 22:case"end":return _e.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,Ge,De){(function(me){(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"),De.encodeCallback=function(we,Le){if(we.headers=we.headers||{},!Object.prototype.hasOwnProperty.call(we.headers,"x-oss-callback")&&Le.callback){var Se={callbackUrl:encodeURI(Le.callback.url),callbackBody:Le.callback.body};Le.callback.host&&(Se.callbackHost=Le.callback.host),Le.callback.contentType&&(Se.callbackBodyType=Le.callback.contentType);var Oe=me.from(JSON.stringify(Se)).toString("base64");if(we.headers["x-oss-callback"]=Oe,Le.callback.customValue){var ve={};Object.keys(Le.callback.customValue).forEach(function(xe){ve["x:".concat(xe)]=Le.callback.customValue[xe].toString()}),we.headers["x-oss-callback-var"]=me.from(JSON.stringify(ve)).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,Ge,De){"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 me=function(fe){return fe&&fe.__esModule?fe:{default:fe}};Object.defineProperty(De,"__esModule",{value:!0}),De.getReqUrl=void 0;var ce=me(oe("copy-to")),we=me(oe("url")),Le=me(oe("merge-descriptors")),Se=me(oe("is-type-of")),Oe=oe("../utils/isIP"),ve=oe("../utils/checkConfigValid");function xe(fe){var z={},ee=this.options.cname;ve.checkConfigValid(this.options.endpoint,"endpoint"),ce.default(this.options.endpoint,!1).to(z),fe.bucket&&!ee&&!Oe.isIP(z.hostname)&&!this.options.sldEnable&&(z.host="".concat(fe.bucket,".").concat(z.host));var ae="/";fe.bucket&&this.options.sldEnable&&(ae+="".concat(fe.bucket,"/")),fe.object&&(ae+=this._escape(fe.object).replace(/\+/g,"%2B")),z.pathname=ae;var re={};if(fe.query&&Le.default(re,fe.query),fe.subres){var le={};Se.default.string(fe.subres)?le[fe.subres]="":Se.default.array(fe.subres)?fe.subres.forEach(function(ue){le[ue]=""}):le=fe.subres,Le.default(re,le)}return z.query=re,we.default.format(z)}De.getReqUrl=xe},{"../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,Ge,De){"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 me=oe("humanize-ms"),ce=oe("url"),we=oe("../utils/checkBucketName"),Le=we.checkBucketName,Se=oe("../utils/setRegion"),Oe=Se.setRegion,ve=oe("../utils/checkConfigValid"),xe=ve.checkConfigValid;function fe(z,ee){xe(z,"endpoint");var ae=ce.parse(z);if(ae.protocol||(ae=ce.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}Ge.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&&Le(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=me(ee.timeout)),ee.endpoint)ee.endpoint=fe(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=Oe(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,Ge,De){"use strict";var me=oe("merge-descriptors"),ce=De;me(ce,oe("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,Oe=oe("querystring"),ve=oe("js-base64"),xe=ve.Base64.encode,fe=De;fe.processObjectSave=function(){var ee=(0,we.default)(ce.default.mark(function re(le,ue,pe,be){var Ce,Fe,je,ke;return ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return z(le,"sourceObject"),z(ue,"targetObject"),z(pe,"process"),ue=this._objectName(ue),be&&Se(be),Ce=this._objectRequestParams("POST",le,{subres:"x-oss-process"}),Fe=be?",b_".concat(xe(be)):"",ue=xe(ue),je={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(Fe)},Ce.content=Oe.stringify(je),Be.next=12,this.request(Ce);case 12:return ke=Be.sent,Be.abrupt("return",{res:ke.res,status:ke.res.status});case 14:case"end":return Be.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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("debug")("ali-oss:multipart-copy"),Se=oe("copy-to"),Oe=De;Oe.uploadPartCopy=function(){var ve=(0,we.default)(ce.default.mark(function fe(z,ee,ae,re,le){var ue,pe,be,Ce,Fe,je=arguments;return ce.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ue=je.length>5&&je[5]!==void 0?je[5]:{},ue.headers=ue.headers||{},pe=ue.versionId||ue.subres&&ue.subres.versionId||null,pe?be="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey),"?versionId=").concat(pe):be="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey)),ue.headers["x-oss-copy-source"]=be,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],Ae.next=12,this.request(Ce);case 12:return Fe=Ae.sent,Ae.abrupt("return",{name:z,etag:Fe.res.headers.etag,res:Fe.res});case 14:case"end":return Ae.stop()}},fe,this)}));function xe(fe,z,ee,ae,re){return ve.apply(this,arguments)}return xe}(),Oe.multipartUploadCopy=function(){var ve=(0,we.default)(ce.default.mark(function fe(z,ee){var ae,re,le,ue,pe,be,Ce,Fe,je,ke,Ae,Be,_e=arguments;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ae=_e.length>2&&_e[2]!==void 0?_e[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,be=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||be,!(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,Fe=ee.endOffset-ee.startOffset,!(Fe<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(je=ze.sent,ke=je.uploadId,Ae=this._getPartSize(Fe,ae.partSize),Be={name:z,copySize:Fe,partSize:Ae,uploadId:ke,doneParts:[]},!(ae&&ae.progress)){ze.next=29;break}return ze.next=29,ae.progress(0,Be,je.res);case 29:return ze.next=31,this._resumeMultipartCopy(Be,ee,ae);case 31:return ze.abrupt("return",ze.sent);case 32:case"end":return ze.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}(),Oe._resumeMultipartCopy=function(){var ve=(0,we.default)(ce.default.mark(function fe(z,ee,ae){var re,le,ue,pe,be,Ce,Fe,je,ke,Ae,Be,_e,et,ze,Xe,Qe,lt,ct,vt,nt,it;return ce.default.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!this.isCancel()){xt.next=2;break}throw this._makeCancelEvent();case 2:if(re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},pe=z.copySize,be=z.partSize,Ce=z.uploadId,Fe=z.doneParts,je=z.name,ke=this._divideMultipartCopyParts(pe,be,ee.startOffset),Ae=ke.length,Be={headers:{}},ae.copyheaders&&Se(ae.copyheaders).to(Be.headers),le&&Se(ue).to(Be),_e=function(ft,gt,mt){return new Promise(function(){var Nt=(0,we.default)(ce.default.mark(function Tt(zt,St){var wt,at,Ye;return ce.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(Te.prev=0,ft.isCancel()){Te.next=22;break}return wt=ke[gt-1],at="".concat(wt.start,"-").concat(wt.end-1),Te.prev=4,Te.next=7,ft.uploadPartCopy(je,Ce,gt,at,mt,Be);case 7:Ye=Te.sent,Te.next=15;break;case 10:if(Te.prev=10,Te.t0=Te.catch(4),Te.t0.status!==404){Te.next=14;break}throw ft._makeAbortEvent();case 14:throw Te.t0;case 15:if(ft.isCancel()){Te.next=22;break}if(Le("content-range ".concat(Ye.res.headers["content-range"])),Fe.push({number:gt,etag:Ye.res.headers.etag}),z.doneParts=Fe,!(ae&&ae.progress)){Te.next=22;break}return Te.next=22,ae.progress(Fe.length/Ae,z,Ye.res);case 22:zt(),Te.next=29;break;case 25:Te.prev=25,Te.t1=Te.catch(0),Te.t1.partNum=gt,St(Te.t1);case 29:case"end":return Te.stop()}},Tt,null,[[0,25],[4,10]])}));return function(Tt,zt){return Nt.apply(this,arguments)}}())},et=Array.from(new Array(Ae),function(yt,ft){return ft+1}),ze=Fe.map(function(yt){return yt.number}),Xe=et.filter(function(yt){return ze.indexOf(yt)<0}),Qe=5,lt=ae.parallel||Qe,!(this.checkBrowserAndVersion("Internet Explorer","10")||lt===1)){xt.next=28;break}ct=0;case 18:if(!(ct<Xe.length)){xt.next=26;break}if(!this.isCancel()){xt.next=21;break}throw this._makeCancelEvent();case 21:return xt.next=23,_e(this,Xe[ct],ee);case 23:ct++,xt.next=18;break;case 26:xt.next=40;break;case 28:return xt.next=30,this._parallelNode(Xe,lt,_e,ee);case 30:if(vt=xt.sent,nt=vt.find(function(yt){return yt.name==="abort"}),!nt){xt.next=34;break}throw nt;case 34:if(!this.isCancel()){xt.next=36;break}throw this._makeCancelEvent();case 36:if(!(vt&&vt.length>0)){xt.next=40;break}throw it=vt[0],it.message="Failed to copy some parts with error: ".concat(it.toString()," part_num: ").concat(it.partNum),it;case 40:return xt.next=42,this.completeMultipartUpload(je,Ce,Fe,ae);case 42:return xt.abrupt("return",xt.sent);case 43:case"end":return xt.stop()}},fe,this)}));function xe(fe,z,ee){return ve.apply(this,arguments)}return xe}(),Oe._divideMultipartCopyParts=function(xe,fe,z){for(var ee=Math.ceil(xe/fe),ae=[],re=0;re<ee;re++){var le=fe*re+z,ue=Math.min(le+fe,xe+z);ae.push({start:le,end:ue})}return ae},Oe._getObjectMeta=function(){var ve=(0,we.default)(ce.default.mark(function fe(z,ee,ae){var re,le;return ce.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()}},fe,this)}));function xe(fe,z,ee){return ve.apply(this,arguments)}return xe}()},{"@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,Ge,De){(function(me){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),we=ce(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 Le=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("copy-to"),Oe=oe("./callback"),ve=oe("./utils/deepCopy"),xe=ve.deepCopyWith,fe=oe("./utils/isBuffer"),z=fe.isBuffer,ee=oe("./utils/omit"),ae=ee.omit,re=De;re.listUploads=function(){var le=(0,Le.default)(we.default.mark(function pe(be,Ce){var Fe,je,ke,Ae;return we.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Ce=Ce||{},Fe={},Se(Ce).to(Fe),Fe.subres="uploads",je=this._objectRequestParams("GET","",Fe),je.query=be,je.xmlResponse=!0,je.successStatuses=[200],_e.next=10,this.request(je);case 10:return ke=_e.sent,Ae=ke.data.Upload||[],Array.isArray(Ae)||(Ae=[Ae]),Ae=Ae.map(function(et){return{name:et.Key,uploadId:et.UploadId,initiated:et.Initiated}}),_e.abrupt("return",{res:ke.res,uploads:Ae,bucket:ke.data.Bucket,nextKeyMarker:ke.data.NextKeyMarker,nextUploadIdMarker:ke.data.NextUploadIdMarker,isTruncated:ke.data.IsTruncated==="true"});case 15:case"end":return _e.stop()}},pe,this)}));function ue(pe,be){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Le.default)(we.default.mark(function pe(be,Ce,Fe,je){var ke,Ae,Be;return we.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return je=je||{},ke={},Se(je).to(ke),ke.subres={uploadId:Ce},Ae=this._objectRequestParams("GET",be,ke),Ae.query=Fe,Ae.xmlResponse=!0,Ae.successStatuses=[200],et.next=10,this.request(Ae);case 10:return Be=et.sent,et.abrupt("return",{res:Be.res,uploadId:Be.data.UploadId,bucket:Be.data.Bucket,name:Be.data.Key,partNumberMarker:Be.data.PartNumberMarker,nextPartNumberMarker:Be.data.NextPartNumberMarker,maxParts:Be.data.MaxParts,isTruncated:Be.data.IsTruncated,parts:Be.data.Part||[]});case 12:case"end":return et.stop()}},pe,this)}));function ue(pe,be,Ce,Fe){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Le.default)(we.default.mark(function pe(be,Ce,Fe){var je,ke,Ae;return we.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return this._stop(),Fe=Fe||{},je={},Se(Fe).to(je),je.subres={uploadId:Ce},ke=this._objectRequestParams("DELETE",be,je),ke.successStatuses=[204],_e.next=9,this.request(ke);case 9:return Ae=_e.sent,_e.abrupt("return",{res:Ae.res});case 11:case"end":return _e.stop()}},pe,this)}));function ue(pe,be,Ce){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Le.default)(we.default.mark(function pe(be,Ce){var Fe,je,ke;return we.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Ce=Ce||{},Fe={},Se(Ce).to(Fe),Fe.headers=Fe.headers||{},this._convertMetaToHeaders(Ce.meta,Fe.headers),Fe.subres="uploads",je=this._objectRequestParams("POST",be,Fe),je.mime=Ce.mime,je.xmlResponse=!0,je.successStatuses=[200],Be.next=12,this.request(je);case 12:return ke=Be.sent,Be.abrupt("return",{res:ke.res,bucket:ke.data.Bucket,name:ke.data.Key,uploadId:ke.data.UploadId});case 14:case"end":return Be.stop()}},pe,this)}));function ue(pe,be){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Le.default)(we.default.mark(function pe(be,Ce,Fe,je,ke,Ae,Be){var _e,et;return we.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(_e={size:Ae-ke},et=me&&me.browser,!et){Xe.next=8;break}return Xe.next=5,this._createBuffer(je,ke,Ae);case 5:_e.content=Xe.sent,Xe.next=11;break;case 8:return Xe.next=10,this._createStream(je,ke,Ae);case 10:_e.stream=Xe.sent;case 11:return Xe.next=13,this._uploadPart(be,Ce,Fe,_e,Be);case 13:return Xe.abrupt("return",Xe.sent);case 14:case"end":return Xe.stop()}},pe,this)}));function ue(pe,be,Ce,Fe,je,ke,Ae){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Le.default)(we.default.mark(function pe(be,Ce,Fe,je){var ke,Ae,Be,_e,et,ze,Xe,Qe;return we.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:for(ke=Fe.concat().sort(function(vt,nt){return vt.number-nt.number}).filter(function(vt,nt,it){return!nt||vt.number!==it[nt-1].number}),Ae=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Be=0;Be<ke.length;Be++)_e=ke[Be],Ae+=`<Part>
|
|
|
`,Ae+="<PartNumber>".concat(_e.number,`</PartNumber>
|
|
|
`),Ae+="<ETag>".concat(_e.etag,`</ETag>
|
|
|
`),Ae+=`</Part>
|
|
|
`;return Ae+="</CompleteMultipartUpload>",je=je||{},et={},et=xe(je,function(vt){if(z(vt))return null}),et.subres={uploadId:Ce},et.headers=ae(et.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ze=this._objectRequestParams("POST",be,et),Oe.encodeCallback(ze,et),ze.mime="xml",ze.content=Ae,ze.headers&&ze.headers["x-oss-callback"]||(ze.xmlResponse=!0),ze.successStatuses=[200],ct.next=17,this.request(ze);case 17:if(Xe=ct.sent,!je.progress){ct.next=21;break}return ct.next=21,je.progress(1,null,Xe.res);case 21:return Qe={res:Xe.res,bucket:ze.bucket,name:be,etag:Xe.res.headers.etag},ze.headers&&ze.headers["x-oss-callback"]&&(Qe.data=JSON.parse(Xe.data.toString())),ct.abrupt("return",Qe);case 24:case"end":return ct.stop()}},pe,this)}));function ue(pe,be,Ce,Fe){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Le.default)(we.default.mark(function pe(be,Ce,Fe,je,ke){var Ae,Be,_e,et;return we.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return ke=ke||{},Ae={},Se(ke).to(Ae),Ae.headers=Ae.headers||{},Ae.headers["Content-Length"]=je.size,Ae.headers=ae(Ae.headers,["x-oss-server-side-encryption"]),Ae.subres={partNumber:Fe,uploadId:Ce},Be=this._objectRequestParams("PUT",be,Ae),Be.mime=Ae.mime,_e=me&&me.browser,_e?Be.content=je.content:Be.stream=je.stream,Be.successStatuses=[200],Be.disabledMD5=ke.disabledMD5,Xe.next=15,this.request(Be);case 15:if(et=Xe.sent,et.res.headers.etag){Xe.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 je.stream&&(je.stream=null,Be.stream=null),Xe.abrupt("return",{name:be,etag:et.res.headers.etag,res:et.res});case 20:case"end":return Xe.stop()}},pe,this)}));function ue(pe,be,Ce,Fe,je){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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("url"),Se=oe("utility"),Oe=oe("copy-to"),ve=oe("../../common/signUtils"),xe=oe("../utils/isIP"),fe=xe.isIP,z=oe("../utils/setSTSToken"),ee=z.setSTSToken,ae=oe("../utils/isFunction"),re=ae.isFunction,le=De;le.asyncSignatureUrl=function(){var ue=(0,we.default)(ce.default.mark(function be(Ce,Fe){var je,ke,Ae,Be,_e;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(!fe(this.options.endpoint.hostname)){ze.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Fe=Fe||{},Ce=this._objectName(Ce),Fe.method=Fe.method||"GET",je=Se.timestamp()+(Fe.expires||1800),ke={bucket:this.options.bucket,object:Ce},Ae=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&&(Fe["security-token"]=this.options.stsToken),Be=ve._signatureForURL(this.options.accessKeySecret,Fe,Ae,je),_e=Le.parse(this._getReqUrl(ke)),_e.query={OSSAccessKeyId:this.options.accessKeyId,Expires:je,Signature:Be.Signature},Oe(Be.subResource).to(_e.query),ze.abrupt("return",_e.format());case 17:case"end":return ze.stop()}},be,this)}));function pe(be,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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/typeof")),Le=me(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("../utils/checkBucketName"),Oe=Se.checkBucketName,ve=De,xe=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];ve.copy=function(){var fe=(0,Le.default)(ce.default.mark(function ee(ae,re,le,ue){var pe,be,Ce;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return(0,we.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 xe.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],je.next=14,this.request(pe);case 14:return be=je.sent,Ce=be.data,Ce&&(Ce={etag:Ce.ETag,lastModified:Ce.LastModified}),je.abrupt("return",{data:Ce,res:be.res});case 18:case"end":return je.stop()}},ee,this)}));function z(ee,ae,re,le){return fe.apply(this,arguments)}return z}(),ve._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")),Oe(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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De;Le.delete=function(){var Se=(0,we.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),z=this._objectRequestParams("DELETE",xe,fe),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()}},ve,this)}));function Oe(ve){return Se.apply(this,arguments)}return Oe}()},{"@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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("utility"),Se=oe("../utils/obj2xml"),Oe=Se.obj2xml,ve=De;ve.deleteMulti=function(){var xe=(0,we.default)(ce.default.mark(function z(ee){var ae,re,le,ue,pe,be,Ce,Fe,je,ke,Ae,Be,_e,et=arguments;return ce.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(ae=et.length>1&&et[1]!==void 0?et[1]:{},re=[],!(!ee||!ee.length)){Xe.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=Le.escape(this._objectName(ee[le])):(pe=ee[le],be=pe.key,Ce=pe.versionId,ue.Key=Le.escape(this._objectName(be)),ue.VersionId=Ce),re.push(ue);return Fe={Delete:{Quiet:!!ae.quiet,Object:re}},je=Oe(Fe,{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=je,ke.xmlResponse=!0,ke.successStatuses=[200],Xe.next=16,this.request(ke);case 16:return Ae=Xe.sent,Be=Ae.data,_e=Be&&Be.Deleted||null,_e&&(Array.isArray(_e)||(_e=[_e])),Xe.abrupt("return",{res:Ae.res,deleted:_e||[]});case 21:case"end":return Xe.stop()}},z,this)}));function fe(z){return xe.apply(this,arguments)}return fe}()},{"../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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De;Le.deleteObjectTagging=function(){var Se=(0,we.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({tagging:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("DELETE",xe,fe),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()}},ve,this)}));function Oe(ve){return Se.apply(this,arguments)}return Oe}()},{"@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,Ge,De){"use strict";oe("core-js/modules/es.array.concat.js");var me=oe("url"),ce=oe("../utils/isIP"),we=ce.isIP,Le=De;Le.generateObjectUrl=function(Oe,ve){if(we(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(ve)ve[ve.length-1]!=="/"&&(ve+="/");else{ve=this.options.endpoint.format();var xe=me.parse(ve),fe=this.options.bucket;xe.hostname="".concat(fe,".").concat(xe.hostname),xe.host="".concat(fe,".").concat(xe.host),ve=xe.format()}return ve+this._escape(this._objectName(Oe))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(oe,Ge,De){(function(me){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),we=ce(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Le=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("fs"),Oe=oe("is-type-of"),ve=De;ve.get=function(){var xe=(0,Le.default)(we.default.mark(function z(ee,ae){var re,le,ue,pe,be,Ce,Fe,je,ke=arguments;return we.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return re=ke.length>2&&ke[2]!==void 0?ke[2]:{},le=null,ue=!1,Oe.writableStream(ae)?le=ae:Oe.string(ae)?(le=Se.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=me&&me.browser,be=re.responseCacheControl===null?"":"no-cache",Ce=pe&&be?{"response-cache-control":be}:{},re.subres=Object.assign(Ce,re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.process&&(re.subres["x-oss-process"]=re.process),Be.prev=11,je=this._objectRequestParams("GET",ee,re),je.writeStream=le,je.successStatuses=[200,206,304],Be.next=17,this.request(je);case 17:Fe=Be.sent,ue&&le.destroy(),Be.next=28;break;case 21:if(Be.prev=21,Be.t0=Be.catch(11),!ue){Be.next=27;break}return le.destroy(),Be.next=27,this._deleteFileSafe(ae);case 27:throw Be.t0;case 28:return Be.abrupt("return",{res:Fe.res,content:Fe.data});case 29:case"end":return Be.stop()}},z,this,[[11,21]])}));function fe(z,ee){return xe.apply(this,arguments)}return fe}()}).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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De;Le.getACL=function(){var Se=(0,we.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({acl:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("GET",xe,fe),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()}},ve,this)}));function Oe(ve){return Se.apply(this,arguments)}return Oe}()},{"@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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De,Se=oe("../utils/isObject"),Oe=Se.isObject,ve=oe("../utils/isArray"),xe=ve.isArray;Le.getBucketVersions=fe,Le.listObjectVersions=fe;function fe(){return z.apply(this,arguments)}function z(){return z=(0,we.default)(ce.default.mark(function re(){var le,ue,pe,be,Ce,Fe,je,ke,Ae=arguments;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(le=Ae.length>0&&Ae[0]!==void 0?Ae[0]:{},ue=Ae.length>1&&Ae[1]!==void 0?Ae[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){_e.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),_e.next=12,this.request(pe);case 12:return be=_e.sent,Ce=be.data.Version||[],Fe=be.data.DeleteMarker||[],je=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(et){return{name:et.Key,url:je._objectUrl(et.Key),lastModified:et.LastModified,isLatest:et.IsLatest==="true",versionId:et.VersionId,etag:et.ETag,type:et.Type,size:Number(et.Size),storageClass:et.StorageClass,owner:{id:et.Owner.ID,displayName:et.Owner.DisplayName}}})),Fe&&(xe(Fe)||(Fe=[Fe]),Fe=Fe.map(function(et){return{name:et.Key,lastModified:et.LastModified,versionId:et.VersionId,owner:{id:et.Owner.ID,displayName:et.Owner.DisplayName}}})),ke=be.data.CommonPrefixes||null,ke&&(xe(ke)||(ke=[ke]),ke=ke.map(function(et){return et.Prefix})),_e.abrupt("return",{res:be.res,objects:Ce,deleteMarker:Fe,prefixes:ke,nextMarker:be.data.NextKeyMarker||null,NextVersionIdMarker:be.data.NextVersionIdMarker||null,nextKeyMarker:be.data.NextKeyMarker||null,nextVersionIdMarker:be.data.NextVersionIdMarker||null,isTruncated:be.data.IsTruncated==="true"});case 21:case"end":return _e.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 Oe(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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De;Le.getObjectMeta=function(){var Se=(0,we.default)(ce.default.mark(function ve(xe,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return fe=fe||{},xe=this._objectName(xe),fe.subres=Object.assign({objectMeta:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),z=this._objectRequestParams("HEAD",xe,fe),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()}},ve,this)}));function Oe(ve,xe){return Se.apply(this,arguments)}return Oe}()},{"@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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De,Se=oe("../utils/isObject"),Oe=Se.isObject;Le.getObjectTagging=function(){var ve=(0,we.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue,pe,be=arguments;return ce.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ee=be.length>1&&be[1]!==void 0?be[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],Fe.next=8,this.request(ae);case 8:return re=Fe.sent,Fe.next=11,this.parseXML(re.data);case 11:return le=Fe.sent,ue=le.TagSet.Tag,ue=ue&&Oe(ue)?[ue]:ue||[],pe={},ue.forEach(function(je){pe[je.Key]=je.Value}),Fe.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return Fe.stop()}},fe,this)}));function xe(fe){return ve.apply(this,arguments)}return xe}()},{"../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,Ge,De){"use strict";var me=oe("../utils/isIP"),ce=me.isIP,we=De;we.getObjectUrl=function(Se,Oe){if(ce(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return Oe?Oe[Oe.length-1]!=="/"&&(Oe+="/"):Oe=this.options.endpoint.format(),Oe+this._escape(this._objectName(Se))}},{"../utils/isIP":69}],43:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De;Le.getSymlink=function(){var Se=(0,we.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae,re=arguments;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return fe=re.length>1&&re[1]!==void 0?re[1]:{},fe.subres=Object.assign({symlink:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("GET",xe,fe),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()}},ve,this)}));function Oe(ve){return Se.apply(this,arguments)}return Oe}()},{"@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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkEnv"),Se=Le.checkEnv,Oe=De;Oe.head=function(){var ve=(0,we.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ee=ue.length>1&&ue[1]!==void 0?ue[1]:{},Se("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],be.next=8,this.request(ae);case 8:return re=be.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])}),be.abrupt("return",le);case 12:case"end":return be.stop()}},fe,this)}));function xe(fe){return ve.apply(this,arguments)}return xe}()},{"../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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De;Le.putACL=function(){var Se=(0,we.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.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"]=fe,xe=this._objectName(xe),ee=this._objectRequestParams("PUT",xe,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()}},ve,this)}));function Oe(ve,xe,fe){return Se.apply(this,arguments)}return Oe}()},{"@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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/obj2xml"),Se=Le.obj2xml,Oe=oe("../utils/checkObjectTag"),ve=Oe.checkObjectTag,xe=De;xe.putObjectTagging=function(){var fe=(0,we.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,be,Ce=arguments;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},ve(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=Se(pe),je.next=13,this.request(ue);case 13:return be=je.sent,je.abrupt("return",{res:be.res,status:be.status});case 15:case"end":return je.stop()}},ee,this)}));function z(ee,ae){return fe.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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=De;Le.putSymlink=function(){var Se=(0,we.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.headers=z.headers||{},fe=this._escape(this._objectName(fe)),this._convertMetaToHeaders(z.meta,z.headers),z.headers["x-oss-symlink-target"]=fe,z.subres=Object.assign({symlink:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.storageClass&&(z.headers["x-oss-storage-class"]=z.storageClass),xe=this._objectName(xe),ee=this._objectRequestParams("PUT",xe,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()}},ve,this)}));function Oe(ve,xe,fe){return Se.apply(this,arguments)}return Oe}()},{"@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,Ge,De){"use strict";var me=oe("url"),ce=oe("utility"),we=oe("copy-to"),Le=oe("../../common/signUtils"),Se=oe("../utils/isIP"),Oe=Se.isIP,ve=De;ve.signatureUrl=function(fe,z){if(Oe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");z=z||{},fe=this._objectName(fe),z.method=z.method||"GET";var ee=ce.timestamp()+(z.expires||1800),ae={bucket:this.options.bucket,object:fe},re=this._getResource(ae);this.options.stsToken&&(z["security-token"]=this.options.stsToken);var le=Le._signatureForURL(this.options.accessKeySecret,z,re,ee),ue=me.parse(this._getReqUrl(ae));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ee,Signature:le.Signature},we(le.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("./utils/isArray"),Se=Le.isArray,Oe=De;Oe._parallelNode=function(){var ve=(0,we.default)(ce.default.mark(function fe(z,ee,ae,re){var le,ue,pe,be,Ce,Fe,je,ke;return ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:le=this,ue=[],pe=[],be=z.length/ee,Ce=z.length%ee,Fe=Ce===0?be:(z.length-Ce)/ee+1,je=1,ke=0;case 8:if(!(ke<z.length)){Be.next=26;break}if(!le.isCancel()){Be.next=11;break}return Be.abrupt("break",26);case 11:if(re?pe.push(ae(le,z[ke],re)):pe.push(ae(le,z[ke])),!(pe.length===ee||je===Fe&&ke===z.length-1)){Be.next=23;break}return Be.prev=13,je+=1,Be.next=17,Promise.all(pe);case 17:Be.next=22;break;case 19:Be.prev=19,Be.t0=Be.catch(13),ue.push(Be.t0);case 22:pe=[];case 23:ke++,Be.next=8;break;case 26:return Be.abrupt("return",ue);case 27:case"end":return Be.stop()}},fe,this,[[13,19]])}));function xe(fe,z,ee,ae){return ve.apply(this,arguments)}return xe}(),Oe._parallel=function(xe,fe,z){var ee=this;return new Promise(function(ae){var re=[];if(fe<=0||!xe){ae(re);return}function le(Be){return function(){if(Be===null)throw new Error("Callback was already called.");var _e=Be;Be=null;for(var et=arguments.length,ze=new Array(et),Xe=0;Xe<et;Xe++)ze[Xe]=arguments[Xe];_e.apply(this,ze)}}function ue(Be){var _e=-1,et=Be.length;return function(){return++_e<et&&!ee.isCancel()?{value:Be[_e],key:_e}:null}}var pe=ue(xe),be=!1,Ce=0,Fe=!1;function je(Be){Ce-=1,Be?(be=!0,re.push(Be),ae(re)):be&&Ce<=0?(be=!0,ae(re)):Fe||(ee.isCancel()?ae(re):Ae())}function ke(Be,_e){z(Be).then(function(et){_e(null,et)}).catch(function(et){_e(et)})}function Ae(){for(Fe=!0;Ce<fe&&!be&&!ee.isCancel();){var Be=pe();if(Be===null||re.length>0){be=!0,Ce<=0&&ae(re);return}Ce+=1,ke(Be.value,le(je))}Fe=!1}Ae()})},Oe.cancel=function(xe){this.options.cancelFlag=!0,Se(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(fe){if(fe.destroyed===!1){var z={name:"cancel",message:"cancel"};fe.destroy(z)}}),this.multipartUploadStreams=[],xe&&this.abortMultipartUpload(xe.name,xe.uploadId,xe.options)},Oe.isCancel=function(){return this.options.cancelFlag},Oe.resetCancelFlag=function(){this.options.cancelFlag=!1},Oe._stop=function(){this.options.cancelFlag=!0},Oe._makeCancelEvent=function(){var xe={status:0,name:"cancel"};return xe},Oe._makeAbortEvent=function(){var xe={status:0,name:"abort",message:"upload task has been abort"};return xe}},{"./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,Ge,De){(function(me){(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 ce=oe("./../../shims/crypto/crypto.js"),we=oe("is-type-of"),Le=oe("./utils/lowercaseKeyHeader"),Se=Le.lowercaseKeyHeader;De.buildCanonicalizedResource=function(ve,xe){var fe="".concat(ve),z="?";if(we.string(xe)&&xe.trim()!=="")fe+=z+xe;else if(we.array(xe))xe.sort(),fe+=z+xe.join("&");else if(xe){var ee=function(le,ue){return le[0]>ue[0]?1:le[0]<ue[0]?-1:0},ae=function(le){fe+=z+le,(xe[le]||xe[le]===0)&&(fe+="=".concat(xe[le])),z="&"};Object.keys(xe).sort(ee).forEach(ae)}return fe},De.buildCanonicalString=function(ve,xe,fe,z){fe=fe||{};var ee=Se(fe.headers),ae="x-oss-",re=[],le={},ue=[ve.toUpperCase(),ee["content-md5"]||"",ee["content-type"],z||ee["x-oss-date"]];return Object.keys(ee).forEach(function(pe){var be=pe.toLowerCase();be.indexOf(ae)===0&&(le[be]=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(xe,fe.parameters)),ue.join(`
|
|
|
`)},De.computeSignature=function(ve,xe){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",z=ce.createHmac("sha1",ve);return z.update(me.from(xe,fe)).digest("base64")},De.authorization=function(ve,xe,fe,z){return"OSS ".concat(ve,":").concat(this.computeSignature(xe,fe,z))},De._signatureForURL=function(ve){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=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=xe.subResource,le=re===void 0?{}:re;if(xe.process){var ue="x-oss-process";le[ue]=xe.process}if(xe.trafficLimit){var pe="x-oss-traffic-limit";le[pe]=xe.trafficLimit}if(xe.response&&Object.keys(xe.response).forEach(function(je){var ke="response-".concat(je.toLowerCase());le[ke]=xe.response[je]}),Object.keys(xe).forEach(function(je){var ke=je.toLowerCase(),Ae=xe[je];ke.indexOf("x-oss-")===0?ae[ke]=Ae:(ke.indexOf("content-md5")===0||ke.indexOf("content-type")===0)&&(ae[je]=Ae)}),Object.prototype.hasOwnProperty.call(xe,"security-token")&&(le["security-token"]=xe["security-token"]),Object.prototype.hasOwnProperty.call(xe,"callback")){var be={callbackUrl:encodeURI(xe.callback.url),callbackBody:xe.callback.body};if(xe.callback.host&&(be.callbackHost=xe.callback.host),xe.callback.contentType&&(be.callbackBodyType=xe.callback.contentType),le.callback=me.from(JSON.stringify(be)).toString("base64"),xe.callback.customValue){var Ce={};Object.keys(xe.callback.customValue).forEach(function(je){Ce["x:".concat(je)]=xe.callback.customValue[je]}),le["callback-var"]=me.from(JSON.stringify(Ce)).toString("base64")}}var Fe=this.buildCanonicalString(xe.method,fe,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(ve,Fe,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,Ge,De){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.checkBucketName=void 0,De.checkBucketName=function(me){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=ce?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!we.test(me))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.checkConfigValid=void 0;var me={endpoint:ce,region:/^[a-zA-Z0-9\-_]+$/};function ce(we){return typeof we=="string"?/^[a-zA-Z0-9._:/-]+$/.test(we):we.host?/^[a-zA-Z0-9._:/-]+$/.test(we.host):!1}De.checkConfigValid=function(we,Le){if(me[Le]){var Se=!0;if(me[Le]instanceof Function?Se=me[Le](we):Se=me[Le].test(we),!Se)throw new Error("The ".concat(Le," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(oe,Ge,De){(function(me){(function(){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.checkEnv=void 0;function ce(we){me.browser&&console.warn(we)}De.checkEnv=ce}).call(this)}).call(this,oe("_process"))},{_process:467}],54:[function(oe,Ge,De){"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(De,"__esModule",{value:!0}),De.checkObjectTag=void 0;var me=oe("./checkValid"),ce=me.checkValid,we=oe("./isObject"),Le=we.isObject,Se=[{validator:function(fe){if(typeof fe!="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 (/)"}],Oe={key:[].concat(Se,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(Se,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function ve(xe){if(!Le(xe))throw new Error("tag must be Object");var fe=Object.entries(xe);if(fe.length>10)throw new Error("maximum of 10 tags for a object");var z=["key","value"];fe.forEach(function(ee){ee.forEach(function(ae,re){ce(ae,Oe[z[re]])})})}De.checkObjectTag=ve},{"./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,Ge,De){"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(De,"__esModule",{value:!0}),De.checkValid=void 0;function me(ce,we){we.forEach(function(Le){if(Le.validator)Le.validator(ce);else if(Le.pattern&&!Le.pattern.test(ce))throw new Error(Le.msg)})}De.checkValid=me},{"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,Ge,De){(function(me){(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(De,"__esModule",{value:!0}),De.createRequest=void 0;var ce=oe("./../../../shims/crypto/crypto.js"),we=oe("debug")("ali-oss"),Le=oe("mime"),Se=oe("dateformat"),Oe=oe("copy-to"),ve=oe("path"),xe=oe("./encoder"),fe=xe.encoder,z=oe("./isIP"),ee=z.isIP,ae=oe("./setRegion"),re=ae.setRegion,le=oe("../client/getReqUrl"),ue=le.getReqUrl,pe=oe("./isDingTalk"),be=pe.isDingTalk;function Ce(ke,Ae){return ke[Ae]||ke[Ae.toLowerCase()]}function Fe(ke,Ae){delete ke[Ae],delete ke[Ae.toLowerCase()]}function je(ke){var Ae=new Date;this.options.amendTimeSkewed&&(Ae=+new Date+this.options.amendTimeSkewed);var Be={"x-oss-date":Se(Ae,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Be["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Be["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Be,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Be["x-oss-security-token"]=this.options.stsToken),Oe(ke.headers).to(Be),Ce(Be,"Content-Type")||(ke.mime&&ke.mime.indexOf("/")>0?Be["Content-Type"]=ke.mime:be()?Be["Content-Type"]="application/octet-stream":Be["Content-Type"]=Le.getType(ke.mime||ve.extname(ke.object||""))),Ce(Be,"Content-Type")||Fe(Be,"Content-Type"),ke.content&&(ke.disabledMD5||(!ke.headers||!ke.headers["Content-MD5"]?Be["Content-MD5"]=ce.createHash("md5").update(me.from(ke.content,"utf8")).digest("base64"):Be["Content-MD5"]=ke.headers["Content-MD5"]),Be["Content-Length"]||(Be["Content-Length"]=ke.content.length));var _e=Object.prototype.hasOwnProperty;for(var et in Be)Be[et]&&_e.call(Be,et)&&(Be[et]=fe(String(Be[et]),this.options.headerEncoding));var ze=this._getResource(ke);if(Be.authorization=this.authorization(ke.method,ze,ke.subres,Be,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var Xe=this.options,Qe=Xe.region,lt=Xe.internal,ct=Xe.secure,vt=re(Qe,lt,ct);Be.host="".concat(ke.bucket,".").concat(vt.host)}var nt=ue.bind(this)(ke);we("request %s %s, with headers %j, !!stream: %s",ke.method,nt,Be,!!ke.stream);var it=ke.timeout||this.options.timeout,pt={method:ke.method,content:ke.content,stream:ke.stream,headers:Be,timeout:it,writeStream:ke.writeStream,customResponse:ke.customResponse,ctx:ke.ctx||this.ctx};return this.agent&&(pt.agent=this.agent),this.httpsAgent&&(pt.httpsAgent=this.httpsAgent),pt.enableProxy=!!this.options.enableProxy,pt.proxy=this.options.proxy?this.options.proxy:null,{url:nt,params:pt}}De.createRequest=je}).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,Ge,De){"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(De,"__esModule",{value:!0}),De.dataFix=void 0;var me=oe("./isObject"),ce=["true","TRUE","1",1],we=["false","FALSE","0",0];function Le(ve,xe,fe){if(me.isObject(ve)){var z=xe.remove,ee=z===void 0?[]:z,ae=xe.rename,re=ae===void 0?{}:ae,le=xe.camel,ue=le===void 0?[]:le,pe=xe.bool,be=pe===void 0?[]:pe,Ce=xe.lowerFirst,Fe=Ce===void 0?!1:Ce;return ee.forEach(function(je){return delete ve[je]}),Object.entries(re).forEach(function(je){ve[je[0]]&&(ve[je[1]]||(ve[je[1]]=ve[je[0]],delete ve[je[0]]))}),ue.forEach(function(je){if(ve[je]){var ke=je.replace(/^(.)/,function(Ae){return Ae.toLowerCase()}).replace(/-(\w)/g,function(Ae,Be){return Be.toUpperCase()});ve[ke]||(ve[ke]=ve[je])}}),be.forEach(function(je){ve[je]=Se(ve[je])}),typeof fe=="function"&&fe(ve),Oe(ve,Fe),Le}}De.dataFix=Le;function Se(ve){return ve?ce.includes(ve)?!0:we.includes(ve)?!1:ve:!1}function Oe(ve,xe){xe&&Object.keys(ve).forEach(function(fe){var z=fe.replace(/^\w/,function(ee){return ee.toLowerCase()});typeof ve[z]=="undefined"&&(ve[z]=ve[fe],delete ve[fe])})}},{"./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,Ge,De){"use strict";var me=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 ce=me(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(De,"__esModule",{value:!0}),De.deepCopyWith=De.deepCopy=void 0;var we=oe("./isBuffer");De.deepCopy=function(Le){if(Le===null||(0,ce.default)(Le)!=="object")return Le;if(we.isBuffer(Le))return Le.slice();var Se=Array.isArray(Le)?[]:{};return Object.keys(Le).forEach(function(Oe){Se[Oe]=De.deepCopy(Le[Oe])}),Se},De.deepCopyWith=function(Le,Se){function Oe(ve,xe,fe){var z=Se(ve,xe,fe);if(z!==void 0)return z;if(ve===null||(0,ce.default)(ve)!=="object")return ve;if(we.isBuffer(ve))return ve.slice();var ee=Array.isArray(ve)?[]:{};return Object.keys(ve).forEach(function(ae){ee[ae]=Oe(ve[ae],ae,ve)}),ee}return Se?Oe(Le,"",null):De.deepCopy(Le)}},{"./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,Ge,De){(function(me){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.encoder=void 0;function ce(we){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Le==="utf-8"?we:me.from(we).toString("latin1")}De.encoder=ce}).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,Ge,De){"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(De,"__esModule",{value:!0}),De.formatInventoryConfig=void 0;var me=oe("../utils/dataFix"),ce=oe("../utils/isObject"),we=oe("../utils/isArray"),Le=oe("../utils/formatObjKey");function Se(ve){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xe&&ce.isObject(ve)&&(ve=[ve]),we.isArray(ve)?ve=ve.map(Oe):ve=Oe(ve),ve}De.formatInventoryConfig=Se;function Oe(ve){return me.dataFix(ve,{bool:["IsEnabled"]},function(xe){var fe,z;xe.prefix=xe.Filter.Prefix,delete xe.Filter,xe.OSSBucketDestination=xe.Destination.OSSBucketDestination,xe.OSSBucketDestination.rolename=xe.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete xe.OSSBucketDestination.RoleArn,xe.OSSBucketDestination.bucket=xe.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete xe.OSSBucketDestination.Bucket,delete xe.Destination,xe.frequency=xe.Schedule.Frequency,delete xe.Schedule.Frequency,!((fe=xe==null?void 0:xe.OptionalFields)===null||fe===void 0)&&fe.Field&&!we.isArray((z=xe.OptionalFields)===null||z===void 0?void 0:z.Field)&&(xe.OptionalFields.Field=[xe.OptionalFields.Field])}),ve=Le.formatObjKey(ve,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),ve}},{"../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,Ge,De){"use strict";var me=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 ce=me(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(De,"__esModule",{value:!0}),De.formatObjKey=void 0;function we(Se,Oe,ve){if(Se===null||(0,ce.default)(Se)!=="object")return Se;var xe;if(Array.isArray(Se)){xe=[];for(var fe=0;fe<Se.length;fe++)xe.push(we(Se[fe],Oe,ve))}else xe={},Object.keys(Se).forEach(function(z){xe[Le(z,Oe,ve)]=we(Se[z],Oe,ve)});return xe}De.formatObjKey=we;function Le(Se,Oe,ve){return ve&&ve.exclude&&ve.exclude.includes(Se)||(Oe==="firstUpperCase"?Se=Se.replace(/^./,function(xe){return xe.toUpperCase()}):Oe==="firstLowerCase"&&(Se=Se.replace(/^./,function(xe){return xe.toLowerCase()}))),Se}},{"@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,Ge,De){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.getStrBytesCount=void 0;function me(ce){for(var we=0,Le=0;Le<ce.length;Le++){var Se=ce.charAt(Le);/^[\u00-\uff]$/.test(Se)?we+=1:we+=2}return we}De.getStrBytesCount=me},{"core-js/modules/es.regexp.exec.js":300}],63:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.isArray=void 0,De.isArray=function(me){return Object.prototype.toString.call(me)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(oe,Ge,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.isBlob=void 0;function me(ce){return typeof Blob!="undefined"&&ce instanceof Blob}De.isBlob=me},{}],65:[function(oe,Ge,De){(function(me){(function(){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.isBuffer=void 0;function ce(we){return me.isBuffer(we)}De.isBuffer=ce}).call(this)}).call(this,{isBuffer:oe("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(oe,Ge,De){(function(me){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.isDingTalk=void 0;function ce(){return!!(me.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}De.isDingTalk=ce}).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,Ge,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.isFile=void 0,De.isFile=function(me){return typeof File!="undefined"&&me instanceof File}},{}],68:[function(oe,Ge,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.isFunction=void 0,De.isFunction=function(me){return typeof me=="function"}},{}],69:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.isIP=void 0,De.isIP=function(me){var ce=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,we=/^\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 ce.test(me)||we.test(me)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.isObject=void 0,De.isObject=function(me){return Object.prototype.toString.call(me)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(oe,Ge,De){"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(De,"__esModule",{value:!0}),De.lowercaseKeyHeader=void 0;var me=oe("./isObject");function ce(we){var Le={};return me.isObject(we)&&Object.keys(we).forEach(function(Se){Le[Se.toLowerCase()]=we[Se]}),Le}De.lowercaseKeyHeader=ce},{"./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,Ge,De){"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(De,"__esModule",{value:!0}),De.obj2xml=void 0;var me=oe("./formatObjKey");function ce(Le){return Object.prototype.toString.call(Le).replace(/(.*? |])/g,"").toLowerCase()}function we(Le,Se){var Oe="";return Se&&Se.headers&&(Oe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),Se&&Se.firstUpperCase&&(Le=me.formatObjKey(Le,"firstUpperCase")),ce(Le)==="object"?Object.keys(Le).forEach(function(ve){ce(Le[ve])!=="undefined"&&ce(Le[ve])!=="null"&&(ce(Le[ve])==="string"||ce(Le[ve])==="number"?Oe+="<".concat(ve,">").concat(Le[ve],"</").concat(ve,">"):ce(Le[ve])==="object"?Oe+="<".concat(ve,">").concat(we(Le[ve]),"</").concat(ve,">"):ce(Le[ve])==="array"?Oe+=Le[ve].map(function(xe){return"<".concat(ve,">").concat(we(xe),"</").concat(ve,">")}).join(""):Oe+="<".concat(ve,">").concat(Le[ve].toString(),"</").concat(ve,">"))}):Oe+=Le.toString(),Oe}De.obj2xml=we},{"./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,Ge,De){"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 me(Se,Oe){var ve=typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(!ve){if(Array.isArray(Se)||(ve=ce(Se))||Oe&&Se&&typeof Se.length=="number"){ve&&(Se=ve);var xe=0,fe=function(){};return{s:fe,n:function(){return xe>=Se.length?{done:!0}:{done:!1,value:Se[xe++]}},e:function(le){throw le},f:fe}}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(){ve=ve.call(Se)},n:function(){var le=ve.next();return z=le.done,le},e:function(le){ee=!0,ae=le},f:function(){try{!z&&ve.return!=null&&ve.return()}finally{if(ee)throw ae}}}}function ce(Se,Oe){if(Se){if(typeof Se=="string")return we(Se,Oe);var ve=Object.prototype.toString.call(Se).slice(8,-1);if(ve==="Object"&&Se.constructor&&(ve=Se.constructor.name),ve==="Map"||ve==="Set")return Array.from(Se);if(ve==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ve))return we(Se,Oe)}}function we(Se,Oe){(Oe==null||Oe>Se.length)&&(Oe=Se.length);for(var ve=0,xe=new Array(Oe);ve<Oe;ve++)xe[ve]=Se[ve];return xe}Object.defineProperty(De,"__esModule",{value:!0}),De.omit=void 0;function Le(Se,Oe){var ve=Object.assign({},Se),xe=me(Oe),fe;try{for(xe.s();!(fe=xe.n()).done;){var z=fe.value;delete ve[z]}}catch(ee){xe.e(ee)}finally{xe.f()}return ve}De.omit=Le},{"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,Ge,De){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.retry=void 0;function me(ce,we){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=0,Oe=Le.retryDelay,ve=Oe===void 0?500:Oe,xe=Le.errorHandler,fe=xe===void 0?function(){return!0}:xe,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){ce.apply(void 0,re).then(function(be){Se=0,ue(be)}).catch(function(be){Se<we&&fe(be)?(Se++,setTimeout(function(){ue(ee.apply(void 0,re))},ve)):(Se=0,pe(be))})})};return z}De.retry=me},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(oe,Ge,De){"use strict";var me=function(Se){return Se&&Se.__esModule?Se:{default:Se}};Object.defineProperty(De,"__esModule",{value:!0}),De.setRegion=void 0;var ce=me(oe("url")),we=oe("./checkConfigValid");function Le(Se){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;we.checkConfigValid(Se,"region");var xe=ve?"https://":"http://",fe=Oe?"-internal.aliyuncs.com":".aliyuncs.com",z="vpc100-oss-cn-";return Se.substr(0,z.length)===z&&(fe=".aliyuncs.com"),ce.default.parse(xe+Se+fe)}De.setRegion=Le},{"./checkConfigValid":52,url:472}],76:[function(oe,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.checkCredentials=De.setSTSToken=void 0;var Le=oe("./formatObjKey");function Se(){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,we.default)(ce.default.mark(function xe(){var fe,z;return ce.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(this.options||(this.options={}),fe=new Date,!this.stsTokenFreshTime){ae.next=14;break}if(!(+fe-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ae.next=12;break}return this.stsTokenFreshTime=fe,ae.next=7,this.options.refreshSTSToken();case 7:z=ae.sent,z=Le.formatObjKey(z,"firstLowerCase"),z.securityToken&&(z.stsToken=z.securityToken),ve(z),Object.assign(this.options,z);case 12:ae.next=15;break;case 14:this.stsTokenFreshTime=fe;case 15:return ae.abrupt("return",null);case 16:case"end":return ae.stop()}},xe,this)})),Oe.apply(this,arguments)}De.setSTSToken=Se;function ve(xe){var fe=["accessKeySecret","accessKeyId","stsToken"],z=Object.keys(xe);fe.forEach(function(ee){if(!z.find(function(ae){return ae===ee}))throw Error("refreshSTSToken must return contains ".concat(ee))})}De.checkCredentials=ve},{"./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,Ge,De){function me(we,Le,Se,Oe,ve,xe,fe){try{var z=we[xe](fe),ee=z.value}catch(ae){Se(ae);return}z.done?Le(ee):Promise.resolve(ee).then(Oe,ve)}function ce(we){return function(){var Le=this,Se=arguments;return new Promise(function(Oe,ve){var xe=we.apply(Le,Se);function fe(ee){me(xe,Oe,ve,fe,z,"next",ee)}function z(ee){me(xe,Oe,ve,fe,z,"throw",ee)}fe(void 0)})}}Ge.exports=ce,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},{}],78:[function(oe,Ge,De){function me(ce){return ce&&ce.__esModule?ce:{default:ce}}Ge.exports=me,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},{}],79:[function(oe,Ge,De){function me(ce){"@babel/helpers - typeof";return Ge.exports=me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(we){return typeof we}:function(we){return we&&typeof Symbol=="function"&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,me(ce)}Ge.exports=me,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},{}],80:[function(oe,Ge,De){Ge.exports=oe("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(oe,Ge,De){Ge.exports=me,Ge.exports.HttpsAgent=me;function me(){}},{}],82:[function(oe,Ge,De){(function(me){(function(){"use strict";var ce=oe("object-assign");function we(Qe,lt){if(Qe===lt)return 0;for(var ct=Qe.length,vt=lt.length,nt=0,it=Math.min(ct,vt);nt<it;++nt)if(Qe[nt]!==lt[nt]){ct=Qe[nt],vt=lt[nt];break}return ct<vt?-1:vt<ct?1:0}function Le(Qe){return me.Buffer&&typeof me.Buffer.isBuffer=="function"?me.Buffer.isBuffer(Qe):!!(Qe!=null&&Qe._isBuffer)}var Se=oe("util/"),Oe=Object.prototype.hasOwnProperty,ve=Array.prototype.slice,xe=function(){return function(){}.name==="foo"}();function fe(Qe){return Object.prototype.toString.call(Qe)}function z(Qe){return Le(Qe)||typeof me.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Qe):Qe?!!(Qe instanceof DataView||Qe.buffer&&Qe.buffer instanceof ArrayBuffer):!1}var ee=Ge.exports=Ce,ae=/\s*function\s+([^\(\s]*)\s*/;function re(Qe){if(Se.isFunction(Qe)){if(xe)return Qe.name;var lt=Qe.toString(),ct=lt.match(ae);return ct&&ct[1]}}ee.AssertionError=function(lt){this.name="AssertionError",this.actual=lt.actual,this.expected=lt.expected,this.operator=lt.operator,lt.message?(this.message=lt.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var ct=lt.stackStartFunction||be;if(Error.captureStackTrace)Error.captureStackTrace(this,ct);else{var vt=new Error;if(vt.stack){var nt=vt.stack,it=re(ct),pt=nt.indexOf(`
|
|
|
`+it);if(pt>=0){var xt=nt.indexOf(`
|
|
|
`,pt+1);nt=nt.substring(xt+1)}this.stack=nt}}},Se.inherits(ee.AssertionError,Error);function le(Qe,lt){return typeof Qe=="string"?Qe.length<lt?Qe:Qe.slice(0,lt):Qe}function ue(Qe){if(xe||!Se.isFunction(Qe))return Se.inspect(Qe);var lt=re(Qe),ct=lt?": "+lt:"";return"[Function"+ct+"]"}function pe(Qe){return le(ue(Qe.actual),128)+" "+Qe.operator+" "+le(ue(Qe.expected),128)}function be(Qe,lt,ct,vt,nt){throw new ee.AssertionError({message:ct,actual:Qe,expected:lt,operator:vt,stackStartFunction:nt})}ee.fail=be;function Ce(Qe,lt){Qe||be(Qe,!0,lt,"==",ee.ok)}ee.ok=Ce,ee.equal=function(lt,ct,vt){lt!=ct&&be(lt,ct,vt,"==",ee.equal)},ee.notEqual=function(lt,ct,vt){lt==ct&&be(lt,ct,vt,"!=",ee.notEqual)},ee.deepEqual=function(lt,ct,vt){Fe(lt,ct,!1)||be(lt,ct,vt,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(lt,ct,vt){Fe(lt,ct,!0)||be(lt,ct,vt,"deepStrictEqual",ee.deepStrictEqual)};function Fe(Qe,lt,ct,vt){if(Qe===lt)return!0;if(Le(Qe)&&Le(lt))return we(Qe,lt)===0;if(Se.isDate(Qe)&&Se.isDate(lt))return Qe.getTime()===lt.getTime();if(Se.isRegExp(Qe)&&Se.isRegExp(lt))return Qe.source===lt.source&&Qe.global===lt.global&&Qe.multiline===lt.multiline&&Qe.lastIndex===lt.lastIndex&&Qe.ignoreCase===lt.ignoreCase;if((Qe===null||typeof Qe!="object")&&(lt===null||typeof lt!="object"))return ct?Qe===lt:Qe==lt;if(z(Qe)&&z(lt)&&fe(Qe)===fe(lt)&&!(Qe instanceof Float32Array||Qe instanceof Float64Array))return we(new Uint8Array(Qe.buffer),new Uint8Array(lt.buffer))===0;if(Le(Qe)!==Le(lt))return!1;vt=vt||{actual:[],expected:[]};var nt=vt.actual.indexOf(Qe);return nt!==-1&&nt===vt.expected.indexOf(lt)?!0:(vt.actual.push(Qe),vt.expected.push(lt),ke(Qe,lt,ct,vt))}function je(Qe){return Object.prototype.toString.call(Qe)=="[object Arguments]"}function ke(Qe,lt,ct,vt){if(Qe==null||lt===null||lt===void 0)return!1;if(Se.isPrimitive(Qe)||Se.isPrimitive(lt))return Qe===lt;if(ct&&Object.getPrototypeOf(Qe)!==Object.getPrototypeOf(lt))return!1;var nt=je(Qe),it=je(lt);if(nt&&!it||!nt&&it)return!1;if(nt)return Qe=ve.call(Qe),lt=ve.call(lt),Fe(Qe,lt,ct);var pt=Xe(Qe),xt=Xe(lt),yt,ft;if(pt.length!==xt.length)return!1;for(pt.sort(),xt.sort(),ft=pt.length-1;ft>=0;ft--)if(pt[ft]!==xt[ft])return!1;for(ft=pt.length-1;ft>=0;ft--)if(yt=pt[ft],!Fe(Qe[yt],lt[yt],ct,vt))return!1;return!0}ee.notDeepEqual=function(lt,ct,vt){Fe(lt,ct,!1)&&be(lt,ct,vt,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=Ae;function Ae(Qe,lt,ct){Fe(Qe,lt,!0)&&be(Qe,lt,ct,"notDeepStrictEqual",Ae)}ee.strictEqual=function(lt,ct,vt){lt!==ct&&be(lt,ct,vt,"===",ee.strictEqual)},ee.notStrictEqual=function(lt,ct,vt){lt===ct&&be(lt,ct,vt,"!==",ee.notStrictEqual)};function Be(Qe,lt){if(!Qe||!lt)return!1;if(Object.prototype.toString.call(lt)=="[object RegExp]")return lt.test(Qe);try{if(Qe instanceof lt)return!0}catch(ct){}return Error.isPrototypeOf(lt)?!1:lt.call({},Qe)===!0}function _e(Qe){var lt;try{Qe()}catch(ct){lt=ct}return lt}function et(Qe,lt,ct,vt){var nt;if(typeof lt!="function")throw new TypeError('"block" argument must be a function');typeof ct=="string"&&(vt=ct,ct=null),nt=_e(lt),vt=(ct&&ct.name?" ("+ct.name+").":".")+(vt?" "+vt:"."),Qe&&!nt&&be(nt,ct,"Missing expected exception"+vt);var it=typeof vt=="string",pt=!Qe&&Se.isError(nt),xt=!Qe&&nt&&!ct;if((pt&&it&&Be(nt,ct)||xt)&&be(nt,ct,"Got unwanted exception"+vt),Qe&&nt&&ct&&!Be(nt,ct)||!Qe&&nt)throw nt}ee.throws=function(Qe,lt,ct){et(!0,Qe,lt,ct)},ee.doesNotThrow=function(Qe,lt,ct){et(!1,Qe,lt,ct)},ee.ifError=function(Qe){if(Qe)throw Qe};function ze(Qe,lt){Qe||be(Qe,!0,lt,"==",ze)}ee.strict=ce(ze,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var Xe=Object.keys||function(Qe){var lt=[];for(var ct in Qe)Oe.call(Qe,ct)&<.push(ct);return lt}}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(oe,Ge,De){typeof Object.create=="function"?Ge.exports=function(ce,we){ce.super_=we,ce.prototype=Object.create(we.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}})}:Ge.exports=function(ce,we){ce.super_=we;var Le=function(){};Le.prototype=we.prototype,ce.prototype=new Le,ce.prototype.constructor=ce}},{}],84:[function(oe,Ge,De){Ge.exports=function(ce){return ce&&typeof ce=="object"&&typeof ce.copy=="function"&&typeof ce.fill=="function"&&typeof ce.readUInt8=="function"}},{}],85:[function(oe,Ge,De){(function(me,ce){(function(){var we=/%[sdj%]/g;De.format=function(xt){if(!ke(xt)){for(var yt=[],ft=0;ft<arguments.length;ft++)yt.push(Oe(arguments[ft]));return yt.join(" ")}for(var ft=1,gt=arguments,mt=gt.length,Nt=String(xt).replace(we,function(zt){if(zt==="%%")return"%";if(ft>=mt)return zt;switch(zt){case"%s":return String(gt[ft++]);case"%d":return Number(gt[ft++]);case"%j":try{return JSON.stringify(gt[ft++])}catch(St){return"[Circular]"}default:return zt}}),Tt=gt[ft];ft<mt;Tt=gt[++ft])Ce(Tt)||!et(Tt)?Nt+=" "+Tt:Nt+=" "+Oe(Tt);return Nt},De.deprecate=function(xt,yt){if(Be(ce.process))return function(){return De.deprecate(xt,yt).apply(this,arguments)};if(me.noDeprecation===!0)return xt;var ft=!1;function gt(){if(!ft){if(me.throwDeprecation)throw new Error(yt);me.traceDeprecation?console.trace(yt):console.error(yt),ft=!0}return xt.apply(this,arguments)}return gt};var Le={},Se;De.debuglog=function(xt){if(Be(Se)&&(Se=me.env.NODE_DEBUG||""),xt=xt.toUpperCase(),!Le[xt])if(new RegExp("\\b"+xt+"\\b","i").test(Se)){var yt=me.pid;Le[xt]=function(){var ft=De.format.apply(De,arguments);console.error("%s %d: %s",xt,yt,ft)}}else Le[xt]=function(){};return Le[xt]};function Oe(xt,yt){var ft={seen:[],stylize:xe};return arguments.length>=3&&(ft.depth=arguments[2]),arguments.length>=4&&(ft.colors=arguments[3]),be(yt)?ft.showHidden=yt:yt&&De._extend(ft,yt),Be(ft.showHidden)&&(ft.showHidden=!1),Be(ft.depth)&&(ft.depth=2),Be(ft.colors)&&(ft.colors=!1),Be(ft.customInspect)&&(ft.customInspect=!0),ft.colors&&(ft.stylize=ve),z(ft,xt,ft.depth)}De.inspect=Oe,Oe.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]},Oe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ve(xt,yt){var ft=Oe.styles[yt];return ft?"\x1B["+Oe.colors[ft][0]+"m"+xt+"\x1B["+Oe.colors[ft][1]+"m":xt}function xe(xt,yt){return xt}function fe(xt){var yt={};return xt.forEach(function(ft,gt){yt[ft]=!0}),yt}function z(xt,yt,ft){if(xt.customInspect&&yt&&Qe(yt.inspect)&&yt.inspect!==De.inspect&&!(yt.constructor&&yt.constructor.prototype===yt)){var gt=yt.inspect(ft,xt);return ke(gt)||(gt=z(xt,gt,ft)),gt}var mt=ee(xt,yt);if(mt)return mt;var Nt=Object.keys(yt),Tt=fe(Nt);if(xt.showHidden&&(Nt=Object.getOwnPropertyNames(yt)),Xe(yt)&&(Nt.indexOf("message")>=0||Nt.indexOf("description")>=0))return ae(yt);if(Nt.length===0){if(Qe(yt)){var zt=yt.name?": "+yt.name:"";return xt.stylize("[Function"+zt+"]","special")}if(_e(yt))return xt.stylize(RegExp.prototype.toString.call(yt),"regexp");if(ze(yt))return xt.stylize(Date.prototype.toString.call(yt),"date");if(Xe(yt))return ae(yt)}var St="",wt=!1,at=["{","}"];if(pe(yt)&&(wt=!0,at=["[","]"]),Qe(yt)){var Ye=yt.name?": "+yt.name:"";St=" [Function"+Ye+"]"}if(_e(yt)&&(St=" "+RegExp.prototype.toString.call(yt)),ze(yt)&&(St=" "+Date.prototype.toUTCString.call(yt)),Xe(yt)&&(St=" "+ae(yt)),Nt.length===0&&(!wt||yt.length==0))return at[0]+St+at[1];if(ft<0)return _e(yt)?xt.stylize(RegExp.prototype.toString.call(yt),"regexp"):xt.stylize("[Object]","special");xt.seen.push(yt);var Pe;return wt?Pe=re(xt,yt,ft,Tt,Nt):Pe=Nt.map(function(Te){return le(xt,yt,ft,Tt,Te,wt)}),xt.seen.pop(),ue(Pe,St,at)}function ee(xt,yt){if(Be(yt))return xt.stylize("undefined","undefined");if(ke(yt)){var ft="'"+JSON.stringify(yt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize(ft,"string")}if(je(yt))return xt.stylize(""+yt,"number");if(be(yt))return xt.stylize(""+yt,"boolean");if(Ce(yt))return xt.stylize("null","null")}function ae(xt){return"["+Error.prototype.toString.call(xt)+"]"}function re(xt,yt,ft,gt,mt){for(var Nt=[],Tt=0,zt=yt.length;Tt<zt;++Tt)pt(yt,String(Tt))?Nt.push(le(xt,yt,ft,gt,String(Tt),!0)):Nt.push("");return mt.forEach(function(St){St.match(/^\d+$/)||Nt.push(le(xt,yt,ft,gt,St,!0))}),Nt}function le(xt,yt,ft,gt,mt,Nt){var Tt,zt,St;if(St=Object.getOwnPropertyDescriptor(yt,mt)||{value:yt[mt]},St.get?St.set?zt=xt.stylize("[Getter/Setter]","special"):zt=xt.stylize("[Getter]","special"):St.set&&(zt=xt.stylize("[Setter]","special")),pt(gt,mt)||(Tt="["+mt+"]"),zt||(xt.seen.indexOf(St.value)<0?(Ce(ft)?zt=z(xt,St.value,null):zt=z(xt,St.value,ft-1),zt.indexOf(`
|
|
|
`)>-1&&(Nt?zt=zt.split(`
|
|
|
`).map(function(wt){return" "+wt}).join(`
|
|
|
`).substr(2):zt=`
|
|
|
`+zt.split(`
|
|
|
`).map(function(wt){return" "+wt}).join(`
|
|
|
`))):zt=xt.stylize("[Circular]","special")),Be(Tt)){if(Nt&&mt.match(/^\d+$/))return zt;Tt=JSON.stringify(""+mt),Tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Tt=Tt.substr(1,Tt.length-2),Tt=xt.stylize(Tt,"name")):(Tt=Tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Tt=xt.stylize(Tt,"string"))}return Tt+": "+zt}function ue(xt,yt,ft){var gt=0,mt=xt.reduce(function(Nt,Tt){return gt++,Tt.indexOf(`
|
|
|
`)>=0&>++,Nt+Tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?ft[0]+(yt===""?"":yt+`
|
|
|
`)+" "+xt.join(`,
|
|
|
`)+" "+ft[1]:ft[0]+yt+" "+xt.join(", ")+" "+ft[1]}function pe(xt){return Array.isArray(xt)}De.isArray=pe;function be(xt){return typeof xt=="boolean"}De.isBoolean=be;function Ce(xt){return xt===null}De.isNull=Ce;function Fe(xt){return xt==null}De.isNullOrUndefined=Fe;function je(xt){return typeof xt=="number"}De.isNumber=je;function ke(xt){return typeof xt=="string"}De.isString=ke;function Ae(xt){return typeof xt=="symbol"}De.isSymbol=Ae;function Be(xt){return xt===void 0}De.isUndefined=Be;function _e(xt){return et(xt)&&ct(xt)==="[object RegExp]"}De.isRegExp=_e;function et(xt){return typeof xt=="object"&&xt!==null}De.isObject=et;function ze(xt){return et(xt)&&ct(xt)==="[object Date]"}De.isDate=ze;function Xe(xt){return et(xt)&&(ct(xt)==="[object Error]"||xt instanceof Error)}De.isError=Xe;function Qe(xt){return typeof xt=="function"}De.isFunction=Qe;function lt(xt){return xt===null||typeof xt=="boolean"||typeof xt=="number"||typeof xt=="string"||typeof xt=="symbol"||typeof xt=="undefined"}De.isPrimitive=lt,De.isBuffer=oe("./support/isBuffer");function ct(xt){return Object.prototype.toString.call(xt)}function vt(xt){return xt<10?"0"+xt.toString(10):xt.toString(10)}var nt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function it(){var xt=new Date,yt=[vt(xt.getHours()),vt(xt.getMinutes()),vt(xt.getSeconds())].join(":");return[xt.getDate(),nt[xt.getMonth()],yt].join(" ")}De.log=function(){console.log("%s - %s",it(),De.format.apply(De,arguments))},De.inherits=oe("inherits"),De._extend=function(xt,yt){if(!yt||!et(yt))return xt;for(var ft=Object.keys(yt),gt=ft.length;gt--;)xt[ft[gt]]=yt[ft[gt]];return xt};function pt(xt,yt){return Object.prototype.hasOwnProperty.call(xt,yt)}}).call(this)}).call(this,oe("_process"),typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(oe,Ge,De){(function(me){(function(){"use strict";var ce=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],we=typeof globalThis=="undefined"?me:globalThis;Ge.exports=function(){for(var Se=[],Oe=0;Oe<ce.length;Oe++)typeof we[ce[Oe]]=="function"&&(Se[Se.length]=ce[Oe]);return Se}}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(oe,Ge,De){"use strict";De.byteLength=xe,De.toByteArray=z,De.fromByteArray=re;for(var me=[],ce=[],we=typeof Uint8Array!="undefined"?Uint8Array:Array,Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=0,Oe=Le.length;Se<Oe;++Se)me[Se]=Le[Se],ce[Le.charCodeAt(Se)]=Se;ce[45]=62,ce[95]=63;function ve(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 be=pe===ue?0:4-pe%4;return[pe,be]}function xe(le){var ue=ve(le),pe=ue[0],be=ue[1];return(pe+be)*3/4-be}function fe(le,ue,pe){return(ue+pe)*3/4-pe}function z(le){var ue,pe=ve(le),be=pe[0],Ce=pe[1],Fe=new we(fe(le,be,Ce)),je=0,ke=Ce>0?be-4:be,Ae;for(Ae=0;Ae<ke;Ae+=4)ue=ce[le.charCodeAt(Ae)]<<18|ce[le.charCodeAt(Ae+1)]<<12|ce[le.charCodeAt(Ae+2)]<<6|ce[le.charCodeAt(Ae+3)],Fe[je++]=ue>>16&255,Fe[je++]=ue>>8&255,Fe[je++]=ue&255;return Ce===2&&(ue=ce[le.charCodeAt(Ae)]<<2|ce[le.charCodeAt(Ae+1)]>>4,Fe[je++]=ue&255),Ce===1&&(ue=ce[le.charCodeAt(Ae)]<<10|ce[le.charCodeAt(Ae+1)]<<4|ce[le.charCodeAt(Ae+2)]>>2,Fe[je++]=ue>>8&255,Fe[je++]=ue&255),Fe}function ee(le){return me[le>>18&63]+me[le>>12&63]+me[le>>6&63]+me[le&63]}function ae(le,ue,pe){for(var be,Ce=[],Fe=ue;Fe<pe;Fe+=3)be=(le[Fe]<<16&16711680)+(le[Fe+1]<<8&65280)+(le[Fe+2]&255),Ce.push(ee(be));return Ce.join("")}function re(le){for(var ue,pe=le.length,be=pe%3,Ce=[],Fe=16383,je=0,ke=pe-be;je<ke;je+=Fe)Ce.push(ae(le,je,je+Fe>ke?ke:je+Fe));return be===1?(ue=le[pe-1],Ce.push(me[ue>>2]+me[ue<<4&63]+"==")):be===2&&(ue=(le[pe-2]<<8)+le[pe-1],Ce.push(me[ue>>10]+me[ue>>4&63]+me[ue<<2&63]+"=")),Ce.join("")}},{}],88:[function(oe,Ge,De){(function(me,ce,we){typeof Ge!="undefined"&&Ge.exports?Ge.exports=we():typeof $e=="function"&&$e.amd?$e(ce,we):me[ce]=we()})(this,"bowser",function(){var me=!0;function ce(fe){function z(yt){var ft=fe.match(yt);return ft&&ft.length>1&&ft[1]||""}function ee(yt){var ft=fe.match(yt);return ft&&ft.length>1&&ft[2]||""}var ae=z(/(ipod|iphone|ipad)/i).toLowerCase(),re=/like android/i.test(fe),le=!re&&/android/i.test(fe),ue=/nexus\s*[0-6]\s*/i.test(fe),pe=!ue&&/nexus\s*[0-9]+/i.test(fe),be=/CrOS/.test(fe),Ce=/silk/i.test(fe),Fe=/sailfish/i.test(fe),je=/tizen/i.test(fe),ke=/(web|hpw)(o|0)s/i.test(fe),Ae=/windows phone/i.test(fe),Be=/SamsungBrowser/i.test(fe),_e=!Ae&&/windows/i.test(fe),et=!ae&&!Ce&&/macintosh/i.test(fe),ze=!le&&!Fe&&!je&&!ke&&/linux/i.test(fe),Xe=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Qe=z(/version\/(\d+(\.\d+)?)/i),lt=/tablet/i.test(fe)&&!/tablet pc/i.test(fe),ct=!lt&&/[^-]mobi/i.test(fe),vt=/xbox/i.test(fe),nt;/opera/i.test(fe)?nt={name:"Opera",opera:me,version:Qe||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(fe)?nt={name:"Opera",opera:me,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Qe}:/SamsungBrowser/i.test(fe)?nt={name:"Samsung Internet for Android",samsungBrowser:me,version:Qe||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(fe)?nt={name:"NAVER Whale browser",whale:me,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(fe)?nt={name:"MZ Browser",mzbrowser:me,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(fe)?nt={name:"Opera Coast",coast:me,version:Qe||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(fe)?nt={name:"Focus",focus:me,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(fe)?nt={name:"Yandex Browser",yandexbrowser:me,version:Qe||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(fe)?nt={name:"UC Browser",ucbrowser:me,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(fe)?nt={name:"Maxthon",maxthon:me,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(fe)?nt={name:"Epiphany",epiphany:me,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(fe)?nt={name:"Puffin",puffin:me,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(fe)?nt={name:"Sleipnir",sleipnir:me,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(fe)?nt={name:"K-Meleon",kMeleon:me,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ae?(nt={name:"Windows Phone",osname:"Windows Phone",windowsphone:me},Xe?(nt.msedge=me,nt.version=Xe):(nt.msie=me,nt.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(fe)?nt={name:"Internet Explorer",msie:me,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:be?nt={name:"Chrome",osname:"Chrome OS",chromeos:me,chromeBook:me,chrome:me,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(fe)?nt={name:"Microsoft Edge",msedge:me,version:Xe}:/vivaldi/i.test(fe)?nt={name:"Vivaldi",vivaldi:me,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||Qe}:Fe?nt={name:"Sailfish",osname:"Sailfish OS",sailfish:me,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(fe)?nt={name:"SeaMonkey",seamonkey:me,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(fe)?(nt={name:"Firefox",firefox:me,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(fe)&&(nt.firefoxos=me,nt.osname="Firefox OS")):Ce?nt={name:"Amazon Silk",silk:me,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(fe)?nt={name:"PhantomJS",phantom:me,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(fe)?nt={name:"SlimerJS",slimer:me,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(fe)||/rim\stablet/i.test(fe)?nt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:me,version:Qe||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:ke?(nt={name:"WebOS",osname:"WebOS",webos:me,version:Qe||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(fe)&&(nt.touchpad=me)):/bada/i.test(fe)?nt={name:"Bada",osname:"Bada",bada:me,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:je?nt={name:"Tizen",osname:"Tizen",tizen:me,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Qe}:/qupzilla/i.test(fe)?nt={name:"QupZilla",qupzilla:me,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Qe}:/chromium/i.test(fe)?nt={name:"Chromium",chromium:me,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Qe}:/chrome|crios|crmo/i.test(fe)?nt={name:"Chrome",chrome:me,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?nt={name:"Android",version:Qe}:/safari|applewebkit/i.test(fe)?(nt={name:"Safari",safari:me},Qe&&(nt.version=Qe)):ae?(nt={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},Qe&&(nt.version=Qe)):/googlebot/i.test(fe)?nt={name:"Googlebot",googlebot:me,version:z(/googlebot\/(\d+(\.\d+))/i)||Qe}:nt={name:z(/^(.*)\/(.*) /),version:ee(/^(.*)\/(.*) /)},!nt.msedge&&/(apple)?webkit/i.test(fe)?(/(apple)?webkit\/537\.36/i.test(fe)?(nt.name=nt.name||"Blink",nt.blink=me):(nt.name=nt.name||"Webkit",nt.webkit=me),!nt.version&&Qe&&(nt.version=Qe)):!nt.opera&&/gecko\//i.test(fe)&&(nt.name=nt.name||"Gecko",nt.gecko=me,nt.version=nt.version||z(/gecko\/(\d+(\.\d+)?)/i)),!nt.windowsphone&&(le||nt.silk)?(nt.android=me,nt.osname="Android"):!nt.windowsphone&&ae?(nt[ae]=me,nt.ios=me,nt.osname="iOS"):et?(nt.mac=me,nt.osname="macOS"):vt?(nt.xbox=me,nt.osname="Xbox"):_e?(nt.windows=me,nt.osname="Windows"):ze&&(nt.linux=me,nt.osname="Linux");function it(yt){switch(yt){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 pt="";nt.windows?pt=it(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):nt.windowsphone?pt=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):nt.mac?(pt=z(/Mac OS X (\d+([_\.\s]\d+)*)/i),pt=pt.replace(/[_\s]/g,".")):ae?(pt=z(/os (\d+([_\s]\d+)*) like mac os x/i),pt=pt.replace(/[_\s]/g,".")):le?pt=z(/android[ \/-](\d+(\.\d+)*)/i):nt.webos?pt=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):nt.blackberry?pt=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):nt.bada?pt=z(/bada\/(\d+(\.\d+)*)/i):nt.tizen&&(pt=z(/tizen[\/\s](\d+(\.\d+)*)/i)),pt&&(nt.osversion=pt);var xt=!nt.windows&&pt.split(".")[0];return lt||pe||ae=="ipad"||le&&(xt==3||xt>=4&&!ct)||nt.silk?nt.tablet=me:(ct||ae=="iphone"||ae=="ipod"||le||ue||nt.blackberry||nt.webos||nt.bada)&&(nt.mobile=me),nt.msedge||nt.msie&&nt.version>=10||nt.yandexbrowser&&nt.version>=15||nt.vivaldi&&nt.version>=1||nt.chrome&&nt.version>=20||nt.samsungBrowser&&nt.version>=4||nt.whale&&Oe([nt.version,"1.0"])===1||nt.mzbrowser&&Oe([nt.version,"6.0"])===1||nt.focus&&Oe([nt.version,"1.0"])===1||nt.firefox&&nt.version>=20||nt.safari&&nt.version>=6||nt.opera&&nt.version>=10||nt.ios&&nt.osversion&&nt.osversion.split(".")[0]>=6||nt.blackberry&&nt.version>=10.1||nt.chromium&&nt.version>=20?nt.a=me:nt.msie&&nt.version<10||nt.chrome&&nt.version<20||nt.firefox&&nt.version<20||nt.safari&&nt.version<6||nt.opera&&nt.version<10||nt.ios&&nt.osversion&&nt.osversion.split(".")[0]<6||nt.chromium&&nt.version<20?nt.c=me:nt.x=me,nt}var we=ce(typeof navigator!="undefined"&&navigator.userAgent||"");we.test=function(fe){for(var z=0;z<fe.length;++z){var ee=fe[z];if(typeof ee=="string"&&ee in we)return!0}return!1};function Le(fe){return fe.split(".").length}function Se(fe,z){var ee=[],ae;if(Array.prototype.map)return Array.prototype.map.call(fe,z);for(ae=0;ae<fe.length;ae++)ee.push(z(fe[ae]));return ee}function Oe(fe){for(var z=Math.max(Le(fe[0]),Le(fe[1])),ee=Se(fe,function(ae){var re=z-Le(ae);return ae=ae+new Array(re+1).join(".0"),Se(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 ve(fe,z,ee){var ae=we;typeof z=="string"&&(ee=z,z=void 0),z===void 0&&(z=!1),ee&&(ae=ce(ee));var re=""+ae.version;for(var le in fe)if(fe.hasOwnProperty(le)&&ae[le]){if(typeof fe[le]!="string")throw new Error("Browser version in the minVersion map should be a string: "+le+": "+String(fe));return Oe([re,fe[le]])<0}return z}function xe(fe,z,ee){return!ve(fe,z,ee)}return we.isUnsupportedBrowser=ve,we.compareVersions=Oe,we.check=xe,we._detect=ce,we.detect=ce,we})},{}],89:[function(oe,Ge,De){},{}],90:[function(oe,Ge,De){(function(me){(function(){"use strict";var ce=oe("base64-js"),we=oe("ieee754");De.Buffer=ve,De.SlowBuffer=be,De.INSPECT_MAX_BYTES=50;var Le=2147483647;De.kMaxLength=Le,ve.TYPED_ARRAY_SUPPORT=Se(),!ve.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 Se(){try{var He=new Uint8Array(1);return He.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},He.foo()===42}catch(We){return!1}}Object.defineProperty(ve.prototype,"parent",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.buffer}}),Object.defineProperty(ve.prototype,"offset",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.byteOffset}});function Oe(He){if(He>Le)throw new RangeError('The value "'+He+'" is invalid for option "size"');var We=new Uint8Array(He);return We.__proto__=ve.prototype,We}function ve(He,We,Ke){if(typeof He=="number"){if(typeof We=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(He)}return xe(He,We,Ke)}typeof Symbol!="undefined"&&Symbol.species!=null&&ve[Symbol.species]===ve&&Object.defineProperty(ve,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),ve.poolSize=8192;function xe(He,We,Ke){if(typeof He=="string")return ae(He,We);if(ArrayBuffer.isView(He))return re(He);if(He==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof He);if(Ze(He,ArrayBuffer)||He&&Ze(He.buffer,ArrayBuffer))return le(He,We,Ke);if(typeof He=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Je=He.valueOf&&He.valueOf();if(Je!=null&&Je!==He)return ve.from(Je,We,Ke);var dt=ue(He);if(dt)return dt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof He[Symbol.toPrimitive]=="function")return ve.from(He[Symbol.toPrimitive]("string"),We,Ke);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof He)}ve.from=function(He,We,Ke){return xe(He,We,Ke)},ve.prototype.__proto__=Uint8Array.prototype,ve.__proto__=Uint8Array;function fe(He){if(typeof He!="number")throw new TypeError('"size" argument must be of type number');if(He<0)throw new RangeError('The value "'+He+'" is invalid for option "size"')}function z(He,We,Ke){return fe(He),He<=0?Oe(He):We!==void 0?typeof Ke=="string"?Oe(He).fill(We,Ke):Oe(He).fill(We):Oe(He)}ve.alloc=function(He,We,Ke){return z(He,We,Ke)};function ee(He){return fe(He),Oe(He<0?0:pe(He)|0)}ve.allocUnsafe=function(He){return ee(He)},ve.allocUnsafeSlow=function(He){return ee(He)};function ae(He,We){if((typeof We!="string"||We==="")&&(We="utf8"),!ve.isEncoding(We))throw new TypeError("Unknown encoding: "+We);var Ke=Ce(He,We)|0,Je=Oe(Ke),dt=Je.write(He,We);return dt!==Ke&&(Je=Je.slice(0,dt)),Je}function re(He){for(var We=He.length<0?0:pe(He.length)|0,Ke=Oe(We),Je=0;Je<We;Je+=1)Ke[Je]=He[Je]&255;return Ke}function le(He,We,Ke){if(We<0||He.byteLength<We)throw new RangeError('"offset" is outside of buffer bounds');if(He.byteLength<We+(Ke||0))throw new RangeError('"length" is outside of buffer bounds');var Je;return We===void 0&&Ke===void 0?Je=new Uint8Array(He):Ke===void 0?Je=new Uint8Array(He,We):Je=new Uint8Array(He,We,Ke),Je.__proto__=ve.prototype,Je}function ue(He){if(ve.isBuffer(He)){var We=pe(He.length)|0,Ke=Oe(We);return Ke.length===0||He.copy(Ke,0,0,We),Ke}if(He.length!==void 0)return typeof He.length!="number"||Ee(He.length)?Oe(0):re(He);if(He.type==="Buffer"&&Array.isArray(He.data))return re(He.data)}function pe(He){if(He>=Le)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Le.toString(16)+" bytes");return He|0}function be(He){return+He!=He&&(He=0),ve.alloc(+He)}ve.isBuffer=function(We){return We!=null&&We._isBuffer===!0&&We!==ve.prototype},ve.compare=function(We,Ke){if(Ze(We,Uint8Array)&&(We=ve.from(We,We.offset,We.byteLength)),Ze(Ke,Uint8Array)&&(Ke=ve.from(Ke,Ke.offset,Ke.byteLength)),!ve.isBuffer(We)||!ve.isBuffer(Ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(We===Ke)return 0;for(var Je=We.length,dt=Ke.length,Ct=0,ht=Math.min(Je,dt);Ct<ht;++Ct)if(We[Ct]!==Ke[Ct]){Je=We[Ct],dt=Ke[Ct];break}return Je<dt?-1:dt<Je?1:0},ve.isEncoding=function(We){switch(String(We).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}},ve.concat=function(We,Ke){if(!Array.isArray(We))throw new TypeError('"list" argument must be an Array of Buffers');if(We.length===0)return ve.alloc(0);var Je;if(Ke===void 0)for(Ke=0,Je=0;Je<We.length;++Je)Ke+=We[Je].length;var dt=ve.allocUnsafe(Ke),Ct=0;for(Je=0;Je<We.length;++Je){var ht=We[Je];if(Ze(ht,Uint8Array)&&(ht=ve.from(ht)),!ve.isBuffer(ht))throw new TypeError('"list" argument must be an Array of Buffers');ht.copy(dt,Ct),Ct+=ht.length}return dt};function Ce(He,We){if(ve.isBuffer(He))return He.length;if(ArrayBuffer.isView(He)||Ze(He,ArrayBuffer))return He.byteLength;if(typeof He!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof He);var Ke=He.length,Je=arguments.length>2&&arguments[2]===!0;if(!Je&&Ke===0)return 0;for(var dt=!1;;)switch(We){case"ascii":case"latin1":case"binary":return Ke;case"utf8":case"utf-8":return at(He).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ke*2;case"hex":return Ke>>>1;case"base64":return Te(He).length;default:if(dt)return Je?-1:at(He).length;We=(""+We).toLowerCase(),dt=!0}}ve.byteLength=Ce;function Fe(He,We,Ke){var Je=!1;if((We===void 0||We<0)&&(We=0),We>this.length||((Ke===void 0||Ke>this.length)&&(Ke=this.length),Ke<=0)||(Ke>>>=0,We>>>=0,Ke<=We))return"";for(He||(He="utf8");;)switch(He){case"hex":return xt(this,We,Ke);case"utf8":case"utf-8":return ct(this,We,Ke);case"ascii":return it(this,We,Ke);case"latin1":case"binary":return pt(this,We,Ke);case"base64":return lt(this,We,Ke);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yt(this,We,Ke);default:if(Je)throw new TypeError("Unknown encoding: "+He);He=(He+"").toLowerCase(),Je=!0}}ve.prototype._isBuffer=!0;function je(He,We,Ke){var Je=He[We];He[We]=He[Ke],He[Ke]=Je}ve.prototype.swap16=function(){var We=this.length;if(We%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ke=0;Ke<We;Ke+=2)je(this,Ke,Ke+1);return this},ve.prototype.swap32=function(){var We=this.length;if(We%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ke=0;Ke<We;Ke+=4)je(this,Ke,Ke+3),je(this,Ke+1,Ke+2);return this},ve.prototype.swap64=function(){var We=this.length;if(We%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ke=0;Ke<We;Ke+=8)je(this,Ke,Ke+7),je(this,Ke+1,Ke+6),je(this,Ke+2,Ke+5),je(this,Ke+3,Ke+4);return this},ve.prototype.toString=function(){var We=this.length;return We===0?"":arguments.length===0?ct(this,0,We):Fe.apply(this,arguments)},ve.prototype.toLocaleString=ve.prototype.toString,ve.prototype.equals=function(We){if(!ve.isBuffer(We))throw new TypeError("Argument must be a Buffer");return this===We?!0:ve.compare(this,We)===0},ve.prototype.inspect=function(){var We="",Ke=De.INSPECT_MAX_BYTES;return We=this.toString("hex",0,Ke).replace(/(.{2})/g,"$1 ").trim(),this.length>Ke&&(We+=" ... "),"<Buffer "+We+">"},ve.prototype.compare=function(We,Ke,Je,dt,Ct){if(Ze(We,Uint8Array)&&(We=ve.from(We,We.offset,We.byteLength)),!ve.isBuffer(We))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof We);if(Ke===void 0&&(Ke=0),Je===void 0&&(Je=We?We.length:0),dt===void 0&&(dt=0),Ct===void 0&&(Ct=this.length),Ke<0||Je>We.length||dt<0||Ct>this.length)throw new RangeError("out of range index");if(dt>=Ct&&Ke>=Je)return 0;if(dt>=Ct)return-1;if(Ke>=Je)return 1;if(Ke>>>=0,Je>>>=0,dt>>>=0,Ct>>>=0,this===We)return 0;for(var ht=Ct-dt,Lt=Je-Ke,en=Math.min(ht,Lt),Vt=this.slice(dt,Ct),Kt=We.slice(Ke,Je),Ut=0;Ut<en;++Ut)if(Vt[Ut]!==Kt[Ut]){ht=Vt[Ut],Lt=Kt[Ut];break}return ht<Lt?-1:Lt<ht?1:0};function ke(He,We,Ke,Je,dt){if(He.length===0)return-1;if(typeof Ke=="string"?(Je=Ke,Ke=0):Ke>2147483647?Ke=2147483647:Ke<-2147483648&&(Ke=-2147483648),Ke=+Ke,Ee(Ke)&&(Ke=dt?0:He.length-1),Ke<0&&(Ke=He.length+Ke),Ke>=He.length){if(dt)return-1;Ke=He.length-1}else if(Ke<0)if(dt)Ke=0;else return-1;if(typeof We=="string"&&(We=ve.from(We,Je)),ve.isBuffer(We))return We.length===0?-1:Ae(He,We,Ke,Je,dt);if(typeof We=="number")return We=We&255,typeof Uint8Array.prototype.indexOf=="function"?dt?Uint8Array.prototype.indexOf.call(He,We,Ke):Uint8Array.prototype.lastIndexOf.call(He,We,Ke):Ae(He,[We],Ke,Je,dt);throw new TypeError("val must be string, number or Buffer")}function Ae(He,We,Ke,Je,dt){var Ct=1,ht=He.length,Lt=We.length;if(Je!==void 0&&(Je=String(Je).toLowerCase(),Je==="ucs2"||Je==="ucs-2"||Je==="utf16le"||Je==="utf-16le")){if(He.length<2||We.length<2)return-1;Ct=2,ht/=2,Lt/=2,Ke/=2}function en(Ft,Xt){return Ct===1?Ft[Xt]:Ft.readUInt16BE(Xt*Ct)}var Vt;if(dt){var Kt=-1;for(Vt=Ke;Vt<ht;Vt++)if(en(He,Vt)===en(We,Kt===-1?0:Vt-Kt)){if(Kt===-1&&(Kt=Vt),Vt-Kt+1===Lt)return Kt*Ct}else Kt!==-1&&(Vt-=Vt-Kt),Kt=-1}else for(Ke+Lt>ht&&(Ke=ht-Lt),Vt=Ke;Vt>=0;Vt--){for(var Ut=!0,rn=0;rn<Lt;rn++)if(en(He,Vt+rn)!==en(We,rn)){Ut=!1;break}if(Ut)return Vt}return-1}ve.prototype.includes=function(We,Ke,Je){return this.indexOf(We,Ke,Je)!==-1},ve.prototype.indexOf=function(We,Ke,Je){return ke(this,We,Ke,Je,!0)},ve.prototype.lastIndexOf=function(We,Ke,Je){return ke(this,We,Ke,Je,!1)};function Be(He,We,Ke,Je){Ke=Number(Ke)||0;var dt=He.length-Ke;Je?(Je=Number(Je),Je>dt&&(Je=dt)):Je=dt;var Ct=We.length;Je>Ct/2&&(Je=Ct/2);for(var ht=0;ht<Je;++ht){var Lt=parseInt(We.substr(ht*2,2),16);if(Ee(Lt))return ht;He[Ke+ht]=Lt}return ht}function _e(He,We,Ke,Je){return Ve(at(We,He.length-Ke),He,Ke,Je)}function et(He,We,Ke,Je){return Ve(Ye(We),He,Ke,Je)}function ze(He,We,Ke,Je){return et(He,We,Ke,Je)}function Xe(He,We,Ke,Je){return Ve(Te(We),He,Ke,Je)}function Qe(He,We,Ke,Je){return Ve(Pe(We,He.length-Ke),He,Ke,Je)}ve.prototype.write=function(We,Ke,Je,dt){if(Ke===void 0)dt="utf8",Je=this.length,Ke=0;else if(Je===void 0&&typeof Ke=="string")dt=Ke,Je=this.length,Ke=0;else if(isFinite(Ke))Ke=Ke>>>0,isFinite(Je)?(Je=Je>>>0,dt===void 0&&(dt="utf8")):(dt=Je,Je=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ct=this.length-Ke;if((Je===void 0||Je>Ct)&&(Je=Ct),We.length>0&&(Je<0||Ke<0)||Ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");dt||(dt="utf8");for(var ht=!1;;)switch(dt){case"hex":return Be(this,We,Ke,Je);case"utf8":case"utf-8":return _e(this,We,Ke,Je);case"ascii":return et(this,We,Ke,Je);case"latin1":case"binary":return ze(this,We,Ke,Je);case"base64":return Xe(this,We,Ke,Je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,We,Ke,Je);default:if(ht)throw new TypeError("Unknown encoding: "+dt);dt=(""+dt).toLowerCase(),ht=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function lt(He,We,Ke){return We===0&&Ke===He.length?ce.fromByteArray(He):ce.fromByteArray(He.slice(We,Ke))}function ct(He,We,Ke){Ke=Math.min(He.length,Ke);for(var Je=[],dt=We;dt<Ke;){var Ct=He[dt],ht=null,Lt=Ct>239?4:Ct>223?3:Ct>191?2:1;if(dt+Lt<=Ke){var en,Vt,Kt,Ut;switch(Lt){case 1:Ct<128&&(ht=Ct);break;case 2:en=He[dt+1],(en&192)===128&&(Ut=(Ct&31)<<6|en&63,Ut>127&&(ht=Ut));break;case 3:en=He[dt+1],Vt=He[dt+2],(en&192)===128&&(Vt&192)===128&&(Ut=(Ct&15)<<12|(en&63)<<6|Vt&63,Ut>2047&&(Ut<55296||Ut>57343)&&(ht=Ut));break;case 4:en=He[dt+1],Vt=He[dt+2],Kt=He[dt+3],(en&192)===128&&(Vt&192)===128&&(Kt&192)===128&&(Ut=(Ct&15)<<18|(en&63)<<12|(Vt&63)<<6|Kt&63,Ut>65535&&Ut<1114112&&(ht=Ut))}}ht===null?(ht=65533,Lt=1):ht>65535&&(ht-=65536,Je.push(ht>>>10&1023|55296),ht=56320|ht&1023),Je.push(ht),dt+=Lt}return nt(Je)}var vt=4096;function nt(He){var We=He.length;if(We<=vt)return String.fromCharCode.apply(String,He);for(var Ke="",Je=0;Je<We;)Ke+=String.fromCharCode.apply(String,He.slice(Je,Je+=vt));return Ke}function it(He,We,Ke){var Je="";Ke=Math.min(He.length,Ke);for(var dt=We;dt<Ke;++dt)Je+=String.fromCharCode(He[dt]&127);return Je}function pt(He,We,Ke){var Je="";Ke=Math.min(He.length,Ke);for(var dt=We;dt<Ke;++dt)Je+=String.fromCharCode(He[dt]);return Je}function xt(He,We,Ke){var Je=He.length;(!We||We<0)&&(We=0),(!Ke||Ke<0||Ke>Je)&&(Ke=Je);for(var dt="",Ct=We;Ct<Ke;++Ct)dt+=wt(He[Ct]);return dt}function yt(He,We,Ke){for(var Je=He.slice(We,Ke),dt="",Ct=0;Ct<Je.length;Ct+=2)dt+=String.fromCharCode(Je[Ct]+Je[Ct+1]*256);return dt}ve.prototype.slice=function(We,Ke){var Je=this.length;We=~~We,Ke=Ke===void 0?Je:~~Ke,We<0?(We+=Je,We<0&&(We=0)):We>Je&&(We=Je),Ke<0?(Ke+=Je,Ke<0&&(Ke=0)):Ke>Je&&(Ke=Je),Ke<We&&(Ke=We);var dt=this.subarray(We,Ke);return dt.__proto__=ve.prototype,dt};function ft(He,We,Ke){if(He%1!==0||He<0)throw new RangeError("offset is not uint");if(He+We>Ke)throw new RangeError("Trying to access beyond buffer length")}ve.prototype.readUIntLE=function(We,Ke,Je){We=We>>>0,Ke=Ke>>>0,Je||ft(We,Ke,this.length);for(var dt=this[We],Ct=1,ht=0;++ht<Ke&&(Ct*=256);)dt+=this[We+ht]*Ct;return dt},ve.prototype.readUIntBE=function(We,Ke,Je){We=We>>>0,Ke=Ke>>>0,Je||ft(We,Ke,this.length);for(var dt=this[We+--Ke],Ct=1;Ke>0&&(Ct*=256);)dt+=this[We+--Ke]*Ct;return dt},ve.prototype.readUInt8=function(We,Ke){return We=We>>>0,Ke||ft(We,1,this.length),this[We]},ve.prototype.readUInt16LE=function(We,Ke){return We=We>>>0,Ke||ft(We,2,this.length),this[We]|this[We+1]<<8},ve.prototype.readUInt16BE=function(We,Ke){return We=We>>>0,Ke||ft(We,2,this.length),this[We]<<8|this[We+1]},ve.prototype.readUInt32LE=function(We,Ke){return We=We>>>0,Ke||ft(We,4,this.length),(this[We]|this[We+1]<<8|this[We+2]<<16)+this[We+3]*16777216},ve.prototype.readUInt32BE=function(We,Ke){return We=We>>>0,Ke||ft(We,4,this.length),this[We]*16777216+(this[We+1]<<16|this[We+2]<<8|this[We+3])},ve.prototype.readIntLE=function(We,Ke,Je){We=We>>>0,Ke=Ke>>>0,Je||ft(We,Ke,this.length);for(var dt=this[We],Ct=1,ht=0;++ht<Ke&&(Ct*=256);)dt+=this[We+ht]*Ct;return Ct*=128,dt>=Ct&&(dt-=Math.pow(2,8*Ke)),dt},ve.prototype.readIntBE=function(We,Ke,Je){We=We>>>0,Ke=Ke>>>0,Je||ft(We,Ke,this.length);for(var dt=Ke,Ct=1,ht=this[We+--dt];dt>0&&(Ct*=256);)ht+=this[We+--dt]*Ct;return Ct*=128,ht>=Ct&&(ht-=Math.pow(2,8*Ke)),ht},ve.prototype.readInt8=function(We,Ke){return We=We>>>0,Ke||ft(We,1,this.length),this[We]&128?(255-this[We]+1)*-1:this[We]},ve.prototype.readInt16LE=function(We,Ke){We=We>>>0,Ke||ft(We,2,this.length);var Je=this[We]|this[We+1]<<8;return Je&32768?Je|4294901760:Je},ve.prototype.readInt16BE=function(We,Ke){We=We>>>0,Ke||ft(We,2,this.length);var Je=this[We+1]|this[We]<<8;return Je&32768?Je|4294901760:Je},ve.prototype.readInt32LE=function(We,Ke){return We=We>>>0,Ke||ft(We,4,this.length),this[We]|this[We+1]<<8|this[We+2]<<16|this[We+3]<<24},ve.prototype.readInt32BE=function(We,Ke){return We=We>>>0,Ke||ft(We,4,this.length),this[We]<<24|this[We+1]<<16|this[We+2]<<8|this[We+3]},ve.prototype.readFloatLE=function(We,Ke){return We=We>>>0,Ke||ft(We,4,this.length),we.read(this,We,!0,23,4)},ve.prototype.readFloatBE=function(We,Ke){return We=We>>>0,Ke||ft(We,4,this.length),we.read(this,We,!1,23,4)},ve.prototype.readDoubleLE=function(We,Ke){return We=We>>>0,Ke||ft(We,8,this.length),we.read(this,We,!0,52,8)},ve.prototype.readDoubleBE=function(We,Ke){return We=We>>>0,Ke||ft(We,8,this.length),we.read(this,We,!1,52,8)};function gt(He,We,Ke,Je,dt,Ct){if(!ve.isBuffer(He))throw new TypeError('"buffer" argument must be a Buffer instance');if(We>dt||We<Ct)throw new RangeError('"value" argument is out of bounds');if(Ke+Je>He.length)throw new RangeError("Index out of range")}ve.prototype.writeUIntLE=function(We,Ke,Je,dt){if(We=+We,Ke=Ke>>>0,Je=Je>>>0,!dt){var Ct=Math.pow(2,8*Je)-1;gt(this,We,Ke,Je,Ct,0)}var ht=1,Lt=0;for(this[Ke]=We&255;++Lt<Je&&(ht*=256);)this[Ke+Lt]=We/ht&255;return Ke+Je},ve.prototype.writeUIntBE=function(We,Ke,Je,dt){if(We=+We,Ke=Ke>>>0,Je=Je>>>0,!dt){var Ct=Math.pow(2,8*Je)-1;gt(this,We,Ke,Je,Ct,0)}var ht=Je-1,Lt=1;for(this[Ke+ht]=We&255;--ht>=0&&(Lt*=256);)this[Ke+ht]=We/Lt&255;return Ke+Je},ve.prototype.writeUInt8=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,1,255,0),this[Ke]=We&255,Ke+1},ve.prototype.writeUInt16LE=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,2,65535,0),this[Ke]=We&255,this[Ke+1]=We>>>8,Ke+2},ve.prototype.writeUInt16BE=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,2,65535,0),this[Ke]=We>>>8,this[Ke+1]=We&255,Ke+2},ve.prototype.writeUInt32LE=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,4,4294967295,0),this[Ke+3]=We>>>24,this[Ke+2]=We>>>16,this[Ke+1]=We>>>8,this[Ke]=We&255,Ke+4},ve.prototype.writeUInt32BE=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,4,4294967295,0),this[Ke]=We>>>24,this[Ke+1]=We>>>16,this[Ke+2]=We>>>8,this[Ke+3]=We&255,Ke+4},ve.prototype.writeIntLE=function(We,Ke,Je,dt){if(We=+We,Ke=Ke>>>0,!dt){var Ct=Math.pow(2,8*Je-1);gt(this,We,Ke,Je,Ct-1,-Ct)}var ht=0,Lt=1,en=0;for(this[Ke]=We&255;++ht<Je&&(Lt*=256);)We<0&&en===0&&this[Ke+ht-1]!==0&&(en=1),this[Ke+ht]=(We/Lt>>0)-en&255;return Ke+Je},ve.prototype.writeIntBE=function(We,Ke,Je,dt){if(We=+We,Ke=Ke>>>0,!dt){var Ct=Math.pow(2,8*Je-1);gt(this,We,Ke,Je,Ct-1,-Ct)}var ht=Je-1,Lt=1,en=0;for(this[Ke+ht]=We&255;--ht>=0&&(Lt*=256);)We<0&&en===0&&this[Ke+ht+1]!==0&&(en=1),this[Ke+ht]=(We/Lt>>0)-en&255;return Ke+Je},ve.prototype.writeInt8=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,1,127,-128),We<0&&(We=255+We+1),this[Ke]=We&255,Ke+1},ve.prototype.writeInt16LE=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,2,32767,-32768),this[Ke]=We&255,this[Ke+1]=We>>>8,Ke+2},ve.prototype.writeInt16BE=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,2,32767,-32768),this[Ke]=We>>>8,this[Ke+1]=We&255,Ke+2},ve.prototype.writeInt32LE=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,4,2147483647,-2147483648),this[Ke]=We&255,this[Ke+1]=We>>>8,this[Ke+2]=We>>>16,this[Ke+3]=We>>>24,Ke+4},ve.prototype.writeInt32BE=function(We,Ke,Je){return We=+We,Ke=Ke>>>0,Je||gt(this,We,Ke,4,2147483647,-2147483648),We<0&&(We=4294967295+We+1),this[Ke]=We>>>24,this[Ke+1]=We>>>16,this[Ke+2]=We>>>8,this[Ke+3]=We&255,Ke+4};function mt(He,We,Ke,Je,dt,Ct){if(Ke+Je>He.length)throw new RangeError("Index out of range");if(Ke<0)throw new RangeError("Index out of range")}function Nt(He,We,Ke,Je,dt){return We=+We,Ke=Ke>>>0,dt||mt(He,We,Ke,4,34028234663852886e22,-34028234663852886e22),we.write(He,We,Ke,Je,23,4),Ke+4}ve.prototype.writeFloatLE=function(We,Ke,Je){return Nt(this,We,Ke,!0,Je)},ve.prototype.writeFloatBE=function(We,Ke,Je){return Nt(this,We,Ke,!1,Je)};function Tt(He,We,Ke,Je,dt){return We=+We,Ke=Ke>>>0,dt||mt(He,We,Ke,8,17976931348623157e292,-17976931348623157e292),we.write(He,We,Ke,Je,52,8),Ke+8}ve.prototype.writeDoubleLE=function(We,Ke,Je){return Tt(this,We,Ke,!0,Je)},ve.prototype.writeDoubleBE=function(We,Ke,Je){return Tt(this,We,Ke,!1,Je)},ve.prototype.copy=function(We,Ke,Je,dt){if(!ve.isBuffer(We))throw new TypeError("argument should be a Buffer");if(Je||(Je=0),!dt&&dt!==0&&(dt=this.length),Ke>=We.length&&(Ke=We.length),Ke||(Ke=0),dt>0&&dt<Je&&(dt=Je),dt===Je||We.length===0||this.length===0)return 0;if(Ke<0)throw new RangeError("targetStart out of bounds");if(Je<0||Je>=this.length)throw new RangeError("Index out of range");if(dt<0)throw new RangeError("sourceEnd out of bounds");dt>this.length&&(dt=this.length),We.length-Ke<dt-Je&&(dt=We.length-Ke+Je);var Ct=dt-Je;if(this===We&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ke,Je,dt);else if(this===We&&Je<Ke&&Ke<dt)for(var ht=Ct-1;ht>=0;--ht)We[ht+Ke]=this[ht+Je];else Uint8Array.prototype.set.call(We,this.subarray(Je,dt),Ke);return Ct},ve.prototype.fill=function(We,Ke,Je,dt){if(typeof We=="string"){if(typeof Ke=="string"?(dt=Ke,Ke=0,Je=this.length):typeof Je=="string"&&(dt=Je,Je=this.length),dt!==void 0&&typeof dt!="string")throw new TypeError("encoding must be a string");if(typeof dt=="string"&&!ve.isEncoding(dt))throw new TypeError("Unknown encoding: "+dt);if(We.length===1){var Ct=We.charCodeAt(0);(dt==="utf8"&&Ct<128||dt==="latin1")&&(We=Ct)}}else typeof We=="number"&&(We=We&255);if(Ke<0||this.length<Ke||this.length<Je)throw new RangeError("Out of range index");if(Je<=Ke)return this;Ke=Ke>>>0,Je=Je===void 0?this.length:Je>>>0,We||(We=0);var ht;if(typeof We=="number")for(ht=Ke;ht<Je;++ht)this[ht]=We;else{var Lt=ve.isBuffer(We)?We:ve.from(We,dt),en=Lt.length;if(en===0)throw new TypeError('The value "'+We+'" is invalid for argument "value"');for(ht=0;ht<Je-Ke;++ht)this[ht+Ke]=Lt[ht%en]}return this};var zt=/[^+/0-9A-Za-z-_]/g;function St(He){if(He=He.split("=")[0],He=He.trim().replace(zt,""),He.length<2)return"";for(;He.length%4!==0;)He=He+"=";return He}function wt(He){return He<16?"0"+He.toString(16):He.toString(16)}function at(He,We){We=We||1/0;for(var Ke,Je=He.length,dt=null,Ct=[],ht=0;ht<Je;++ht){if(Ke=He.charCodeAt(ht),Ke>55295&&Ke<57344){if(!dt){if(Ke>56319){(We-=3)>-1&&Ct.push(239,191,189);continue}else if(ht+1===Je){(We-=3)>-1&&Ct.push(239,191,189);continue}dt=Ke;continue}if(Ke<56320){(We-=3)>-1&&Ct.push(239,191,189),dt=Ke;continue}Ke=(dt-55296<<10|Ke-56320)+65536}else dt&&(We-=3)>-1&&Ct.push(239,191,189);if(dt=null,Ke<128){if((We-=1)<0)break;Ct.push(Ke)}else if(Ke<2048){if((We-=2)<0)break;Ct.push(Ke>>6|192,Ke&63|128)}else if(Ke<65536){if((We-=3)<0)break;Ct.push(Ke>>12|224,Ke>>6&63|128,Ke&63|128)}else if(Ke<1114112){if((We-=4)<0)break;Ct.push(Ke>>18|240,Ke>>12&63|128,Ke>>6&63|128,Ke&63|128)}else throw new Error("Invalid code point")}return Ct}function Ye(He){for(var We=[],Ke=0;Ke<He.length;++Ke)We.push(He.charCodeAt(Ke)&255);return We}function Pe(He,We){for(var Ke,Je,dt,Ct=[],ht=0;ht<He.length&&!((We-=2)<0);++ht)Ke=He.charCodeAt(ht),Je=Ke>>8,dt=Ke%256,Ct.push(dt),Ct.push(Je);return Ct}function Te(He){return ce.toByteArray(St(He))}function Ve(He,We,Ke,Je){for(var dt=0;dt<Je&&!(dt+Ke>=We.length||dt>=He.length);++dt)We[dt+Ke]=He[dt];return dt}function Ze(He,We){return He instanceof We||He!=null&&He.constructor!=null&&He.constructor.name!=null&&He.constructor.name===We.name}function Ee(He){return He!==He}}).call(this)}).call(this,oe("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(oe,Ge,De){Ge.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,Ge,De){"use strict";var me=oe("get-intrinsic"),ce=oe("./"),we=ce(me("String.prototype.indexOf"));Ge.exports=function(Se,Oe){var ve=me(Se,!!Oe);return typeof ve=="function"&&we(Se,".prototype.")>-1?ce(ve):ve}},{"./":93,"get-intrinsic":348}],93:[function(oe,Ge,De){"use strict";var me=oe("function-bind"),ce=oe("get-intrinsic"),we=ce("%Function.prototype.apply%"),Le=ce("%Function.prototype.call%"),Se=ce("%Reflect.apply%",!0)||me.call(Le,we),Oe=ce("%Object.getOwnPropertyDescriptor%",!0),ve=ce("%Object.defineProperty%",!0),xe=ce("%Math.max%");if(ve)try{ve({},"a",{value:1})}catch(z){ve=null}Ge.exports=function(ee){var ae=Se(me,Le,arguments);if(Oe&&ve){var re=Oe(ae,"length");re.configurable&&ve(ae,"length",{value:1+xe(0,ee.length-(arguments.length-1))})}return ae};var fe=function(){return Se(me,we,arguments)};ve?ve(Ge.exports,"apply",{value:fe}):Ge.exports.apply=fe},{"function-bind":347,"get-intrinsic":348}],94:[function(oe,Ge,De){"use strict";var me=Array.prototype.slice;Ge.exports=ce;function ce(Le,Se){if(!(this instanceof ce))return new ce(Le,Se);this.src=Le,this._withAccess=Se}ce.prototype.withAccess=function(Le){return this._withAccess=Le!==!1,this},ce.prototype.pick=function(Le){return Array.isArray(Le)||(Le=me.call(arguments)),Le.length&&(this.keys=Le),this},ce.prototype.to=function(Le){if(Le=Le||{},!this.src)return Le;var Se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var Oe=0;Oe<Se.length;Oe++)ve=Se[Oe],Le[ve]===void 0&&(Le[ve]=this.src[ve]);return Le}for(var Oe=0;Oe<Se.length;Oe++){var ve=Se[Oe];if(we(Le,ve)){var xe=this.src.__lookupGetter__(ve),fe=this.src.__lookupSetter__(ve);xe&&Le.__defineGetter__(ve,xe),fe&&Le.__defineSetter__(ve,fe),!xe&&!fe&&(Le[ve]=this.src[ve])}}return Le},ce.prototype.toCover=function(Le){for(var Se=this.keys||Object.keys(this.src),Oe=0;Oe<Se.length;Oe++){var ve=Se[Oe];delete Le[ve];var xe=this.src.__lookupGetter__(ve),fe=this.src.__lookupSetter__(ve);xe&&Le.__defineGetter__(ve,xe),fe&&Le.__defineSetter__(ve,fe),!xe&&!fe&&(Le[ve]=this.src[ve])}},ce.prototype.override=ce.prototype.toCover,ce.prototype.and=function(Le){var Se={};return this.to(Se),this.src=Le,this.to(Se),this.src=Se,this};function we(Le,Se){return Le[Se]===void 0&&Le.__lookupGetter__(Se)===void 0&&Le.__lookupSetter__(Se)===void 0}},{}],95:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),we=oe("../internals/try-to-string"),Le=me.TypeError;Ge.exports=function(Se){if(ce(Se))return Se;throw Le(we(Se)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-constructor"),we=oe("../internals/try-to-string"),Le=me.TypeError;Ge.exports=function(Se){if(ce(Se))return Se;throw Le(we(Se)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),we=me.String,Le=me.TypeError;Ge.exports=function(Se){if(typeof Se=="object"||ce(Se))return Se;throw Le("Can't set "+we(Se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(oe,Ge,De){var me=oe("../internals/well-known-symbol"),ce=oe("../internals/object-create"),we=oe("../internals/object-define-property"),Le=me("unscopables"),Se=Array.prototype;Se[Le]==null&&we.f(Se,Le,{configurable:!0,value:ce(null)}),Ge.exports=function(Oe){Se[Le][Oe]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(oe,Ge,De){"use strict";var me=oe("../internals/string-multibyte").charAt;Ge.exports=function(ce,we,Le){return we+(Le?me(ce,we).length:1)}},{"../internals/string-multibyte":239}],100:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/object-is-prototype-of"),we=me.TypeError;Ge.exports=function(Le,Se){if(ce(Se,Le))return Le;throw we("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-object"),we=me.String,Le=me.TypeError;Ge.exports=function(Se){if(ce(Se))return Se;throw Le(we(Se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(oe,Ge,De){Ge.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-native"),ce=oe("../internals/descriptors"),we=oe("../internals/global"),Le=oe("../internals/is-callable"),Se=oe("../internals/is-object"),Oe=oe("../internals/has-own-property"),ve=oe("../internals/classof"),xe=oe("../internals/try-to-string"),fe=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"),be=we.Int8Array,Ce=be&&be.prototype,Fe=we.Uint8ClampedArray,je=Fe&&Fe.prototype,ke=be&&re(be),Ae=Ce&&re(Ce),Be=Object.prototype,_e=we.TypeError,et=ue("toStringTag"),ze=pe("TYPED_ARRAY_TAG"),Xe=pe("TYPED_ARRAY_CONSTRUCTOR"),Qe=me&&!!le&&ve(we.opera)!=="Opera",lt=!1,ct,vt,nt,it={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pt={BigInt64Array:8,BigUint64Array:8},xt=function(zt){if(!Se(zt))return!1;var St=ve(zt);return St==="DataView"||Oe(it,St)||Oe(pt,St)},yt=function(Tt){if(!Se(Tt))return!1;var zt=ve(Tt);return Oe(it,zt)||Oe(pt,zt)},ft=function(Tt){if(yt(Tt))return Tt;throw _e("Target is not a typed array")},gt=function(Tt){if(Le(Tt)&&(!le||ae(ke,Tt)))return Tt;throw _e(xe(Tt)+" is not a typed array constructor")},mt=function(Tt,zt,St,wt){if(ce){if(St)for(var at in it){var Ye=we[at];if(Ye&&Oe(Ye.prototype,Tt))try{delete Ye.prototype[Tt]}catch(Pe){try{Ye.prototype[Tt]=zt}catch(Te){}}}(!Ae[Tt]||St)&&z(Ae,Tt,St?zt:Qe&&Ce[Tt]||zt,wt)}},Nt=function(Tt,zt,St){var wt,at;if(ce){if(le){if(St){for(wt in it)if(at=we[wt],at&&Oe(at,Tt))try{delete at[Tt]}catch(Ye){}}if(!ke[Tt]||St)try{return z(ke,Tt,St?zt:Qe&&ke[Tt]||zt)}catch(Ye){}else return}for(wt in it)at=we[wt],at&&(!at[Tt]||St)&&z(at,Tt,zt)}};for(ct in it)vt=we[ct],nt=vt&&vt.prototype,nt?fe(nt,Xe,vt):Qe=!1;for(ct in pt)vt=we[ct],nt=vt&&vt.prototype,nt&&fe(nt,Xe,vt);if((!Qe||!Le(ke)||ke===Function.prototype)&&(ke=function(){throw _e("Incorrect invocation")},Qe))for(ct in it)we[ct]&&le(we[ct],ke);if((!Qe||!Ae||Ae===Be)&&(Ae=ke.prototype,Qe))for(ct in it)we[ct]&&le(we[ct].prototype,Ae);if(Qe&&re(je)!==Ae&&le(je,Ae),ce&&!Oe(Ae,et)){lt=!0,ee(Ae,et,{get:function(){return Se(this)?this[ze]:void 0}});for(ct in it)we[ct]&&fe(we[ct],ze,ct)}Ge.exports={NATIVE_ARRAY_BUFFER_VIEWS:Qe,TYPED_ARRAY_CONSTRUCTOR:Xe,TYPED_ARRAY_TAG:lt&&ze,aTypedArray:ft,aTypedArrayConstructor:gt,exportTypedArrayMethod:mt,exportTypedArrayStaticMethod:Nt,isView:xt,isTypedArray:yt,TypedArray:ke,TypedArrayPrototype:Ae}},{"../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,Ge,De){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/descriptors"),Le=oe("../internals/array-buffer-native"),Se=oe("../internals/function-name"),Oe=oe("../internals/create-non-enumerable-property"),ve=oe("../internals/redefine-all"),xe=oe("../internals/fails"),fe=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,be=oe("../internals/object-define-property").f,Ce=oe("../internals/array-fill"),Fe=oe("../internals/array-slice-simple"),je=oe("../internals/set-to-string-tag"),ke=oe("../internals/internal-state"),Ae=Se.PROPER,Be=Se.CONFIGURABLE,_e=ke.get,et=ke.set,ze="ArrayBuffer",Xe="DataView",Qe="prototype",lt="Wrong length",ct="Wrong index",vt=me[ze],nt=vt,it=nt&&nt[Qe],pt=me[Xe],xt=pt&&pt[Qe],yt=Object.prototype,ft=me.Array,gt=me.RangeError,mt=ce(Ce),Nt=ce([].reverse),Tt=re.pack,zt=re.unpack,St=function(ht){return[ht&255]},wt=function(ht){return[ht&255,ht>>8&255]},at=function(ht){return[ht&255,ht>>8&255,ht>>16&255,ht>>24&255]},Ye=function(ht){return ht[3]<<24|ht[2]<<16|ht[1]<<8|ht[0]},Pe=function(ht){return Tt(ht,23,4)},Te=function(ht){return Tt(ht,52,8)},Ve=function(ht,Lt){be(ht[Qe],Lt,{get:function(){return _e(this)[Lt]}})},Ze=function(ht,Lt,en,Vt){var Kt=ae(en),Ut=_e(ht);if(Kt+Lt>Ut.byteLength)throw gt(ct);var rn=_e(Ut.buffer).bytes,Ft=Kt+Ut.byteOffset,Xt=Fe(rn,Ft,Ft+Lt);return Vt?Xt:Nt(Xt)},Ee=function(ht,Lt,en,Vt,Kt,Ut){var rn=ae(en),Ft=_e(ht);if(rn+Lt>Ft.byteLength)throw gt(ct);for(var Xt=_e(Ft.buffer).bytes,tn=rn+Ft.byteOffset,dn=Vt(+Kt),En=0;En<Lt;En++)Xt[tn+En]=dn[Ut?En:Lt-En-1]};if(!Le)nt=function(Lt){fe(this,it);var en=ae(Lt);et(this,{bytes:mt(ft(en),0),byteLength:en}),we||(this.byteLength=en)},it=nt[Qe],pt=function(Lt,en,Vt){fe(this,xt),fe(Lt,it);var Kt=_e(Lt).byteLength,Ut=z(en);if(Ut<0||Ut>Kt)throw gt("Wrong offset");if(Vt=Vt===void 0?Kt-Ut:ee(Vt),Ut+Vt>Kt)throw gt(lt);et(this,{buffer:Lt,byteLength:Vt,byteOffset:Ut}),we||(this.buffer=Lt,this.byteLength=Vt,this.byteOffset=Ut)},xt=pt[Qe],we&&(Ve(nt,"byteLength"),Ve(pt,"buffer"),Ve(pt,"byteLength"),Ve(pt,"byteOffset")),ve(xt,{getInt8:function(Lt){return Ze(this,1,Lt)[0]<<24>>24},getUint8:function(Lt){return Ze(this,1,Lt)[0]},getInt16:function(Lt){var en=Ze(this,2,Lt,arguments.length>1?arguments[1]:void 0);return(en[1]<<8|en[0])<<16>>16},getUint16:function(Lt){var en=Ze(this,2,Lt,arguments.length>1?arguments[1]:void 0);return en[1]<<8|en[0]},getInt32:function(Lt){return Ye(Ze(this,4,Lt,arguments.length>1?arguments[1]:void 0))},getUint32:function(Lt){return Ye(Ze(this,4,Lt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Lt){return zt(Ze(this,4,Lt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Lt){return zt(Ze(this,8,Lt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Lt,en){Ee(this,1,Lt,St,en)},setUint8:function(Lt,en){Ee(this,1,Lt,St,en)},setInt16:function(Lt,en){Ee(this,2,Lt,wt,en,arguments.length>2?arguments[2]:void 0)},setUint16:function(Lt,en){Ee(this,2,Lt,wt,en,arguments.length>2?arguments[2]:void 0)},setInt32:function(Lt,en){Ee(this,4,Lt,at,en,arguments.length>2?arguments[2]:void 0)},setUint32:function(Lt,en){Ee(this,4,Lt,at,en,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Lt,en){Ee(this,4,Lt,Pe,en,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Lt,en){Ee(this,8,Lt,Te,en,arguments.length>2?arguments[2]:void 0)}});else{var He=Ae&&vt.name!==ze;if(!xe(function(){vt(1)})||!xe(function(){new vt(-1)})||xe(function(){return new vt,new vt(1.5),new vt(NaN),He&&!Be})){nt=function(Lt){return fe(this,it),new vt(ae(Lt))},nt[Qe]=it;for(var We=pe(vt),Ke=0,Je;We.length>Ke;)(Je=We[Ke++])in nt||Oe(nt,Je,vt[Je]);it.constructor=nt}else He&&Be&&Oe(vt,"name",ze);ue&&le(xt)!==yt&&ue(xt,yt);var dt=new pt(new nt(2)),Ct=ce(xt.setInt8);dt.setInt8(0,2147483648),dt.setInt8(1,2147483649),(dt.getInt8(0)||!dt.getInt8(1))&&ve(xt,{setInt8:function(Lt,en){Ct(this,Lt,en<<24>>24)},setUint8:function(Lt,en){Ct(this,Lt,en<<24>>24)}},{unsafe:!0})}je(nt,ze),je(pt,Xe),Ge.exports={ArrayBuffer:nt,DataView:pt}},{"../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,Ge,De){"use strict";var me=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),we=oe("../internals/length-of-array-like"),Le=Math.min;Ge.exports=[].copyWithin||function(Oe,ve){var xe=me(this),fe=we(xe),z=ce(Oe,fe),ee=ce(ve,fe),ae=arguments.length>2?arguments[2]:void 0,re=Le((ae===void 0?fe:ce(ae,fe))-ee,fe-z),le=1;for(ee<z&&z<ee+re&&(le=-1,ee+=re-1,z+=re-1);re-- >0;)ee in xe?xe[z]=xe[ee]:delete xe[z],z+=le,ee+=le;return xe}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(oe,Ge,De){"use strict";var me=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),we=oe("../internals/length-of-array-like");Ge.exports=function(Se){for(var Oe=me(this),ve=we(Oe),xe=arguments.length,fe=ce(xe>1?arguments[1]:void 0,ve),z=xe>2?arguments[2]:void 0,ee=z===void 0?ve:ce(z,ve);ee>fe;)Oe[fe++]=Se;return Oe}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-iteration").forEach,ce=oe("../internals/array-method-is-strict"),we=ce("forEach");Ge.exports=we?[].forEach:function(Se){return me(this,Se,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(oe,Ge,De){var me=oe("../internals/length-of-array-like");Ge.exports=function(ce,we){for(var Le=0,Se=me(we),Oe=new ce(Se);Se>Le;)Oe[Le]=we[Le++];return Oe}},{"../internals/length-of-array-like":188}],109:[function(oe,Ge,De){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-bind-context"),we=oe("../internals/function-call"),Le=oe("../internals/to-object"),Se=oe("../internals/call-with-safe-iteration-closing"),Oe=oe("../internals/is-array-iterator-method"),ve=oe("../internals/is-constructor"),xe=oe("../internals/length-of-array-like"),fe=oe("../internals/create-property"),z=oe("../internals/get-iterator"),ee=oe("../internals/get-iterator-method"),ae=me.Array;Ge.exports=function(le){var ue=Le(le),pe=ve(this),be=arguments.length,Ce=be>1?arguments[1]:void 0,Fe=Ce!==void 0;Fe&&(Ce=ce(Ce,be>2?arguments[2]:void 0));var je=ee(ue),ke=0,Ae,Be,_e,et,ze,Xe;if(je&&!(this==ae&&Oe(je)))for(et=z(ue,je),ze=et.next,Be=pe?new this:[];!(_e=we(ze,et)).done;ke++)Xe=Fe?Se(et,Ce,[_e.value,ke],!0):_e.value,fe(Be,ke,Xe);else for(Ae=xe(ue),Be=pe?new this(Ae):ae(Ae);Ae>ke;ke++)Xe=Fe?Ce(ue[ke],ke):ue[ke],fe(Be,ke,Xe);return Be.length=ke,Be}},{"../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,Ge,De){var me=oe("../internals/to-indexed-object"),ce=oe("../internals/to-absolute-index"),we=oe("../internals/length-of-array-like"),Le=function(Se){return function(Oe,ve,xe){var fe=me(Oe),z=we(fe),ee=ce(xe,z),ae;if(Se&&ve!=ve){for(;z>ee;)if(ae=fe[ee++],ae!=ae)return!0}else for(;z>ee;ee++)if((Se||ee in fe)&&fe[ee]===ve)return Se||ee||0;return!Se&&-1}};Ge.exports={includes:Le(!0),indexOf:Le(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(oe,Ge,De){var me=oe("../internals/function-bind-context"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/indexed-object"),Le=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Oe=oe("../internals/array-species-create"),ve=ce([].push),xe=function(fe){var z=fe==1,ee=fe==2,ae=fe==3,re=fe==4,le=fe==6,ue=fe==7,pe=fe==5||le;return function(be,Ce,Fe,je){for(var ke=Le(be),Ae=we(ke),Be=me(Ce,Fe),_e=Se(Ae),et=0,ze=je||Oe,Xe=z?ze(be,_e):ee||ue?ze(be,0):void 0,Qe,lt;_e>et;et++)if((pe||et in Ae)&&(Qe=Ae[et],lt=Be(Qe,et,ke),fe))if(z)Xe[et]=lt;else if(lt)switch(fe){case 3:return!0;case 5:return Qe;case 6:return et;case 2:ve(Xe,Qe)}else switch(fe){case 4:return!1;case 7:ve(Xe,Qe)}return le?-1:ae||re?re:Xe}};Ge.exports={forEach:xe(0),map:xe(1),filter:xe(2),some:xe(3),every:xe(4),find:xe(5),findIndex:xe(6),filterReject:xe(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,Ge,De){"use strict";var me=oe("../internals/function-apply"),ce=oe("../internals/to-indexed-object"),we=oe("../internals/to-integer-or-infinity"),Le=oe("../internals/length-of-array-like"),Se=oe("../internals/array-method-is-strict"),Oe=Math.min,ve=[].lastIndexOf,xe=!!ve&&1/[1].lastIndexOf(1,-0)<0,fe=Se("lastIndexOf"),z=xe||!fe;Ge.exports=z?function(ae){if(xe)return me(ve,this,arguments)||0;var re=ce(this),le=Le(re),ue=le-1;for(arguments.length>1&&(ue=Oe(ue,we(arguments[1]))),ue<0&&(ue=le+ue);ue>=0;ue--)if(ue in re&&re[ue]===ae)return ue||0;return-1}:ve},{"../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,Ge,De){var me=oe("../internals/fails"),ce=oe("../internals/well-known-symbol"),we=oe("../internals/engine-v8-version"),Le=ce("species");Ge.exports=function(Se){return we>=51||!me(function(){var Oe=[],ve=Oe.constructor={};return ve[Le]=function(){return{foo:1}},Oe[Se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(oe,Ge,De){"use strict";var me=oe("../internals/fails");Ge.exports=function(ce,we){var Le=[][ce];return!!Le&&me(function(){Le.call(null,we||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/a-callable"),we=oe("../internals/to-object"),Le=oe("../internals/indexed-object"),Se=oe("../internals/length-of-array-like"),Oe=me.TypeError,ve=function(xe){return function(fe,z,ee,ae){ce(z);var re=we(fe),le=Le(re),ue=Se(re),pe=xe?ue-1:0,be=xe?-1:1;if(ee<2)for(;;){if(pe in le){ae=le[pe],pe+=be;break}if(pe+=be,xe?pe<0:ue<=pe)throw Oe("Reduce of empty array with no initial value")}for(;xe?pe>=0:ue>pe;pe+=be)pe in le&&(ae=z(ae,le[pe],pe,re));return ae}};Ge.exports={left:ve(!1),right:ve(!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,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/to-absolute-index"),we=oe("../internals/length-of-array-like"),Le=oe("../internals/create-property"),Se=me.Array,Oe=Math.max;Ge.exports=function(ve,xe,fe){for(var z=we(ve),ee=ce(xe,z),ae=ce(fe===void 0?z:fe,z),re=Se(Oe(ae-ee,0)),le=0;ee<ae;ee++,le++)Le(re,le,ve[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,Ge,De){var me=oe("../internals/function-uncurry-this");Ge.exports=me([].slice)},{"../internals/function-uncurry-this":157}],118:[function(oe,Ge,De){var me=oe("../internals/array-slice-simple"),ce=Math.floor,we=function(Oe,ve){var xe=Oe.length,fe=ce(xe/2);return xe<8?Le(Oe,ve):Se(Oe,we(me(Oe,0,fe),ve),we(me(Oe,fe),ve),ve)},Le=function(Oe,ve){for(var xe=Oe.length,fe=1,z,ee;fe<xe;){for(ee=fe,z=Oe[fe];ee&&ve(Oe[ee-1],z)>0;)Oe[ee]=Oe[--ee];ee!==fe++&&(Oe[ee]=z)}return Oe},Se=function(Oe,ve,xe,fe){for(var z=ve.length,ee=xe.length,ae=0,re=0;ae<z||re<ee;)Oe[ae+re]=ae<z&&re<ee?fe(ve[ae],xe[re])<=0?ve[ae++]:xe[re++]:ae<z?ve[ae++]:xe[re++];return Oe};Ge.exports=we},{"../internals/array-slice-simple":116}],119:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-array"),we=oe("../internals/is-constructor"),Le=oe("../internals/is-object"),Se=oe("../internals/well-known-symbol"),Oe=Se("species"),ve=me.Array;Ge.exports=function(xe){var fe;return ce(xe)&&(fe=xe.constructor,we(fe)&&(fe===ve||ce(fe.prototype))?fe=void 0:Le(fe)&&(fe=fe[Oe],fe===null&&(fe=void 0))),fe===void 0?ve:fe}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(oe,Ge,De){var me=oe("../internals/array-species-constructor");Ge.exports=function(ce,we){return new(me(ce))(we===0?0:we)}},{"../internals/array-species-constructor":119}],121:[function(oe,Ge,De){var me=oe("../internals/an-object"),ce=oe("../internals/iterator-close");Ge.exports=function(we,Le,Se,Oe){try{return Oe?Le(me(Se)[0],Se[1]):Le(Se)}catch(ve){ce(we,"throw",ve)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(oe,Ge,De){var me=oe("../internals/well-known-symbol"),ce=me("iterator"),we=!1;try{var Le=0,Se={next:function(){return{done:!!Le++}},return:function(){we=!0}};Se[ce]=function(){return this},Array.from(Se,function(){throw 2})}catch(Oe){}Ge.exports=function(Oe,ve){if(!ve&&!we)return!1;var xe=!1;try{var fe={};fe[ce]=function(){return{next:function(){return{done:xe=!0}}}},Oe(fe)}catch(z){}return xe}},{"../internals/well-known-symbol":268}],123:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=me({}.toString),we=me("".slice);Ge.exports=function(Le){return we(ce(Le),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/to-string-tag-support"),we=oe("../internals/is-callable"),Le=oe("../internals/classof-raw"),Se=oe("../internals/well-known-symbol"),Oe=Se("toStringTag"),ve=me.Object,xe=Le(function(){return arguments}())=="Arguments",fe=function(z,ee){try{return z[ee]}catch(ae){}};Ge.exports=ce?Le:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=fe(ee=ve(z),Oe))=="string"?ae:xe?Le(ee):(re=Le(ee))=="Object"&&we(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,Ge,De){var me=oe("../internals/has-own-property"),ce=oe("../internals/own-keys"),we=oe("../internals/object-get-own-property-descriptor"),Le=oe("../internals/object-define-property");Ge.exports=function(Se,Oe,ve){for(var xe=ce(Oe),fe=Le.f,z=we.f,ee=0;ee<xe.length;ee++){var ae=xe[ee];!me(Se,ae)&&!(ve&&me(ve,ae))&&fe(Se,ae,z(Oe,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,Ge,De){var me=oe("../internals/well-known-symbol"),ce=me("match");Ge.exports=function(we){var Le=/./;try{"/./"[we](Le)}catch(Se){try{return Le[ce]=!1,"/./"[we](Le)}catch(Oe){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(oe,Ge,De){var me=oe("../internals/fails");Ge.exports=!me(function(){function ce(){}return ce.prototype.constructor=null,Object.getPrototypeOf(new ce)!==ce.prototype})},{"../internals/fails":150}],128:[function(oe,Ge,De){"use strict";var me=oe("../internals/iterators-core").IteratorPrototype,ce=oe("../internals/object-create"),we=oe("../internals/create-property-descriptor"),Le=oe("../internals/set-to-string-tag"),Se=oe("../internals/iterators"),Oe=function(){return this};Ge.exports=function(ve,xe,fe,z){var ee=xe+" Iterator";return ve.prototype=ce(me,{next:we(+!z,fe)}),Le(ve,ee,!1,!0),Se[ee]=Oe,ve}},{"../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,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/object-define-property"),we=oe("../internals/create-property-descriptor");Ge.exports=me?function(Le,Se,Oe){return ce.f(Le,Se,we(1,Oe))}:function(Le,Se,Oe){return Le[Se]=Oe,Le}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(oe,Ge,De){Ge.exports=function(me,ce){return{enumerable:!(me&1),configurable:!(me&2),writable:!(me&4),value:ce}}},{}],131:[function(oe,Ge,De){"use strict";var me=oe("../internals/to-property-key"),ce=oe("../internals/object-define-property"),we=oe("../internals/create-property-descriptor");Ge.exports=function(Le,Se,Oe){var ve=me(Se);ve in Le?ce.f(Le,ve,we(0,Oe)):Le[ve]=Oe}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-call"),we=oe("../internals/is-pure"),Le=oe("../internals/function-name"),Se=oe("../internals/is-callable"),Oe=oe("../internals/create-iterator-constructor"),ve=oe("../internals/object-get-prototype-of"),xe=oe("../internals/object-set-prototype-of"),fe=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=Le.PROPER,pe=Le.CONFIGURABLE,be=le.IteratorPrototype,Ce=le.BUGGY_SAFARI_ITERATORS,Fe=ae("iterator"),je="keys",ke="values",Ae="entries",Be=function(){return this};Ge.exports=function(_e,et,ze,Xe,Qe,lt,ct){Oe(ze,et,Xe);var vt=function(Tt){if(Tt===Qe&&yt)return yt;if(!Ce&&Tt in pt)return pt[Tt];switch(Tt){case je:return function(){return new ze(this,Tt)};case ke:return function(){return new ze(this,Tt)};case Ae:return function(){return new ze(this,Tt)}}return function(){return new ze(this)}},nt=et+" Iterator",it=!1,pt=_e.prototype,xt=pt[Fe]||pt["@@iterator"]||Qe&&pt[Qe],yt=!Ce&&xt||vt(Qe),ft=et=="Array"&&pt.entries||xt,gt,mt,Nt;if(ft&&(gt=ve(ft.call(new _e)),gt!==Object.prototype&>.next&&(!we&&ve(gt)!==be&&(xe?xe(gt,be):Se(gt[Fe])||ee(gt,Fe,Be)),fe(gt,nt,!0,!0),we&&(re[nt]=Be))),ue&&Qe==ke&&xt&&xt.name!==ke&&(!we&&pe?z(pt,"name",ke):(it=!0,yt=function(){return ce(xt,this)})),Qe)if(mt={values:vt(ke),keys:lt?yt:vt(je),entries:vt(Ae)},ct)for(Nt in mt)(Ce||it||!(Nt in pt))&&ee(pt,Nt,mt[Nt]);else me({target:et,proto:!0,forced:Ce||it},mt);return(!we||ct)&&pt[Fe]!==yt&&ee(pt,Fe,yt,{name:Qe}),re[et]=yt,mt}},{"../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,Ge,De){var me=oe("../internals/path"),ce=oe("../internals/has-own-property"),we=oe("../internals/well-known-symbol-wrapped"),Le=oe("../internals/object-define-property").f;Ge.exports=function(Se){var Oe=me.Symbol||(me.Symbol={});ce(Oe,Se)||Le(Oe,Se,{value:we.f(Se)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(oe,Ge,De){var me=oe("../internals/fails");Ge.exports=!me(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-object"),we=me.document,Le=ce(we)&&ce(we.createElement);Ge.exports=function(Se){return Le?we.createElement(Se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(oe,Ge,De){Ge.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,Ge,De){var me=oe("../internals/document-create-element"),ce=me("span").classList,we=ce&&ce.constructor&&ce.constructor.prototype;Ge.exports=we===Object.prototype?void 0:we},{"../internals/document-create-element":135}],138:[function(oe,Ge,De){var me=oe("../internals/engine-user-agent"),ce=me.match(/firefox\/(\d+)/i);Ge.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],139:[function(oe,Ge,De){Ge.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(oe,Ge,De){var me=oe("../internals/engine-user-agent");Ge.exports=/MSIE|Trident/.test(me)},{"../internals/engine-user-agent":145}],141:[function(oe,Ge,De){var me=oe("../internals/engine-user-agent"),ce=oe("../internals/global");Ge.exports=/ipad|iphone|ipod/i.test(me)&&ce.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(oe,Ge,De){var me=oe("../internals/engine-user-agent");Ge.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(me)},{"../internals/engine-user-agent":145}],143:[function(oe,Ge,De){var me=oe("../internals/classof-raw"),ce=oe("../internals/global");Ge.exports=me(ce.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(oe,Ge,De){var me=oe("../internals/engine-user-agent");Ge.exports=/web0s(?!.*chrome)/i.test(me)},{"../internals/engine-user-agent":145}],145:[function(oe,Ge,De){var me=oe("../internals/get-built-in");Ge.exports=me("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/engine-user-agent"),we=me.process,Le=me.Deno,Se=we&&we.versions||Le&&Le.version,Oe=Se&&Se.v8,ve,xe;Oe&&(ve=Oe.split("."),xe=ve[0]>0&&ve[0]<4?1:+(ve[0]+ve[1])),!xe&&ce&&(ve=ce.match(/Edge\/(\d+)/),(!ve||ve[1]>=74)&&(ve=ce.match(/Chrome\/(\d+)/),ve&&(xe=+ve[1]))),Ge.exports=xe},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(oe,Ge,De){var me=oe("../internals/engine-user-agent"),ce=me.match(/AppleWebKit\/(\d+)\./);Ge.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],148:[function(oe,Ge,De){Ge.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/object-get-own-property-descriptor").f,we=oe("../internals/create-non-enumerable-property"),Le=oe("../internals/redefine"),Se=oe("../internals/set-global"),Oe=oe("../internals/copy-constructor-properties"),ve=oe("../internals/is-forced");Ge.exports=function(xe,fe){var z=xe.target,ee=xe.global,ae=xe.stat,re,le,ue,pe,be,Ce;if(ee?le=me:ae?le=me[z]||Se(z,{}):le=(me[z]||{}).prototype,le)for(ue in fe){if(be=fe[ue],xe.noTargetGet?(Ce=ce(le,ue),pe=Ce&&Ce.value):pe=le[ue],re=ve(ee?ue:z+(ae?".":"#")+ue,xe.forced),!re&&pe!==void 0){if(typeof be==typeof pe)continue;Oe(be,pe)}(xe.sham||pe&&pe.sham)&&we(be,"sham",!0),Le(le,ue,be,xe)}}},{"../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,Ge,De){Ge.exports=function(me){try{return!!me()}catch(ce){return!0}}},{}],151:[function(oe,Ge,De){"use strict";oe("../modules/es.regexp.exec");var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/redefine"),we=oe("../internals/regexp-exec"),Le=oe("../internals/fails"),Se=oe("../internals/well-known-symbol"),Oe=oe("../internals/create-non-enumerable-property"),ve=Se("species"),xe=RegExp.prototype;Ge.exports=function(fe,z,ee,ae){var re=Se(fe),le=!Le(function(){var Ce={};return Ce[re]=function(){return 7},""[fe](Ce)!=7}),ue=le&&!Le(function(){var Ce=!1,Fe=/a/;return fe==="split"&&(Fe={},Fe.constructor={},Fe.constructor[ve]=function(){return Fe},Fe.flags="",Fe[re]=/./[re]),Fe.exec=function(){return Ce=!0,null},Fe[re](""),!Ce});if(!le||!ue||ee){var pe=me(/./[re]),be=z(re,""[fe],function(Ce,Fe,je,ke,Ae){var Be=me(Ce),_e=Fe.exec;return _e===we||_e===xe.exec?le&&!Ae?{done:!0,value:pe(Fe,je,ke)}:{done:!0,value:Be(je,Fe,ke)}:{done:!1}});ce(String.prototype,fe,be[0]),ce(xe,re,be[1])}ae&&Oe(xe[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,Ge,De){var me=oe("../internals/function-bind-native"),ce=Function.prototype,we=ce.apply,Le=ce.call;Ge.exports=typeof Reflect=="object"&&Reflect.apply||(me?Le.bind(we):function(){return Le.apply(we,arguments)})},{"../internals/function-bind-native":154}],153:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/a-callable"),we=oe("../internals/function-bind-native"),Le=me(me.bind);Ge.exports=function(Se,Oe){return ce(Se),Oe===void 0?Se:we?Le(Se,Oe):function(){return Se.apply(Oe,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(oe,Ge,De){var me=oe("../internals/fails");Ge.exports=!me(function(){var ce=function(){}.bind();return typeof ce!="function"||ce.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(oe,Ge,De){var me=oe("../internals/function-bind-native"),ce=Function.prototype.call;Ge.exports=me?ce.bind(ce):function(){return ce.apply(ce,arguments)}},{"../internals/function-bind-native":154}],156:[function(oe,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/has-own-property"),we=Function.prototype,Le=me&&Object.getOwnPropertyDescriptor,Se=ce(we,"name"),Oe=Se&&function(){}.name==="something",ve=Se&&(!me||me&&Le(we,"name").configurable);Ge.exports={EXISTS:Se,PROPER:Oe,CONFIGURABLE:ve}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(oe,Ge,De){var me=oe("../internals/function-bind-native"),ce=Function.prototype,we=ce.bind,Le=ce.call,Se=me&&we.bind(Le,Le);Ge.exports=me?function(Oe){return Oe&&Se(Oe)}:function(Oe){return Oe&&function(){return Le.apply(Oe,arguments)}}},{"../internals/function-bind-native":154}],158:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),we=function(Le){return ce(Le)?Le:void 0};Ge.exports=function(Le,Se){return arguments.length<2?we(me[Le]):me[Le]&&me[Le][Se]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(oe,Ge,De){var me=oe("../internals/classof"),ce=oe("../internals/get-method"),we=oe("../internals/iterators"),Le=oe("../internals/well-known-symbol"),Se=Le("iterator");Ge.exports=function(Oe){if(Oe!=null)return ce(Oe,Se)||ce(Oe,"@@iterator")||we[me(Oe)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/a-callable"),Le=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),Oe=oe("../internals/get-iterator-method"),ve=me.TypeError;Ge.exports=function(xe,fe){var z=arguments.length<2?Oe(xe):fe;if(we(z))return Le(ce(z,xe));throw ve(Se(xe)+" 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,Ge,De){var me=oe("../internals/a-callable");Ge.exports=function(ce,we){var Le=ce[we];return Le==null?void 0:me(Le)}},{"../internals/a-callable":95}],162:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),we=Math.floor,Le=me("".charAt),Se=me("".replace),Oe=me("".slice),ve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xe=/\$([$&'`]|\d{1,2})/g;Ge.exports=function(fe,z,ee,ae,re,le){var ue=ee+fe.length,pe=ae.length,be=xe;return re!==void 0&&(re=ce(re),be=ve),Se(le,be,function(Ce,Fe){var je;switch(Le(Fe,0)){case"$":return"$";case"&":return fe;case"`":return Oe(z,0,ee);case"'":return Oe(z,ue);case"<":je=re[Oe(Fe,1,-1)];break;default:var ke=+Fe;if(ke===0)return Ce;if(ke>pe){var Ae=we(ke/10);return Ae===0?Ce:Ae<=pe?ae[Ae-1]===void 0?Le(Fe,1):ae[Ae-1]+Le(Fe,1):Ce}je=ae[ke-1]}return je===void 0?"":je})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(oe,Ge,De){(function(me){(function(){var ce=function(we){return we&&we.Math==Math&&we};Ge.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof me=="object"&&me)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),we=me({}.hasOwnProperty);Ge.exports=Object.hasOwn||function(Se,Oe){return we(ce(Se),Oe)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(oe,Ge,De){Ge.exports={}},{}],166:[function(oe,Ge,De){var me=oe("../internals/global");Ge.exports=function(ce,we){var Le=me.console;Le&&Le.error&&(arguments.length==1?Le.error(ce):Le.error(ce,we))}},{"../internals/global":163}],167:[function(oe,Ge,De){var me=oe("../internals/get-built-in");Ge.exports=me("document","documentElement")},{"../internals/get-built-in":158}],168:[function(oe,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/fails"),we=oe("../internals/document-create-element");Ge.exports=!me&&!ce(function(){return Object.defineProperty(we("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(oe,Ge,De){var me=oe("../internals/global"),ce=me.Array,we=Math.abs,Le=Math.pow,Se=Math.floor,Oe=Math.log,ve=Math.LN2,xe=function(z,ee,ae){var re=ce(ae),le=ae*8-ee-1,ue=(1<<le)-1,pe=ue>>1,be=ee===23?Le(2,-24)-Le(2,-77):0,Ce=z<0||z===0&&1/z<0?1:0,Fe=0,je,ke,Ae;for(z=we(z),z!=z||z===1/0?(ke=z!=z?1:0,je=ue):(je=Se(Oe(z)/ve),Ae=Le(2,-je),z*Ae<1&&(je--,Ae*=2),je+pe>=1?z+=be/Ae:z+=be*Le(2,1-pe),z*Ae>=2&&(je++,Ae/=2),je+pe>=ue?(ke=0,je=ue):je+pe>=1?(ke=(z*Ae-1)*Le(2,ee),je=je+pe):(ke=z*Le(2,pe-1)*Le(2,ee),je=0));ee>=8;)re[Fe++]=ke&255,ke/=256,ee-=8;for(je=je<<ee|ke,le+=ee;le>0;)re[Fe++]=je&255,je/=256,le-=8;return re[--Fe]|=Ce*128,re},fe=function(z,ee){var ae=z.length,re=ae*8-ee-1,le=(1<<re)-1,ue=le>>1,pe=re-7,be=ae-1,Ce=z[be--],Fe=Ce&127,je;for(Ce>>=7;pe>0;)Fe=Fe*256+z[be--],pe-=8;for(je=Fe&(1<<-pe)-1,Fe>>=-pe,pe+=ee;pe>0;)je=je*256+z[be--],pe-=8;if(Fe===0)Fe=1-ue;else{if(Fe===le)return je?NaN:Ce?-1/0:1/0;je=je+Le(2,ee),Fe=Fe-ue}return(Ce?-1:1)*je*Le(2,Fe-ee)};Ge.exports={pack:xe,unpack:fe}},{"../internals/global":163}],170:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/fails"),Le=oe("../internals/classof-raw"),Se=me.Object,Oe=ce("".split);Ge.exports=we(function(){return!Se("z").propertyIsEnumerable(0)})?function(ve){return Le(ve)=="String"?Oe(ve,""):Se(ve)}:Se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(oe,Ge,De){var me=oe("../internals/is-callable"),ce=oe("../internals/is-object"),we=oe("../internals/object-set-prototype-of");Ge.exports=function(Le,Se,Oe){var ve,xe;return we&&me(ve=Se.constructor)&&ve!==Oe&&ce(xe=ve.prototype)&&xe!==Oe.prototype&&we(Le,xe),Le}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/is-callable"),we=oe("../internals/shared-store"),Le=me(Function.toString);ce(we.inspectSource)||(we.inspectSource=function(Se){return Le(Se)}),Ge.exports=we.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(oe,Ge,De){var me=oe("../internals/native-weak-map"),ce=oe("../internals/global"),we=oe("../internals/function-uncurry-this"),Le=oe("../internals/is-object"),Se=oe("../internals/create-non-enumerable-property"),Oe=oe("../internals/has-own-property"),ve=oe("../internals/shared-store"),xe=oe("../internals/shared-key"),fe=oe("../internals/hidden-keys"),z="Object already initialized",ee=ce.TypeError,ae=ce.WeakMap,re,le,ue,pe=function(Be){return ue(Be)?le(Be):re(Be,{})},be=function(Be){return function(_e){var et;if(!Le(_e)||(et=le(_e)).type!==Be)throw ee("Incompatible receiver, "+Be+" required");return et}};if(me||ve.state){var Ce=ve.state||(ve.state=new ae),Fe=we(Ce.get),je=we(Ce.has),ke=we(Ce.set);re=function(Be,_e){if(je(Ce,Be))throw new ee(z);return _e.facade=Be,ke(Ce,Be,_e),_e},le=function(Be){return Fe(Ce,Be)||{}},ue=function(Be){return je(Ce,Be)}}else{var Ae=xe("state");fe[Ae]=!0,re=function(Be,_e){if(Oe(Be,Ae))throw new ee(z);return _e.facade=Be,Se(Be,Ae,_e),_e},le=function(Be){return Oe(Be,Ae)?Be[Ae]:{}},ue=function(Be){return Oe(Be,Ae)}}Ge.exports={set:re,get:le,has:ue,enforce:pe,getterFor:be}},{"../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,Ge,De){var me=oe("../internals/well-known-symbol"),ce=oe("../internals/iterators"),we=me("iterator"),Le=Array.prototype;Ge.exports=function(Se){return Se!==void 0&&(ce.Array===Se||Le[we]===Se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(oe,Ge,De){var me=oe("../internals/classof-raw");Ge.exports=Array.isArray||function(we){return me(we)=="Array"}},{"../internals/classof-raw":123}],176:[function(oe,Ge,De){Ge.exports=function(me){return typeof me=="function"}},{}],177:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/fails"),we=oe("../internals/is-callable"),Le=oe("../internals/classof"),Se=oe("../internals/get-built-in"),Oe=oe("../internals/inspect-source"),ve=function(){},xe=[],fe=Se("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=me(z.exec),ae=!z.exec(ve),re=function(pe){if(!we(pe))return!1;try{return fe(ve,xe,pe),!0}catch(be){return!1}},le=function(pe){if(!we(pe))return!1;switch(Le(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,Oe(pe))}catch(be){return!0}};le.sham=!0,Ge.exports=!fe||ce(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,Ge,De){var me=oe("../internals/fails"),ce=oe("../internals/is-callable"),we=/#|\.prototype\./,Le=function(fe,z){var ee=Oe[Se(fe)];return ee==xe?!0:ee==ve?!1:ce(z)?me(z):!!z},Se=Le.normalize=function(fe){return String(fe).replace(we,".").toLowerCase()},Oe=Le.data={},ve=Le.NATIVE="N",xe=Le.POLYFILL="P";Ge.exports=Le},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(oe,Ge,De){var me=oe("../internals/is-object"),ce=Math.floor;Ge.exports=Number.isInteger||function(Le){return!me(Le)&&isFinite(Le)&&ce(Le)===Le}},{"../internals/is-object":180}],180:[function(oe,Ge,De){var me=oe("../internals/is-callable");Ge.exports=function(ce){return typeof ce=="object"?ce!==null:me(ce)}},{"../internals/is-callable":176}],181:[function(oe,Ge,De){Ge.exports=!1},{}],182:[function(oe,Ge,De){var me=oe("../internals/is-object"),ce=oe("../internals/classof-raw"),we=oe("../internals/well-known-symbol"),Le=we("match");Ge.exports=function(Se){var Oe;return me(Se)&&((Oe=Se[Le])!==void 0?!!Oe:ce(Se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/get-built-in"),we=oe("../internals/is-callable"),Le=oe("../internals/object-is-prototype-of"),Se=oe("../internals/use-symbol-as-uid"),Oe=me.Object;Ge.exports=Se?function(ve){return typeof ve=="symbol"}:function(ve){var xe=ce("Symbol");return we(xe)&&Le(xe.prototype,Oe(ve))}},{"../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,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/function-bind-context"),we=oe("../internals/function-call"),Le=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),Oe=oe("../internals/is-array-iterator-method"),ve=oe("../internals/length-of-array-like"),xe=oe("../internals/object-is-prototype-of"),fe=oe("../internals/get-iterator"),z=oe("../internals/get-iterator-method"),ee=oe("../internals/iterator-close"),ae=me.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;Ge.exports=function(ue,pe,be){var Ce=be&&be.that,Fe=!!(be&&be.AS_ENTRIES),je=!!(be&&be.IS_ITERATOR),ke=!!(be&&be.INTERRUPTED),Ae=ce(pe,Ce),Be,_e,et,ze,Xe,Qe,lt,ct=function(nt){return Be&&ee(Be,"normal",nt),new re(!0,nt)},vt=function(nt){return Fe?(Le(nt),ke?Ae(nt[0],nt[1],ct):Ae(nt[0],nt[1])):ke?Ae(nt,ct):Ae(nt)};if(je)Be=ue;else{if(_e=z(ue),!_e)throw ae(Se(ue)+" is not iterable");if(Oe(_e)){for(et=0,ze=ve(ue);ze>et;et++)if(Xe=vt(ue[et]),Xe&&xe(le,Xe))return Xe;return new re(!1)}Be=fe(ue,_e)}for(Qe=Be.next;!(lt=we(Qe,Be)).done;){try{Xe=vt(lt.value)}catch(nt){ee(Be,"throw",nt)}if(typeof Xe=="object"&&Xe&&xe(le,Xe))return Xe}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,Ge,De){var me=oe("../internals/function-call"),ce=oe("../internals/an-object"),we=oe("../internals/get-method");Ge.exports=function(Le,Se,Oe){var ve,xe;ce(Le);try{if(ve=we(Le,"return"),!ve){if(Se==="throw")throw Oe;return Oe}ve=me(ve,Le)}catch(fe){xe=!0,ve=fe}if(Se==="throw")throw Oe;if(xe)throw ve;return ce(ve),Oe}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(oe,Ge,De){"use strict";var me=oe("../internals/fails"),ce=oe("../internals/is-callable"),we=oe("../internals/object-create"),Le=oe("../internals/object-get-prototype-of"),Se=oe("../internals/redefine"),Oe=oe("../internals/well-known-symbol"),ve=oe("../internals/is-pure"),xe=Oe("iterator"),fe=!1,z,ee,ae;[].keys&&(ae=[].keys(),"next"in ae?(ee=Le(Le(ae)),ee!==Object.prototype&&(z=ee)):fe=!0);var re=z==null||me(function(){var le={};return z[xe].call(le)!==le});re?z={}:ve&&(z=we(z)),ce(z[xe])||Se(z,xe,function(){return this}),Ge.exports={IteratorPrototype:z,BUGGY_SAFARI_ITERATORS:fe}},{"../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,Ge,De){arguments[4][165][0].apply(De,arguments)},{dup:165}],188:[function(oe,Ge,De){var me=oe("../internals/to-length");Ge.exports=function(ce){return me(ce.length)}},{"../internals/to-length":249}],189:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/function-bind-context"),we=oe("../internals/object-get-own-property-descriptor").f,Le=oe("../internals/task").set,Se=oe("../internals/engine-is-ios"),Oe=oe("../internals/engine-is-ios-pebble"),ve=oe("../internals/engine-is-webos-webkit"),xe=oe("../internals/engine-is-node"),fe=me.MutationObserver||me.WebKitMutationObserver,z=me.document,ee=me.process,ae=me.Promise,re=we(me,"queueMicrotask"),le=re&&re.value,ue,pe,be,Ce,Fe,je,ke,Ae;le||(ue=function(){var Be,_e;for(xe&&(Be=ee.domain)&&Be.exit();pe;){_e=pe.fn,pe=pe.next;try{_e()}catch(et){throw pe?Ce():be=void 0,et}}be=void 0,Be&&Be.enter()},!Se&&!xe&&!ve&&fe&&z?(Fe=!0,je=z.createTextNode(""),new fe(ue).observe(je,{characterData:!0}),Ce=function(){je.data=Fe=!Fe}):!Oe&&ae&&ae.resolve?(ke=ae.resolve(void 0),ke.constructor=ae,Ae=ce(ke.then,ke),Ce=function(){Ae(ue)}):xe?Ce=function(){ee.nextTick(ue)}:(Le=ce(Le,me),Ce=function(){Le(ue)})),Ge.exports=le||function(Be){var _e={fn:Be,next:void 0};be&&(be.next=_e),pe||(pe=_e,Ce()),be=_e}},{"../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,Ge,De){var me=oe("../internals/native-symbol");Ge.exports=me&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(oe,Ge,De){var me=oe("../internals/engine-v8-version"),ce=oe("../internals/fails");Ge.exports=!!Object.getOwnPropertySymbols&&!ce(function(){var we=Symbol();return!String(we)||!(Object(we)instanceof Symbol)||!Symbol.sham&&me&&me<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),we=oe("../internals/inspect-source"),Le=me.WeakMap;Ge.exports=ce(Le)&&/native code/.test(we(Le))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(oe,Ge,De){"use strict";var me=oe("../internals/a-callable"),ce=function(we){var Le,Se;this.promise=new we(function(Oe,ve){if(Le!==void 0||Se!==void 0)throw TypeError("Bad Promise constructor");Le=Oe,Se=ve}),this.resolve=me(Le),this.reject=me(Se)};Ge.exports.f=function(we){return new ce(we)}},{"../internals/a-callable":95}],194:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-regexp"),we=me.TypeError;Ge.exports=function(Le){if(ce(Le))throw we("The method doesn't accept regular expressions");return Le}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(oe,Ge,De){"use strict";var me=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/function-call"),Le=oe("../internals/fails"),Se=oe("../internals/object-keys"),Oe=oe("../internals/object-get-own-property-symbols"),ve=oe("../internals/object-property-is-enumerable"),xe=oe("../internals/to-object"),fe=oe("../internals/indexed-object"),z=Object.assign,ee=Object.defineProperty,ae=ce([].concat);Ge.exports=!z||Le(function(){if(me&&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(be){le[be]=be}),z({},re)[ue]!=7||Se(z({},le)).join("")!=pe})?function(le,ue){for(var pe=xe(le),be=arguments.length,Ce=1,Fe=Oe.f,je=ve.f;be>Ce;)for(var ke=fe(arguments[Ce++]),Ae=Fe?ae(Se(ke),Fe(ke)):Se(ke),Be=Ae.length,_e=0,et;Be>_e;)et=Ae[_e++],(!me||we(je,ke,et))&&(pe[et]=ke[et]);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,Ge,De){var me=oe("../internals/an-object"),ce=oe("../internals/object-define-properties"),we=oe("../internals/enum-bug-keys"),Le=oe("../internals/hidden-keys"),Se=oe("../internals/html"),Oe=oe("../internals/document-create-element"),ve=oe("../internals/shared-key"),xe=">",fe="<",z="prototype",ee="script",ae=ve("IE_PROTO"),re=function(){},le=function(Fe){return fe+ee+xe+Fe+fe+"/"+ee+xe},ue=function(Fe){Fe.write(le("")),Fe.close();var je=Fe.parentWindow.Object;return Fe=null,je},pe=function(){var Fe=Oe("iframe"),je="java"+ee+":",ke;return Fe.style.display="none",Se.appendChild(Fe),Fe.src=String(je),ke=Fe.contentWindow.document,ke.open(),ke.write(le("document.F=Object")),ke.close(),ke.F},be,Ce=function(){try{be=new ActiveXObject("htmlfile")}catch(je){}Ce=typeof document!="undefined"?document.domain&&be?ue(be):pe():ue(be);for(var Fe=we.length;Fe--;)delete Ce[z][we[Fe]];return Ce()};Le[ae]=!0,Ge.exports=Object.create||function(je,ke){var Ae;return je!==null?(re[z]=me(je),Ae=new re,re[z]=null,Ae[ae]=je):Ae=Ce(),ke===void 0?Ae:ce.f(Ae,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,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/v8-prototype-define-bug"),we=oe("../internals/object-define-property"),Le=oe("../internals/an-object"),Se=oe("../internals/to-indexed-object"),Oe=oe("../internals/object-keys");De.f=me&&!ce?Object.defineProperties:function(xe,fe){Le(xe);for(var z=Se(fe),ee=Oe(fe),ae=ee.length,re=0,le;ae>re;)we.f(xe,le=ee[re++],z[le]);return xe}},{"../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,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/descriptors"),we=oe("../internals/ie8-dom-define"),Le=oe("../internals/v8-prototype-define-bug"),Se=oe("../internals/an-object"),Oe=oe("../internals/to-property-key"),ve=me.TypeError,xe=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";De.f=ce?Le?function(le,ue,pe){if(Se(le),ue=Oe(ue),Se(pe),typeof le=="function"&&ue==="prototype"&&"value"in pe&&ae in pe&&!pe[ae]){var be=fe(le,ue);be&&be[ae]&&(le[ue]=pe.value,pe={configurable:ee in pe?pe[ee]:be[ee],enumerable:z in pe?pe[z]:be[z],writable:!1})}return xe(le,ue,pe)}:xe:function(le,ue,pe){if(Se(le),ue=Oe(ue),Se(pe),we)try{return xe(le,ue,pe)}catch(be){}if("get"in pe||"set"in pe)throw ve("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,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/function-call"),we=oe("../internals/object-property-is-enumerable"),Le=oe("../internals/create-property-descriptor"),Se=oe("../internals/to-indexed-object"),Oe=oe("../internals/to-property-key"),ve=oe("../internals/has-own-property"),xe=oe("../internals/ie8-dom-define"),fe=Object.getOwnPropertyDescriptor;De.f=me?fe:function(ee,ae){if(ee=Se(ee),ae=Oe(ae),xe)try{return fe(ee,ae)}catch(re){}if(ve(ee,ae))return Le(!ce(we.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,Ge,De){var me=oe("../internals/classof-raw"),ce=oe("../internals/to-indexed-object"),we=oe("../internals/object-get-own-property-names").f,Le=oe("../internals/array-slice-simple"),Se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oe=function(ve){try{return we(ve)}catch(xe){return Le(Se)}};Ge.exports.f=function(xe){return Se&&me(xe)=="Window"?Oe(xe):we(ce(xe))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(oe,Ge,De){var me=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys"),we=ce.concat("length","prototype");De.f=Object.getOwnPropertyNames||function(Se){return me(Se,we)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(oe,Ge,De){De.f=Object.getOwnPropertySymbols},{}],203:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/has-own-property"),we=oe("../internals/is-callable"),Le=oe("../internals/to-object"),Se=oe("../internals/shared-key"),Oe=oe("../internals/correct-prototype-getter"),ve=Se("IE_PROTO"),xe=me.Object,fe=xe.prototype;Ge.exports=Oe?xe.getPrototypeOf:function(z){var ee=Le(z);if(ce(ee,ve))return ee[ve];var ae=ee.constructor;return we(ae)&&ee instanceof ae?ae.prototype:ee instanceof xe?fe: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,Ge,De){var me=oe("../internals/function-uncurry-this");Ge.exports=me({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/has-own-property"),we=oe("../internals/to-indexed-object"),Le=oe("../internals/array-includes").indexOf,Se=oe("../internals/hidden-keys"),Oe=me([].push);Ge.exports=function(ve,xe){var fe=we(ve),z=0,ee=[],ae;for(ae in fe)!ce(Se,ae)&&ce(fe,ae)&&Oe(ee,ae);for(;xe.length>z;)ce(fe,ae=xe[z++])&&(~Le(ee,ae)||Oe(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,Ge,De){var me=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys");Ge.exports=Object.keys||function(Le){return me(Le,ce)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(oe,Ge,De){"use strict";var me={}.propertyIsEnumerable,ce=Object.getOwnPropertyDescriptor,we=ce&&!me.call({1:2},1);De.f=we?function(Se){var Oe=ce(this,Se);return!!Oe&&Oe.enumerable}:me},{}],208:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/an-object"),we=oe("../internals/a-possible-prototype");Ge.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Le=!1,Se={},Oe;try{Oe=me(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),Oe(Se,[]),Le=Se instanceof Array}catch(ve){}return function(xe,fe){return ce(xe),we(fe),Le?Oe(xe,fe):xe.__proto__=fe,xe}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(oe,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/object-keys"),Le=oe("../internals/to-indexed-object"),Se=oe("../internals/object-property-is-enumerable").f,Oe=ce(Se),ve=ce([].push),xe=function(fe){return function(z){for(var ee=Le(z),ae=we(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!me||Oe(ee,pe))&&ve(ue,fe?[pe,ee[pe]]:ee[pe]);return ue}};Ge.exports={entries:xe(!0),values:xe(!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,Ge,De){"use strict";var me=oe("../internals/to-string-tag-support"),ce=oe("../internals/classof");Ge.exports=me?{}.toString:function(){return"[object "+ce(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/is-callable"),Le=oe("../internals/is-object"),Se=me.TypeError;Ge.exports=function(Oe,ve){var xe,fe;if(ve==="string"&&we(xe=Oe.toString)&&!Le(fe=ce(xe,Oe))||we(xe=Oe.valueOf)&&!Le(fe=ce(xe,Oe))||ve!=="string"&&we(xe=Oe.toString)&&!Le(fe=ce(xe,Oe)))return fe;throw Se("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,Ge,De){var me=oe("../internals/get-built-in"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/object-get-own-property-names"),Le=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/an-object"),Oe=ce([].concat);Ge.exports=me("Reflect","ownKeys")||function(xe){var fe=we.f(Se(xe)),z=Le.f;return z?Oe(fe,z(xe)):fe}},{"../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,Ge,De){var me=oe("../internals/global");Ge.exports=me},{"../internals/global":163}],214:[function(oe,Ge,De){Ge.exports=function(me){try{return{error:!1,value:me()}}catch(ce){return{error:!0,value:ce}}}},{}],215:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/promise-native-constructor"),we=oe("../internals/is-callable"),Le=oe("../internals/is-forced"),Se=oe("../internals/inspect-source"),Oe=oe("../internals/well-known-symbol"),ve=oe("../internals/engine-is-browser"),xe=oe("../internals/is-pure"),fe=oe("../internals/engine-v8-version"),z=ce&&ce.prototype,ee=Oe("species"),ae=!1,re=we(me.PromiseRejectionEvent),le=Le("Promise",function(){var ue=Se(ce),pe=ue!==String(ce);if(!pe&&fe===66||xe&&!(z.catch&&z.finally))return!0;if(fe>=51&&/native code/.test(ue))return!1;var be=new ce(function(je){je(1)}),Ce=function(je){je(function(){},function(){})},Fe=be.constructor={};return Fe[ee]=Ce,ae=be.then(function(){})instanceof Ce,ae?!pe&&ve&&!re:!0});Ge.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,Ge,De){var me=oe("../internals/global");Ge.exports=me.Promise},{"../internals/global":163}],217:[function(oe,Ge,De){var me=oe("../internals/an-object"),ce=oe("../internals/is-object"),we=oe("../internals/new-promise-capability");Ge.exports=function(Le,Se){if(me(Le),ce(Se)&&Se.constructor===Le)return Se;var Oe=we.f(Le),ve=Oe.resolve;return ve(Se),Oe.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(oe,Ge,De){var me=oe("../internals/promise-native-constructor"),ce=oe("../internals/check-correctness-of-iteration"),we=oe("../internals/promise-constructor-detection").CONSTRUCTOR;Ge.exports=we||!ce(function(Le){me.all(Le).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(oe,Ge,De){var me=oe("../internals/object-define-property").f;Ge.exports=function(ce,we,Le){Le in ce||me(ce,Le,{configurable:!0,get:function(){return we[Le]},set:function(Se){we[Le]=Se}})}},{"../internals/object-define-property":198}],220:[function(oe,Ge,De){var me=function(){this.head=null,this.tail=null};me.prototype={add:function(ce){var we={item:ce,next:null};this.head?this.tail.next=we:this.head=we,this.tail=we},get:function(){var ce=this.head;if(ce)return this.head=ce.next,this.tail===ce&&(this.tail=null),ce.item}},Ge.exports=me},{}],221:[function(oe,Ge,De){var me=oe("../internals/redefine");Ge.exports=function(ce,we,Le){for(var Se in we)me(ce,Se,we[Se],Le);return ce}},{"../internals/redefine":222}],222:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),we=oe("../internals/has-own-property"),Le=oe("../internals/create-non-enumerable-property"),Se=oe("../internals/set-global"),Oe=oe("../internals/inspect-source"),ve=oe("../internals/internal-state"),xe=oe("../internals/function-name").CONFIGURABLE,fe=ve.get,z=ve.enforce,ee=String(String).split("String");(Ge.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,be=ue?!!ue.enumerable:!1,Ce=ue?!!ue.noTargetGet:!1,Fe=ue&&ue.name!==void 0?ue.name:re,je;if(ce(le)&&(String(Fe).slice(0,7)==="Symbol("&&(Fe="["+String(Fe).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!we(le,"name")||xe&&le.name!==Fe)&&Le(le,"name",Fe),je=z(le),je.source||(je.source=ee.join(typeof Fe=="string"?Fe:""))),ae===me){be?ae[re]=le:Se(re,le);return}else pe?!Ce&&ae[re]&&(be=!0):delete ae[re];be?ae[re]=le:Le(ae,re,le)})(Function.prototype,"toString",function(){return ce(this)&&fe(this).source||Oe(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,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/an-object"),Le=oe("../internals/is-callable"),Se=oe("../internals/classof-raw"),Oe=oe("../internals/regexp-exec"),ve=me.TypeError;Ge.exports=function(xe,fe){var z=xe.exec;if(Le(z)){var ee=ce(z,xe,fe);return ee!==null&&we(ee),ee}if(Se(xe)==="RegExp")return ce(Oe,xe,fe);throw ve("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,Ge,De){"use strict";var me=oe("../internals/function-call"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/to-string"),Le=oe("../internals/regexp-flags"),Se=oe("../internals/regexp-sticky-helpers"),Oe=oe("../internals/shared"),ve=oe("../internals/object-create"),xe=oe("../internals/internal-state").get,fe=oe("../internals/regexp-unsupported-dot-all"),z=oe("../internals/regexp-unsupported-ncg"),ee=Oe("native-string-replace",String.prototype.replace),ae=RegExp.prototype.exec,re=ae,le=ce("".charAt),ue=ce("".indexOf),pe=ce("".replace),be=ce("".slice),Ce=function(){var Ae=/a/,Be=/b*/g;return me(ae,Ae,"a"),me(ae,Be,"a"),Ae.lastIndex!==0||Be.lastIndex!==0}(),Fe=Se.BROKEN_CARET,je=/()??/.exec("")[1]!==void 0,ke=Ce||je||Fe||fe||z;ke&&(re=function(Be){var _e=this,et=xe(_e),ze=we(Be),Xe=et.raw,Qe,lt,ct,vt,nt,it,pt;if(Xe)return Xe.lastIndex=_e.lastIndex,Qe=me(re,Xe,ze),_e.lastIndex=Xe.lastIndex,Qe;var xt=et.groups,yt=Fe&&_e.sticky,ft=me(Le,_e),gt=_e.source,mt=0,Nt=ze;if(yt&&(ft=pe(ft,"y",""),ue(ft,"g")===-1&&(ft+="g"),Nt=be(ze,_e.lastIndex),_e.lastIndex>0&&(!_e.multiline||_e.multiline&&le(ze,_e.lastIndex-1)!==`
|
|
|
`)&&(gt="(?: "+gt+")",Nt=" "+Nt,mt++),lt=new RegExp("^(?:"+gt+")",ft)),je&&(lt=new RegExp("^"+gt+"$(?!\\s)",ft)),Ce&&(ct=_e.lastIndex),vt=me(ae,yt?lt:_e,Nt),yt?vt?(vt.input=be(vt.input,mt),vt[0]=be(vt[0],mt),vt.index=_e.lastIndex,_e.lastIndex+=vt[0].length):_e.lastIndex=0:Ce&&vt&&(_e.lastIndex=_e.global?vt.index+vt[0].length:ct),je&&vt&&vt.length>1&&me(ee,vt[0],lt,function(){for(nt=1;nt<arguments.length-2;nt++)arguments[nt]===void 0&&(vt[nt]=void 0)}),vt&&xt)for(vt.groups=it=ve(null),nt=0;nt<xt.length;nt++)pt=xt[nt],it[pt[0]]=vt[pt[1]];return vt}),Ge.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,Ge,De){"use strict";var me=oe("../internals/an-object");Ge.exports=function(){var ce=me(this),we="";return ce.hasIndices&&(we+="d"),ce.global&&(we+="g"),ce.ignoreCase&&(we+="i"),ce.multiline&&(we+="m"),ce.dotAll&&(we+="s"),ce.unicode&&(we+="u"),ce.sticky&&(we+="y"),we}},{"../internals/an-object":101}],226:[function(oe,Ge,De){var me=oe("../internals/function-call"),ce=oe("../internals/has-own-property"),we=oe("../internals/object-is-prototype-of"),Le=oe("../internals/regexp-flags"),Se=RegExp.prototype;Ge.exports=function(Oe){var ve=Oe.flags;return ve===void 0&&!("flags"in Se)&&!ce(Oe,"flags")&&we(Se,Oe)?me(Le,Oe):ve}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(oe,Ge,De){var me=oe("../internals/fails"),ce=oe("../internals/global"),we=ce.RegExp,Le=me(function(){var ve=we("a","y");return ve.lastIndex=2,ve.exec("abcd")!=null}),Se=Le||me(function(){return!we("a","y").sticky}),Oe=Le||me(function(){var ve=we("^r","gy");return ve.lastIndex=2,ve.exec("str")!=null});Ge.exports={BROKEN_CARET:Oe,MISSED_STICKY:Se,UNSUPPORTED_Y:Le}},{"../internals/fails":150,"../internals/global":163}],228:[function(oe,Ge,De){var me=oe("../internals/fails"),ce=oe("../internals/global"),we=ce.RegExp;Ge.exports=me(function(){var Le=we(".","s");return!(Le.dotAll&&Le.exec(`
|
|
|
`)&&Le.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(oe,Ge,De){var me=oe("../internals/fails"),ce=oe("../internals/global"),we=ce.RegExp;Ge.exports=me(function(){var Le=we("(?<a>b)","g");return Le.exec("b").groups.a!=="b"||"b".replace(Le,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(oe,Ge,De){var me=oe("../internals/global"),ce=me.TypeError;Ge.exports=function(we){if(we==null)throw ce("Can't call method on "+we);return we}},{"../internals/global":163}],231:[function(oe,Ge,De){Ge.exports=Object.is||function(ce,we){return ce===we?ce!==0||1/ce===1/we:ce!=ce&&we!=we}},{}],232:[function(oe,Ge,De){var me=oe("../internals/global"),ce=Object.defineProperty;Ge.exports=function(we,Le){try{ce(me,we,{value:Le,configurable:!0,writable:!0})}catch(Se){me[we]=Le}return Le}},{"../internals/global":163}],233:[function(oe,Ge,De){"use strict";var me=oe("../internals/get-built-in"),ce=oe("../internals/object-define-property"),we=oe("../internals/well-known-symbol"),Le=oe("../internals/descriptors"),Se=we("species");Ge.exports=function(Oe){var ve=me(Oe),xe=ce.f;Le&&ve&&!ve[Se]&&xe(ve,Se,{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,Ge,De){var me=oe("../internals/object-define-property").f,ce=oe("../internals/has-own-property"),we=oe("../internals/well-known-symbol"),Le=we("toStringTag");Ge.exports=function(Se,Oe,ve){Se&&!ve&&(Se=Se.prototype),Se&&!ce(Se,Le)&&me(Se,Le,{configurable:!0,value:Oe})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(oe,Ge,De){var me=oe("../internals/shared"),ce=oe("../internals/uid"),we=me("keys");Ge.exports=function(Le){return we[Le]||(we[Le]=ce(Le))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/set-global"),we="__core-js_shared__",Le=me[we]||ce(we,{});Ge.exports=Le},{"../internals/global":163,"../internals/set-global":232}],237:[function(oe,Ge,De){var me=oe("../internals/is-pure"),ce=oe("../internals/shared-store");(Ge.exports=function(we,Le){return ce[we]||(ce[we]=Le!==void 0?Le:{})})("versions",[]).push({version:"3.22.1",mode:me?"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,Ge,De){var me=oe("../internals/an-object"),ce=oe("../internals/a-constructor"),we=oe("../internals/well-known-symbol"),Le=we("species");Ge.exports=function(Se,Oe){var ve=me(Se).constructor,xe;return ve===void 0||(xe=me(ve)[Le])==null?Oe:ce(xe)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-integer-or-infinity"),we=oe("../internals/to-string"),Le=oe("../internals/require-object-coercible"),Se=me("".charAt),Oe=me("".charCodeAt),ve=me("".slice),xe=function(fe){return function(z,ee){var ae=we(Le(z)),re=ce(ee),le=ae.length,ue,pe;return re<0||re>=le?fe?"":void 0:(ue=Oe(ae,re),ue<55296||ue>56319||re+1===le||(pe=Oe(ae,re+1))<56320||pe>57343?fe?Se(ae,re):ue:fe?ve(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};Ge.exports={codeAt:xe(!1),charAt:xe(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(oe,Ge,De){var me=oe("../internals/function-name").PROPER,ce=oe("../internals/fails"),we=oe("../internals/whitespaces"),Le="\u200B\x85\u180E";Ge.exports=function(Se){return ce(function(){return!!we[Se]()||Le[Se]()!==Le||me&&we[Se].name!==Se})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/require-object-coercible"),we=oe("../internals/to-string"),Le=oe("../internals/whitespaces"),Se=me("".replace),Oe="["+Le+"]",ve=RegExp("^"+Oe+Oe+"*"),xe=RegExp(Oe+Oe+"*$"),fe=function(z){return function(ee){var ae=we(ce(ee));return z&1&&(ae=Se(ae,ve,"")),z&2&&(ae=Se(ae,xe,"")),ae}};Ge.exports={start:fe(1),end:fe(2),trim:fe(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(oe,Ge,De){var me=oe("../internals/function-call"),ce=oe("../internals/get-built-in"),we=oe("../internals/well-known-symbol"),Le=oe("../internals/redefine");Ge.exports=function(){var Se=ce("Symbol"),Oe=Se&&Se.prototype,ve=Oe&&Oe.valueOf,xe=we("toPrimitive");Oe&&!Oe[xe]&&Le(Oe,xe,function(fe){return me(ve,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/function-apply"),we=oe("../internals/function-bind-context"),Le=oe("../internals/is-callable"),Se=oe("../internals/has-own-property"),Oe=oe("../internals/fails"),ve=oe("../internals/html"),xe=oe("../internals/array-slice"),fe=oe("../internals/document-create-element"),z=oe("../internals/validate-arguments-length"),ee=oe("../internals/engine-is-ios"),ae=oe("../internals/engine-is-node"),re=me.setImmediate,le=me.clearImmediate,ue=me.process,pe=me.Dispatch,be=me.Function,Ce=me.MessageChannel,Fe=me.String,je=0,ke={},Ae="onreadystatechange",Be,_e,et,ze;try{Be=me.location}catch(vt){}var Xe=function(vt){if(Se(ke,vt)){var nt=ke[vt];delete ke[vt],nt()}},Qe=function(vt){return function(){Xe(vt)}},lt=function(vt){Xe(vt.data)},ct=function(vt){me.postMessage(Fe(vt),Be.protocol+"//"+Be.host)};(!re||!le)&&(re=function(nt){z(arguments.length,1);var it=Le(nt)?nt:be(nt),pt=xe(arguments,1);return ke[++je]=function(){ce(it,void 0,pt)},_e(je),je},le=function(nt){delete ke[nt]},ae?_e=function(vt){ue.nextTick(Qe(vt))}:pe&&pe.now?_e=function(vt){pe.now(Qe(vt))}:Ce&&!ee?(et=new Ce,ze=et.port2,et.port1.onmessage=lt,_e=we(ze.postMessage,ze)):me.addEventListener&&Le(me.postMessage)&&!me.importScripts&&Be&&Be.protocol!=="file:"&&!Oe(ct)?(_e=ct,me.addEventListener("message",lt,!1)):Ae in fe("script")?_e=function(vt){ve.appendChild(fe("script"))[Ae]=function(){ve.removeChild(this),Xe(vt)}}:_e=function(vt){setTimeout(Qe(vt),0)}),Ge.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,Ge,De){var me=oe("../internals/function-uncurry-this");Ge.exports=me(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(oe,Ge,De){var me=oe("../internals/to-integer-or-infinity"),ce=Math.max,we=Math.min;Ge.exports=function(Le,Se){var Oe=me(Le);return Oe<0?ce(Oe+Se,0):we(Oe,Se)}},{"../internals/to-integer-or-infinity":248}],246:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),we=oe("../internals/to-length"),Le=me.RangeError;Ge.exports=function(Se){if(Se===void 0)return 0;var Oe=ce(Se),ve=we(Oe);if(Oe!==ve)throw Le("Wrong length or index");return ve}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(oe,Ge,De){var me=oe("../internals/indexed-object"),ce=oe("../internals/require-object-coercible");Ge.exports=function(we){return me(ce(we))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(oe,Ge,De){var me=Math.ceil,ce=Math.floor;Ge.exports=function(we){var Le=+we;return Le!==Le||Le===0?0:(Le>0?ce:me)(Le)}},{}],249:[function(oe,Ge,De){var me=oe("../internals/to-integer-or-infinity"),ce=Math.min;Ge.exports=function(we){return we>0?ce(me(we),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/require-object-coercible"),we=me.Object;Ge.exports=function(Le){return we(ce(Le))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/to-positive-integer"),we=me.RangeError;Ge.exports=function(Le,Se){var Oe=ce(Le);if(Oe%Se)throw we("Wrong offset");return Oe}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),we=me.RangeError;Ge.exports=function(Le){var Se=ce(Le);if(Se<0)throw we("The argument can't be less than 0");return Se}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/is-object"),Le=oe("../internals/is-symbol"),Se=oe("../internals/get-method"),Oe=oe("../internals/ordinary-to-primitive"),ve=oe("../internals/well-known-symbol"),xe=me.TypeError,fe=ve("toPrimitive");Ge.exports=function(z,ee){if(!we(z)||Le(z))return z;var ae=Se(z,fe),re;if(ae){if(ee===void 0&&(ee="default"),re=ce(ae,z,ee),!we(re)||Le(re))return re;throw xe("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),Oe(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,Ge,De){var me=oe("../internals/to-primitive"),ce=oe("../internals/is-symbol");Ge.exports=function(we){var Le=me(we,"string");return ce(Le)?Le:Le+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(oe,Ge,De){var me=oe("../internals/well-known-symbol"),ce=me("toStringTag"),we={};we[ce]="z",Ge.exports=String(we)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/classof"),we=me.String;Ge.exports=function(Le){if(ce(Le)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return we(Le)}},{"../internals/classof":124,"../internals/global":163}],257:[function(oe,Ge,De){var me=oe("../internals/global"),ce=me.String;Ge.exports=function(we){try{return ce(we)}catch(Le){return"Object"}}},{"../internals/global":163}],258:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/function-call"),Le=oe("../internals/descriptors"),Se=oe("../internals/typed-array-constructors-require-wrappers"),Oe=oe("../internals/array-buffer-view-core"),ve=oe("../internals/array-buffer"),xe=oe("../internals/an-instance"),fe=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"),be=oe("../internals/classof"),Ce=oe("../internals/is-object"),Fe=oe("../internals/is-symbol"),je=oe("../internals/object-create"),ke=oe("../internals/object-is-prototype-of"),Ae=oe("../internals/object-set-prototype-of"),Be=oe("../internals/object-get-own-property-names").f,_e=oe("../internals/typed-array-from"),et=oe("../internals/array-iteration").forEach,ze=oe("../internals/set-species"),Xe=oe("../internals/object-define-property"),Qe=oe("../internals/object-get-own-property-descriptor"),lt=oe("../internals/internal-state"),ct=oe("../internals/inherit-if-required"),vt=lt.get,nt=lt.set,it=Xe.f,pt=Qe.f,xt=Math.round,yt=ce.RangeError,ft=ve.ArrayBuffer,gt=ft.prototype,mt=ve.DataView,Nt=Oe.NATIVE_ARRAY_BUFFER_VIEWS,Tt=Oe.TYPED_ARRAY_CONSTRUCTOR,zt=Oe.TYPED_ARRAY_TAG,St=Oe.TypedArray,wt=Oe.TypedArrayPrototype,at=Oe.aTypedArrayConstructor,Ye=Oe.isTypedArray,Pe="BYTES_PER_ELEMENT",Te="Wrong length",Ve=function(Je,dt){at(Je);for(var Ct=0,ht=dt.length,Lt=new Je(ht);ht>Ct;)Lt[Ct]=dt[Ct++];return Lt},Ze=function(Je,dt){it(Je,dt,{get:function(){return vt(this)[dt]}})},Ee=function(Je){var dt;return ke(gt,Je)||(dt=be(Je))=="ArrayBuffer"||dt=="SharedArrayBuffer"},He=function(Je,dt){return Ye(Je)&&!Fe(dt)&&dt in Je&&ee(+dt)&&dt>=0},We=function(dt,Ct){return Ct=ue(Ct),He(dt,Ct)?fe(2,dt[Ct]):pt(dt,Ct)},Ke=function(dt,Ct,ht){return Ct=ue(Ct),He(dt,Ct)&&Ce(ht)&&pe(ht,"value")&&!pe(ht,"get")&&!pe(ht,"set")&&!ht.configurable&&(!pe(ht,"writable")||ht.writable)&&(!pe(ht,"enumerable")||ht.enumerable)?(dt[Ct]=ht.value,dt):it(dt,Ct,ht)};Le?(Nt||(Qe.f=We,Xe.f=Ke,Ze(wt,"buffer"),Ze(wt,"byteOffset"),Ze(wt,"byteLength"),Ze(wt,"length")),me({target:"Object",stat:!0,forced:!Nt},{getOwnPropertyDescriptor:We,defineProperty:Ke}),Ge.exports=function(Je,dt,Ct){var ht=Je.match(/\d+$/)[0]/8,Lt=Je+(Ct?"Clamped":"")+"Array",en="get"+Je,Vt="set"+Je,Kt=ce[Lt],Ut=Kt,rn=Ut&&Ut.prototype,Ft={},Xt=function(En,An){var ar=vt(En);return ar.view[en](An*ht+ar.byteOffset,!0)},tn=function(En,An,ar){var tr=vt(En);Ct&&(ar=(ar=xt(ar))<0?0:ar>255?255:ar&255),tr.view[Vt](An*ht+tr.byteOffset,ar,!0)},dn=function(En,An){it(En,An,{get:function(){return Xt(this,An)},set:function(ar){return tn(this,An,ar)},enumerable:!0})};Nt?Se&&(Ut=dt(function(En,An,ar,tr){return xe(En,rn),ct(function(){return Ce(An)?Ee(An)?tr!==void 0?new Kt(An,le(ar,ht),tr):ar!==void 0?new Kt(An,le(ar,ht)):new Kt(An):Ye(An)?Ve(Ut,An):we(_e,Ut,An):new Kt(re(An))}(),En,Ut)}),Ae&&Ae(Ut,St),et(Be(Kt),function(En){En in Ut||z(Ut,En,Kt[En])}),Ut.prototype=rn):(Ut=dt(function(En,An,ar,tr){xe(En,rn);var Tr=0,Vn=0,Or,Dr,Jr;if(!Ce(An))Jr=re(An),Dr=Jr*ht,Or=new ft(Dr);else if(Ee(An)){Or=An,Vn=le(ar,ht);var ni=An.byteLength;if(tr===void 0){if(ni%ht||(Dr=ni-Vn,Dr<0))throw yt(Te)}else if(Dr=ae(tr)*ht,Dr+Vn>ni)throw yt(Te);Jr=Dr/ht}else return Ye(An)?Ve(Ut,An):we(_e,Ut,An);for(nt(En,{buffer:Or,byteOffset:Vn,byteLength:Dr,length:Jr,view:new mt(Or)});Tr<Jr;)dn(En,Tr++)}),Ae&&Ae(Ut,St),rn=Ut.prototype=je(wt)),rn.constructor!==Ut&&z(rn,"constructor",Ut),z(rn,Tt,Ut),zt&&z(rn,zt,Lt),Ft[Lt]=Ut,me({global:!0,forced:Ut!=Kt,sham:!Nt},Ft),Pe in Ut||z(Ut,Pe,ht),Pe in rn||z(rn,Pe,ht),ze(Lt)}):Ge.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,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/fails"),we=oe("../internals/check-correctness-of-iteration"),Le=oe("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,Se=me.ArrayBuffer,Oe=me.Int8Array;Ge.exports=!Le||!ce(function(){Oe(1)})||!ce(function(){new Oe(-1)})||!we(function(ve){new Oe,new Oe(null),new Oe(1.5),new Oe(ve)},!0)||ce(function(){return new Oe(new Se(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,Ge,De){var me=oe("../internals/array-from-constructor-and-list"),ce=oe("../internals/typed-array-species-constructor");Ge.exports=function(we,Le){return me(ce(we),Le)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(oe,Ge,De){var me=oe("../internals/function-bind-context"),ce=oe("../internals/function-call"),we=oe("../internals/a-constructor"),Le=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Oe=oe("../internals/get-iterator"),ve=oe("../internals/get-iterator-method"),xe=oe("../internals/is-array-iterator-method"),fe=oe("../internals/array-buffer-view-core").aTypedArrayConstructor;Ge.exports=function(ee){var ae=we(this),re=Le(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,be=ve(re),Ce,Fe,je,ke,Ae,Be;if(be&&!xe(be))for(Ae=Oe(re,be),Be=Ae.next,re=[];!(ke=ce(Be,Ae)).done;)re.push(ke.value);for(pe&&le>2&&(ue=me(ue,arguments[2])),Fe=Se(re),je=new(fe(ae))(Fe),Ce=0;Fe>Ce;Ce++)je[Ce]=pe?ue(re[Ce],Ce):re[Ce];return je}},{"../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,Ge,De){var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/species-constructor"),we=me.TYPED_ARRAY_CONSTRUCTOR,Le=me.aTypedArrayConstructor;Ge.exports=function(Se){return Le(ce(Se,Se[we]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(oe,Ge,De){var me=oe("../internals/function-uncurry-this"),ce=0,we=Math.random(),Le=me(1 .toString);Ge.exports=function(Se){return"Symbol("+(Se===void 0?"":Se)+")_"+Le(++ce+we,36)}},{"../internals/function-uncurry-this":157}],264:[function(oe,Ge,De){var me=oe("../internals/native-symbol");Ge.exports=me&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(oe,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/fails");Ge.exports=me&&ce(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(oe,Ge,De){var me=oe("../internals/global"),ce=me.TypeError;Ge.exports=function(we,Le){if(we<Le)throw ce("Not enough arguments");return we}},{"../internals/global":163}],267:[function(oe,Ge,De){var me=oe("../internals/well-known-symbol");De.f=me},{"../internals/well-known-symbol":268}],268:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/shared"),we=oe("../internals/has-own-property"),Le=oe("../internals/uid"),Se=oe("../internals/native-symbol"),Oe=oe("../internals/use-symbol-as-uid"),ve=ce("wks"),xe=me.Symbol,fe=xe&&xe.for,z=Oe?xe:xe&&xe.withoutSetter||Le;Ge.exports=function(ee){if(!we(ve,ee)||!(Se||typeof ve[ee]=="string")){var ae="Symbol."+ee;Se&&we(xe,ee)?ve[ee]=xe[ee]:Oe&&fe?ve[ee]=fe(ae):ve[ee]=z(ae)}return ve[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,Ge,De){Ge.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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/array-buffer"),Le=oe("../internals/set-species"),Se="ArrayBuffer",Oe=we[Se],ve=ce[Se];me({global:!0,forced:ve!==Oe},{ArrayBuffer:Oe}),Le(Se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/fails"),Le=oe("../internals/array-buffer"),Se=oe("../internals/an-object"),Oe=oe("../internals/to-absolute-index"),ve=oe("../internals/to-length"),xe=oe("../internals/species-constructor"),fe=Le.ArrayBuffer,z=Le.DataView,ee=z.prototype,ae=ce(fe.prototype.slice),re=ce(ee.getUint8),le=ce(ee.setUint8),ue=we(function(){return!new fe(2).slice(1,void 0).byteLength});me({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(be,Ce){if(ae&&Ce===void 0)return ae(Se(this),be);for(var Fe=Se(this).byteLength,je=Oe(be,Fe),ke=Oe(Ce===void 0?Fe:Ce,Fe),Ae=new(xe(this,fe))(ve(ke-je)),Be=new z(this),_e=new z(Ae),et=0;je<ke;)le(_e,et++,re(Be,je++));return Ae}})},{"../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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/fails"),Le=oe("../internals/is-array"),Se=oe("../internals/is-object"),Oe=oe("../internals/to-object"),ve=oe("../internals/length-of-array-like"),xe=oe("../internals/create-property"),fe=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=ce.TypeError,be=ae>=51||!we(function(){var ke=[];return ke[re]=!1,ke.concat()[0]!==ke}),Ce=z("concat"),Fe=function(ke){if(!Se(ke))return!1;var Ae=ke[re];return Ae!==void 0?!!Ae:Le(ke)},je=!be||!Ce;me({target:"Array",proto:!0,forced:je},{concat:function(Ae){var Be=Oe(this),_e=fe(Be,0),et=0,ze,Xe,Qe,lt,ct;for(ze=-1,Qe=arguments.length;ze<Qe;ze++)if(ct=ze===-1?Be:arguments[ze],Fe(ct)){if(lt=ve(ct),et+lt>le)throw pe(ue);for(Xe=0;Xe<lt;Xe++,et++)Xe in ct&&xe(_e,et,ct[Xe])}else{if(et>=le)throw pe(ue);xe(_e,et++,ct)}return _e.length=et,_e}})},{"../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,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/array-fill"),we=oe("../internals/add-to-unscopables");me({target:"Array",proto:!0},{fill:ce}),we("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/array-iteration").filter,we=oe("../internals/array-method-has-species-support"),Le=we("filter");me({target:"Array",proto:!0,forced:!Le},{filter:function(Oe){return ce(this,Oe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/array-iteration").find,we=oe("../internals/add-to-unscopables"),Le="find",Se=!0;Le in[]&&Array(1)[Le](function(){Se=!1}),me({target:"Array",proto:!0,forced:Se},{find:function(ve){return ce(this,ve,arguments.length>1?arguments[1]:void 0)}}),we(Le)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(oe,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/array-from"),we=oe("../internals/check-correctness-of-iteration"),Le=!we(function(Se){Array.from(Se)});me({target:"Array",stat:!0,forced:Le},{from:ce})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/array-includes").includes,we=oe("../internals/add-to-unscopables");me({target:"Array",proto:!0},{includes:function(Se){return ce(this,Se,arguments.length>1?arguments[1]:void 0)}}),we("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(oe,Ge,De){"use strict";var me=oe("../internals/to-indexed-object"),ce=oe("../internals/add-to-unscopables"),we=oe("../internals/iterators"),Le=oe("../internals/internal-state"),Se=oe("../internals/object-define-property").f,Oe=oe("../internals/define-iterator"),ve=oe("../internals/is-pure"),xe=oe("../internals/descriptors"),fe="Array Iterator",z=Le.set,ee=Le.getterFor(fe);Ge.exports=Oe(Array,"Array",function(re,le){z(this,{type:fe,target:me(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=we.Arguments=we.Array;if(ce("keys"),ce("values"),ce("entries"),!ve&&xe&&ae.name!=="values")try{Se(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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/indexed-object"),Le=oe("../internals/to-indexed-object"),Se=oe("../internals/array-method-is-strict"),Oe=ce([].join),ve=we!=Object,xe=Se("join",",");me({target:"Array",proto:!0,forced:ve||!xe},{join:function(z){return Oe(Le(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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/array-iteration").map,we=oe("../internals/array-method-has-species-support"),Le=we("map");me({target:"Array",proto:!0,forced:!Le},{map:function(Oe){return ce(this,Oe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/is-array"),Le=oe("../internals/is-constructor"),Se=oe("../internals/is-object"),Oe=oe("../internals/to-absolute-index"),ve=oe("../internals/length-of-array-like"),xe=oe("../internals/to-indexed-object"),fe=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=ce.Array,pe=Math.max;me({target:"Array",proto:!0,forced:!re},{slice:function(Ce,Fe){var je=xe(this),ke=ve(je),Ae=Oe(Ce,ke),Be=Oe(Fe===void 0?ke:Fe,ke),_e,et,ze;if(we(je)&&(_e=je.constructor,Le(_e)&&(_e===ue||we(_e.prototype))?_e=void 0:Se(_e)&&(_e=_e[le],_e===null&&(_e=void 0)),_e===ue||_e===void 0))return ae(je,Ae,Be);for(et=new(_e===void 0?ue:_e)(pe(Be-Ae,0)),ze=0;Ae<Be;Ae++,ze++)Ae in je&&fe(et,ze,je[Ae]);return et.length=ze,et}})},{"../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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/a-callable"),Le=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Oe=oe("../internals/to-string"),ve=oe("../internals/fails"),xe=oe("../internals/array-sort"),fe=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=ce(le.sort),pe=ce(le.push),be=ve(function(){le.sort(void 0)}),Ce=ve(function(){le.sort(null)}),Fe=fe("sort"),je=!ve(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var Be="",_e,et,ze,Xe;for(_e=65;_e<76;_e++){switch(et=String.fromCharCode(_e),_e){case 66:case 69:case 70:case 72:ze=3;break;case 68:case 71:ze=4;break;default:ze=2}for(Xe=0;Xe<47;Xe++)le.push({k:et+Xe,v:ze})}for(le.sort(function(Qe,lt){return lt.v-Qe.v}),Xe=0;Xe<le.length;Xe++)et=le[Xe].k.charAt(0),Be.charAt(Be.length-1)!==et&&(Be+=et);return Be!=="DGBEFHACIJK"}}),ke=be||!Ce||!Fe||!je,Ae=function(Be){return function(_e,et){return et===void 0?-1:_e===void 0?1:Be!==void 0?+Be(_e,et)||0:Oe(_e)>Oe(et)?1:-1}};me({target:"Array",proto:!0,forced:ke},{sort:function(_e){_e!==void 0&&we(_e);var et=Le(this);if(je)return _e===void 0?ue(et):ue(et,_e);var ze=[],Xe=Se(et),Qe,lt;for(lt=0;lt<Xe;lt++)lt in et&&pe(ze,et[lt]);for(xe(ze,Ae(_e)),Qe=ze.length,lt=0;lt<Qe;)et[lt]=ze[lt++];for(;lt<Xe;)delete et[lt++];return et}})},{"../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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/to-absolute-index"),Le=oe("../internals/to-integer-or-infinity"),Se=oe("../internals/length-of-array-like"),Oe=oe("../internals/to-object"),ve=oe("../internals/array-species-create"),xe=oe("../internals/create-property"),fe=oe("../internals/array-method-has-species-support"),z=fe("splice"),ee=ce.TypeError,ae=Math.max,re=Math.min,le=9007199254740991,ue="Maximum allowed length exceeded";me({target:"Array",proto:!0,forced:!z},{splice:function(be,Ce){var Fe=Oe(this),je=Se(Fe),ke=we(be,je),Ae=arguments.length,Be,_e,et,ze,Xe,Qe;if(Ae===0?Be=_e=0:Ae===1?(Be=0,_e=je-ke):(Be=Ae-2,_e=re(ae(Le(Ce),0),je-ke)),je+Be-_e>le)throw ee(ue);for(et=ve(Fe,_e),ze=0;ze<_e;ze++)Xe=ke+ze,Xe in Fe&&xe(et,ze,Fe[Xe]);if(et.length=_e,Be<_e){for(ze=ke;ze<je-_e;ze++)Xe=ze+_e,Qe=ze+Be,Xe in Fe?Fe[Qe]=Fe[Xe]:delete Fe[Qe];for(ze=je;ze>je-_e+Be;ze--)delete Fe[ze-1]}else if(Be>_e)for(ze=je-_e;ze>ke;ze--)Xe=ze+_e-1,Qe=ze+Be-1,Xe in Fe?Fe[Qe]=Fe[Xe]:delete Fe[Qe];for(ze=0;ze<Be;ze++)Fe[ze+ke]=arguments[ze+2];return Fe.length=je-_e+Be,et}})},{"../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,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/function-name").EXISTS,we=oe("../internals/function-uncurry-this"),Le=oe("../internals/object-define-property").f,Se=Function.prototype,Oe=we(Se.toString),ve=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,xe=we(ve.exec),fe="name";me&&!ce&&Le(Se,fe,{configurable:!0,get:function(){try{return xe(ve,Oe(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,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/get-built-in"),we=oe("../internals/function-apply"),Le=oe("../internals/function-call"),Se=oe("../internals/function-uncurry-this"),Oe=oe("../internals/fails"),ve=oe("../internals/is-array"),xe=oe("../internals/is-callable"),fe=oe("../internals/is-object"),z=oe("../internals/is-symbol"),ee=oe("../internals/array-slice"),ae=oe("../internals/native-symbol"),re=ce("JSON","stringify"),le=Se(/./.exec),ue=Se("".charAt),pe=Se("".charCodeAt),be=Se("".replace),Ce=Se(1 .toString),Fe=/[\uD800-\uDFFF]/g,je=/^[\uD800-\uDBFF]$/,ke=/^[\uDC00-\uDFFF]$/,Ae=!ae||Oe(function(){var ze=ce("Symbol")();return re([ze])!="[null]"||re({a:ze})!="{}"||re(Object(ze))!="{}"}),Be=Oe(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),_e=function(ze,Xe){var Qe=ee(arguments),lt=Xe;if(!(!fe(Xe)&&ze===void 0||z(ze)))return ve(Xe)||(Xe=function(ct,vt){if(xe(lt)&&(vt=Le(lt,this,ct,vt)),!z(vt))return vt}),Qe[1]=Xe,we(re,null,Qe)},et=function(ze,Xe,Qe){var lt=ue(Qe,Xe-1),ct=ue(Qe,Xe+1);return le(je,ze)&&!le(ke,ct)||le(ke,ze)&&!le(je,lt)?"\\u"+Ce(pe(ze,0),16):ze};re&&me({target:"JSON",stat:!0,forced:Ae||Be},{stringify:function(Xe,Qe,lt){var ct=ee(arguments),vt=we(Ae?_e:re,null,ct);return Be&&typeof vt=="string"?be(vt,Fe,et):vt}})},{"../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,Ge,De){"use strict";var me=oe("../internals/descriptors"),ce=oe("../internals/global"),we=oe("../internals/function-uncurry-this"),Le=oe("../internals/is-forced"),Se=oe("../internals/redefine"),Oe=oe("../internals/has-own-property"),ve=oe("../internals/inherit-if-required"),xe=oe("../internals/object-is-prototype-of"),fe=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,be="Number",Ce=ce[be],Fe=Ce.prototype,je=ce.TypeError,ke=we("".slice),Ae=we("".charCodeAt),Be=function(lt){var ct=z(lt,"number");return typeof ct=="bigint"?ct:_e(ct)},_e=function(lt){var ct=z(lt,"number"),vt,nt,it,pt,xt,yt,ft,gt;if(fe(ct))throw je("Cannot convert a Symbol value to a number");if(typeof ct=="string"&&ct.length>2){if(ct=pe(ct),vt=Ae(ct,0),vt===43||vt===45){if(nt=Ae(ct,2),nt===88||nt===120)return NaN}else if(vt===48){switch(Ae(ct,1)){case 66:case 98:it=2,pt=49;break;case 79:case 111:it=8,pt=55;break;default:return+ct}for(xt=ke(ct,2),yt=xt.length,ft=0;ft<yt;ft++)if(gt=Ae(xt,ft),gt<48||gt>pt)return NaN;return parseInt(xt,it)}}return+ct};if(Le(be,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var et=function(ct){var vt=arguments.length<1?0:Ce(Be(ct)),nt=this;return xe(Fe,nt)&&ee(function(){ue(nt)})?ve(Object(vt),nt,et):vt},ze=me?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(","),Xe=0,Qe;ze.length>Xe;Xe++)Oe(Ce,Qe=ze[Xe])&&!Oe(et,Qe)&&le(et,Qe,re(Ce,Qe));et.prototype=Fe,Fe.constructor=et,Se(ce,be,et)}},{"../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,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/object-assign");me({target:"Object",stat:!0,forced:Object.assign!==ce},{assign:ce})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(oe,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/object-to-array").entries;me({target:"Object",stat:!0},{entries:function(Le){return ce(Le)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(oe,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/native-symbol"),we=oe("../internals/fails"),Le=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/to-object"),Oe=!ce||we(function(){Le.f(1)});me({target:"Object",stat:!0,forced:Oe},{getOwnPropertySymbols:function(xe){var fe=Le.f;return fe?fe(Se(xe)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(oe,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/to-object"),we=oe("../internals/object-keys"),Le=oe("../internals/fails"),Se=Le(function(){we(1)});me({target:"Object",stat:!0,forced:Se},{keys:function(ve){return we(ce(ve))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(oe,Ge,De){var me=oe("../internals/to-string-tag-support"),ce=oe("../internals/redefine"),we=oe("../internals/object-to-string");me||ce(Object.prototype,"toString",we,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-call"),we=oe("../internals/a-callable"),Le=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),Oe=oe("../internals/iterate"),ve=oe("../internals/promise-statics-incorrect-iteration");me({target:"Promise",stat:!0,forced:ve},{all:function(fe){var z=this,ee=Le.f(z),ae=ee.resolve,re=ee.reject,le=Se(function(){var ue=we(z.resolve),pe=[],be=0,Ce=1;Oe(fe,function(Fe){var je=be++,ke=!1;Ce++,ce(ue,z,Fe).then(function(Ae){ke||(ke=!0,pe[je]=Ae,--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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/is-pure"),we=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Le=oe("../internals/promise-native-constructor"),Se=oe("../internals/get-built-in"),Oe=oe("../internals/is-callable"),ve=oe("../internals/redefine"),xe=Le&&Le.prototype;if(me({target:"Promise",proto:!0,forced:we,real:!0},{catch:function(z){return this.then(void 0,z)}}),!ce&&Oe(Le)){var fe=Se("Promise").prototype.catch;xe.catch!==fe&&ve(xe,"catch",fe,{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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/is-pure"),we=oe("../internals/engine-is-node"),Le=oe("../internals/global"),Se=oe("../internals/function-call"),Oe=oe("../internals/redefine"),ve=oe("../internals/redefine-all"),xe=oe("../internals/object-set-prototype-of"),fe=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,be=oe("../internals/microtask"),Ce=oe("../internals/host-report-errors"),Fe=oe("../internals/perform"),je=oe("../internals/queue"),ke=oe("../internals/internal-state"),Ae=oe("../internals/promise-native-constructor"),Be=oe("../internals/promise-constructor-detection"),_e=oe("../internals/new-promise-capability"),et="Promise",ze=Be.CONSTRUCTOR,Xe=Be.REJECTION_EVENT,Qe=Be.SUBCLASSING,lt=ke.getterFor(et),ct=ke.set,vt=Ae&&Ae.prototype,nt=Ae,it=vt,pt=Le.TypeError,xt=Le.document,yt=Le.process,ft=_e.f,gt=ft,mt=!!(xt&&xt.createEvent&&Le.dispatchEvent),Nt="unhandledrejection",Tt="rejectionhandled",zt=0,St=1,wt=2,at=1,Ye=2,Pe,Te,Ve,Ze,Ee=function(Vt){var Kt;return re(Vt)&&ae(Kt=Vt.then)?Kt:!1},He=function(Vt,Kt){var Ut=Kt.value,rn=Kt.state==St,Ft=rn?Vt.ok:Vt.fail,Xt=Vt.resolve,tn=Vt.reject,dn=Vt.domain,En,An,ar;try{Ft?(rn||(Kt.rejection===Ye&&Ct(Kt),Kt.rejection=at),Ft===!0?En=Ut:(dn&&dn.enter(),En=Ft(Ut),dn&&(dn.exit(),ar=!0)),En===Vt.promise?tn(pt("Promise-chain cycle")):(An=Ee(En))?Se(An,En,Xt,tn):Xt(En)):tn(Ut)}catch(tr){dn&&!ar&&dn.exit(),tn(tr)}},We=function(Vt,Kt){Vt.notified||(Vt.notified=!0,be(function(){for(var Ut=Vt.reactions,rn;rn=Ut.get();)He(rn,Vt);Vt.notified=!1,Kt&&!Vt.rejection&&Je(Vt)}))},Ke=function(Vt,Kt,Ut){var rn,Ft;mt?(rn=xt.createEvent("Event"),rn.promise=Kt,rn.reason=Ut,rn.initEvent(Vt,!1,!0),Le.dispatchEvent(rn)):rn={promise:Kt,reason:Ut},!Xe&&(Ft=Le["on"+Vt])?Ft(rn):Vt===Nt&&Ce("Unhandled promise rejection",Ut)},Je=function(Vt){Se(pe,Le,function(){var Kt=Vt.facade,Ut=Vt.value,rn=dt(Vt),Ft;if(rn&&(Ft=Fe(function(){we?yt.emit("unhandledRejection",Ut,Kt):Ke(Nt,Kt,Ut)}),Vt.rejection=we||dt(Vt)?Ye:at,Ft.error))throw Ft.value})},dt=function(Vt){return Vt.rejection!==at&&!Vt.parent},Ct=function(Vt){Se(pe,Le,function(){var Kt=Vt.facade;we?yt.emit("rejectionHandled",Kt):Ke(Tt,Kt,Vt.value)})},ht=function(Vt,Kt,Ut){return function(rn){Vt(Kt,rn,Ut)}},Lt=function(Vt,Kt,Ut){Vt.done||(Vt.done=!0,Ut&&(Vt=Ut),Vt.value=Kt,Vt.state=wt,We(Vt,!0))},en=function(Vt,Kt,Ut){if(!Vt.done){Vt.done=!0,Ut&&(Vt=Ut);try{if(Vt.facade===Kt)throw pt("Promise can't be resolved itself");var rn=Ee(Kt);rn?be(function(){var Ft={done:!1};try{Se(rn,Kt,ht(en,Ft,Vt),ht(Lt,Ft,Vt))}catch(Xt){Lt(Ft,Xt,Vt)}}):(Vt.value=Kt,Vt.state=St,We(Vt,!1))}catch(Ft){Lt({done:!1},Ft,Vt)}}};if(ze&&(nt=function(Kt){le(this,it),ee(Kt),Se(Pe,this);var Ut=lt(this);try{Kt(ht(en,Ut),ht(Lt,Ut))}catch(rn){Lt(Ut,rn)}},it=nt.prototype,Pe=function(Kt){ct(this,{type:et,done:!1,notified:!1,parent:!1,reactions:new je,rejection:!1,state:zt,value:void 0})},Pe.prototype=ve(it,{then:function(Kt,Ut){var rn=lt(this),Ft=ft(ue(this,nt));return rn.parent=!0,Ft.ok=ae(Kt)?Kt:!0,Ft.fail=ae(Ut)&&Ut,Ft.domain=we?yt.domain:void 0,rn.state==zt?rn.reactions.add(Ft):be(function(){He(Ft,rn)}),Ft.promise}}),Te=function(){var Vt=new Pe,Kt=lt(Vt);this.promise=Vt,this.resolve=ht(en,Kt),this.reject=ht(Lt,Kt)},_e.f=ft=function(Vt){return Vt===nt||Vt===Ve?new Te(Vt):gt(Vt)},!ce&&ae(Ae)&&vt!==Object.prototype)){Ze=vt.then,Qe||Oe(vt,"then",function(Kt,Ut){var rn=this;return new nt(function(Ft,Xt){Se(Ze,rn,Ft,Xt)}).then(Kt,Ut)},{unsafe:!0});try{delete vt.constructor}catch(Vt){}xe&&xe(vt,it)}me({global:!0,wrap:!0,forced:ze},{Promise:nt}),fe(nt,et,!1,!0),z(et)},{"../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,Ge,De){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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-call"),we=oe("../internals/a-callable"),Le=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),Oe=oe("../internals/iterate"),ve=oe("../internals/promise-statics-incorrect-iteration");me({target:"Promise",stat:!0,forced:ve},{race:function(fe){var z=this,ee=Le.f(z),ae=ee.reject,re=Se(function(){var le=we(z.resolve);Oe(fe,function(ue){ce(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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-call"),we=oe("../internals/new-promise-capability"),Le=oe("../internals/promise-constructor-detection").CONSTRUCTOR;me({target:"Promise",stat:!0,forced:Le},{reject:function(Oe){var ve=we.f(this);return ce(ve.reject,void 0,Oe),ve.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/get-built-in"),we=oe("../internals/is-pure"),Le=oe("../internals/promise-native-constructor"),Se=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Oe=oe("../internals/promise-resolve"),ve=ce("Promise"),xe=we&&!Se;me({target:"Promise",stat:!0,forced:we||Se},{resolve:function(z){return Oe(xe&&this===ve?Le: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,Ge,De){var me=oe("../internals/descriptors"),ce=oe("../internals/global"),we=oe("../internals/function-uncurry-this"),Le=oe("../internals/is-forced"),Se=oe("../internals/inherit-if-required"),Oe=oe("../internals/create-non-enumerable-property"),ve=oe("../internals/object-get-own-property-names").f,xe=oe("../internals/object-is-prototype-of"),fe=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"),be=oe("../internals/internal-state").enforce,Ce=oe("../internals/set-species"),Fe=oe("../internals/well-known-symbol"),je=oe("../internals/regexp-unsupported-dot-all"),ke=oe("../internals/regexp-unsupported-ncg"),Ae=Fe("match"),Be=ce.RegExp,_e=Be.prototype,et=ce.SyntaxError,ze=we(_e.exec),Xe=we("".charAt),Qe=we("".replace),lt=we("".indexOf),ct=we("".slice),vt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,nt=/a/g,it=/a/g,pt=new Be(nt)!==nt,xt=ae.MISSED_STICKY,yt=ae.UNSUPPORTED_Y,ft=me&&(!pt||xt||je||ke||ue(function(){return it[Ae]=!1,Be(nt)!=nt||Be(it)==it||Be(nt,"i")!="/a/i"})),gt=function(St){for(var wt=St.length,at=0,Ye="",Pe=!1,Te;at<=wt;at++){if(Te=Xe(St,at),Te==="\\"){Ye+=Te+Xe(St,++at);continue}!Pe&&Te==="."?Ye+="[\\s\\S]":(Te==="["?Pe=!0:Te==="]"&&(Pe=!1),Ye+=Te)}return Ye},mt=function(St){for(var wt=St.length,at=0,Ye="",Pe=[],Te={},Ve=!1,Ze=!1,Ee=0,He="",We;at<=wt;at++){if(We=Xe(St,at),We==="\\")We=We+Xe(St,++at);else if(We==="]")Ve=!1;else if(!Ve)switch(!0){case We==="[":Ve=!0;break;case We==="(":ze(vt,ct(St,at+1))&&(at+=2,Ze=!0),Ye+=We,Ee++;continue;case(We===">"&&Ze):if(He===""||pe(Te,He))throw new et("Invalid capture group name");Te[He]=!0,Pe[Pe.length]=[He,Ee],Ze=!1,He="";continue}Ze?He+=We:Ye+=We}return[Ye,Pe]};if(Le("RegExp",ft)){for(var Nt=function(wt,at){var Ye=xe(_e,this),Pe=fe(wt),Te=at===void 0,Ve=[],Ze=wt,Ee,He,We,Ke,Je,dt;if(!Ye&&Pe&&Te&&wt.constructor===Nt)return wt;if((Pe||xe(_e,wt))&&(wt=wt.source,Te&&(at=ee(Ze))),wt=wt===void 0?"":z(wt),at=at===void 0?"":z(at),Ze=wt,je&&"dotAll"in nt&&(He=!!at&<(at,"s")>-1,He&&(at=Qe(at,/s/g,""))),Ee=at,xt&&"sticky"in nt&&(We=!!at&<(at,"y")>-1,We&&yt&&(at=Qe(at,/y/g,""))),ke&&(Ke=mt(wt),wt=Ke[0],Ve=Ke[1]),Je=Se(Be(wt,at),Ye?this:_e,Nt),(He||We||Ve.length)&&(dt=be(Je),He&&(dt.dotAll=!0,dt.raw=Nt(gt(wt),Ee)),We&&(dt.sticky=!0),Ve.length&&(dt.groups=Ve)),wt!==Ze)try{Oe(Je,"source",Ze===""?"(?:)":Ze)}catch(Ct){}return Je},Tt=ve(Be),zt=0;Tt.length>zt;)re(Nt,Be,Tt[zt++]);_e.constructor=Nt,Nt.prototype=_e,le(ce,"RegExp",Nt)}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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/regexp-exec");me({target:"RegExp",proto:!0,forced:/./.exec!==ce},{exec:ce})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(oe,Ge,De){"use strict";var me=oe("../internals/function-name").PROPER,ce=oe("../internals/redefine"),we=oe("../internals/an-object"),Le=oe("../internals/to-string"),Se=oe("../internals/fails"),Oe=oe("../internals/regexp-get-flags"),ve="toString",xe=RegExp.prototype,fe=xe[ve],z=Se(function(){return fe.call({source:"a",flags:"b"})!="/a/b"}),ee=me&&fe.name!=ve;(z||ee)&&ce(RegExp.prototype,ve,function(){var re=we(this),le=Le(re.source),ue=Le(Oe(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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/not-a-regexp"),Le=oe("../internals/require-object-coercible"),Se=oe("../internals/to-string"),Oe=oe("../internals/correct-is-regexp-logic"),ve=ce("".indexOf);me({target:"String",proto:!0,forced:!Oe("includes")},{includes:function(fe){return!!~ve(Se(Le(this)),Se(we(fe)),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,Ge,De){"use strict";var me=oe("../internals/string-multibyte").charAt,ce=oe("../internals/to-string"),we=oe("../internals/internal-state"),Le=oe("../internals/define-iterator"),Se="String Iterator",Oe=we.set,ve=we.getterFor(Se);Le(String,"String",function(xe){Oe(this,{type:Se,string:ce(xe),index:0})},function(){var fe=ve(this),z=fe.string,ee=fe.index,ae;return ee>=z.length?{value:void 0,done:!0}:(ae=me(z,ee),fe.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,Ge,De){"use strict";var me=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),we=oe("../internals/an-object"),Le=oe("../internals/to-length"),Se=oe("../internals/to-string"),Oe=oe("../internals/require-object-coercible"),ve=oe("../internals/get-method"),xe=oe("../internals/advance-string-index"),fe=oe("../internals/regexp-exec-abstract");ce("match",function(z,ee,ae){return[function(le){var ue=Oe(this),pe=le==null?void 0:ve(le,z);return pe?me(pe,le,ue):new RegExp(le)[z](Se(ue))},function(re){var le=we(this),ue=Se(re),pe=ae(ee,le,ue);if(pe.done)return pe.value;if(!le.global)return fe(le,ue);var be=le.unicode;le.lastIndex=0;for(var Ce=[],Fe=0,je;(je=fe(le,ue))!==null;){var ke=Se(je[0]);Ce[Fe]=ke,ke===""&&(le.lastIndex=xe(ue,Le(le.lastIndex),be)),Fe++}return Fe===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,Ge,De){"use strict";var me=oe("../internals/function-apply"),ce=oe("../internals/function-call"),we=oe("../internals/function-uncurry-this"),Le=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/fails"),Oe=oe("../internals/an-object"),ve=oe("../internals/is-callable"),xe=oe("../internals/to-integer-or-infinity"),fe=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"),be=pe("replace"),Ce=Math.max,Fe=Math.min,je=we([].concat),ke=we([].push),Ae=we("".indexOf),Be=we("".slice),_e=function(Qe){return Qe===void 0?Qe:String(Qe)},et=function(){return"a".replace(/./,"$0")==="$0"}(),ze=function(){return/./[be]?/./[be]("a","$0")==="":!1}(),Xe=!Se(function(){var Qe=/./;return Qe.exec=function(){var lt=[];return lt.groups={a:"7"},lt},"".replace(Qe,"$<a>")!=="7"});Le("replace",function(Qe,lt,ct){var vt=ze?"$":"$0";return[function(it,pt){var xt=ee(this),yt=it==null?void 0:re(it,be);return yt?ce(yt,it,xt,pt):ce(lt,z(xt),it,pt)},function(nt,it){var pt=Oe(this),xt=z(nt);if(typeof it=="string"&&Ae(it,vt)===-1&&Ae(it,"$<")===-1){var yt=ct(lt,pt,xt,it);if(yt.done)return yt.value}var ft=ve(it);ft||(it=z(it));var gt=pt.global;if(gt){var mt=pt.unicode;pt.lastIndex=0}for(var Nt=[];;){var Tt=ue(pt,xt);if(Tt===null||(ke(Nt,Tt),!gt))break;var zt=z(Tt[0]);zt===""&&(pt.lastIndex=ae(xt,fe(pt.lastIndex),mt))}for(var St="",wt=0,at=0;at<Nt.length;at++){Tt=Nt[at];for(var Ye=z(Tt[0]),Pe=Ce(Fe(xe(Tt.index),xt.length),0),Te=[],Ve=1;Ve<Tt.length;Ve++)ke(Te,_e(Tt[Ve]));var Ze=Tt.groups;if(ft){var Ee=je([Ye],Te,Pe,xt);Ze!==void 0&&ke(Ee,Ze);var He=z(me(it,void 0,Ee))}else He=le(Ye,xt,Pe,Te,Ze,it);Pe>=wt&&(St+=Be(xt,wt,Pe)+He,wt=Pe+Ye.length)}return St+Be(xt,wt)}]},!Xe||!et||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,Ge,De){"use strict";var me=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),we=oe("../internals/an-object"),Le=oe("../internals/require-object-coercible"),Se=oe("../internals/same-value"),Oe=oe("../internals/to-string"),ve=oe("../internals/get-method"),xe=oe("../internals/regexp-exec-abstract");ce("search",function(fe,z,ee){return[function(re){var le=Le(this),ue=re==null?void 0:ve(re,fe);return ue?me(ue,re,le):new RegExp(re)[fe](Oe(le))},function(ae){var re=we(this),le=Oe(ae),ue=ee(z,re,le);if(ue.done)return ue.value;var pe=re.lastIndex;Se(pe,0)||(re.lastIndex=0);var be=xe(re,le);return Se(re.lastIndex,pe)||(re.lastIndex=pe),be===null?-1:be.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,Ge,De){"use strict";var me=oe("../internals/function-apply"),ce=oe("../internals/function-call"),we=oe("../internals/function-uncurry-this"),Le=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/is-regexp"),Oe=oe("../internals/an-object"),ve=oe("../internals/require-object-coercible"),xe=oe("../internals/species-constructor"),fe=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"),be=oe("../internals/fails"),Ce=pe.UNSUPPORTED_Y,Fe=4294967295,je=Math.min,ke=[].push,Ae=we(/./.exec),Be=we(ke),_e=we("".slice),et=!be(function(){var ze=/(?:)/,Xe=ze.exec;ze.exec=function(){return Xe.apply(this,arguments)};var Qe="ab".split(ze);return Qe.length!==2||Qe[0]!=="a"||Qe[1]!=="b"});Le("split",function(ze,Xe,Qe){var lt;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?lt=function(ct,vt){var nt=ee(ve(this)),it=vt===void 0?Fe:vt>>>0;if(it===0)return[];if(ct===void 0)return[nt];if(!Se(ct))return ce(Xe,nt,ct,it);for(var pt=[],xt=(ct.ignoreCase?"i":"")+(ct.multiline?"m":"")+(ct.unicode?"u":"")+(ct.sticky?"y":""),yt=0,ft=new RegExp(ct.source,xt+"g"),gt,mt,Nt;(gt=ce(ue,ft,nt))&&(mt=ft.lastIndex,!(mt>yt&&(Be(pt,_e(nt,yt,gt.index)),gt.length>1&>.index<nt.length&&me(ke,pt,re(gt,1)),Nt=gt[0].length,yt=mt,pt.length>=it)));)ft.lastIndex===gt.index&&ft.lastIndex++;return yt===nt.length?(Nt||!Ae(ft,""))&&Be(pt,""):Be(pt,_e(nt,yt)),pt.length>it?re(pt,0,it):pt}:"0".split(void 0,0).length?lt=function(ct,vt){return ct===void 0&&vt===0?[]:ce(Xe,this,ct,vt)}:lt=Xe,[function(vt,nt){var it=ve(this),pt=vt==null?void 0:ae(vt,ze);return pt?ce(pt,vt,it,nt):ce(lt,ee(it),vt,nt)},function(ct,vt){var nt=Oe(this),it=ee(ct),pt=Qe(lt,nt,it,vt,lt!==Xe);if(pt.done)return pt.value;var xt=xe(nt,RegExp),yt=nt.unicode,ft=(nt.ignoreCase?"i":"")+(nt.multiline?"m":"")+(nt.unicode?"u":"")+(Ce?"g":"y"),gt=new xt(Ce?"^(?:"+nt.source+")":nt,ft),mt=vt===void 0?Fe:vt>>>0;if(mt===0)return[];if(it.length===0)return le(gt,it)===null?[it]:[];for(var Nt=0,Tt=0,zt=[];Tt<it.length;){gt.lastIndex=Ce?0:Tt;var St=le(gt,Ce?_e(it,Tt):it),wt;if(St===null||(wt=je(z(gt.lastIndex+(Ce?Tt:0)),it.length))===Nt)Tt=fe(it,Tt,yt);else{if(Be(zt,_e(it,Nt,Tt)),zt.length===mt)return zt;for(var at=1;at<=St.length-1;at++)if(Be(zt,St[at]),zt.length===mt)return zt;Tt=Nt=wt}}return Be(zt,_e(it,Nt)),zt}]},!et,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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/string-trim").trim,we=oe("../internals/string-trim-forced");me({target:"String",proto:!0,forced:we("trim")},{trim:function(){return ce(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(oe,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/function-call"),Le=oe("../internals/function-uncurry-this"),Se=oe("../internals/is-pure"),Oe=oe("../internals/descriptors"),ve=oe("../internals/native-symbol"),xe=oe("../internals/fails"),fe=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"),be=oe("../internals/object-keys"),Ce=oe("../internals/object-get-own-property-names"),Fe=oe("../internals/object-get-own-property-names-external"),je=oe("../internals/object-get-own-property-symbols"),ke=oe("../internals/object-get-own-property-descriptor"),Ae=oe("../internals/object-define-property"),Be=oe("../internals/object-define-properties"),_e=oe("../internals/object-property-is-enumerable"),et=oe("../internals/redefine"),ze=oe("../internals/shared"),Xe=oe("../internals/shared-key"),Qe=oe("../internals/hidden-keys"),lt=oe("../internals/uid"),ct=oe("../internals/well-known-symbol"),vt=oe("../internals/well-known-symbol-wrapped"),nt=oe("../internals/define-well-known-symbol"),it=oe("../internals/symbol-define-to-primitive"),pt=oe("../internals/set-to-string-tag"),xt=oe("../internals/internal-state"),yt=oe("../internals/array-iteration").forEach,ft=Xe("hidden"),gt="Symbol",mt="prototype",Nt=xt.set,Tt=xt.getterFor(gt),zt=Object[mt],St=ce.Symbol,wt=St&&St[mt],at=ce.TypeError,Ye=ce.QObject,Pe=ke.f,Te=Ae.f,Ve=Fe.f,Ze=_e.f,Ee=Le([].push),He=ze("symbols"),We=ze("op-symbols"),Ke=ze("wks"),Je=!Ye||!Ye[mt]||!Ye[mt].findChild,dt=Oe&&xe(function(){return pe(Te({},"a",{get:function(){return Te(this,"a",{value:7}).a}})).a!=7})?function(Ft,Xt,tn){var dn=Pe(zt,Xt);dn&&delete zt[Xt],Te(Ft,Xt,tn),dn&&Ft!==zt&&Te(zt,Xt,dn)}:Te,Ct=function(Ft,Xt){var tn=He[Ft]=pe(wt);return Nt(tn,{type:gt,tag:Ft,description:Xt}),Oe||(tn.description=Xt),tn},ht=function(Xt,tn,dn){Xt===zt&&ht(We,tn,dn),ee(Xt);var En=re(tn);return ee(dn),fe(He,En)?(dn.enumerable?(fe(Xt,ft)&&Xt[ft][En]&&(Xt[ft][En]=!1),dn=pe(dn,{enumerable:ue(0,!1)})):(fe(Xt,ft)||Te(Xt,ft,ue(1,{})),Xt[ft][En]=!0),dt(Xt,En,dn)):Te(Xt,En,dn)},Lt=function(Xt,tn){ee(Xt);var dn=ae(tn),En=be(dn).concat(rn(dn));return yt(En,function(An){(!Oe||we(Vt,dn,An))&&ht(Xt,An,dn[An])}),Xt},en=function(Xt,tn){return tn===void 0?pe(Xt):Lt(pe(Xt),tn)},Vt=function(Xt){var tn=re(Xt),dn=we(Ze,this,tn);return this===zt&&fe(He,tn)&&!fe(We,tn)?!1:dn||!fe(this,tn)||!fe(He,tn)||fe(this,ft)&&this[ft][tn]?dn:!0},Kt=function(Xt,tn){var dn=ae(Xt),En=re(tn);if(!(dn===zt&&fe(He,En)&&!fe(We,En))){var An=Pe(dn,En);return An&&fe(He,En)&&!(fe(dn,ft)&&dn[ft][En])&&(An.enumerable=!0),An}},Ut=function(Xt){var tn=Ve(ae(Xt)),dn=[];return yt(tn,function(En){!fe(He,En)&&!fe(Qe,En)&&Ee(dn,En)}),dn},rn=function(Ft){var Xt=Ft===zt,tn=Ve(Xt?We:ae(Ft)),dn=[];return yt(tn,function(En){fe(He,En)&&(!Xt||fe(zt,En))&&Ee(dn,He[En])}),dn};ve||(St=function(){if(z(wt,this))throw at("Symbol is not a constructor");var Xt=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),tn=lt(Xt),dn=function(En){this===zt&&we(dn,We,En),fe(this,ft)&&fe(this[ft],tn)&&(this[ft][tn]=!1),dt(this,tn,ue(1,En))};return Oe&&Je&&dt(zt,tn,{configurable:!0,set:dn}),Ct(tn,Xt)},wt=St[mt],et(wt,"toString",function(){return Tt(this).tag}),et(St,"withoutSetter",function(Ft){return Ct(lt(Ft),Ft)}),_e.f=Vt,Ae.f=ht,Be.f=Lt,ke.f=Kt,Ce.f=Fe.f=Ut,je.f=rn,vt.f=function(Ft){return Ct(ct(Ft),Ft)},Oe&&(Te(wt,"description",{configurable:!0,get:function(){return Tt(this).description}}),Se||et(zt,"propertyIsEnumerable",Vt,{unsafe:!0}))),me({global:!0,wrap:!0,forced:!ve,sham:!ve},{Symbol:St}),yt(be(Ke),function(Ft){nt(Ft)}),me({target:gt,stat:!0,forced:!ve},{useSetter:function(){Je=!0},useSimple:function(){Je=!1}}),me({target:"Object",stat:!0,forced:!ve,sham:!Oe},{create:en,defineProperty:ht,defineProperties:Lt,getOwnPropertyDescriptor:Kt}),me({target:"Object",stat:!0,forced:!ve},{getOwnPropertyNames:Ut}),it(),pt(St,gt),Qe[ft]=!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,Ge,De){"use strict";var me=oe("../internals/export"),ce=oe("../internals/descriptors"),we=oe("../internals/global"),Le=oe("../internals/function-uncurry-this"),Se=oe("../internals/has-own-property"),Oe=oe("../internals/is-callable"),ve=oe("../internals/object-is-prototype-of"),xe=oe("../internals/to-string"),fe=oe("../internals/object-define-property").f,z=oe("../internals/copy-constructor-properties"),ee=we.Symbol,ae=ee&&ee.prototype;if(ce&&Oe(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var Ae=arguments.length<1||arguments[0]===void 0?void 0:xe(arguments[0]),Be=ve(ae,this)?new ee(Ae):Ae===void 0?ee():ee(Ae);return Ae===""&&(re[Be]=!0),Be};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Le(ae.toString),be=Le(ae.valueOf),Ce=/^Symbol\((.*)\)[^)]+$/,Fe=Le("".replace),je=Le("".slice);fe(ae,"description",{configurable:!0,get:function(){var Ae=be(this),Be=pe(Ae);if(Se(re,Ae))return"";var _e=ue?je(Be,7,-1):Fe(Be,Ce,"$1");return _e===""?void 0:_e}}),me({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,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/get-built-in"),we=oe("../internals/has-own-property"),Le=oe("../internals/to-string"),Se=oe("../internals/shared"),Oe=oe("../internals/native-symbol-registry"),ve=Se("string-to-symbol-registry"),xe=Se("symbol-to-string-registry");me({target:"Symbol",stat:!0,forced:!Oe},{for:function(fe){var z=Le(fe);if(we(ve,z))return ve[z];var ee=ce("Symbol")(z);return ve[z]=ee,xe[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,Ge,De){var me=oe("../internals/define-well-known-symbol");me("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(oe,Ge,De){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,Ge,De){var me=oe("../internals/export"),ce=oe("../internals/has-own-property"),we=oe("../internals/is-symbol"),Le=oe("../internals/try-to-string"),Se=oe("../internals/shared"),Oe=oe("../internals/native-symbol-registry"),ve=Se("symbol-to-string-registry");me({target:"Symbol",stat:!0,forced:!Oe},{keyFor:function(fe){if(!we(fe))throw TypeError(Le(fe)+" is not a symbol");if(ce(ve,fe))return ve[fe]}})},{"../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,Ge,De){"use strict";var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/array-buffer-view-core"),we=oe("../internals/array-copy-within"),Le=me(we),Se=ce.aTypedArray,Oe=ce.exportTypedArrayMethod;Oe("copyWithin",function(xe,fe){return Le(Se(this),xe,fe,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,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").every,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("every",function(Oe){return ce(we(this),Oe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-call"),we=oe("../internals/array-fill"),Le=me.aTypedArray,Se=me.exportTypedArrayMethod;Se("fill",function(ve){var xe=arguments.length;return ce(we,Le(this),ve,xe>1?arguments[1]:void 0,xe>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").filter,we=oe("../internals/typed-array-from-species-and-list"),Le=me.aTypedArray,Se=me.exportTypedArrayMethod;Se("filter",function(ve){var xe=ce(Le(this),ve,arguments.length>1?arguments[1]:void 0);return we(this,xe)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").findIndex,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("findIndex",function(Oe){return ce(we(this),Oe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").find,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("find",function(Oe){return ce(we(this),Oe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").forEach,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("forEach",function(Oe){ce(we(this),Oe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").includes,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("includes",function(Oe){return ce(we(this),Oe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").indexOf,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("indexOf",function(Oe){return ce(we(this),Oe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(oe,Ge,De){"use strict";var me=oe("../internals/global"),ce=oe("../internals/fails"),we=oe("../internals/function-uncurry-this"),Le=oe("../internals/array-buffer-view-core"),Se=oe("../modules/es.array.iterator"),Oe=oe("../internals/well-known-symbol"),ve=Oe("iterator"),xe=me.Uint8Array,fe=we(Se.values),z=we(Se.keys),ee=we(Se.entries),ae=Le.aTypedArray,re=Le.exportTypedArrayMethod,le=xe&&xe.prototype,ue=!ce(function(){le[ve].call([1])}),pe=!!le&&le.values&&le[ve]===le.values&&le.values.name==="values",be=function(){return fe(ae(this))};re("entries",function(){return ee(ae(this))},ue),re("keys",function(){return z(ae(this))},ue),re("values",be,ue||!pe,{name:"values"}),re(ve,be,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,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-uncurry-this"),we=me.aTypedArray,Le=me.exportTypedArrayMethod,Se=ce([].join);Le("join",function(ve){return Se(we(this),ve)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-apply"),we=oe("../internals/array-last-index-of"),Le=me.aTypedArray,Se=me.exportTypedArrayMethod;Se("lastIndexOf",function(ve){var xe=arguments.length;return ce(we,Le(this),xe>1?[ve,arguments[1]]:[ve])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").map,we=oe("../internals/typed-array-species-constructor"),Le=me.aTypedArray,Se=me.exportTypedArrayMethod;Se("map",function(ve){return ce(Le(this),ve,arguments.length>1?arguments[1]:void 0,function(xe,fe){return new(we(xe))(fe)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").right,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("reduceRight",function(Oe){var ve=arguments.length;return ce(we(this),Oe,ve,ve>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").left,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("reduce",function(Oe){var ve=arguments.length;return ce(we(this),Oe,ve,ve>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=me.aTypedArray,we=me.exportTypedArrayMethod,Le=Math.floor;we("reverse",function(){for(var Oe=this,ve=ce(Oe).length,xe=Le(ve/2),fe=0,z;fe<xe;)z=Oe[fe],Oe[fe++]=Oe[--ve],Oe[ve]=z;return Oe})},{"../internals/array-buffer-view-core":103}],331:[function(oe,Ge,De){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/array-buffer-view-core"),Le=oe("../internals/length-of-array-like"),Se=oe("../internals/to-offset"),Oe=oe("../internals/to-object"),ve=oe("../internals/fails"),xe=me.RangeError,fe=me.Int8Array,z=fe&&fe.prototype,ee=z&&z.set,ae=we.aTypedArray,re=we.exportTypedArrayMethod,le=!ve(function(){var pe=new Uint8ClampedArray(2);return ce(ee,pe,{length:1,0:3},1),pe[1]!==3}),ue=le&&we.NATIVE_ARRAY_BUFFER_VIEWS&&ve(function(){var pe=new fe(2);return pe.set(1),pe.set("2",1),pe[0]!==0||pe[1]!==2});re("set",function(be){ae(this);var Ce=Se(arguments.length>1?arguments[1]:void 0,1),Fe=Oe(be);if(le)return ce(ee,this,Fe,Ce);var je=this.length,ke=Le(Fe),Ae=0;if(ke+Ce>je)throw xe("Wrong length");for(;Ae<ke;)this[Ce+Ae]=Fe[Ae++]},!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,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/typed-array-species-constructor"),we=oe("../internals/fails"),Le=oe("../internals/array-slice"),Se=me.aTypedArray,Oe=me.exportTypedArrayMethod,ve=we(function(){new Int8Array(1).slice()});Oe("slice",function(fe,z){for(var ee=Le(Se(this),fe,z),ae=ce(this),re=0,le=ee.length,ue=new ae(le);le>re;)ue[re]=ee[re++];return ue},ve)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(oe,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").some,we=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("some",function(Oe){return ce(we(this),Oe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(oe,Ge,De){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/fails"),Le=oe("../internals/a-callable"),Se=oe("../internals/array-sort"),Oe=oe("../internals/array-buffer-view-core"),ve=oe("../internals/engine-ff-version"),xe=oe("../internals/engine-is-ie-or-edge"),fe=oe("../internals/engine-v8-version"),z=oe("../internals/engine-webkit-version"),ee=Oe.aTypedArray,ae=Oe.exportTypedArrayMethod,re=me.Uint16Array,le=re&&ce(re.prototype.sort),ue=!!le&&!(we(function(){le(new re(2),null)})&&we(function(){le(new re(2),{})})),pe=!!le&&!we(function(){if(fe)return fe<74;if(ve)return ve<67;if(xe)return!0;if(z)return z<602;var Ce=new re(516),Fe=Array(516),je,ke;for(je=0;je<516;je++)ke=je%4,Ce[je]=515-je,Fe[je]=je-2*ke+3;for(le(Ce,function(Ae,Be){return(Ae/4|0)-(Be/4|0)}),je=0;je<516;je++)if(Ce[je]!==Fe[je])return!0}),be=function(Ce){return function(Fe,je){return Ce!==void 0?+Ce(Fe,je)||0:je!==je?-1:Fe!==Fe?1:Fe===0&&je===0?1/Fe>0&&1/je<0?1:-1:Fe>je}};ae("sort",function(Fe){return Fe!==void 0&&Le(Fe),pe?le(this,Fe):Se(ee(this),be(Fe))},!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,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/to-length"),we=oe("../internals/to-absolute-index"),Le=oe("../internals/typed-array-species-constructor"),Se=me.aTypedArray,Oe=me.exportTypedArrayMethod;Oe("subarray",function(xe,fe){var z=Se(this),ee=z.length,ae=we(xe,ee),re=Le(z);return new re(z.buffer,z.byteOffset+ae*z.BYTES_PER_ELEMENT,ce((fe===void 0?ee:we(fe,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,Ge,De){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-apply"),we=oe("../internals/array-buffer-view-core"),Le=oe("../internals/fails"),Se=oe("../internals/array-slice"),Oe=me.Int8Array,ve=we.aTypedArray,xe=we.exportTypedArrayMethod,fe=[].toLocaleString,z=!!Oe&&Le(function(){fe.call(new Oe(1))}),ee=Le(function(){return[1,2].toLocaleString()!=new Oe([1,2]).toLocaleString()})||!Le(function(){Oe.prototype.toLocaleString.call([1,2])});xe("toLocaleString",function(){return ce(fe,z?Se(ve(this)):ve(this),Se(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,Ge,De){"use strict";var me=oe("../internals/array-buffer-view-core").exportTypedArrayMethod,ce=oe("../internals/fails"),we=oe("../internals/global"),Le=oe("../internals/function-uncurry-this"),Se=we.Uint8Array,Oe=Se&&Se.prototype||{},ve=[].toString,xe=Le([].join);ce(function(){ve.call({})})&&(ve=function(){return xe(this)});var fe=Oe.toString!=ve;me("toString",ve,fe)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(oe,Ge,De){var me=oe("../internals/typed-array-constructor");me("Uint8",function(ce){return function(Le,Se,Oe){return ce(this,Le,Se,Oe)}})},{"../internals/typed-array-constructor":258}],339:[function(oe,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/dom-iterables"),we=oe("../internals/dom-token-list-prototype"),Le=oe("../internals/array-for-each"),Se=oe("../internals/create-non-enumerable-property"),Oe=function(xe){if(xe&&xe.forEach!==Le)try{Se(xe,"forEach",Le)}catch(fe){xe.forEach=Le}};for(var ve in ce)ce[ve]&&Oe(me[ve]&&me[ve].prototype);Oe(we)},{"../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,Ge,De){var me=oe("../internals/global"),ce=oe("../internals/dom-iterables"),we=oe("../internals/dom-token-list-prototype"),Le=oe("../modules/es.array.iterator"),Se=oe("../internals/create-non-enumerable-property"),Oe=oe("../internals/well-known-symbol"),ve=Oe("iterator"),xe=Oe("toStringTag"),fe=Le.values,z=function(ae,re){if(ae){if(ae[ve]!==fe)try{Se(ae,ve,fe)}catch(ue){ae[ve]=fe}if(ae[xe]||Se(ae,xe,re),ce[re]){for(var le in Le)if(ae[le]!==Le[le])try{Se(ae,le,Le[le])}catch(ue){ae[le]=Le[le]}}}};for(var ee in ce)z(me[ee]&&me[ee].prototype,ee);z(we,"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,Ge,De){function me(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}De.isArray=me;function ce(pe){return typeof pe=="boolean"}De.isBoolean=ce;function we(pe){return pe===null}De.isNull=we;function Le(pe){return pe==null}De.isNullOrUndefined=Le;function Se(pe){return typeof pe=="number"}De.isNumber=Se;function Oe(pe){return typeof pe=="string"}De.isString=Oe;function ve(pe){return typeof pe=="symbol"}De.isSymbol=ve;function xe(pe){return pe===void 0}De.isUndefined=xe;function fe(pe){return ue(pe)==="[object RegExp]"}De.isRegExp=fe;function z(pe){return typeof pe=="object"&&pe!==null}De.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}De.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}De.isError=ae;function re(pe){return typeof pe=="function"}De.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}De.isPrimitive=le,De.isBuffer=oe("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(oe,Ge,De){(function(me){"use strict";var ce=function(){var ve=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,xe=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,fe=/[^-+\dA-Z]/g;return function(z,ee,ae,re){if(arguments.length===1&&Oe(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(ce.masks[ee]||ee||ce.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"](),be=z[ue+"Day"](),Ce=z[ue+"Month"](),Fe=z[ue+"FullYear"](),je=z[ue+"Hours"](),ke=z[ue+"Minutes"](),Ae=z[ue+"Seconds"](),Be=z[ue+"Milliseconds"](),_e=ae?0:z.getTimezoneOffset(),et=Le(z),ze=Se(z),Xe={d:pe,dd:we(pe),ddd:ce.i18n.dayNames[be],dddd:ce.i18n.dayNames[be+7],m:Ce+1,mm:we(Ce+1),mmm:ce.i18n.monthNames[Ce],mmmm:ce.i18n.monthNames[Ce+12],yy:String(Fe).slice(2),yyyy:Fe,h:je%12||12,hh:we(je%12||12),H:je,HH:we(je),M:ke,MM:we(ke),s:Ae,ss:we(Ae),l:we(Be,3),L:we(Math.round(Be/10)),t:je<12?"a":"p",tt:je<12?"am":"pm",T:je<12?"A":"P",TT:je<12?"AM":"PM",Z:re?"GMT":ae?"UTC":(String(z).match(xe)||[""]).pop().replace(fe,""),o:(_e>0?"-":"+")+we(Math.floor(Math.abs(_e)/60)*100+Math.abs(_e)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:et,N:ze};return ee.replace(ve,function(Qe){return Qe in Xe?Xe[Qe]:Qe.slice(1,Qe.length-1)})}}();ce.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"},ce.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 we(ve,xe){for(ve=String(ve),xe=xe||2;ve.length<xe;)ve="0"+ve;return ve}function Le(ve){var xe=new Date(ve.getFullYear(),ve.getMonth(),ve.getDate());xe.setDate(xe.getDate()-(xe.getDay()+6)%7+3);var fe=new Date(xe.getFullYear(),0,4);fe.setDate(fe.getDate()-(fe.getDay()+6)%7+3);var z=xe.getTimezoneOffset()-fe.getTimezoneOffset();xe.setHours(xe.getHours()-z);var ee=(xe-fe)/(864e5*7);return 1+Math.floor(ee)}function Se(ve){var xe=ve.getDay();return xe===0&&(xe=7),xe}function Oe(ve){return ve===null?"null":ve===void 0?"undefined":typeof ve!="object"?typeof ve:Array.isArray(ve)?"array":{}.toString.call(ve).slice(8,-1).toLowerCase()}typeof $e=="function"&&$e.amd?$e(function(){return ce}):typeof De=="object"?Ge.exports=ce:me.dateFormat=ce})(this)},{}],343:[function(oe,Ge,De){"use strict";var me=/["'&<>]/;Ge.exports=ce;function ce(we){var Le=""+we,Se=me.exec(Le);if(!Se)return Le;var Oe,ve="",xe=0,fe=0;for(xe=Se.index;xe<Le.length;xe++){switch(Le.charCodeAt(xe)){case 34:Oe=""";break;case 38:Oe="&";break;case 39:Oe="'";break;case 60:Oe="<";break;case 62:Oe=">";break;default:continue}fe!==xe&&(ve+=Le.substring(fe,xe)),fe=xe+1,ve+=Oe}return fe!==xe?ve+Le.substring(fe,xe):ve}},{}],344:[function(oe,Ge,De){"use strict";var me=typeof Reflect=="object"?Reflect:null,ce=me&&typeof me.apply=="function"?me.apply:function(Ae,Be,_e){return Function.prototype.apply.call(Ae,Be,_e)},we;me&&typeof me.ownKeys=="function"?we=me.ownKeys:Object.getOwnPropertySymbols?we=function(Ae){return Object.getOwnPropertyNames(Ae).concat(Object.getOwnPropertySymbols(Ae))}:we=function(Ae){return Object.getOwnPropertyNames(Ae)};function Le(ke){console&&console.warn&&console.warn(ke)}var Se=Number.isNaN||function(Ae){return Ae!==Ae};function Oe(){Oe.init.call(this)}Ge.exports=Oe,Ge.exports.once=Ce,Oe.EventEmitter=Oe,Oe.prototype._events=void 0,Oe.prototype._eventsCount=0,Oe.prototype._maxListeners=void 0;var ve=10;function xe(ke){if(typeof ke!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ke)}Object.defineProperty(Oe,"defaultMaxListeners",{enumerable:!0,get:function(){return ve},set:function(ke){if(typeof ke!="number"||ke<0||Se(ke))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ke+".");ve=ke}}),Oe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Oe.prototype.setMaxListeners=function(Ae){if(typeof Ae!="number"||Ae<0||Se(Ae))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ae+".");return this._maxListeners=Ae,this};function fe(ke){return ke._maxListeners===void 0?Oe.defaultMaxListeners:ke._maxListeners}Oe.prototype.getMaxListeners=function(){return fe(this)},Oe.prototype.emit=function(Ae){for(var Be=[],_e=1;_e<arguments.length;_e++)Be.push(arguments[_e]);var et=Ae==="error",ze=this._events;if(ze!==void 0)et=et&&ze.error===void 0;else if(!et)return!1;if(et){var Xe;if(Be.length>0&&(Xe=Be[0]),Xe instanceof Error)throw Xe;var Qe=new Error("Unhandled error."+(Xe?" ("+Xe.message+")":""));throw Qe.context=Xe,Qe}var lt=ze[Ae];if(lt===void 0)return!1;if(typeof lt=="function")ce(lt,this,Be);else for(var ct=lt.length,vt=ue(lt,ct),_e=0;_e<ct;++_e)ce(vt[_e],this,Be);return!0};function z(ke,Ae,Be,_e){var et,ze,Xe;if(xe(Be),ze=ke._events,ze===void 0?(ze=ke._events=Object.create(null),ke._eventsCount=0):(ze.newListener!==void 0&&(ke.emit("newListener",Ae,Be.listener?Be.listener:Be),ze=ke._events),Xe=ze[Ae]),Xe===void 0)Xe=ze[Ae]=Be,++ke._eventsCount;else if(typeof Xe=="function"?Xe=ze[Ae]=_e?[Be,Xe]:[Xe,Be]:_e?Xe.unshift(Be):Xe.push(Be),et=fe(ke),et>0&&Xe.length>et&&!Xe.warned){Xe.warned=!0;var Qe=new Error("Possible EventEmitter memory leak detected. "+Xe.length+" "+String(Ae)+" listeners added. Use emitter.setMaxListeners() to increase limit");Qe.name="MaxListenersExceededWarning",Qe.emitter=ke,Qe.type=Ae,Qe.count=Xe.length,Le(Qe)}return ke}Oe.prototype.addListener=function(Ae,Be){return z(this,Ae,Be,!1)},Oe.prototype.on=Oe.prototype.addListener,Oe.prototype.prependListener=function(Ae,Be){return z(this,Ae,Be,!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,Ae,Be){var _e={fired:!1,wrapFn:void 0,target:ke,type:Ae,listener:Be},et=ee.bind(_e);return et.listener=Be,_e.wrapFn=et,et}Oe.prototype.once=function(Ae,Be){return xe(Be),this.on(Ae,ae(this,Ae,Be)),this},Oe.prototype.prependOnceListener=function(Ae,Be){return xe(Be),this.prependListener(Ae,ae(this,Ae,Be)),this},Oe.prototype.removeListener=function(Ae,Be){var _e,et,ze,Xe,Qe;if(xe(Be),et=this._events,et===void 0)return this;if(_e=et[Ae],_e===void 0)return this;if(_e===Be||_e.listener===Be)--this._eventsCount===0?this._events=Object.create(null):(delete et[Ae],et.removeListener&&this.emit("removeListener",Ae,_e.listener||Be));else if(typeof _e!="function"){for(ze=-1,Xe=_e.length-1;Xe>=0;Xe--)if(_e[Xe]===Be||_e[Xe].listener===Be){Qe=_e[Xe].listener,ze=Xe;break}if(ze<0)return this;ze===0?_e.shift():pe(_e,ze),_e.length===1&&(et[Ae]=_e[0]),et.removeListener!==void 0&&this.emit("removeListener",Ae,Qe||Be)}return this},Oe.prototype.off=Oe.prototype.removeListener,Oe.prototype.removeAllListeners=function(Ae){var Be,_e,et;if(_e=this._events,_e===void 0)return this;if(_e.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_e[Ae]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _e[Ae]),this;if(arguments.length===0){var ze=Object.keys(_e),Xe;for(et=0;et<ze.length;++et)Xe=ze[et],Xe!=="removeListener"&&this.removeAllListeners(Xe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Be=_e[Ae],typeof Be=="function")this.removeListener(Ae,Be);else if(Be!==void 0)for(et=Be.length-1;et>=0;et--)this.removeListener(Ae,Be[et]);return this};function re(ke,Ae,Be){var _e=ke._events;if(_e===void 0)return[];var et=_e[Ae];return et===void 0?[]:typeof et=="function"?Be?[et.listener||et]:[et]:Be?be(et):ue(et,et.length)}Oe.prototype.listeners=function(Ae){return re(this,Ae,!0)},Oe.prototype.rawListeners=function(Ae){return re(this,Ae,!1)},Oe.listenerCount=function(ke,Ae){return typeof ke.listenerCount=="function"?ke.listenerCount(Ae):le.call(ke,Ae)},Oe.prototype.listenerCount=le;function le(ke){var Ae=this._events;if(Ae!==void 0){var Be=Ae[ke];if(typeof Be=="function")return 1;if(Be!==void 0)return Be.length}return 0}Oe.prototype.eventNames=function(){return this._eventsCount>0?we(this._events):[]};function ue(ke,Ae){for(var Be=new Array(Ae),_e=0;_e<Ae;++_e)Be[_e]=ke[_e];return Be}function pe(ke,Ae){for(;Ae+1<ke.length;Ae++)ke[Ae]=ke[Ae+1];ke.pop()}function be(ke){for(var Ae=new Array(ke.length),Be=0;Be<Ae.length;++Be)Ae[Be]=ke[Be].listener||ke[Be];return Ae}function Ce(ke,Ae){return new Promise(function(Be,_e){function et(Xe){ke.removeListener(Ae,ze),_e(Xe)}function ze(){typeof ke.removeListener=="function"&&ke.removeListener("error",et),Be([].slice.call(arguments))}je(ke,Ae,ze,{once:!0}),Ae!=="error"&&Fe(ke,et,{once:!0})})}function Fe(ke,Ae,Be){typeof ke.on=="function"&&je(ke,"error",Ae,Be)}function je(ke,Ae,Be,_e){if(typeof ke.on=="function")_e.once?ke.once(Ae,Be):ke.on(Ae,Be);else if(typeof ke.addEventListener=="function")ke.addEventListener(Ae,function et(ze){_e.once&&ke.removeEventListener(Ae,et),Be(ze)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ke)}},{}],345:[function(oe,Ge,De){"use strict";var me=oe("is-callable"),ce=Object.prototype.toString,we=Object.prototype.hasOwnProperty,Le=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)we.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},Se=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)ee==null?z(fe.charAt(ae),ae,fe):z.call(ee,fe.charAt(ae),ae,fe)},Oe=function(fe,z,ee){for(var ae in fe)we.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},ve=function(fe,z,ee){if(!me(z))throw new TypeError("iterator must be a function");var ae;arguments.length>=3&&(ae=ee),ce.call(fe)==="[object Array]"?Le(fe,z,ae):typeof fe=="string"?Se(fe,z,ae):Oe(fe,z,ae)};Ge.exports=ve},{"is-callable":367}],346:[function(oe,Ge,De){"use strict";var me="Function.prototype.bind called on incompatible ",ce=Array.prototype.slice,we=Object.prototype.toString,Le="[object Function]";Ge.exports=function(Oe){var ve=this;if(typeof ve!="function"||we.call(ve)!==Le)throw new TypeError(me+ve);for(var xe=ce.call(arguments,1),fe,z=function(){if(this instanceof fe){var ue=ve.apply(this,xe.concat(ce.call(arguments)));return Object(ue)===ue?ue:this}else return ve.apply(Oe,xe.concat(ce.call(arguments)))},ee=Math.max(0,ve.length-xe.length),ae=[],re=0;re<ee;re++)ae.push("$"+re);if(fe=Function("binder","return function ("+ae.join(",")+"){ return binder.apply(this,arguments); }")(z),ve.prototype){var le=function(){};le.prototype=ve.prototype,fe.prototype=new le,le.prototype=null}return fe}},{}],347:[function(oe,Ge,De){"use strict";var me=oe("./implementation");Ge.exports=Function.prototype.bind||me},{"./implementation":346}],348:[function(oe,Ge,De){"use strict";var me,ce=SyntaxError,we=Function,Le=TypeError,Se=function(lt){try{return we('"use strict"; return ('+lt+").constructor;")()}catch(ct){}},Oe=Object.getOwnPropertyDescriptor;if(Oe)try{Oe({},"")}catch(lt){Oe=null}var ve=function(){throw new Le},xe=Oe?function(){try{return arguments.callee,ve}catch(lt){try{return Oe(arguments,"callee").get}catch(ct){return ve}}}():ve,fe=oe("has-symbols")(),z=oe("has-proto")(),ee=Object.getPrototypeOf||(z?function(lt){return lt.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?me:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?me:ArrayBuffer,"%ArrayIteratorPrototype%":fe&&ee?ee([][Symbol.iterator]()):me,"%AsyncFromSyncIteratorPrototype%":me,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?me:Atomics,"%BigInt%":typeof BigInt=="undefined"?me:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?me:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?me:FinalizationRegistry,"%Function%":we,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?me:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?me:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fe&&ee?ee(ee([][Symbol.iterator]())):me,"%JSON%":typeof JSON=="object"?JSON:me,"%Map%":typeof Map=="undefined"?me:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!fe||!ee?me:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?me:Promise,"%Proxy%":typeof Proxy=="undefined"?me:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?me:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!fe||!ee?me:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fe&&ee?ee(""[Symbol.iterator]()):me,"%Symbol%":fe?Symbol:me,"%SyntaxError%":ce,"%ThrowTypeError%":xe,"%TypedArray%":re,"%TypeError%":Le,"%Uint8Array%":typeof Uint8Array=="undefined"?me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?me:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?me:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?me:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?me:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?me:WeakSet};if(ee)try{null.error}catch(lt){var ue=ee(ee(lt));le["%Error.prototype%"]=ue}var pe=function lt(ct){var vt;if(ct==="%AsyncFunction%")vt=Se("async function () {}");else if(ct==="%GeneratorFunction%")vt=Se("function* () {}");else if(ct==="%AsyncGeneratorFunction%")vt=Se("async function* () {}");else if(ct==="%AsyncGenerator%"){var nt=lt("%AsyncGeneratorFunction%");nt&&(vt=nt.prototype)}else if(ct==="%AsyncIteratorPrototype%"){var it=lt("%AsyncGenerator%");it&&ee&&(vt=ee(it.prototype))}return le[ct]=vt,vt},be={"%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"),Fe=oe("has"),je=Ce.call(Function.call,Array.prototype.concat),ke=Ce.call(Function.apply,Array.prototype.splice),Ae=Ce.call(Function.call,String.prototype.replace),Be=Ce.call(Function.call,String.prototype.slice),_e=Ce.call(Function.call,RegExp.prototype.exec),et=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ze=/\\(\\)?/g,Xe=function(ct){var vt=Be(ct,0,1),nt=Be(ct,-1);if(vt==="%"&&nt!=="%")throw new ce("invalid intrinsic syntax, expected closing `%`");if(nt==="%"&&vt!=="%")throw new ce("invalid intrinsic syntax, expected opening `%`");var it=[];return Ae(ct,et,function(pt,xt,yt,ft){it[it.length]=yt?Ae(ft,ze,"$1"):xt||pt}),it},Qe=function(ct,vt){var nt=ct,it;if(Fe(be,nt)&&(it=be[nt],nt="%"+it[0]+"%"),Fe(le,nt)){var pt=le[nt];if(pt===ae&&(pt=pe(nt)),typeof pt=="undefined"&&!vt)throw new Le("intrinsic "+ct+" exists, but is not available. Please file an issue!");return{alias:it,name:nt,value:pt}}throw new ce("intrinsic "+ct+" does not exist!")};Ge.exports=function(ct,vt){if(typeof ct!="string"||ct.length===0)throw new Le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof vt!="boolean")throw new Le('"allowMissing" argument must be a boolean');if(_e(/^%?[^%]*%?$/,ct)===null)throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var nt=Xe(ct),it=nt.length>0?nt[0]:"",pt=Qe("%"+it+"%",vt),xt=pt.name,yt=pt.value,ft=!1,gt=pt.alias;gt&&(it=gt[0],ke(nt,je([0,1],gt)));for(var mt=1,Nt=!0;mt<nt.length;mt+=1){var Tt=nt[mt],zt=Be(Tt,0,1),St=Be(Tt,-1);if((zt==='"'||zt==="'"||zt==="`"||St==='"'||St==="'"||St==="`")&&zt!==St)throw new ce("property names with quotes must have matching quotes");if((Tt==="constructor"||!Nt)&&(ft=!0),it+="."+Tt,xt="%"+it+"%",Fe(le,xt))yt=le[xt];else if(yt!=null){if(!(Tt in yt)){if(!vt)throw new Le("base intrinsic for "+ct+" exists, but the property is not available.");return}if(Oe&&mt+1>=nt.length){var wt=Oe(yt,Tt);Nt=!!wt,Nt&&"get"in wt&&!("originalValue"in wt.get)?yt=wt.get:yt=yt[Tt]}else Nt=Fe(yt,Tt),yt=yt[Tt];Nt&&!ft&&(le[xt]=yt)}}return yt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(oe,Ge,De){"use strict";var me=oe("get-intrinsic"),ce=me("%Object.getOwnPropertyDescriptor%",!0);if(ce)try{ce([],"length")}catch(we){ce=null}Ge.exports=ce},{"get-intrinsic":348}],350:[function(oe,Ge,De){"use strict";var me={foo:{}},ce=Object;Ge.exports=function(){return{__proto__:me}.foo===me.foo&&!({__proto__:null}instanceof ce)}},{}],351:[function(oe,Ge,De){"use strict";var me=typeof Symbol!="undefined"&&Symbol,ce=oe("./shams");Ge.exports=function(){return typeof me!="function"||typeof Symbol!="function"||typeof me("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ce()}},{"./shams":352}],352:[function(oe,Ge,De){"use strict";Ge.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ce={},we=Symbol("test"),Le=Object(we);if(typeof we=="string"||Object.prototype.toString.call(we)!=="[object Symbol]"||Object.prototype.toString.call(Le)!=="[object Symbol]")return!1;var Se=42;ce[we]=Se;for(we in ce)return!1;if(typeof Object.keys=="function"&&Object.keys(ce).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(ce).length!==0)return!1;var Oe=Object.getOwnPropertySymbols(ce);if(Oe.length!==1||Oe[0]!==we||!Object.prototype.propertyIsEnumerable.call(ce,we))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ve=Object.getOwnPropertyDescriptor(ce,we);if(ve.value!==Se||ve.enumerable!==!0)return!1}return!0}},{}],353:[function(oe,Ge,De){"use strict";var me=oe("has-symbols/shams");Ge.exports=function(){return me()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(oe,Ge,De){"use strict";var me=oe("function-bind");Ge.exports=me.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(oe,Ge,De){var me=oe("http"),ce=oe("url"),we=Ge.exports;for(var Le in me)me.hasOwnProperty(Le)&&(we[Le]=me[Le]);we.request=function(Oe,ve){return Oe=Se(Oe),me.request.call(this,Oe,ve)},we.get=function(Oe,ve){return Oe=Se(Oe),me.get.call(this,Oe,ve)};function Se(Oe){if(typeof Oe=="string"&&(Oe=ce.parse(Oe)),Oe.protocol||(Oe.protocol="https:"),Oe.protocol!=="https:")throw new Error('Protocol "'+Oe.protocol+'" not supported. Expected "https:"');return Oe}},{http:468,url:472}],356:[function(oe,Ge,De){"use strict";var me=oe("util"),ce=oe("ms");Ge.exports=function(we){if(typeof we=="number")return we;var Le=ce(we);if(Le===void 0){var Se=new Error(me.format("humanize-ms(%j) result undefined",we));console.warn(Se.stack)}return Le}},{ms:376,util:419}],357:[function(oe,Ge,De){De.read=function(me,ce,we,Le,Se){var Oe,ve,xe=Se*8-Le-1,fe=(1<<xe)-1,z=fe>>1,ee=-7,ae=we?Se-1:0,re=we?-1:1,le=me[ce+ae];for(ae+=re,Oe=le&(1<<-ee)-1,le>>=-ee,ee+=xe;ee>0;Oe=Oe*256+me[ce+ae],ae+=re,ee-=8);for(ve=Oe&(1<<-ee)-1,Oe>>=-ee,ee+=Le;ee>0;ve=ve*256+me[ce+ae],ae+=re,ee-=8);if(Oe===0)Oe=1-z;else{if(Oe===fe)return ve?NaN:(le?-1:1)*(1/0);ve=ve+Math.pow(2,Le),Oe=Oe-z}return(le?-1:1)*ve*Math.pow(2,Oe-Le)},De.write=function(me,ce,we,Le,Se,Oe){var ve,xe,fe,z=Oe*8-Se-1,ee=(1<<z)-1,ae=ee>>1,re=Se===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=Le?0:Oe-1,ue=Le?1:-1,pe=ce<0||ce===0&&1/ce<0?1:0;for(ce=Math.abs(ce),isNaN(ce)||ce===1/0?(xe=isNaN(ce)?1:0,ve=ee):(ve=Math.floor(Math.log(ce)/Math.LN2),ce*(fe=Math.pow(2,-ve))<1&&(ve--,fe*=2),ve+ae>=1?ce+=re/fe:ce+=re*Math.pow(2,1-ae),ce*fe>=2&&(ve++,fe/=2),ve+ae>=ee?(xe=0,ve=ee):ve+ae>=1?(xe=(ce*fe-1)*Math.pow(2,Se),ve=ve+ae):(xe=ce*Math.pow(2,ae-1)*Math.pow(2,Se),ve=0));Se>=8;me[we+le]=xe&255,le+=ue,xe/=256,Se-=8);for(ve=ve<<Se|xe,z+=Se;z>0;me[we+le]=ve&255,le+=ue,ve/=256,z-=8);me[we+le-ue]|=pe*128}},{}],358:[function(oe,Ge,De){"use strict";var me=[oe("./nextTick"),oe("./queueMicrotask"),oe("./mutation.js"),oe("./messageChannel"),oe("./stateChange"),oe("./timeout")],ce,we,Le=-1,Se=[],Oe=!1;function ve(){!ce||!we||(ce=!1,we.length?Se=we.concat(Se):Le=-1,Se.length&&xe())}function xe(){if(!ce){Oe=!1,ce=!0;for(var le=Se.length,ue=setTimeout(ve);le;){for(we=Se,Se=[];we&&++Le<le;)we[Le].run();Le=-1,le=Se.length}we=null,Le=-1,ce=!1,clearTimeout(ue)}}for(var fe,z=-1,ee=me.length;++z<ee;)if(me[z]&&me[z].test&&me[z].test()){fe=me[z].install(xe);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)}},Ge.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];Se.push(new ae(le,ue)),!Oe&&!ce&&(Oe=!0,fe())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(oe,Ge,De){(function(me){(function(){"use strict";De.test=function(){return me.setImmediate?!1:typeof me.MessageChannel!="undefined"},De.install=function(ce){var we=new me.MessageChannel;return we.port1.onmessage=ce,function(){we.port2.postMessage(0)}}}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(oe,Ge,De){(function(me){(function(){"use strict";var ce=me.MutationObserver||me.WebKitMutationObserver;De.test=function(){return ce},De.install=function(we){var Le=0,Se=new ce(we),Oe=me.document.createTextNode("");return Se.observe(Oe,{characterData:!0}),function(){Oe.data=Le=++Le%2}}}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(oe,Ge,De){(function(me){(function(){"use strict";De.test=function(){return typeof me.queueMicrotask=="function"},De.install=function(ce){return function(){me.queueMicrotask(ce)}}}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(oe,Ge,De){(function(me){(function(){"use strict";De.test=function(){return"document"in me&&"onreadystatechange"in me.document.createElement("script")},De.install=function(ce){return function(){var we=me.document.createElement("script");return we.onreadystatechange=function(){ce(),we.onreadystatechange=null,we.parentNode.removeChild(we),we=null},me.document.documentElement.appendChild(we),ce}}}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(oe,Ge,De){"use strict";De.test=function(){return!0},De.install=function(me){return function(){setTimeout(me,0)}}},{}],364:[function(oe,Ge,De){typeof Object.create=="function"?Ge.exports=function(ce,we){we&&(ce.super_=we,ce.prototype=Object.create(we.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}))}:Ge.exports=function(ce,we){if(we){ce.super_=we;var Le=function(){};Le.prototype=we.prototype,ce.prototype=new Le,ce.prototype.constructor=ce}}},{}],365:[function(oe,Ge,De){"use strict";var me=oe("has-tostringtag/shams")(),ce=oe("call-bind/callBound"),we=ce("Object.prototype.toString"),Le=function(xe){return me&&xe&&typeof xe=="object"&&Symbol.toStringTag in xe?!1:we(xe)==="[object Arguments]"},Se=function(xe){return Le(xe)?!0:xe!==null&&typeof xe=="object"&&typeof xe.length=="number"&&xe.length>=0&&we(xe)!=="[object Array]"&&we(xe.callee)==="[object Function]"},Oe=function(){return Le(arguments)}();Le.isLegacyArguments=Se,Ge.exports=Oe?Le:Se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(oe,Ge,De){Ge.exports=function(we){return we!=null&&(me(we)||ce(we)||!!we._isBuffer)};function me(we){return!!we.constructor&&typeof we.constructor.isBuffer=="function"&&we.constructor.isBuffer(we)}function ce(we){return typeof we.readFloatLE=="function"&&typeof we.slice=="function"&&me(we.slice(0,0))}},{}],367:[function(oe,Ge,De){"use strict";var me=Function.prototype.toString,ce=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,we,Le;if(typeof ce=="function"&&typeof Object.defineProperty=="function")try{we=Object.defineProperty({},"length",{get:function(){throw Le}}),Le={},ce(function(){throw 42},null,we)}catch(Fe){Fe!==Le&&(ce=null)}else ce=null;var Se=/^\s*class\b/,Oe=function(je){try{var ke=me.call(je);return Se.test(ke)}catch(Ae){return!1}},ve=function(je){try{return Oe(je)?!1:(me.call(je),!0)}catch(ke){return!1}},xe=Object.prototype.toString,fe="[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[,]),be=function(){return!1};if(typeof document=="object"){var Ce=document.all;xe.call(Ce)===xe.call(document.all)&&(be=function(je){if((pe||!je)&&(typeof je=="undefined"||typeof je=="object"))try{var ke=xe.call(je);return(ke===ae||ke===re||ke===le||ke===fe)&&je("")==null}catch(Ae){}return!1})}Ge.exports=ce?function(je){if(be(je))return!0;if(!je||typeof je!="function"&&typeof je!="object")return!1;try{ce(je,null,we)}catch(ke){if(ke!==Le)return!1}return!Oe(je)&&ve(je)}:function(je){if(be(je))return!0;if(!je||typeof je!="function"&&typeof je!="object")return!1;if(ue)return ve(je);if(Oe(je))return!1;var ke=xe.call(je);return ke!==z&&ke!==ee&&!/^\[object HTML/.test(ke)?!1:ve(je)}},{}],368:[function(oe,Ge,De){"use strict";var me=Object.prototype.toString,ce=Function.prototype.toString,we=/^\s*(?:function)?\*/,Le=oe("has-tostringtag/shams")(),Se=Object.getPrototypeOf,Oe=function(){if(!Le)return!1;try{return Function("return function*() {}")()}catch(xe){}},ve;Ge.exports=function(fe){if(typeof fe!="function")return!1;if(we.test(ce.call(fe)))return!0;if(!Le){var z=me.call(fe);return z==="[object GeneratorFunction]"}if(!Se)return!1;if(typeof ve=="undefined"){var ee=Oe();ve=ee?Se(ee):!1}return Se(fe)===ve}},{"has-tostringtag/shams":353}],369:[function(oe,Ge,De){"use strict";var me=oe("which-typed-array");Ge.exports=function(we){return!!me(we)}},{"which-typed-array":420}],370:[function(oe,Ge,De){var me={}.toString;Ge.exports=Array.isArray||function(ce){return me.call(ce)=="[object Array]"}},{}],371:[function(oe,Ge,De){(function(me){(function(){(function(ce,we){typeof De=="object"&&typeof Ge!="undefined"?Ge.exports=we(ce):typeof $e=="function"&&$e.amd?$e(we):we(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof me!="undefined"?me:this,function(ce){"use strict";ce=ce||{};var we=ce.Base64,Le="2.6.4",Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oe=function(ct){for(var vt={},nt=0,it=ct.length;nt<it;nt++)vt[ct.charAt(nt)]=nt;return vt}(Se),ve=String.fromCharCode,xe=function(ct){if(ct.length<2){var vt=ct.charCodeAt(0);return vt<128?ct:vt<2048?ve(192|vt>>>6)+ve(128|vt&63):ve(224|vt>>>12&15)+ve(128|vt>>>6&63)+ve(128|vt&63)}else{var vt=65536+(ct.charCodeAt(0)-55296)*1024+(ct.charCodeAt(1)-56320);return ve(240|vt>>>18&7)+ve(128|vt>>>12&63)+ve(128|vt>>>6&63)+ve(128|vt&63)}},fe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(ct){return ct.replace(fe,xe)},ee=function(ct){var vt=[0,2,1][ct.length%3],nt=ct.charCodeAt(0)<<16|(ct.length>1?ct.charCodeAt(1):0)<<8|(ct.length>2?ct.charCodeAt(2):0),it=[Se.charAt(nt>>>18),Se.charAt(nt>>>12&63),vt>=2?"=":Se.charAt(nt>>>6&63),vt>=1?"=":Se.charAt(nt&63)];return it.join("")},ae=ce.btoa&&typeof ce.btoa=="function"?function(ct){return ce.btoa(ct)}:function(ct){if(ct.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ct.replace(/[\s\S]{1,3}/g,ee)},re=function(ct){return ae(z(String(ct)))},le=function(ct){return ct.replace(/[+\/]/g,function(vt){return vt=="+"?"-":"_"}).replace(/=/g,"")},ue=function(ct,vt){return vt?le(re(ct)):re(ct)},pe=function(ct){return ue(ct,!0)},be;ce.Uint8Array&&(be=function(ct,vt){for(var nt="",it=0,pt=ct.length;it<pt;it+=3){var xt=ct[it],yt=ct[it+1],ft=ct[it+2],gt=xt<<16|yt<<8|ft;nt+=Se.charAt(gt>>>18)+Se.charAt(gt>>>12&63)+(typeof yt!="undefined"?Se.charAt(gt>>>6&63):"=")+(typeof ft!="undefined"?Se.charAt(gt&63):"=")}return vt?le(nt):nt});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Fe=function(ct){switch(ct.length){case 4:var vt=(7&ct.charCodeAt(0))<<18|(63&ct.charCodeAt(1))<<12|(63&ct.charCodeAt(2))<<6|63&ct.charCodeAt(3),nt=vt-65536;return ve((nt>>>10)+55296)+ve((nt&1023)+56320);case 3:return ve((15&ct.charCodeAt(0))<<12|(63&ct.charCodeAt(1))<<6|63&ct.charCodeAt(2));default:return ve((31&ct.charCodeAt(0))<<6|63&ct.charCodeAt(1))}},je=function(ct){return ct.replace(Ce,Fe)},ke=function(ct){var vt=ct.length,nt=vt%4,it=(vt>0?Oe[ct.charAt(0)]<<18:0)|(vt>1?Oe[ct.charAt(1)]<<12:0)|(vt>2?Oe[ct.charAt(2)]<<6:0)|(vt>3?Oe[ct.charAt(3)]:0),pt=[ve(it>>>16),ve(it>>>8&255),ve(it&255)];return pt.length-=[0,0,2,1][nt],pt.join("")},Ae=ce.atob&&typeof ce.atob=="function"?function(ct){return ce.atob(ct)}:function(ct){return ct.replace(/\S{1,4}/g,ke)},Be=function(ct){return Ae(String(ct).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(ct){return je(Ae(ct))},et=function(ct){return String(ct).replace(/[-_]/g,function(vt){return vt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ze=function(ct){return _e(et(ct))},Xe;ce.Uint8Array&&(Xe=function(ct){return Uint8Array.from(Be(et(ct)),function(vt){return vt.charCodeAt(0)})});var Qe=function(){var ct=ce.Base64;return ce.Base64=we,ct};if(ce.Base64={VERSION:Le,atob:Be,btoa:ae,fromBase64:ze,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:je,decode:ze,noConflict:Qe,fromUint8Array:be,toUint8Array:Xe},typeof Object.defineProperty=="function"){var lt=function(ct){return{value:ct,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",lt(function(){return ze(this)})),Object.defineProperty(String.prototype,"toBase64",lt(function(ct){return ue(this,ct)})),Object.defineProperty(String.prototype,"toBase64URI",lt(function(){return ue(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),typeof Ge!="undefined"&&Ge.exports?Ge.exports.Base64=ce.Base64:typeof $e=="function"&&$e.amd&&$e([],function(){return ce.Base64}),{Base64:ce.Base64}})}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(oe,Ge,De){"use strict";Ge.exports=ce;var me=Object.prototype.hasOwnProperty;function ce(we,Le,Se){if(!we)throw new TypeError("argument dest is required");if(!Le)throw new TypeError("argument src is required");return Se===void 0&&(Se=!0),Object.getOwnPropertyNames(Le).forEach(function(ve){if(!(!Se&&me.call(we,ve))){var xe=Object.getOwnPropertyDescriptor(Le,ve);Object.defineProperty(we,ve,xe)}}),we}},{}],373:[function(oe,Ge,De){"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 me(){this._types=Object.create(null),this._extensions=Object.create(null);for(var ce=0;ce<arguments.length;ce++)this.define(arguments[ce]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}me.prototype.define=function(ce,we){for(var Le in ce){var Se=ce[Le].map(function(fe){return fe.toLowerCase()});Le=Le.toLowerCase();for(var Oe=0;Oe<Se.length;Oe++){var ve=Se[Oe];if(ve[0]!=="*"){if(!we&&ve in this._types)throw new Error('Attempt to change mapping for "'+ve+'" extension from "'+this._types[ve]+'" to "'+Le+'". Pass `force=true` to allow this, otherwise remove "'+ve+'" from the list of extensions for "'+Le+'".');this._types[ve]=Le}}if(we||!this._extensions[Le]){var xe=Se[0];this._extensions[Le]=xe[0]!=="*"?xe:xe.substr(1)}}},me.prototype.getType=function(ce){ce=String(ce);var we=ce.replace(/^.*[/\\]/,"").toLowerCase(),Le=we.replace(/^.*\./,"").toLowerCase(),Se=we.length<ce.length,Oe=Le.length<we.length-1;return(Oe||!Se)&&this._types[Le]||null},me.prototype.getExtension=function(ce){return ce=/^\s*([^;\s]*)/.test(ce)&&RegExp.$1,ce&&this._extensions[ce.toLowerCase()]||null},Ge.exports=me},{"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,Ge,De){"use strict";var me=oe("./Mime");Ge.exports=new me(oe("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(oe,Ge,De){"use strict";Ge.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,Ge,De){var me=1e3,ce=me*60,we=ce*60,Le=we*24,Se=Le*7,Oe=Le*365.25;Ge.exports=function(ee,ae){ae=ae||{};var re=typeof ee;if(re==="string"&&ee.length>0)return ve(ee);if(re==="number"&&isFinite(ee))return ae.long?fe(ee):xe(ee);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ee))};function ve(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*Oe;case"weeks":case"week":case"w":return re*Se;case"days":case"day":case"d":return re*Le;case"hours":case"hour":case"hrs":case"hr":case"h":return re*we;case"minutes":case"minute":case"mins":case"min":case"m":return re*ce;case"seconds":case"second":case"secs":case"sec":case"s":return re*me;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return re;default:return}}}}function xe(ee){var ae=Math.abs(ee);return ae>=Le?Math.round(ee/Le)+"d":ae>=we?Math.round(ee/we)+"h":ae>=ce?Math.round(ee/ce)+"m":ae>=me?Math.round(ee/me)+"s":ee+"ms"}function fe(ee){var ae=Math.abs(ee);return ae>=Le?z(ee,ae,Le,"day"):ae>=we?z(ee,ae,we,"hour"):ae>=ce?z(ee,ae,ce,"minute"):ae>=me?z(ee,ae,me,"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,Ge,De){"use strict";var me=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;function Le(Oe){if(Oe==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(Oe)}function Se(){try{if(!Object.assign)return!1;var Oe=new String("abc");if(Oe[5]="de",Object.getOwnPropertyNames(Oe)[0]==="5")return!1;for(var ve={},xe=0;xe<10;xe++)ve["_"+String.fromCharCode(xe)]=xe;var fe=Object.getOwnPropertyNames(ve).map(function(ee){return ve[ee]});if(fe.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}}Ge.exports=Se()?Object.assign:function(Oe,ve){for(var xe,fe=Le(Oe),z,ee=1;ee<arguments.length;ee++){xe=Object(arguments[ee]);for(var ae in xe)ce.call(xe,ae)&&(fe[ae]=xe[ae]);if(me){z=me(xe);for(var re=0;re<z.length;re++)we.call(xe,z[re])&&(fe[z[re]]=xe[z[re]])}}return fe}},{}],378:[function(oe,Ge,De){(function(me){(function(){"use strict";function ce(Oe){if(typeof Oe!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Oe))}function we(Oe,ve){for(var xe="",fe=0,z=-1,ee=0,ae,re=0;re<=Oe.length;++re){if(re<Oe.length)ae=Oe.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(xe.length<2||fe!==2||xe.charCodeAt(xe.length-1)!==46||xe.charCodeAt(xe.length-2)!==46){if(xe.length>2){var le=xe.lastIndexOf("/");if(le!==xe.length-1){le===-1?(xe="",fe=0):(xe=xe.slice(0,le),fe=xe.length-1-xe.lastIndexOf("/")),z=re,ee=0;continue}}else if(xe.length===2||xe.length===1){xe="",fe=0,z=re,ee=0;continue}}ve&&(xe.length>0?xe+="/..":xe="..",fe=2)}else xe.length>0?xe+="/"+Oe.slice(z+1,re):xe=Oe.slice(z+1,re),fe=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return xe}function Le(Oe,ve){var xe=ve.dir||ve.root,fe=ve.base||(ve.name||"")+(ve.ext||"");return xe?xe===ve.root?xe+fe:xe+Oe+fe:fe}var Se={resolve:function(){for(var ve="",xe=!1,fe,z=arguments.length-1;z>=-1&&!xe;z--){var ee;z>=0?ee=arguments[z]:(fe===void 0&&(fe=me.cwd()),ee=fe),ce(ee),ee.length!==0&&(ve=ee+"/"+ve,xe=ee.charCodeAt(0)===47)}return ve=we(ve,!xe),xe?ve.length>0?"/"+ve:"/":ve.length>0?ve:"."},normalize:function(ve){if(ce(ve),ve.length===0)return".";var xe=ve.charCodeAt(0)===47,fe=ve.charCodeAt(ve.length-1)===47;return ve=we(ve,!xe),ve.length===0&&!xe&&(ve="."),ve.length>0&&fe&&(ve+="/"),xe?"/"+ve:ve},isAbsolute:function(ve){return ce(ve),ve.length>0&&ve.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ve,xe=0;xe<arguments.length;++xe){var fe=arguments[xe];ce(fe),fe.length>0&&(ve===void 0?ve=fe:ve+="/"+fe)}return ve===void 0?".":Se.normalize(ve)},relative:function(ve,xe){if(ce(ve),ce(xe),ve===xe||(ve=Se.resolve(ve),xe=Se.resolve(xe),ve===xe))return"";for(var fe=1;fe<ve.length&&ve.charCodeAt(fe)===47;++fe);for(var z=ve.length,ee=z-fe,ae=1;ae<xe.length&&xe.charCodeAt(ae)===47;++ae);for(var re=xe.length,le=re-ae,ue=ee<le?ee:le,pe=-1,be=0;be<=ue;++be){if(be===ue){if(le>ue){if(xe.charCodeAt(ae+be)===47)return xe.slice(ae+be+1);if(be===0)return xe.slice(ae+be)}else ee>ue&&(ve.charCodeAt(fe+be)===47?pe=be:be===0&&(pe=0));break}var Ce=ve.charCodeAt(fe+be),Fe=xe.charCodeAt(ae+be);if(Ce!==Fe)break;Ce===47&&(pe=be)}var je="";for(be=fe+pe+1;be<=z;++be)(be===z||ve.charCodeAt(be)===47)&&(je.length===0?je+="..":je+="/..");return je.length>0?je+xe.slice(ae+pe):(ae+=pe,xe.charCodeAt(ae)===47&&++ae,xe.slice(ae))},_makeLong:function(ve){return ve},dirname:function(ve){if(ce(ve),ve.length===0)return".";for(var xe=ve.charCodeAt(0),fe=xe===47,z=-1,ee=!0,ae=ve.length-1;ae>=1;--ae)if(xe=ve.charCodeAt(ae),xe===47){if(!ee){z=ae;break}}else ee=!1;return z===-1?fe?"/":".":fe&&z===1?"//":ve.slice(0,z)},basename:function(ve,xe){if(xe!==void 0&&typeof xe!="string")throw new TypeError('"ext" argument must be a string');ce(ve);var fe=0,z=-1,ee=!0,ae;if(xe!==void 0&&xe.length>0&&xe.length<=ve.length){if(xe.length===ve.length&&xe===ve)return"";var re=xe.length-1,le=-1;for(ae=ve.length-1;ae>=0;--ae){var ue=ve.charCodeAt(ae);if(ue===47){if(!ee){fe=ae+1;break}}else le===-1&&(ee=!1,le=ae+1),re>=0&&(ue===xe.charCodeAt(re)?--re===-1&&(z=ae):(re=-1,z=le))}return fe===z?z=le:z===-1&&(z=ve.length),ve.slice(fe,z)}else{for(ae=ve.length-1;ae>=0;--ae)if(ve.charCodeAt(ae)===47){if(!ee){fe=ae+1;break}}else z===-1&&(ee=!1,z=ae+1);return z===-1?"":ve.slice(fe,z)}},extname:function(ve){ce(ve);for(var xe=-1,fe=0,z=-1,ee=!0,ae=0,re=ve.length-1;re>=0;--re){var le=ve.charCodeAt(re);if(le===47){if(!ee){fe=re+1;break}continue}z===-1&&(ee=!1,z=re+1),le===46?xe===-1?xe=re:ae!==1&&(ae=1):xe!==-1&&(ae=-1)}return xe===-1||z===-1||ae===0||ae===1&&xe===z-1&&xe===fe+1?"":ve.slice(xe,z)},format:function(ve){if(ve===null||typeof ve!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ve);return Le("/",ve)},parse:function(ve){ce(ve);var xe={root:"",dir:"",base:"",ext:"",name:""};if(ve.length===0)return xe;var fe=ve.charCodeAt(0),z=fe===47,ee;z?(xe.root="/",ee=1):ee=0;for(var ae=-1,re=0,le=-1,ue=!0,pe=ve.length-1,be=0;pe>=ee;--pe){if(fe=ve.charCodeAt(pe),fe===47){if(!ue){re=pe+1;break}continue}le===-1&&(ue=!1,le=pe+1),fe===46?ae===-1?ae=pe:be!==1&&(be=1):ae!==-1&&(be=-1)}return ae===-1||le===-1||be===0||be===1&&ae===le-1&&ae===re+1?le!==-1&&(re===0&&z?xe.base=xe.name=ve.slice(1,le):xe.base=xe.name=ve.slice(re,le)):(re===0&&z?(xe.name=ve.slice(1,ae),xe.base=ve.slice(1,le)):(xe.name=ve.slice(re,ae),xe.base=ve.slice(re,le)),xe.ext=ve.slice(ae,le)),re>0?xe.dir=ve.slice(0,re-1):z&&(xe.dir="/"),xe},sep:"/",delimiter:":",win32:null,posix:null};Se.posix=Se,Ge.exports=Se}).call(this)}).call(this,oe("_process"))},{_process:467}],379:[function(oe,Ge,De){(function(me){(function(){(function(){"use strict";var ce={function:!0,object:!0},we=ce[typeof window]&&window||this,Le=we,Se=ce[typeof De]&&De,Oe=ce[typeof Ge]&&Ge&&!Ge.nodeType&&Ge,ve=Se&&Oe&&typeof me=="object"&&me;ve&&(ve.global===ve||ve.window===ve||ve.self===ve)&&(we=ve);var xe=Math.pow(2,53)-1,fe=/\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,Xe,Qe){var lt={"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 Xe&&Qe&&/^Win/i.test(ze)&&!/^Windows Phone /i.test(ze)&&(lt=lt[/[\d.]+$/.exec(ze)])&&(ze="Windows "+lt),ze=String(ze),Xe&&Qe&&(ze=ze.replace(RegExp(Xe,"i"),Qe)),ze=be(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,Xe){var Qe=-1,lt=ze?ze.length:0;if(typeof lt=="number"&<>-1&<<=xe)for(;++Qe<lt;)Xe(ze[Qe],Qe,ze);else Ce(ze,Xe)}function be(ze){return ze=Be(ze),/^(?:webOS|i(?:OS|P))/.test(ze)?ze:le(ze)}function Ce(ze,Xe){for(var Qe in ze)ae.call(ze,Qe)&&Xe(ze[Qe],Qe,ze)}function Fe(ze){return ze==null?le(ze):re.call(ze).slice(8,-1)}function je(ze,Xe){var Qe=ze!=null?typeof ze[Xe]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Qe)&&(Qe=="object"?!!ze[Xe]:!0)}function ke(ze){return String(ze).replace(/([ -])(?!$)/g,"$1?")}function Ae(ze,Xe){var Qe=null;return pe(ze,function(lt,ct){Qe=Xe(Qe,lt,ct,ze)}),Qe}function Be(ze){return String(ze).replace(/^ +| +$/g,"")}function _e(ze){var Xe=we,Qe=ze&&typeof ze=="object"&&Fe(ze)!="String";Qe&&(Xe=ze,ze=null);var lt=Xe.navigator||{},ct=lt.userAgent||"";ze||(ze=ct);var vt=Qe||z==Le,nt=Qe?!!lt.likeChrome:/\bChrome\b/.test(ze)&&!/internal|\n/i.test(re.toString()),it="Object",pt=Qe?it:"ScriptBridgingProxyObject",xt=Qe?it:"Environment",yt=Qe&&Xe.java?"JavaPackage":Fe(Xe.java),ft=Qe?it:"RuntimeObject",gt=/\bJava/.test(yt)&&Xe.java,mt=gt&&Fe(Xe.environment)==xt,Nt=gt?"a":"\u03B1",Tt=gt?"b":"\u03B2",zt=Xe.document||{},St=Xe.operamini||Xe.opera,wt=fe.test(wt=Qe&&St?St["[[Class]]"]:Fe(St))?wt:St=null,at,Ye=ze,Pe=[],Te=null,Ve=ze==ct,Ze=Ve&&St&&typeof St.version=="function"&&St.version(),Ee,He=Ct([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),We=Lt(["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"]),Ke=Vt([{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"]),Je=ht({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}}),dt=en(["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 Ct(Ft){return Ae(Ft,function(Xt,tn){return Xt||RegExp("\\b"+(tn.pattern||ke(tn))+"\\b","i").exec(ze)&&(tn.label||tn)})}function ht(Ft){return Ae(Ft,function(Xt,tn,dn){return Xt||(tn[Ke]||tn[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ke)]||RegExp("\\b"+ke(dn)+"(?:\\b|\\w*\\d)","i").exec(ze))&&dn})}function Lt(Ft){return Ae(Ft,function(Xt,tn){return Xt||RegExp("\\b"+(tn.pattern||ke(tn))+"\\b","i").exec(ze)&&(tn.label||tn)})}function en(Ft){return Ae(Ft,function(Xt,tn){var dn=tn.pattern||ke(tn);return!Xt&&(Xt=RegExp("\\b"+dn+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ze))&&(Xt=ue(Xt,dn,tn.label||tn)),Xt})}function Vt(Ft){return Ae(Ft,function(Xt,tn){var dn=tn.pattern||ke(tn);return!Xt&&(Xt=RegExp("\\b"+dn+" *\\d+[.\\w_]*","i").exec(ze)||RegExp("\\b"+dn+" *\\w+-[\\w]*","i").exec(ze)||RegExp("\\b"+dn+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ze))&&((Xt=String(tn.label&&!RegExp(dn,"i").test(tn.label)?tn.label:Xt).split("/"))[1]&&!/[\d.]+/.test(Xt[0])&&(Xt[0]+=" "+Xt[1]),tn=tn.label||tn,Xt=be(Xt[0].replace(RegExp(dn,"i"),tn).replace(RegExp("; *(?:"+tn+"[_-])?","i")," ").replace(RegExp("("+tn+")[-_.]?(\\w)","i"),"$1 $2"))),Xt})}function Kt(Ft){return Ae(Ft,function(Xt,tn){return Xt||(RegExp(tn+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ze)||0)[1]||null})}function Ut(){return this.description||""}if(He&&(He=[He]),/\bAndroid\b/.test(dt)&&!Ke&&(at=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ze))&&(Ke=Be(at[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Je&&!Ke?Ke=Vt([Je]):Je&&Ke&&(Ke=Ke.replace(RegExp("^("+ke(Je)+")[-_.\\s]","i"),Je+" ").replace(RegExp("^("+ke(Je)+")[-_.]?(\\w)","i"),Je+" $2")),(at=/\bGoogle TV\b/.exec(Ke))&&(Ke=at[0]),/\bSimulator\b/i.test(ze)&&(Ke=(Ke?Ke+" ":"")+"Simulator"),We=="Opera Mini"&&/\bOPiOS\b/.test(ze)&&Pe.push("running in Turbo/Uncompressed mode"),We=="IE"&&/\blike iPhone OS\b/.test(ze)?(at=_e(ze.replace(/like iPhone OS/,"")),Je=at.manufacturer,Ke=at.product):/^iP/.test(Ke)?(We||(We="Safari"),dt="iOS"+((at=/ OS ([\d_]+)/i.exec(ze))?" "+at[1].replace(/_/g,"."):"")):We=="Konqueror"&&/^Linux\b/i.test(dt)?dt="Kubuntu":Je&&Je!="Google"&&(/Chrome/.test(We)&&!/\bMobile Safari\b/i.test(ze)||/\bVita\b/.test(Ke))||/\bAndroid\b/.test(dt)&&/^Chrome/.test(We)&&/\bVersion\//i.test(ze)?(We="Android Browser",dt=/\bAndroid\b/.test(dt)?dt:"Android"):We=="Silk"?(/\bMobi/i.test(ze)||(dt="Android",Pe.unshift("desktop mode")),/Accelerated *= *true/i.test(ze)&&Pe.unshift("accelerated")):We=="UC Browser"&&/\bUCWEB\b/.test(ze)?Pe.push("speed mode"):We=="PaleMoon"&&(at=/\bFirefox\/([\d.]+)\b/.exec(ze))?Pe.push("identifying as Firefox "+at[1]):We=="Firefox"&&(at=/\b(Mobile|Tablet|TV)\b/i.exec(ze))?(dt||(dt="Firefox OS"),Ke||(Ke=at[1])):!We||(at=!/\bMinefield\b/i.test(ze)&&/\b(?:Firefox|Safari)\b/.exec(We))?(We&&!Ke&&/[\/,]|^[^(]+?\)/.test(ze.slice(ze.indexOf(at+"/")+8))&&(We=null),(at=Ke||Je||dt)&&(Ke||Je||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(dt))&&(We=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(dt)?dt:at)+" Browser")):We=="Electron"&&(at=(/\bChrome\/([\d.]+)\b/.exec(ze)||0)[1])&&Pe.push("Chromium "+at),Ze||(Ze=Kt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",ke(We),"(?:Firefox|Minefield|NetFront)"])),(at=He=="iCab"&&parseFloat(Ze)>3&&"WebKit"||/\bOpera\b/.test(We)&&(/\bOPR\b/.test(ze)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ze)&&!/^(?:Trident|EdgeHTML)$/.test(He)&&"WebKit"||!He&&/\bMSIE\b/i.test(ze)&&(dt=="Mac OS"?"Tasman":"Trident")||He=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(We)&&"NetFront")&&(He=[at]),We=="IE"&&(at=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ze)||0)[1])?(We+=" Mobile",dt="Windows Phone "+(/\+$/.test(at)?at:at+".x"),Pe.unshift("desktop mode")):/\bWPDesktop\b/i.test(ze)?(We="IE Mobile",dt="Windows Phone 8.x",Pe.unshift("desktop mode"),Ze||(Ze=(/\brv:([\d.]+)/.exec(ze)||0)[1])):We!="IE"&&He=="Trident"&&(at=/\brv:([\d.]+)/.exec(ze))&&(We&&Pe.push("identifying as "+We+(Ze?" "+Ze:"")),We="IE",Ze=at[1]),Ve){if(je(Xe,"global"))if(gt&&(at=gt.lang.System,Ye=at.getProperty("os.arch"),dt=dt||at.getProperty("os.name")+" "+at.getProperty("os.version")),mt){try{Ze=Xe.require("ringo/engine").version.join("."),We="RingoJS"}catch(Ft){(at=Xe.system)&&at.global.system==Xe.system&&(We="Narwhal",dt||(dt=at[0].os||null))}We||(We="Rhino")}else typeof Xe.process=="object"&&!Xe.process.browser&&(at=Xe.process)&&(typeof at.versions=="object"&&(typeof at.versions.electron=="string"?(Pe.push("Node "+at.versions.node),We="Electron",Ze=at.versions.electron):typeof at.versions.nw=="string"&&(Pe.push("Chromium "+Ze,"Node "+at.versions.node),We="NW.js",Ze=at.versions.nw)),We||(We="Node.js",Ye=at.arch,dt=at.platform,Ze=/[\d.]+/.exec(at.version),Ze=Ze?Ze[0]:null));else Fe(at=Xe.runtime)==pt?(We="Adobe AIR",dt=at.flash.system.Capabilities.os):Fe(at=Xe.phantom)==ft?(We="PhantomJS",Ze=(at=at.version||null)&&at.major+"."+at.minor+"."+at.patch):typeof zt.documentMode=="number"&&(at=/\bTrident\/(\d+)/i.exec(ze))?(Ze=[Ze,zt.documentMode],(at=+at[1]+4)!=Ze[1]&&(Pe.push("IE "+Ze[1]+" mode"),He&&(He[1]=""),Ze[1]=at),Ze=We=="IE"?String(Ze[1].toFixed(1)):Ze[0]):typeof zt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(We)&&(Pe.push("masking as "+We+" "+Ze),We="IE",Ze="11.0",He=["Trident"],dt="Windows");dt=dt&&be(dt)}if(Ze&&(at=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ze)||/(?:alpha|beta)(?: ?\d)?/i.exec(ze+";"+(Ve&<.appMinorVersion))||/\bMinefield\b/i.test(ze)&&"a")&&(Te=/b/i.test(at)?"beta":"alpha",Ze=Ze.replace(RegExp(at+"\\+?$"),"")+(Te=="beta"?Tt:Nt)+(/\d+\+?/.exec(at)||"")),We=="Fennec"||We=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(dt))We="Firefox Mobile";else if(We=="Maxthon"&&Ze)Ze=Ze.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ke))Ke=="Xbox 360"&&(dt=null),Ke=="Xbox 360"&&/\bIEMobile\b/.test(ze)&&Pe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(We)||We&&!Ke&&!/Browser|Mobi/.test(We))&&(dt=="Windows CE"||/Mobi/i.test(ze)))We+=" Mobile";else if(We=="IE"&&Ve)try{Xe.external===null&&Pe.unshift("platform preview")}catch(Ft){Pe.unshift("embedded")}else(/\bBlackBerry\b/.test(Ke)||/\bBB10\b/.test(ze))&&(at=(RegExp(Ke.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ze)||0)[1]||Ze)?(at=[at,/BB10/.test(ze)],dt=(at[1]?(Ke=null,Je="BlackBerry"):"Device Software")+" "+at[0],Ze=null):this!=Ce&&Ke!="Wii"&&(Ve&&St||/Opera/.test(We)&&/\b(?:MSIE|Firefox)\b/i.test(ze)||We=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(dt)||We=="IE"&&(dt&&!/^Win/.test(dt)&&Ze>5.5||/\bWindows XP\b/.test(dt)&&Ze>8||Ze==8&&!/\bTrident\b/.test(ze)))&&!fe.test(at=_e.call(Ce,ze.replace(fe,"")+";"))&&at.name&&(at="ing as "+at.name+((at=at.version)?" "+at:""),fe.test(We)?(/\bIE\b/.test(at)&&dt=="Mac OS"&&(dt=null),at="identify"+at):(at="mask"+at,wt?We=be(wt.replace(/([a-z])([A-Z])/g,"$1 $2")):We="Opera",/\bIE\b/.test(at)&&(dt=null),Ve||(Ze=null)),He=["Presto"],Pe.push(at));(at=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ze)||0)[1])&&(at=[parseFloat(at.replace(/\.(\d)$/,".0$1")),at],We=="Safari"&&at[1].slice(-1)=="+"?(We="WebKit Nightly",Te="alpha",Ze=at[1].slice(0,-1)):(Ze==at[1]||Ze==(at[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ze)||0)[1]))&&(Ze=null),at[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ze)||0)[1],at[0]==537.36&&at[2]==537.36&&parseFloat(at[1])>=28&&He=="WebKit"&&(He=["Blink"]),!Ve||!nt&&!at[1]?(He&&(He[1]="like Safari"),at=(at=at[0],at<400?1:at<500?2:at<526?3:at<533?4:at<534?"4+":at<535?5:at<537?6:at<538?7:at<601?8:at<602?9:at<604?10:at<606?11:at<608?12:"12")):(He&&(He[1]="like Chrome"),at=at[1]||(at=at[0],at<530?1:at<532?2:at<532.05?3:at<533?4:at<534.03?5:at<534.07?6:at<534.1?7:at<534.13?8:at<534.16?9:at<534.24?10:at<534.3?11:at<535.01?12:at<535.02?"13+":at<535.07?15:at<535.11?16:at<535.19?17:at<536.05?18:at<536.1?19:at<537.01?20:at<537.11?"21+":at<537.13?23:at<537.18?24:at<537.24?25:at<537.36?26:He!="Blink"?"27":"28")),He&&(He[1]+=" "+(at+=typeof at=="number"?".x":/[.+]/.test(at)?"":"+")),We=="Safari"&&(!Ze||parseInt(Ze)>45)?Ze=at:We=="Chrome"&&/\bHeadlessChrome/i.test(ze)&&Pe.unshift("headless")),We=="Opera"&&(at=/\bzbov|zvav$/.exec(dt))?(We+=" ",Pe.unshift("desktop mode"),at=="zvav"?(We+="Mini",Ze=null):We+="Mobile",dt=dt.replace(RegExp(" *"+at+"$"),"")):We=="Safari"&&/\bChrome\b/.exec(He&&He[1])?(Pe.unshift("desktop mode"),We="Chrome Mobile",Ze=null,/\bOS X\b/.test(dt)?(Je="Apple",dt="iOS 4.3+"):dt=null):/\bSRWare Iron\b/.test(We)&&!Ze&&(Ze=Kt("Chrome")),Ze&&Ze.indexOf(at=/[\d.]+$/.exec(dt))==0&&ze.indexOf("/"+at+"-")>-1&&(dt=Be(dt.replace(at,""))),dt&&dt.indexOf(We)!=-1&&!RegExp(We+" OS").test(dt)&&(dt=dt.replace(RegExp(" *"+ke(We)+" *"),"")),He&&!/\b(?:Avant|Nook)\b/.test(We)&&(/Browser|Lunascape|Maxthon/.test(We)||We!="Safari"&&/^iOS/.test(dt)&&/\bSafari\b/.test(He[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(We)&&He[1])&&(at=He[He.length-1])&&Pe.push(at),Pe.length&&(Pe=["("+Pe.join("; ")+")"]),Je&&Ke&&Ke.indexOf(Je)<0&&Pe.push("on "+Je),Ke&&Pe.push((/^on /.test(Pe[Pe.length-1])?"":"on ")+Ke),dt&&(at=/ ([\d.+]+)$/.exec(dt),Ee=at&&dt.charAt(dt.length-at[0].length-1)=="/",dt={architecture:32,family:at&&!Ee?dt.replace(at[0],""):dt,version:at?at[1]:null,toString:function(){var Ft=this.version;return this.family+(Ft&&!Ee?" "+Ft:"")+(this.architecture==64?" 64-bit":"")}}),(at=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ye))&&!/\bi686\b/i.test(Ye)?(dt&&(dt.architecture=64,dt.family=dt.family.replace(RegExp(" *"+at),"")),We&&(/\bWOW64\b/i.test(ze)||Ve&&/\w(?:86|32)$/.test(lt.cpuClass||lt.platform)&&!/\bWin64; x64\b/i.test(ze))&&Pe.unshift("32-bit")):dt&&/^OS X/.test(dt.family)&&We=="Chrome"&&parseFloat(Ze)>=39&&(dt.architecture=64),ze||(ze=null);var rn={};return rn.description=ze,rn.layout=He&&He[0],rn.manufacturer=Je,rn.name=We,rn.prerelease=Te,rn.product=Ke,rn.ua=ze,rn.version=We&&Ze,rn.os=dt||{architecture:null,family:null,version:null,toString:function(){return"null"}},rn.parse=_e,rn.toString=Ut,rn.version&&Pe.unshift(Ze),rn.name&&Pe.unshift(We),dt&&We&&!(dt==String(dt).split(" ")[0]&&(dt==We.split(" ")[0]||Ke))&&Pe.push(Ke?"("+dt+")":"on "+dt),Pe.length&&(rn.description=Pe.join(" ")),rn}var et=_e();typeof $e=="function"&&typeof $e.amd=="object"&&$e.amd?(we.platform=et,$e(function(){return et})):Se&&Oe?Ce(et,function(ze,Xe){Se[Xe]=ze}):we.platform=et}).call(this)}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(oe,Ge,De){(function(me){(function(){"use strict";typeof me=="undefined"||!me.version||me.version.indexOf("v0.")===0||me.version.indexOf("v1.")===0&&me.version.indexOf("v1.8.")!==0?Ge.exports={nextTick:ce}:Ge.exports=me;function ce(we,Le,Se,Oe){if(typeof we!="function")throw new TypeError('"callback" argument must be a function');var ve=arguments.length,xe,fe;switch(ve){case 0:case 1:return me.nextTick(we);case 2:return me.nextTick(function(){we.call(null,Le)});case 3:return me.nextTick(function(){we.call(null,Le,Se)});case 4:return me.nextTick(function(){we.call(null,Le,Se,Oe)});default:for(xe=new Array(ve-1),fe=0;fe<xe.length;)xe[fe++]=arguments[fe];return me.nextTick(function(){we.apply(null,xe)})}}}).call(this)}).call(this,oe("_process"))},{_process:467}],381:[function(oe,Ge,De){var me=Ge.exports={},ce,we;function Le(){throw new Error("setTimeout has not been defined")}function Se(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ce=setTimeout:ce=Le}catch(pe){ce=Le}try{typeof clearTimeout=="function"?we=clearTimeout:we=Se}catch(pe){we=Se}})();function Oe(pe){if(ce===setTimeout)return setTimeout(pe,0);if((ce===Le||!ce)&&setTimeout)return ce=setTimeout,setTimeout(pe,0);try{return ce(pe,0)}catch(be){try{return ce.call(null,pe,0)}catch(Ce){return ce.call(this,pe,0)}}}function ve(pe){if(we===clearTimeout)return clearTimeout(pe);if((we===Se||!we)&&clearTimeout)return we=clearTimeout,clearTimeout(pe);try{return we(pe)}catch(be){try{return we.call(null,pe)}catch(Ce){return we.call(this,pe)}}}var xe=[],fe=!1,z,ee=-1;function ae(){!fe||!z||(fe=!1,z.length?xe=z.concat(xe):ee=-1,xe.length&&re())}function re(){if(!fe){var pe=Oe(ae);fe=!0;for(var be=xe.length;be;){for(z=xe,xe=[];++ee<be;)z&&z[ee].run();ee=-1,be=xe.length}z=null,fe=!1,ve(pe)}}me.nextTick=function(pe){var be=new Array(arguments.length-1);if(arguments.length>1)for(var Ce=1;Ce<arguments.length;Ce++)be[Ce-1]=arguments[Ce];xe.push(new le(pe,be)),xe.length===1&&!fe&&Oe(re)};function le(pe,be){this.fun=pe,this.array=be}le.prototype.run=function(){this.fun.apply(null,this.array)},me.title="browser",me.browser=!0,me.env={},me.argv=[],me.version="",me.versions={};function ue(){}me.on=ue,me.addListener=ue,me.once=ue,me.off=ue,me.removeListener=ue,me.removeAllListeners=ue,me.emit=ue,me.prependListener=ue,me.prependOnceListener=ue,me.listeners=function(pe){return[]},me.binding=function(pe){throw new Error("process.binding is not supported")},me.cwd=function(){return"/"},me.chdir=function(pe){throw new Error("process.chdir is not supported")},me.umask=function(){return 0}},{}],382:[function(oe,Ge,De){(function(me){(function(){(function(ce){var we=typeof De=="object"&&De&&!De.nodeType&&De,Le=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Se=typeof me=="object"&&me;(Se.global===Se||Se.window===Se||Se.self===Se)&&(ce=Se);var Oe,ve=2147483647,xe=36,fe=1,z=26,ee=38,ae=700,re=72,le=128,ue="-",pe=/^xn--/,be=/[^\x20-\x7E]/,Ce=/[\x2E\u3002\uFF0E\uFF61]/g,Fe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},je=xe-fe,ke=Math.floor,Ae=String.fromCharCode,Be;function _e(yt){throw new RangeError(Fe[yt])}function et(yt,ft){for(var gt=yt.length,mt=[];gt--;)mt[gt]=ft(yt[gt]);return mt}function ze(yt,ft){var gt=yt.split("@"),mt="";gt.length>1&&(mt=gt[0]+"@",yt=gt[1]),yt=yt.replace(Ce,".");var Nt=yt.split("."),Tt=et(Nt,ft).join(".");return mt+Tt}function Xe(yt){for(var ft=[],gt=0,mt=yt.length,Nt,Tt;gt<mt;)Nt=yt.charCodeAt(gt++),Nt>=55296&&Nt<=56319&><mt?(Tt=yt.charCodeAt(gt++),(Tt&64512)==56320?ft.push(((Nt&1023)<<10)+(Tt&1023)+65536):(ft.push(Nt),gt--)):ft.push(Nt);return ft}function Qe(yt){return et(yt,function(ft){var gt="";return ft>65535&&(ft-=65536,gt+=Ae(ft>>>10&1023|55296),ft=56320|ft&1023),gt+=Ae(ft),gt}).join("")}function lt(yt){return yt-48<10?yt-22:yt-65<26?yt-65:yt-97<26?yt-97:xe}function ct(yt,ft){return yt+22+75*(yt<26)-((ft!=0)<<5)}function vt(yt,ft,gt){var mt=0;for(yt=gt?ke(yt/ae):yt>>1,yt+=ke(yt/ft);yt>je*z>>1;mt+=xe)yt=ke(yt/je);return ke(mt+(je+1)*yt/(yt+ee))}function nt(yt){var ft=[],gt=yt.length,mt,Nt=0,Tt=le,zt=re,St,wt,at,Ye,Pe,Te,Ve,Ze,Ee;for(St=yt.lastIndexOf(ue),St<0&&(St=0),wt=0;wt<St;++wt)yt.charCodeAt(wt)>=128&&_e("not-basic"),ft.push(yt.charCodeAt(wt));for(at=St>0?St+1:0;at<gt;){for(Ye=Nt,Pe=1,Te=xe;at>=gt&&_e("invalid-input"),Ve=lt(yt.charCodeAt(at++)),(Ve>=xe||Ve>ke((ve-Nt)/Pe))&&_e("overflow"),Nt+=Ve*Pe,Ze=Te<=zt?fe:Te>=zt+z?z:Te-zt,!(Ve<Ze);Te+=xe)Ee=xe-Ze,Pe>ke(ve/Ee)&&_e("overflow"),Pe*=Ee;mt=ft.length+1,zt=vt(Nt-Ye,mt,Ye==0),ke(Nt/mt)>ve-Tt&&_e("overflow"),Tt+=ke(Nt/mt),Nt%=mt,ft.splice(Nt++,0,Tt)}return Qe(ft)}function it(yt){var ft,gt,mt,Nt,Tt,zt,St,wt,at,Ye,Pe,Te=[],Ve,Ze,Ee,He;for(yt=Xe(yt),Ve=yt.length,ft=le,gt=0,Tt=re,zt=0;zt<Ve;++zt)Pe=yt[zt],Pe<128&&Te.push(Ae(Pe));for(mt=Nt=Te.length,Nt&&Te.push(ue);mt<Ve;){for(St=ve,zt=0;zt<Ve;++zt)Pe=yt[zt],Pe>=ft&&Pe<St&&(St=Pe);for(Ze=mt+1,St-ft>ke((ve-gt)/Ze)&&_e("overflow"),gt+=(St-ft)*Ze,ft=St,zt=0;zt<Ve;++zt)if(Pe=yt[zt],Pe<ft&&++gt>ve&&_e("overflow"),Pe==ft){for(wt=gt,at=xe;Ye=at<=Tt?fe:at>=Tt+z?z:at-Tt,!(wt<Ye);at+=xe)He=wt-Ye,Ee=xe-Ye,Te.push(Ae(ct(Ye+He%Ee,0))),wt=ke(He/Ee);Te.push(Ae(ct(wt,0))),Tt=vt(gt,Ze,mt==Nt),gt=0,++mt}++gt,++ft}return Te.join("")}function pt(yt){return ze(yt,function(ft){return pe.test(ft)?nt(ft.slice(4).toLowerCase()):ft})}function xt(yt){return ze(yt,function(ft){return be.test(ft)?"xn--"+it(ft):ft})}if(Oe={version:"1.4.1",ucs2:{decode:Xe,encode:Qe},decode:nt,encode:it,toASCII:xt,toUnicode:pt},typeof $e=="function"&&typeof $e.amd=="object"&&$e.amd)$e("punycode",function(){return Oe});else if(we&&Le)if(Ge.exports==we)Le.exports=Oe;else for(Be in Oe)Oe.hasOwnProperty(Be)&&(we[Be]=Oe[Be]);else ce.punycode=Oe})(this)}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(oe,Ge,De){"use strict";function me(we,Le){return Object.prototype.hasOwnProperty.call(we,Le)}Ge.exports=function(we,Le,Se,Oe){Le=Le||"&",Se=Se||"=";var ve={};if(typeof we!="string"||we.length===0)return ve;var xe=/\+/g;we=we.split(Le);var fe=1e3;Oe&&typeof Oe.maxKeys=="number"&&(fe=Oe.maxKeys);var z=we.length;fe>0&&z>fe&&(z=fe);for(var ee=0;ee<z;++ee){var ae=we[ee].replace(xe,"%20"),re=ae.indexOf(Se),le,ue,pe,be;re>=0?(le=ae.substr(0,re),ue=ae.substr(re+1)):(le=ae,ue=""),pe=decodeURIComponent(le),be=decodeURIComponent(ue),me(ve,pe)?ce(ve[pe])?ve[pe].push(be):ve[pe]=[ve[pe],be]:ve[pe]=be}return ve};var ce=Array.isArray||function(we){return Object.prototype.toString.call(we)==="[object Array]"}},{}],384:[function(oe,Ge,De){"use strict";var me=function(Se){switch(typeof Se){case"string":return Se;case"boolean":return Se?"true":"false";case"number":return isFinite(Se)?Se:"";default:return""}};Ge.exports=function(Se,Oe,ve,xe){return Oe=Oe||"&",ve=ve||"=",Se===null&&(Se=void 0),typeof Se=="object"?we(Le(Se),function(fe){var z=encodeURIComponent(me(fe))+ve;return ce(Se[fe])?we(Se[fe],function(ee){return z+encodeURIComponent(me(ee))}).join(Oe):z+encodeURIComponent(me(Se[fe]))}).join(Oe):xe?encodeURIComponent(me(xe))+ve+encodeURIComponent(me(Se)):""};var ce=Array.isArray||function(Se){return Object.prototype.toString.call(Se)==="[object Array]"};function we(Se,Oe){if(Se.map)return Se.map(Oe);for(var ve=[],xe=0;xe<Se.length;xe++)ve.push(Oe(Se[xe],xe));return ve}var Le=Object.keys||function(Se){var Oe=[];for(var ve in Se)Object.prototype.hasOwnProperty.call(Se,ve)&&Oe.push(ve);return Oe}},{}],385:[function(oe,Ge,De){"use strict";De.decode=De.parse=oe("./decode"),De.encode=De.stringify=oe("./encode")},{"./decode":383,"./encode":384}],386:[function(oe,Ge,De){"use strict";var me=oe("process-nextick-args"),ce=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};Ge.exports=fe;var we=Object.create(oe("core-util-is"));we.inherits=oe("inherits");var Le=oe("./_stream_readable"),Se=oe("./_stream_writable");we.inherits(fe,Le);for(var Oe=ce(Se.prototype),ve=0;ve<Oe.length;ve++){var xe=Oe[ve];fe.prototype[xe]||(fe.prototype[xe]=Se.prototype[xe])}function fe(ae){if(!(this instanceof fe))return new fe(ae);Le.call(this,ae),Se.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(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function z(){this.allowHalfOpen||this._writableState.ended||me.nextTick(ee,this)}function ee(ae){ae.end()}Object.defineProperty(fe.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)}}),fe.prototype._destroy=function(ae,re){this.push(null),this.end(),me.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(oe,Ge,De){"use strict";Ge.exports=we;var me=oe("./_stream_transform"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(we,me);function we(Le){if(!(this instanceof we))return new we(Le);me.call(this,Le)}we.prototype._transform=function(Le,Se,Oe){Oe(null,Le)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(oe,Ge,De){(function(me,ce){(function(){"use strict";var we=oe("process-nextick-args");Ge.exports=Ae;var Le=oe("isarray"),Se;Ae.ReadableState=ke;var Oe=oe("events").EventEmitter,ve=function(Pe,Te){return Pe.listeners(Te).length},xe=oe("./internal/streams/stream"),fe=oe("safe-buffer").Buffer,z=ce.Uint8Array||function(){};function ee(Pe){return fe.from(Pe)}function ae(Pe){return fe.isBuffer(Pe)||Pe 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"),be=oe("./internal/streams/destroy"),Ce;re.inherits(Ae,xe);var Fe=["error","close","destroy","pause","resume"];function je(Pe,Te,Ve){if(typeof Pe.prependListener=="function")return Pe.prependListener(Te,Ve);!Pe._events||!Pe._events[Te]?Pe.on(Te,Ve):Le(Pe._events[Te])?Pe._events[Te].unshift(Ve):Pe._events[Te]=[Ve,Pe._events[Te]]}function ke(Pe,Te){Se=Se||oe("./_stream_duplex"),Pe=Pe||{};var Ve=Te instanceof Se;this.objectMode=!!Pe.objectMode,Ve&&(this.objectMode=this.objectMode||!!Pe.readableObjectMode);var Ze=Pe.highWaterMark,Ee=Pe.readableHighWaterMark,He=this.objectMode?16:16*1024;Ze||Ze===0?this.highWaterMark=Ze:Ve&&(Ee||Ee===0)?this.highWaterMark=Ee:this.highWaterMark=He,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=Pe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Pe.encoding&&(Ce||(Ce=oe("string_decoder/").StringDecoder),this.decoder=new Ce(Pe.encoding),this.encoding=Pe.encoding)}function Ae(Pe){if(Se=Se||oe("./_stream_duplex"),!(this instanceof Ae))return new Ae(Pe);this._readableState=new ke(Pe,this),this.readable=!0,Pe&&(typeof Pe.read=="function"&&(this._read=Pe.read),typeof Pe.destroy=="function"&&(this._destroy=Pe.destroy)),xe.call(this)}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Pe){this._readableState&&(this._readableState.destroyed=Pe)}}),Ae.prototype.destroy=be.destroy,Ae.prototype._undestroy=be.undestroy,Ae.prototype._destroy=function(Pe,Te){this.push(null),Te(Pe)},Ae.prototype.push=function(Pe,Te){var Ve=this._readableState,Ze;return Ve.objectMode?Ze=!0:typeof Pe=="string"&&(Te=Te||Ve.defaultEncoding,Te!==Ve.encoding&&(Pe=fe.from(Pe,Te),Te=""),Ze=!0),Be(this,Pe,Te,!1,Ze)},Ae.prototype.unshift=function(Pe){return Be(this,Pe,null,!0,!1)};function Be(Pe,Te,Ve,Ze,Ee){var He=Pe._readableState;if(Te===null)He.reading=!1,ct(Pe,He);else{var We;Ee||(We=et(He,Te)),We?Pe.emit("error",We):He.objectMode||Te&&Te.length>0?(typeof Te!="string"&&!He.objectMode&&Object.getPrototypeOf(Te)!==fe.prototype&&(Te=ee(Te)),Ze?He.endEmitted?Pe.emit("error",new Error("stream.unshift() after end event")):_e(Pe,He,Te,!0):He.ended?Pe.emit("error",new Error("stream.push() after EOF")):(He.reading=!1,He.decoder&&!Ve?(Te=He.decoder.write(Te),He.objectMode||Te.length!==0?_e(Pe,He,Te,!1):it(Pe,He)):_e(Pe,He,Te,!1))):Ze||(He.reading=!1)}return ze(He)}function _e(Pe,Te,Ve,Ze){Te.flowing&&Te.length===0&&!Te.sync?(Pe.emit("data",Ve),Pe.read(0)):(Te.length+=Te.objectMode?1:Ve.length,Ze?Te.buffer.unshift(Ve):Te.buffer.push(Ve),Te.needReadable&&vt(Pe)),it(Pe,Te)}function et(Pe,Te){var Ve;return!ae(Te)&&typeof Te!="string"&&Te!==void 0&&!Pe.objectMode&&(Ve=new TypeError("Invalid non-string/buffer chunk")),Ve}function ze(Pe){return!Pe.ended&&(Pe.needReadable||Pe.length<Pe.highWaterMark||Pe.length===0)}Ae.prototype.isPaused=function(){return this._readableState.flowing===!1},Ae.prototype.setEncoding=function(Pe){return Ce||(Ce=oe("string_decoder/").StringDecoder),this._readableState.decoder=new Ce(Pe),this._readableState.encoding=Pe,this};var Xe=8388608;function Qe(Pe){return Pe>=Xe?Pe=Xe:(Pe--,Pe|=Pe>>>1,Pe|=Pe>>>2,Pe|=Pe>>>4,Pe|=Pe>>>8,Pe|=Pe>>>16,Pe++),Pe}function lt(Pe,Te){return Pe<=0||Te.length===0&&Te.ended?0:Te.objectMode?1:Pe!==Pe?Te.flowing&&Te.length?Te.buffer.head.data.length:Te.length:(Pe>Te.highWaterMark&&(Te.highWaterMark=Qe(Pe)),Pe<=Te.length?Pe:Te.ended?Te.length:(Te.needReadable=!0,0))}Ae.prototype.read=function(Pe){ue("read",Pe),Pe=parseInt(Pe,10);var Te=this._readableState,Ve=Pe;if(Pe!==0&&(Te.emittedReadable=!1),Pe===0&&Te.needReadable&&(Te.length>=Te.highWaterMark||Te.ended))return ue("read: emitReadable",Te.length,Te.ended),Te.length===0&&Te.ended?wt(this):vt(this),null;if(Pe=lt(Pe,Te),Pe===0&&Te.ended)return Te.length===0&&wt(this),null;var Ze=Te.needReadable;ue("need readable",Ze),(Te.length===0||Te.length-Pe<Te.highWaterMark)&&(Ze=!0,ue("length less than watermark",Ze)),Te.ended||Te.reading?(Ze=!1,ue("reading or ended",Ze)):Ze&&(ue("do read"),Te.reading=!0,Te.sync=!0,Te.length===0&&(Te.needReadable=!0),this._read(Te.highWaterMark),Te.sync=!1,Te.reading||(Pe=lt(Ve,Te)));var Ee;return Pe>0?Ee=Nt(Pe,Te):Ee=null,Ee===null?(Te.needReadable=!0,Pe=0):Te.length-=Pe,Te.length===0&&(Te.ended||(Te.needReadable=!0),Ve!==Pe&&Te.ended&&wt(this)),Ee!==null&&this.emit("data",Ee),Ee};function ct(Pe,Te){if(!Te.ended){if(Te.decoder){var Ve=Te.decoder.end();Ve&&Ve.length&&(Te.buffer.push(Ve),Te.length+=Te.objectMode?1:Ve.length)}Te.ended=!0,vt(Pe)}}function vt(Pe){var Te=Pe._readableState;Te.needReadable=!1,Te.emittedReadable||(ue("emitReadable",Te.flowing),Te.emittedReadable=!0,Te.sync?we.nextTick(nt,Pe):nt(Pe))}function nt(Pe){ue("emit readable"),Pe.emit("readable"),mt(Pe)}function it(Pe,Te){Te.readingMore||(Te.readingMore=!0,we.nextTick(pt,Pe,Te))}function pt(Pe,Te){for(var Ve=Te.length;!Te.reading&&!Te.flowing&&!Te.ended&&Te.length<Te.highWaterMark&&(ue("maybeReadMore read 0"),Pe.read(0),Ve!==Te.length);)Ve=Te.length;Te.readingMore=!1}Ae.prototype._read=function(Pe){this.emit("error",new Error("_read() is not implemented"))},Ae.prototype.pipe=function(Pe,Te){var Ve=this,Ze=this._readableState;switch(Ze.pipesCount){case 0:Ze.pipes=Pe;break;case 1:Ze.pipes=[Ze.pipes,Pe];break;default:Ze.pipes.push(Pe);break}Ze.pipesCount+=1,ue("pipe count=%d opts=%j",Ze.pipesCount,Te);var Ee=(!Te||Te.end!==!1)&&Pe!==me.stdout&&Pe!==me.stderr,He=Ee?Ke:Ut;Ze.endEmitted?we.nextTick(He):Ve.once("end",He),Pe.on("unpipe",We);function We(rn,Ft){ue("onunpipe"),rn===Ve&&Ft&&Ft.hasUnpiped===!1&&(Ft.hasUnpiped=!0,Ct())}function Ke(){ue("onend"),Pe.end()}var Je=xt(Ve);Pe.on("drain",Je);var dt=!1;function Ct(){ue("cleanup"),Pe.removeListener("close",Vt),Pe.removeListener("finish",Kt),Pe.removeListener("drain",Je),Pe.removeListener("error",en),Pe.removeListener("unpipe",We),Ve.removeListener("end",Ke),Ve.removeListener("end",Ut),Ve.removeListener("data",Lt),dt=!0,Ze.awaitDrain&&(!Pe._writableState||Pe._writableState.needDrain)&&Je()}var ht=!1;Ve.on("data",Lt);function Lt(rn){ue("ondata"),ht=!1;var Ft=Pe.write(rn);Ft===!1&&!ht&&((Ze.pipesCount===1&&Ze.pipes===Pe||Ze.pipesCount>1&&Ye(Ze.pipes,Pe)!==-1)&&!dt&&(ue("false write response, pause",Ve._readableState.awaitDrain),Ve._readableState.awaitDrain++,ht=!0),Ve.pause())}function en(rn){ue("onerror",rn),Ut(),Pe.removeListener("error",en),ve(Pe,"error")===0&&Pe.emit("error",rn)}je(Pe,"error",en);function Vt(){Pe.removeListener("finish",Kt),Ut()}Pe.once("close",Vt);function Kt(){ue("onfinish"),Pe.removeListener("close",Vt),Ut()}Pe.once("finish",Kt);function Ut(){ue("unpipe"),Ve.unpipe(Pe)}return Pe.emit("pipe",Ve),Ze.flowing||(ue("pipe resume"),Ve.resume()),Pe};function xt(Pe){return function(){var Te=Pe._readableState;ue("pipeOnDrain",Te.awaitDrain),Te.awaitDrain&&Te.awaitDrain--,Te.awaitDrain===0&&ve(Pe,"data")&&(Te.flowing=!0,mt(Pe))}}Ae.prototype.unpipe=function(Pe){var Te=this._readableState,Ve={hasUnpiped:!1};if(Te.pipesCount===0)return this;if(Te.pipesCount===1)return Pe&&Pe!==Te.pipes?this:(Pe||(Pe=Te.pipes),Te.pipes=null,Te.pipesCount=0,Te.flowing=!1,Pe&&Pe.emit("unpipe",this,Ve),this);if(!Pe){var Ze=Te.pipes,Ee=Te.pipesCount;Te.pipes=null,Te.pipesCount=0,Te.flowing=!1;for(var He=0;He<Ee;He++)Ze[He].emit("unpipe",this,Ve);return this}var We=Ye(Te.pipes,Pe);return We===-1?this:(Te.pipes.splice(We,1),Te.pipesCount-=1,Te.pipesCount===1&&(Te.pipes=Te.pipes[0]),Pe.emit("unpipe",this,Ve),this)},Ae.prototype.on=function(Pe,Te){var Ve=xe.prototype.on.call(this,Pe,Te);if(Pe==="data")this._readableState.flowing!==!1&&this.resume();else if(Pe==="readable"){var Ze=this._readableState;!Ze.endEmitted&&!Ze.readableListening&&(Ze.readableListening=Ze.needReadable=!0,Ze.emittedReadable=!1,Ze.reading?Ze.length&&vt(this):we.nextTick(yt,this))}return Ve},Ae.prototype.addListener=Ae.prototype.on;function yt(Pe){ue("readable nexttick read 0"),Pe.read(0)}Ae.prototype.resume=function(){var Pe=this._readableState;return Pe.flowing||(ue("resume"),Pe.flowing=!0,ft(this,Pe)),this};function ft(Pe,Te){Te.resumeScheduled||(Te.resumeScheduled=!0,we.nextTick(gt,Pe,Te))}function gt(Pe,Te){Te.reading||(ue("resume read 0"),Pe.read(0)),Te.resumeScheduled=!1,Te.awaitDrain=0,Pe.emit("resume"),mt(Pe),Te.flowing&&!Te.reading&&Pe.read(0)}Ae.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 mt(Pe){var Te=Pe._readableState;for(ue("flow",Te.flowing);Te.flowing&&Pe.read()!==null;);}Ae.prototype.wrap=function(Pe){var Te=this,Ve=this._readableState,Ze=!1;Pe.on("end",function(){if(ue("wrapped end"),Ve.decoder&&!Ve.ended){var We=Ve.decoder.end();We&&We.length&&Te.push(We)}Te.push(null)}),Pe.on("data",function(We){if(ue("wrapped data"),Ve.decoder&&(We=Ve.decoder.write(We)),!(Ve.objectMode&&We==null)&&!(!Ve.objectMode&&(!We||!We.length))){var Ke=Te.push(We);Ke||(Ze=!0,Pe.pause())}});for(var Ee in Pe)this[Ee]===void 0&&typeof Pe[Ee]=="function"&&(this[Ee]=function(We){return function(){return Pe[We].apply(Pe,arguments)}}(Ee));for(var He=0;He<Fe.length;He++)Pe.on(Fe[He],this.emit.bind(this,Fe[He]));return this._read=function(We){ue("wrapped _read",We),Ze&&(Ze=!1,Pe.resume())},this},Object.defineProperty(Ae.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ae._fromList=Nt;function Nt(Pe,Te){if(Te.length===0)return null;var Ve;return Te.objectMode?Ve=Te.buffer.shift():!Pe||Pe>=Te.length?(Te.decoder?Ve=Te.buffer.join(""):Te.buffer.length===1?Ve=Te.buffer.head.data:Ve=Te.buffer.concat(Te.length),Te.buffer.clear()):Ve=Tt(Pe,Te.buffer,Te.decoder),Ve}function Tt(Pe,Te,Ve){var Ze;return Pe<Te.head.data.length?(Ze=Te.head.data.slice(0,Pe),Te.head.data=Te.head.data.slice(Pe)):Pe===Te.head.data.length?Ze=Te.shift():Ze=Ve?zt(Pe,Te):St(Pe,Te),Ze}function zt(Pe,Te){var Ve=Te.head,Ze=1,Ee=Ve.data;for(Pe-=Ee.length;Ve=Ve.next;){var He=Ve.data,We=Pe>He.length?He.length:Pe;if(We===He.length?Ee+=He:Ee+=He.slice(0,Pe),Pe-=We,Pe===0){We===He.length?(++Ze,Ve.next?Te.head=Ve.next:Te.head=Te.tail=null):(Te.head=Ve,Ve.data=He.slice(We));break}++Ze}return Te.length-=Ze,Ee}function St(Pe,Te){var Ve=fe.allocUnsafe(Pe),Ze=Te.head,Ee=1;for(Ze.data.copy(Ve),Pe-=Ze.data.length;Ze=Ze.next;){var He=Ze.data,We=Pe>He.length?He.length:Pe;if(He.copy(Ve,Ve.length-Pe,0,We),Pe-=We,Pe===0){We===He.length?(++Ee,Ze.next?Te.head=Ze.next:Te.head=Te.tail=null):(Te.head=Ze,Ze.data=He.slice(We));break}++Ee}return Te.length-=Ee,Ve}function wt(Pe){var Te=Pe._readableState;if(Te.length>0)throw new Error('"endReadable()" called on non-empty stream');Te.endEmitted||(Te.ended=!0,we.nextTick(at,Te,Pe))}function at(Pe,Te){!Pe.endEmitted&&Pe.length===0&&(Pe.endEmitted=!0,Te.readable=!1,Te.emit("end"))}function Ye(Pe,Te){for(var Ve=0,Ze=Pe.length;Ve<Ze;Ve++)if(Pe[Ve]===Te)return Ve;return-1}}).call(this)}).call(this,oe("_process"),typeof wn!="undefined"?wn: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,Ge,De){"use strict";Ge.exports=Le;var me=oe("./_stream_duplex"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(Le,me);function we(ve,xe){var fe=this._transformState;fe.transforming=!1;var z=fe.writecb;if(!z)return this.emit("error",new Error("write callback called multiple times"));fe.writechunk=null,fe.writecb=null,xe!=null&&this.push(xe),z(ve);var ee=this._readableState;ee.reading=!1,(ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}function Le(ve){if(!(this instanceof Le))return new Le(ve);me.call(this,ve),this._transformState={afterTransform:we.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ve&&(typeof ve.transform=="function"&&(this._transform=ve.transform),typeof ve.flush=="function"&&(this._flush=ve.flush)),this.on("prefinish",Se)}function Se(){var ve=this;typeof this._flush=="function"?this._flush(function(xe,fe){Oe(ve,xe,fe)}):Oe(this,null,null)}Le.prototype.push=function(ve,xe){return this._transformState.needTransform=!1,me.prototype.push.call(this,ve,xe)},Le.prototype._transform=function(ve,xe,fe){throw new Error("_transform() is not implemented")},Le.prototype._write=function(ve,xe,fe){var z=this._transformState;if(z.writecb=fe,z.writechunk=ve,z.writeencoding=xe,!z.transforming){var ee=this._readableState;(z.needTransform||ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}},Le.prototype._read=function(ve){var xe=this._transformState;xe.writechunk!==null&&xe.writecb&&!xe.transforming?(xe.transforming=!0,this._transform(xe.writechunk,xe.writeencoding,xe.afterTransform)):xe.needTransform=!0},Le.prototype._destroy=function(ve,xe){var fe=this;me.prototype._destroy.call(this,ve,function(z){xe(z),fe.emit("close")})};function Oe(ve,xe,fe){if(xe)return ve.emit("error",xe);if(fe!=null&&ve.push(fe),ve._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(ve._transformState.transforming)throw new Error("Calling transform done when still transforming");return ve.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(oe,Ge,De){(function(me,ce,we){(function(){"use strict";var Le=oe("process-nextick-args");Ge.exports=je;function Se(gt,mt,Nt){this.chunk=gt,this.encoding=mt,this.callback=Nt,this.next=null}function Oe(gt){var mt=this;this.next=null,this.entry=null,this.finish=function(){ft(mt,gt)}}var ve=!me.browser&&["v0.10","v0.9."].indexOf(me.version.slice(0,5))>-1?we:Le.nextTick,xe;je.WritableState=Ce;var fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits");var z={deprecate:oe("util-deprecate")},ee=oe("./internal/streams/stream"),ae=oe("safe-buffer").Buffer,re=ce.Uint8Array||function(){};function le(gt){return ae.from(gt)}function ue(gt){return ae.isBuffer(gt)||gt instanceof re}var pe=oe("./internal/streams/destroy");fe.inherits(je,ee);function be(){}function Ce(gt,mt){xe=xe||oe("./_stream_duplex"),gt=gt||{};var Nt=mt instanceof xe;this.objectMode=!!gt.objectMode,Nt&&(this.objectMode=this.objectMode||!!gt.writableObjectMode);var Tt=gt.highWaterMark,zt=gt.writableHighWaterMark,St=this.objectMode?16:16*1024;Tt||Tt===0?this.highWaterMark=Tt:Nt&&(zt||zt===0)?this.highWaterMark=zt:this.highWaterMark=St,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 wt=gt.decodeStrings===!1;this.decodeStrings=!wt,this.defaultEncoding=gt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(at){Qe(mt,at)},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 Oe(this)}Ce.prototype.getBuffer=function(){for(var mt=this.bufferedRequest,Nt=[];mt;)Nt.push(mt),mt=mt.next;return Nt},function(){try{Object.defineProperty(Ce.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(gt){}}();var Fe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Fe=Function.prototype[Symbol.hasInstance],Object.defineProperty(je,Symbol.hasInstance,{value:function(gt){return Fe.call(this,gt)?!0:this!==je?!1:gt&>._writableState instanceof Ce}})):Fe=function(gt){return gt instanceof this};function je(gt){if(xe=xe||oe("./_stream_duplex"),!Fe.call(je,this)&&!(this instanceof xe))return new je(gt);this._writableState=new Ce(gt,this),this.writable=!0,gt&&(typeof gt.write=="function"&&(this._write=gt.write),typeof gt.writev=="function"&&(this._writev=gt.writev),typeof gt.destroy=="function"&&(this._destroy=gt.destroy),typeof gt.final=="function"&&(this._final=gt.final)),ee.call(this)}je.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ke(gt,mt){var Nt=new Error("write after end");gt.emit("error",Nt),Le.nextTick(mt,Nt)}function Ae(gt,mt,Nt,Tt){var zt=!0,St=!1;return Nt===null?St=new TypeError("May not write null values to stream"):typeof Nt!="string"&&Nt!==void 0&&!mt.objectMode&&(St=new TypeError("Invalid non-string/buffer chunk")),St&&(gt.emit("error",St),Le.nextTick(Tt,St),zt=!1),zt}je.prototype.write=function(gt,mt,Nt){var Tt=this._writableState,zt=!1,St=!Tt.objectMode&&ue(gt);return St&&!ae.isBuffer(gt)&&(gt=le(gt)),typeof mt=="function"&&(Nt=mt,mt=null),St?mt="buffer":mt||(mt=Tt.defaultEncoding),typeof Nt!="function"&&(Nt=be),Tt.ended?ke(this,Nt):(St||Ae(this,Tt,gt,Nt))&&(Tt.pendingcb++,zt=_e(this,Tt,St,gt,mt,Nt)),zt},je.prototype.cork=function(){var gt=this._writableState;gt.corked++},je.prototype.uncork=function(){var gt=this._writableState;gt.corked&&(gt.corked--,!gt.writing&&!gt.corked&&!gt.finished&&!gt.bufferProcessing&>.bufferedRequest&&vt(this,gt))},je.prototype.setDefaultEncoding=function(mt){if(typeof mt=="string"&&(mt=mt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((mt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+mt);return this._writableState.defaultEncoding=mt,this};function Be(gt,mt,Nt){return!gt.objectMode&>.decodeStrings!==!1&&typeof mt=="string"&&(mt=ae.from(mt,Nt)),mt}Object.defineProperty(je.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _e(gt,mt,Nt,Tt,zt,St){if(!Nt){var wt=Be(mt,Tt,zt);Tt!==wt&&(Nt=!0,zt="buffer",Tt=wt)}var at=mt.objectMode?1:Tt.length;mt.length+=at;var Ye=mt.length<mt.highWaterMark;if(Ye||(mt.needDrain=!0),mt.writing||mt.corked){var Pe=mt.lastBufferedRequest;mt.lastBufferedRequest={chunk:Tt,encoding:zt,isBuf:Nt,callback:St,next:null},Pe?Pe.next=mt.lastBufferedRequest:mt.bufferedRequest=mt.lastBufferedRequest,mt.bufferedRequestCount+=1}else et(gt,mt,!1,at,Tt,zt,St);return Ye}function et(gt,mt,Nt,Tt,zt,St,wt){mt.writelen=Tt,mt.writecb=wt,mt.writing=!0,mt.sync=!0,Nt?gt._writev(zt,mt.onwrite):gt._write(zt,St,mt.onwrite),mt.sync=!1}function ze(gt,mt,Nt,Tt,zt){--mt.pendingcb,Nt?(Le.nextTick(zt,Tt),Le.nextTick(xt,gt,mt),gt._writableState.errorEmitted=!0,gt.emit("error",Tt)):(zt(Tt),gt._writableState.errorEmitted=!0,gt.emit("error",Tt),xt(gt,mt))}function Xe(gt){gt.writing=!1,gt.writecb=null,gt.length-=gt.writelen,gt.writelen=0}function Qe(gt,mt){var Nt=gt._writableState,Tt=Nt.sync,zt=Nt.writecb;if(Xe(Nt),mt)ze(gt,Nt,Tt,mt,zt);else{var St=nt(Nt);!St&&!Nt.corked&&!Nt.bufferProcessing&&Nt.bufferedRequest&&vt(gt,Nt),Tt?ve(lt,gt,Nt,St,zt):lt(gt,Nt,St,zt)}}function lt(gt,mt,Nt,Tt){Nt||ct(gt,mt),mt.pendingcb--,Tt(),xt(gt,mt)}function ct(gt,mt){mt.length===0&&mt.needDrain&&(mt.needDrain=!1,gt.emit("drain"))}function vt(gt,mt){mt.bufferProcessing=!0;var Nt=mt.bufferedRequest;if(gt._writev&&Nt&&Nt.next){var Tt=mt.bufferedRequestCount,zt=new Array(Tt),St=mt.corkedRequestsFree;St.entry=Nt;for(var wt=0,at=!0;Nt;)zt[wt]=Nt,Nt.isBuf||(at=!1),Nt=Nt.next,wt+=1;zt.allBuffers=at,et(gt,mt,!0,mt.length,zt,"",St.finish),mt.pendingcb++,mt.lastBufferedRequest=null,St.next?(mt.corkedRequestsFree=St.next,St.next=null):mt.corkedRequestsFree=new Oe(mt),mt.bufferedRequestCount=0}else{for(;Nt;){var Ye=Nt.chunk,Pe=Nt.encoding,Te=Nt.callback,Ve=mt.objectMode?1:Ye.length;if(et(gt,mt,!1,Ve,Ye,Pe,Te),Nt=Nt.next,mt.bufferedRequestCount--,mt.writing)break}Nt===null&&(mt.lastBufferedRequest=null)}mt.bufferedRequest=Nt,mt.bufferProcessing=!1}je.prototype._write=function(gt,mt,Nt){Nt(new Error("_write() is not implemented"))},je.prototype._writev=null,je.prototype.end=function(gt,mt,Nt){var Tt=this._writableState;typeof gt=="function"?(Nt=gt,gt=null,mt=null):typeof mt=="function"&&(Nt=mt,mt=null),gt!=null&&this.write(gt,mt),Tt.corked&&(Tt.corked=1,this.uncork()),!Tt.ending&&!Tt.finished&&yt(this,Tt,Nt)};function nt(gt){return gt.ending&>.length===0&>.bufferedRequest===null&&!gt.finished&&!gt.writing}function it(gt,mt){gt._final(function(Nt){mt.pendingcb--,Nt&>.emit("error",Nt),mt.prefinished=!0,gt.emit("prefinish"),xt(gt,mt)})}function pt(gt,mt){!mt.prefinished&&!mt.finalCalled&&(typeof gt._final=="function"?(mt.pendingcb++,mt.finalCalled=!0,Le.nextTick(it,gt,mt)):(mt.prefinished=!0,gt.emit("prefinish")))}function xt(gt,mt){var Nt=nt(mt);return Nt&&(pt(gt,mt),mt.pendingcb===0&&(mt.finished=!0,gt.emit("finish"))),Nt}function yt(gt,mt,Nt){mt.ending=!0,xt(gt,mt),Nt&&(mt.finished?Le.nextTick(Nt):gt.once("finish",Nt)),mt.ended=!0,gt.writable=!1}function ft(gt,mt,Nt){var Tt=gt.entry;for(gt.entry=null;Tt;){var zt=Tt.callback;mt.pendingcb--,zt(Nt),Tt=Tt.next}mt.corkedRequestsFree?mt.corkedRequestsFree.next=gt:mt.corkedRequestsFree=gt}Object.defineProperty(je.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(gt){this._writableState&&(this._writableState.destroyed=gt)}}),je.prototype.destroy=pe.destroy,je.prototype._undestroy=pe.undestroy,je.prototype._destroy=function(gt,mt){this.end(),mt(gt)}}).call(this)}).call(this,oe("_process"),typeof wn!="undefined"?wn: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,Ge,De){"use strict";function me(Se,Oe){if(!(Se instanceof Oe))throw new TypeError("Cannot call a class as a function")}var ce=oe("safe-buffer").Buffer,we=oe("util");function Le(Se,Oe,ve){Se.copy(Oe,ve)}Ge.exports=function(){function Se(){me(this,Se),this.head=null,this.tail=null,this.length=0}return Se.prototype.push=function(ve){var xe={data:ve,next:null};this.length>0?this.tail.next=xe:this.head=xe,this.tail=xe,++this.length},Se.prototype.unshift=function(ve){var xe={data:ve,next:this.head};this.length===0&&(this.tail=xe),this.head=xe,++this.length},Se.prototype.shift=function(){if(this.length!==0){var ve=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ve}},Se.prototype.clear=function(){this.head=this.tail=null,this.length=0},Se.prototype.join=function(ve){if(this.length===0)return"";for(var xe=this.head,fe=""+xe.data;xe=xe.next;)fe+=ve+xe.data;return fe},Se.prototype.concat=function(ve){if(this.length===0)return ce.alloc(0);if(this.length===1)return this.head.data;for(var xe=ce.allocUnsafe(ve>>>0),fe=this.head,z=0;fe;)Le(fe.data,xe,z),z+=fe.data.length,fe=fe.next;return xe},Se}(),we&&we.inspect&&we.inspect.custom&&(Ge.exports.prototype[we.inspect.custom]=function(){var Se=we.inspect({length:this.length});return this.constructor.name+" "+Se})},{"safe-buffer":396,util:89}],392:[function(oe,Ge,De){"use strict";var me=oe("process-nextick-args");function ce(Se,Oe){var ve=this,xe=this._readableState&&this._readableState.destroyed,fe=this._writableState&&this._writableState.destroyed;return xe||fe?(Oe?Oe(Se):Se&&(!this._writableState||!this._writableState.errorEmitted)&&me.nextTick(Le,this,Se),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Se||null,function(z){!Oe&&z?(me.nextTick(Le,ve,z),ve._writableState&&(ve._writableState.errorEmitted=!0)):Oe&&Oe(z)}),this)}function we(){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 Le(Se,Oe){Se.emit("error",Oe)}Ge.exports={destroy:ce,undestroy:we}},{"process-nextick-args":380}],393:[function(oe,Ge,De){Ge.exports=oe("events").EventEmitter},{events:344}],394:[function(oe,Ge,De){De=Ge.exports=oe("./lib/_stream_readable.js"),De.Stream=De,De.Readable=De,De.Writable=oe("./lib/_stream_writable.js"),De.Duplex=oe("./lib/_stream_duplex.js"),De.Transform=oe("./lib/_stream_transform.js"),De.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,Ge,De){var me=function(ce){"use strict";var we=Object.prototype,Le=we.hasOwnProperty,Se,Oe=typeof Symbol=="function"?Symbol:{},ve=Oe.iterator||"@@iterator",xe=Oe.asyncIterator||"@@asyncIterator",fe=Oe.toStringTag||"@@toStringTag";function z(pt,xt,yt){return Object.defineProperty(pt,xt,{value:yt,enumerable:!0,configurable:!0,writable:!0}),pt[xt]}try{z({},"")}catch(pt){z=function(xt,yt,ft){return xt[yt]=ft}}function ee(pt,xt,yt,ft){var gt=xt&&xt.prototype instanceof Ce?xt:Ce,mt=Object.create(gt.prototype),Nt=new vt(ft||[]);return mt._invoke=Xe(pt,yt,Nt),mt}ce.wrap=ee;function ae(pt,xt,yt){try{return{type:"normal",arg:pt.call(xt,yt)}}catch(ft){return{type:"throw",arg:ft}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",be={};function Ce(){}function Fe(){}function je(){}var ke={};z(ke,ve,function(){return this});var Ae=Object.getPrototypeOf,Be=Ae&&Ae(Ae(nt([])));Be&&Be!==we&&Le.call(Be,ve)&&(ke=Be);var _e=je.prototype=Ce.prototype=Object.create(ke);Fe.prototype=je,z(_e,"constructor",je),z(je,"constructor",Fe),Fe.displayName=z(je,fe,"GeneratorFunction");function et(pt){["next","throw","return"].forEach(function(xt){z(pt,xt,function(yt){return this._invoke(xt,yt)})})}ce.isGeneratorFunction=function(pt){var xt=typeof pt=="function"&&pt.constructor;return xt?xt===Fe||(xt.displayName||xt.name)==="GeneratorFunction":!1},ce.mark=function(pt){return Object.setPrototypeOf?Object.setPrototypeOf(pt,je):(pt.__proto__=je,z(pt,fe,"GeneratorFunction")),pt.prototype=Object.create(_e),pt},ce.awrap=function(pt){return{__await:pt}};function ze(pt,xt){function yt(mt,Nt,Tt,zt){var St=ae(pt[mt],pt,Nt);if(St.type==="throw")zt(St.arg);else{var wt=St.arg,at=wt.value;return at&&typeof at=="object"&&Le.call(at,"__await")?xt.resolve(at.__await).then(function(Ye){yt("next",Ye,Tt,zt)},function(Ye){yt("throw",Ye,Tt,zt)}):xt.resolve(at).then(function(Ye){wt.value=Ye,Tt(wt)},function(Ye){return yt("throw",Ye,Tt,zt)})}}var ft;function gt(mt,Nt){function Tt(){return new xt(function(zt,St){yt(mt,Nt,zt,St)})}return ft=ft?ft.then(Tt,Tt):Tt()}this._invoke=gt}et(ze.prototype),z(ze.prototype,xe,function(){return this}),ce.AsyncIterator=ze,ce.async=function(pt,xt,yt,ft,gt){gt===void 0&&(gt=Promise);var mt=new ze(ee(pt,xt,yt,ft),gt);return ce.isGeneratorFunction(xt)?mt:mt.next().then(function(Nt){return Nt.done?Nt.value:mt.next()})};function Xe(pt,xt,yt){var ft=re;return function(mt,Nt){if(ft===ue)throw new Error("Generator is already running");if(ft===pe){if(mt==="throw")throw Nt;return it()}for(yt.method=mt,yt.arg=Nt;;){var Tt=yt.delegate;if(Tt){var zt=Qe(Tt,yt);if(zt){if(zt===be)continue;return zt}}if(yt.method==="next")yt.sent=yt._sent=yt.arg;else if(yt.method==="throw"){if(ft===re)throw ft=pe,yt.arg;yt.dispatchException(yt.arg)}else yt.method==="return"&&yt.abrupt("return",yt.arg);ft=ue;var St=ae(pt,xt,yt);if(St.type==="normal"){if(ft=yt.done?pe:le,St.arg===be)continue;return{value:St.arg,done:yt.done}}else St.type==="throw"&&(ft=pe,yt.method="throw",yt.arg=St.arg)}}}function Qe(pt,xt){var yt=pt.iterator[xt.method];if(yt===Se){if(xt.delegate=null,xt.method==="throw"){if(pt.iterator.return&&(xt.method="return",xt.arg=Se,Qe(pt,xt),xt.method==="throw"))return be;xt.method="throw",xt.arg=new TypeError("The iterator does not provide a 'throw' method")}return be}var ft=ae(yt,pt.iterator,xt.arg);if(ft.type==="throw")return xt.method="throw",xt.arg=ft.arg,xt.delegate=null,be;var gt=ft.arg;if(!gt)return xt.method="throw",xt.arg=new TypeError("iterator result is not an object"),xt.delegate=null,be;if(gt.done)xt[pt.resultName]=gt.value,xt.next=pt.nextLoc,xt.method!=="return"&&(xt.method="next",xt.arg=Se);else return gt;return xt.delegate=null,be}et(_e),z(_e,fe,"Generator"),z(_e,ve,function(){return this}),z(_e,"toString",function(){return"[object Generator]"});function lt(pt){var xt={tryLoc:pt[0]};1 in pt&&(xt.catchLoc=pt[1]),2 in pt&&(xt.finallyLoc=pt[2],xt.afterLoc=pt[3]),this.tryEntries.push(xt)}function ct(pt){var xt=pt.completion||{};xt.type="normal",delete xt.arg,pt.completion=xt}function vt(pt){this.tryEntries=[{tryLoc:"root"}],pt.forEach(lt,this),this.reset(!0)}ce.keys=function(pt){var xt=[];for(var yt in pt)xt.push(yt);return xt.reverse(),function ft(){for(;xt.length;){var gt=xt.pop();if(gt in pt)return ft.value=gt,ft.done=!1,ft}return ft.done=!0,ft}};function nt(pt){if(pt){var xt=pt[ve];if(xt)return xt.call(pt);if(typeof pt.next=="function")return pt;if(!isNaN(pt.length)){var yt=-1,ft=function gt(){for(;++yt<pt.length;)if(Le.call(pt,yt))return gt.value=pt[yt],gt.done=!1,gt;return gt.value=Se,gt.done=!0,gt};return ft.next=ft}}return{next:it}}ce.values=nt;function it(){return{value:Se,done:!0}}return vt.prototype={constructor:vt,reset:function(pt){if(this.prev=0,this.next=0,this.sent=this._sent=Se,this.done=!1,this.delegate=null,this.method="next",this.arg=Se,this.tryEntries.forEach(ct),!pt)for(var xt in this)xt.charAt(0)==="t"&&Le.call(this,xt)&&!isNaN(+xt.slice(1))&&(this[xt]=Se)},stop:function(){this.done=!0;var pt=this.tryEntries[0],xt=pt.completion;if(xt.type==="throw")throw xt.arg;return this.rval},dispatchException:function(pt){if(this.done)throw pt;var xt=this;function yt(zt,St){return mt.type="throw",mt.arg=pt,xt.next=zt,St&&(xt.method="next",xt.arg=Se),!!St}for(var ft=this.tryEntries.length-1;ft>=0;--ft){var gt=this.tryEntries[ft],mt=gt.completion;if(gt.tryLoc==="root")return yt("end");if(gt.tryLoc<=this.prev){var Nt=Le.call(gt,"catchLoc"),Tt=Le.call(gt,"finallyLoc");if(Nt&&Tt){if(this.prev<gt.catchLoc)return yt(gt.catchLoc,!0);if(this.prev<gt.finallyLoc)return yt(gt.finallyLoc)}else if(Nt){if(this.prev<gt.catchLoc)return yt(gt.catchLoc,!0)}else if(Tt){if(this.prev<gt.finallyLoc)return yt(gt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(pt,xt){for(var yt=this.tryEntries.length-1;yt>=0;--yt){var ft=this.tryEntries[yt];if(ft.tryLoc<=this.prev&&Le.call(ft,"finallyLoc")&&this.prev<ft.finallyLoc){var gt=ft;break}}gt&&(pt==="break"||pt==="continue")&>.tryLoc<=xt&&xt<=gt.finallyLoc&&(gt=null);var mt=gt?gt.completion:{};return mt.type=pt,mt.arg=xt,gt?(this.method="next",this.next=gt.finallyLoc,be):this.complete(mt)},complete:function(pt,xt){if(pt.type==="throw")throw pt.arg;return pt.type==="break"||pt.type==="continue"?this.next=pt.arg:pt.type==="return"?(this.rval=this.arg=pt.arg,this.method="return",this.next="end"):pt.type==="normal"&&xt&&(this.next=xt),be},finish:function(pt){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var yt=this.tryEntries[xt];if(yt.finallyLoc===pt)return this.complete(yt.completion,yt.afterLoc),ct(yt),be}},catch:function(pt){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var yt=this.tryEntries[xt];if(yt.tryLoc===pt){var ft=yt.completion;if(ft.type==="throw"){var gt=ft.arg;ct(yt)}return gt}}throw new Error("illegal catch attempt")},delegateYield:function(pt,xt,yt){return this.delegate={iterator:nt(pt),resultName:xt,nextLoc:yt},this.method==="next"&&(this.arg=Se),be}},ce}(typeof Ge=="object"?Ge.exports:{});try{regeneratorRuntime=me}catch(ce){typeof globalThis=="object"?globalThis.regeneratorRuntime=me:Function("r","regeneratorRuntime = r")(me)}},{}],396:[function(oe,Ge,De){var me=oe("buffer"),ce=me.Buffer;function we(Se,Oe){for(var ve in Se)Oe[ve]=Se[ve]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?Ge.exports=me:(we(me,De),De.Buffer=Le);function Le(Se,Oe,ve){return ce(Se,Oe,ve)}we(ce,Le),Le.from=function(Se,Oe,ve){if(typeof Se=="number")throw new TypeError("Argument must not be a number");return ce(Se,Oe,ve)},Le.alloc=function(Se,Oe,ve){if(typeof Se!="number")throw new TypeError("Argument must be a number");var xe=ce(Se);return Oe!==void 0?typeof ve=="string"?xe.fill(Oe,ve):xe.fill(Oe):xe.fill(0),xe},Le.allocUnsafe=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return ce(Se)},Le.allocUnsafeSlow=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return me.SlowBuffer(Se)}},{buffer:90}],397:[function(oe,Ge,De){(function(me){(function(){(function(ce){ce.parser=function(wt,at){return new Le(wt,at)},ce.SAXParser=Le,ce.SAXStream=ee,ce.createStream=z,ce.MAX_BUFFER_LENGTH=64*1024;var we=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ce.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function Le(wt,at){if(!(this instanceof Le))return new Le(wt,at);var Ye=this;Oe(Ye),Ye.q=Ye.c="",Ye.bufferCheckPosition=ce.MAX_BUFFER_LENGTH,Ye.opt=at||{},Ye.opt.lowercase=Ye.opt.lowercase||Ye.opt.lowercasetags,Ye.looseCase=Ye.opt.lowercase?"toLowerCase":"toUpperCase",Ye.tags=[],Ye.closed=Ye.closedRoot=Ye.sawRoot=!1,Ye.tag=Ye.error=null,Ye.strict=!!wt,Ye.noscript=!!(wt||Ye.opt.noscript),Ye.state=ze.BEGIN,Ye.strictEntities=Ye.opt.strictEntities,Ye.ENTITIES=Ye.strictEntities?Object.create(ce.XML_ENTITIES):Object.create(ce.ENTITIES),Ye.attribList=[],Ye.opt.xmlns&&(Ye.ns=Object.create(pe)),Ye.trackPosition=Ye.opt.position!==!1,Ye.trackPosition&&(Ye.position=Ye.line=Ye.column=0),Qe(Ye,"onready")}Object.create||(Object.create=function(wt){function at(){}at.prototype=wt;var Ye=new at;return Ye}),Object.keys||(Object.keys=function(wt){var at=[];for(var Ye in wt)wt.hasOwnProperty(Ye)&&at.push(Ye);return at});function Se(wt){for(var at=Math.max(ce.MAX_BUFFER_LENGTH,10),Ye=0,Pe=0,Te=we.length;Pe<Te;Pe++){var Ve=wt[we[Pe]].length;if(Ve>at)switch(we[Pe]){case"textNode":ct(wt);break;case"cdata":lt(wt,"oncdata",wt.cdata),wt.cdata="";break;case"script":lt(wt,"onscript",wt.script),wt.script="";break;default:nt(wt,"Max buffer length exceeded: "+we[Pe])}Ye=Math.max(Ye,Ve)}var Ze=ce.MAX_BUFFER_LENGTH-Ye;wt.bufferCheckPosition=Ze+wt.position}function Oe(wt){for(var at=0,Ye=we.length;at<Ye;at++)wt[we[at]]=""}function ve(wt){ct(wt),wt.cdata!==""&&(lt(wt,"oncdata",wt.cdata),wt.cdata=""),wt.script!==""&&(lt(wt,"onscript",wt.script),wt.script="")}Le.prototype={end:function(){it(this)},write:St,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){ve(this)}};var xe;try{xe=oe("stream").Stream}catch(wt){xe=function(){}}var fe=ce.EVENTS.filter(function(wt){return wt!=="error"&&wt!=="end"});function z(wt,at){return new ee(wt,at)}function ee(wt,at){if(!(this instanceof ee))return new ee(wt,at);xe.apply(this),this._parser=new Le(wt,at),this.writable=!0,this.readable=!0;var Ye=this;this._parser.onend=function(){Ye.emit("end")},this._parser.onerror=function(Pe){Ye.emit("error",Pe),Ye._parser.error=null},this._decoder=null,fe.forEach(function(Pe){Object.defineProperty(Ye,"on"+Pe,{get:function(){return Ye._parser["on"+Pe]},set:function(Te){if(!Te)return Ye.removeAllListeners(Pe),Ye._parser["on"+Pe]=Te,Te;Ye.on(Pe,Te)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(xe.prototype,{constructor:{value:ee}}),ee.prototype.write=function(wt){if(typeof me=="function"&&typeof me.isBuffer=="function"&&me.isBuffer(wt)){if(!this._decoder){var at=oe("string_decoder").StringDecoder;this._decoder=new at("utf8")}wt=this._decoder.write(wt)}return this._parser.write(wt.toString()),this.emit("data",wt),!0},ee.prototype.end=function(wt){return wt&&wt.length&&this.write(wt),this._parser.end(),!0},ee.prototype.on=function(wt,at){var Ye=this;return!Ye._parser["on"+wt]&&fe.indexOf(wt)!==-1&&(Ye._parser["on"+wt]=function(){var Pe=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Pe.splice(0,0,wt),Ye.emit.apply(Ye,Pe)}),xe.prototype.on.call(Ye,wt,at)};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},be=/[:_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-]/,Fe=/[#:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function ke(wt){return wt===" "||wt===`
|
|
|
`||wt==="\r"||wt===" "}function Ae(wt){return wt==='"'||wt==="'"}function Be(wt){return wt===">"||ke(wt)}function _e(wt,at){return wt.test(at)}function et(wt,at){return!_e(wt,at)}var ze=0;ce.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++},ce.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ce.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(ce.ENTITIES).forEach(function(wt){var at=ce.ENTITIES[wt],Ye=typeof at=="number"?String.fromCharCode(at):at;ce.ENTITIES[wt]=Ye});for(var Xe in ce.STATE)ce.STATE[ce.STATE[Xe]]=Xe;ze=ce.STATE;function Qe(wt,at,Ye){wt[at]&&wt[at](Ye)}function lt(wt,at,Ye){wt.textNode&&ct(wt),Qe(wt,at,Ye)}function ct(wt){wt.textNode=vt(wt.opt,wt.textNode),wt.textNode&&Qe(wt,"ontext",wt.textNode),wt.textNode=""}function vt(wt,at){return wt.trim&&(at=at.trim()),wt.normalize&&(at=at.replace(/\s+/g," ")),at}function nt(wt,at){return ct(wt),wt.trackPosition&&(at+=`
|
|
|
Line: `+wt.line+`
|
|
|
Column: `+wt.column+`
|
|
|
Char: `+wt.c),at=new Error(at),wt.error=at,Qe(wt,"onerror",at),wt}function it(wt){return wt.sawRoot&&!wt.closedRoot&&pt(wt,"Unclosed root tag"),wt.state!==ze.BEGIN&&wt.state!==ze.BEGIN_WHITESPACE&&wt.state!==ze.TEXT&&nt(wt,"Unexpected end"),ct(wt),wt.c="",wt.closed=!0,Qe(wt,"onend"),Le.call(wt,wt.strict,wt.opt),wt}function pt(wt,at){if(typeof wt!="object"||!(wt instanceof Le))throw new Error("bad call to strictFail");wt.strict&&nt(wt,at)}function xt(wt){wt.strict||(wt.tagName=wt.tagName[wt.looseCase]());var at=wt.tags[wt.tags.length-1]||wt,Ye=wt.tag={name:wt.tagName,attributes:{}};wt.opt.xmlns&&(Ye.ns=at.ns),wt.attribList.length=0,lt(wt,"onopentagstart",Ye)}function yt(wt,at){var Ye=wt.indexOf(":"),Pe=Ye<0?["",wt]:wt.split(":"),Te=Pe[0],Ve=Pe[1];return at&&wt==="xmlns"&&(Te="xmlns",Ve=""),{prefix:Te,local:Ve}}function ft(wt){if(wt.strict||(wt.attribName=wt.attribName[wt.looseCase]()),wt.attribList.indexOf(wt.attribName)!==-1||wt.tag.attributes.hasOwnProperty(wt.attribName)){wt.attribName=wt.attribValue="";return}if(wt.opt.xmlns){var at=yt(wt.attribName,!0),Ye=at.prefix,Pe=at.local;if(Ye==="xmlns")if(Pe==="xml"&&wt.attribValue!==le)pt(wt,"xml: prefix must be bound to "+le+`
|
|
|
Actual: `+wt.attribValue);else if(Pe==="xmlns"&&wt.attribValue!==ue)pt(wt,"xmlns: prefix must be bound to "+ue+`
|
|
|
Actual: `+wt.attribValue);else{var Te=wt.tag,Ve=wt.tags[wt.tags.length-1]||wt;Te.ns===Ve.ns&&(Te.ns=Object.create(Ve.ns)),Te.ns[Pe]=wt.attribValue}wt.attribList.push([wt.attribName,wt.attribValue])}else wt.tag.attributes[wt.attribName]=wt.attribValue,lt(wt,"onattribute",{name:wt.attribName,value:wt.attribValue});wt.attribName=wt.attribValue=""}function gt(wt,at){if(wt.opt.xmlns){var Ye=wt.tag,Pe=yt(wt.tagName);Ye.prefix=Pe.prefix,Ye.local=Pe.local,Ye.uri=Ye.ns[Pe.prefix]||"",Ye.prefix&&!Ye.uri&&(pt(wt,"Unbound namespace prefix: "+JSON.stringify(wt.tagName)),Ye.uri=Pe.prefix);var Te=wt.tags[wt.tags.length-1]||wt;Ye.ns&&Te.ns!==Ye.ns&&Object.keys(Ye.ns).forEach(function(Lt){lt(wt,"onopennamespace",{prefix:Lt,uri:Ye.ns[Lt]})});for(var Ve=0,Ze=wt.attribList.length;Ve<Ze;Ve++){var Ee=wt.attribList[Ve],He=Ee[0],We=Ee[1],Ke=yt(He,!0),Je=Ke.prefix,dt=Ke.local,Ct=Je===""?"":Ye.ns[Je]||"",ht={name:He,value:We,prefix:Je,local:dt,uri:Ct};Je&&Je!=="xmlns"&&!Ct&&(pt(wt,"Unbound namespace prefix: "+JSON.stringify(Je)),ht.uri=Je),wt.tag.attributes[He]=ht,lt(wt,"onattribute",ht)}wt.attribList.length=0}wt.tag.isSelfClosing=!!at,wt.sawRoot=!0,wt.tags.push(wt.tag),lt(wt,"onopentag",wt.tag),at||(!wt.noscript&&wt.tagName.toLowerCase()==="script"?wt.state=ze.SCRIPT:wt.state=ze.TEXT,wt.tag=null,wt.tagName=""),wt.attribName=wt.attribValue="",wt.attribList.length=0}function mt(wt){if(!wt.tagName){pt(wt,"Weird empty close tag."),wt.textNode+="</>",wt.state=ze.TEXT;return}if(wt.script){if(wt.tagName!=="script"){wt.script+="</"+wt.tagName+">",wt.tagName="",wt.state=ze.SCRIPT;return}lt(wt,"onscript",wt.script),wt.script=""}var at=wt.tags.length,Ye=wt.tagName;wt.strict||(Ye=Ye[wt.looseCase]());for(var Pe=Ye;at--;){var Te=wt.tags[at];if(Te.name!==Pe)pt(wt,"Unexpected close tag");else break}if(at<0){pt(wt,"Unmatched closing tag: "+wt.tagName),wt.textNode+="</"+wt.tagName+">",wt.state=ze.TEXT;return}wt.tagName=Ye;for(var Ve=wt.tags.length;Ve-- >at;){var Ze=wt.tag=wt.tags.pop();wt.tagName=wt.tag.name,lt(wt,"onclosetag",wt.tagName);var Ee={};for(var He in Ze.ns)Ee[He]=Ze.ns[He];var We=wt.tags[wt.tags.length-1]||wt;wt.opt.xmlns&&Ze.ns!==We.ns&&Object.keys(Ze.ns).forEach(function(Ke){var Je=Ze.ns[Ke];lt(wt,"onclosenamespace",{prefix:Ke,uri:Je})})}at===0&&(wt.closedRoot=!0),wt.tagName=wt.attribValue=wt.attribName="",wt.attribList.length=0,wt.state=ze.TEXT}function Nt(wt){var at=wt.entity,Ye=at.toLowerCase(),Pe,Te="";return wt.ENTITIES[at]?wt.ENTITIES[at]:wt.ENTITIES[Ye]?wt.ENTITIES[Ye]:(at=Ye,at.charAt(0)==="#"&&(at.charAt(1)==="x"?(at=at.slice(2),Pe=parseInt(at,16),Te=Pe.toString(16)):(at=at.slice(1),Pe=parseInt(at,10),Te=Pe.toString(10))),at=at.replace(/^0+/,""),isNaN(Pe)||Te.toLowerCase()!==at?(pt(wt,"Invalid character entity"),"&"+wt.entity+";"):String.fromCodePoint(Pe))}function Tt(wt,at){at==="<"?(wt.state=ze.OPEN_WAKA,wt.startTagPosition=wt.position):ke(at)||(pt(wt,"Non-whitespace before first tag."),wt.textNode=at,wt.state=ze.TEXT)}function zt(wt,at){var Ye="";return at<wt.length&&(Ye=wt.charAt(at)),Ye}function St(wt){var at=this;if(this.error)throw this.error;if(at.closed)return nt(at,"Cannot write after close. Assign an onready handler.");if(wt===null)return it(at);typeof wt=="object"&&(wt=wt.toString());for(var Ye=0,Pe="";Pe=zt(wt,Ye++),at.c=Pe,!!Pe;)switch(at.trackPosition&&(at.position++,Pe===`
|
|
|
`?(at.line++,at.column=0):at.column++),at.state){case ze.BEGIN:if(at.state=ze.BEGIN_WHITESPACE,Pe==="\uFEFF")continue;Tt(at,Pe);continue;case ze.BEGIN_WHITESPACE:Tt(at,Pe);continue;case ze.TEXT:if(at.sawRoot&&!at.closedRoot){for(var Te=Ye-1;Pe&&Pe!=="<"&&Pe!=="&";)Pe=zt(wt,Ye++),Pe&&at.trackPosition&&(at.position++,Pe===`
|
|
|
`?(at.line++,at.column=0):at.column++);at.textNode+=wt.substring(Te,Ye-1)}Pe==="<"&&!(at.sawRoot&&at.closedRoot&&!at.strict)?(at.state=ze.OPEN_WAKA,at.startTagPosition=at.position):(!ke(Pe)&&(!at.sawRoot||at.closedRoot)&&pt(at,"Text data outside of root node."),Pe==="&"?at.state=ze.TEXT_ENTITY:at.textNode+=Pe);continue;case ze.SCRIPT:Pe==="<"?at.state=ze.SCRIPT_ENDING:at.script+=Pe;continue;case ze.SCRIPT_ENDING:Pe==="/"?at.state=ze.CLOSE_TAG:(at.script+="<"+Pe,at.state=ze.SCRIPT);continue;case ze.OPEN_WAKA:if(Pe==="!")at.state=ze.SGML_DECL,at.sgmlDecl="";else if(!ke(Pe))if(_e(be,Pe))at.state=ze.OPEN_TAG,at.tagName=Pe;else if(Pe==="/")at.state=ze.CLOSE_TAG,at.tagName="";else if(Pe==="?")at.state=ze.PROC_INST,at.procInstName=at.procInstBody="";else{if(pt(at,"Unencoded <"),at.startTagPosition+1<at.position){var Ve=at.position-at.startTagPosition;Pe=new Array(Ve).join(" ")+Pe}at.textNode+="<"+Pe,at.state=ze.TEXT}continue;case ze.SGML_DECL:(at.sgmlDecl+Pe).toUpperCase()===ae?(lt(at,"onopencdata"),at.state=ze.CDATA,at.sgmlDecl="",at.cdata=""):at.sgmlDecl+Pe==="--"?(at.state=ze.COMMENT,at.comment="",at.sgmlDecl=""):(at.sgmlDecl+Pe).toUpperCase()===re?(at.state=ze.DOCTYPE,(at.doctype||at.sawRoot)&&pt(at,"Inappropriately located doctype declaration"),at.doctype="",at.sgmlDecl=""):Pe===">"?(lt(at,"onsgmldeclaration",at.sgmlDecl),at.sgmlDecl="",at.state=ze.TEXT):(Ae(Pe)&&(at.state=ze.SGML_DECL_QUOTED),at.sgmlDecl+=Pe);continue;case ze.SGML_DECL_QUOTED:Pe===at.q&&(at.state=ze.SGML_DECL,at.q=""),at.sgmlDecl+=Pe;continue;case ze.DOCTYPE:Pe===">"?(at.state=ze.TEXT,lt(at,"ondoctype",at.doctype),at.doctype=!0):(at.doctype+=Pe,Pe==="["?at.state=ze.DOCTYPE_DTD:Ae(Pe)&&(at.state=ze.DOCTYPE_QUOTED,at.q=Pe));continue;case ze.DOCTYPE_QUOTED:at.doctype+=Pe,Pe===at.q&&(at.q="",at.state=ze.DOCTYPE);continue;case ze.DOCTYPE_DTD:at.doctype+=Pe,Pe==="]"?at.state=ze.DOCTYPE:Ae(Pe)&&(at.state=ze.DOCTYPE_DTD_QUOTED,at.q=Pe);continue;case ze.DOCTYPE_DTD_QUOTED:at.doctype+=Pe,Pe===at.q&&(at.state=ze.DOCTYPE_DTD,at.q="");continue;case ze.COMMENT:Pe==="-"?at.state=ze.COMMENT_ENDING:at.comment+=Pe;continue;case ze.COMMENT_ENDING:Pe==="-"?(at.state=ze.COMMENT_ENDED,at.comment=vt(at.opt,at.comment),at.comment&<(at,"oncomment",at.comment),at.comment=""):(at.comment+="-"+Pe,at.state=ze.COMMENT);continue;case ze.COMMENT_ENDED:Pe!==">"?(pt(at,"Malformed comment"),at.comment+="--"+Pe,at.state=ze.COMMENT):at.state=ze.TEXT;continue;case ze.CDATA:Pe==="]"?at.state=ze.CDATA_ENDING:at.cdata+=Pe;continue;case ze.CDATA_ENDING:Pe==="]"?at.state=ze.CDATA_ENDING_2:(at.cdata+="]"+Pe,at.state=ze.CDATA);continue;case ze.CDATA_ENDING_2:Pe===">"?(at.cdata&<(at,"oncdata",at.cdata),lt(at,"onclosecdata"),at.cdata="",at.state=ze.TEXT):Pe==="]"?at.cdata+="]":(at.cdata+="]]"+Pe,at.state=ze.CDATA);continue;case ze.PROC_INST:Pe==="?"?at.state=ze.PROC_INST_ENDING:ke(Pe)?at.state=ze.PROC_INST_BODY:at.procInstName+=Pe;continue;case ze.PROC_INST_BODY:if(!at.procInstBody&&ke(Pe))continue;Pe==="?"?at.state=ze.PROC_INST_ENDING:at.procInstBody+=Pe;continue;case ze.PROC_INST_ENDING:Pe===">"?(lt(at,"onprocessinginstruction",{name:at.procInstName,body:at.procInstBody}),at.procInstName=at.procInstBody="",at.state=ze.TEXT):(at.procInstBody+="?"+Pe,at.state=ze.PROC_INST_BODY);continue;case ze.OPEN_TAG:_e(Ce,Pe)?at.tagName+=Pe:(xt(at),Pe===">"?gt(at):Pe==="/"?at.state=ze.OPEN_TAG_SLASH:(ke(Pe)||pt(at,"Invalid character in tag name"),at.state=ze.ATTRIB));continue;case ze.OPEN_TAG_SLASH:Pe===">"?(gt(at,!0),mt(at)):(pt(at,"Forward-slash in opening tag not followed by >"),at.state=ze.ATTRIB);continue;case ze.ATTRIB:if(ke(Pe))continue;Pe===">"?gt(at):Pe==="/"?at.state=ze.OPEN_TAG_SLASH:_e(be,Pe)?(at.attribName=Pe,at.attribValue="",at.state=ze.ATTRIB_NAME):pt(at,"Invalid attribute name");continue;case ze.ATTRIB_NAME:Pe==="="?at.state=ze.ATTRIB_VALUE:Pe===">"?(pt(at,"Attribute without value"),at.attribValue=at.attribName,ft(at),gt(at)):ke(Pe)?at.state=ze.ATTRIB_NAME_SAW_WHITE:_e(Ce,Pe)?at.attribName+=Pe:pt(at,"Invalid attribute name");continue;case ze.ATTRIB_NAME_SAW_WHITE:if(Pe==="=")at.state=ze.ATTRIB_VALUE;else{if(ke(Pe))continue;pt(at,"Attribute without value"),at.tag.attributes[at.attribName]="",at.attribValue="",lt(at,"onattribute",{name:at.attribName,value:""}),at.attribName="",Pe===">"?gt(at):_e(be,Pe)?(at.attribName=Pe,at.state=ze.ATTRIB_NAME):(pt(at,"Invalid attribute name"),at.state=ze.ATTRIB)}continue;case ze.ATTRIB_VALUE:if(ke(Pe))continue;Ae(Pe)?(at.q=Pe,at.state=ze.ATTRIB_VALUE_QUOTED):(pt(at,"Unquoted attribute value"),at.state=ze.ATTRIB_VALUE_UNQUOTED,at.attribValue=Pe);continue;case ze.ATTRIB_VALUE_QUOTED:if(Pe!==at.q){Pe==="&"?at.state=ze.ATTRIB_VALUE_ENTITY_Q:at.attribValue+=Pe;continue}ft(at),at.q="",at.state=ze.ATTRIB_VALUE_CLOSED;continue;case ze.ATTRIB_VALUE_CLOSED:ke(Pe)?at.state=ze.ATTRIB:Pe===">"?gt(at):Pe==="/"?at.state=ze.OPEN_TAG_SLASH:_e(be,Pe)?(pt(at,"No whitespace between attributes"),at.attribName=Pe,at.attribValue="",at.state=ze.ATTRIB_NAME):pt(at,"Invalid attribute name");continue;case ze.ATTRIB_VALUE_UNQUOTED:if(!Be(Pe)){Pe==="&"?at.state=ze.ATTRIB_VALUE_ENTITY_U:at.attribValue+=Pe;continue}ft(at),Pe===">"?gt(at):at.state=ze.ATTRIB;continue;case ze.CLOSE_TAG:if(at.tagName)Pe===">"?mt(at):_e(Ce,Pe)?at.tagName+=Pe:at.script?(at.script+="</"+at.tagName,at.tagName="",at.state=ze.SCRIPT):(ke(Pe)||pt(at,"Invalid tagname in closing tag"),at.state=ze.CLOSE_TAG_SAW_WHITE);else{if(ke(Pe))continue;et(be,Pe)?at.script?(at.script+="</"+Pe,at.state=ze.SCRIPT):pt(at,"Invalid tagname in closing tag."):at.tagName=Pe}continue;case ze.CLOSE_TAG_SAW_WHITE:if(ke(Pe))continue;Pe===">"?mt(at):pt(at,"Invalid characters in closing tag");continue;case ze.TEXT_ENTITY:case ze.ATTRIB_VALUE_ENTITY_Q:case ze.ATTRIB_VALUE_ENTITY_U:var Ze,Ee;switch(at.state){case ze.TEXT_ENTITY:Ze=ze.TEXT,Ee="textNode";break;case ze.ATTRIB_VALUE_ENTITY_Q:Ze=ze.ATTRIB_VALUE_QUOTED,Ee="attribValue";break;case ze.ATTRIB_VALUE_ENTITY_U:Ze=ze.ATTRIB_VALUE_UNQUOTED,Ee="attribValue";break}Pe===";"?(at[Ee]+=Nt(at),at.entity="",at.state=Ze):_e(at.entity.length?je:Fe,Pe)?at.entity+=Pe:(pt(at,"Invalid character in entity name"),at[Ee]+="&"+at.entity+Pe,at.entity="",at.state=Ze);continue;default:throw new Error(at,"Unknown state: "+at.state)}return at.position>=at.bufferCheckPosition&&Se(at),at}String.fromCodePoint||function(){var wt=String.fromCharCode,at=Math.floor,Ye=function(){var Pe=16384,Te=[],Ve,Ze,Ee=-1,He=arguments.length;if(!He)return"";for(var We="";++Ee<He;){var Ke=Number(arguments[Ee]);if(!isFinite(Ke)||Ke<0||Ke>1114111||at(Ke)!==Ke)throw RangeError("Invalid code point: "+Ke);Ke<=65535?Te.push(Ke):(Ke-=65536,Ve=(Ke>>10)+55296,Ze=Ke%1024+56320,Te.push(Ve,Ze)),(Ee+1===He||Te.length>Pe)&&(We+=wt.apply(null,Te),Te.length=0)}return We};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ye,configurable:!0,writable:!0}):String.fromCodePoint=Ye}()})(typeof De=="undefined"?this.sax={}:De)}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(oe,Ge,De){Ge.exports=we;var me=oe("events").EventEmitter,ce=oe("inherits");ce(we,me),we.Readable=oe("readable-stream/lib/_stream_readable.js"),we.Writable=oe("readable-stream/lib/_stream_writable.js"),we.Duplex=oe("readable-stream/lib/_stream_duplex.js"),we.Transform=oe("readable-stream/lib/_stream_transform.js"),we.PassThrough=oe("readable-stream/lib/_stream_passthrough.js"),we.finished=oe("readable-stream/lib/internal/streams/end-of-stream.js"),we.pipeline=oe("readable-stream/lib/internal/streams/pipeline.js"),we.Stream=we;function we(){me.call(this)}we.prototype.pipe=function(Le,Se){var Oe=this;function ve(le){Le.writable&&Le.write(le)===!1&&Oe.pause&&Oe.pause()}Oe.on("data",ve);function xe(){Oe.readable&&Oe.resume&&Oe.resume()}Le.on("drain",xe),!Le._isStdio&&(!Se||Se.end!==!1)&&(Oe.on("end",z),Oe.on("close",ee));var fe=!1;function z(){fe||(fe=!0,Le.end())}function ee(){fe||(fe=!0,typeof Le.destroy=="function"&&Le.destroy())}function ae(le){if(re(),me.listenerCount(this,"error")===0)throw le}Oe.on("error",ae),Le.on("error",ae);function re(){Oe.removeListener("data",ve),Le.removeListener("drain",xe),Oe.removeListener("end",z),Oe.removeListener("close",ee),Oe.removeListener("error",ae),Le.removeListener("error",ae),Oe.removeListener("end",re),Oe.removeListener("close",re),Le.removeListener("close",re)}return Oe.on("end",re),Oe.on("close",re),Le.on("close",re),Le.emit("pipe",Oe),Le}},{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,Ge,De){"use strict";function me(xe,fe){xe.prototype=Object.create(fe.prototype),xe.prototype.constructor=xe,xe.__proto__=fe}var ce={};function we(xe,fe,z){z||(z=Error);function ee(re,le,ue){return typeof fe=="string"?fe:fe(re,le,ue)}var ae=function(re){me(le,re);function le(ue,pe,be){return re.call(this,ee(ue,pe,be))||this}return le}(z);ae.prototype.name=z.name,ae.prototype.code=xe,ce[xe]=ae}function Le(xe,fe){if(Array.isArray(xe)){var z=xe.length;return xe=xe.map(function(ee){return String(ee)}),z>2?"one of ".concat(fe," ").concat(xe.slice(0,z-1).join(", "),", or ")+xe[z-1]:z===2?"one of ".concat(fe," ").concat(xe[0]," or ").concat(xe[1]):"of ".concat(fe," ").concat(xe[0])}else return"of ".concat(fe," ").concat(String(xe))}function Se(xe,fe,z){return xe.substr(!z||z<0?0:+z,fe.length)===fe}function Oe(xe,fe,z){return(z===void 0||z>xe.length)&&(z=xe.length),xe.substring(z-fe.length,z)===fe}function ve(xe,fe,z){return typeof z!="number"&&(z=0),z+fe.length>xe.length?!1:xe.indexOf(fe,z)!==-1}we("ERR_INVALID_OPT_VALUE",function(xe,fe){return'The value "'+fe+'" is invalid for option "'+xe+'"'},TypeError),we("ERR_INVALID_ARG_TYPE",function(xe,fe,z){var ee;typeof fe=="string"&&Se(fe,"not ")?(ee="must not be",fe=fe.replace(/^not /,"")):ee="must be";var ae;if(Oe(xe," argument"))ae="The ".concat(xe," ").concat(ee," ").concat(Le(fe,"type"));else{var re=ve(xe,".")?"property":"argument";ae='The "'.concat(xe,'" ').concat(re," ").concat(ee," ").concat(Le(fe,"type"))}return ae+=". Received type ".concat(typeof z),ae},TypeError),we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),we("ERR_METHOD_NOT_IMPLEMENTED",function(xe){return"The "+xe+" method is not implemented"}),we("ERR_STREAM_PREMATURE_CLOSE","Premature close"),we("ERR_STREAM_DESTROYED",function(xe){return"Cannot call "+xe+" after a stream was destroyed"}),we("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),we("ERR_STREAM_WRITE_AFTER_END","write after end"),we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),we("ERR_UNKNOWN_ENCODING",function(xe){return"Unknown encoding: "+xe},TypeError),we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ge.exports.codes=ce},{}],400:[function(oe,Ge,De){(function(me){(function(){"use strict";var ce=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};Ge.exports=xe;var we=oe("./_stream_readable"),Le=oe("./_stream_writable");oe("inherits")(xe,we);for(var Se=ce(Le.prototype),Oe=0;Oe<Se.length;Oe++){var ve=Se[Oe];xe.prototype[ve]||(xe.prototype[ve]=Le.prototype[ve])}function xe(ee){if(!(this instanceof xe))return new xe(ee);we.call(this,ee),Le.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",fe)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function fe(){this._writableState.ended||me.nextTick(z,this)}function z(ee){ee.end()}Object.defineProperty(xe.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,Ge,De){"use strict";Ge.exports=ce;var me=oe("./_stream_transform");oe("inherits")(ce,me);function ce(we){if(!(this instanceof ce))return new ce(we);me.call(this,we)}ce.prototype._transform=function(we,Le,Se){Se(null,we)}},{"./_stream_transform":403,inherits:364}],402:[function(oe,Ge,De){(function(me,ce){(function(){"use strict";Ge.exports=lt;var we;lt.ReadableState=Qe;var Le=oe("events").EventEmitter,Se=function(He,We){return He.listeners(We).length},Oe=oe("./internal/streams/stream"),ve=oe("buffer").Buffer,xe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function fe(Ee){return ve.from(Ee)}function z(Ee){return ve.isBuffer(Ee)||Ee instanceof xe}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,be=oe("../errors").codes,Ce=be.ERR_INVALID_ARG_TYPE,Fe=be.ERR_STREAM_PUSH_AFTER_EOF,je=be.ERR_METHOD_NOT_IMPLEMENTED,ke=be.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ae,Be,_e;oe("inherits")(lt,Oe);var et=le.errorOrDestroy,ze=["error","close","destroy","pause","resume"];function Xe(Ee,He,We){if(typeof Ee.prependListener=="function")return Ee.prependListener(He,We);!Ee._events||!Ee._events[He]?Ee.on(He,We):Array.isArray(Ee._events[He])?Ee._events[He].unshift(We):Ee._events[He]=[We,Ee._events[He]]}function Qe(Ee,He,We){we=we||oe("./_stream_duplex"),Ee=Ee||{},typeof We!="boolean"&&(We=He instanceof we),this.objectMode=!!Ee.objectMode,We&&(this.objectMode=this.objectMode||!!Ee.readableObjectMode),this.highWaterMark=pe(this,Ee,"readableHighWaterMark",We),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=Ee.emitClose!==!1,this.autoDestroy=!!Ee.autoDestroy,this.destroyed=!1,this.defaultEncoding=Ee.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ee.encoding&&(Ae||(Ae=oe("string_decoder/").StringDecoder),this.decoder=new Ae(Ee.encoding),this.encoding=Ee.encoding)}function lt(Ee){if(we=we||oe("./_stream_duplex"),!(this instanceof lt))return new lt(Ee);var He=this instanceof we;this._readableState=new Qe(Ee,this,He),this.readable=!0,Ee&&(typeof Ee.read=="function"&&(this._read=Ee.read),typeof Ee.destroy=="function"&&(this._destroy=Ee.destroy)),Oe.call(this)}Object.defineProperty(lt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(He){this._readableState&&(this._readableState.destroyed=He)}}),lt.prototype.destroy=le.destroy,lt.prototype._undestroy=le.undestroy,lt.prototype._destroy=function(Ee,He){He(Ee)},lt.prototype.push=function(Ee,He){var We=this._readableState,Ke;return We.objectMode?Ke=!0:typeof Ee=="string"&&(He=He||We.defaultEncoding,He!==We.encoding&&(Ee=ve.from(Ee,He),He=""),Ke=!0),ct(this,Ee,He,!1,Ke)},lt.prototype.unshift=function(Ee){return ct(this,Ee,null,!0,!1)};function ct(Ee,He,We,Ke,Je){ae("readableAddChunk",He);var dt=Ee._readableState;if(He===null)dt.reading=!1,yt(Ee,dt);else{var Ct;if(Je||(Ct=nt(dt,He)),Ct)et(Ee,Ct);else if(dt.objectMode||He&&He.length>0)if(typeof He!="string"&&!dt.objectMode&&Object.getPrototypeOf(He)!==ve.prototype&&(He=fe(He)),Ke)dt.endEmitted?et(Ee,new ke):vt(Ee,dt,He,!0);else if(dt.ended)et(Ee,new Fe);else{if(dt.destroyed)return!1;dt.reading=!1,dt.decoder&&!We?(He=dt.decoder.write(He),dt.objectMode||He.length!==0?vt(Ee,dt,He,!1):mt(Ee,dt)):vt(Ee,dt,He,!1)}else Ke||(dt.reading=!1,mt(Ee,dt))}return!dt.ended&&(dt.length<dt.highWaterMark||dt.length===0)}function vt(Ee,He,We,Ke){He.flowing&&He.length===0&&!He.sync?(He.awaitDrain=0,Ee.emit("data",We)):(He.length+=He.objectMode?1:We.length,Ke?He.buffer.unshift(We):He.buffer.push(We),He.needReadable&&ft(Ee)),mt(Ee,He)}function nt(Ee,He){var We;return!z(He)&&typeof He!="string"&&He!==void 0&&!Ee.objectMode&&(We=new Ce("chunk",["string","Buffer","Uint8Array"],He)),We}lt.prototype.isPaused=function(){return this._readableState.flowing===!1},lt.prototype.setEncoding=function(Ee){Ae||(Ae=oe("string_decoder/").StringDecoder);var He=new Ae(Ee);this._readableState.decoder=He,this._readableState.encoding=this._readableState.decoder.encoding;for(var We=this._readableState.buffer.head,Ke="";We!==null;)Ke+=He.write(We.data),We=We.next;return this._readableState.buffer.clear(),Ke!==""&&this._readableState.buffer.push(Ke),this._readableState.length=Ke.length,this};var it=1073741824;function pt(Ee){return Ee>=it?Ee=it:(Ee--,Ee|=Ee>>>1,Ee|=Ee>>>2,Ee|=Ee>>>4,Ee|=Ee>>>8,Ee|=Ee>>>16,Ee++),Ee}function xt(Ee,He){return Ee<=0||He.length===0&&He.ended?0:He.objectMode?1:Ee!==Ee?He.flowing&&He.length?He.buffer.head.data.length:He.length:(Ee>He.highWaterMark&&(He.highWaterMark=pt(Ee)),Ee<=He.length?Ee:He.ended?He.length:(He.needReadable=!0,0))}lt.prototype.read=function(Ee){ae("read",Ee),Ee=parseInt(Ee,10);var He=this._readableState,We=Ee;if(Ee!==0&&(He.emittedReadable=!1),Ee===0&&He.needReadable&&((He.highWaterMark!==0?He.length>=He.highWaterMark:He.length>0)||He.ended))return ae("read: emitReadable",He.length,He.ended),He.length===0&&He.ended?Te(this):ft(this),null;if(Ee=xt(Ee,He),Ee===0&&He.ended)return He.length===0&&Te(this),null;var Ke=He.needReadable;ae("need readable",Ke),(He.length===0||He.length-Ee<He.highWaterMark)&&(Ke=!0,ae("length less than watermark",Ke)),He.ended||He.reading?(Ke=!1,ae("reading or ended",Ke)):Ke&&(ae("do read"),He.reading=!0,He.sync=!0,He.length===0&&(He.needReadable=!0),this._read(He.highWaterMark),He.sync=!1,He.reading||(Ee=xt(We,He)));var Je;return Ee>0?Je=Pe(Ee,He):Je=null,Je===null?(He.needReadable=He.length<=He.highWaterMark,Ee=0):(He.length-=Ee,He.awaitDrain=0),He.length===0&&(He.ended||(He.needReadable=!0),We!==Ee&&He.ended&&Te(this)),Je!==null&&this.emit("data",Je),Je};function yt(Ee,He){if(ae("onEofChunk"),!He.ended){if(He.decoder){var We=He.decoder.end();We&&We.length&&(He.buffer.push(We),He.length+=He.objectMode?1:We.length)}He.ended=!0,He.sync?ft(Ee):(He.needReadable=!1,He.emittedReadable||(He.emittedReadable=!0,gt(Ee)))}}function ft(Ee){var He=Ee._readableState;ae("emitReadable",He.needReadable,He.emittedReadable),He.needReadable=!1,He.emittedReadable||(ae("emitReadable",He.flowing),He.emittedReadable=!0,me.nextTick(gt,Ee))}function gt(Ee){var He=Ee._readableState;ae("emitReadable_",He.destroyed,He.length,He.ended),!He.destroyed&&(He.length||He.ended)&&(Ee.emit("readable"),He.emittedReadable=!1),He.needReadable=!He.flowing&&!He.ended&&He.length<=He.highWaterMark,Ye(Ee)}function mt(Ee,He){He.readingMore||(He.readingMore=!0,me.nextTick(Nt,Ee,He))}function Nt(Ee,He){for(;!He.reading&&!He.ended&&(He.length<He.highWaterMark||He.flowing&&He.length===0);){var We=He.length;if(ae("maybeReadMore read 0"),Ee.read(0),We===He.length)break}He.readingMore=!1}lt.prototype._read=function(Ee){et(this,new je("_read()"))},lt.prototype.pipe=function(Ee,He){var We=this,Ke=this._readableState;switch(Ke.pipesCount){case 0:Ke.pipes=Ee;break;case 1:Ke.pipes=[Ke.pipes,Ee];break;default:Ke.pipes.push(Ee);break}Ke.pipesCount+=1,ae("pipe count=%d opts=%j",Ke.pipesCount,He);var Je=(!He||He.end!==!1)&&Ee!==me.stdout&&Ee!==me.stderr,dt=Je?ht:Xt;Ke.endEmitted?me.nextTick(dt):We.once("end",dt),Ee.on("unpipe",Ct);function Ct(tn,dn){ae("onunpipe"),tn===We&&dn&&dn.hasUnpiped===!1&&(dn.hasUnpiped=!0,Vt())}function ht(){ae("onend"),Ee.end()}var Lt=Tt(We);Ee.on("drain",Lt);var en=!1;function Vt(){ae("cleanup"),Ee.removeListener("close",rn),Ee.removeListener("finish",Ft),Ee.removeListener("drain",Lt),Ee.removeListener("error",Ut),Ee.removeListener("unpipe",Ct),We.removeListener("end",ht),We.removeListener("end",Xt),We.removeListener("data",Kt),en=!0,Ke.awaitDrain&&(!Ee._writableState||Ee._writableState.needDrain)&&Lt()}We.on("data",Kt);function Kt(tn){ae("ondata");var dn=Ee.write(tn);ae("dest.write",dn),dn===!1&&((Ke.pipesCount===1&&Ke.pipes===Ee||Ke.pipesCount>1&&Ze(Ke.pipes,Ee)!==-1)&&!en&&(ae("false write response, pause",Ke.awaitDrain),Ke.awaitDrain++),We.pause())}function Ut(tn){ae("onerror",tn),Xt(),Ee.removeListener("error",Ut),Se(Ee,"error")===0&&et(Ee,tn)}Xe(Ee,"error",Ut);function rn(){Ee.removeListener("finish",Ft),Xt()}Ee.once("close",rn);function Ft(){ae("onfinish"),Ee.removeListener("close",rn),Xt()}Ee.once("finish",Ft);function Xt(){ae("unpipe"),We.unpipe(Ee)}return Ee.emit("pipe",We),Ke.flowing||(ae("pipe resume"),We.resume()),Ee};function Tt(Ee){return function(){var We=Ee._readableState;ae("pipeOnDrain",We.awaitDrain),We.awaitDrain&&We.awaitDrain--,We.awaitDrain===0&&Se(Ee,"data")&&(We.flowing=!0,Ye(Ee))}}lt.prototype.unpipe=function(Ee){var He=this._readableState,We={hasUnpiped:!1};if(He.pipesCount===0)return this;if(He.pipesCount===1)return Ee&&Ee!==He.pipes?this:(Ee||(Ee=He.pipes),He.pipes=null,He.pipesCount=0,He.flowing=!1,Ee&&Ee.emit("unpipe",this,We),this);if(!Ee){var Ke=He.pipes,Je=He.pipesCount;He.pipes=null,He.pipesCount=0,He.flowing=!1;for(var dt=0;dt<Je;dt++)Ke[dt].emit("unpipe",this,{hasUnpiped:!1});return this}var Ct=Ze(He.pipes,Ee);return Ct===-1?this:(He.pipes.splice(Ct,1),He.pipesCount-=1,He.pipesCount===1&&(He.pipes=He.pipes[0]),Ee.emit("unpipe",this,We),this)},lt.prototype.on=function(Ee,He){var We=Oe.prototype.on.call(this,Ee,He),Ke=this._readableState;return Ee==="data"?(Ke.readableListening=this.listenerCount("readable")>0,Ke.flowing!==!1&&this.resume()):Ee==="readable"&&!Ke.endEmitted&&!Ke.readableListening&&(Ke.readableListening=Ke.needReadable=!0,Ke.flowing=!1,Ke.emittedReadable=!1,ae("on readable",Ke.length,Ke.reading),Ke.length?ft(this):Ke.reading||me.nextTick(St,this)),We},lt.prototype.addListener=lt.prototype.on,lt.prototype.removeListener=function(Ee,He){var We=Oe.prototype.removeListener.call(this,Ee,He);return Ee==="readable"&&me.nextTick(zt,this),We},lt.prototype.removeAllListeners=function(Ee){var He=Oe.prototype.removeAllListeners.apply(this,arguments);return(Ee==="readable"||Ee===void 0)&&me.nextTick(zt,this),He};function zt(Ee){var He=Ee._readableState;He.readableListening=Ee.listenerCount("readable")>0,He.resumeScheduled&&!He.paused?He.flowing=!0:Ee.listenerCount("data")>0&&Ee.resume()}function St(Ee){ae("readable nexttick read 0"),Ee.read(0)}lt.prototype.resume=function(){var Ee=this._readableState;return Ee.flowing||(ae("resume"),Ee.flowing=!Ee.readableListening,wt(this,Ee)),Ee.paused=!1,this};function wt(Ee,He){He.resumeScheduled||(He.resumeScheduled=!0,me.nextTick(at,Ee,He))}function at(Ee,He){ae("resume",He.reading),He.reading||Ee.read(0),He.resumeScheduled=!1,Ee.emit("resume"),Ye(Ee),He.flowing&&!He.reading&&Ee.read(0)}lt.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 Ye(Ee){var He=Ee._readableState;for(ae("flow",He.flowing);He.flowing&&Ee.read()!==null;);}lt.prototype.wrap=function(Ee){var He=this,We=this._readableState,Ke=!1;Ee.on("end",function(){if(ae("wrapped end"),We.decoder&&!We.ended){var Ct=We.decoder.end();Ct&&Ct.length&&He.push(Ct)}He.push(null)}),Ee.on("data",function(Ct){if(ae("wrapped data"),We.decoder&&(Ct=We.decoder.write(Ct)),!(We.objectMode&&Ct==null)&&!(!We.objectMode&&(!Ct||!Ct.length))){var ht=He.push(Ct);ht||(Ke=!0,Ee.pause())}});for(var Je in Ee)this[Je]===void 0&&typeof Ee[Je]=="function"&&(this[Je]=function(ht){return function(){return Ee[ht].apply(Ee,arguments)}}(Je));for(var dt=0;dt<ze.length;dt++)Ee.on(ze[dt],this.emit.bind(this,ze[dt]));return this._read=function(Ct){ae("wrapped _read",Ct),Ke&&(Ke=!1,Ee.resume())},this},typeof Symbol=="function"&&(lt.prototype[Symbol.asyncIterator]=function(){return Be===void 0&&(Be=oe("./internal/streams/async_iterator")),Be(this)}),Object.defineProperty(lt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(lt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(lt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(He){this._readableState&&(this._readableState.flowing=He)}}),lt._fromList=Pe,Object.defineProperty(lt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Pe(Ee,He){if(He.length===0)return null;var We;return He.objectMode?We=He.buffer.shift():!Ee||Ee>=He.length?(He.decoder?We=He.buffer.join(""):He.buffer.length===1?We=He.buffer.first():We=He.buffer.concat(He.length),He.buffer.clear()):We=He.buffer.consume(Ee,He.decoder),We}function Te(Ee){var He=Ee._readableState;ae("endReadable",He.endEmitted),He.endEmitted||(He.ended=!0,me.nextTick(Ve,He,Ee))}function Ve(Ee,He){if(ae("endReadableNT",Ee.endEmitted,Ee.length),!Ee.endEmitted&&Ee.length===0&&(Ee.endEmitted=!0,He.readable=!1,He.emit("end"),Ee.autoDestroy)){var We=He._writableState;(!We||We.autoDestroy&&We.finished)&&He.destroy()}}typeof Symbol=="function"&&(lt.from=function(Ee,He){return _e===void 0&&(_e=oe("./internal/streams/from")),_e(lt,Ee,He)});function Ze(Ee,He){for(var We=0,Ke=Ee.length;We<Ke;We++)if(Ee[We]===He)return We;return-1}}).call(this)}).call(this,oe("_process"),typeof wn!="undefined"?wn: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,Ge,De){"use strict";Ge.exports=xe;var me=oe("../errors").codes,ce=me.ERR_METHOD_NOT_IMPLEMENTED,we=me.ERR_MULTIPLE_CALLBACK,Le=me.ERR_TRANSFORM_ALREADY_TRANSFORMING,Se=me.ERR_TRANSFORM_WITH_LENGTH_0,Oe=oe("./_stream_duplex");oe("inherits")(xe,Oe);function ve(ee,ae){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(le===null)return this.emit("error",new we);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 xe(ee){if(!(this instanceof xe))return new xe(ee);Oe.call(this,ee),this._transformState={afterTransform:ve.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",fe)}function fe(){var ee=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ae,re){z(ee,ae,re)}):z(this,null,null)}xe.prototype.push=function(ee,ae){return this._transformState.needTransform=!1,Oe.prototype.push.call(this,ee,ae)},xe.prototype._transform=function(ee,ae,re){re(new ce("_transform()"))},xe.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)}},xe.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},xe.prototype._destroy=function(ee,ae){Oe.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 Se;if(ee._transformState.transforming)throw new Le;return ee.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(oe,Ge,De){(function(me,ce){(function(){"use strict";Ge.exports=Qe;function we(Ye,Pe,Te){this.chunk=Ye,this.encoding=Pe,this.callback=Te,this.next=null}function Le(Ye){var Pe=this;this.next=null,this.entry=null,this.finish=function(){at(Pe,Ye)}}var Se;Qe.WritableState=ze;var Oe={deprecate:oe("util-deprecate")},ve=oe("./internal/streams/stream"),xe=oe("buffer").Buffer,fe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function z(Ye){return xe.from(Ye)}function ee(Ye){return xe.isBuffer(Ye)||Ye instanceof fe}var ae=oe("./internal/streams/destroy"),re=oe("./internal/streams/state"),le=re.getHighWaterMark,ue=oe("../errors").codes,pe=ue.ERR_INVALID_ARG_TYPE,be=ue.ERR_METHOD_NOT_IMPLEMENTED,Ce=ue.ERR_MULTIPLE_CALLBACK,Fe=ue.ERR_STREAM_CANNOT_PIPE,je=ue.ERR_STREAM_DESTROYED,ke=ue.ERR_STREAM_NULL_VALUES,Ae=ue.ERR_STREAM_WRITE_AFTER_END,Be=ue.ERR_UNKNOWN_ENCODING,_e=ae.errorOrDestroy;oe("inherits")(Qe,ve);function et(){}function ze(Ye,Pe,Te){Se=Se||oe("./_stream_duplex"),Ye=Ye||{},typeof Te!="boolean"&&(Te=Pe instanceof Se),this.objectMode=!!Ye.objectMode,Te&&(this.objectMode=this.objectMode||!!Ye.writableObjectMode),this.highWaterMark=le(this,Ye,"writableHighWaterMark",Te),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ve=Ye.decodeStrings===!1;this.decodeStrings=!Ve,this.defaultEncoding=Ye.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ze){yt(Pe,Ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ye.emitClose!==!1,this.autoDestroy=!!Ye.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Le(this)}ze.prototype.getBuffer=function(){for(var Pe=this.bufferedRequest,Te=[];Pe;)Te.push(Pe),Pe=Pe.next;return Te},function(){try{Object.defineProperty(ze.prototype,"buffer",{get:Oe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ye){}}();var Xe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Xe=Function.prototype[Symbol.hasInstance],Object.defineProperty(Qe,Symbol.hasInstance,{value:function(Pe){return Xe.call(this,Pe)?!0:this!==Qe?!1:Pe&&Pe._writableState instanceof ze}})):Xe=function(Pe){return Pe instanceof this};function Qe(Ye){Se=Se||oe("./_stream_duplex");var Pe=this instanceof Se;if(!Pe&&!Xe.call(Qe,this))return new Qe(Ye);this._writableState=new ze(Ye,this,Pe),this.writable=!0,Ye&&(typeof Ye.write=="function"&&(this._write=Ye.write),typeof Ye.writev=="function"&&(this._writev=Ye.writev),typeof Ye.destroy=="function"&&(this._destroy=Ye.destroy),typeof Ye.final=="function"&&(this._final=Ye.final)),ve.call(this)}Qe.prototype.pipe=function(){_e(this,new Fe)};function lt(Ye,Pe){var Te=new Ae;_e(Ye,Te),me.nextTick(Pe,Te)}function ct(Ye,Pe,Te,Ve){var Ze;return Te===null?Ze=new ke:typeof Te!="string"&&!Pe.objectMode&&(Ze=new pe("chunk",["string","Buffer"],Te)),Ze?(_e(Ye,Ze),me.nextTick(Ve,Ze),!1):!0}Qe.prototype.write=function(Ye,Pe,Te){var Ve=this._writableState,Ze=!1,Ee=!Ve.objectMode&&ee(Ye);return Ee&&!xe.isBuffer(Ye)&&(Ye=z(Ye)),typeof Pe=="function"&&(Te=Pe,Pe=null),Ee?Pe="buffer":Pe||(Pe=Ve.defaultEncoding),typeof Te!="function"&&(Te=et),Ve.ending?lt(this,Te):(Ee||ct(this,Ve,Ye,Te))&&(Ve.pendingcb++,Ze=nt(this,Ve,Ee,Ye,Pe,Te)),Ze},Qe.prototype.cork=function(){this._writableState.corked++},Qe.prototype.uncork=function(){var Ye=this._writableState;Ye.corked&&(Ye.corked--,!Ye.writing&&!Ye.corked&&!Ye.bufferProcessing&&Ye.bufferedRequest&&mt(this,Ye))},Qe.prototype.setDefaultEncoding=function(Pe){if(typeof Pe=="string"&&(Pe=Pe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Pe+"").toLowerCase())>-1))throw new Be(Pe);return this._writableState.defaultEncoding=Pe,this},Object.defineProperty(Qe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function vt(Ye,Pe,Te){return!Ye.objectMode&&Ye.decodeStrings!==!1&&typeof Pe=="string"&&(Pe=xe.from(Pe,Te)),Pe}Object.defineProperty(Qe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function nt(Ye,Pe,Te,Ve,Ze,Ee){if(!Te){var He=vt(Pe,Ve,Ze);Ve!==He&&(Te=!0,Ze="buffer",Ve=He)}var We=Pe.objectMode?1:Ve.length;Pe.length+=We;var Ke=Pe.length<Pe.highWaterMark;if(Ke||(Pe.needDrain=!0),Pe.writing||Pe.corked){var Je=Pe.lastBufferedRequest;Pe.lastBufferedRequest={chunk:Ve,encoding:Ze,isBuf:Te,callback:Ee,next:null},Je?Je.next=Pe.lastBufferedRequest:Pe.bufferedRequest=Pe.lastBufferedRequest,Pe.bufferedRequestCount+=1}else it(Ye,Pe,!1,We,Ve,Ze,Ee);return Ke}function it(Ye,Pe,Te,Ve,Ze,Ee,He){Pe.writelen=Ve,Pe.writecb=He,Pe.writing=!0,Pe.sync=!0,Pe.destroyed?Pe.onwrite(new je("write")):Te?Ye._writev(Ze,Pe.onwrite):Ye._write(Ze,Ee,Pe.onwrite),Pe.sync=!1}function pt(Ye,Pe,Te,Ve,Ze){--Pe.pendingcb,Te?(me.nextTick(Ze,Ve),me.nextTick(St,Ye,Pe),Ye._writableState.errorEmitted=!0,_e(Ye,Ve)):(Ze(Ve),Ye._writableState.errorEmitted=!0,_e(Ye,Ve),St(Ye,Pe))}function xt(Ye){Ye.writing=!1,Ye.writecb=null,Ye.length-=Ye.writelen,Ye.writelen=0}function yt(Ye,Pe){var Te=Ye._writableState,Ve=Te.sync,Ze=Te.writecb;if(typeof Ze!="function")throw new Ce;if(xt(Te),Pe)pt(Ye,Te,Ve,Pe,Ze);else{var Ee=Nt(Te)||Ye.destroyed;!Ee&&!Te.corked&&!Te.bufferProcessing&&Te.bufferedRequest&&mt(Ye,Te),Ve?me.nextTick(ft,Ye,Te,Ee,Ze):ft(Ye,Te,Ee,Ze)}}function ft(Ye,Pe,Te,Ve){Te||gt(Ye,Pe),Pe.pendingcb--,Ve(),St(Ye,Pe)}function gt(Ye,Pe){Pe.length===0&&Pe.needDrain&&(Pe.needDrain=!1,Ye.emit("drain"))}function mt(Ye,Pe){Pe.bufferProcessing=!0;var Te=Pe.bufferedRequest;if(Ye._writev&&Te&&Te.next){var Ve=Pe.bufferedRequestCount,Ze=new Array(Ve),Ee=Pe.corkedRequestsFree;Ee.entry=Te;for(var He=0,We=!0;Te;)Ze[He]=Te,Te.isBuf||(We=!1),Te=Te.next,He+=1;Ze.allBuffers=We,it(Ye,Pe,!0,Pe.length,Ze,"",Ee.finish),Pe.pendingcb++,Pe.lastBufferedRequest=null,Ee.next?(Pe.corkedRequestsFree=Ee.next,Ee.next=null):Pe.corkedRequestsFree=new Le(Pe),Pe.bufferedRequestCount=0}else{for(;Te;){var Ke=Te.chunk,Je=Te.encoding,dt=Te.callback,Ct=Pe.objectMode?1:Ke.length;if(it(Ye,Pe,!1,Ct,Ke,Je,dt),Te=Te.next,Pe.bufferedRequestCount--,Pe.writing)break}Te===null&&(Pe.lastBufferedRequest=null)}Pe.bufferedRequest=Te,Pe.bufferProcessing=!1}Qe.prototype._write=function(Ye,Pe,Te){Te(new be("_write()"))},Qe.prototype._writev=null,Qe.prototype.end=function(Ye,Pe,Te){var Ve=this._writableState;return typeof Ye=="function"?(Te=Ye,Ye=null,Pe=null):typeof Pe=="function"&&(Te=Pe,Pe=null),Ye!=null&&this.write(Ye,Pe),Ve.corked&&(Ve.corked=1,this.uncork()),Ve.ending||wt(this,Ve,Te),this},Object.defineProperty(Qe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Nt(Ye){return Ye.ending&&Ye.length===0&&Ye.bufferedRequest===null&&!Ye.finished&&!Ye.writing}function Tt(Ye,Pe){Ye._final(function(Te){Pe.pendingcb--,Te&&_e(Ye,Te),Pe.prefinished=!0,Ye.emit("prefinish"),St(Ye,Pe)})}function zt(Ye,Pe){!Pe.prefinished&&!Pe.finalCalled&&(typeof Ye._final=="function"&&!Pe.destroyed?(Pe.pendingcb++,Pe.finalCalled=!0,me.nextTick(Tt,Ye,Pe)):(Pe.prefinished=!0,Ye.emit("prefinish")))}function St(Ye,Pe){var Te=Nt(Pe);if(Te&&(zt(Ye,Pe),Pe.pendingcb===0&&(Pe.finished=!0,Ye.emit("finish"),Pe.autoDestroy))){var Ve=Ye._readableState;(!Ve||Ve.autoDestroy&&Ve.endEmitted)&&Ye.destroy()}return Te}function wt(Ye,Pe,Te){Pe.ending=!0,St(Ye,Pe),Te&&(Pe.finished?me.nextTick(Te):Ye.once("finish",Te)),Pe.ended=!0,Ye.writable=!1}function at(Ye,Pe,Te){var Ve=Ye.entry;for(Ye.entry=null;Ve;){var Ze=Ve.callback;Pe.pendingcb--,Ze(Te),Ve=Ve.next}Pe.corkedRequestsFree.next=Ye}Object.defineProperty(Qe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Pe){this._writableState&&(this._writableState.destroyed=Pe)}}),Qe.prototype.destroy=ae.destroy,Qe.prototype._undestroy=ae.undestroy,Qe.prototype._destroy=function(Ye,Pe){Pe(Ye)}}).call(this)}).call(this,oe("_process"),typeof wn!="undefined"?wn: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,Ge,De){(function(me){(function(){"use strict";var ce;function we(ke,Ae,Be){return Ae=Le(Ae),Ae in ke?Object.defineProperty(ke,Ae,{value:Be,enumerable:!0,configurable:!0,writable:!0}):ke[Ae]=Be,ke}function Le(ke){var Ae=Se(ke,"string");return typeof Ae=="symbol"?Ae:String(Ae)}function Se(ke,Ae){if(typeof ke!="object"||ke===null)return ke;var Be=ke[Symbol.toPrimitive];if(Be!==void 0){var _e=Be.call(ke,Ae||"default");if(typeof _e!="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ae==="string"?String:Number)(ke)}var Oe=oe("./end-of-stream"),ve=Symbol("lastResolve"),xe=Symbol("lastReject"),fe=Symbol("error"),z=Symbol("ended"),ee=Symbol("lastPromise"),ae=Symbol("handlePromise"),re=Symbol("stream");function le(ke,Ae){return{value:ke,done:Ae}}function ue(ke){var Ae=ke[ve];if(Ae!==null){var Be=ke[re].read();Be!==null&&(ke[ee]=null,ke[ve]=null,ke[xe]=null,Ae(le(Be,!1)))}}function pe(ke){me.nextTick(ue,ke)}function be(ke,Ae){return function(Be,_e){ke.then(function(){if(Ae[z]){Be(le(void 0,!0));return}Ae[ae](Be,_e)},_e)}}var Ce=Object.getPrototypeOf(function(){}),Fe=Object.setPrototypeOf((ce={get stream(){return this[re]},next:function(){var Ae=this,Be=this[fe];if(Be!==null)return Promise.reject(Be);if(this[z])return Promise.resolve(le(void 0,!0));if(this[re].destroyed)return new Promise(function(Xe,Qe){me.nextTick(function(){Ae[fe]?Qe(Ae[fe]):Xe(le(void 0,!0))})});var _e=this[ee],et;if(_e)et=new Promise(be(_e,this));else{var ze=this[re].read();if(ze!==null)return Promise.resolve(le(ze,!1));et=new Promise(this[ae])}return this[ee]=et,et}},we(ce,Symbol.asyncIterator,function(){return this}),we(ce,"return",function(){var Ae=this;return new Promise(function(Be,_e){Ae[re].destroy(null,function(et){if(et){_e(et);return}Be(le(void 0,!0))})})}),ce),Ce),je=function(Ae){var Be,_e=Object.create(Fe,(Be={},we(Be,re,{value:Ae,writable:!0}),we(Be,ve,{value:null,writable:!0}),we(Be,xe,{value:null,writable:!0}),we(Be,fe,{value:null,writable:!0}),we(Be,z,{value:Ae._readableState.endEmitted,writable:!0}),we(Be,ae,{value:function(ze,Xe){var Qe=_e[re].read();Qe?(_e[ee]=null,_e[ve]=null,_e[xe]=null,ze(le(Qe,!1))):(_e[ve]=ze,_e[xe]=Xe)},writable:!0}),Be));return _e[ee]=null,Oe(Ae,function(et){if(et&&et.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ze=_e[xe];ze!==null&&(_e[ee]=null,_e[ve]=null,_e[xe]=null,ze(et)),_e[fe]=et;return}var Xe=_e[ve];Xe!==null&&(_e[ee]=null,_e[ve]=null,_e[xe]=null,Xe(le(void 0,!0))),_e[z]=!0}),Ae.on("readable",pe.bind(null,_e)),_e};Ge.exports=je}).call(this)}).call(this,oe("_process"))},{"./end-of-stream":408,_process:467}],406:[function(oe,Ge,De){"use strict";function me(ue,pe){var be=Object.keys(ue);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(ue);pe&&(Ce=Ce.filter(function(Fe){return Object.getOwnPropertyDescriptor(ue,Fe).enumerable})),be.push.apply(be,Ce)}return be}function ce(ue){for(var pe=1;pe<arguments.length;pe++){var be=arguments[pe]!=null?arguments[pe]:{};pe%2?me(Object(be),!0).forEach(function(Ce){we(ue,Ce,be[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(be)):me(Object(be)).forEach(function(Ce){Object.defineProperty(ue,Ce,Object.getOwnPropertyDescriptor(be,Ce))})}return ue}function we(ue,pe,be){return pe=ve(pe),pe in ue?Object.defineProperty(ue,pe,{value:be,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=be,ue}function Le(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function Se(ue,pe){for(var be=0;be<pe.length;be++){var Ce=pe[be];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ue,ve(Ce.key),Ce)}}function Oe(ue,pe,be){return pe&&Se(ue.prototype,pe),be&&Se(ue,be),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function ve(ue){var pe=xe(ue,"string");return typeof pe=="symbol"?pe:String(pe)}function xe(ue,pe){if(typeof ue!="object"||ue===null)return ue;var be=ue[Symbol.toPrimitive];if(be!==void 0){var Ce=be.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 fe=oe("buffer"),z=fe.Buffer,ee=oe("util"),ae=ee.inspect,re=ae&&ae.custom||"inspect";function le(ue,pe,be){z.prototype.copy.call(ue,pe,be)}Ge.exports=function(){function ue(){Le(this,ue),this.head=null,this.tail=null,this.length=0}return Oe(ue,[{key:"push",value:function(be){var Ce={data:be,next:null};this.length>0?this.tail.next=Ce:this.head=Ce,this.tail=Ce,++this.length}},{key:"unshift",value:function(be){var Ce={data:be,next:this.head};this.length===0&&(this.tail=Ce),this.head=Ce,++this.length}},{key:"shift",value:function(){if(this.length!==0){var be=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,be}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(be){if(this.length===0)return"";for(var Ce=this.head,Fe=""+Ce.data;Ce=Ce.next;)Fe+=be+Ce.data;return Fe}},{key:"concat",value:function(be){if(this.length===0)return z.alloc(0);for(var Ce=z.allocUnsafe(be>>>0),Fe=this.head,je=0;Fe;)le(Fe.data,Ce,je),je+=Fe.data.length,Fe=Fe.next;return Ce}},{key:"consume",value:function(be,Ce){var Fe;return be<this.head.data.length?(Fe=this.head.data.slice(0,be),this.head.data=this.head.data.slice(be)):be===this.head.data.length?Fe=this.shift():Fe=Ce?this._getString(be):this._getBuffer(be),Fe}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(be){var Ce=this.head,Fe=1,je=Ce.data;for(be-=je.length;Ce=Ce.next;){var ke=Ce.data,Ae=be>ke.length?ke.length:be;if(Ae===ke.length?je+=ke:je+=ke.slice(0,be),be-=Ae,be===0){Ae===ke.length?(++Fe,Ce.next?this.head=Ce.next:this.head=this.tail=null):(this.head=Ce,Ce.data=ke.slice(Ae));break}++Fe}return this.length-=Fe,je}},{key:"_getBuffer",value:function(be){var Ce=z.allocUnsafe(be),Fe=this.head,je=1;for(Fe.data.copy(Ce),be-=Fe.data.length;Fe=Fe.next;){var ke=Fe.data,Ae=be>ke.length?ke.length:be;if(ke.copy(Ce,Ce.length-be,0,Ae),be-=Ae,be===0){Ae===ke.length?(++je,Fe.next?this.head=Fe.next:this.head=this.tail=null):(this.head=Fe,Fe.data=ke.slice(Ae));break}++je}return this.length-=je,Ce}},{key:re,value:function(be,Ce){return ae(this,ce(ce({},Ce),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(oe,Ge,De){(function(me){(function(){"use strict";function ce(xe,fe){var z=this,ee=this._readableState&&this._readableState.destroyed,ae=this._writableState&&this._writableState.destroyed;return ee||ae?(fe?fe(xe):xe&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,me.nextTick(Oe,this,xe)):me.nextTick(Oe,this,xe)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(xe||null,function(re){!fe&&re?z._writableState?z._writableState.errorEmitted?me.nextTick(Le,z):(z._writableState.errorEmitted=!0,me.nextTick(we,z,re)):me.nextTick(we,z,re):fe?(me.nextTick(Le,z),fe(re)):me.nextTick(Le,z)}),this)}function we(xe,fe){Oe(xe,fe),Le(xe)}function Le(xe){xe._writableState&&!xe._writableState.emitClose||xe._readableState&&!xe._readableState.emitClose||xe.emit("close")}function Se(){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 Oe(xe,fe){xe.emit("error",fe)}function ve(xe,fe){var z=xe._readableState,ee=xe._writableState;z&&z.autoDestroy||ee&&ee.autoDestroy?xe.destroy(fe):xe.emit("error",fe)}Ge.exports={destroy:ce,undestroy:Se,errorOrDestroy:ve}}).call(this)}).call(this,oe("_process"))},{_process:467}],408:[function(oe,Ge,De){"use strict";var me=oe("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ce(Oe){var ve=!1;return function(){if(!ve){ve=!0;for(var xe=arguments.length,fe=new Array(xe),z=0;z<xe;z++)fe[z]=arguments[z];Oe.apply(this,fe)}}}function we(){}function Le(Oe){return Oe.setHeader&&typeof Oe.abort=="function"}function Se(Oe,ve,xe){if(typeof ve=="function")return Se(Oe,null,ve);ve||(ve={}),xe=ce(xe||we);var fe=ve.readable||ve.readable!==!1&&Oe.readable,z=ve.writable||ve.writable!==!1&&Oe.writable,ee=function(){Oe.writable||re()},ae=Oe._writableState&&Oe._writableState.finished,re=function(){z=!1,ae=!0,fe||xe.call(Oe)},le=Oe._readableState&&Oe._readableState.endEmitted,ue=function(){fe=!1,le=!0,z||xe.call(Oe)},pe=function(je){xe.call(Oe,je)},be=function(){var je;if(fe&&!le)return(!Oe._readableState||!Oe._readableState.ended)&&(je=new me),xe.call(Oe,je);if(z&&!ae)return(!Oe._writableState||!Oe._writableState.ended)&&(je=new me),xe.call(Oe,je)},Ce=function(){Oe.req.on("finish",re)};return Le(Oe)?(Oe.on("complete",re),Oe.on("abort",be),Oe.req?Ce():Oe.on("request",Ce)):z&&!Oe._writableState&&(Oe.on("end",ee),Oe.on("close",ee)),Oe.on("end",ue),Oe.on("finish",re),ve.error!==!1&&Oe.on("error",pe),Oe.on("close",be),function(){Oe.removeListener("complete",re),Oe.removeListener("abort",be),Oe.removeListener("request",Ce),Oe.req&&Oe.req.removeListener("finish",re),Oe.removeListener("end",ee),Oe.removeListener("close",ee),Oe.removeListener("finish",re),Oe.removeListener("end",ue),Oe.removeListener("error",pe),Oe.removeListener("close",be)}}Ge.exports=Se},{"../../../errors":399}],409:[function(oe,Ge,De){Ge.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(oe,Ge,De){"use strict";var me;function ce(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var we=oe("../../../errors").codes,Le=we.ERR_MISSING_ARGS,Se=we.ERR_STREAM_DESTROYED;function Oe(re){if(re)throw re}function ve(re){return re.setHeader&&typeof re.abort=="function"}function xe(re,le,ue,pe){pe=ce(pe);var be=!1;re.on("close",function(){be=!0}),me===void 0&&(me=oe("./end-of-stream")),me(re,{readable:le,writable:ue},function(Fe){if(Fe)return pe(Fe);be=!0,pe()});var Ce=!1;return function(Fe){if(!be&&!Ce){if(Ce=!0,ve(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(Fe||new Se("pipe"))}}}function fe(re){re()}function z(re,le){return re.pipe(le)}function ee(re){return!re.length||typeof re[re.length-1]!="function"?Oe: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 Le("streams");var be,Ce=le.map(function(Fe,je){var ke=je<le.length-1,Ae=je>0;return xe(Fe,ke,Ae,function(Be){be||(be=Be),Be&&Ce.forEach(fe),!ke&&(Ce.forEach(fe),pe(be))})});return le.reduce(z)}Ge.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(oe,Ge,De){"use strict";var me=oe("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ce(Le,Se,Oe){return Le.highWaterMark!=null?Le.highWaterMark:Se?Le[Oe]:null}function we(Le,Se,Oe,ve){var xe=ce(Se,ve,Oe);if(xe!=null){if(!(isFinite(xe)&&Math.floor(xe)===xe)||xe<0){var fe=ve?Oe:"highWaterMark";throw new me(fe,xe)}return Math.floor(xe)}return Le.objectMode?16:16*1024}Ge.exports={getHighWaterMark:we}},{"../../../errors":399}],412:[function(oe,Ge,De){arguments[4][393][0].apply(De,arguments)},{dup:393,events:344}],413:[function(oe,Ge,De){"use strict";var me=oe("safe-buffer").Buffer,ce=me.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 we(Ce){if(!Ce)return"utf8";for(var Fe;;)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(Fe)return;Ce=(""+Ce).toLowerCase(),Fe=!0}}function Le(Ce){var Fe=we(Ce);if(typeof Fe!="string"&&(me.isEncoding===ce||!ce(Ce)))throw new Error("Unknown encoding: "+Ce);return Fe||Ce}De.StringDecoder=Se;function Se(Ce){this.encoding=Le(Ce);var Fe;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,Fe=4;break;case"utf8":this.fillLast=fe,Fe=4;break;case"base64":this.text=le,this.end=ue,Fe=3;break;default:this.write=pe,this.end=be;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=me.allocUnsafe(Fe)}Se.prototype.write=function(Ce){if(Ce.length===0)return"";var Fe,je;if(this.lastNeed){if(Fe=this.fillLast(Ce),Fe===void 0)return"";je=this.lastNeed,this.lastNeed=0}else je=0;return je<Ce.length?Fe?Fe+this.text(Ce,je):this.text(Ce,je):Fe||""},Se.prototype.end=ee,Se.prototype.text=z,Se.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 Oe(Ce){return Ce<=127?0:Ce>>5===6?2:Ce>>4===14?3:Ce>>3===30?4:Ce>>6===2?-1:-2}function ve(Ce,Fe,je){var ke=Fe.length-1;if(ke<je)return 0;var Ae=Oe(Fe[ke]);return Ae>=0?(Ae>0&&(Ce.lastNeed=Ae-1),Ae):--ke<je||Ae===-2?0:(Ae=Oe(Fe[ke]),Ae>=0?(Ae>0&&(Ce.lastNeed=Ae-2),Ae):--ke<je||Ae===-2?0:(Ae=Oe(Fe[ke]),Ae>=0?(Ae>0&&(Ae===2?Ae=0:Ce.lastNeed=Ae-3),Ae):0))}function xe(Ce,Fe,je){if((Fe[0]&192)!==128)return Ce.lastNeed=0,"\uFFFD";if(Ce.lastNeed>1&&Fe.length>1){if((Fe[1]&192)!==128)return Ce.lastNeed=1,"\uFFFD";if(Ce.lastNeed>2&&Fe.length>2&&(Fe[2]&192)!==128)return Ce.lastNeed=2,"\uFFFD"}}function fe(Ce){var Fe=this.lastTotal-this.lastNeed,je=xe(this,Ce,Fe);if(je!==void 0)return je;if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,Fe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,Fe,0,Ce.length),this.lastNeed-=Ce.length}function z(Ce,Fe){var je=ve(this,Ce,Fe);if(!this.lastNeed)return Ce.toString("utf8",Fe);this.lastTotal=je;var ke=Ce.length-(je-this.lastNeed);return Ce.copy(this.lastChar,0,ke),Ce.toString("utf8",Fe,ke)}function ee(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Fe+"\uFFFD":Fe}function ae(Ce,Fe){if((Ce.length-Fe)%2===0){var je=Ce.toString("utf16le",Fe);if(je){var ke=je.charCodeAt(je.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],je.slice(0,-1)}return je}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ce[Ce.length-1],Ce.toString("utf16le",Fe,Ce.length-1)}function re(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";if(this.lastNeed){var je=this.lastTotal-this.lastNeed;return Fe+this.lastChar.toString("utf16le",0,je)}return Fe}function le(Ce,Fe){var je=(Ce.length-Fe)%3;return je===0?Ce.toString("base64",Fe):(this.lastNeed=3-je,this.lastTotal=3,je===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",Fe,Ce.length-je))}function ue(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Fe+this.lastChar.toString("base64",0,3-this.lastNeed):Fe}function pe(Ce){return Ce.toString(this.encoding)}function be(Ce){return Ce&&Ce.length?this.write(Ce):""}},{"safe-buffer":396}],414:[function(oe,Ge,De){(function(me,ce){(function(){var we=oe("process/browser.js").nextTick,Le=Function.prototype.apply,Se=Array.prototype.slice,Oe={},ve=0;De.setTimeout=function(){return new xe(Le.call(setTimeout,window,arguments),clearTimeout)},De.setInterval=function(){return new xe(Le.call(setInterval,window,arguments),clearInterval)},De.clearTimeout=De.clearInterval=function(fe){fe.close()};function xe(fe,z){this._id=fe,this._clearFn=z}xe.prototype.unref=xe.prototype.ref=function(){},xe.prototype.close=function(){this._clearFn.call(window,this._id)},De.enroll=function(fe,z){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=z},De.unenroll=function(fe){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=-1},De._unrefActive=De.active=function(fe){clearTimeout(fe._idleTimeoutId);var z=fe._idleTimeout;z>=0&&(fe._idleTimeoutId=setTimeout(function(){fe._onTimeout&&fe._onTimeout()},z))},De.setImmediate=typeof me=="function"?me:function(fe){var z=ve++,ee=arguments.length<2?!1:Se.call(arguments,1);return Oe[z]=!0,we(function(){Oe[z]&&(ee?fe.apply(null,ee):fe.call(null),De.clearImmediate(z))}),z},De.clearImmediate=typeof ce=="function"?ce:function(fe){delete Oe[fe]}}).call(this)}).call(this,oe("timers").setImmediate,oe("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(oe,Ge,De){var me=oe("buffer").Buffer;Ge.exports=function(ce){if(ce instanceof Uint8Array){if(ce.byteOffset===0&&ce.byteLength===ce.buffer.byteLength)return ce.buffer;if(typeof ce.buffer.slice=="function")return ce.buffer.slice(ce.byteOffset,ce.byteOffset+ce.byteLength)}if(me.isBuffer(ce)){for(var we=new Uint8Array(ce.length),Le=ce.length,Se=0;Se<Le;Se++)we[Se]=ce[Se];return we.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(oe,Ge,De){(function(me){(function(){Ge.exports=ce;function ce(Le,Se){if(we("noDeprecation"))return Le;var Oe=!1;function ve(){if(!Oe){if(we("throwDeprecation"))throw new Error(Se);we("traceDeprecation")?console.trace(Se):console.warn(Se),Oe=!0}return Le.apply(this,arguments)}return ve}function we(Le){try{if(!me.localStorage)return!1}catch(Oe){return!1}var Se=me.localStorage[Le];return Se==null?!1:String(Se).toLowerCase()==="true"}}).call(this)}).call(this,typeof wn!="undefined"?wn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(oe,Ge,De){arguments[4][84][0].apply(De,arguments)},{dup:84}],418:[function(oe,Ge,De){"use strict";var me=oe("is-arguments"),ce=oe("is-generator-function"),we=oe("which-typed-array"),Le=oe("is-typed-array");function Se(Je){return Je.call.bind(Je)}var Oe=typeof BigInt!="undefined",ve=typeof Symbol!="undefined",xe=Se(Object.prototype.toString),fe=Se(Number.prototype.valueOf),z=Se(String.prototype.valueOf),ee=Se(Boolean.prototype.valueOf);if(Oe)var ae=Se(BigInt.prototype.valueOf);if(ve)var re=Se(Symbol.prototype.valueOf);function le(Je,dt){if(typeof Je!="object")return!1;try{return dt(Je),!0}catch(Ct){return!1}}De.isArgumentsObject=me,De.isGeneratorFunction=ce,De.isTypedArray=Le;function ue(Je){return typeof Promise!="undefined"&&Je instanceof Promise||Je!==null&&typeof Je=="object"&&typeof Je.then=="function"&&typeof Je.catch=="function"}De.isPromise=ue;function pe(Je){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Je):Le(Je)||mt(Je)}De.isArrayBufferView=pe;function be(Je){return we(Je)==="Uint8Array"}De.isUint8Array=be;function Ce(Je){return we(Je)==="Uint8ClampedArray"}De.isUint8ClampedArray=Ce;function Fe(Je){return we(Je)==="Uint16Array"}De.isUint16Array=Fe;function je(Je){return we(Je)==="Uint32Array"}De.isUint32Array=je;function ke(Je){return we(Je)==="Int8Array"}De.isInt8Array=ke;function Ae(Je){return we(Je)==="Int16Array"}De.isInt16Array=Ae;function Be(Je){return we(Je)==="Int32Array"}De.isInt32Array=Be;function _e(Je){return we(Je)==="Float32Array"}De.isFloat32Array=_e;function et(Je){return we(Je)==="Float64Array"}De.isFloat64Array=et;function ze(Je){return we(Je)==="BigInt64Array"}De.isBigInt64Array=ze;function Xe(Je){return we(Je)==="BigUint64Array"}De.isBigUint64Array=Xe;function Qe(Je){return xe(Je)==="[object Map]"}Qe.working=typeof Map!="undefined"&&Qe(new Map);function lt(Je){return typeof Map=="undefined"?!1:Qe.working?Qe(Je):Je instanceof Map}De.isMap=lt;function ct(Je){return xe(Je)==="[object Set]"}ct.working=typeof Set!="undefined"&&ct(new Set);function vt(Je){return typeof Set=="undefined"?!1:ct.working?ct(Je):Je instanceof Set}De.isSet=vt;function nt(Je){return xe(Je)==="[object WeakMap]"}nt.working=typeof WeakMap!="undefined"&&nt(new WeakMap);function it(Je){return typeof WeakMap=="undefined"?!1:nt.working?nt(Je):Je instanceof WeakMap}De.isWeakMap=it;function pt(Je){return xe(Je)==="[object WeakSet]"}pt.working=typeof WeakSet!="undefined"&&pt(new WeakSet);function xt(Je){return pt(Je)}De.isWeakSet=xt;function yt(Je){return xe(Je)==="[object ArrayBuffer]"}yt.working=typeof ArrayBuffer!="undefined"&&yt(new ArrayBuffer);function ft(Je){return typeof ArrayBuffer=="undefined"?!1:yt.working?yt(Je):Je instanceof ArrayBuffer}De.isArrayBuffer=ft;function gt(Je){return xe(Je)==="[object DataView]"}gt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&>(new DataView(new ArrayBuffer(1),0,1));function mt(Je){return typeof DataView=="undefined"?!1:gt.working?gt(Je):Je instanceof DataView}De.isDataView=mt;var Nt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Tt(Je){return xe(Je)==="[object SharedArrayBuffer]"}function zt(Je){return typeof Nt=="undefined"?!1:(typeof Tt.working=="undefined"&&(Tt.working=Tt(new Nt)),Tt.working?Tt(Je):Je instanceof Nt)}De.isSharedArrayBuffer=zt;function St(Je){return xe(Je)==="[object AsyncFunction]"}De.isAsyncFunction=St;function wt(Je){return xe(Je)==="[object Map Iterator]"}De.isMapIterator=wt;function at(Je){return xe(Je)==="[object Set Iterator]"}De.isSetIterator=at;function Ye(Je){return xe(Je)==="[object Generator]"}De.isGeneratorObject=Ye;function Pe(Je){return xe(Je)==="[object WebAssembly.Module]"}De.isWebAssemblyCompiledModule=Pe;function Te(Je){return le(Je,fe)}De.isNumberObject=Te;function Ve(Je){return le(Je,z)}De.isStringObject=Ve;function Ze(Je){return le(Je,ee)}De.isBooleanObject=Ze;function Ee(Je){return Oe&&le(Je,ae)}De.isBigIntObject=Ee;function He(Je){return ve&&le(Je,re)}De.isSymbolObject=He;function We(Je){return Te(Je)||Ve(Je)||Ze(Je)||Ee(Je)||He(Je)}De.isBoxedPrimitive=We;function Ke(Je){return typeof Uint8Array!="undefined"&&(ft(Je)||zt(Je))}De.isAnyArrayBuffer=Ke,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Je){Object.defineProperty(De,Je,{enumerable:!1,value:function(){throw new Error(Je+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(oe,Ge,De){(function(me){(function(){var ce=Object.getOwnPropertyDescriptors||function(Nt){for(var Tt=Object.keys(Nt),zt={},St=0;St<Tt.length;St++)zt[Tt[St]]=Object.getOwnPropertyDescriptor(Nt,Tt[St]);return zt},we=/%[sdj%]/g;De.format=function(mt){if(!Ae(mt)){for(var Nt=[],Tt=0;Tt<arguments.length;Tt++)Nt.push(ve(arguments[Tt]));return Nt.join(" ")}for(var Tt=1,zt=arguments,St=zt.length,wt=String(mt).replace(we,function(Ye){if(Ye==="%%")return"%";if(Tt>=St)return Ye;switch(Ye){case"%s":return String(zt[Tt++]);case"%d":return Number(zt[Tt++]);case"%j":try{return JSON.stringify(zt[Tt++])}catch(Pe){return"[Circular]"}default:return Ye}}),at=zt[Tt];Tt<St;at=zt[++Tt])Fe(at)||!ze(at)?wt+=" "+at:wt+=" "+ve(at);return wt},De.deprecate=function(mt,Nt){if(typeof me!="undefined"&&me.noDeprecation===!0)return mt;if(typeof me=="undefined")return function(){return De.deprecate(mt,Nt).apply(this,arguments)};var Tt=!1;function zt(){if(!Tt){if(me.throwDeprecation)throw new Error(Nt);me.traceDeprecation?console.trace(Nt):console.error(Nt),Tt=!0}return mt.apply(this,arguments)}return zt};var Le={},Se=/^$/;if(me.env.NODE_DEBUG){var Oe=me.env.NODE_DEBUG;Oe=Oe.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Se=new RegExp("^"+Oe+"$","i")}De.debuglog=function(mt){if(mt=mt.toUpperCase(),!Le[mt])if(Se.test(mt)){var Nt=me.pid;Le[mt]=function(){var Tt=De.format.apply(De,arguments);console.error("%s %d: %s",mt,Nt,Tt)}}else Le[mt]=function(){};return Le[mt]};function ve(mt,Nt){var Tt={seen:[],stylize:fe};return arguments.length>=3&&(Tt.depth=arguments[2]),arguments.length>=4&&(Tt.colors=arguments[3]),Ce(Nt)?Tt.showHidden=Nt:Nt&&De._extend(Tt,Nt),_e(Tt.showHidden)&&(Tt.showHidden=!1),_e(Tt.depth)&&(Tt.depth=2),_e(Tt.colors)&&(Tt.colors=!1),_e(Tt.customInspect)&&(Tt.customInspect=!0),Tt.colors&&(Tt.stylize=xe),ee(Tt,mt,Tt.depth)}De.inspect=ve,ve.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]},ve.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function xe(mt,Nt){var Tt=ve.styles[Nt];return Tt?"\x1B["+ve.colors[Tt][0]+"m"+mt+"\x1B["+ve.colors[Tt][1]+"m":mt}function fe(mt,Nt){return mt}function z(mt){var Nt={};return mt.forEach(function(Tt,zt){Nt[Tt]=!0}),Nt}function ee(mt,Nt,Tt){if(mt.customInspect&&Nt&<(Nt.inspect)&&Nt.inspect!==De.inspect&&!(Nt.constructor&&Nt.constructor.prototype===Nt)){var zt=Nt.inspect(Tt,mt);return Ae(zt)||(zt=ee(mt,zt,Tt)),zt}var St=ae(mt,Nt);if(St)return St;var wt=Object.keys(Nt),at=z(wt);if(mt.showHidden&&(wt=Object.getOwnPropertyNames(Nt)),Qe(Nt)&&(wt.indexOf("message")>=0||wt.indexOf("description")>=0))return re(Nt);if(wt.length===0){if(lt(Nt)){var Ye=Nt.name?": "+Nt.name:"";return mt.stylize("[Function"+Ye+"]","special")}if(et(Nt))return mt.stylize(RegExp.prototype.toString.call(Nt),"regexp");if(Xe(Nt))return mt.stylize(Date.prototype.toString.call(Nt),"date");if(Qe(Nt))return re(Nt)}var Pe="",Te=!1,Ve=["{","}"];if(be(Nt)&&(Te=!0,Ve=["[","]"]),lt(Nt)){var Ze=Nt.name?": "+Nt.name:"";Pe=" [Function"+Ze+"]"}if(et(Nt)&&(Pe=" "+RegExp.prototype.toString.call(Nt)),Xe(Nt)&&(Pe=" "+Date.prototype.toUTCString.call(Nt)),Qe(Nt)&&(Pe=" "+re(Nt)),wt.length===0&&(!Te||Nt.length==0))return Ve[0]+Pe+Ve[1];if(Tt<0)return et(Nt)?mt.stylize(RegExp.prototype.toString.call(Nt),"regexp"):mt.stylize("[Object]","special");mt.seen.push(Nt);var Ee;return Te?Ee=le(mt,Nt,Tt,at,wt):Ee=wt.map(function(He){return ue(mt,Nt,Tt,at,He,Te)}),mt.seen.pop(),pe(Ee,Pe,Ve)}function ae(mt,Nt){if(_e(Nt))return mt.stylize("undefined","undefined");if(Ae(Nt)){var Tt="'"+JSON.stringify(Nt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return mt.stylize(Tt,"string")}if(ke(Nt))return mt.stylize(""+Nt,"number");if(Ce(Nt))return mt.stylize(""+Nt,"boolean");if(Fe(Nt))return mt.stylize("null","null")}function re(mt){return"["+Error.prototype.toString.call(mt)+"]"}function le(mt,Nt,Tt,zt,St){for(var wt=[],at=0,Ye=Nt.length;at<Ye;++at)xt(Nt,String(at))?wt.push(ue(mt,Nt,Tt,zt,String(at),!0)):wt.push("");return St.forEach(function(Pe){Pe.match(/^\d+$/)||wt.push(ue(mt,Nt,Tt,zt,Pe,!0))}),wt}function ue(mt,Nt,Tt,zt,St,wt){var at,Ye,Pe;if(Pe=Object.getOwnPropertyDescriptor(Nt,St)||{value:Nt[St]},Pe.get?Pe.set?Ye=mt.stylize("[Getter/Setter]","special"):Ye=mt.stylize("[Getter]","special"):Pe.set&&(Ye=mt.stylize("[Setter]","special")),xt(zt,St)||(at="["+St+"]"),Ye||(mt.seen.indexOf(Pe.value)<0?(Fe(Tt)?Ye=ee(mt,Pe.value,null):Ye=ee(mt,Pe.value,Tt-1),Ye.indexOf(`
|
|
|
`)>-1&&(wt?Ye=Ye.split(`
|
|
|
`).map(function(Te){return" "+Te}).join(`
|
|
|
`).slice(2):Ye=`
|
|
|
`+Ye.split(`
|
|
|
`).map(function(Te){return" "+Te}).join(`
|
|
|
`))):Ye=mt.stylize("[Circular]","special")),_e(at)){if(wt&&St.match(/^\d+$/))return Ye;at=JSON.stringify(""+St),at.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(at=at.slice(1,-1),at=mt.stylize(at,"name")):(at=at.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),at=mt.stylize(at,"string"))}return at+": "+Ye}function pe(mt,Nt,Tt){var zt=0,St=mt.reduce(function(wt,at){return zt++,at.indexOf(`
|
|
|
`)>=0&&zt++,wt+at.replace(/\u001b\[\d\d?m/g,"").length+1},0);return St>60?Tt[0]+(Nt===""?"":Nt+`
|
|
|
`)+" "+mt.join(`,
|
|
|
`)+" "+Tt[1]:Tt[0]+Nt+" "+mt.join(", ")+" "+Tt[1]}De.types=oe("./support/types");function be(mt){return Array.isArray(mt)}De.isArray=be;function Ce(mt){return typeof mt=="boolean"}De.isBoolean=Ce;function Fe(mt){return mt===null}De.isNull=Fe;function je(mt){return mt==null}De.isNullOrUndefined=je;function ke(mt){return typeof mt=="number"}De.isNumber=ke;function Ae(mt){return typeof mt=="string"}De.isString=Ae;function Be(mt){return typeof mt=="symbol"}De.isSymbol=Be;function _e(mt){return mt===void 0}De.isUndefined=_e;function et(mt){return ze(mt)&&vt(mt)==="[object RegExp]"}De.isRegExp=et,De.types.isRegExp=et;function ze(mt){return typeof mt=="object"&&mt!==null}De.isObject=ze;function Xe(mt){return ze(mt)&&vt(mt)==="[object Date]"}De.isDate=Xe,De.types.isDate=Xe;function Qe(mt){return ze(mt)&&(vt(mt)==="[object Error]"||mt instanceof Error)}De.isError=Qe,De.types.isNativeError=Qe;function lt(mt){return typeof mt=="function"}De.isFunction=lt;function ct(mt){return mt===null||typeof mt=="boolean"||typeof mt=="number"||typeof mt=="string"||typeof mt=="symbol"||typeof mt=="undefined"}De.isPrimitive=ct,De.isBuffer=oe("./support/isBuffer");function vt(mt){return Object.prototype.toString.call(mt)}function nt(mt){return mt<10?"0"+mt.toString(10):mt.toString(10)}var it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pt(){var mt=new Date,Nt=[nt(mt.getHours()),nt(mt.getMinutes()),nt(mt.getSeconds())].join(":");return[mt.getDate(),it[mt.getMonth()],Nt].join(" ")}De.log=function(){console.log("%s - %s",pt(),De.format.apply(De,arguments))},De.inherits=oe("inherits"),De._extend=function(mt,Nt){if(!Nt||!ze(Nt))return mt;for(var Tt=Object.keys(Nt),zt=Tt.length;zt--;)mt[Tt[zt]]=Nt[Tt[zt]];return mt};function xt(mt,Nt){return Object.prototype.hasOwnProperty.call(mt,Nt)}var yt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;De.promisify=function(Nt){if(typeof Nt!="function")throw new TypeError('The "original" argument must be of type Function');if(yt&&Nt[yt]){var Tt=Nt[yt];if(typeof Tt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Tt,yt,{value:Tt,enumerable:!1,writable:!1,configurable:!0}),Tt}function Tt(){for(var zt,St,wt=new Promise(function(Pe,Te){zt=Pe,St=Te}),at=[],Ye=0;Ye<arguments.length;Ye++)at.push(arguments[Ye]);at.push(function(Pe,Te){Pe?St(Pe):zt(Te)});try{Nt.apply(this,at)}catch(Pe){St(Pe)}return wt}return Object.setPrototypeOf(Tt,Object.getPrototypeOf(Nt)),yt&&Object.defineProperty(Tt,yt,{value:Tt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Tt,ce(Nt))},De.promisify.custom=yt;function ft(mt,Nt){if(!mt){var Tt=new Error("Promise was rejected with a falsy value");Tt.reason=mt,mt=Tt}return Nt(mt)}function gt(mt){if(typeof mt!="function")throw new TypeError('The "original" argument must be of type Function');function Nt(){for(var Tt=[],zt=0;zt<arguments.length;zt++)Tt.push(arguments[zt]);var St=Tt.pop();if(typeof St!="function")throw new TypeError("The last argument must be of type Function");var wt=this,at=function(){return St.apply(wt,arguments)};mt.apply(this,Tt).then(function(Ye){me.nextTick(at.bind(null,null,Ye))},function(Ye){me.nextTick(ft.bind(null,Ye,at))})}return Object.setPrototypeOf(Nt,Object.getPrototypeOf(mt)),Object.defineProperties(Nt,ce(mt)),Nt}De.callbackify=gt}).call(this)}).call(this,oe("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(oe,Ge,De){(function(me){(function(){"use strict";var ce=oe("for-each"),we=oe("available-typed-arrays"),Le=oe("call-bind"),Se=oe("call-bind/callBound"),Oe=oe("gopd"),ve=Se("Object.prototype.toString"),xe=oe("has-tostringtag/shams")(),fe=typeof globalThis=="undefined"?me:globalThis,z=we(),ee=Se("String.prototype.slice"),ae=Object.getPrototypeOf,re=Se("Array.prototype.indexOf",!0)||function(Ce,Fe){for(var je=0;je<Ce.length;je+=1)if(Ce[je]===Fe)return je;return-1},le={__proto__:null};xe&&Oe&&ae?ce(z,function(be){var Ce=new fe[be];if(Symbol.toStringTag in Ce){var Fe=ae(Ce),je=Oe(Fe,Symbol.toStringTag);if(!je){var ke=ae(Fe);je=Oe(ke,Symbol.toStringTag)}le["$"+be]=Le(je.get)}}):ce(z,function(be){var Ce=new fe[be];le["$"+be]=Le(Ce.slice)});var ue=function(Ce){var Fe=!1;return ce(le,function(je,ke){if(!Fe)try{"$"+je(Ce)===ke&&(Fe=ee(ke,1))}catch(Ae){}}),Fe},pe=function(Ce){var Fe=!1;return ce(le,function(je,ke){if(!Fe)try{je(Ce),Fe=ee(ke,1)}catch(Ae){}}),Fe};Ge.exports=function(Ce){if(!Ce||typeof Ce!="object")return!1;if(!xe){var Fe=ee(ve(Ce),8,-1);return re(z,Fe)>-1?Fe:Fe!=="Object"?!1:pe(Ce)}return Oe?ue(Ce):null}}).call(this)}).call(this,typeof wn!="undefined"?wn: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,Ge,De){(function(){"use strict";De.stripBOM=function(me){return me[0]==="\uFEFF"?me.substring(1):me}}).call(this)},{}],422:[function(oe,Ge,De){(function(){"use strict";var me,ce,we,Le,Se,Oe={}.hasOwnProperty;me=oe("xmlbuilder"),ce=oe("./defaults").defaults,Le=function(ve){return typeof ve=="string"&&(ve.indexOf("&")>=0||ve.indexOf(">")>=0||ve.indexOf("<")>=0)},Se=function(ve){return"<![CDATA["+we(ve)+"]]>"},we=function(ve){return ve.replace("]]>","]]]]><![CDATA[>")},De.Builder=function(){function ve(xe){var fe,z,ee;this.options={},z=ce["0.2"];for(fe in z)Oe.call(z,fe)&&(ee=z[fe],this.options[fe]=ee);for(fe in xe)Oe.call(xe,fe)&&(ee=xe[fe],this.options[fe]=ee)}return ve.prototype.buildObject=function(xe){var fe,z,ee,ae,re;return fe=this.options.attrkey,z=this.options.charkey,Object.keys(xe).length===1&&this.options.rootName===ce["0.2"].rootName?(re=Object.keys(xe)[0],xe=xe[re]):re=this.options.rootName,ee=function(le){return function(ue,pe){var be,Ce,Fe,je,ke,Ae;if(typeof pe!="object")le.options.cdata&&Le(pe)?ue.raw(Se(pe)):ue.txt(pe);else if(Array.isArray(pe)){for(je in pe)if(Oe.call(pe,je)){Ce=pe[je];for(ke in Ce)Fe=Ce[ke],ue=ee(ue.ele(ke),Fe).up()}}else for(ke in pe)if(Oe.call(pe,ke))if(Ce=pe[ke],ke===fe){if(typeof Ce=="object")for(be in Ce)Ae=Ce[be],ue=ue.att(be,Ae)}else if(ke===z)le.options.cdata&&Le(Ce)?ue=ue.raw(Se(Ce)):ue=ue.txt(Ce);else if(Array.isArray(Ce))for(je in Ce)Oe.call(Ce,je)&&(Fe=Ce[je],typeof Fe=="string"?le.options.cdata&&Le(Fe)?ue=ue.ele(ke).raw(Se(Fe)).up():ue=ue.ele(ke,Fe).up():ue=ee(ue.ele(ke),Fe).up());else typeof Ce=="object"?ue=ee(ue.ele(ke),Ce).up():typeof Ce=="string"&&le.options.cdata&&Le(Ce)?ue=ue.ele(ke).raw(Se(Ce)).up():(Ce==null&&(Ce=""),ue=ue.ele(ke,Ce.toString()).up());return ue}}(this),ae=me.create(re,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ee(ae,xe).end(this.options.renderOpts)},ve}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(oe,Ge,De){(function(){De.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,Ge,De){(function(){"use strict";var me,ce,we,Le,Se,Oe,ve,xe,fe,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;xe=oe("sax"),Le=oe("events"),me=oe("./bom"),ve=oe("./processors"),fe=oe("timers").setImmediate,ce=oe("./defaults").defaults,Se=function(re){return typeof re=="object"&&re!=null&&Object.keys(re).length===0},Oe=function(re,le,ue){var pe,be,Ce;for(pe=0,be=re.length;pe<be;pe++)Ce=re[pe],le=Ce(le,ue);return le},we=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)},De.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,be,Ce;if(!(this instanceof De.Parser))return new De.Parser(ue);this.options={},be=ce["0.2"];for(pe in be)ae.call(be,pe)&&(Ce=be[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(ve.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),fe(this.processAsync))}catch(be){if(pe=be,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},le.prototype.assignOrPush=function(ue,pe,be){return pe in ue?(ue[pe]instanceof Array||we(ue,pe,[ue[pe]]),ue[pe].push(be)):this.options.explicitArray?we(ue,pe,[be]):we(ue,pe,be)},le.prototype.reset=function(){var ue,pe,be,Ce;return this.removeAllListeners(),this.saxParser=xe.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Fe){return function(je){if(Fe.saxParser.resume(),!Fe.saxParser.errThrown)return Fe.saxParser.errThrown=!0,Fe.emit("error",je)}}(this),this.saxParser.onend=function(Fe){return function(){if(!Fe.saxParser.ended)return Fe.saxParser.ended=!0,Fe.emit("end",Fe.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(Fe){return function(je){var ke,Ae,Be,_e,et;if(Be={},Be[pe]="",!Fe.options.ignoreAttrs){et=je.attributes;for(ke in et)ae.call(et,ke)&&(!(ue in Be)&&!Fe.options.mergeAttrs&&(Be[ue]={}),Ae=Fe.options.attrValueProcessors?Oe(Fe.options.attrValueProcessors,je.attributes[ke],ke):je.attributes[ke],_e=Fe.options.attrNameProcessors?Oe(Fe.options.attrNameProcessors,ke):ke,Fe.options.mergeAttrs?Fe.assignOrPush(Be,_e,Ae):we(Be[ue],_e,Ae))}return Be["#name"]=Fe.options.tagNameProcessors?Oe(Fe.options.tagNameProcessors,je.name):je.name,Fe.options.xmlns&&(Be[Fe.options.xmlnskey]={uri:je.uri,local:je.local}),Ce.push(Be)}}(this),this.saxParser.onclosetag=function(Fe){return function(){var je,ke,Ae,Be,_e,et,ze,Xe,Qe,lt;if(et=Ce.pop(),_e=et["#name"],(!Fe.options.explicitChildren||!Fe.options.preserveChildrenOrder)&&delete et["#name"],et.cdata===!0&&(je=et.cdata,delete et.cdata),Qe=Ce[Ce.length-1],et[pe].match(/^\s*$/)&&!je?(ke=et[pe],delete et[pe]):(Fe.options.trim&&(et[pe]=et[pe].trim()),Fe.options.normalize&&(et[pe]=et[pe].replace(/\s{2,}/g," ").trim()),et[pe]=Fe.options.valueProcessors?Oe(Fe.options.valueProcessors,et[pe],_e):et[pe],Object.keys(et).length===1&&pe in et&&!Fe.EXPLICIT_CHARKEY&&(et=et[pe])),Se(et)&&(typeof Fe.options.emptyTag=="function"?et=Fe.options.emptyTag():et=Fe.options.emptyTag!==""?Fe.options.emptyTag:ke),Fe.options.validator!=null&&(lt="/"+function(){var ct,vt,nt;for(nt=[],ct=0,vt=Ce.length;ct<vt;ct++)Be=Ce[ct],nt.push(Be["#name"]);return nt}().concat(_e).join("/"),function(){var ct;try{return et=Fe.options.validator(lt,Qe&&Qe[_e],et)}catch(vt){return ct=vt,Fe.emit("error",ct)}}()),Fe.options.explicitChildren&&!Fe.options.mergeAttrs&&typeof et=="object"){if(!Fe.options.preserveChildrenOrder)Be={},Fe.options.attrkey in et&&(Be[Fe.options.attrkey]=et[Fe.options.attrkey],delete et[Fe.options.attrkey]),!Fe.options.charsAsChildren&&Fe.options.charkey in et&&(Be[Fe.options.charkey]=et[Fe.options.charkey],delete et[Fe.options.charkey]),Object.getOwnPropertyNames(et).length>0&&(Be[Fe.options.childkey]=et),et=Be;else if(Qe){Qe[Fe.options.childkey]=Qe[Fe.options.childkey]||[],ze={};for(Ae in et)ae.call(et,Ae)&&we(ze,Ae,et[Ae]);Qe[Fe.options.childkey].push(ze),delete et["#name"],Object.keys(et).length===1&&pe in et&&!Fe.EXPLICIT_CHARKEY&&(et=et[pe])}}return Ce.length>0?Fe.assignOrPush(Qe,_e,et):(Fe.options.explicitRoot&&(Xe=et,et={},we(et,_e,Xe)),Fe.resultObject=et,Fe.saxParser.ended=!0,Fe.emit("end",Fe.resultObject))}}(this),be=function(Fe){return function(je){var ke,Ae;if(Ae=Ce[Ce.length-1],Ae)return Ae[pe]+=je,Fe.options.explicitChildren&&Fe.options.preserveChildrenOrder&&Fe.options.charsAsChildren&&(Fe.options.includeWhiteChars||je.replace(/\\n/g,"").trim()!=="")&&(Ae[Fe.options.childkey]=Ae[Fe.options.childkey]||[],ke={"#name":"__text__"},ke[pe]=je,Fe.options.normalize&&(ke[pe]=ke[pe].replace(/\s{2,}/g," ").trim()),Ae[Fe.options.childkey].push(ke)),Ae}}(this),this.saxParser.ontext=be,this.saxParser.oncdata=function(Fe){return function(je){var ke;if(ke=be(je),ke)return ke.cdata=!0}}(this)},le.prototype.parseString=function(ue,pe){var be;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=me.stripBOM(ue),this.options.async?(this.remaining=ue,fe(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(Ce){if(be=Ce,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw be}else return this.emit("error",be),this.saxParser.errThrown=!0}},le.prototype.parseStringPromise=function(ue){return new Promise(function(pe){return function(be,Ce){return pe.parseString(ue,function(Fe,je){return Fe?Ce(Fe):be(je)})}}(this))},le}(Le),De.parseString=function(re,le,ue){var pe,be,Ce;return ue!=null?(typeof ue=="function"&&(pe=ue),typeof le=="object"&&(be=le)):(typeof le=="function"&&(pe=le),be={}),Ce=new De.Parser(be),Ce.parseString(re,pe)},De.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new De.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(oe,Ge,De){(function(){"use strict";var me;me=new RegExp(/(?!xmlns)^.*:/),De.normalize=function(ce){return ce.toLowerCase()},De.firstCharLowerCase=function(ce){return ce.charAt(0).toLowerCase()+ce.slice(1)},De.stripPrefix=function(ce){return ce.replace(me,"")},De.parseNumbers=function(ce){return isNaN(ce)||(ce=ce%1===0?parseInt(ce,10):parseFloat(ce)),ce},De.parseBooleans=function(ce){return/^(?:true|false)$/i.test(ce)&&(ce=ce.toLowerCase()==="true"),ce}}).call(this)},{}],426:[function(oe,Ge,De){(function(){"use strict";var me,ce,we,Le,Se=function(ve,xe){for(var fe in xe)Oe.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},Oe={}.hasOwnProperty;ce=oe("./defaults"),me=oe("./builder"),we=oe("./parser"),Le=oe("./processors"),De.defaults=ce.defaults,De.processors=Le,De.ValidationError=function(ve){Se(xe,ve);function xe(fe){this.message=fe}return xe}(Error),De.Builder=me.Builder,De.Parser=we.Parser,De.parseString=we.parseString,De.parseStringPromise=we.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(oe,Ge,De){(function(){Ge.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(oe,Ge,De){(function(){Ge.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,Ge,De){(function(){var me,ce,we,Le,Se,Oe,ve,xe=[].slice,fe={}.hasOwnProperty;me=function(){var z,ee,ae,re,le,ue;if(ue=arguments[0],le=2<=arguments.length?xe.call(arguments,1):[],Se(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)fe.call(re,ee)&&(ue[ee]=re[ee]);return ue},Se=function(z){return!!z&&Object.prototype.toString.call(z)==="[object Function]"},Oe=function(z){var ee;return!!z&&((ee=typeof z)=="function"||ee==="object")},we=function(z){return Se(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},Le=function(z){var ee;if(we(z))return!z.length;for(ee in z)if(fe.call(z,ee))return!1;return!0},ve=function(z){var ee,ae;return Oe(z)&&(ae=Object.getPrototypeOf(z))&&(ee=ae.constructor)&&typeof ee=="function"&&ee instanceof ee&&Function.prototype.toString.call(ee)===Function.prototype.toString.call(Object)},ce=function(z){return Se(z.valueOf)?z.valueOf():z},Ge.exports.assign=me,Ge.exports.isFunction=Se,Ge.exports.isObject=Oe,Ge.exports.isArray=we,Ge.exports.isEmpty=Le,Ge.exports.isPlainObject=ve,Ge.exports.getValue=ce}).call(this)},{}],430:[function(oe,Ge,De){(function(){Ge.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(oe,Ge,De){(function(){var me,ce,we;me=oe("./NodeType"),we=oe("./XMLNode"),Ge.exports=ce=function(){function Le(Se,Oe,ve){if(this.parent=Se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),Oe==null)throw new Error("Missing attribute name. "+this.debugInfo(Oe));this.name=this.stringify.name(Oe),this.value=this.stringify.attValue(ve),this.type=me.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(Le.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Le.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(Le.prototype,"textContent",{get:function(){return this.value},set:function(Se){return this.value=Se||""}}),Object.defineProperty(Le.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Le.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Le.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Le.prototype,"specified",{get:function(){return!0}}),Le.prototype.clone=function(){return Object.create(this)},Le.prototype.toString=function(Se){return this.options.writer.attribute(this,this.options.writer.filterOptions(Se))},Le.prototype.debugInfo=function(Se){return Se=Se||this.name,Se==null?"parent: <"+this.parent.name+">":"attribute: {"+Se+"}, parent: <"+this.parent.name+">"},Le.prototype.isEqualNode=function(Se){return!(Se.namespaceURI!==this.namespaceURI||Se.prefix!==this.prefix||Se.localName!==this.localName||Se.value!==this.value)},Le}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(oe,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;me=oe("./NodeType"),we=oe("./XMLCharacterData"),Ge.exports=ce=function(Oe){Le(ve,Oe);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=me.CData,this.value=this.stringify.cdata(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.cdata(this,this.options.writer.filterOptions(xe))},ve}(we)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(oe,Ge,De){(function(){var me,ce,we=function(Se,Oe){for(var ve in Oe)Le.call(Oe,ve)&&(Se[ve]=Oe[ve]);function xe(){this.constructor=Se}return xe.prototype=Oe.prototype,Se.prototype=new xe,Se.__super__=Oe.prototype,Se},Le={}.hasOwnProperty;ce=oe("./XMLNode"),Ge.exports=me=function(Se){we(Oe,Se);function Oe(ve){Oe.__super__.constructor.call(this,ve),this.value=""}return Object.defineProperty(Oe.prototype,"data",{get:function(){return this.value},set:function(ve){return this.value=ve||""}}),Object.defineProperty(Oe.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Oe.prototype,"textContent",{get:function(){return this.value},set:function(ve){return this.value=ve||""}}),Oe.prototype.clone=function(){return Object.create(this)},Oe.prototype.substringData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.appendData=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.insertData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.deleteData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.replaceData=function(ve,xe,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Oe.prototype.isEqualNode=function(ve){return!(!Oe.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.data!==this.data)},Oe}(ce)}).call(this)},{"./XMLNode":450}],434:[function(oe,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;me=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ge.exports=we=function(Oe){Le(ve,Oe);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=me.Comment,this.value=this.stringify.comment(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.comment(this,this.options.writer.filterOptions(xe))},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(oe,Ge,De){(function(){var me,ce,we;ce=oe("./XMLDOMErrorHandler"),we=oe("./XMLDOMStringList"),Ge.exports=me=function(){function Le(){var Se;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new ce,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=Se=Object.create(this.defaultParams)}return Object.defineProperty(Le.prototype,"parameterNames",{get:function(){return new we(Object.keys(this.defaultParams))}}),Le.prototype.getParameter=function(Se){return this.params.hasOwnProperty(Se)?this.params[Se]:null},Le.prototype.canSetParameter=function(Se,Oe){return!0},Le.prototype.setParameter=function(Se,Oe){return Oe!=null?this.params[Se]=Oe:delete this.params[Se]},Le}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(oe,Ge,De){(function(){var me;Ge.exports=me=function(){function ce(){}return ce.prototype.handleError=function(we){throw new Error(we)},ce}()}).call(this)},{}],437:[function(oe,Ge,De){(function(){var me;Ge.exports=me=function(){function ce(){}return ce.prototype.hasFeature=function(we,Le){return!0},ce.prototype.createDocumentType=function(we,Le,Se){throw new Error("This DOM method is not implemented.")},ce.prototype.createDocument=function(we,Le,Se){throw new Error("This DOM method is not implemented.")},ce.prototype.createHTMLDocument=function(we){throw new Error("This DOM method is not implemented.")},ce.prototype.getFeature=function(we,Le){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],438:[function(oe,Ge,De){(function(){var me;Ge.exports=me=function(){function ce(we){this.arr=we||[]}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.arr.length}}),ce.prototype.item=function(we){return this.arr[we]||null},ce.prototype.contains=function(we){return this.arr.indexOf(we)!==-1},ce}()}).call(this)},{}],439:[function(oe,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;we=oe("./XMLNode"),me=oe("./NodeType"),Ge.exports=ce=function(Oe){Le(ve,Oe);function ve(xe,fe,z,ee,ae,re){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(z==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(fe));if(!ee)throw new Error("Missing DTD attribute type. "+this.debugInfo(fe));if(!ae)throw new Error("Missing DTD attribute default. "+this.debugInfo(fe));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(fe));if(re&&!ae.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(fe));this.elementName=this.stringify.name(fe),this.type=me.AttributeDeclaration,this.attributeName=this.stringify.name(z),this.attributeType=this.stringify.dtdAttType(ee),re&&(this.defaultValue=this.stringify.dtdAttDefault(re)),this.defaultValueType=ae}return ve.prototype.toString=function(xe){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(xe))},ve}(we)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(oe,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;we=oe("./XMLNode"),me=oe("./NodeType"),Ge.exports=ce=function(Oe){Le(ve,Oe);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD element name. "+this.debugInfo());z||(z="(#PCDATA)"),Array.isArray(z)&&(z="("+z.join(",")+")"),this.name=this.stringify.name(fe),this.type=me.ElementDeclaration,this.value=this.stringify.dtdElementValue(z)}return ve.prototype.toString=function(xe){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(xe))},ve}(we)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se=function(ve,xe){for(var fe in xe)Oe.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},Oe={}.hasOwnProperty;Le=oe("./Utility").isObject,we=oe("./XMLNode"),me=oe("./NodeType"),Ge.exports=ce=function(ve){Se(xe,ve);function xe(fe,z,ee,ae){if(xe.__super__.constructor.call(this,fe),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=me.EntityDeclaration,!Le(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(xe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(xe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(xe.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(xe.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(xe.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(xe.prototype,"xmlVersion",{get:function(){return null}}),xe.prototype.toString=function(fe){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(fe))},xe}(we)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(oe,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;we=oe("./XMLNode"),me=oe("./NodeType"),Ge.exports=ce=function(Oe){Le(ve,Oe);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD notation name. "+this.debugInfo(fe));if(!z.pubID&&!z.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(fe));this.name=this.stringify.name(fe),this.type=me.NotationDeclaration,z.pubID!=null&&(this.pubID=this.stringify.dtdPubID(z.pubID)),z.sysID!=null&&(this.sysID=this.stringify.dtdSysID(z.sysID))}return Object.defineProperty(ve.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ve.prototype,"systemId",{get:function(){return this.sysID}}),ve.prototype.toString=function(xe){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(xe))},ve}(we)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se=function(ve,xe){for(var fe in xe)Oe.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},Oe={}.hasOwnProperty;Le=oe("./Utility").isObject,we=oe("./XMLNode"),me=oe("./NodeType"),Ge.exports=ce=function(ve){Se(xe,ve);function xe(fe,z,ee,ae){var re;xe.__super__.constructor.call(this,fe),Le(z)&&(re=z,z=re.version,ee=re.encoding,ae=re.standalone),z||(z="1.0"),this.type=me.Declaration,this.version=this.stringify.xmlVersion(z),ee!=null&&(this.encoding=this.stringify.xmlEncoding(ee)),ae!=null&&(this.standalone=this.stringify.xmlStandalone(ae))}return xe.prototype.toString=function(fe){return this.options.writer.declaration(this,this.options.writer.filterOptions(fe))},xe}(we)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se,Oe,ve,xe,fe,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;fe=oe("./Utility").isObject,xe=oe("./XMLNode"),me=oe("./NodeType"),ce=oe("./XMLDTDAttList"),Le=oe("./XMLDTDEntity"),we=oe("./XMLDTDElement"),Se=oe("./XMLDTDNotation"),ve=oe("./XMLNamedNodeMap"),Ge.exports=Oe=function(ae){z(re,ae);function re(le,ue,pe){var be,Ce,Fe,je,ke,Ae;if(re.__super__.constructor.call(this,le),this.type=me.DocType,le.children){for(je=le.children,Ce=0,Fe=je.length;Ce<Fe;Ce++)if(be=je[Ce],be.type===me.Element){this.name=be.name;break}}this.documentObject=le,fe(ue)&&(ke=ue,ue=ke.pubID,pe=ke.sysID),pe==null&&(Ae=[ue,pe],pe=Ae[0],ue=Ae[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,be,Ce;for(be={},Ce=this.children,ue=0,pe=Ce.length;ue<pe;ue++)le=Ce[ue],le.type===me.EntityDeclaration&&!le.pe&&(be[le.name]=le);return new ve(be)}}),Object.defineProperty(re.prototype,"notations",{get:function(){var le,ue,pe,be,Ce;for(be={},Ce=this.children,ue=0,pe=Ce.length;ue<pe;ue++)le=Ce[ue],le.type===me.NotationDeclaration&&(be[le.name]=le);return new ve(be)}}),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 we(this,le,ue),this.children.push(pe),this},re.prototype.attList=function(le,ue,pe,be,Ce){var Fe;return Fe=new ce(this,le,ue,pe,be,Ce),this.children.push(Fe),this},re.prototype.entity=function(le,ue){var pe;return pe=new Le(this,!1,le,ue),this.children.push(pe),this},re.prototype.pEntity=function(le,ue){var pe;return pe=new Le(this,!0,le,ue),this.children.push(pe),this},re.prototype.notation=function(le,ue){var pe;return pe=new Se(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,be,Ce){return this.attList(le,ue,pe,be,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}(xe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se,Oe,ve,xe,fe=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;xe=oe("./Utility").isPlainObject,we=oe("./XMLDOMImplementation"),ce=oe("./XMLDOMConfiguration"),Se=oe("./XMLNode"),me=oe("./NodeType"),ve=oe("./XMLStringifier"),Oe=oe("./XMLStringWriter"),Ge.exports=Le=function(ee){fe(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=me.Document,this.documentURI=null,this.domConfig=new ce,re||(re={}),re.writer||(re.writer=new Oe),this.options=re,this.stringify=new ve(re)}return Object.defineProperty(ae.prototype,"implementation",{value:new we}),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===me.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===me.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===me.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===me.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?xe(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}(Se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se,Oe,ve,xe,fe,z,ee,ae,re,le,ue,pe,be,Ce,Fe,je,ke,Ae,Be,_e,et={}.hasOwnProperty;_e=oe("./Utility"),Ae=_e.isObject,ke=_e.isFunction,Be=_e.isPlainObject,je=_e.getValue,me=oe("./NodeType"),ae=oe("./XMLDocument"),le=oe("./XMLElement"),Le=oe("./XMLCData"),Se=oe("./XMLComment"),pe=oe("./XMLRaw"),Fe=oe("./XMLText"),ue=oe("./XMLProcessingInstruction"),z=oe("./XMLDeclaration"),ee=oe("./XMLDocType"),Oe=oe("./XMLDTDAttList"),xe=oe("./XMLDTDEntity"),ve=oe("./XMLDTDElement"),fe=oe("./XMLDTDNotation"),we=oe("./XMLAttribute"),Ce=oe("./XMLStringifier"),be=oe("./XMLStringWriter"),ce=oe("./WriterState"),Ge.exports=re=function(){function ze(Xe,Qe,lt){var ct;this.name="?xml",this.type=me.Document,Xe||(Xe={}),ct={},Xe.writer?Be(Xe.writer)&&(ct=Xe.writer,Xe.writer=new be):Xe.writer=new be,this.options=Xe,this.writer=Xe.writer,this.writerOptions=this.writer.filterOptions(ct),this.stringify=new Ce(Xe),this.onDataCallback=Qe||function(){},this.onEndCallback=lt||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return ze.prototype.createChildNode=function(Xe){var Qe,lt,ct,vt,nt,it,pt,xt;switch(Xe.type){case me.CData:this.cdata(Xe.value);break;case me.Comment:this.comment(Xe.value);break;case me.Element:ct={},pt=Xe.attribs;for(lt in pt)et.call(pt,lt)&&(Qe=pt[lt],ct[lt]=Qe.value);this.node(Xe.name,ct);break;case me.Dummy:this.dummy();break;case me.Raw:this.raw(Xe.value);break;case me.Text:this.text(Xe.value);break;case me.ProcessingInstruction:this.instruction(Xe.target,Xe.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Xe.constructor.name)}for(xt=Xe.children,nt=0,it=xt.length;nt<it;nt++)vt=xt[nt],this.createChildNode(vt),vt.type===me.Element&&this.up();return this},ze.prototype.dummy=function(){return this},ze.prototype.node=function(Xe,Qe,lt){var ct;if(Xe==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(Xe));return this.openCurrent(),Xe=je(Xe),Qe==null&&(Qe={}),Qe=je(Qe),Ae(Qe)||(ct=[Qe,lt],lt=ct[0],Qe=ct[1]),this.currentNode=new le(this,Xe,Qe),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,lt!=null&&this.text(lt),this},ze.prototype.element=function(Xe,Qe,lt){var ct,vt,nt,it,pt,xt;if(this.currentNode&&this.currentNode.type===me.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Xe)||Ae(Xe)||ke(Xe))for(it=this.options.noValidation,this.options.noValidation=!0,xt=new ae(this.options).element("TEMP_ROOT"),xt.element(Xe),this.options.noValidation=it,pt=xt.children,vt=0,nt=pt.length;vt<nt;vt++)ct=pt[vt],this.createChildNode(ct),ct.type===me.Element&&this.up();else this.node(Xe,Qe,lt);return this},ze.prototype.attribute=function(Xe,Qe){var lt,ct;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Xe));if(Xe!=null&&(Xe=je(Xe)),Ae(Xe))for(lt in Xe)et.call(Xe,lt)&&(ct=Xe[lt],this.attribute(lt,ct));else ke(Qe)&&(Qe=Qe.apply()),this.options.keepNullAttributes&&Qe==null?this.currentNode.attribs[Xe]=new we(this,Xe,""):Qe!=null&&(this.currentNode.attribs[Xe]=new we(this,Xe,Qe));return this},ze.prototype.text=function(Xe){var Qe;return this.openCurrent(),Qe=new Fe(this,Xe),this.onData(this.writer.text(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.cdata=function(Xe){var Qe;return this.openCurrent(),Qe=new Le(this,Xe),this.onData(this.writer.cdata(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.comment=function(Xe){var Qe;return this.openCurrent(),Qe=new Se(this,Xe),this.onData(this.writer.comment(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.raw=function(Xe){var Qe;return this.openCurrent(),Qe=new pe(this,Xe),this.onData(this.writer.raw(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.instruction=function(Xe,Qe){var lt,ct,vt,nt,it;if(this.openCurrent(),Xe!=null&&(Xe=je(Xe)),Qe!=null&&(Qe=je(Qe)),Array.isArray(Xe))for(lt=0,nt=Xe.length;lt<nt;lt++)ct=Xe[lt],this.instruction(ct);else if(Ae(Xe))for(ct in Xe)et.call(Xe,ct)&&(vt=Xe[ct],this.instruction(ct,vt));else ke(Qe)&&(Qe=Qe.apply()),it=new ue(this,Xe,Qe),this.onData(this.writer.processingInstruction(it,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ze.prototype.declaration=function(Xe,Qe,lt){var ct;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ct=new z(this,Xe,Qe,lt),this.onData(this.writer.declaration(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.doctype=function(Xe,Qe,lt){if(this.openCurrent(),Xe==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,Qe,lt),this.currentNode.rootNodeName=Xe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ze.prototype.dtdElement=function(Xe,Qe){var lt;return this.openCurrent(),lt=new ve(this,Xe,Qe),this.onData(this.writer.dtdElement(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.attList=function(Xe,Qe,lt,ct,vt){var nt;return this.openCurrent(),nt=new Oe(this,Xe,Qe,lt,ct,vt),this.onData(this.writer.dtdAttList(nt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.entity=function(Xe,Qe){var lt;return this.openCurrent(),lt=new xe(this,!1,Xe,Qe),this.onData(this.writer.dtdEntity(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.pEntity=function(Xe,Qe){var lt;return this.openCurrent(),lt=new xe(this,!0,Xe,Qe),this.onData(this.writer.dtdEntity(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.notation=function(Xe,Qe){var lt;return this.openCurrent(),lt=new fe(this,Xe,Qe),this.onData(this.writer.dtdNotation(lt,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(Xe){var Qe,lt,ct,vt;if(!Xe.isOpen){if(!this.root&&this.currentLevel===0&&Xe.type===me.Element&&(this.root=Xe),lt="",Xe.type===me.Element){this.writerOptions.state=ce.OpenTag,lt=this.writer.indent(Xe,this.writerOptions,this.currentLevel)+"<"+Xe.name,vt=Xe.attribs;for(ct in vt)et.call(vt,ct)&&(Qe=vt[ct],lt+=this.writer.attribute(Qe,this.writerOptions,this.currentLevel));lt+=(Xe.children?">":"/>")+this.writer.endline(Xe,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.InsideTag}else this.writerOptions.state=ce.OpenTag,lt=this.writer.indent(Xe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Xe.rootNodeName,Xe.pubID&&Xe.sysID?lt+=' PUBLIC "'+Xe.pubID+'" "'+Xe.sysID+'"':Xe.sysID&&(lt+=' SYSTEM "'+Xe.sysID+'"'),Xe.children?(lt+=" [",this.writerOptions.state=ce.InsideTag):(this.writerOptions.state=ce.CloseTag,lt+=">"),lt+=this.writer.endline(Xe,this.writerOptions,this.currentLevel);return this.onData(lt,this.currentLevel),Xe.isOpen=!0}},ze.prototype.closeNode=function(Xe){var Qe;if(!Xe.isClosed)return Qe="",this.writerOptions.state=ce.CloseTag,Xe.type===me.Element?Qe=this.writer.indent(Xe,this.writerOptions,this.currentLevel)+"</"+Xe.name+">"+this.writer.endline(Xe,this.writerOptions,this.currentLevel):Qe=this.writer.indent(Xe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Xe,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.None,this.onData(Qe,this.currentLevel),Xe.isClosed=!0},ze.prototype.onData=function(Xe,Qe){return this.documentStarted=!0,this.onDataCallback(Xe,Qe+1)},ze.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ze.prototype.debugInfo=function(Xe){return Xe==null?"":"node: <"+Xe+">"},ze.prototype.ele=function(){return this.element.apply(this,arguments)},ze.prototype.nod=function(Xe,Qe,lt){return this.node(Xe,Qe,lt)},ze.prototype.txt=function(Xe){return this.text(Xe)},ze.prototype.dat=function(Xe){return this.cdata(Xe)},ze.prototype.com=function(Xe){return this.comment(Xe)},ze.prototype.ins=function(Xe,Qe){return this.instruction(Xe,Qe)},ze.prototype.dec=function(Xe,Qe,lt){return this.declaration(Xe,Qe,lt)},ze.prototype.dtd=function(Xe,Qe,lt){return this.doctype(Xe,Qe,lt)},ze.prototype.e=function(Xe,Qe,lt){return this.element(Xe,Qe,lt)},ze.prototype.n=function(Xe,Qe,lt){return this.node(Xe,Qe,lt)},ze.prototype.t=function(Xe){return this.text(Xe)},ze.prototype.d=function(Xe){return this.cdata(Xe)},ze.prototype.c=function(Xe){return this.comment(Xe)},ze.prototype.r=function(Xe){return this.raw(Xe)},ze.prototype.i=function(Xe,Qe){return this.instruction(Xe,Qe)},ze.prototype.att=function(){return this.currentNode&&this.currentNode.type===me.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ze.prototype.a=function(){return this.currentNode&&this.currentNode.type===me.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ze.prototype.ent=function(Xe,Qe){return this.entity(Xe,Qe)},ze.prototype.pent=function(Xe,Qe){return this.pEntity(Xe,Qe)},ze.prototype.not=function(Xe,Qe){return this.notation(Xe,Qe)},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,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;we=oe("./XMLNode"),me=oe("./NodeType"),Ge.exports=ce=function(Oe){Le(ve,Oe);function ve(xe){ve.__super__.constructor.call(this,xe),this.type=me.Dummy}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return""},ve}(we)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se,Oe,ve,xe,fe,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;fe=oe("./Utility"),xe=fe.isObject,ve=fe.isFunction,Oe=fe.getValue,Se=oe("./XMLNode"),me=oe("./NodeType"),ce=oe("./XMLAttribute"),Le=oe("./XMLNamedNodeMap"),Ge.exports=we=function(ae){z(re,ae);function re(le,ue,pe){var be,Ce,Fe,je;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=me.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===me.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(je=le.children,Ce=0,Fe=je.length;Ce<Fe;Ce++)if(be=je[Ce],be.type===me.DocType){be.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 Le(this.attribs)),this.attributeMap}}),re.prototype.clone=function(){var le,ue,pe,be;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},be=this.attribs;for(ue in be)ee.call(be,ue)&&(le=be[ue],pe.attribs[ue]=le.clone());return pe.children=[],this.children.forEach(function(Ce){var Fe;return Fe=Ce.clone(),Fe.parent=pe,pe.children.push(Fe)}),pe},re.prototype.attribute=function(le,ue){var pe,be;if(le!=null&&(le=Oe(le)),xe(le))for(pe in le)ee.call(le,pe)&&(be=le[pe],this.attribute(pe,be));else ve(ue)&&(ue=ue.apply()),this.options.keepNullAttributes&&ue==null?this.attribs[le]=new ce(this,le,""):ue!=null&&(this.attribs[le]=new ce(this,le,ue));return this},re.prototype.removeAttribute=function(le){var ue,pe,be;if(le==null)throw new Error("Missing attribute name. "+this.debugInfo());if(le=Oe(le),Array.isArray(le))for(pe=0,be=le.length;pe<be;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,be;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,be=this.attribs.length-1;0<=be?pe<=be:pe>=be;ue=0<=be?++pe:--pe)if(!this.attribs[ue].isEqualNode(le.attribs[ue]))return!1;return!0},re}(Se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(oe,Ge,De){(function(){var me;Ge.exports=me=function(){function ce(we){this.nodes=we}return Object.defineProperty(ce.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),ce.prototype.clone=function(){return this.nodes=null},ce.prototype.getNamedItem=function(we){return this.nodes[we]},ce.prototype.setNamedItem=function(we){var Le;return Le=this.nodes[we.nodeName],this.nodes[we.nodeName]=we,Le||null},ce.prototype.removeNamedItem=function(we){var Le;return Le=this.nodes[we],delete this.nodes[we],Le||null},ce.prototype.item=function(we){return this.nodes[Object.keys(this.nodes)[we]]||null},ce.prototype.getNamedItemNS=function(we,Le){throw new Error("This DOM method is not implemented.")},ce.prototype.setNamedItemNS=function(we){throw new Error("This DOM method is not implemented.")},ce.prototype.removeNamedItemNS=function(we,Le){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],450:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se,Oe,ve,xe,fe,z,ee,ae,re,le,ue,pe,be,Ce,Fe,je={}.hasOwnProperty;Fe=oe("./Utility"),Ce=Fe.isObject,be=Fe.isFunction,pe=Fe.isEmpty,ue=Fe.getValue,xe=null,we=null,Le=null,Se=null,Oe=null,re=null,le=null,ae=null,ve=null,ce=null,ee=null,fe=null,me=null,Ge.exports=z=function(){function ke(Ae){this.parent=Ae,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,xe||(xe=oe("./XMLElement"),we=oe("./XMLCData"),Le=oe("./XMLComment"),Se=oe("./XMLDeclaration"),Oe=oe("./XMLDocType"),re=oe("./XMLRaw"),le=oe("./XMLText"),ae=oe("./XMLProcessingInstruction"),ve=oe("./XMLDummy"),ce=oe("./NodeType"),ee=oe("./XMLNodeList"),fe=oe("./XMLNamedNodeMap"),me=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 Ae;return Ae=this.parent.children.indexOf(this),this.parent.children[Ae-1]||null}}),Object.defineProperty(ke.prototype,"nextSibling",{get:function(){var Ae;return Ae=this.parent.children.indexOf(this),this.parent.children[Ae+1]||null}}),Object.defineProperty(ke.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(ke.prototype,"textContent",{get:function(){var Ae,Be,_e,et,ze;if(this.nodeType===ce.Element||this.nodeType===ce.DocumentFragment){for(ze="",et=this.children,Be=0,_e=et.length;Be<_e;Be++)Ae=et[Be],Ae.textContent&&(ze+=Ae.textContent);return ze}else return null},set:function(Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),ke.prototype.setParent=function(Ae){var Be,_e,et,ze,Xe;for(this.parent=Ae,Ae&&(this.options=Ae.options,this.stringify=Ae.stringify),ze=this.children,Xe=[],_e=0,et=ze.length;_e<et;_e++)Be=ze[_e],Xe.push(Be.setParent(this));return Xe},ke.prototype.element=function(Ae,Be,_e){var et,ze,Xe,Qe,lt,ct,vt,nt,it,pt,xt;if(ct=null,Be===null&&_e==null&&(it=[{},null],Be=it[0],_e=it[1]),Be==null&&(Be={}),Be=ue(Be),Ce(Be)||(pt=[Be,_e],_e=pt[0],Be=pt[1]),Ae!=null&&(Ae=ue(Ae)),Array.isArray(Ae))for(Xe=0,vt=Ae.length;Xe<vt;Xe++)ze=Ae[Xe],ct=this.element(ze);else if(be(Ae))ct=this.element(Ae.apply());else if(Ce(Ae)){for(lt in Ae)if(je.call(Ae,lt))if(xt=Ae[lt],be(xt)&&(xt=xt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&<.indexOf(this.stringify.convertAttKey)===0)ct=this.attribute(lt.substr(this.stringify.convertAttKey.length),xt);else if(!this.options.separateArrayItems&&Array.isArray(xt)&&pe(xt))ct=this.dummy();else if(Ce(xt)&&pe(xt))ct=this.element(lt);else if(!this.options.keepNullNodes&&xt==null)ct=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(xt))for(Qe=0,nt=xt.length;Qe<nt;Qe++)ze=xt[Qe],et={},et[lt]=ze,ct=this.element(et);else Ce(xt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&<.indexOf(this.stringify.convertTextKey)===0?ct=this.element(xt):(ct=this.element(lt),ct.element(xt)):ct=this.element(lt,xt)}else!this.options.keepNullNodes&&_e===null?ct=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ae.indexOf(this.stringify.convertTextKey)===0?ct=this.text(_e):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ae.indexOf(this.stringify.convertCDataKey)===0?ct=this.cdata(_e):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ae.indexOf(this.stringify.convertCommentKey)===0?ct=this.comment(_e):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ae.indexOf(this.stringify.convertRawKey)===0?ct=this.raw(_e):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ae.indexOf(this.stringify.convertPIKey)===0?ct=this.instruction(Ae.substr(this.stringify.convertPIKey.length),_e):ct=this.node(Ae,Be,_e);if(ct==null)throw new Error("Could not create any elements with: "+Ae+". "+this.debugInfo());return ct},ke.prototype.insertBefore=function(Ae,Be,_e){var et,ze,Xe,Qe,lt;if(Ae!=null&&Ae.type)return Xe=Ae,Qe=Be,Xe.setParent(this),Qe?(ze=children.indexOf(Qe),lt=children.splice(ze),children.push(Xe),Array.prototype.push.apply(children,lt)):children.push(Xe),Xe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ae));return ze=this.parent.children.indexOf(this),lt=this.parent.children.splice(ze),et=this.parent.element(Ae,Be,_e),Array.prototype.push.apply(this.parent.children,lt),et},ke.prototype.insertAfter=function(Ae,Be,_e){var et,ze,Xe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ae));return ze=this.parent.children.indexOf(this),Xe=this.parent.children.splice(ze+1),et=this.parent.element(Ae,Be,_e),Array.prototype.push.apply(this.parent.children,Xe),et},ke.prototype.remove=function(){var Ae,Be;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ae=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ae,Ae-Ae+1].concat(Be=[])),this.parent},ke.prototype.node=function(Ae,Be,_e){var et,ze;return Ae!=null&&(Ae=ue(Ae)),Be||(Be={}),Be=ue(Be),Ce(Be)||(ze=[Be,_e],_e=ze[0],Be=ze[1]),et=new xe(this,Ae,Be),_e!=null&&et.text(_e),this.children.push(et),et},ke.prototype.text=function(Ae){var Be;return Ce(Ae)&&this.element(Ae),Be=new le(this,Ae),this.children.push(Be),this},ke.prototype.cdata=function(Ae){var Be;return Be=new we(this,Ae),this.children.push(Be),this},ke.prototype.comment=function(Ae){var Be;return Be=new Le(this,Ae),this.children.push(Be),this},ke.prototype.commentBefore=function(Ae){var Be,_e,et;return _e=this.parent.children.indexOf(this),et=this.parent.children.splice(_e),Be=this.parent.comment(Ae),Array.prototype.push.apply(this.parent.children,et),this},ke.prototype.commentAfter=function(Ae){var Be,_e,et;return _e=this.parent.children.indexOf(this),et=this.parent.children.splice(_e+1),Be=this.parent.comment(Ae),Array.prototype.push.apply(this.parent.children,et),this},ke.prototype.raw=function(Ae){var Be;return Be=new re(this,Ae),this.children.push(Be),this},ke.prototype.dummy=function(){var Ae;return Ae=new ve(this),Ae},ke.prototype.instruction=function(Ae,Be){var _e,et,ze,Xe,Qe;if(Ae!=null&&(Ae=ue(Ae)),Be!=null&&(Be=ue(Be)),Array.isArray(Ae))for(Xe=0,Qe=Ae.length;Xe<Qe;Xe++)_e=Ae[Xe],this.instruction(_e);else if(Ce(Ae))for(_e in Ae)je.call(Ae,_e)&&(et=Ae[_e],this.instruction(_e,et));else be(Be)&&(Be=Be.apply()),ze=new ae(this,Ae,Be),this.children.push(ze);return this},ke.prototype.instructionBefore=function(Ae,Be){var _e,et,ze;return et=this.parent.children.indexOf(this),ze=this.parent.children.splice(et),_e=this.parent.instruction(Ae,Be),Array.prototype.push.apply(this.parent.children,ze),this},ke.prototype.instructionAfter=function(Ae,Be){var _e,et,ze;return et=this.parent.children.indexOf(this),ze=this.parent.children.splice(et+1),_e=this.parent.instruction(Ae,Be),Array.prototype.push.apply(this.parent.children,ze),this},ke.prototype.declaration=function(Ae,Be,_e){var et,ze;return et=this.document(),ze=new Se(et,Ae,Be,_e),et.children.length===0?et.children.unshift(ze):et.children[0].type===ce.Declaration?et.children[0]=ze:et.children.unshift(ze),et.root()||et},ke.prototype.dtd=function(Ae,Be){var _e,et,ze,Xe,Qe,lt,ct,vt,nt,it;for(et=this.document(),ze=new Oe(et,Ae,Be),nt=et.children,Xe=Qe=0,ct=nt.length;Qe<ct;Xe=++Qe)if(_e=nt[Xe],_e.type===ce.DocType)return et.children[Xe]=ze,ze;for(it=et.children,Xe=lt=0,vt=it.length;lt<vt;Xe=++lt)if(_e=it[Xe],_e.isRoot)return et.children.splice(Xe,0,ze),ze;return et.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 Ae;for(Ae=this;Ae;){if(Ae.type===ce.Document)return Ae.rootObject;if(Ae.isRoot)return Ae;Ae=Ae.parent}},ke.prototype.document=function(){var Ae;for(Ae=this;Ae;){if(Ae.type===ce.Document)return Ae;Ae=Ae.parent}},ke.prototype.end=function(Ae){return this.document().end(Ae)},ke.prototype.prev=function(){var Ae;if(Ae=this.parent.children.indexOf(this),Ae<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ae-1]},ke.prototype.next=function(){var Ae;if(Ae=this.parent.children.indexOf(this),Ae===-1||Ae===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ae+1]},ke.prototype.importDocument=function(Ae){var Be;return Be=Ae.root().clone(),Be.parent=this,Be.isRoot=!1,this.children.push(Be),this},ke.prototype.debugInfo=function(Ae){var Be,_e;return Ae=Ae||this.name,Ae==null&&!((Be=this.parent)!=null&&Be.name)?"":Ae==null?"parent: <"+this.parent.name+">":(_e=this.parent)!=null&&_e.name?"node: <"+Ae+">, parent: <"+this.parent.name+">":"node: <"+Ae+">"},ke.prototype.ele=function(Ae,Be,_e){return this.element(Ae,Be,_e)},ke.prototype.nod=function(Ae,Be,_e){return this.node(Ae,Be,_e)},ke.prototype.txt=function(Ae){return this.text(Ae)},ke.prototype.dat=function(Ae){return this.cdata(Ae)},ke.prototype.com=function(Ae){return this.comment(Ae)},ke.prototype.ins=function(Ae,Be){return this.instruction(Ae,Be)},ke.prototype.doc=function(){return this.document()},ke.prototype.dec=function(Ae,Be,_e){return this.declaration(Ae,Be,_e)},ke.prototype.e=function(Ae,Be,_e){return this.element(Ae,Be,_e)},ke.prototype.n=function(Ae,Be,_e){return this.node(Ae,Be,_e)},ke.prototype.t=function(Ae){return this.text(Ae)},ke.prototype.d=function(Ae){return this.cdata(Ae)},ke.prototype.c=function(Ae){return this.comment(Ae)},ke.prototype.r=function(Ae){return this.raw(Ae)},ke.prototype.i=function(Ae,Be){return this.instruction(Ae,Be)},ke.prototype.u=function(){return this.up()},ke.prototype.importXMLBuilder=function(Ae){return this.importDocument(Ae)},ke.prototype.replaceChild=function(Ae,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.removeChild=function(Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.appendChild=function(Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.hasChildNodes=function(){return this.children.length!==0},ke.prototype.cloneNode=function(Ae){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(Ae,Be){return!0},ke.prototype.hasAttributes=function(){return this.attribs.length!==0},ke.prototype.compareDocumentPosition=function(Ae){var Be,_e;return Be=this,Be===Ae?0:this.document()!==Ae.document()?(_e=me.Disconnected|me.ImplementationSpecific,Math.random()<.5?_e|=me.Preceding:_e|=me.Following,_e):Be.isAncestor(Ae)?me.Contains|me.Preceding:Be.isDescendant(Ae)?me.Contains|me.Following:Be.isPreceding(Ae)?me.Preceding:me.Following},ke.prototype.isSameNode=function(Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.lookupPrefix=function(Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isDefaultNamespace=function(Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.lookupNamespaceURI=function(Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isEqualNode=function(Ae){var Be,_e,et;if(Ae.nodeType!==this.nodeType||Ae.children.length!==this.children.length)return!1;for(Be=_e=0,et=this.children.length-1;0<=et?_e<=et:_e>=et;Be=0<=et?++_e:--_e)if(!this.children[Be].isEqualNode(Ae.children[Be]))return!1;return!0},ke.prototype.getFeature=function(Ae,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.setUserData=function(Ae,Be,_e){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.getUserData=function(Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.contains=function(Ae){return Ae?Ae===this||this.isDescendant(Ae):!1},ke.prototype.isDescendant=function(Ae){var Be,_e,et,ze,Xe;for(Xe=this.children,et=0,ze=Xe.length;et<ze;et++)if(Be=Xe[et],Ae===Be||(_e=Be.isDescendant(Ae),_e))return!0;return!1},ke.prototype.isAncestor=function(Ae){return Ae.isDescendant(this)},ke.prototype.isPreceding=function(Ae){var Be,_e;return Be=this.treePosition(Ae),_e=this.treePosition(this),Be===-1||_e===-1?!1:Be<_e},ke.prototype.isFollowing=function(Ae){var Be,_e;return Be=this.treePosition(Ae),_e=this.treePosition(this),Be===-1||_e===-1?!1:Be>_e},ke.prototype.treePosition=function(Ae){var Be,_e;return _e=0,Be=!1,this.foreachTreeNode(this.document(),function(et){if(_e++,!Be&&et===Ae)return Be=!0}),Be?_e:-1},ke.prototype.foreachTreeNode=function(Ae,Be){var _e,et,ze,Xe,Qe;for(Ae||(Ae=this.document()),Xe=Ae.children,et=0,ze=Xe.length;et<ze;et++){if(_e=Xe[et],Qe=Be(_e))return Qe;if(Qe=this.foreachTreeNode(_e,Be),Qe)return Qe}},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,Ge,De){(function(){var me;Ge.exports=me=function(){function ce(we){this.nodes=we}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.nodes.length||0}}),ce.prototype.clone=function(){return this.nodes=null},ce.prototype.item=function(we){return this.nodes[we]||null},ce}()}).call(this)},{}],452:[function(oe,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;me=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ge.exports=we=function(Oe){Le(ve,Oe);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=me.ProcessingInstruction,this.target=this.stringify.insTarget(fe),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(xe))},ve.prototype.isEqualNode=function(xe){return!(!ve.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.target!==this.target)},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(oe,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;me=oe("./NodeType"),ce=oe("./XMLNode"),Ge.exports=we=function(Oe){Le(ve,Oe);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=me.Raw,this.value=this.stringify.raw(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.raw(this,this.options.writer.filterOptions(xe))},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se=function(ve,xe){for(var fe in xe)Oe.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},Oe={}.hasOwnProperty;me=oe("./NodeType"),Le=oe("./XMLWriterBase"),ce=oe("./WriterState"),Ge.exports=we=function(ve){Se(xe,ve);function xe(fe,z){this.stream=fe,xe.__super__.constructor.call(this,z)}return xe.prototype.endline=function(fe,z,ee){return fe.isLastRootNode&&z.state===ce.CloseTag?"":xe.__super__.endline.call(this,fe,z,ee)},xe.prototype.document=function(fe,z){var ee,ae,re,le,ue,pe,be,Ce,Fe;for(be=fe.children,ae=re=0,ue=be.length;re<ue;ae=++re)ee=be[ae],ee.isLastRootNode=ae===fe.children.length-1;for(z=this.filterOptions(z),Ce=fe.children,Fe=[],le=0,pe=Ce.length;le<pe;le++)ee=Ce[le],Fe.push(this.writeChildNode(ee,z,0));return Fe},xe.prototype.attribute=function(fe,z,ee){return this.stream.write(xe.__super__.attribute.call(this,fe,z,ee))},xe.prototype.cdata=function(fe,z,ee){return this.stream.write(xe.__super__.cdata.call(this,fe,z,ee))},xe.prototype.comment=function(fe,z,ee){return this.stream.write(xe.__super__.comment.call(this,fe,z,ee))},xe.prototype.declaration=function(fe,z,ee){return this.stream.write(xe.__super__.declaration.call(this,fe,z,ee))},xe.prototype.docType=function(fe,z,ee){var ae,re,le,ue;if(ee||(ee=0),this.openNode(fe,z,ee),z.state=ce.OpenTag,this.stream.write(this.indent(fe,z,ee)),this.stream.write("<!DOCTYPE "+fe.root().name),fe.pubID&&fe.sysID?this.stream.write(' PUBLIC "'+fe.pubID+'" "'+fe.sysID+'"'):fe.sysID&&this.stream.write(' SYSTEM "'+fe.sysID+'"'),fe.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(fe,z,ee)),z.state=ce.InsideTag,ue=fe.children,re=0,le=ue.length;re<le;re++)ae=ue[re],this.writeChildNode(ae,z,ee+1);z.state=ce.CloseTag,this.stream.write("]")}return z.state=ce.CloseTag,this.stream.write(z.spaceBeforeSlash+">"),this.stream.write(this.endline(fe,z,ee)),z.state=ce.None,this.closeNode(fe,z,ee)},xe.prototype.element=function(fe,z,ee){var ae,re,le,ue,pe,be,Ce,Fe,je,ke;ee||(ee=0),this.openNode(fe,z,ee),z.state=ce.OpenTag,this.stream.write(this.indent(fe,z,ee)+"<"+fe.name),je=fe.attribs;for(Ce in je)Oe.call(je,Ce)&&(ae=je[Ce],this.attribute(ae,z,ee));if(le=fe.children.length,ue=le===0?null:fe.children[0],le===0||fe.children.every(function(Ae){return(Ae.type===me.Text||Ae.type===me.Raw)&&Ae.value===""}))z.allowEmpty?(this.stream.write(">"),z.state=ce.CloseTag,this.stream.write("</"+fe.name+">")):(z.state=ce.CloseTag,this.stream.write(z.spaceBeforeSlash+"/>"));else if(z.pretty&&le===1&&(ue.type===me.Text||ue.type===me.Raw)&&ue.value!=null)this.stream.write(">"),z.state=ce.InsideTag,z.suppressPrettyCount++,Fe=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,Fe=!1,z.state=ce.CloseTag,this.stream.write("</"+fe.name+">");else{for(this.stream.write(">"+this.endline(fe,z,ee)),z.state=ce.InsideTag,ke=fe.children,pe=0,be=ke.length;pe<be;pe++)re=ke[pe],this.writeChildNode(re,z,ee+1);z.state=ce.CloseTag,this.stream.write(this.indent(fe,z,ee)+"</"+fe.name+">")}return this.stream.write(this.endline(fe,z,ee)),z.state=ce.None,this.closeNode(fe,z,ee)},xe.prototype.processingInstruction=function(fe,z,ee){return this.stream.write(xe.__super__.processingInstruction.call(this,fe,z,ee))},xe.prototype.raw=function(fe,z,ee){return this.stream.write(xe.__super__.raw.call(this,fe,z,ee))},xe.prototype.text=function(fe,z,ee){return this.stream.write(xe.__super__.text.call(this,fe,z,ee))},xe.prototype.dtdAttList=function(fe,z,ee){return this.stream.write(xe.__super__.dtdAttList.call(this,fe,z,ee))},xe.prototype.dtdElement=function(fe,z,ee){return this.stream.write(xe.__super__.dtdElement.call(this,fe,z,ee))},xe.prototype.dtdEntity=function(fe,z,ee){return this.stream.write(xe.__super__.dtdEntity.call(this,fe,z,ee))},xe.prototype.dtdNotation=function(fe,z,ee){return this.stream.write(xe.__super__.dtdNotation.call(this,fe,z,ee))},xe}(Le)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(oe,Ge,De){(function(){var me,ce,we=function(Se,Oe){for(var ve in Oe)Le.call(Oe,ve)&&(Se[ve]=Oe[ve]);function xe(){this.constructor=Se}return xe.prototype=Oe.prototype,Se.prototype=new xe,Se.__super__=Oe.prototype,Se},Le={}.hasOwnProperty;ce=oe("./XMLWriterBase"),Ge.exports=me=function(Se){we(Oe,Se);function Oe(ve){Oe.__super__.constructor.call(this,ve)}return Oe.prototype.document=function(ve,xe){var fe,z,ee,ae,re;for(xe=this.filterOptions(xe),ae="",re=ve.children,z=0,ee=re.length;z<ee;z++)fe=re[z],ae+=this.writeChildNode(fe,xe,0);return xe.pretty&&ae.slice(-xe.newline.length)===xe.newline&&(ae=ae.slice(0,-xe.newline.length)),ae},Oe}(ce)}).call(this)},{"./XMLWriterBase":458}],456:[function(oe,Ge,De){(function(){var me,ce=function(Le,Se){return function(){return Le.apply(Se,arguments)}},we={}.hasOwnProperty;Ge.exports=me=function(){function Le(Se){this.assertLegalName=ce(this.assertLegalName,this),this.assertLegalChar=ce(this.assertLegalChar,this);var Oe,ve,xe;Se||(Se={}),this.options=Se,this.options.version||(this.options.version="1.0"),ve=Se.stringify||{};for(Oe in ve)we.call(ve,Oe)&&(xe=ve[Oe],this[Oe]=xe)}return Le.prototype.name=function(Se){return this.options.noValidation?Se:this.assertLegalName(""+Se||"")},Le.prototype.text=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.textEscape(""+Se||""))},Le.prototype.cdata=function(Se){return this.options.noValidation?Se:(Se=""+Se||"",Se=Se.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(Se))},Le.prototype.comment=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",Se.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+Se);return this.assertLegalChar(Se)},Le.prototype.raw=function(Se){return this.options.noValidation?Se:""+Se||""},Le.prototype.attValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.attEscape(Se=""+Se||""))},Le.prototype.insTarget=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.insValue=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",Se.match(/\?>/))throw new Error("Invalid processing instruction value: "+Se);return this.assertLegalChar(Se)},Le.prototype.xmlVersion=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",!Se.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+Se);return Se},Le.prototype.xmlEncoding=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",!Se.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+Se);return this.assertLegalChar(Se)},Le.prototype.xmlStandalone=function(Se){return this.options.noValidation?Se:Se?"yes":"no"},Le.prototype.dtdPubID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdSysID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdElementValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdAttType=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdAttDefault=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdEntityValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdNData=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.convertAttKey="@",Le.prototype.convertPIKey="?",Le.prototype.convertTextKey="#text",Le.prototype.convertCDataKey="#cdata",Le.prototype.convertCommentKey="#comment",Le.prototype.convertRawKey="#raw",Le.prototype.assertLegalChar=function(Se){var Oe,ve;if(this.options.noValidation)return Se;if(Oe="",this.options.version==="1.0"){if(Oe=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ve=Se.match(Oe))throw new Error("Invalid character in string: "+Se+" at index "+ve.index)}else if(this.options.version==="1.1"&&(Oe=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ve=Se.match(Oe)))throw new Error("Invalid character in string: "+Se+" at index "+ve.index);return Se},Le.prototype.assertLegalName=function(Se){var Oe;if(this.options.noValidation)return Se;if(this.assertLegalChar(Se),Oe=/^([: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])*$/,!Se.match(Oe))throw new Error("Invalid character in name");return Se},Le.prototype.textEscape=function(Se){var Oe;return this.options.noValidation?Se:(Oe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(Oe,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},Le.prototype.attEscape=function(Se){var Oe;return this.options.noValidation?Se:(Oe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(Oe,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},Le}()}).call(this)},{}],457:[function(oe,Ge,De){(function(){var me,ce,we,Le=function(Oe,ve){for(var xe in ve)Se.call(ve,xe)&&(Oe[xe]=ve[xe]);function fe(){this.constructor=Oe}return fe.prototype=ve.prototype,Oe.prototype=new fe,Oe.__super__=ve.prototype,Oe},Se={}.hasOwnProperty;me=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ge.exports=we=function(Oe){Le(ve,Oe);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=me.Text,this.value=this.stringify.text(fe)}return Object.defineProperty(ve.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ve.prototype,"wholeText",{get:function(){var xe,fe,z;for(z="",fe=this.previousSibling;fe;)z=fe.data+z,fe=fe.previousSibling;for(z+=this.data,xe=this.nextSibling;xe;)z=z+xe.data,xe=xe.nextSibling;return z}}),ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.text(this,this.options.writer.filterOptions(xe))},ve.prototype.splitText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.replaceWholeText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(oe,Ge,De){(function(){var me,ce,we,Le,Se,Oe,ve,xe,fe,z,ee,ae,re,le,ue,pe,be,Ce={}.hasOwnProperty;be=oe("./Utility").assign,me=oe("./NodeType"),fe=oe("./XMLDeclaration"),z=oe("./XMLDocType"),we=oe("./XMLCData"),Le=oe("./XMLComment"),ae=oe("./XMLElement"),le=oe("./XMLRaw"),ue=oe("./XMLText"),re=oe("./XMLProcessingInstruction"),ee=oe("./XMLDummy"),Se=oe("./XMLDTDAttList"),Oe=oe("./XMLDTDElement"),ve=oe("./XMLDTDEntity"),xe=oe("./XMLDTDNotation"),ce=oe("./WriterState"),Ge.exports=pe=function(){function Fe(je){var ke,Ae,Be;je||(je={}),this.options=je,Ae=je.writer||{};for(ke in Ae)Ce.call(Ae,ke)&&(Be=Ae[ke],this["_"+ke]=this[ke],this[ke]=Be)}return Fe.prototype.filterOptions=function(je){var ke,Ae,Be,_e,et,ze,Xe,Qe;return je||(je={}),je=be({},this.options,je),ke={writer:this},ke.pretty=je.pretty||!1,ke.allowEmpty=je.allowEmpty||!1,ke.indent=(Ae=je.indent)!=null?Ae:" ",ke.newline=(Be=je.newline)!=null?Be:`
|
|
|
`,ke.offset=(_e=je.offset)!=null?_e:0,ke.dontPrettyTextNodes=(et=(ze=je.dontPrettyTextNodes)!=null?ze:je.dontprettytextnodes)!=null?et:0,ke.spaceBeforeSlash=(Xe=(Qe=je.spaceBeforeSlash)!=null?Qe:je.spacebeforeslash)!=null?Xe:"",ke.spaceBeforeSlash===!0&&(ke.spaceBeforeSlash=" "),ke.suppressPrettyCount=0,ke.user={},ke.state=ce.None,ke},Fe.prototype.indent=function(je,ke,Ae){var Be;return!ke.pretty||ke.suppressPrettyCount?"":ke.pretty&&(Be=(Ae||0)+ke.offset+1,Be>0)?new Array(Be).join(ke.indent):""},Fe.prototype.endline=function(je,ke,Ae){return!ke.pretty||ke.suppressPrettyCount?"":ke.newline},Fe.prototype.attribute=function(je,ke,Ae){var Be;return this.openAttribute(je,ke,Ae),Be=" "+je.name+'="'+je.value+'"',this.closeAttribute(je,ke,Ae),Be},Fe.prototype.cdata=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae)+"<![CDATA[",ke.state=ce.InsideTag,Be+=je.value,ke.state=ce.CloseTag,Be+="]]>"+this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.comment=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae)+"<!-- ",ke.state=ce.InsideTag,Be+=je.value,ke.state=ce.CloseTag,Be+=" -->"+this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.declaration=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae)+"<?xml",ke.state=ce.InsideTag,Be+=' version="'+je.version+'"',je.encoding!=null&&(Be+=' encoding="'+je.encoding+'"'),je.standalone!=null&&(Be+=' standalone="'+je.standalone+'"'),ke.state=ce.CloseTag,Be+=ke.spaceBeforeSlash+"?>",Be+=this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.docType=function(je,ke,Ae){var Be,_e,et,ze,Xe;if(Ae||(Ae=0),this.openNode(je,ke,Ae),ke.state=ce.OpenTag,ze=this.indent(je,ke,Ae),ze+="<!DOCTYPE "+je.root().name,je.pubID&&je.sysID?ze+=' PUBLIC "'+je.pubID+'" "'+je.sysID+'"':je.sysID&&(ze+=' SYSTEM "'+je.sysID+'"'),je.children.length>0){for(ze+=" [",ze+=this.endline(je,ke,Ae),ke.state=ce.InsideTag,Xe=je.children,_e=0,et=Xe.length;_e<et;_e++)Be=Xe[_e],ze+=this.writeChildNode(Be,ke,Ae+1);ke.state=ce.CloseTag,ze+="]"}return ke.state=ce.CloseTag,ze+=ke.spaceBeforeSlash+">",ze+=this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),ze},Fe.prototype.element=function(je,ke,Ae){var Be,_e,et,ze,Xe,Qe,lt,ct,vt,nt,it,pt,xt,yt;Ae||(Ae=0),nt=!1,it="",this.openNode(je,ke,Ae),ke.state=ce.OpenTag,it+=this.indent(je,ke,Ae)+"<"+je.name,pt=je.attribs;for(vt in pt)Ce.call(pt,vt)&&(Be=pt[vt],it+=this.attribute(Be,ke,Ae));if(et=je.children.length,ze=et===0?null:je.children[0],et===0||je.children.every(function(ft){return(ft.type===me.Text||ft.type===me.Raw)&&ft.value===""}))ke.allowEmpty?(it+=">",ke.state=ce.CloseTag,it+="</"+je.name+">"+this.endline(je,ke,Ae)):(ke.state=ce.CloseTag,it+=ke.spaceBeforeSlash+"/>"+this.endline(je,ke,Ae));else if(ke.pretty&&et===1&&(ze.type===me.Text||ze.type===me.Raw)&&ze.value!=null)it+=">",ke.state=ce.InsideTag,ke.suppressPrettyCount++,nt=!0,it+=this.writeChildNode(ze,ke,Ae+1),ke.suppressPrettyCount--,nt=!1,ke.state=ce.CloseTag,it+="</"+je.name+">"+this.endline(je,ke,Ae);else{if(ke.dontPrettyTextNodes){for(xt=je.children,Xe=0,lt=xt.length;Xe<lt;Xe++)if(_e=xt[Xe],(_e.type===me.Text||_e.type===me.Raw)&&_e.value!=null){ke.suppressPrettyCount++,nt=!0;break}}for(it+=">"+this.endline(je,ke,Ae),ke.state=ce.InsideTag,yt=je.children,Qe=0,ct=yt.length;Qe<ct;Qe++)_e=yt[Qe],it+=this.writeChildNode(_e,ke,Ae+1);ke.state=ce.CloseTag,it+=this.indent(je,ke,Ae)+"</"+je.name+">",nt&&ke.suppressPrettyCount--,it+=this.endline(je,ke,Ae),ke.state=ce.None}return this.closeNode(je,ke,Ae),it},Fe.prototype.writeChildNode=function(je,ke,Ae){switch(je.type){case me.CData:return this.cdata(je,ke,Ae);case me.Comment:return this.comment(je,ke,Ae);case me.Element:return this.element(je,ke,Ae);case me.Raw:return this.raw(je,ke,Ae);case me.Text:return this.text(je,ke,Ae);case me.ProcessingInstruction:return this.processingInstruction(je,ke,Ae);case me.Dummy:return"";case me.Declaration:return this.declaration(je,ke,Ae);case me.DocType:return this.docType(je,ke,Ae);case me.AttributeDeclaration:return this.dtdAttList(je,ke,Ae);case me.ElementDeclaration:return this.dtdElement(je,ke,Ae);case me.EntityDeclaration:return this.dtdEntity(je,ke,Ae);case me.NotationDeclaration:return this.dtdNotation(je,ke,Ae);default:throw new Error("Unknown XML node type: "+je.constructor.name)}},Fe.prototype.processingInstruction=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae)+"<?",ke.state=ce.InsideTag,Be+=je.target,je.value&&(Be+=" "+je.value),ke.state=ce.CloseTag,Be+=ke.spaceBeforeSlash+"?>",Be+=this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.raw=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae),ke.state=ce.InsideTag,Be+=je.value,ke.state=ce.CloseTag,Be+=this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.text=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae),ke.state=ce.InsideTag,Be+=je.value,ke.state=ce.CloseTag,Be+=this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.dtdAttList=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae)+"<!ATTLIST",ke.state=ce.InsideTag,Be+=" "+je.elementName+" "+je.attributeName+" "+je.attributeType,je.defaultValueType!=="#DEFAULT"&&(Be+=" "+je.defaultValueType),je.defaultValue&&(Be+=' "'+je.defaultValue+'"'),ke.state=ce.CloseTag,Be+=ke.spaceBeforeSlash+">"+this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.dtdElement=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae)+"<!ELEMENT",ke.state=ce.InsideTag,Be+=" "+je.name+" "+je.value,ke.state=ce.CloseTag,Be+=ke.spaceBeforeSlash+">"+this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.dtdEntity=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae)+"<!ENTITY",ke.state=ce.InsideTag,je.pe&&(Be+=" %"),Be+=" "+je.name,je.value?Be+=' "'+je.value+'"':(je.pubID&&je.sysID?Be+=' PUBLIC "'+je.pubID+'" "'+je.sysID+'"':je.sysID&&(Be+=' SYSTEM "'+je.sysID+'"'),je.nData&&(Be+=" NDATA "+je.nData)),ke.state=ce.CloseTag,Be+=ke.spaceBeforeSlash+">"+this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.dtdNotation=function(je,ke,Ae){var Be;return this.openNode(je,ke,Ae),ke.state=ce.OpenTag,Be=this.indent(je,ke,Ae)+"<!NOTATION",ke.state=ce.InsideTag,Be+=" "+je.name,je.pubID&&je.sysID?Be+=' PUBLIC "'+je.pubID+'" "'+je.sysID+'"':je.pubID?Be+=' PUBLIC "'+je.pubID+'"':je.sysID&&(Be+=' SYSTEM "'+je.sysID+'"'),ke.state=ce.CloseTag,Be+=ke.spaceBeforeSlash+">"+this.endline(je,ke,Ae),ke.state=ce.None,this.closeNode(je,ke,Ae),Be},Fe.prototype.openNode=function(je,ke,Ae){},Fe.prototype.closeNode=function(je,ke,Ae){},Fe.prototype.openAttribute=function(je,ke,Ae){},Fe.prototype.closeAttribute=function(je,ke,Ae){},Fe}()}).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,Ge,De){(function(){var me,ce,we,Le,Se,Oe,ve,xe,fe,z;z=oe("./Utility"),xe=z.assign,fe=z.isFunction,we=oe("./XMLDOMImplementation"),Le=oe("./XMLDocument"),Se=oe("./XMLDocumentCB"),ve=oe("./XMLStringWriter"),Oe=oe("./XMLStreamWriter"),me=oe("./NodeType"),ce=oe("./WriterState"),Ge.exports.create=function(ee,ae,re,le){var ue,pe;if(ee==null)throw new Error("Root element needs a name.");return le=xe({},ae,re,le),ue=new Le(le),pe=ue.element(ee),le.headless||(ue.declaration(le),(le.pubID!=null||le.sysID!=null)&&ue.dtd(le)),pe},Ge.exports.begin=function(ee,ae,re){var le;return fe(ee)&&(le=[ee,ae],ae=le[0],re=le[1],ee={}),ae?new Se(ee,ae,re):new Le(ee)},Ge.exports.stringWriter=function(ee){return new ve(ee)},Ge.exports.streamWriter=function(ee,ae){return new Oe(ee,ae)},Ge.exports.implementation=new we,Ge.exports.nodeType=me,Ge.exports.writerState=ce}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(oe,Ge,De){Ge.exports=ce;var me=Object.prototype.hasOwnProperty;function ce(){for(var we={},Le=0;Le<arguments.length;Le++){var Se=arguments[Le];for(var Oe in Se)me.call(Se,Oe)&&(we[Oe]=Se[Oe])}return we}},{}],461:[function(oe,Ge,De){"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 me=oe("buffer").Buffer,ce=oe("./sha"),we=oe("./md5"),Le={sha1:ce,md5:we},Se=64,Oe=me.alloc(Se);Oe.fill(0);function ve(z,ee,ae){me.isBuffer(ee)||(ee=me.from(ee)),me.isBuffer(ae)||(ae=me.from(ae)),ee.length>Se?ee=z(ee):ee.length<Se&&(ee=me.concat([ee,Oe],Se));for(var re=me.alloc(Se),le=me.alloc(Se),ue=0;ue<Se;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(me.concat([re,ae]));return z(me.concat([le,pe]))}function xe(z,ee){z=z||"sha1";var ae=Le[z],re=[],le=0;return ae||fe("algorithm:",z,"is not yet supported"),{update:function(pe){return me.isBuffer(pe)||(pe=me.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var be=me.concat(re),Ce=ee?ve(ae,ee,be):ae(be);return re=null,pe?Ce.toString(pe):Ce}}}function fe(){var z=[].slice.call(arguments).join(" ");throw new Error([z,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}De.createHash=function(z){return xe(z)},De.createHmac=function(z,ee){return xe(z,ee)},De.createCredentials=function(){fe("sorry,createCredentials is not implemented yet")},De.createCipher=function(){fe("sorry,createCipher is not implemented yet")},De.createCipheriv=function(){fe("sorry,createCipheriv is not implemented yet")},De.createDecipher=function(){fe("sorry,createDecipher is not implemented yet")},De.createDecipheriv=function(){fe("sorry,createDecipheriv is not implemented yet")},De.createSign=function(){fe("sorry,createSign is not implemented yet")},De.createVerify=function(){fe("sorry,createVerify is not implemented yet")},De.createDiffieHellman=function(){fe("sorry,createDiffieHellman is not implemented yet")},De.pbkdf2=function(){fe("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,Ge,De){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js");var me=oe("buffer").Buffer,ce=4,we=me.alloc(ce);we.fill(0);var Le=8;function Se(xe,fe){if(xe.length%ce!==0){var z=xe.length+(ce-xe.length%ce);xe=me.concat([xe,we],z)}for(var ee=[],ae=fe?xe.readInt32BE:xe.readInt32LE,re=0;re<xe.length;re+=ce)ee.push(ae.call(xe,re));return ee}function Oe(xe,fe,z){for(var ee=me.alloc(fe),ae=z?ee.writeInt32BE:ee.writeInt32LE,re=0;re<xe.length;re++)ae.call(ee,xe[re],re*4,!0);return ee}function ve(xe,fe,z,ee){me.isBuffer(xe)||(xe=me.from(xe));var ae=fe(Se(xe,ee),xe.length*Le);return Oe(ae,z,ee)}Ge.exports={hash:ve}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(oe,Ge,De){"use strict";var me=oe("./helpers");function ce(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function we(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,be=0;be<ee.length;be+=16){var Ce=re,Fe=le,je=ue,ke=pe;re=Se(re,le,ue,pe,ee[be+0],7,-680876936),pe=Se(pe,re,le,ue,ee[be+1],12,-389564586),ue=Se(ue,pe,re,le,ee[be+2],17,606105819),le=Se(le,ue,pe,re,ee[be+3],22,-1044525330),re=Se(re,le,ue,pe,ee[be+4],7,-176418897),pe=Se(pe,re,le,ue,ee[be+5],12,1200080426),ue=Se(ue,pe,re,le,ee[be+6],17,-1473231341),le=Se(le,ue,pe,re,ee[be+7],22,-45705983),re=Se(re,le,ue,pe,ee[be+8],7,1770035416),pe=Se(pe,re,le,ue,ee[be+9],12,-1958414417),ue=Se(ue,pe,re,le,ee[be+10],17,-42063),le=Se(le,ue,pe,re,ee[be+11],22,-1990404162),re=Se(re,le,ue,pe,ee[be+12],7,1804603682),pe=Se(pe,re,le,ue,ee[be+13],12,-40341101),ue=Se(ue,pe,re,le,ee[be+14],17,-1502002290),le=Se(le,ue,pe,re,ee[be+15],22,1236535329),re=Oe(re,le,ue,pe,ee[be+1],5,-165796510),pe=Oe(pe,re,le,ue,ee[be+6],9,-1069501632),ue=Oe(ue,pe,re,le,ee[be+11],14,643717713),le=Oe(le,ue,pe,re,ee[be+0],20,-373897302),re=Oe(re,le,ue,pe,ee[be+5],5,-701558691),pe=Oe(pe,re,le,ue,ee[be+10],9,38016083),ue=Oe(ue,pe,re,le,ee[be+15],14,-660478335),le=Oe(le,ue,pe,re,ee[be+4],20,-405537848),re=Oe(re,le,ue,pe,ee[be+9],5,568446438),pe=Oe(pe,re,le,ue,ee[be+14],9,-1019803690),ue=Oe(ue,pe,re,le,ee[be+3],14,-187363961),le=Oe(le,ue,pe,re,ee[be+8],20,1163531501),re=Oe(re,le,ue,pe,ee[be+13],5,-1444681467),pe=Oe(pe,re,le,ue,ee[be+2],9,-51403784),ue=Oe(ue,pe,re,le,ee[be+7],14,1735328473),le=Oe(le,ue,pe,re,ee[be+12],20,-1926607734),re=ve(re,le,ue,pe,ee[be+5],4,-378558),pe=ve(pe,re,le,ue,ee[be+8],11,-2022574463),ue=ve(ue,pe,re,le,ee[be+11],16,1839030562),le=ve(le,ue,pe,re,ee[be+14],23,-35309556),re=ve(re,le,ue,pe,ee[be+1],4,-1530992060),pe=ve(pe,re,le,ue,ee[be+4],11,1272893353),ue=ve(ue,pe,re,le,ee[be+7],16,-155497632),le=ve(le,ue,pe,re,ee[be+10],23,-1094730640),re=ve(re,le,ue,pe,ee[be+13],4,681279174),pe=ve(pe,re,le,ue,ee[be+0],11,-358537222),ue=ve(ue,pe,re,le,ee[be+3],16,-722521979),le=ve(le,ue,pe,re,ee[be+6],23,76029189),re=ve(re,le,ue,pe,ee[be+9],4,-640364487),pe=ve(pe,re,le,ue,ee[be+12],11,-421815835),ue=ve(ue,pe,re,le,ee[be+15],16,530742520),le=ve(le,ue,pe,re,ee[be+2],23,-995338651),re=xe(re,le,ue,pe,ee[be+0],6,-198630844),pe=xe(pe,re,le,ue,ee[be+7],10,1126891415),ue=xe(ue,pe,re,le,ee[be+14],15,-1416354905),le=xe(le,ue,pe,re,ee[be+5],21,-57434055),re=xe(re,le,ue,pe,ee[be+12],6,1700485571),pe=xe(pe,re,le,ue,ee[be+3],10,-1894986606),ue=xe(ue,pe,re,le,ee[be+10],15,-1051523),le=xe(le,ue,pe,re,ee[be+1],21,-2054922799),re=xe(re,le,ue,pe,ee[be+8],6,1873313359),pe=xe(pe,re,le,ue,ee[be+15],10,-30611744),ue=xe(ue,pe,re,le,ee[be+6],15,-1560198380),le=xe(le,ue,pe,re,ee[be+13],21,1309151649),re=xe(re,le,ue,pe,ee[be+4],6,-145523070),pe=xe(pe,re,le,ue,ee[be+11],10,-1120210379),ue=xe(ue,pe,re,le,ee[be+2],15,718787259),le=xe(le,ue,pe,re,ee[be+9],21,-343485551),re=fe(re,Ce),le=fe(le,Fe),ue=fe(ue,je),pe=fe(pe,ke)}return Array(re,le,ue,pe)}function Le(ee,ae,re,le,ue,pe){return fe(z(fe(fe(ae,ee),fe(le,pe)),ue),re)}function Se(ee,ae,re,le,ue,pe,be){return Le(ae&re|~ae&le,ee,ae,ue,pe,be)}function Oe(ee,ae,re,le,ue,pe,be){return Le(ae&le|re&~le,ee,ae,ue,pe,be)}function ve(ee,ae,re,le,ue,pe,be){return Le(ae^re^le,ee,ae,ue,pe,be)}function xe(ee,ae,re,le,ue,pe,be){return Le(re^(ae|~le),ee,ae,ue,pe,be)}function fe(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}Ge.exports=function(ae){return me.hash(ae,we,16)}},{"./helpers":462}],464:[function(oe,Ge,De){"use strict";var me=oe("./helpers");function ce(ve,xe){ve[xe>>5]|=128<<24-xe%32,ve[(xe+64>>9<<4)+15]=xe;for(var fe=Array(80),z=1732584193,ee=-271733879,ae=-1732584194,re=271733878,le=-1009589776,ue=0;ue<ve.length;ue+=16){for(var pe=z,be=ee,Ce=ae,Fe=re,je=le,ke=0;ke<80;ke++){ke<16?fe[ke]=ve[ue+ke]:fe[ke]=Oe(fe[ke-3]^fe[ke-8]^fe[ke-14]^fe[ke-16],1);var Ae=Se(Se(Oe(z,5),we(ke,ee,ae,re)),Se(Se(le,fe[ke]),Le(ke)));le=re,re=ae,ae=Oe(ee,30),ee=z,z=Ae}z=Se(z,pe),ee=Se(ee,be),ae=Se(ae,Ce),re=Se(re,Fe),le=Se(le,je)}return Array(z,ee,ae,re,le)}function we(ve,xe,fe,z){return ve<20?xe&fe|~xe&z:ve<40?xe^fe^z:ve<60?xe&fe|xe&z|fe&z:xe^fe^z}function Le(ve){return ve<20?1518500249:ve<40?1859775393:ve<60?-1894007588:-899497514}function Se(ve,xe){var fe=(ve&65535)+(xe&65535),z=(ve>>16)+(xe>>16)+(fe>>16);return z<<16|fe&65535}function Oe(ve,xe){return ve<<xe|ve>>>32-xe}Ge.exports=function(xe){return me.hash(xe,ce,20,!0)}},{"./helpers":462}],465:[function(oe,Ge,De){"use strict";Ge.exports=function(){return function(){}}},{}],466:[function(oe,Ge,De){(function(me){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),we=ce(oe("@babel/runtime/helpers/typeof")),Le=oe("stream"),Se=Le.Stream,Oe=oe("../lib/common/utils/isArray"),ve=Oe.isArray;Ge.exports.string=function(z){return typeof z=="string"},Ge.exports.array=ve,Ge.exports.buffer=me.isBuffer;function xe(fe){return fe instanceof Se}Ge.exports.writableStream=function(z){return xe(z)&&typeof z._write=="function"&&(0,we.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,Ge,De){"use strict";var me=oe("immediate"),ce=Ge.exports={};ce.nextTick=me,ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function we(){}ce.on=we,ce.addListener=we,ce.once=we,ce.off=we,ce.removeListener=we,ce.removeAllListeners=we,ce.emit=we,ce.prependListener=we,ce.prependOnceListener=we,ce.listeners=function(Le){return[]},ce.binding=function(Le){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(Le){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0}},{immediate:358}],468:[function(oe,Ge,De){(function(me){(function(){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js");var ce=oe("./lib/request"),we=oe("./lib/response"),Le=oe("xtend"),Se=oe("builtin-status-codes"),Oe=oe("url"),ve=De;ve.request=function(xe,fe){typeof xe=="string"?xe=Oe.parse(xe):xe=Le(xe);var z=me.location.protocol.search(/^https?:$/)===-1?"http:":"",ee=xe.protocol||z,ae=xe.hostname||xe.host,re=xe.port,le=xe.path||"/";ae&&ae.indexOf(":")!==-1&&(ae="["+ae+"]"),xe.url=(ae?ee+"//"+ae:"")+(re?":"+re:"")+le,xe.method=(xe.method||"GET").toUpperCase(),xe.headers=xe.headers||{};var ue=new ce(xe);return fe&&ue.on("response",fe),ue},ve.get=function(fe,z){var ee=ve.request(fe,z);return ee.end(),ee},ve.ClientRequest=ce,ve.IncomingMessage=we.IncomingMessage,ve.Agent=function(){},ve.Agent.defaultMaxSockets=4,ve.globalAgent=new ve.Agent,ve.STATUS_CODES=Se,ve.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 wn!="undefined"?wn: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,Ge,De){(function(me){(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"),De.fetch=ve(me.fetch)&&ve(me.ReadableStream),De.writableStream=ve(me.WritableStream),De.abortController=ve(me.AbortController),De.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),De.blobConstructor=!0}catch(xe){}var ce;function we(){if(ce!==void 0)return ce;if(me.XMLHttpRequest){ce=new me.XMLHttpRequest;try{ce.open("GET",me.XDomainRequest?"/":"https://example.com")}catch(xe){ce=null}}else ce=null;return ce}function Le(xe){var fe=we();if(!fe)return!1;try{return fe.responseType=xe,fe.responseType===xe}catch(z){}return!1}var Se=typeof me.ArrayBuffer!="undefined",Oe=Se&&ve(me.ArrayBuffer.prototype.slice);De.arraybuffer=De.fetch||Se&&Le("arraybuffer"),De.msstream=!De.fetch&&Oe&&Le("ms-stream"),De.mozchunkedarraybuffer=!De.fetch&&Se&&Le("moz-chunked-arraybuffer"),De.overrideMimeType=De.fetch||(we()?ve(we().overrideMimeType):!1),De.vbArray=ve(me.VBArray);function ve(xe){return typeof xe=="function"}ce=null}).call(this)}).call(this,typeof wn!="undefined"?wn: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,Ge,De){(function(me,ce,we){(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 Le=oe("./capability"),Se=oe("inherits"),Oe=oe("./response"),ve=oe("readable-stream"),xe=oe("to-arraybuffer"),fe=Oe.IncomingMessage,z=Oe.readyStates;function ee(ue,pe){return Le.fetch&&pe?"fetch":Le.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Le.msstream?"ms-stream":Le.arraybuffer&&ue?"arraybuffer":Le.vbArray&&ue?"text:vbarray":"text"}var ae=Ge.exports=function(ue){var pe=this;ve.Writable.call(pe),pe._opts=ue,pe._body=[],pe._headers={},ue.auth&&pe.setHeader("Authorization","Basic "+new we(ue.auth).toString("base64")),Object.keys(ue.headers).forEach(function(Fe){pe.setHeader(Fe,ue.headers[Fe])});var be,Ce=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Le.abortController)Ce=!1,be=!0;else if(ue.mode==="prefer-streaming")be=!1;else if(ue.mode==="allow-wrong-content-type")be=!Le.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")be=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ee(be,Ce),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};Se(ae,ve.Writable),ae.prototype.setHeader=function(ue,pe){var be=this,Ce=ue.toLowerCase();le.indexOf(Ce)===-1&&(be._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,be=ue._headers,Ce=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(Le.arraybuffer?Ce=xe(we.concat(ue._body)):Le.blobConstructor?Ce=new ce.Blob(ue._body.map(function(_e){return xe(_e)}),{type:(be["content-type"]||{}).value||""}):Ce=we.concat(ue._body).toString());var Fe=[];if(Object.keys(be).forEach(function(_e){var et=be[_e].name,ze=be[_e].value;Array.isArray(ze)?ze.forEach(function(Xe){Fe.push([et,Xe])}):Fe.push([et,ze])}),ue._mode==="fetch"){var je=null,ke=null;if(Le.abortController){var Ae=new AbortController;je=Ae.signal,ue._fetchAbortController=Ae,"requestTimeout"in pe&&pe.requestTimeout!==0&&(ue._fetchTimer=ce.setTimeout(function(){ue.emit("requestTimeout"),ue._fetchAbortController&&ue._fetchAbortController.abort()},pe.requestTimeout))}ce.fetch(ue._opts.url,{method:ue._opts.method,headers:Fe,body:Ce||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:je}).then(function(_e){ue._fetchResponse=_e,ue._connect()},function(_e){ce.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",_e)})}else{var Be=ue._xhr=new ce.XMLHttpRequest;try{Be.open(ue._opts.method,ue._opts.url,!0)}catch(_e){me.nextTick(function(){ue.emit("error",_e)});return}"responseType"in Be&&(Be.responseType=ue._mode.split(":")[0]),"withCredentials"in Be&&(Be.withCredentials=!!pe.withCredentials),ue._mode==="text"&&"overrideMimeType"in Be&&Be.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pe&&(Be.timeout=pe.requestTimeout,Be.ontimeout=function(){ue.emit("requestTimeout")}),Fe.forEach(function(_e){Be.setRequestHeader(_e[0],_e[1])}),ue._response=null,Be.onreadystatechange=function(){switch(Be.readyState){case z.LOADING:case z.DONE:ue._onXHRProgress();break}},ue._mode==="moz-chunked-arraybuffer"&&(Be.onprogress=function(){ue._onXHRProgress()}),Be.onerror=function(){ue._destroyed||ue.emit("error",new Error("XHR error"))};try{Be.send(Ce)}catch(_e){me.nextTick(function(){ue.emit("error",_e)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(be){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 fe(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,be){var Ce=this;Ce._body.push(ue),be()},ae.prototype.abort=ae.prototype.destroy=function(){var ue=this;ue._destroyed=!0,ce.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,be){var Ce=this;typeof ue=="function"&&(be=ue,ue=void 0),ve.Writable.prototype.end.call(Ce,ue,pe,be)},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 wn!="undefined"?wn: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,Ge,De){(function(me,ce,we){(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 Le=oe("./capability"),Se=oe("inherits"),Oe=oe("readable-stream"),ve=De.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},xe=De.IncomingMessage=function(fe,z,ee,ae){var re=this;if(Oe.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){me.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function je(){pe.read().then(function(ke){if(!re._destroyed){if(ke.done){ce.clearTimeout(ae),re.push(null);return}re.push(new we(ke.value)),je()}}).catch(function(ke){ce.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(je,ke){re.headers[ke.toLowerCase()]=je,re.rawHeaders.push(ke,je)}),Le.writableStream){var ue=new WritableStream({write:function(ke){return new Promise(function(Ae,Be){re._destroyed?Be():re.push(new we(ke))?Ae():re._resumeFetch=Ae})},close:function(){ce.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(ke){re._destroyed||re.emit("error",ke)}});try{z.body.pipeTo(ue).catch(function(je){ce.clearTimeout(ae),re._destroyed||re.emit("error",je)});return}catch(je){}}var pe=z.body.getReader();le()}else{re._xhr=fe,re._pos=0,re.url=fe.responseURL,re.statusCode=fe.status,re.statusMessage=fe.statusText;var be=fe.getAllResponseHeaders().split(/\r?\n/);if(be.forEach(function(je){var ke=je.match(/^([^:]+):\s*(.*)/);if(ke){var Ae=ke[1].toLowerCase();Ae==="set-cookie"?(re.headers[Ae]===void 0&&(re.headers[Ae]=[]),re.headers[Ae].push(ke[2])):re.headers[Ae]!==void 0?re.headers[Ae]+=", "+ke[2]:re.headers[Ae]=ke[2],re.rawHeaders.push(ke[1],ke[2])}}),re._charset="x-user-defined",!Le.overrideMimeType){var Ce=re.rawHeaders["mime-type"];if(Ce){var Fe=Ce.match(/;\s*charset=([^;])(;|$)/);Fe&&(re._charset=Fe[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};Se(xe,Oe.Readable),xe.prototype._read=function(){var fe=this,z=fe._resumeFetch;z&&(fe._resumeFetch=null,z())},xe.prototype._onXHRProgress=function(){var fe=this,z=fe._xhr,ee=null;switch(fe._mode){case"text:vbarray":if(z.readyState!==ve.DONE)break;try{ee=new ce.VBArray(z.responseBody).toArray()}catch(pe){}if(ee!==null){fe.push(new we(ee));break}case"text":try{ee=z.responseText}catch(pe){fe._mode="text:vbarray";break}if(ee.length>fe._pos){var ae=ee.substr(fe._pos);if(fe._charset==="x-user-defined"){for(var re=new we(ae.length),le=0;le<ae.length;le++)re[le]=ae.charCodeAt(le)&255;fe.push(re)}else fe.push(ae,fe._charset);fe._pos=ee.length}break;case"arraybuffer":if(z.readyState!==ve.DONE||!z.response)break;ee=z.response,fe.push(new we(new Uint8Array(ee)));break;case"moz-chunked-arraybuffer":if(ee=z.response,z.readyState!==ve.LOADING||!ee)break;fe.push(new we(new Uint8Array(ee)));break;case"ms-stream":if(ee=z.response,z.readyState!==ve.LOADING)break;var ue=new ce.MSStreamReader;ue.onprogress=function(){ue.result.byteLength>fe._pos&&(fe.push(new we(new Uint8Array(ue.result.slice(fe._pos)))),fe._pos=ue.result.byteLength)},ue.onload=function(){fe.push(null)},ue.readAsArrayBuffer(ee);break}fe._xhr.readyState===ve.DONE&&fe._mode!=="ms-stream"&&fe.push(null)}}).call(this)}).call(this,oe("_process"),typeof wn!="undefined"?wn: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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(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 we=oe("punycode"),Le=oe("./util");De.parse=ke,De.resolve=Be,De.resolveObject=_e,De.format=Ae,De.Url=Se;function Se(){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 Oe=/^([a-z0-9.+-]+:)/i,ve=/:[0-9]*$/,xe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fe=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],z=["{","}","|","\\","^","`"].concat(fe),ee=["'"].concat(z),ae=["%","/","?",";","#"].concat(ee),re=["/","?","#"],le=255,ue=/^[+a-z0-9A-Z_-]{0,63}$/,pe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,be={javascript:!0,"javascript:":!0},Ce={javascript:!0,"javascript:":!0},Fe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},je=oe("querystring");function ke(et,ze,Xe){if(et&&Le.isObject(et)&&et instanceof Se)return et;var Qe=new Se;return Qe.parse(et,ze,Xe),Qe}Se.prototype.parse=function(et,ze,Xe){if(!Le.isString(et))throw new TypeError("Parameter 'url' must be a string, not "+(0,ce.default)(et));var Qe=et.indexOf("?"),lt=Qe!==-1&&Qe<et.indexOf("#")?"?":"#",ct=et.split(lt),vt=/\\/g;ct[0]=ct[0].replace(vt,"/"),et=ct.join(lt);var nt=et;if(nt=nt.trim(),!Xe&&et.split("#").length===1){var it=xe.exec(nt);if(it)return this.path=nt,this.href=nt,this.pathname=it[1],it[2]?(this.search=it[2],ze?this.query=je.parse(this.search.substr(1)):this.query=this.search.substr(1)):ze&&(this.search="",this.query={}),this}var pt=Oe.exec(nt);if(pt){pt=pt[0];var xt=pt.toLowerCase();this.protocol=xt,nt=nt.substr(pt.length)}if(Xe||pt||nt.match(/^\/\/[^@\/]+@[^@\/]+/)){var yt=nt.substr(0,2)==="//";yt&&!(pt&&Ce[pt])&&(nt=nt.substr(2),this.slashes=!0)}if(!Ce[pt]&&(yt||pt&&!Fe[pt])){for(var ft=-1,gt=0;gt<re.length;gt++){var mt=nt.indexOf(re[gt]);mt!==-1&&(ft===-1||mt<ft)&&(ft=mt)}var Nt,Tt;ft===-1?Tt=nt.lastIndexOf("@"):Tt=nt.lastIndexOf("@",ft),Tt!==-1&&(Nt=nt.slice(0,Tt),nt=nt.slice(Tt+1),this.auth=decodeURIComponent(Nt)),ft=-1;for(var gt=0;gt<ae.length;gt++){var mt=nt.indexOf(ae[gt]);mt!==-1&&(ft===-1||mt<ft)&&(ft=mt)}ft===-1&&(ft=nt.length),this.host=nt.slice(0,ft),nt=nt.slice(ft),this.parseHost(),this.hostname=this.hostname||"";var zt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!zt)for(var St=this.hostname.split("."),gt=0,wt=St.length;gt<wt;gt++){var at=St[gt];if(at&&!at.match(ue)){for(var Ye="",Pe=0,Te=at.length;Pe<Te;Pe++)at.charCodeAt(Pe)>127?Ye+="x":Ye+=at[Pe];if(!Ye.match(ue)){var Ve=St.slice(0,gt),Ze=St.slice(gt+1),Ee=at.match(pe);Ee&&(Ve.push(Ee[1]),Ze.unshift(Ee[2])),Ze.length&&(nt="/"+Ze.join(".")+nt),this.hostname=Ve.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),zt||(this.hostname=we.toASCII(this.hostname));var He=this.port?":"+this.port:"",We=this.hostname||"";this.host=We+He,this.href+=this.host,zt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),nt[0]!=="/"&&(nt="/"+nt))}if(!be[xt])for(var gt=0,wt=ee.length;gt<wt;gt++){var Ke=ee[gt];if(nt.indexOf(Ke)!==-1){var Je=encodeURIComponent(Ke);Je===Ke&&(Je=escape(Ke)),nt=nt.split(Ke).join(Je)}}var dt=nt.indexOf("#");dt!==-1&&(this.hash=nt.substr(dt),nt=nt.slice(0,dt));var Ct=nt.indexOf("?");if(Ct!==-1?(this.search=nt.substr(Ct),this.query=nt.substr(Ct+1),ze&&(this.query=je.parse(this.query)),nt=nt.slice(0,Ct)):ze&&(this.search="",this.query={}),nt&&(this.pathname=nt),Fe[xt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var He=this.pathname||"",ht=this.search||"";this.path=He+ht}return this.href=this.format(),this};function Ae(et){return Le.isString(et)&&(et=ke(et)),et instanceof Se?et.format():Se.prototype.format.call(et)}Se.prototype.format=function(){var et=this.auth||"";et&&(et=encodeURIComponent(et),et=et.replace(/%3A/i,":"),et+="@");var ze=this.protocol||"",Xe=this.pathname||"",Qe=this.hash||"",lt=!1,ct="";this.host?lt=et+this.host:this.hostname&&(lt=et+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(lt+=":"+this.port)),this.query&&Le.isObject(this.query)&&Object.keys(this.query).length&&(ct=je.stringify(this.query));var vt=this.search||ct&&"?"+ct||"";return ze&&ze.substr(-1)!==":"&&(ze+=":"),this.slashes||(!ze||Fe[ze])&<!==!1?(lt="//"+(lt||""),Xe&&Xe.charAt(0)!=="/"&&(Xe="/"+Xe)):lt||(lt=""),Qe&&Qe.charAt(0)!=="#"&&(Qe="#"+Qe),vt&&vt.charAt(0)!=="?"&&(vt="?"+vt),Xe=Xe.replace(/[?#]/g,function(nt){return encodeURIComponent(nt)}),vt=vt.replace("#","%23"),ze+lt+Xe+vt+Qe};function Be(et,ze){return ke(et,!1,!0).resolve(ze)}Se.prototype.resolve=function(et){return this.resolveObject(ke(et,!1,!0)).format()};function _e(et,ze){return et?ke(et,!1,!0).resolveObject(ze):ze}Se.prototype.resolveObject=function(et){if(Le.isString(et)){var ze=new Se;ze.parse(et,!1,!0),et=ze}for(var Xe=new Se,Qe=Object.keys(this),lt=0;lt<Qe.length;lt++){var ct=Qe[lt];Xe[ct]=this[ct]}if(Xe.hash=et.hash,et.href==="")return Xe.href=Xe.format(),Xe;if(et.slashes&&!et.protocol){for(var vt=Object.keys(et),nt=0;nt<vt.length;nt++){var it=vt[nt];it!=="protocol"&&(Xe[it]=et[it])}return Fe[Xe.protocol]&&Xe.hostname&&!Xe.pathname&&(Xe.path=Xe.pathname="/"),Xe.href=Xe.format(),Xe}if(et.protocol&&et.protocol!==Xe.protocol){if(!Fe[et.protocol]){for(var pt=Object.keys(et),xt=0;xt<pt.length;xt++){var yt=pt[xt];Xe[yt]=et[yt]}return Xe.href=Xe.format(),Xe}if(Xe.protocol=et.protocol,!et.host&&!Ce[et.protocol]){for(var wt=(et.pathname||"").split("/");wt.length&&!(et.host=wt.shift()););et.host||(et.host=""),et.hostname||(et.hostname=""),wt[0]!==""&&wt.unshift(""),wt.length<2&&wt.unshift(""),Xe.pathname=wt.join("/")}else Xe.pathname=et.pathname;if(Xe.search=et.search,Xe.query=et.query,Xe.host=et.host||"",Xe.auth=et.auth,Xe.hostname=et.hostname||et.host,Xe.port=et.port,Xe.pathname||Xe.search){var ft=Xe.pathname||"",gt=Xe.search||"";Xe.path=ft+gt}return Xe.slashes=Xe.slashes||et.slashes,Xe.href=Xe.format(),Xe}var mt=Xe.pathname&&Xe.pathname.charAt(0)==="/",Nt=et.host||et.pathname&&et.pathname.charAt(0)==="/",Tt=Nt||mt||Xe.host&&et.pathname,zt=Tt,St=Xe.pathname&&Xe.pathname.split("/")||[],wt=et.pathname&&et.pathname.split("/")||[],at=Xe.protocol&&!Fe[Xe.protocol];if(at&&(Xe.hostname="",Xe.port=null,Xe.host&&(St[0]===""?St[0]=Xe.host:St.unshift(Xe.host)),Xe.host="",et.protocol&&(et.hostname=null,et.port=null,et.host&&(wt[0]===""?wt[0]=et.host:wt.unshift(et.host)),et.host=null),Tt=Tt&&(wt[0]===""||St[0]==="")),Nt)Xe.host=et.host||et.host===""?et.host:Xe.host,Xe.hostname=et.hostname||et.hostname===""?et.hostname:Xe.hostname,Xe.search=et.search,Xe.query=et.query,St=wt;else if(wt.length)St||(St=[]),St.pop(),St=St.concat(wt),Xe.search=et.search,Xe.query=et.query;else if(!Le.isNullOrUndefined(et.search)){if(at){Xe.hostname=Xe.host=St.shift();var Ye=Xe.host&&Xe.host.indexOf("@")>0?Xe.host.split("@"):!1;Ye&&(Xe.auth=Ye.shift(),Xe.host=Xe.hostname=Ye.shift())}return Xe.search=et.search,Xe.query=et.query,(!Le.isNull(Xe.pathname)||!Le.isNull(Xe.search))&&(Xe.path=(Xe.pathname?Xe.pathname:"")+(Xe.search?Xe.search:"")),Xe.href=Xe.format(),Xe}if(!St.length)return Xe.pathname=null,Xe.search?Xe.path="/"+Xe.search:Xe.path=null,Xe.href=Xe.format(),Xe;for(var Pe=St.slice(-1)[0],Te=(Xe.host||et.host||St.length>1)&&(Pe==="."||Pe==="..")||Pe==="",Ve=0,Ze=St.length;Ze>=0;Ze--)Pe=St[Ze],Pe==="."?St.splice(Ze,1):Pe===".."?(St.splice(Ze,1),Ve++):Ve&&(St.splice(Ze,1),Ve--);if(!Tt&&!zt)for(;Ve--;Ve)St.unshift("..");Tt&&St[0]!==""&&(!St[0]||St[0].charAt(0)!=="/")&&St.unshift(""),Te&&St.join("/").substr(-1)!=="/"&&St.push("");var Ee=St[0]===""||St[0]&&St[0].charAt(0)==="/";if(at){Xe.hostname=Xe.host=Ee?"":St.length?St.shift():"";var Ye=Xe.host&&Xe.host.indexOf("@")>0?Xe.host.split("@"):!1;Ye&&(Xe.auth=Ye.shift(),Xe.host=Xe.hostname=Ye.shift())}return Tt=Tt||Xe.host&&St.length,Tt&&!Ee&&St.unshift(""),St.length?Xe.pathname=St.join("/"):(Xe.pathname=null,Xe.path=null),(!Le.isNull(Xe.pathname)||!Le.isNull(Xe.search))&&(Xe.path=(Xe.pathname?Xe.pathname:"")+(Xe.search?Xe.search:"")),Xe.auth=et.auth||Xe.auth,Xe.slashes=Xe.slashes||et.slashes,Xe.href=Xe.format(),Xe},Se.prototype.parseHost=function(){var et=this.host,ze=ve.exec(et);ze&&(ze=ze[0],ze!==":"&&(this.port=ze.substr(1)),et=et.substr(0,et.length-ze.length)),et&&(this.hostname=et)}},{"./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,Ge,De){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/helpers/typeof"));Ge.exports={isString:function(Le){return typeof Le=="string"},isObject:function(Le){return(0,ce.default)(Le)==="object"&&Le!==null},isNull:function(Le){return Le===null},isNullOrUndefined:function(Le){return Le==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.number.constructor.js"),De.encodeURIComponent=function(me){try{return encodeURIComponent(me)}catch(ce){return me}},De.escape=oe("escape-html"),De.timestamp=function(ce){if(ce){var we=ce;return typeof we=="string"&&(we=Number(we)),String(ce).length===10&&(we*=1e3),new Date(we)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(oe,Ge,De){(function(me,ce){(function(){"use strict";var we=oe("@babel/runtime/helpers/interopRequireDefault"),Le=we(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 Se=oe("util"),Oe=oe("url"),ve=oe("http"),xe=oe("https"),fe=oe("debug")("urllib"),z=oe("humanize-ms"),ee=0,ae=Math.pow(2,31)-10,re=/^https?:\/\//i;function le(Ce,Fe){return Ce===void 0?Fe:Ce}function ue(Ce){return Ce?Ce.split(";")[0].trim().toLowerCase():""}function pe(Ce,Fe){return function(je,ke,Ae){if(je)return Fe(je);Ce({data:ke,status:Ae.statusCode,headers:Ae.headers,res:Ae})}}De.TIMEOUTS=[z("300s"),z("300s")];var be=["json","text"];De.request=function(Fe,je,ke){return arguments.length===2&&typeof je=="function"&&(ke=je,je=null),typeof ke=="function"?De.requestWithCallback(Fe,je,ke):new Promise(function(Ae,Be){De.requestWithCallback(Fe,je,pe(Ae,Be))})},De.requestWithCallback=function(Fe,je,ke){if(!Fe||typeof Fe!="string"&&(0,Le.default)(Fe)!=="object"){var Ae=Se.format("expect request url to be a string or a http request options, but got %j",Fe);throw new Error(Ae)}arguments.length===2&&typeof je=="function"&&(ke=je,je=null),je=je||{},ee>=ae&&(ee=0);var Be=++ee;je.requestUrls=je.requestUrls||[];var _e={requestId:Be,url:Fe,args:je,ctx:je.ctx};je.emitter&&je.emitter.emit("request",_e),je.timeout=je.timeout||De.TIMEOUTS,je.maxRedirects=je.maxRedirects||10,je.streaming=je.streaming||je.customResponse;var et=Date.now(),ze;typeof Fe=="string"?(re.test(Fe)||(Fe="https://"+Fe),ze=Oe.parse(Fe)):ze=Fe;var Xe=(je.type||je.method||ze.method||"GET").toUpperCase(),Qe=ze.port||80,lt=ve,ct=le(je.agent,De.agent),vt=je.fixJSONCtlChars;ze.protocol==="https:"&&(lt=xe,ct=le(je.httpsAgent,De.httpsAgent),ze.port||(Qe=443));var nt={host:ze.hostname||ze.host||"localhost",path:ze.path||"/",method:Xe,port:Qe,agent:ct,headers:je.headers||{},lookup:je.lookup};Array.isArray(je.timeout)?nt.requestTimeout=je.timeout[je.timeout.length-1]:typeof je.timeout!="undefined"&&(nt.requestTimeout=je.timeout);var it=je.auth||ze.auth;it&&(nt.auth=it);var pt=je.content||je.data,xt=Xe==="GET"||Xe==="HEAD"||je.dataAsQueryString;if(!je.content&&pt&&!(typeof pt=="string"||ce.isBuffer(pt)))if(xt)pt=je.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt);else{var yt=nt.headers["Content-Type"]||nt.headers["content-type"];yt||(je.contentType==="json"?yt="application/json":yt="application/x-www-form-urlencoded",nt.headers["Content-Type"]=yt),ue(yt)==="application/json"?pt=JSON.stringify(pt):pt=je.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt)}xt&&pt&&(nt.path+=(ze.query?"&":"?")+pt,pt=null);var ft=0;if(pt){var gt=pt.length;ce.isBuffer(pt)||(gt=ce.byteLength(pt)),ft=nt.headers["Content-Length"]=gt}je.dataType==="json"&&(nt.headers.Accept="application/json"),typeof je.beforeRequest=="function"&&je.beforeRequest(nt);var mt=null,Nt=null,Tt=null,zt=!1,St=!1,wt=0,at=-1,Ye=!1,Pe="",Te="",Ve=null;je.timing&&(Ve={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ze(){mt&&(clearTimeout(mt),mt=null)}function Ee(){Nt&&(clearTimeout(Nt),Nt=null)}function He(Ut,rn,Ft){if(Ee(),!ke){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Be,me.pid,nt.method,Fe),Ut&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Be,me.pid,Ut.name,Ut.message,Ut.stack);return}var Xt=ke;ke=null;var tn={};Ft&&(at=Ft.statusCode,tn=Ft.headers);var dn=Date.now()-et;Ve&&(Ve.contentDownload=dn),fe("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",dn,wt,at,nt.method,nt.host,nt.path,St,Ve);var En={status:at,statusCode:at,headers:tn,size:wt,aborted:Ye,rt:dn,keepAliveSocket:St,data:rn,requestUrls:je.requestUrls,timing:Ve,remoteAddress:Pe,remotePort:Te};if(Ut){var An="";ct&&typeof ct.getCurrentStatus=="function"&&(An=", agent status: "+JSON.stringify(ct.getCurrentStatus())),Ut.message+=", "+nt.method+" "+Fe+" "+at+" (connected: "+zt+", keepalive socket: "+St+An+`)
|
|
|
headers: `+JSON.stringify(tn),Ut.data=rn,Ut.path=nt.path,Ut.status=at,Ut.headers=tn,Ut.res=En}Xt(Ut,rn,je.streaming?Ft:En),je.emitter&&(_e.url=Fe,_e.socket=Vt&&Vt.connection,_e.options=nt,_e.size=ft,je.emitter.emit("response",{requestId:Be,error:Ut,ctx:je.ctx,req:_e,res:En}))}function We(Ut){var rn=null;if(je.followRedirect&&statuses.redirect[Ut.statusCode]){je._followRedirectCount=(je._followRedirectCount||0)+1;var Ft=Ut.headers.location;if(!Ft)rn=new Error("Got statusCode "+Ut.statusCode+" but cannot resolve next location from headers"),rn.name="FollowRedirectError";else if(je._followRedirectCount>je.maxRedirects)rn=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Fe),rn.name="MaxRedirectError";else{var Xt=je.formatRedirectUrl?je.formatRedirectUrl(Fe,Ft):Oe.resolve(Fe,Ft);fe("Request#%d %s: `redirected` from %s to %s",Be,nt.path,Fe,Xt),Ee(),je.headers&&je.headers.Host&&re.test(Ft)&&(je.headers.Host=null);var tn=ke;return ke=null,De.requestWithCallback(Xt,je,tn),{redirect:!0,error:null}}}return{redirect:!1,error:rn}}je.gzip&&!nt.headers["Accept-Encoding"]&&!nt.headers["accept-encoding"]&&(nt.headers["Accept-Encoding"]="gzip");function Ke(Ut,rn,Ft){var Xt=Ut.headers["content-encoding"];return Ft(null,rn,Xt)}var Je=je.writeStream;fe("Request#%d %s %s with headers %j, options.path: %s",Be,Xe,Fe,nt.headers,nt.path),je.requestUrls.push(Fe);function dt(Ut){if(Ve&&(Ve.waiting=Date.now()-et),fe("Request#%d %s `req response` event emit: status %d, headers: %j",Be,Fe,Ut.statusCode,Ut.headers),je.streaming){var rn=We(Ut);if(rn.redirect){Ut.resume();return}return rn.error?(Ut.resume(),He(rn.error,null,Ut)):He(null,null,Ut)}if(Ut.on("close",function(){fe("Request#%d %s: `res close` event emit, total size %d",Be,Fe,wt)}),Ut.on("error",function(){fe("Request#%d %s: `res error` event emit, total size %d",Be,Fe,wt)}),Ut.on("aborted",function(){Ye=!0,fe("Request#%d %s: `res aborted` event emit, total size %d",Be,Fe,wt)}),Je){var Ft=We(Ut);if(Ft.redirect){Ut.resume();return}return Ft.error?(Ut.resume(),Je.end(),He(Ft.error,null,Ut)):(je.consumeWriteStream===!1?Ut.on("end",He.bind(null,null,null,Ut)):Je.on("close",function(){fe("Request#%d %s: writeStream close event emitted",Be,Fe),He(Tt||null,null,Ut)}),Ut.pipe(Je))}var Xt=[];Ut.on("data",function(tn){fe("Request#%d %s: `res data` event emit, size %d",Be,Fe,tn.length),wt+=tn.length,Xt.push(tn)}),Ut.on("end",function(){var tn=ce.concat(Xt,wt);if(fe("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Be,Fe,wt,Ut._dumped),Tt)return He(Tt,tn,Ut);var dn=We(Ut);if(dn.error)return He(dn.error,tn,Ut);dn.redirect||Ke(Ut,tn,function(En,An,ar){if(En)return He(En,tn,Ut);if(!ar&&be.indexOf(je.dataType)>=0){try{An=decodeBodyByCharset(An,Ut)}catch(Tr){return fe("decodeBodyByCharset error: %s",Tr),He(null,An,Ut)}if(je.dataType==="json")if(wt===0)An=null;else{var tr=parseJSON(An,vt);tr.error?En=tr.error:An=tr.data}}Ye&&fe("Request#%d %s: Remote socket was terminated before `response.end()` was called",Be,Fe),He(En,An,Ut)})})}var Ct,ht;Array.isArray(je.timeout)?(Ct=z(je.timeout[0]),ht=z(je.timeout[1])):Ct=ht=z(je.timeout),fe("ConnectTimeout: %d, ResponseTimeout: %d",Ct,ht);function Lt(){fe("Connect timer ticking, timeout: %d",Ct),mt=setTimeout(function(){mt=null,at===-1&&(at=-2);var Ut="Connect timeout for "+Ct+"ms",rn="ConnectionTimeoutError";Vt.socket||(rn="SocketAssignTimeoutError",Ut+=", working sockets is full"),Tt=new Error(Ut),Tt.name=rn,Tt.requestId=Be,fe("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Be,Fe,Tt.name,Ut,zt),Kt()},Ct)}function en(){fe("Response timer ticking, timeout: %d",ht),Nt=setTimeout(function(){Nt=null;var Ut="Response timeout for "+ht+"ms",rn="ResponseTimeoutError";Tt=new Error(Ut),Tt.name=rn,Tt.requestId=Be,fe("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Be,Fe,Tt.name,Ut,zt),Kt()},ht)}var Vt;nt.mode=je.mode?je.mode:"";try{Vt=lt.request(nt,dt)}catch(Ut){return He(Ut)}typeof window=="undefined"?Lt():Vt.on("requestTimeout",function(){at===-1&&(at=-2);var Ut="Connect timeout for "+Ct+"ms",rn="ConnectionTimeoutError";Tt=new Error(Ut),Tt.name=rn,Tt.requestId=Be,Kt()});function Kt(){fe("Request#%d %s abort, connected: %s",Be,Fe,zt),Vt.socket||(Tt.noSocket=!0,He(Tt)),Vt.abort()}return Ve&&Vt.on("finish",function(){Ve.requestSent=Date.now()-et}),Vt.once("socket",function(Ut){Ve&&(Ve.queuing=Date.now()-et);var rn=Ut.readyState;if(rn==="opening"){Ut.once("lookup",function(Ft,Xt,tn){fe("Request#%d %s lookup: %s, %s, %s",Be,Fe,Ft,Xt,tn),Ve&&(Ve.dnslookup=Date.now()-et),Xt&&(Pe=Xt)}),Ut.once("connect",function(){Ve&&(Ve.connected=Date.now()-et),Ze(),en(),fe("Request#%d %s new socket connected",Be,Fe),zt=!0,Pe||(Pe=Ut.remoteAddress),Te=Ut.remotePort});return}fe("Request#%d %s reuse socket connected, readyState: %s",Be,Fe,rn),zt=!0,St=!0,Pe||(Pe=Ut.remoteAddress),Te=Ut.remotePort,Ze(),en()}),Vt.on("error",function(Ut){(Ut.name==="Error"||Ut.name==="TypeError")&&(Ut.name=zt?"ResponseError":"RequestError"),Ut.message+=' (req "error")',fe("Request#%d %s `req error` event emit, %s: %s",Be,Fe,Ut.name,Ut.message),He(Tt||Ut)}),Je&&Je.once("error",function(Ut){Ut.message+=' (writeStream "error")',Tt=Ut,fe("Request#%d %s `writeStream error` event emit, %s: %s",Be,Fe,Ut.name,Ut.message),Kt()}),je.stream?(je.stream.pipe(Vt),je.stream.once("error",function(Ut){Ut.message+=' (stream "error")',Tt=Ut,fe("Request#%d %s `readStream error` event emit, %s: %s",Be,Fe,Ut.name,Ut.message),Kt()})):Vt.end(pt),Vt.requestId=Be,Vt}}).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)},50371:function(Rn,wn){"use strict";function $e(){const tt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Pt=1;Pt<arguments.length;Pt++){const oe=Pt<0||arguments.length<=Pt?void 0:arguments[Pt];oe&&Object.keys(oe).forEach(Ge=>{const De=oe[Ge];De!==void 0&&(tt[Ge]=De)})}return tt}wn.Z=$e},13845:function(Rn,wn,$e){"use strict";$e.d(wn,{F:function(){return tt},Z:function(){return Pt}});function tt(oe){return oe!=null&&oe===oe.window}function Pt(oe,Ge){var De,me;if(typeof window=="undefined")return 0;const ce=Ge?"scrollTop":"scrollLeft";let we=0;return tt(oe)?we=oe[Ge?"pageYOffset":"pageXOffset"]:oe instanceof Document?we=oe.documentElement[ce]:(oe instanceof HTMLElement||oe)&&(we=oe[ce]),oe&&!tt(oe)&&typeof we!="number"&&(we=(me=((De=oe.ownerDocument)!==null&&De!==void 0?De:oe).documentElement)===null||me===void 0?void 0:me[ce]),we}},56762:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Pt}});var tt=$e(59301);function Pt(){const[,oe]=tt.useReducer(Ge=>Ge+1,0);return oe}},68031:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Ge}});var tt=$e(16089);function Pt(De,me,ce,we){const Le=ce-me;return De/=we/2,De<1?Le/2*De*De*De+me:Le/2*((De-=2)*De*De+2)+me}var oe=$e(13845);function Ge(De){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ce=()=>window,callback:we,duration:Le=450}=me,Se=ce(),Oe=(0,oe.Z)(Se,!0),ve=Date.now(),xe=()=>{const z=Date.now()-ve,ee=Pt(z>Le?Le:z,Oe,De,Le);(0,oe.F)(Se)?Se.scrollTo(window.pageXOffset,ee):Se instanceof Document||Se.constructor.name==="HTMLDocument"?Se.documentElement.scrollTop=ee:Se.scrollTop=ee,z<Le?(0,tt.Z)(xe):typeof we=="function"&&we()};(0,tt.Z)(xe)}},66104:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Xe}});var tt=$e(92310),Pt=$e.n(tt),oe=$e(11592),Ge=$e(26112),De=$e(59301),me=$e(92343),ce=$e(36355),we=$e(84105),Le=$e(91857);const Se=Qe=>{let{children:lt}=Qe;const{getPrefixCls:ct}=De.useContext(ce.E_),vt=ct("breadcrumb");return De.createElement("li",{className:`${vt}-separator`,"aria-hidden":"true"},lt===""?lt:lt||"/")};Se.__ANT_BREADCRUMB_SEPARATOR=!0;var Oe=Se,ve=function(Qe,lt){var ct={};for(var vt in Qe)Object.prototype.hasOwnProperty.call(Qe,vt)&<.indexOf(vt)<0&&(ct[vt]=Qe[vt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,vt=Object.getOwnPropertySymbols(Qe);nt<vt.length;nt++)lt.indexOf(vt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,vt[nt])&&(ct[vt[nt]]=Qe[vt[nt]]);return ct};function xe(Qe,lt){if(Qe.title===void 0||Qe.title===null)return null;const ct=Object.keys(lt).join("|");return typeof Qe.title=="object"?Qe.title:String(Qe.title).replace(new RegExp(`:(${ct})`,"g"),(vt,nt)=>lt[nt]||vt)}function fe(Qe,lt,ct,vt){if(ct==null)return null;const{className:nt,onClick:it}=lt,pt=ve(lt,["className","onClick"]),xt=Object.assign(Object.assign({},(0,Ge.Z)(pt,{data:!0,aria:!0})),{onClick:it});return vt!==void 0?De.createElement("a",Object.assign({},xt,{className:Pt()(`${Qe}-link`,nt),href:vt}),ct):De.createElement("span",Object.assign({},xt,{className:Pt()(`${Qe}-link`,nt)}),ct)}function z(Qe,lt){return(vt,nt,it,pt,xt)=>{if(lt)return lt(vt,nt,it,pt);const yt=xe(vt,nt);return fe(Qe,vt,yt,xt)}}var ee=function(Qe,lt){var ct={};for(var vt in Qe)Object.prototype.hasOwnProperty.call(Qe,vt)&<.indexOf(vt)<0&&(ct[vt]=Qe[vt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,vt=Object.getOwnPropertySymbols(Qe);nt<vt.length;nt++)lt.indexOf(vt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,vt[nt])&&(ct[vt[nt]]=Qe[vt[nt]]);return ct};const ae=Qe=>{const{prefixCls:lt,separator:ct="/",children:vt,menu:nt,overlay:it,dropdownProps:pt,href:xt}=Qe,ft=(gt=>{if(nt||it){const mt=Object.assign({},pt);if(nt){const Nt=nt||{},{items:Tt}=Nt,zt=ee(Nt,["items"]);mt.menu=Object.assign(Object.assign({},zt),{items:Tt==null?void 0:Tt.map((St,wt)=>{var{key:at,title:Ye,label:Pe,path:Te}=St,Ve=ee(St,["key","title","label","path"]);let Ze=Pe!=null?Pe:Ye;return Te&&(Ze=De.createElement("a",{href:`${xt}${Te}`},Ze)),Object.assign(Object.assign({},Ve),{key:at!=null?at:wt,label:Ze})})})}else it&&(mt.overlay=it);return De.createElement(Le.Z,Object.assign({placement:"bottom"},mt),De.createElement("span",{className:`${lt}-overlay-link`},gt,De.createElement(we.Z,null)))}return gt})(vt);return ft!=null?De.createElement(De.Fragment,null,De.createElement("li",null,ft),ct&&De.createElement(Oe,null,ct)):null},re=Qe=>{const{prefixCls:lt,children:ct,href:vt}=Qe,nt=ee(Qe,["prefixCls","children","href"]),{getPrefixCls:it}=De.useContext(ce.E_),pt=it("breadcrumb",lt);return De.createElement(ae,Object.assign({},nt,{prefixCls:pt}),fe(pt,nt,ct,vt))};re.__ANT_BREADCRUMB_ITEM=!0;var le=re,ue=$e(17313),pe=$e(83116),be=$e(37613);const Ce=Qe=>{const{componentCls:lt,iconCls:ct}=Qe;return{[lt]:Object.assign(Object.assign({},(0,ue.Wf)(Qe)),{color:Qe.itemColor,fontSize:Qe.fontSize,[ct]:{fontSize:Qe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Qe.linkColor,transition:`color ${Qe.motionDurationMid}`,padding:`0 ${Qe.paddingXXS}px`,borderRadius:Qe.borderRadiusSM,height:Qe.lineHeight*Qe.fontSize,display:"inline-block",marginInline:-Qe.marginXXS,"&:hover":{color:Qe.linkHoverColor,backgroundColor:Qe.colorBgTextHover}},(0,ue.Qy)(Qe)),"li:last-child":{color:Qe.lastItemColor},[`${lt}-separator`]:{marginInline:Qe.separatorMargin,color:Qe.separatorColor},[`${lt}-link`]:{[`
|
|
|
> ${ct} + span,
|
|
|
> ${ct} + a
|
|
|
`]:{marginInlineStart:Qe.marginXXS}},[`${lt}-overlay-link`]:{borderRadius:Qe.borderRadiusSM,height:Qe.lineHeight*Qe.fontSize,display:"inline-block",padding:`0 ${Qe.paddingXXS}px`,marginInline:-Qe.marginXXS,[`> ${ct}`]:{marginInlineStart:Qe.marginXXS,fontSize:Qe.fontSizeIcon},"&:hover":{color:Qe.linkHoverColor,backgroundColor:Qe.colorBgTextHover,a:{color:Qe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Qe.componentCls}-rtl`]:{direction:"rtl"}})}};var Fe=(0,pe.Z)("Breadcrumb",Qe=>{const lt=(0,be.TS)(Qe,{});return[Ce(lt)]},Qe=>({itemColor:Qe.colorTextDescription,lastItemColor:Qe.colorText,iconFontSize:Qe.fontSize,linkColor:Qe.colorTextDescription,linkHoverColor:Qe.colorText,separatorColor:Qe.colorTextDescription,separatorMargin:Qe.marginXS})),je=function(Qe,lt){var ct={};for(var vt in Qe)Object.prototype.hasOwnProperty.call(Qe,vt)&<.indexOf(vt)<0&&(ct[vt]=Qe[vt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,vt=Object.getOwnPropertySymbols(Qe);nt<vt.length;nt++)lt.indexOf(vt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,vt[nt])&&(ct[vt[nt]]=Qe[vt[nt]]);return ct};function ke(Qe){const{breadcrumbName:lt,children:ct}=Qe,vt=je(Qe,["breadcrumbName","children"]),nt=Object.assign({title:lt},vt);return ct&&(nt.menu={items:ct.map(it=>{var{breadcrumbName:pt}=it,xt=je(it,["breadcrumbName"]);return Object.assign(Object.assign({},xt),{title:pt})})}),nt}function Ae(Qe,lt){return(0,De.useMemo)(()=>Qe||(lt?lt.map(ke):null),[Qe,lt])}var Be=function(Qe,lt){var ct={};for(var vt in Qe)Object.prototype.hasOwnProperty.call(Qe,vt)&<.indexOf(vt)<0&&(ct[vt]=Qe[vt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,vt=Object.getOwnPropertySymbols(Qe);nt<vt.length;nt++)lt.indexOf(vt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,vt[nt])&&(ct[vt[nt]]=Qe[vt[nt]]);return ct};const _e=(Qe,lt)=>{if(lt===void 0)return lt;let ct=(lt||"").replace(/^\//,"");return Object.keys(Qe).forEach(vt=>{ct=ct.replace(`:${vt}`,Qe[vt])}),ct},et=Qe=>{const{prefixCls:lt,separator:ct="/",style:vt,className:nt,rootClassName:it,routes:pt,items:xt,children:yt,itemRender:ft,params:gt={}}=Qe,mt=Be(Qe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Nt,direction:Tt,breadcrumb:zt}=De.useContext(ce.E_);let St;const wt=Nt("breadcrumb",lt),[at,Ye]=Fe(wt),Pe=Ae(xt,pt),Te=z(wt,ft);if(Pe&&Pe.length>0){const Ee=[],He=xt||pt;St=Pe.map((We,Ke)=>{const{path:Je,key:dt,type:Ct,menu:ht,overlay:Lt,onClick:en,className:Vt,separator:Kt,dropdownProps:Ut}=We,rn=_e(gt,Je);rn!==void 0&&Ee.push(rn);const Ft=dt!=null?dt:Ke;if(Ct==="separator")return De.createElement(Oe,{key:Ft},Kt);const Xt={},tn=Ke===Pe.length-1;ht?Xt.menu=ht:Lt&&(Xt.overlay=Lt);let{href:dn}=We;return Ee.length&&rn!==void 0&&(dn=`#/${Ee.join("/")}`),De.createElement(ae,Object.assign({key:Ft},Xt,(0,Ge.Z)(We,{data:!0,aria:!0}),{className:Vt,dropdownProps:Ut,href:dn,separator:tn?"":ct,onClick:en,prefixCls:wt}),Te(We,gt,He,Ee,dn))})}else if(yt){const Ee=(0,oe.Z)(yt).length;St=(0,oe.Z)(yt).map((He,We)=>{if(!He)return He;const Ke=We===Ee-1;return(0,me.Tm)(He,{separator:Ke?"":ct,key:We})})}const Ve=Pt()(wt,zt==null?void 0:zt.className,{[`${wt}-rtl`]:Tt==="rtl"},nt,it,Ye),Ze=Object.assign(Object.assign({},zt==null?void 0:zt.style),vt);return at(De.createElement("nav",Object.assign({className:Ve,style:Ze},mt),De.createElement("ol",null,St)))};et.Item=le,et.Separator=Oe;var ze=et,Xe=ze},24905:function(Rn,wn,$e){"use strict";$e.d(wn,{default:function(){return Fe}});var tt=$e(92310),Pt=$e.n(tt),oe=$e(5630),Ge=$e(59301),De=$e(36355),me=$e(1684),ce=$e(32441),Le=Ge.createContext(null),Se=$e(98447),Oe=$e(14088),ve=$e(4572),xe=function(je,ke){var Ae={};for(var Be in je)Object.prototype.hasOwnProperty.call(je,Be)&&ke.indexOf(Be)<0&&(Ae[Be]=je[Be]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Be=Object.getOwnPropertySymbols(je);_e<Be.length;_e++)ke.indexOf(Be[_e])<0&&Object.prototype.propertyIsEnumerable.call(je,Be[_e])&&(Ae[Be[_e]]=je[Be[_e]]);return Ae};const fe=(je,ke)=>{var Ae;const{prefixCls:Be,className:_e,rootClassName:et,children:ze,indeterminate:Xe=!1,style:Qe,onMouseEnter:lt,onMouseLeave:ct,skipGroup:vt=!1,disabled:nt}=je,it=xe(je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pt,direction:xt,checkbox:yt}=Ge.useContext(De.E_),ft=Ge.useContext(Le),{isFormItemInput:gt}=Ge.useContext(ce.aM),mt=Ge.useContext(me.Z),Nt=(Ae=(ft==null?void 0:ft.disabled)||nt)!==null&&Ae!==void 0?Ae:mt,Tt=Ge.useRef(it.value);Ge.useEffect(()=>{ft==null||ft.registerValue(it.value)},[]),Ge.useEffect(()=>{if(!vt)return it.value!==Tt.current&&(ft==null||ft.cancelValue(Tt.current),ft==null||ft.registerValue(it.value),Tt.current=it.value),()=>ft==null?void 0:ft.cancelValue(it.value)},[it.value]);const zt=pt("checkbox",Be),[St,wt]=(0,Se.ZP)(zt),at=Object.assign({},it);ft&&!vt&&(at.onChange=function(){it.onChange&&it.onChange.apply(it,arguments),ft.toggleOption&&ft.toggleOption({label:ze,value:it.value})},at.name=ft.name,at.checked=ft.value.includes(it.value));const Ye=Pt()(`${zt}-wrapper`,{[`${zt}-rtl`]:xt==="rtl",[`${zt}-wrapper-checked`]:at.checked,[`${zt}-wrapper-disabled`]:Nt,[`${zt}-wrapper-in-form-item`]:gt},yt==null?void 0:yt.className,_e,et,wt),Pe=Pt()({[`${zt}-indeterminate`]:Xe},ve.A,wt),Te=Xe?"mixed":void 0;return St(Ge.createElement(Oe.Z,{component:"Checkbox",disabled:Nt},Ge.createElement("label",{className:Ye,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),Qe),onMouseEnter:lt,onMouseLeave:ct},Ge.createElement(oe.Z,Object.assign({"aria-checked":Te},at,{prefixCls:zt,className:Pe,disabled:Nt,ref:ke})),ze!==void 0&&Ge.createElement("span",null,ze))))};var ee=Ge.forwardRef(fe),ae=$e(19127),re=$e(2738),le=function(je,ke){var Ae={};for(var Be in je)Object.prototype.hasOwnProperty.call(je,Be)&&ke.indexOf(Be)<0&&(Ae[Be]=je[Be]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Be=Object.getOwnPropertySymbols(je);_e<Be.length;_e++)ke.indexOf(Be[_e])<0&&Object.prototype.propertyIsEnumerable.call(je,Be[_e])&&(Ae[Be[_e]]=je[Be[_e]]);return Ae};const ue=(je,ke)=>{const{defaultValue:Ae,children:Be,options:_e=[],prefixCls:et,className:ze,rootClassName:Xe,style:Qe,onChange:lt}=je,ct=le(je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:vt,direction:nt}=Ge.useContext(De.E_),[it,pt]=Ge.useState(ct.value||Ae||[]),[xt,yt]=Ge.useState([]);Ge.useEffect(()=>{"value"in ct&&pt(ct.value||[])},[ct.value]);const ft=Ge.useMemo(()=>_e.map(Ve=>typeof Ve=="string"||typeof Ve=="number"?{label:Ve,value:Ve}:Ve),[_e]),gt=Ve=>{yt(Ze=>Ze.filter(Ee=>Ee!==Ve))},mt=Ve=>{yt(Ze=>[].concat((0,ae.Z)(Ze),[Ve]))},Nt=Ve=>{const Ze=it.indexOf(Ve.value),Ee=(0,ae.Z)(it);Ze===-1?Ee.push(Ve.value):Ee.splice(Ze,1),"value"in ct||pt(Ee),lt==null||lt(Ee.filter(He=>xt.includes(He)).sort((He,We)=>{const Ke=ft.findIndex(dt=>dt.value===He),Je=ft.findIndex(dt=>dt.value===We);return Ke-Je}))},Tt=vt("checkbox",et),zt=`${Tt}-group`,[St,wt]=(0,Se.ZP)(Tt),at=(0,re.Z)(ct,["value","disabled"]),Ye=_e.length?ft.map(Ve=>Ge.createElement(ee,{prefixCls:Tt,key:Ve.value.toString(),disabled:"disabled"in Ve?Ve.disabled:ct.disabled,value:Ve.value,checked:it.includes(Ve.value),onChange:Ve.onChange,className:`${zt}-item`,style:Ve.style,title:Ve.title},Ve.label)):Be,Pe={toggleOption:Nt,value:it,disabled:ct.disabled,name:ct.name,registerValue:mt,cancelValue:gt},Te=Pt()(zt,{[`${zt}-rtl`]:nt==="rtl"},ze,Xe,wt);return St(Ge.createElement("div",Object.assign({className:Te,style:Qe},at,{ref:ke}),Ge.createElement(Le.Provider,{value:Pe},Ye)))},pe=Ge.forwardRef(ue);var be=Ge.memo(pe);const Ce=ee;Ce.Group=be,Ce.__ANT_CHECKBOX=!0;var Fe=Ce},98447:function(Rn,wn,$e){"use strict";$e.d(wn,{C2:function(){return De}});var tt=$e(17313),Pt=$e(37613),oe=$e(83116);const Ge=me=>{const{checkboxCls:ce}=me,we=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,tt.Wf)(me)),{display:"inline-flex",flexWrap:"wrap",columnGap:me.marginXS,[`> ${me.antCls}-row`]:{flex:1}}),[we]:Object.assign(Object.assign({},(0,tt.Wf)(me)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${we}`]:{marginInlineStart:0},[`&${we}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ce]:Object.assign(Object.assign({},(0,tt.Wf)(me)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:me.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,tt.oN)(me))},[`${ce}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:me.checkboxSize,height:me.checkboxSize,direction:"ltr",backgroundColor:me.colorBgContainer,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusSM,borderCollapse:"separate",transition:`all ${me.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:me.checkboxSize/14*5,height:me.checkboxSize/14*8,border:`${me.lineWidthBold}px solid ${me.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${me.motionDurationFast} ${me.motionEaseInBack}, opacity ${me.motionDurationFast}`}},"& + span":{paddingInlineStart:me.paddingXS,paddingInlineEnd:me.paddingXS}})},{[`
|
|
|
${we}:not(${we}-disabled),
|
|
|
${ce}:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{borderColor:me.colorPrimary}},[`${we}:not(${we}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:me.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:me.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-inner`]:{backgroundColor:me.colorPrimary,borderColor:me.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${me.motionDurationMid} ${me.motionEaseOutBack} ${me.motionDurationFast}`}}},[`
|
|
|
${we}-checked:not(${we}-disabled),
|
|
|
${ce}-checked:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:me.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-inner`]:{backgroundColor:me.colorBgContainer,borderColor:me.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:me.fontSizeLG/2,height:me.fontSizeLG/2,backgroundColor:me.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${we}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:me.colorBgContainerDisabled,borderColor:me.colorBorder,"&:after":{borderColor:me.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:me.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:me.colorTextDisabled}}}]};function De(me,ce){const we=(0,Pt.TS)(ce,{checkboxCls:`.${me}`,checkboxSize:ce.controlInteractiveSize});return[Ge(we)]}wn.ZP=(0,oe.Z)("Checkbox",(me,ce)=>{let{prefixCls:we}=ce;return[De(we,me)]})},93891:function(Rn,wn,$e){"use strict";var tt=$e(59301),Pt=$e(36355),oe=$e(64165);const Ge=De=>{const{componentName:me}=De,{getPrefixCls:ce}=(0,tt.useContext)(Pt.E_),we=ce("empty");switch(me){case"Table":case"List":return tt.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return tt.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${we}-small`});default:return tt.createElement(oe.Z,null)}};wn.Z=Ge},91857:function(Rn,wn,$e){"use strict";var tt=$e(59301),Pt=$e(38819),oe=$e(92310),Ge=$e.n(oe),De=$e(31561),me=$e(70425),ce=$e(18929),we=$e(2738),Le=$e(79676),Se=$e(53487),Oe=$e(92343),ve=$e(36355),xe=$e(20834),fe=$e(40875),z=$e(88088),ee=$e(47211);const ae=null,re=be=>{const{menu:Ce,arrow:Fe,prefixCls:je,children:ke,trigger:Ae,disabled:Be,dropdownRender:_e,getPopupContainer:et,overlayClassName:ze,rootClassName:Xe,open:Qe,onOpenChange:lt,visible:ct,onVisibleChange:vt,mouseEnterDelay:nt=.15,mouseLeaveDelay:it=.1,autoAdjustOverflow:pt=!0,placement:xt="",overlay:yt,transitionName:ft}=be,{getPopupContainer:gt,getPrefixCls:mt,direction:Nt}=tt.useContext(ve.E_),Tt=tt.useMemo(()=>{const ht=mt();return ft!==void 0?ft:xt.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[mt,xt,ft]),zt=tt.useMemo(()=>xt?xt.includes("Center")?xt.slice(0,xt.indexOf("Center")):xt:Nt==="rtl"?"bottomRight":"bottomLeft",[xt,Nt]),St=mt("dropdown",je),[wt,at]=(0,ee.Z)(St),[,Ye]=(0,z.Z)(),Pe=tt.Children.only(ke),Te=(0,Oe.Tm)(Pe,{className:Ge()(`${St}-trigger`,{[`${St}-rtl`]:Nt==="rtl"},Pe.props.className),disabled:Be}),Ve=Be?[]:Ae;let Ze;Ve&&Ve.includes("contextMenu")&&(Ze=!0);const[Ee,He]=(0,ce.Z)(!1,{value:Qe!=null?Qe:ct}),We=(0,me.useEvent)(ht=>{lt==null||lt(ht),vt==null||vt(ht),He(ht)}),Ke=Ge()(ze,Xe,at,{[`${St}-rtl`]:Nt==="rtl"}),Je=(0,Le.Z)({arrowPointAtCenter:typeof Fe=="object"&&Fe.pointAtCenter,autoAdjustOverflow:pt,offset:Ye.marginXXS,arrowWidth:Fe?Ye.sizePopupArrow:0,borderRadius:Ye.borderRadius}),dt=tt.useCallback(()=>{He(!1)},[]),Ct=()=>{let ht;return Ce!=null&&Ce.items?ht=tt.createElement(xe.default,Object.assign({},Ce)):typeof yt=="function"?ht=yt():ht=yt,_e&&(ht=_e(ht)),ht=tt.Children.only(typeof ht=="string"?tt.createElement("span",null,ht):ht),tt.createElement(fe.J,{prefixCls:`${St}-menu`,expandIcon:tt.createElement("span",{className:`${St}-menu-submenu-arrow`},tt.createElement(Pt.Z,{className:`${St}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:dt,validator:Lt=>{let{mode:en}=Lt}},ht)};return wt(tt.createElement(De.Z,Object.assign({alignPoint:Ze},(0,we.Z)(be,["rootClassName"]),{mouseEnterDelay:nt,mouseLeaveDelay:it,visible:Ee,builtinPlacements:Je,arrow:!!Fe,overlayClassName:Ke,prefixCls:St,getPopupContainer:et||gt,transitionName:Tt,trigger:Ve,overlay:Ct,placement:zt,onVisibleChange:We}),Te))};function le(be){return Object.assign(Object.assign({},be),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,Se.Z)(re,"dropdown",be=>be,le),pe=be=>tt.createElement(ue,Object.assign({},be),tt.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,wn.Z=re},38854:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return z}});var tt=$e(91857),Pt=$e(92310),oe=$e.n(Pt),Ge=$e(59301),De=$e(18785),me=$e(3113),ce=$e(36355),we=$e(81327),Le=$e(33234),Se=$e(47211),Oe=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 ve=ee=>{const{getPopupContainer:ae,getPrefixCls:re,direction:le}=Ge.useContext(ce.E_),{prefixCls:ue,type:pe="default",danger:be,disabled:Ce,loading:Fe,onClick:je,htmlType:ke,children:Ae,className:Be,menu:_e,arrow:et,autoFocus:ze,overlay:Xe,trigger:Qe,align:lt,open:ct,onOpenChange:vt,placement:nt,getPopupContainer:it,href:pt,icon:xt=Ge.createElement(De.Z,null),title:yt,buttonsRender:ft=Ct=>Ct,mouseEnterDelay:gt,mouseLeaveDelay:mt,overlayClassName:Nt,overlayStyle:Tt,destroyPopupOnHide:zt,dropdownRender:St}=ee,wt=Oe(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"]),at=re("dropdown",ue),Ye=`${at}-button`,[Pe,Te]=(0,Se.Z)(at),Ve={menu:_e,arrow:et,autoFocus:ze,align:lt,disabled:Ce,trigger:Ce?[]:Qe,onOpenChange:vt,getPopupContainer:it||ae,mouseEnterDelay:gt,mouseLeaveDelay:mt,overlayClassName:Nt,overlayStyle:Tt,destroyPopupOnHide:zt,dropdownRender:St},{compactSize:Ze,compactItemClassnames:Ee}=(0,Le.ri)(at,le),He=oe()(Ye,Ee,Be,Te);"overlay"in ee&&(Ve.overlay=Xe),"open"in ee&&(Ve.open=ct),"placement"in ee?Ve.placement=nt:Ve.placement=le==="rtl"?"bottomLeft":"bottomRight";const We=Ge.createElement(me.ZP,{type:pe,danger:be,disabled:Ce,loading:Fe,onClick:je,htmlType:ke,href:pt,title:yt},Ae),Ke=Ge.createElement(me.ZP,{type:pe,danger:be,icon:xt}),[Je,dt]=ft([We,Ke]);return Pe(Ge.createElement(we.Z.Compact,Object.assign({className:He,size:Ze,block:!0},wt),Je,Ge.createElement(tt.Z,Object.assign({},Ve),dt)))};ve.__ANT_BUTTON=!0;var xe=ve;const fe=tt.Z;fe.Button=xe;var z=fe},47211:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Oe}});var tt=$e(17313),Pt=$e(13826),oe=$e(92899),Ge=$e(29878),De=$e(19447),me=$e(83116),ce=$e(37613),Le=ve=>{const{componentCls:xe,menuCls:fe,colorError:z,colorTextLightSolid:ee}=ve,ae=`${fe}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${fe} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:z,"&:hover":{color:ee,backgroundColor:z}}}}}};const Se=ve=>{const{componentCls:xe,menuCls:fe,zIndexPopup:z,dropdownArrowDistance:ee,sizePopupArrow:ae,antCls:re,iconCls:le,motionDurationMid:ue,dropdownPaddingVertical:pe,fontSize:be,dropdownEdgeChildPadding:Ce,colorTextDisabled:Fe,fontSizeIcon:je,controlPaddingHorizontal:ke,colorBgElevated:Ae}=ve;return[{[xe]:Object.assign(Object.assign({},(0,tt.Wf)(ve)),{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:je}},[`${xe}-wrap`]:{position:"relative",[`${re}-btn > ${le}-down`]:{fontSize:je},[`${le}-down::before`]:{transition:`transform ${ue}`}},[`${xe}-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${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${xe}-placement-bottomRight,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:Pt.fJ},[`&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-top,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-top,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-topRight,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:Pt.Qt},[`&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:Pt.Uw},[`&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-top,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:Pt.ly}})},(0,De.ZP)(ve,{colorBg:Ae,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${fe}`]:{position:"relative",margin:0},[`${fe}-submenu-popup`]:{position:"absolute",zIndex:z,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xe}, ${xe}-menu-submenu`]:{[fe]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:Ae,backgroundClip:"padding-box",borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary},(0,tt.Qy)(ve)),{[`${fe}-item-group-title`]:{padding:`${pe}px ${ke}px`,color:ve.colorTextDescription,transition:`all ${ue}`},[`${fe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${fe}-item-icon`]:{minWidth:be,marginInlineEnd:ve.marginXS,fontSize:ve.fontSizeSM},[`${fe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ue}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${fe}-item, ${fe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pe}px ${ke}px`,color:ve.colorText,fontWeight:"normal",fontSize:be,lineHeight:ve.lineHeight,cursor:"pointer",transition:`all ${ue}`,borderRadius:ve.borderRadiusSM,"&:hover, &-active":{backgroundColor:ve.controlItemBgHover}},(0,tt.Qy)(ve)),{"&-selected":{color:ve.colorPrimary,backgroundColor:ve.controlItemBgActive,"&:hover, &-active":{backgroundColor:ve.controlItemBgActiveHover}},"&-disabled":{color:Fe,cursor:"not-allowed","&:hover":{color:Fe,backgroundColor:Ae,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ve.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ve.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ve.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ve.colorTextDescription,fontSize:je,fontStyle:"normal"}}}),[`${fe}-item-group-list`]:{margin:`0 ${ve.marginXS}px`,padding:0,listStyle:"none"},[`${fe}-submenu-title`]:{paddingInlineEnd:ke+ve.fontSizeSM},[`${fe}-submenu-vertical`]:{position:"relative"},[`${fe}-submenu${fe}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:Fe,backgroundColor:Ae,cursor:"not-allowed"}},[`${fe}-submenu-selected ${xe}-menu-submenu-title`]:{color:ve.colorPrimary}})}},[(0,Pt.oN)(ve,"slide-up"),(0,Pt.oN)(ve,"slide-down"),(0,oe.Fm)(ve,"move-up"),(0,oe.Fm)(ve,"move-down"),(0,Ge._y)(ve,"zoom-big")]]};var Oe=(0,me.Z)("Dropdown",(ve,xe)=>{let{rootPrefixCls:fe}=xe;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:be}=ve,Ce=(ae-re*le)/2,{dropdownArrowOffset:Fe}=(0,De.fS)({contentRadius:be}),je=(0,ce.TS)(ve,{menuCls:`${pe}-menu`,rootPrefixCls:fe,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:Fe,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:ue});return[Se(je),Le(je)]},ve=>({zIndexPopup:ve.zIndexPopupBase+50}))},64165:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return ue}});var tt=$e(92310),Pt=$e.n(tt),oe=$e(59301),Ge=$e(36355),De=$e(9763),me=$e(64993),ce=$e(88088),Le=()=>{const[,pe]=(0,ce.Z)(),Ce=new me.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"}))))},Oe=()=>{const[,pe]=(0,ce.Z)(),{colorFill:be,colorFillTertiary:Ce,colorFillQuaternary:Fe,colorBgContainer:je}=pe,{borderColor:ke,shadowColor:Ae,contentColor:Be}=(0,oe.useMemo)(()=>({borderColor:new me.C(be).onBackground(je).toHexShortString(),shadowColor:new me.C(Ce).onBackground(je).toHexShortString(),contentColor:new me.C(Fe).onBackground(je).toHexShortString()}),[be,Ce,Fe,je]);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:Ae,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:Be}))))},ve=$e(83116),xe=$e(37613);const fe=pe=>{const{componentCls:be,margin:Ce,marginXS:Fe,marginXL:je,fontSize:ke,lineHeight:Ae}=pe;return{[be]:{marginInline:Fe,fontSize:ke,lineHeight:Ae,textAlign:"center",[`${be}-image`]:{height:pe.emptyImgHeight,marginBottom:Fe,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${be}-description`]:{color:pe.colorText},[`${be}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:je,color:pe.colorTextDisabled,[`${be}-description`]:{color:pe.colorTextDisabled},[`${be}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:pe.colorTextDisabled,[`${be}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,ve.Z)("Empty",pe=>{const{componentCls:be,controlHeightLG:Ce}=pe,Fe=(0,xe.TS)(pe,{emptyImgCls:`${be}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[fe(Fe)]}),ee=function(pe,be){var Ce={};for(var Fe in pe)Object.prototype.hasOwnProperty.call(pe,Fe)&&be.indexOf(Fe)<0&&(Ce[Fe]=pe[Fe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Fe=Object.getOwnPropertySymbols(pe);je<Fe.length;je++)be.indexOf(Fe[je])<0&&Object.prototype.propertyIsEnumerable.call(pe,Fe[je])&&(Ce[Fe[je]]=pe[Fe[je]]);return Ce};const ae=oe.createElement(Le,null),re=oe.createElement(Oe,null),le=pe=>{var{className:be,rootClassName:Ce,prefixCls:Fe,image:je=ae,description:ke,children:Ae,imageStyle:Be,style:_e}=pe,et=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:ze,direction:Xe,empty:Qe}=oe.useContext(Ge.E_),lt=ze("empty",Fe),[ct,vt]=z(lt),[nt]=(0,De.Z)("Empty"),it=typeof ke!="undefined"?ke:nt==null?void 0:nt.description,pt=typeof it=="string"?it:"empty";let xt=null;return typeof je=="string"?xt=oe.createElement("img",{alt:pt,src:je}):xt=je,ct(oe.createElement("div",Object.assign({className:Pt()(vt,lt,Qe==null?void 0:Qe.className,{[`${lt}-normal`]:je===re,[`${lt}-rtl`]:Xe==="rtl"},be,Ce),style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),_e)},et),oe.createElement("div",{className:`${lt}-image`,style:Be},xt),it&&oe.createElement("div",{className:`${lt}-description`},it),Ae&&oe.createElement("div",{className:`${lt}-footer`},Ae)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(Rn,wn,$e){"use strict";$e.d(wn,{default:function(){return Jt}});var tt=$e(19127),Pt=$e(92310),oe=$e.n(Pt),Ge=$e(77900),De=$e(59301),me=$e(62892),ce=$e(32441);function we(Et){const[ln,Pn]=De.useState(Et);return De.useEffect(()=>{const $t=setTimeout(()=>{Pn(Et)},Et.length?0:10);return()=>{clearTimeout($t)}},[Et]),ln}var Le=$e(17313),Se=$e(29878),Oe=$e(8378),ve=$e(37613),xe=$e(83116),z=Et=>{const{componentCls:ln}=Et,Pn=`${ln}-show-help`,$t=`${ln}-show-help-item`;return{[Pn]:{transition:`opacity ${Et.motionDurationSlow} ${Et.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[$t]:{overflow:"hidden",transition:`height ${Et.motionDurationSlow} ${Et.motionEaseInOut},
|
|
|
opacity ${Et.motionDurationSlow} ${Et.motionEaseInOut},
|
|
|
transform ${Et.motionDurationSlow} ${Et.motionEaseInOut} !important`,[`&${$t}-appear, &${$t}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${$t}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Et=>({legend:{display:"block",width:"100%",marginBottom:Et.marginLG,padding:0,color:Et.colorTextDescription,fontSize:Et.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Et.lineWidth}px ${Et.lineType} ${Et.colorBorder}`},label:{fontSize:Et.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 ${Et.controlOutlineWidth}px ${Et.controlOutline}`},output:{display:"block",paddingTop:15,color:Et.colorText,fontSize:Et.fontSize,lineHeight:Et.lineHeight}}),ae=(Et,ln)=>{const{formItemCls:Pn}=Et;return{[Pn]:{[`${Pn}-label > label`]:{height:ln},[`${Pn}-control-input`]:{minHeight:ln}}}},re=Et=>{const{componentCls:ln}=Et;return{[Et.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(Et)),ee(Et)),{[`${ln}-text`]:{display:"inline-block",paddingInlineEnd:Et.paddingSM},"&-small":Object.assign({},ae(Et,Et.controlHeightSM)),"&-large":Object.assign({},ae(Et,Et.controlHeightLG))})}},le=Et=>{const{formItemCls:ln,iconCls:Pn,componentCls:$t,rootPrefixCls:It,labelRequiredMarkColor:fn,labelColor:un,labelFontSize:Gn,labelHeight:Xn,labelColonMarginInlineStart:Ht,labelColonMarginInlineEnd:kn,itemMarginBottom:Wn}=Et;return{[ln]:Object.assign(Object.assign({},(0,Le.Wf)(Et)),{marginBottom:Wn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${It}-row`]:{display:"none"},"&-has-warning":{[`${ln}-split`]:{color:Et.colorError}},"&-has-error":{[`${ln}-split`]:{color:Et.colorWarning}},[`${ln}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Et.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Xn,color:un,fontSize:Gn,[`> ${Pn}`]:{fontSize:Et.fontSize,verticalAlign:"top"},[`&${ln}-required:not(${ln}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Et.marginXXS,color:fn,fontSize:Et.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${$t}-hide-required-mark &`]:{display:"none"}},[`${ln}-optional`]:{display:"inline-block",marginInlineStart:Et.marginXXS,color:Et.colorTextDescription,[`${$t}-hide-required-mark &`]:{display:"none"}},[`${ln}-tooltip`]:{color:Et.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Et.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ht,marginInlineEnd:kn},[`&${ln}-no-colon::after`]:{content:'"\\a0"'}}},[`${ln}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${It}-col-'"]):not([class*="' ${It}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Et.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ln]:{"&-explain, &-extra":{clear:"both",color:Et.colorTextDescription,fontSize:Et.fontSize,lineHeight:Et.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Et.controlHeightSM,transition:`color ${Et.motionDurationMid} ${Et.motionEaseOut}`},"&-explain":{"&-error":{color:Et.colorError},"&-warning":{color:Et.colorWarning}}},[`&-with-help ${ln}-explain`]:{height:"auto",opacity:1},[`${ln}-feedback-icon`]:{fontSize:Et.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:Et.motionDurationMid,animationTimingFunction:Et.motionEaseOutBack,pointerEvents:"none","&-success":{color:Et.colorSuccess},"&-error":{color:Et.colorError},"&-warning":{color:Et.colorWarning},"&-validating":{color:Et.colorPrimary}}})}},ue=Et=>{const{componentCls:ln,formItemCls:Pn}=Et;return{[`${ln}-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=Et=>{const{componentCls:ln,formItemCls:Pn}=Et;return{[`${ln}-inline`]:{display:"flex",flexWrap:"wrap",[Pn]:{flex:"none",marginInlineEnd:Et.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Pn}-label,
|
|
|
> ${Pn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Pn}-label`]:{flex:"none"},[`${ln}-text`]:{display:"inline-block"},[`${Pn}-has-feedback`]:{display:"inline-block"}}}}},be=Et=>({padding:Et.verticalLabelPadding,margin:Et.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Et=>{const{componentCls:ln,formItemCls:Pn,rootPrefixCls:$t}=Et;return{[`${Pn} ${Pn}-label`]:be(Et),[ln]:{[Pn]:{flexWrap:"wrap",[`${Pn}-label, ${Pn}-control`]:{[`&:not([class*=" ${$t}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Fe=Et=>{const{componentCls:ln,formItemCls:Pn,rootPrefixCls:$t}=Et;return{[`${ln}-vertical`]:{[Pn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ln}-item-control`]:{width:"100%"}}},[`${ln}-vertical ${Pn}-label,
|
|
|
.${$t}-col-24${Pn}-label,
|
|
|
.${$t}-col-xl-24${Pn}-label`]:be(Et),[`@media (max-width: ${Et.screenXSMax}px)`]:[Ce(Et),{[ln]:{[`.${$t}-col-xs-24${Pn}-label`]:be(Et)}}],[`@media (max-width: ${Et.screenSMMax}px)`]:{[ln]:{[`.${$t}-col-sm-24${Pn}-label`]:be(Et)}},[`@media (max-width: ${Et.screenMDMax}px)`]:{[ln]:{[`.${$t}-col-md-24${Pn}-label`]:be(Et)}},[`@media (max-width: ${Et.screenLGMax}px)`]:{[ln]:{[`.${$t}-col-lg-24${Pn}-label`]:be(Et)}}}},je=(Et,ln)=>(0,ve.TS)(Et,{formItemCls:`${Et.componentCls}-item`,rootPrefixCls:ln});var ke=(0,xe.Z)("Form",(Et,ln)=>{let{rootPrefixCls:Pn}=ln;const $t=je(Et,Pn);return[re($t),le($t),z($t),ue($t),pe($t),Fe($t),(0,Oe.Z)($t),Se.kr]},Et=>({labelRequiredMarkColor:Et.colorError,labelColor:Et.colorTextHeading,labelFontSize:Et.fontSize,labelHeight:Et.controlHeight,labelColonMarginInlineStart:Et.marginXXS/2,labelColonMarginInlineEnd:Et.marginXS,itemMarginBottom:Et.marginLG,verticalLabelPadding:`0 0 ${Et.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ae=[];function Be(Et,ln,Pn){let $t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Et=="string"?Et:`${ln}-${$t}`,error:Et,errorStatus:Pn}}var et=Et=>{let{help:ln,helpStatus:Pn,errors:$t=Ae,warnings:It=Ae,className:fn,fieldId:un,onVisibleChanged:Gn}=Et;const{prefixCls:Xn}=De.useContext(ce.Rk),Ht=`${Xn}-item-explain`,[,kn]=ke(Xn),Wn=(0,De.useMemo)(()=>(0,me.Z)(Xn),[Xn]),lr=we($t),on=we(It),Mn=De.useMemo(()=>ln!=null?[Be(ln,"help",Pn)]:[].concat((0,tt.Z)(lr.map((Sn,gn)=>Be(Sn,"error","error",gn))),(0,tt.Z)(on.map((Sn,gn)=>Be(Sn,"warning","warning",gn)))),[ln,Pn,lr,on]),an={};return un&&(an.id=`${un}_help`),De.createElement(Ge.default,{motionDeadline:Wn.motionDeadline,motionName:`${Xn}-show-help`,visible:!!Mn.length,onVisibleChanged:Gn},Sn=>{const{className:gn,style:yn}=Sn;return De.createElement("div",Object.assign({},an,{className:oe()(Ht,gn,fn,kn),style:yn,role:"alert"}),De.createElement(Ge.CSSMotionList,Object.assign({keys:Mn},(0,me.Z)(Xn),{motionName:`${Xn}-show-help-item`,component:!1}),On=>{const{key:Nn,error:Fn,errorStatus:zn,className:xr,style:mn}=On;return De.createElement("div",{key:Nn,className:oe()(xr,{[`${Ht}-${zn}`]:zn}),style:mn},Fn)}))})},ze=$e(95013),Xe=$e(36355),Qe=$e(1684),lt=$e(52946),ct=$e(19716),vt=$e(16722);const nt=["parentNode"],it="form_item";function pt(Et){return Et===void 0||Et===!1?[]:Array.isArray(Et)?Et:[Et]}function xt(Et,ln){if(!Et.length)return;const Pn=Et.join("_");return ln?`${ln}_${Pn}`:nt.includes(Pn)?`${it}_${Pn}`:Pn}function yt(Et,ln,Pn,$t,It,fn){let un=$t;return fn!==void 0?un=fn:Pn.validating?un="validating":Et.length?un="error":ln.length?un="warning":(Pn.touched||It&&Pn.validated)&&(un="success"),un}function ft(Et){return pt(Et).join("_")}function gt(Et){const[ln]=(0,ze.useForm)(),Pn=De.useRef({}),$t=De.useMemo(()=>Et!=null?Et:Object.assign(Object.assign({},ln),{__INTERNAL__:{itemRef:It=>fn=>{const un=ft(It);fn?Pn.current[un]=fn:delete Pn.current[un]}},scrollToField:function(It){let fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const un=pt(It),Gn=xt(un,$t.__INTERNAL__.name),Xn=Gn?document.getElementById(Gn):null;Xn&&(0,vt.Z)(Xn,Object.assign({scrollMode:"if-needed",block:"nearest"},fn))},getFieldInstance:It=>{const fn=ft(It);return Pn.current[fn]}}),[Et,ln]);return[$t]}var mt=$e(28726),Nt=function(Et,ln){var Pn={};for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&ln.indexOf($t)<0&&(Pn[$t]=Et[$t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,$t=Object.getOwnPropertySymbols(Et);It<$t.length;It++)ln.indexOf($t[It])<0&&Object.prototype.propertyIsEnumerable.call(Et,$t[It])&&(Pn[$t[It]]=Et[$t[It]]);return Pn};const Tt=(Et,ln)=>{const Pn=De.useContext(Qe.Z),{getPrefixCls:$t,direction:It,form:fn}=De.useContext(Xe.E_),{prefixCls:un,className:Gn,rootClassName:Xn,size:Ht,disabled:kn=Pn,form:Wn,colon:lr,labelAlign:on,labelWrap:Mn,labelCol:an,wrapperCol:Sn,hideRequiredMark:gn,layout:yn="horizontal",scrollToFirstError:On,requiredMark:Nn,onFinishFailed:Fn,name:zn,style:xr,feedbackIcons:mn}=Et,Fr=Nt(Et,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Yr=(0,ct.Z)(Ht),Br=De.useContext(mt.Z),bn=(0,De.useMemo)(()=>Nn!==void 0?Nn:fn&&fn.requiredMark!==void 0?fn.requiredMark:!gn,[gn,Nn,fn]),Jn=lr!=null?lr:fn==null?void 0:fn.colon,sr=$t("form",un),[Sr,mr]=ke(sr),$r=oe()(sr,`${sr}-${yn}`,{[`${sr}-hide-required-mark`]:bn===!1,[`${sr}-rtl`]:It==="rtl",[`${sr}-${Yr}`]:Yr},mr,fn==null?void 0:fn.className,Gn,Xn),[ri]=gt(Wn),{__INTERNAL__:Rr}=ri;Rr.name=zn;const br=(0,De.useMemo)(()=>({name:zn,labelAlign:on,labelCol:an,labelWrap:Mn,wrapperCol:Sn,vertical:yn==="vertical",colon:Jn,requiredMark:bn,itemRef:Rr.itemRef,form:ri,feedbackIcons:mn}),[zn,on,an,Sn,yn,Jn,bn,ri,mn]);De.useImperativeHandle(ln,()=>ri);const ur=(cr,xn)=>{if(cr){let zr={block:"nearest"};typeof cr=="object"&&(zr=cr),ri.scrollToField(xn,zr)}},vn=cr=>{if(Fn==null||Fn(cr),cr.errorFields.length){const xn=cr.errorFields[0].name;if(On!==void 0){ur(On,xn);return}fn&&fn.scrollToFirstError!==void 0&&ur(fn.scrollToFirstError,xn)}};return Sr(De.createElement(Qe.n,{disabled:kn},De.createElement(lt.q,{size:Yr},De.createElement(ce.RV,Object.assign({},{validateMessages:Br}),De.createElement(ce.q3.Provider,{value:br},De.createElement(ze.default,Object.assign({id:zn},Fr,{name:zn,onFinishFailed:vn,form:ri,style:Object.assign(Object.assign({},fn==null?void 0:fn.style),xr),className:$r})))))))};var St=De.forwardRef(Tt),wt=$e(41799),at=$e(8654),Ye=$e(92343),Pe=$e(11592);function Te(Et){if(typeof Et=="function")return Et;const ln=(0,Pe.Z)(Et);return ln.length<=1?ln[0]:ln}const Ve=()=>{const{status:Et,errors:ln=[],warnings:Pn=[]}=(0,De.useContext)(ce.aM);return{status:Et,errors:ln,warnings:Pn}};Ve.Context=ce.aM;var Ze=Ve,Ee=$e(16089);function He(Et){const[ln,Pn]=De.useState(Et),$t=(0,De.useRef)(null),It=(0,De.useRef)([]),fn=(0,De.useRef)(!1);De.useEffect(()=>(fn.current=!1,()=>{fn.current=!0,Ee.Z.cancel($t.current),$t.current=null}),[]);function un(Gn){fn.current||($t.current===null&&(It.current=[],$t.current=(0,Ee.Z)(()=>{$t.current=null,Pn(Xn=>{let Ht=Xn;return It.current.forEach(kn=>{Ht=kn(Ht)}),Ht})})),It.current.push(Gn))}return[ln,un]}function We(){const{itemRef:Et}=De.useContext(ce.q3),ln=De.useRef({});function Pn($t,It){const fn=It&&typeof It=="object"&&It.ref,un=$t.join("_");return(ln.current.name!==un||ln.current.originRef!==fn)&&(ln.current.name=un,ln.current.originRef=fn,ln.current.ref=(0,at.sQ)(Et($t),fn)),ln.current.ref}return Pn}var Ke=$e(29194),Je=$e(34280),dt=$e(2738),Ct=$e(27382),ht=$e(37028);const Lt=Et=>{const{formItemCls:ln}=Et;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ln}-control`]:{display:"flex"}}}};var en=(0,xe.b)(["Form","item-item"],(Et,ln)=>{let{rootPrefixCls:Pn}=ln;const $t=je(Et,Pn);return[Lt($t)]}),Kt=Et=>{const{prefixCls:ln,status:Pn,wrapperCol:$t,children:It,errors:fn,warnings:un,_internalItemRender:Gn,extra:Xn,help:Ht,fieldId:kn,marginBottom:Wn,onErrorVisibleChanged:lr}=Et,on=`${ln}-item`,Mn=De.useContext(ce.q3),an=$t||Mn.wrapperCol||{},Sn=oe()(`${on}-control`,an.className),gn=De.useMemo(()=>Object.assign({},Mn),[Mn]);delete gn.labelCol,delete gn.wrapperCol;const yn=De.createElement("div",{className:`${on}-control-input`},De.createElement("div",{className:`${on}-control-input-content`},It)),On=De.useMemo(()=>({prefixCls:ln,status:Pn}),[ln,Pn]),Nn=Wn!==null||fn.length||un.length?De.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},De.createElement(ce.Rk.Provider,{value:On},De.createElement(et,{fieldId:kn,errors:fn,warnings:un,help:Ht,helpStatus:Pn,className:`${on}-explain-connected`,onVisibleChanged:lr})),!!Wn&&De.createElement("div",{style:{width:0,height:Wn}})):null,Fn={};kn&&(Fn.id=`${kn}_extra`);const zn=Xn?De.createElement("div",Object.assign({},Fn,{className:`${on}-extra`}),Xn):null,xr=Gn&&Gn.mark==="pro_table_render"&&Gn.render?Gn.render(Et,{input:yn,errorList:Nn,extra:zn}):De.createElement(De.Fragment,null,yn,Nn,zn);return De.createElement(ce.q3.Provider,{value:gn},De.createElement(ht.Z,Object.assign({},an,{className:Sn}),xr),De.createElement(en,{prefixCls:ln}))},Ut=$e(61485),rn=$e(31724),Ft=$e(9763),Xt=$e(6848),tn=function(Et,ln){var Pn={};for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&ln.indexOf($t)<0&&(Pn[$t]=Et[$t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,$t=Object.getOwnPropertySymbols(Et);It<$t.length;It++)ln.indexOf($t[It])<0&&Object.prototype.propertyIsEnumerable.call(Et,$t[It])&&(Pn[$t[It]]=Et[$t[It]]);return Pn};function dn(Et){return Et?typeof Et=="object"&&!De.isValidElement(Et)?Et:{title:Et}:null}var An=Et=>{let{prefixCls:ln,label:Pn,htmlFor:$t,labelCol:It,labelAlign:fn,colon:un,required:Gn,requiredMark:Xn,tooltip:Ht}=Et;var kn;const[Wn]=(0,Ft.Z)("Form"),{vertical:lr,labelAlign:on,labelCol:Mn,labelWrap:an,colon:Sn}=De.useContext(ce.q3);if(!Pn)return null;const gn=It||Mn||{},yn=fn||on,On=`${ln}-item-label`,Nn=oe()(On,yn==="left"&&`${On}-left`,gn.className,{[`${On}-wrap`]:!!an});let Fn=Pn;const zn=un===!0||Sn!==!1&&un!==!1;zn&&!lr&&typeof Pn=="string"&&Pn.trim()!==""&&(Fn=Pn.replace(/[:|:]\s*$/,""));const mn=dn(Ht);if(mn){const{icon:bn=De.createElement(Ut.Z,null)}=mn,Jn=tn(mn,["icon"]),sr=De.createElement(Xt.Z,Object.assign({},Jn),De.cloneElement(bn,{className:`${ln}-item-tooltip`,title:""}));Fn=De.createElement(De.Fragment,null,Fn,sr)}const Fr=Xn==="optional",Yr=typeof Xn=="function";Yr?Fn=Xn(Fn,{required:!!Gn}):Fr&&!Gn&&(Fn=De.createElement(De.Fragment,null,Fn,De.createElement("span",{className:`${ln}-item-optional`,title:""},(Wn==null?void 0:Wn.optional)||((kn=rn.Z.Form)===null||kn===void 0?void 0:kn.optional))));const Br=oe()({[`${ln}-item-required`]:Gn,[`${ln}-item-required-mark-optional`]:Fr||Yr,[`${ln}-item-no-colon`]:!zn});return De.createElement(ht.Z,Object.assign({},gn,{className:Nn}),De.createElement("label",{htmlFor:$t,className:Br,title:typeof Pn=="string"?Pn:""},Fn))},ar=$e(29679),tr=$e(19248),Tr=$e(96512),Vn=$e(58617);const Or={success:ar.Z,warning:Tr.Z,error:tr.Z,validating:Vn.Z};function Dr(Et){let{children:ln,errors:Pn,warnings:$t,hasFeedback:It,validateStatus:fn,prefixCls:un,meta:Gn,noStyle:Xn}=Et;const Ht=`${un}-item`,{feedbackIcons:kn}=De.useContext(ce.q3),Wn=yt(Pn,$t,Gn,null,!!It,fn),{isFormItemInput:lr,status:on}=De.useContext(ce.aM),Mn=De.useMemo(()=>{var an;let Sn;if(It){const On=It!==!0&&It.icons||kn,Nn=Wn&&((an=On==null?void 0:On({status:Wn,errors:Pn,warnings:$t}))===null||an===void 0?void 0:an[Wn]),Fn=Wn&&Or[Wn];Sn=Nn!==!1&&Fn?De.createElement("span",{className:oe()(`${Ht}-feedback-icon`,`${Ht}-feedback-icon-${Wn}`)},Nn||De.createElement(Fn,null)):null}let gn=!0,yn=Wn||"";return Xn&&(gn=lr,yn=(Wn!=null?Wn:on)||""),{status:yn,errors:Pn,warnings:$t,hasFeedback:!!It,feedbackIcon:Sn,isFormItemInput:gn}},[Wn,It,Xn,lr,on]);return De.createElement(ce.aM.Provider,{value:Mn},ln)}var Jr=function(Et,ln){var Pn={};for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&ln.indexOf($t)<0&&(Pn[$t]=Et[$t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,$t=Object.getOwnPropertySymbols(Et);It<$t.length;It++)ln.indexOf($t[It])<0&&Object.prototype.propertyIsEnumerable.call(Et,$t[It])&&(Pn[$t[It]]=Et[$t[It]]);return Pn};function ni(Et){const{prefixCls:ln,className:Pn,rootClassName:$t,style:It,help:fn,errors:un,warnings:Gn,validateStatus:Xn,meta:Ht,hasFeedback:kn,hidden:Wn,children:lr,fieldId:on,required:Mn,isRequired:an,onSubItemMetaChange:Sn}=Et,gn=Jr(Et,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),yn=`${ln}-item`,{requiredMark:On}=De.useContext(ce.q3),Nn=De.useRef(null),Fn=we(un),zn=we(Gn),xr=fn!=null,mn=!!(xr||un.length||Gn.length),Fr=!!Nn.current&&(0,Ke.Z)(Nn.current),[Yr,Br]=De.useState(null);(0,Je.Z)(()=>{if(mn&&Nn.current){const mr=getComputedStyle(Nn.current);Br(parseInt(mr.marginBottom,10))}},[mn,Fr]);const bn=mr=>{mr||Br(null)},sr=function(){let mr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const $r=mr?Fn:Ht.errors,ri=mr?zn:Ht.warnings;return yt($r,ri,Ht,"",!!kn,Xn)}(),Sr=oe()(yn,Pn,$t,{[`${yn}-with-help`]:xr||Fn.length||zn.length,[`${yn}-has-feedback`]:sr&&kn,[`${yn}-has-success`]:sr==="success",[`${yn}-has-warning`]:sr==="warning",[`${yn}-has-error`]:sr==="error",[`${yn}-is-validating`]:sr==="validating",[`${yn}-hidden`]:Wn});return De.createElement("div",{className:Sr,style:It,ref:Nn},De.createElement(Ct.Z,Object.assign({className:`${yn}-row`},(0,dt.Z)(gn,["_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"])),De.createElement(An,Object.assign({htmlFor:on},Et,{requiredMark:On,required:Mn!=null?Mn:an,prefixCls:ln})),De.createElement(Kt,Object.assign({},Et,Ht,{errors:Fn,warnings:zn,prefixCls:ln,status:sr,help:fn,marginBottom:Yr,onErrorVisibleChanged:bn}),De.createElement(ce.qI.Provider,{value:Sn},De.createElement(Dr,{prefixCls:ln,meta:Ht,errors:Ht.errors,warnings:Ht.warnings,hasFeedback:kn,validateStatus:sr},lr)))),!!Yr&&De.createElement("div",{className:`${yn}-margin-offset`,style:{marginBottom:-Yr}}))}const Nr="__SPLIT__",di=null,Ir=De.memo(Et=>{let{children:ln}=Et;return ln},(Et,ln)=>Et.value===ln.value&&Et.update===ln.update&&Et.childProps.length===ln.childProps.length&&Et.childProps.every((Pn,$t)=>Pn===ln.childProps[$t]));function ot(Et){return Et!=null}function Ci(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function xi(Et){const{name:ln,noStyle:Pn,className:$t,dependencies:It,prefixCls:fn,shouldUpdate:un,rules:Gn,children:Xn,required:Ht,label:kn,messageVariables:Wn,trigger:lr="onChange",validateTrigger:on,hidden:Mn,help:an}=Et,{getPrefixCls:Sn}=De.useContext(Xe.E_),{name:gn}=De.useContext(ce.q3),yn=Te(Xn),On=typeof yn=="function",Nn=De.useContext(ce.qI),{validateTrigger:Fn}=De.useContext(ze.FieldContext),zn=on!==void 0?on:Fn,xr=ot(ln),mn=Sn("form",fn),[Fr,Yr]=ke(mn),Br=De.useContext(ze.ListContext),bn=De.useRef(),[Jn,sr]=He({}),[Sr,mr]=(0,wt.Z)(()=>Ci()),$r=xn=>{const zr=Br==null?void 0:Br.getKey(xn.name);if(mr(xn.destroy?Ci():xn,!0),Pn&&an!==!1&&Nn){let $i=xn.name;if(xn.destroy)$i=bn.current||$i;else if(zr!==void 0){const[Mi,yo]=zr;$i=[Mi].concat((0,tt.Z)(yo)),bn.current=$i}Nn(xn,$i)}},ri=(xn,zr)=>{sr($i=>{const Mi=Object.assign({},$i),no=[].concat((0,tt.Z)(xn.name.slice(0,-1)),(0,tt.Z)(zr)).join(Nr);return xn.destroy?delete Mi[no]:Mi[no]=xn,Mi})},[Rr,br]=De.useMemo(()=>{const xn=(0,tt.Z)(Sr.errors),zr=(0,tt.Z)(Sr.warnings);return Object.values(Jn).forEach($i=>{xn.push.apply(xn,(0,tt.Z)($i.errors||[])),zr.push.apply(zr,(0,tt.Z)($i.warnings||[]))}),[xn,zr]},[Jn,Sr.errors,Sr.warnings]),ur=We();function vn(xn,zr,$i){return Pn&&!Mn?De.createElement(Dr,{prefixCls:mn,hasFeedback:Et.hasFeedback,validateStatus:Et.validateStatus,meta:Sr,errors:Rr,warnings:br,noStyle:!0},xn):De.createElement(ni,Object.assign({key:"row"},Et,{className:oe()($t,Yr),prefixCls:mn,fieldId:zr,isRequired:$i,errors:Rr,warnings:br,meta:Sr,onSubItemMetaChange:ri}),xn)}if(!xr&&!On&&!It)return Fr(vn(yn));let cr={};return typeof kn=="string"?cr.label=kn:ln&&(cr.label=String(ln)),Wn&&(cr=Object.assign(Object.assign({},cr),Wn)),Fr(De.createElement(ze.Field,Object.assign({},Et,{messageVariables:cr,trigger:lr,validateTrigger:zn,onMetaChange:$r}),(xn,zr,$i)=>{const Mi=pt(ln).length&&zr?zr.name:[],yo=xt(Mi,gn),no=Ht!==void 0?Ht:!!(Gn&&Gn.some(wi=>{if(wi&&typeof wi=="object"&&wi.required&&!wi.warningOnly)return!0;if(typeof wi=="function"){const vi=wi($i);return vi&&vi.required&&!vi.warningOnly}return!1})),Wr=Object.assign({},xn);let Hr=null;if(Array.isArray(yn)&&xr)Hr=yn;else if(!(On&&(!(un||It)||xr))){if(!(It&&!On&&!xr))if((0,Ye.l$)(yn)){const wi=Object.assign(Object.assign({},yn.props),Wr);if(wi.id||(wi.id=yo),an||Rr.length>0||br.length>0||Et.extra){const kt=[];(an||Rr.length>0)&&kt.push(`${yo}_help`),Et.extra&&kt.push(`${yo}_extra`),wi["aria-describedby"]=kt.join(" ")}Rr.length>0&&(wi["aria-invalid"]="true"),no&&(wi["aria-required"]="true"),(0,at.Yr)(yn)&&(wi.ref=ur(Mi,yn)),new Set([].concat((0,tt.Z)(pt(lr)),(0,tt.Z)(pt(zn)))).forEach(kt=>{wi[kt]=function(){for(var Fi,Ki,gi,oo,So,Qr=arguments.length,ii=new Array(Qr),Oi=0;Oi<Qr;Oi++)ii[Oi]=arguments[Oi];(gi=Wr[kt])===null||gi===void 0||(Fi=gi).call.apply(Fi,[Wr].concat(ii)),(So=(oo=yn.props)[kt])===null||So===void 0||(Ki=So).call.apply(Ki,[oo].concat(ii))}});const fr=[wi["aria-required"],wi["aria-invalid"],wi["aria-describedby"]];Hr=De.createElement(Ir,{value:Wr[Et.valuePropName||"value"],update:yn,childProps:fr},(0,Ye.Tm)(yn,wi))}else On&&(un||It)&&!xr?Hr=yn($i):Hr=yn}return vn(Hr,yo,no)}))}const pr=xi;pr.useStatus=Ze;var Pr=pr,Ar=function(Et,ln){var Pn={};for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&ln.indexOf($t)<0&&(Pn[$t]=Et[$t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,$t=Object.getOwnPropertySymbols(Et);It<$t.length;It++)ln.indexOf($t[It])<0&&Object.prototype.propertyIsEnumerable.call(Et,$t[It])&&(Pn[$t[It]]=Et[$t[It]]);return Pn},nr=Et=>{var{prefixCls:ln,children:Pn}=Et,$t=Ar(Et,["prefixCls","children"]);const{getPrefixCls:It}=De.useContext(Xe.E_),fn=It("form",ln),un=De.useMemo(()=>({prefixCls:fn,status:"error"}),[fn]);return De.createElement(ze.List,Object.assign({},$t),(Gn,Xn,Ht)=>De.createElement(ce.Rk.Provider,{value:un},Pn(Gn.map(kn=>Object.assign(Object.assign({},kn),{fieldKey:kn.key})),Xn,{errors:Ht.errors,warnings:Ht.warnings})))};function or(){const{form:Et}=(0,De.useContext)(ce.q3);return Et}const qt=St;qt.Item=Pr,qt.List=nr,qt.ErrorList=et,qt.useForm=gt,qt.useFormInstance=or,qt.useWatch=ze.useWatch,qt.Provider=ce.RV,qt.create=()=>{};var Jt=qt},8628:function(Rn,wn,$e){"use strict";var tt=$e(59301),Pt=$e(34280),oe=$e(56762),Ge=$e(69507);function De(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ce=(0,tt.useRef)({}),we=(0,oe.Z)(),Le=(0,Ge.ZP)();return(0,Pt.Z)(()=>{const Se=Le.subscribe(Oe=>{ce.current=Oe,me&&we()});return()=>Le.unsubscribe(Se)},[]),ce.current}wn.Z=De},9432:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return le},n:function(){return ae}});var tt=$e(19248),Pt=$e(92310),oe=$e.n(Pt),Ge=$e(93681),De=$e(8654),me=$e(59301),ce=$e(19080),we=$e(36355),Le=$e(1684),Se=$e(19716),Oe=$e(32441),ve=$e(33234),xe=$e(59412),fe=$e(9937);function z(ue){return!!(ue.prefix||ue.suffix||ue.allowClear)}var ee=function(ue,pe){var be={};for(var Ce in ue)Object.prototype.hasOwnProperty.call(ue,Ce)&&pe.indexOf(Ce)<0&&(be[Ce]=ue[Ce]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ce=Object.getOwnPropertySymbols(ue);Fe<Ce.length;Fe++)pe.indexOf(Ce[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ce[Fe])&&(be[Ce[Fe]]=ue[Ce[Fe]]);return be};function ae(ue,pe){if(!ue)return;ue.focus(pe);const{cursor:be}=pe||{};if(be){const Ce=ue.value.length;switch(be){case"start":ue.setSelectionRange(0,0);break;case"end":ue.setSelectionRange(Ce,Ce);break;default:ue.setSelectionRange(0,Ce);break}}}var le=(0,me.forwardRef)((ue,pe)=>{var be;const{prefixCls:Ce,bordered:Fe=!0,status:je,size:ke,disabled:Ae,onBlur:Be,onFocus:_e,suffix:et,allowClear:ze,addonAfter:Xe,addonBefore:Qe,className:lt,style:ct,styles:vt,rootClassName:nt,onChange:it,classNames:pt}=ue,xt=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:yt,direction:ft,input:gt}=me.useContext(we.E_),mt=yt("input",Ce),Nt=(0,me.useRef)(null),[Tt,zt]=(0,fe.ZP)(mt),{compactSize:St,compactItemClassnames:wt}=(0,ve.ri)(mt,ft),at=(0,Se.Z)(en=>{var Vt;return(Vt=ke!=null?ke:St)!==null&&Vt!==void 0?Vt:en}),Ye=me.useContext(Le.Z),Pe=Ae!=null?Ae:Ye,{status:Te,hasFeedback:Ve,feedbackIcon:Ze}=(0,me.useContext)(Oe.aM),Ee=(0,ce.F)(Te,je),He=z(ue)||!!Ve,We=(0,me.useRef)(He);(0,me.useEffect)(()=>{var en;He&&We.current,We.current=He},[He]);const Ke=(0,xe.Z)(Nt,!0),Je=en=>{Ke(),Be==null||Be(en)},dt=en=>{Ke(),_e==null||_e(en)},Ct=en=>{Ke(),it==null||it(en)},ht=(Ve||et)&&me.createElement(me.Fragment,null,et,Ve&&Ze);let Lt;return typeof ze=="object"&&(ze!=null&&ze.clearIcon)?Lt=ze:ze&&(Lt={clearIcon:me.createElement(tt.Z,null)}),Tt(me.createElement(Ge.default,Object.assign({ref:(0,De.sQ)(pe,Nt),prefixCls:mt,autoComplete:gt==null?void 0:gt.autoComplete},xt,{disabled:Pe,onBlur:Je,onFocus:dt,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ct),styles:Object.assign(Object.assign({},gt==null?void 0:gt.styles),vt),suffix:ht,allowClear:Lt,className:oe()(lt,nt,wt,gt==null?void 0:gt.className),onChange:Ct,addonAfter:Xe&&me.createElement(ve.BR,null,me.createElement(Oe.Ux,{override:!0,status:!0},Xe)),addonBefore:Qe&&me.createElement(ve.BR,null,me.createElement(Oe.Ux,{override:!0,status:!0},Qe)),classNames:Object.assign(Object.assign(Object.assign({},pt),gt==null?void 0:gt.classNames),{input:oe()({[`${mt}-sm`]:at==="small",[`${mt}-lg`]:at==="large",[`${mt}-rtl`]:ft==="rtl",[`${mt}-borderless`]:!Fe},!He&&(0,ce.Z)(mt,Ee),pt==null?void 0:pt.input,(be=gt==null?void 0:gt.classNames)===null||be===void 0?void 0:be.input,zt)}),classes:{affixWrapper:oe()({[`${mt}-affix-wrapper-sm`]:at==="small",[`${mt}-affix-wrapper-lg`]:at==="large",[`${mt}-affix-wrapper-rtl`]:ft==="rtl",[`${mt}-affix-wrapper-borderless`]:!Fe},(0,ce.Z)(`${mt}-affix-wrapper`,Ee,Ve),zt),wrapper:oe()({[`${mt}-group-rtl`]:ft==="rtl"},zt),group:oe()({[`${mt}-group-wrapper-sm`]:at==="small",[`${mt}-group-wrapper-lg`]:at==="large",[`${mt}-group-wrapper-rtl`]:ft==="rtl",[`${mt}-group-wrapper-disabled`]:Pe},(0,ce.Z)(`${mt}-group-wrapper`,Ee,Ve),zt)}})))})},1643:function(Rn,wn,$e){"use strict";var tt=$e(19248),Pt=$e(92310),oe=$e.n(Pt),Ge=$e(9296),De=$e(59301),me=$e(19080),ce=$e(36355),we=$e(1684),Le=$e(19716),Se=$e(32441),Oe=$e(9432),ve=$e(9937),xe=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 fe=(0,De.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:be,showCount:Ce,classNames:Fe,rootClassName:je,className:ke}=z,Ae=xe(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Be,direction:_e}=De.useContext(ce.E_),et=(0,Le.Z)(le),ze=De.useContext(we.Z),Xe=ue!=null?ue:ze,{status:Qe,hasFeedback:lt,feedbackIcon:ct}=De.useContext(Se.aM),vt=(0,me.F)(Qe,pe),nt=De.useRef(null);De.useImperativeHandle(ee,()=>{var ft;return{resizableTextArea:(ft=nt.current)===null||ft===void 0?void 0:ft.resizableTextArea,focus:gt=>{var mt,Nt;(0,Oe.n)((Nt=(mt=nt.current)===null||mt===void 0?void 0:mt.resizableTextArea)===null||Nt===void 0?void 0:Nt.textArea,gt)},blur:()=>{var gt;return(gt=nt.current)===null||gt===void 0?void 0:gt.blur()}}});const it=Be("input",ae);let pt;typeof be=="object"&&(be!=null&&be.clearIcon)?pt=be:be&&(pt={clearIcon:De.createElement(tt.Z,null)});const[xt,yt]=(0,ve.ZP)(it);return xt(De.createElement(Ge.default,Object.assign({},Ae,{disabled:Xe,allowClear:pt,className:oe()(ke,je),classes:{affixWrapper:oe()(`${it}-textarea-affix-wrapper`,{[`${it}-affix-wrapper-rtl`]:_e==="rtl",[`${it}-affix-wrapper-borderless`]:!re,[`${it}-affix-wrapper-sm`]:et==="small",[`${it}-affix-wrapper-lg`]:et==="large",[`${it}-textarea-show-count`]:Ce},(0,me.Z)(`${it}-affix-wrapper`,vt),yt)},classNames:Object.assign(Object.assign({},Fe),{textarea:oe()({[`${it}-borderless`]:!re,[`${it}-sm`]:et==="small",[`${it}-lg`]:et==="large"},(0,me.Z)(it,vt),yt,Fe==null?void 0:Fe.textarea)}),prefixCls:it,suffix:lt&&De.createElement("span",{className:`${it}-textarea-suffix`},ct),showCount:Ce,ref:nt})))});wn.Z=fe},59412:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Pt}});var tt=$e(59301);function Pt(oe,Ge){const De=(0,tt.useRef)([]),me=()=>{De.current.push(setTimeout(()=>{var ce,we,Le,Se;!((ce=oe.current)===null||ce===void 0)&&ce.input&&((we=oe.current)===null||we===void 0?void 0:we.input.getAttribute("type"))==="password"&&(!((Le=oe.current)===null||Le===void 0)&&Le.input.hasAttribute("value"))&&((Se=oe.current)===null||Se===void 0||Se.input.removeAttribute("value"))}))};return(0,tt.useEffect)(()=>(Ge&&me(),()=>De.current.forEach(ce=>{ce&&clearTimeout(ce)})),[]),me}},92832:function(Rn,wn,$e){"use strict";$e.d(wn,{default:function(){return et}});var tt=$e(92310),Pt=$e.n(tt),oe=$e(59301),Ge=$e(36355),De=$e(32441),me=$e(9937),we=ze=>{const{getPrefixCls:Xe,direction:Qe}=(0,oe.useContext)(Ge.E_),{prefixCls:lt,className:ct}=ze,vt=Xe("input-group",lt),nt=Xe("input"),[it,pt]=(0,me.ZP)(nt),xt=Pt()(vt,{[`${vt}-lg`]:ze.size==="large",[`${vt}-sm`]:ze.size==="small",[`${vt}-compact`]:ze.compact,[`${vt}-rtl`]:Qe==="rtl"},pt,ct),yt=(0,oe.useContext)(De.aM),ft=(0,oe.useMemo)(()=>Object.assign(Object.assign({},yt),{isFormItemInput:!1}),[yt]);return it(oe.createElement("span",{className:xt,style:ze.style,onMouseEnter:ze.onMouseEnter,onMouseLeave:ze.onMouseLeave,onFocus:ze.onFocus,onBlur:ze.onBlur},oe.createElement(De.aM.Provider,{value:ft},ze.children)))},Le=$e(9432),Se=$e(73331),Oe=$e(15277),ve=$e(2738),xe=$e(8654),fe=$e(59412),z=function(ze,Xe){var Qe={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Xe.indexOf(lt)<0&&(Qe[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,lt=Object.getOwnPropertySymbols(ze);ct<lt.length;ct++)Xe.indexOf(lt[ct])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[ct])&&(Qe[lt[ct]]=ze[lt[ct]]);return Qe};const ee=ze=>ze?oe.createElement(Oe.Z,null):oe.createElement(Se.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=oe.forwardRef((ze,Xe)=>{const{visibilityToggle:Qe=!0}=ze,lt=typeof Qe=="object"&&Qe.visible!==void 0,[ct,vt]=(0,oe.useState)(()=>lt?Qe.visible:!1),nt=(0,oe.useRef)(null);oe.useEffect(()=>{lt&&vt(Qe.visible)},[lt,Qe]);const it=(0,fe.Z)(nt),pt=()=>{const{disabled:Pe}=ze;Pe||(ct&&it(),vt(Te=>{var Ve;const Ze=!Te;return typeof Qe=="object"&&((Ve=Qe.onVisibleChange)===null||Ve===void 0||Ve.call(Qe,Ze)),Ze}))},xt=Pe=>{const{action:Te="click",iconRender:Ve=ee}=ze,Ze=ae[Te]||"",Ee=Ve(ct),He={[Ze]:pt,className:`${Pe}-icon`,key:"passwordIcon",onMouseDown:We=>{We.preventDefault()},onMouseUp:We=>{We.preventDefault()}};return oe.cloneElement(oe.isValidElement(Ee)?Ee:oe.createElement("span",null,Ee),He)},{className:yt,prefixCls:ft,inputPrefixCls:gt,size:mt}=ze,Nt=z(ze,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Tt}=oe.useContext(Ge.E_),zt=Tt("input",gt),St=Tt("input-password",ft),wt=Qe&&xt(St),at=Pt()(St,yt,{[`${St}-${mt}`]:!!mt}),Ye=Object.assign(Object.assign({},(0,ve.Z)(Nt,["suffix","iconRender","visibilityToggle"])),{type:ct?"text":"password",className:at,prefixCls:zt,suffix:wt});return mt&&(Ye.size=mt),oe.createElement(Le.Z,Object.assign({ref:(0,xe.sQ)(Xe,nt)},Ye))}),ue=$e(47472),pe=$e(92343),be=$e(3113),Ce=$e(19716),Fe=$e(33234),je=function(ze,Xe){var Qe={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Xe.indexOf(lt)<0&&(Qe[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,lt=Object.getOwnPropertySymbols(ze);ct<lt.length;ct++)Xe.indexOf(lt[ct])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[ct])&&(Qe[lt[ct]]=ze[lt[ct]]);return Qe},Ae=oe.forwardRef((ze,Xe)=>{const{prefixCls:Qe,inputPrefixCls:lt,className:ct,size:vt,suffix:nt,enterButton:it=!1,addonAfter:pt,loading:xt,disabled:yt,onSearch:ft,onChange:gt,onCompositionStart:mt,onCompositionEnd:Nt}=ze,Tt=je(ze,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:zt,direction:St}=oe.useContext(Ge.E_),wt=oe.useRef(!1),at=zt("input-search",Qe),Ye=zt("input",lt),{compactSize:Pe}=(0,Fe.ri)(at,St),Te=(0,Ce.Z)(Kt=>{var Ut;return(Ut=vt!=null?vt:Pe)!==null&&Ut!==void 0?Ut:Kt}),Ve=oe.useRef(null),Ze=Kt=>{Kt&&Kt.target&&Kt.type==="click"&&ft&&ft(Kt.target.value,Kt,{source:"clear"}),gt&>(Kt)},Ee=Kt=>{var Ut;document.activeElement===((Ut=Ve.current)===null||Ut===void 0?void 0:Ut.input)&&Kt.preventDefault()},He=Kt=>{var Ut,rn;ft&&ft((rn=(Ut=Ve.current)===null||Ut===void 0?void 0:Ut.input)===null||rn===void 0?void 0:rn.value,Kt,{source:"input"})},We=Kt=>{wt.current||xt||He(Kt)},Ke=typeof it=="boolean"?oe.createElement(ue.Z,null):null,Je=`${at}-button`;let dt;const Ct=it||{},ht=Ct.type&&Ct.type.__ANT_BUTTON===!0;ht||Ct.type==="button"?dt=(0,pe.Tm)(Ct,Object.assign({onMouseDown:Ee,onClick:Kt=>{var Ut,rn;(rn=(Ut=Ct==null?void 0:Ct.props)===null||Ut===void 0?void 0:Ut.onClick)===null||rn===void 0||rn.call(Ut,Kt),He(Kt)},key:"enterButton"},ht?{className:Je,size:Te}:{})):dt=oe.createElement(be.ZP,{className:Je,type:it?"primary":void 0,size:Te,disabled:yt,key:"enterButton",onMouseDown:Ee,onClick:He,loading:xt,icon:Ke},it),pt&&(dt=[dt,(0,pe.Tm)(pt,{key:"addonAfter"})]);const Lt=Pt()(at,{[`${at}-rtl`]:St==="rtl",[`${at}-${Te}`]:!!Te,[`${at}-with-button`]:!!it},ct),en=Kt=>{wt.current=!0,mt==null||mt(Kt)},Vt=Kt=>{wt.current=!1,Nt==null||Nt(Kt)};return oe.createElement(Le.Z,Object.assign({ref:(0,xe.sQ)(Ve,Xe),onPressEnter:We},Tt,{size:Te,onCompositionStart:en,onCompositionEnd:Vt,prefixCls:Ye,addonAfter:dt,suffix:nt,onChange:Ze,className:Lt,disabled:yt}))}),Be=$e(1643);const _e=Le.Z;_e.Group=we,_e.Search=Ae,_e.TextArea=Be.Z,_e.Password=le;var et=_e},45818:function(Rn,wn,$e){"use strict";$e.d(wn,{D:function(){return ue},Z:function(){return Ce}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(je,ke){return Pt.createElement(De.Z,(0,tt.Z)({},je,{ref:ke,icon:Ge}))},ce=Pt.forwardRef(me),we=ce,Le=$e(33853),Se=$e(38819),Oe=$e(92310),ve=$e.n(Oe),xe=$e(2738),z=Fe=>!isNaN(parseFloat(Fe))&&isFinite(Fe),ee=$e(36355),ae=$e(84966),re=function(Fe,je){var ke={};for(var Ae in Fe)Object.prototype.hasOwnProperty.call(Fe,Ae)&&je.indexOf(Ae)<0&&(ke[Ae]=Fe[Ae]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ae=Object.getOwnPropertySymbols(Fe);Be<Ae.length;Be++)je.indexOf(Ae[Be])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ae[Be])&&(ke[Ae[Be]]=Fe[Ae[Be]]);return ke};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=Pt.createContext({}),pe=(()=>{let Fe=0;return function(){let je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Fe+=1,`${je}${Fe}`}})();var Ce=Pt.forwardRef((Fe,je)=>{const{prefixCls:ke,className:Ae,trigger:Be,children:_e,defaultCollapsed:et=!1,theme:ze="dark",style:Xe={},collapsible:Qe=!1,reverseArrow:lt=!1,width:ct=200,collapsedWidth:vt=80,zeroWidthTriggerStyle:nt,breakpoint:it,onCollapse:pt,onBreakpoint:xt}=Fe,yt=re(Fe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ft}=(0,Pt.useContext)(ae.Gs),[gt,mt]=(0,Pt.useState)("collapsed"in Fe?Fe.collapsed:et),[Nt,Tt]=(0,Pt.useState)(!1);(0,Pt.useEffect)(()=>{"collapsed"in Fe&&mt(Fe.collapsed)},[Fe.collapsed]);const zt=(Te,Ve)=>{"collapsed"in Fe||mt(Te),pt==null||pt(Te,Ve)},St=(0,Pt.useRef)();St.current=Te=>{Tt(Te.matches),xt==null||xt(Te.matches),gt!==Te.matches&&zt(Te.matches,"responsive")},(0,Pt.useEffect)(()=>{function Te(Ze){return St.current(Ze)}let Ve;if(typeof window!="undefined"){const{matchMedia:Ze}=window;if(Ze&&it&&it in le){Ve=Ze(`(max-width: ${le[it]})`);try{Ve.addEventListener("change",Te)}catch(Ee){Ve.addListener(Te)}Te(Ve)}}return()=>{try{Ve==null||Ve.removeEventListener("change",Te)}catch(Ze){Ve==null||Ve.removeListener(Te)}}},[it]),(0,Pt.useEffect)(()=>{const Te=pe("ant-sider-");return ft.addSider(Te),()=>ft.removeSider(Te)},[]);const wt=()=>{zt(!gt,"clickTrigger")},{getPrefixCls:at}=(0,Pt.useContext)(ee.E_),Ye=()=>{const Te=at("layout-sider",ke),Ve=(0,xe.Z)(yt,["collapsed"]),Ze=gt?vt:ct,Ee=z(Ze)?`${Ze}px`:String(Ze),He=parseFloat(String(vt||0))===0?Pt.createElement("span",{onClick:wt,className:ve()(`${Te}-zero-width-trigger`,`${Te}-zero-width-trigger-${lt?"right":"left"}`),style:nt},Be||Pt.createElement(we,null)):null,Je={expanded:lt?Pt.createElement(Se.Z,null):Pt.createElement(Le.Z,null),collapsed:lt?Pt.createElement(Le.Z,null):Pt.createElement(Se.Z,null)}[gt?"collapsed":"expanded"],dt=Be!==null?He||Pt.createElement("div",{className:`${Te}-trigger`,onClick:wt,style:{width:Ee}},Be||Je):null,Ct=Object.assign(Object.assign({},Xe),{flex:`0 0 ${Ee}`,maxWidth:Ee,minWidth:Ee,width:Ee}),ht=ve()(Te,`${Te}-${ze}`,{[`${Te}-collapsed`]:!!gt,[`${Te}-has-trigger`]:Qe&&Be!==null&&!He,[`${Te}-below`]:!!Nt,[`${Te}-zero-width`]:parseFloat(Ee)===0},Ae);return Pt.createElement("aside",Object.assign({className:ht},Ve,{style:Ct,ref:je}),Pt.createElement("div",{className:`${Te}-children`},_e),Qe||Nt&&He?dt:null)},Pe=Pt.useMemo(()=>({siderCollapsed:gt}),[gt]);return Pt.createElement(ue.Provider,{value:Pe},Ye())})},84966:function(Rn,wn,$e){"use strict";$e.d(wn,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return xe},ZP:function(){return pe}});var tt=$e(19127),Pt=$e(92310),oe=$e.n(Pt),Ge=$e(2738),De=$e(59301),me=$e(36355),ce=$e(83116),Le=be=>{const{componentCls:Ce,bodyBg:Fe,lightSiderBg:je,lightTriggerBg:ke,lightTriggerColor:Ae}=be;return{[`${Ce}-sider-light`]:{background:je,[`${Ce}-sider-trigger`]:{color:Ae,background:ke},[`${Ce}-sider-zero-width-trigger`]:{color:Ae,background:ke,border:`1px solid ${Fe}`,borderInlineStart:0}}}};const Se=be=>{const{antCls:Ce,componentCls:Fe,colorText:je,triggerColor:ke,footerBg:Ae,triggerBg:Be,headerHeight:_e,headerPadding:et,headerColor:ze,footerPadding:Xe,triggerHeight:Qe,zeroTriggerHeight:lt,zeroTriggerWidth:ct,motionDurationMid:vt,motionDurationSlow:nt,fontSize:it,borderRadius:pt,bodyBg:xt,headerBg:yt,siderBg:ft}=be;return{[Fe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:xt,"&, *":{boxSizing:"border-box"},[`&${Fe}-has-sider`]:{flexDirection:"row",[`> ${Fe}, > ${Fe}-content`]:{width:0}},[`${Fe}-header, &${Fe}-footer`]:{flex:"0 0 auto"},[`${Fe}-sider`]:{position:"relative",minWidth:0,background:ft,transition:`all ${vt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Qe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Qe,color:ke,lineHeight:`${Qe}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${vt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:_e,insetInlineEnd:-ct,zIndex:1,width:ct,height:lt,color:ke,fontSize:be.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ft,borderStartStartRadius:0,borderStartEndRadius:pt,borderEndEndRadius:pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${nt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${nt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ct,borderStartStartRadius:pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pt}}}}},Le(be)),{"&-rtl":{direction:"rtl"}}),[`${Fe}-header`]:{height:_e,padding:et,color:ze,lineHeight:`${_e}px`,background:yt,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${Fe}-footer`]:{padding:Xe,color:je,fontSize:it,background:Ae},[`${Fe}-content`]:{flex:"auto",minHeight:0}}};var Oe=(0,ce.Z)("Layout",be=>[Se(be)],be=>{const{colorBgLayout:Ce,controlHeight:Fe,controlHeightLG:je,colorText:ke,controlHeightSM:Ae,marginXXS:Be,colorTextLightSolid:_e,colorBgContainer:et}=be,ze=je*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:Fe*2,headerPadding:`0 ${ze}px`,headerColor:ke,footerPadding:`${Ae}px ${ze}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:je+Be*2,triggerBg:"#002140",triggerColor:_e,zeroTriggerWidth:je,zeroTriggerHeight:je,lightSiderBg:et,lightTriggerBg:et,lightTriggerColor:ke}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ve=function(be,Ce){var Fe={};for(var je in be)Object.prototype.hasOwnProperty.call(be,je)&&Ce.indexOf(je)<0&&(Fe[je]=be[je]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,je=Object.getOwnPropertySymbols(be);ke<je.length;ke++)Ce.indexOf(je[ke])<0&&Object.prototype.propertyIsEnumerable.call(be,je[ke])&&(Fe[je[ke]]=be[je[ke]]);return Fe};const xe=De.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function fe(be){let{suffixCls:Ce,tagName:Fe,displayName:je}=be;return ke=>De.forwardRef((Be,_e)=>De.createElement(ke,Object.assign({ref:_e,suffixCls:Ce,tagName:Fe},Be)))}const z=De.forwardRef((be,Ce)=>{const{prefixCls:Fe,suffixCls:je,className:ke,tagName:Ae}=be,Be=ve(be,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:_e}=De.useContext(me.E_),et=_e("layout",Fe),[ze,Xe]=Oe(et),Qe=je?`${et}-${je}`:et;return ze(De.createElement(Ae,Object.assign({className:oe()(Fe||Qe,ke,Xe),ref:Ce},Be)))}),ee=De.forwardRef((be,Ce)=>{const{direction:Fe}=De.useContext(me.E_),[je,ke]=De.useState([]),{prefixCls:Ae,className:Be,rootClassName:_e,children:et,hasSider:ze,tagName:Xe,style:Qe}=be,lt=ve(be,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ct=(0,Ge.Z)(lt,["suffixCls"]),{getPrefixCls:vt,layout:nt}=De.useContext(me.E_),it=vt("layout",Ae),[pt,xt]=Oe(it),yt=oe()(it,{[`${it}-has-sider`]:typeof ze=="boolean"?ze:je.length>0,[`${it}-rtl`]:Fe==="rtl"},nt==null?void 0:nt.className,Be,_e,xt),ft=De.useMemo(()=>({siderHook:{addSider:gt=>{ke(mt=>[].concat((0,tt.Z)(mt),[gt]))},removeSider:gt=>{ke(mt=>mt.filter(Nt=>Nt!==gt))}}}),[]);return pt(De.createElement(xe.Provider,{value:ft},De.createElement(Xe,Object.assign({ref:Ce,className:yt,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),Qe)},ct),et)))}),ae=fe({tagName:"div",displayName:"Layout"})(ee),re=fe({suffixCls:"header",tagName:"header",displayName:"Header"})(z),le=fe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(z),ue=fe({suffixCls:"content",tagName:"main",displayName:"Content"})(z);var pe=ae},40875:function(Rn,wn,$e){"use strict";$e.d(wn,{J:function(){return me}});var tt=$e(59301),Pt=$e(33234),oe=$e(70425),Ge=function(ce,we){var Le={};for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&we.indexOf(Se)<0&&(Le[Se]=ce[Se]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Se=Object.getOwnPropertySymbols(ce);Oe<Se.length;Oe++)we.indexOf(Se[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ce,Se[Oe])&&(Le[Se[Oe]]=ce[Se[Oe]]);return Le};const De=tt.createContext(null),me=tt.forwardRef((ce,we)=>{const{children:Le}=ce,Se=Ge(ce,["children"]),Oe=tt.useContext(De),ve=tt.useMemo(()=>Object.assign(Object.assign({},Oe),Se),[Oe,Se.prefixCls,Se.mode,Se.selectable]);return tt.createElement(De.Provider,{value:ve},tt.createElement(Pt.BR,null,(0,oe.supportNodeRef)(Le)?tt.cloneElement(Le,{ref:we}):Le))});wn.Z=De},20834:function(Rn,wn,$e){"use strict";$e.d(wn,{default:function(){return Pe}});var tt=$e(15285),Pt=$e(59301),oe=$e(45818),Ge=$e(92310),De=$e.n(Ge),me=$e(36355),ce=function(Te,Ve){var Ze={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&Ve.indexOf(Ee)<0&&(Ze[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Ee=Object.getOwnPropertySymbols(Te);He<Ee.length;He++)Ve.indexOf(Ee[He])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[He])&&(Ze[Ee[He]]=Te[Ee[He]]);return Ze},Le=Te=>{const{prefixCls:Ve,className:Ze,dashed:Ee}=Te,He=ce(Te,["prefixCls","className","dashed"]),{getPrefixCls:We}=Pt.useContext(me.E_),Ke=We("menu",Ve),Je=De()({[`${Ke}-item-divider-dashed`]:!!Ee},Ze);return Pt.createElement(tt.iz,Object.assign({className:Je},He))},Se=$e(11592),Oe=$e(2738),ve=$e(6848),xe=$e(92343),z=(0,Pt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=Te=>{var Ve;const{className:Ze,children:Ee,icon:He,title:We,danger:Ke}=Te,{prefixCls:Je,firstLevel:dt,direction:Ct,disableMenuItemTitleTooltip:ht,inlineCollapsed:Lt}=Pt.useContext(z),en=Xt=>{const tn=Pt.createElement("span",{className:`${Je}-title-content`},Ee);return(!He||(0,xe.l$)(Ee)&&Ee.type==="span")&&Ee&&Xt&&dt&&typeof Ee=="string"?Pt.createElement("div",{className:`${Je}-inline-collapsed-noicon`},Ee.charAt(0)):tn},{siderCollapsed:Vt}=Pt.useContext(oe.D);let Kt=We;typeof We=="undefined"?Kt=dt?Ee:"":We===!1&&(Kt="");const Ut={title:Kt};!Vt&&!Lt&&(Ut.title=null,Ut.open=!1);const rn=(0,Se.Z)(Ee).length;let Ft=Pt.createElement(tt.ck,Object.assign({},(0,Oe.Z)(Te,["title","icon","danger"]),{className:De()({[`${Je}-item-danger`]:Ke,[`${Je}-item-only-child`]:(He?rn+1:rn)===1},Ze),title:typeof We=="string"?We:void 0}),(0,xe.Tm)(He,{className:De()((0,xe.l$)(He)?(Ve=He.props)===null||Ve===void 0?void 0:Ve.className:"",`${Je}-item-icon`)}),en(Lt));return ht||(Ft=Pt.createElement(ve.Z,Object.assign({},Ut,{placement:Ct==="rtl"?"left":"right",overlayClassName:`${Je}-inline-collapsed-tooltip`}),Ft)),Ft},le=Te=>{var Ve;const{popupClassName:Ze,icon:Ee,title:He,theme:We}=Te,Ke=Pt.useContext(z),{prefixCls:Je,inlineCollapsed:dt,theme:Ct}=Ke,ht=(0,tt.Xl)();let Lt;if(!Ee)Lt=dt&&!ht.length&&He&&typeof He=="string"?Pt.createElement("div",{className:`${Je}-inline-collapsed-noicon`},He.charAt(0)):Pt.createElement("span",{className:`${Je}-title-content`},He);else{const Vt=(0,xe.l$)(He)&&He.type==="span";Lt=Pt.createElement(Pt.Fragment,null,(0,xe.Tm)(Ee,{className:De()((0,xe.l$)(Ee)?(Ve=Ee.props)===null||Ve===void 0?void 0:Ve.className:"",`${Je}-item-icon`)}),Vt?He:Pt.createElement("span",{className:`${Je}-title-content`},He))}const en=Pt.useMemo(()=>Object.assign(Object.assign({},Ke),{firstLevel:!1}),[Ke]);return Pt.createElement(z.Provider,{value:en},Pt.createElement(tt.Wd,Object.assign({},(0,Oe.Z)(Te,["icon"]),{title:Lt,popupClassName:De()(Je,Ze,`${Je}-${We||Ct}`)})))},ue=$e(18785),pe=$e(70425),be=$e(62892),Ce=$e(40875),Fe=function(Te,Ve){var Ze={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&Ve.indexOf(Ee)<0&&(Ze[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Ee=Object.getOwnPropertySymbols(Te);He<Ee.length;He++)Ve.indexOf(Ee[He])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[He])&&(Ze[Ee[He]]=Te[Ee[He]]);return Ze};function je(Te){return(Te||[]).map((Ve,Ze)=>{if(Ve&&typeof Ve=="object"){const Ee=Ve,{label:He,children:We,key:Ke,type:Je}=Ee,dt=Fe(Ee,["label","children","key","type"]),Ct=Ke!=null?Ke:`tmp-${Ze}`;return We||Je==="group"?Je==="group"?Pt.createElement(tt.BW,Object.assign({key:Ct},dt,{title:He}),je(We)):Pt.createElement(le,Object.assign({key:Ct},dt,{title:He}),je(We)):Je==="divider"?Pt.createElement(Le,Object.assign({key:Ct},dt)):Pt.createElement(ae,Object.assign({key:Ct},dt),He)}return null}).filter(Ve=>Ve)}function ke(Te){return Pt.useMemo(()=>Te&&je(Te),[Te])}var Ae=$e(64993),Be=$e(17313),_e=$e(8378),et=$e(13826),ze=$e(29878),Xe=$e(83116),Qe=$e(37613),ct=Te=>{const{componentCls:Ve,motionDurationSlow:Ze,horizontalLineHeight:Ee,colorSplit:He,lineWidth:We,lineType:Ke,itemPaddingInline:Je}=Te;return{[`${Ve}-horizontal`]:{lineHeight:Ee,border:0,borderBottom:`${We}px ${Ke} ${He}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ve}-item, ${Ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Je},[`> ${Ve}-item:hover,
|
|
|
> ${Ve}-item-active,
|
|
|
> ${Ve}-submenu ${Ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ve}-item, ${Ve}-submenu-title`]:{transition:[`border-color ${Ze}`,`background ${Ze}`].join(",")},[`${Ve}-submenu-arrow`]:{display:"none"}}}},nt=Te=>{let{componentCls:Ve,menuArrowOffset:Ze}=Te;return{[`${Ve}-rtl`]:{direction:"rtl"},[`${Ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ve}-rtl${Ve}-vertical,
|
|
|
${Ve}-submenu-rtl ${Ve}-vertical`]:{[`${Ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ze})`},"&::after":{transform:`rotate(45deg) translateY(${Ze})`}}}}};const it=Te=>Object.assign({},(0,Be.oN)(Te));var xt=(Te,Ve)=>{const{componentCls:Ze,itemColor:Ee,itemSelectedColor:He,groupTitleColor:We,itemBg:Ke,subMenuItemBg:Je,itemSelectedBg:dt,activeBarHeight:Ct,activeBarWidth:ht,activeBarBorderWidth:Lt,motionDurationSlow:en,motionEaseInOut:Vt,motionEaseOut:Kt,itemPaddingInline:Ut,motionDurationMid:rn,itemHoverColor:Ft,lineType:Xt,colorSplit:tn,itemDisabledColor:dn,dangerItemColor:En,dangerItemHoverColor:An,dangerItemSelectedColor:ar,dangerItemActiveBg:tr,dangerItemSelectedBg:Tr,itemHoverBg:Vn,itemActiveBg:Or,menuSubMenuBg:Dr,horizontalItemSelectedColor:Jr,horizontalItemSelectedBg:ni,horizontalItemBorderRadius:Nr,horizontalItemHoverBg:di,popupBg:Ir}=Te;return{[`${Ze}-${Ve}, ${Ze}-${Ve} > ${Ze}`]:{color:Ee,background:Ke,[`&${Ze}-root:focus-visible`]:Object.assign({},it(Te)),[`${Ze}-item-group-title`]:{color:We},[`${Ze}-submenu-selected`]:{[`> ${Ze}-submenu-title`]:{color:He}},[`${Ze}-item-disabled, ${Ze}-submenu-disabled`]:{color:`${dn} !important`},[`${Ze}-item:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{[`&:hover, > ${Ze}-submenu-title:hover`]:{color:Ft}},[`&:not(${Ze}-horizontal)`]:{[`${Ze}-item:not(${Ze}-item-selected)`]:{"&:hover":{backgroundColor:Vn},"&:active":{backgroundColor:Or}},[`${Ze}-submenu-title`]:{"&:hover":{backgroundColor:Vn},"&:active":{backgroundColor:Or}}},[`${Ze}-item-danger`]:{color:En,[`&${Ze}-item:hover`]:{[`&:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{color:An}},[`&${Ze}-item:active`]:{background:tr}},[`${Ze}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ze}-item-selected`]:{color:He,[`&${Ze}-item-danger`]:{color:ar},"a, a:hover":{color:"inherit"}},[`& ${Ze}-item-selected`]:{backgroundColor:dt,[`&${Ze}-item-danger`]:{backgroundColor:Tr}},[`${Ze}-item, ${Ze}-submenu-title`]:{[`&:not(${Ze}-item-disabled):focus-visible`]:Object.assign({},it(Te))},[`&${Ze}-submenu > ${Ze}`]:{backgroundColor:Dr},[`&${Ze}-popup > ${Ze}`]:{backgroundColor:Ir},[`&${Ze}-horizontal`]:Object.assign(Object.assign({},Ve==="dark"?{borderBottom:0}:{}),{[`> ${Ze}-item, > ${Ze}-submenu`]:{top:Lt,marginTop:-Lt,marginBottom:0,borderRadius:Nr,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${Ct}px solid transparent`,transition:`border-color ${en} ${Vt}`,content:'""'},"&:hover, &-active, &-open":{background:di,"&::after":{borderBottomWidth:Ct,borderBottomColor:Jr}},"&-selected":{color:Jr,backgroundColor:ni,"&:hover":{backgroundColor:ni},"&::after":{borderBottomWidth:Ct,borderBottomColor:Jr}}}}),[`&${Ze}-root`]:{[`&${Ze}-inline, &${Ze}-vertical`]:{borderInlineEnd:`${Lt}px ${Xt} ${tn}`}},[`&${Ze}-inline`]:{[`${Ze}-sub${Ze}-inline`]:{background:Je},[`${Ze}-item, ${Ze}-submenu-title`]:Lt&&ht?{width:`calc(100% + ${Lt}px)`}:{},[`${Ze}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ht}px solid ${He}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${rn} ${Kt}`,`opacity ${rn} ${Kt}`].join(","),content:'""'},[`&${Ze}-item-danger`]:{"&::after":{borderInlineEndColor:ar}}},[`${Ze}-selected, ${Ze}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${rn} ${Vt}`,`opacity ${rn} ${Vt}`].join(",")}}}}}};const yt=Te=>{const{componentCls:Ve,itemHeight:Ze,itemMarginInline:Ee,padding:He,menuArrowSize:We,marginXS:Ke,itemMarginBlock:Je}=Te,dt=He+We+Ke;return{[`${Ve}-item`]:{position:"relative",overflow:"hidden"},[`${Ve}-item, ${Ve}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`,paddingInline:He,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ee,marginBlock:Je,width:`calc(100% - ${Ee*2}px)`},[`> ${Ve}-item,
|
|
|
> ${Ve}-submenu > ${Ve}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`},[`${Ve}-item-group-list ${Ve}-submenu-title,
|
|
|
${Ve}-submenu-title`]:{paddingInlineEnd:dt}}};var gt=Te=>{const{componentCls:Ve,iconCls:Ze,itemHeight:Ee,colorTextLightSolid:He,dropdownWidth:We,controlHeightLG:Ke,motionDurationMid:Je,motionEaseOut:dt,paddingXL:Ct,itemMarginInline:ht,fontSizeLG:Lt,motionDurationSlow:en,paddingXS:Vt,boxShadowSecondary:Kt,collapsedWidth:Ut,collapsedIconSize:rn}=Te,Ft={height:Ee,lineHeight:`${Ee}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ve]:{"&-inline, &-vertical":Object.assign({[`&${Ve}-root`]:{boxShadow:"none"}},yt(Te))},[`${Ve}-submenu-popup`]:{[`${Ve}-vertical`]:Object.assign(Object.assign({},yt(Te)),{boxShadow:Kt})}},{[`${Ve}-submenu-popup ${Ve}-vertical${Ve}-sub`]:{minWidth:We,maxHeight:`calc(100vh - ${Ke*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ve}-inline`]:{width:"100%",[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${en}`,`background ${en}`,`padding ${Je} ${dt}`].join(","),[`> ${Ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ve}-sub${Ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ve}-submenu > ${Ve}-submenu-title`]:Ft,[`& ${Ve}-item-group-title`]:{paddingInlineStart:Ct}},[`${Ve}-item`]:Ft}},{[`${Ve}-inline-collapsed`]:{width:Ut,[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu ${Ve}-submenu-title`]:{[`> ${Ve}-inline-collapsed-noicon`]:{fontSize:Lt,textAlign:"center"}}},[`> ${Ve}-item,
|
|
|
> ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-item,
|
|
|
> ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-submenu > ${Ve}-submenu-title,
|
|
|
> ${Ve}-submenu > ${Ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Lt/2}px - ${ht}px)`,textOverflow:"clip",[`
|
|
|
${Ve}-submenu-arrow,
|
|
|
${Ve}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Ve}-item-icon, ${Ze}`]:{margin:0,fontSize:rn,lineHeight:`${Ee}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ve}-item-icon, ${Ze}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ve}-item-icon, ${Ze}`]:{display:"none"},"a, a:hover":{color:He}},[`${Ve}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:Vt})}}]};const mt=Te=>{const{componentCls:Ve,motionDurationSlow:Ze,motionDurationMid:Ee,motionEaseInOut:He,motionEaseOut:We,iconCls:Ke,iconSize:Je,iconMarginInlineEnd:dt}=Te;return{[`${Ve}-item, ${Ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ze}`,`background ${Ze}`,`padding ${Ze} ${He}`].join(","),[`${Ve}-item-icon, ${Ke}`]:{minWidth:Je,fontSize:Je,transition:[`font-size ${Ee} ${We}`,`margin ${Ze} ${He}`,`color ${Ze}`].join(","),"+ span":{marginInlineStart:dt,opacity:1,transition:[`opacity ${Ze} ${He}`,`margin ${Ze}`,`color ${Ze}`].join(",")}},[`${Ve}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${Ve}-item-only-child`]:{[`> ${Ke}, > ${Ve}-item-icon`]:{marginInlineEnd:0}}},[`${Ve}-item-disabled, ${Ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Nt=Te=>{const{componentCls:Ve,motionDurationSlow:Ze,motionEaseInOut:Ee,borderRadius:He,menuArrowSize:We,menuArrowOffset:Ke}=Te;return{[`${Ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Te.margin,width:We,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ze} ${Ee}, opacity ${Ze}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:We*.6,height:We*.15,backgroundColor:"currentcolor",borderRadius:He,transition:[`background ${Ze} ${Ee}`,`transform ${Ze} ${Ee}`,`top ${Ze} ${Ee}`,`color ${Ze} ${Ee}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ke})`},"&::after":{transform:`rotate(-45deg) translateY(${Ke})`}}}}},Tt=Te=>{const{antCls:Ve,componentCls:Ze,fontSize:Ee,motionDurationSlow:He,motionDurationMid:We,motionEaseInOut:Ke,paddingXS:Je,padding:dt,colorSplit:Ct,lineWidth:ht,zIndexPopup:Lt,borderRadiusLG:en,subMenuItemBorderRadius:Vt,menuArrowSize:Kt,menuArrowOffset:Ut,lineType:rn,menuPanelMaskInset:Ft,groupTitleLineHeight:Xt,groupTitleFontSize:tn}=Te;return[{"":{[`${Ze}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${Ze}-submenu-hidden`]:{display:"none"}},{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(Te)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ee,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${He} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ze}-item`]:{flex:"none"}},[`${Ze}-item, ${Ze}-submenu, ${Ze}-submenu-title`]:{borderRadius:Te.itemBorderRadius},[`${Ze}-item-group-title`]:{padding:`${Je}px ${dt}px`,fontSize:tn,lineHeight:Xt,transition:`all ${He}`},[`&-horizontal ${Ze}-submenu`]:{transition:[`border-color ${He} ${Ke}`,`background ${He} ${Ke}`].join(",")},[`${Ze}-submenu, ${Ze}-submenu-inline`]:{transition:[`border-color ${He} ${Ke}`,`background ${He} ${Ke}`,`padding ${We} ${Ke}`].join(",")},[`${Ze}-submenu ${Ze}-sub`]:{cursor:"initial",transition:[`background ${He} ${Ke}`,`padding ${He} ${Ke}`].join(",")},[`${Ze}-title-content`]:{transition:`color ${He}`},[`${Ze}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ze}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ct,borderStyle:rn,borderWidth:0,borderTopWidth:ht,marginBlock:ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mt(Te)),{[`${Ze}-item-group`]:{[`${Ze}-item-group-list`]:{margin:0,padding:0,[`${Ze}-item, ${Ze}-submenu-title`]:{paddingInline:`${Ee*2}px ${dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Lt,borderRadius:en,boxShadow:"none",transformOrigin:"0 0",[`&${Ze}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ft}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ft},"\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:Te.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Te.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Te.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Te.paddingXS},[`> ${Ze}`]:Object.assign(Object.assign(Object.assign({borderRadius:en},mt(Te)),Nt(Te)),{[`${Ze}-item, ${Ze}-submenu > ${Ze}-submenu-title`]:{borderRadius:Vt},[`${Ze}-submenu-title::after`]:{transition:`transform ${He} ${Ke}`}})}}),Nt(Te)),{[`&-inline-collapsed ${Ze}-submenu-arrow,
|
|
|
&-inline ${Ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut})`},"&::after":{transform:`rotate(45deg) translateX(-${Ut})`}},[`${Ze}-submenu-open${Ze}-submenu-inline > ${Ze}-submenu-title > ${Ze}-submenu-arrow`]:{transform:`translateY(-${Kt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ut})`},"&::before":{transform:`rotate(45deg) translateX(${Ut})`}}})},{[`${Ve}-layout-header`]:{[Ze]:{lineHeight:"inherit"}}}]};var zt=(Te,Ve)=>(0,Xe.Z)("Menu",Ee=>{if(Ve===!1)return[];const{colorBgElevated:He,colorPrimary:We,colorTextLightSolid:Ke,controlHeightLG:Je,fontSize:dt,darkItemColor:Ct,darkDangerItemColor:ht,darkItemBg:Lt,darkSubMenuItemBg:en,darkItemSelectedColor:Vt,darkItemSelectedBg:Kt,darkDangerItemSelectedBg:Ut,darkItemHoverBg:rn,darkGroupTitleColor:Ft,darkItemHoverColor:Xt,darkItemDisabledColor:tn,darkDangerItemHoverColor:dn,darkDangerItemSelectedColor:En,darkDangerItemActiveBg:An}=Ee,ar=dt/7*5,tr=(0,Qe.TS)(Ee,{menuArrowSize:ar,menuHorizontalHeight:Je*1.15,menuArrowOffset:`${ar*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:He}),Tr=(0,Qe.TS)(tr,{itemColor:Ct,itemHoverColor:Xt,groupTitleColor:Ft,itemSelectedColor:Vt,itemBg:Lt,popupBg:Lt,subMenuItemBg:en,itemActiveBg:"transparent",itemSelectedBg:Kt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:rn,itemDisabledColor:tn,dangerItemColor:ht,dangerItemHoverColor:dn,dangerItemSelectedColor:En,dangerItemActiveBg:An,dangerItemSelectedBg:Ut,menuSubMenuBg:en,horizontalItemSelectedColor:Ke,horizontalItemSelectedBg:We});return[Tt(tr),ct(tr),gt(tr),xt(tr,"light"),xt(Tr,"dark"),nt(tr),(0,_e.Z)(tr),(0,et.oN)(tr,"slide-up"),(0,et.oN)(tr,"slide-down"),(0,ze._y)(tr,"zoom-big")]},Ee=>{const{colorPrimary:He,colorError:We,colorTextDisabled:Ke,colorErrorBg:Je,colorText:dt,colorTextDescription:Ct,colorBgContainer:ht,colorFillAlter:Lt,colorFillContent:en,lineWidth:Vt,lineWidthBold:Kt,controlItemBgActive:Ut,colorBgTextHover:rn,controlHeightLG:Ft,lineHeight:Xt,colorBgElevated:tn,marginXXS:dn,padding:En,fontSize:An,controlHeightSM:ar,fontSizeLG:tr,colorTextLightSolid:Tr,colorErrorHover:Vn}=Ee,Or=new Ae.C(Tr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ee.zIndexPopupBase+50,radiusItem:Ee.borderRadiusLG,itemBorderRadius:Ee.borderRadiusLG,radiusSubMenuItem:Ee.borderRadiusSM,subMenuItemBorderRadius:Ee.borderRadiusSM,colorItemText:dt,itemColor:dt,colorItemTextHover:dt,itemHoverColor:dt,colorItemTextHoverHorizontal:He,horizontalItemHoverColor:He,colorGroupTitle:Ct,groupTitleColor:Ct,colorItemTextSelected:He,itemSelectedColor:He,colorItemTextSelectedHorizontal:He,horizontalItemSelectedColor:He,colorItemBg:ht,itemBg:ht,colorItemBgHover:rn,itemHoverBg:rn,colorItemBgActive:en,itemActiveBg:Ut,colorSubItemBg:Lt,subMenuItemBg:Lt,colorItemBgSelected:Ut,itemSelectedBg:Ut,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Kt,activeBarHeight:Kt,colorActiveBarBorderSize:Vt,activeBarBorderWidth:Vt,colorItemTextDisabled:Ke,itemDisabledColor:Ke,colorDangerItemText:We,dangerItemColor:We,colorDangerItemTextHover:We,dangerItemHoverColor:We,colorDangerItemTextSelected:We,dangerItemSelectedColor:We,colorDangerItemBgActive:Je,dangerItemActiveBg:Je,colorDangerItemBgSelected:Je,dangerItemSelectedBg:Je,itemMarginInline:Ee.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ft,groupTitleLineHeight:Xt,collapsedWidth:Ft*2,popupBg:tn,itemMarginBlock:dn,itemPaddingInline:En,horizontalLineHeight:`${Ft*1.15}px`,iconSize:An,iconMarginInlineEnd:ar-An,collapsedIconSize:tr,groupTitleFontSize:An,darkItemDisabledColor:new Ae.C(Tr).setAlpha(.25).toRgbString(),darkItemColor:Or,darkDangerItemColor:We,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tr,darkItemSelectedBg:He,darkDangerItemSelectedBg:We,darkItemHoverBg:"transparent",darkGroupTitleColor:Or,darkItemHoverColor:Tr,darkDangerItemHoverColor:Vn,darkDangerItemSelectedColor:Tr,darkDangerItemActiveBg:We}},{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"]]})(Te),St=function(Te,Ve){var Ze={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&Ve.indexOf(Ee)<0&&(Ze[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Ee=Object.getOwnPropertySymbols(Te);He<Ee.length;He++)Ve.indexOf(Ee[He])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[He])&&(Ze[Ee[He]]=Te[Ee[He]]);return Ze},at=(0,Pt.forwardRef)((Te,Ve)=>{var Ze,Ee;const He=Pt.useContext(Ce.Z),We=He||{},{getPrefixCls:Ke,getPopupContainer:Je,direction:dt,menu:Ct}=Pt.useContext(me.E_),ht=Ke(),{prefixCls:Lt,className:en,style:Vt,theme:Kt="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:rn,inlineCollapsed:Ft,siderCollapsed:Xt,items:tn,children:dn,rootClassName:En,mode:An,selectable:ar,onClick:tr,overflowedIndicatorPopupClassName:Tr}=Te,Vn=St(Te,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Or=(0,Oe.Z)(Vn,["collapsedWidth"]),Dr=ke(tn)||dn;(Ze=We.validator)===null||Ze===void 0||Ze.call(We,{mode:An});const Jr=(0,pe.useEvent)(function(){var Li;tr==null||tr.apply(void 0,arguments),(Li=We.onClick)===null||Li===void 0||Li.call(We)}),ni=We.mode||An,Nr=ar!=null?ar:We.selectable,di=Pt.useMemo(()=>Xt!==void 0?Xt:Ft,[Ft,Xt]),Ir={horizontal:{motionName:`${ht}-slide-up`},inline:(0,be.Z)(ht),other:{motionName:`${ht}-zoom-big`}},ot=Ke("menu",Lt||We.prefixCls),[Ci,xi]=zt(ot,!He),pr=De()(`${ot}-${Kt}`,Ct==null?void 0:Ct.className,en);let Pr;if(typeof Ut=="function")Pr=Ut;else if(Ut===null||Ut===!1)Pr=null;else if(We.expandIcon===null||We.expandIcon===!1)Pr=null;else{const Li=Ut!=null?Ut:We.expandIcon;Pr=(0,xe.Tm)(Li,{className:De()(`${ot}-submenu-expand-icon`,(0,xe.l$)(Li)?(Ee=Li.props)===null||Ee===void 0?void 0:Ee.className:"")})}const Ar=Pt.useMemo(()=>({prefixCls:ot,inlineCollapsed:di||!1,direction:dt,firstLevel:!0,theme:Kt,mode:ni,disableMenuItemTitleTooltip:rn}),[ot,di,dt,rn,Kt]);return Ci(Pt.createElement(Ce.Z.Provider,{value:null},Pt.createElement(z.Provider,{value:Ar},Pt.createElement(tt.ZP,Object.assign({getPopupContainer:Je,overflowedIndicator:Pt.createElement(ue.Z,null),overflowedIndicatorPopupClassName:De()(ot,`${ot}-${Kt}`,Tr),mode:ni,selectable:Nr,onClick:Jr},Or,{inlineCollapsed:di,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Vt),className:pr,prefixCls:ot,direction:dt,defaultMotions:Ir,expandIcon:Pr,ref:Ve,rootClassName:De()(En,xi)}),Dr))))});const Ye=(0,Pt.forwardRef)((Te,Ve)=>{const Ze=(0,Pt.useRef)(null),Ee=Pt.useContext(oe.D);return(0,Pt.useImperativeHandle)(Ve,()=>({menu:Ze.current,focus:He=>{var We;(We=Ze.current)===null||We===void 0||We.focus(He)}})),Pt.createElement(at,Object.assign({ref:Ze},Te,Ee))});Ye.Item=ae,Ye.SubMenu=le,Ye.Divider=Le,Ye.ItemGroup=tt.BW;var Pe=Ye},58421:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return We}});var tt=$e(96663),Pt=$e(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ge=oe,De=$e(7657),me=function(Je,dt){return Pt.createElement(De.Z,(0,tt.Z)({},Je,{ref:dt,icon:Ge}))},ce=Pt.forwardRef(me),we=ce,Le=$e(49198),Se=$e(33853),Oe=$e(38819),ve=$e(92310),xe=$e.n(ve),fe=$e(90493),z=$e(44127),ee=$e(52884),ae=$e(95727),re=$e(65711),le=$e(85745),ue=$e(26112),pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},be=pe,Ce=$e(91735),Fe=function(Ke){(0,re.Z)(dt,Ke);var Je=(0,le.Z)(dt);function dt(){var Ct;(0,ee.Z)(this,dt);for(var ht=arguments.length,Lt=new Array(ht),en=0;en<ht;en++)Lt[en]=arguments[en];return Ct=Je.call.apply(Je,[this].concat(Lt)),Ct.state={goInputText:""},Ct.getValidValue=function(){var Vt=Ct.state.goInputText;return!Vt||Number.isNaN(Vt)?void 0:Number(Vt)},Ct.buildOptionText=function(Vt){return"".concat(Vt," ").concat(Ct.props.locale.items_per_page)},Ct.changeSize=function(Vt){Ct.props.changeSize(Number(Vt))},Ct.handleChange=function(Vt){Ct.setState({goInputText:Vt.target.value})},Ct.handleBlur=function(Vt){var Kt=Ct.props,Ut=Kt.goButton,rn=Kt.quickGo,Ft=Kt.rootPrefixCls,Xt=Ct.state.goInputText;Ut||Xt===""||(Ct.setState({goInputText:""}),!(Vt.relatedTarget&&(Vt.relatedTarget.className.indexOf("".concat(Ft,"-item-link"))>=0||Vt.relatedTarget.className.indexOf("".concat(Ft,"-item"))>=0))&&rn(Ct.getValidValue()))},Ct.go=function(Vt){var Kt=Ct.state.goInputText;Kt!==""&&(Vt.keyCode===be.ENTER||Vt.type==="click")&&(Ct.setState({goInputText:""}),Ct.props.quickGo(Ct.getValidValue()))},Ct}return(0,ae.Z)(dt,[{key:"getPageSizeOptions",value:function(){var ht=this.props,Lt=ht.pageSize,en=ht.pageSizeOptions;return en.some(function(Vt){return Vt.toString()===Lt.toString()})?en:en.concat([Lt.toString()]).sort(function(Vt,Kt){var Ut=Number.isNaN(Number(Vt))?0:Number(Vt),rn=Number.isNaN(Number(Kt))?0:Number(Kt);return Ut-rn})}},{key:"render",value:function(){var ht=this,Lt=this.props,en=Lt.pageSize,Vt=Lt.locale,Kt=Lt.rootPrefixCls,Ut=Lt.changeSize,rn=Lt.quickGo,Ft=Lt.goButton,Xt=Lt.selectComponentClass,tn=Lt.buildOptionText,dn=Lt.selectPrefixCls,En=Lt.disabled,An=this.state.goInputText,ar="".concat(Kt,"-options"),tr=Xt,Tr=null,Vn=null,Or=null;if(!Ut&&!rn)return null;var Dr=this.getPageSizeOptions();if(Ut&&tr){var Jr=Dr.map(function(ni,Nr){return Pt.createElement(tr.Option,{key:Nr,value:ni.toString()},(tn||ht.buildOptionText)(ni))});Tr=Pt.createElement(tr,{disabled:En,prefixCls:dn,showSearch:!1,className:"".concat(ar,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(en||Dr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Nr){return Nr.parentNode},"aria-label":Vt.page_size,defaultOpen:!1},Jr)}return rn&&(Ft&&(Or=typeof Ft=="boolean"?Pt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:En,className:"".concat(ar,"-quick-jumper-button")},Vt.jump_to_confirm):Pt.createElement("span",{onClick:this.go,onKeyUp:this.go},Ft)),Vn=Pt.createElement("div",{className:"".concat(ar,"-quick-jumper")},Vt.jump_to,Pt.createElement("input",{disabled:En,type:"text",value:An,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Vt.page}),Vt.page,Or)),Pt.createElement("li",{className:"".concat(ar)},Tr,Vn)}}]),dt}(Pt.Component);Fe.defaultProps={pageSizeOptions:["10","20","50","100"]};var je=Fe,ke=function(Je){var dt,Ct=Je.rootPrefixCls,ht=Je.page,Lt=Je.active,en=Je.className,Vt=Je.showTitle,Kt=Je.onClick,Ut=Je.onKeyPress,rn=Je.itemRender,Ft="".concat(Ct,"-item"),Xt=xe()(Ft,"".concat(Ft,"-").concat(ht),(dt={},(0,fe.Z)(dt,"".concat(Ft,"-active"),Lt),(0,fe.Z)(dt,"".concat(Ft,"-disabled"),!ht),(0,fe.Z)(dt,Je.className,en),dt)),tn=function(){Kt(ht)},dn=function(ar){Ut(ar,Kt,ht)},En=rn(ht,"page",Pt.createElement("a",{rel:"nofollow"},ht));return En?Pt.createElement("li",{title:Vt?ht.toString():null,className:Xt,onClick:tn,onKeyPress:dn,tabIndex:0},En):null},Ae=ke;function Be(){}function _e(Ke){var Je=Number(Ke);return typeof Je=="number"&&!Number.isNaN(Je)&&isFinite(Je)&&Math.floor(Je)===Je}var et=function(Je,dt,Ct){return Ct};function ze(Ke,Je,dt){var Ct=typeof Ke=="undefined"?Je.pageSize:Ke;return Math.floor((dt.total-1)/Ct)+1}var Xe=function(Ke){(0,re.Z)(dt,Ke);var Je=(0,le.Z)(dt);function dt(Ct){var ht;(0,ee.Z)(this,dt),ht=Je.call(this,Ct),ht.paginationNode=Pt.createRef(),ht.getJumpPrevPage=function(){return Math.max(1,ht.state.current-(ht.props.showLessItems?3:5))},ht.getJumpNextPage=function(){return Math.min(ze(void 0,ht.state,ht.props),ht.state.current+(ht.props.showLessItems?3:5))},ht.getItemIcon=function(Ut,rn){var Ft=ht.props.prefixCls,Xt=Ut||Pt.createElement("button",{type:"button","aria-label":rn,className:"".concat(Ft,"-item-link")});return typeof Ut=="function"&&(Xt=Pt.createElement(Ut,(0,z.Z)({},ht.props))),Xt},ht.isValid=function(Ut){var rn=ht.props.total;return _e(Ut)&&Ut!==ht.state.current&&_e(rn)&&rn>0},ht.shouldDisplayQuickJumper=function(){var Ut=ht.props,rn=Ut.showQuickJumper,Ft=Ut.total,Xt=ht.state.pageSize;return Ft<=Xt?!1:rn},ht.handleKeyDown=function(Ut){(Ut.keyCode===be.ARROW_UP||Ut.keyCode===be.ARROW_DOWN)&&Ut.preventDefault()},ht.handleKeyUp=function(Ut){var rn=ht.getValidValue(Ut),Ft=ht.state.currentInputValue;rn!==Ft&&ht.setState({currentInputValue:rn}),Ut.keyCode===be.ENTER?ht.handleChange(rn):Ut.keyCode===be.ARROW_UP?ht.handleChange(rn-1):Ut.keyCode===be.ARROW_DOWN&&ht.handleChange(rn+1)},ht.handleBlur=function(Ut){var rn=ht.getValidValue(Ut);ht.handleChange(rn)},ht.changePageSize=function(Ut){var rn=ht.state.current,Ft=ze(Ut,ht.state,ht.props);rn=rn>Ft?Ft:rn,Ft===0&&(rn=ht.state.current),typeof Ut=="number"&&("pageSize"in ht.props||ht.setState({pageSize:Ut}),"current"in ht.props||ht.setState({current:rn,currentInputValue:rn})),ht.props.onShowSizeChange(rn,Ut),"onChange"in ht.props&&ht.props.onChange&&ht.props.onChange(rn,Ut)},ht.handleChange=function(Ut){var rn=ht.props,Ft=rn.disabled,Xt=rn.onChange,tn=ht.state,dn=tn.pageSize,En=tn.current,An=tn.currentInputValue;if(ht.isValid(Ut)&&!Ft){var ar=ze(void 0,ht.state,ht.props),tr=Ut;return Ut>ar?tr=ar:Ut<1&&(tr=1),"current"in ht.props||ht.setState({current:tr}),tr!==An&&ht.setState({currentInputValue:tr}),Xt(tr,dn),tr}return En},ht.prev=function(){ht.hasPrev()&&ht.handleChange(ht.state.current-1)},ht.next=function(){ht.hasNext()&&ht.handleChange(ht.state.current+1)},ht.jumpPrev=function(){ht.handleChange(ht.getJumpPrevPage())},ht.jumpNext=function(){ht.handleChange(ht.getJumpNextPage())},ht.hasPrev=function(){return ht.state.current>1},ht.hasNext=function(){return ht.state.current<ze(void 0,ht.state,ht.props)},ht.runIfEnter=function(Ut,rn){if(Ut.key==="Enter"||Ut.charCode===13){for(var Ft=arguments.length,Xt=new Array(Ft>2?Ft-2:0),tn=2;tn<Ft;tn++)Xt[tn-2]=arguments[tn];rn.apply(void 0,Xt)}},ht.runIfEnterPrev=function(Ut){ht.runIfEnter(Ut,ht.prev)},ht.runIfEnterNext=function(Ut){ht.runIfEnter(Ut,ht.next)},ht.runIfEnterJumpPrev=function(Ut){ht.runIfEnter(Ut,ht.jumpPrev)},ht.runIfEnterJumpNext=function(Ut){ht.runIfEnter(Ut,ht.jumpNext)},ht.handleGoTO=function(Ut){(Ut.keyCode===be.ENTER||Ut.type==="click")&&ht.handleChange(ht.state.currentInputValue)},ht.renderPrev=function(Ut){var rn=ht.props,Ft=rn.prevIcon,Xt=rn.itemRender,tn=Xt(Ut,"prev",ht.getItemIcon(Ft,"prev page")),dn=!ht.hasPrev();return(0,Pt.isValidElement)(tn)?(0,Pt.cloneElement)(tn,{disabled:dn}):tn},ht.renderNext=function(Ut){var rn=ht.props,Ft=rn.nextIcon,Xt=rn.itemRender,tn=Xt(Ut,"next",ht.getItemIcon(Ft,"next page")),dn=!ht.hasNext();return(0,Pt.isValidElement)(tn)?(0,Pt.cloneElement)(tn,{disabled:dn}):tn};var Lt=Ct.onChange!==Be,en="current"in Ct;en&&!Lt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Vt=Ct.defaultCurrent;"current"in Ct&&(Vt=Ct.current);var Kt=Ct.defaultPageSize;return"pageSize"in Ct&&(Kt=Ct.pageSize),Vt=Math.min(Vt,ze(Kt,void 0,Ct)),ht.state={current:Vt,currentInputValue:Vt,pageSize:Kt},ht}return(0,ae.Z)(dt,[{key:"componentDidUpdate",value:function(ht,Lt){var en=this.props.prefixCls;if(Lt.current!==this.state.current&&this.paginationNode.current){var Vt=this.paginationNode.current.querySelector(".".concat(en,"-item-").concat(Lt.current));if(Vt&&document.activeElement===Vt){var Kt;Vt==null||(Kt=Vt.blur)===null||Kt===void 0||Kt.call(Vt)}}}},{key:"getValidValue",value:function(ht){var Lt=ht.target.value,en=ze(void 0,this.state,this.props),Vt=this.state.currentInputValue,Kt;return Lt===""?Kt=Lt:Number.isNaN(Number(Lt))?Kt=Vt:Lt>=en?Kt=en:Kt=Number(Lt),Kt}},{key:"getShowSizeChanger",value:function(){var ht=this.props,Lt=ht.showSizeChanger,en=ht.total,Vt=ht.totalBoundaryShowSizeChanger;return typeof Lt!="undefined"?Lt:en>Vt}},{key:"render",value:function(){var ht=this.props,Lt=ht.prefixCls,en=ht.className,Vt=ht.style,Kt=ht.disabled,Ut=ht.hideOnSinglePage,rn=ht.total,Ft=ht.locale,Xt=ht.showQuickJumper,tn=ht.showLessItems,dn=ht.showTitle,En=ht.showTotal,An=ht.simple,ar=ht.itemRender,tr=ht.showPrevNextJumpers,Tr=ht.jumpPrevIcon,Vn=ht.jumpNextIcon,Or=ht.selectComponentClass,Dr=ht.selectPrefixCls,Jr=ht.pageSizeOptions,ni=this.state,Nr=ni.current,di=ni.pageSize,Ir=ni.currentInputValue;if(Ut===!0&&rn<=di)return null;var ot=ze(void 0,this.state,this.props),Ci=[],xi=null,pr=null,Pr=null,Ar=null,Li=null,nr=Xt&&Xt.goButton,or=tn?1:2,qt=Nr-1>0?Nr-1:0,Jt=Nr+1<ot?Nr+1:ot,Et=(0,ue.Z)(this.props,{aria:!0,data:!0}),ln=En&&Pt.createElement("li",{className:"".concat(Lt,"-total-text")},En(rn,[rn===0?0:(Nr-1)*di+1,Nr*di>rn?rn:Nr*di]));if(An){nr&&(typeof nr=="boolean"?Li=Pt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ft.jump_to_confirm):Li=Pt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},nr),Li=Pt.createElement("li",{title:dn?"".concat(Ft.jump_to).concat(Nr,"/").concat(ot):null,className:"".concat(Lt,"-simple-pager")},Li));var Pn=this.renderPrev(qt);return Pt.createElement("ul",(0,tt.Z)({className:xe()(Lt,"".concat(Lt,"-simple"),(0,fe.Z)({},"".concat(Lt,"-disabled"),Kt),en),style:Vt,ref:this.paginationNode},Et),ln,Pn?Pt.createElement("li",{title:dn?Ft.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Lt,"-prev"),(0,fe.Z)({},"".concat(Lt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Pn):null,Pt.createElement("li",{title:dn?"".concat(Nr,"/").concat(ot):null,className:"".concat(Lt,"-simple-pager")},Pt.createElement("input",{type:"text",value:Ir,disabled:Kt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Pt.createElement("span",{className:"".concat(Lt,"-slash")},"/"),ot),Pt.createElement("li",{title:dn?Ft.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Lt,"-next"),(0,fe.Z)({},"".concat(Lt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Jt)),Li)}if(ot<=3+or*2){var $t={locale:Ft,rootPrefixCls:Lt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:dn,itemRender:ar};ot||Ci.push(Pt.createElement(Ae,(0,tt.Z)({},$t,{key:"noPager",page:1,className:"".concat(Lt,"-item-disabled")})));for(var It=1;It<=ot;It+=1){var fn=Nr===It;Ci.push(Pt.createElement(Ae,(0,tt.Z)({},$t,{key:It,page:It,active:fn})))}}else{var un=tn?Ft.prev_3:Ft.prev_5,Gn=tn?Ft.next_3:Ft.next_5,Xn=ar(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Tr,"prev page")),Ht=ar(this.getJumpNextPage(),"jump-next",this.getItemIcon(Vn,"next page"));tr&&(xi=Xn?Pt.createElement("li",{title:dn?un:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:xe()("".concat(Lt,"-jump-prev"),(0,fe.Z)({},"".concat(Lt,"-jump-prev-custom-icon"),!!Tr))},Xn):null,pr=Ht?Pt.createElement("li",{title:dn?Gn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:xe()("".concat(Lt,"-jump-next"),(0,fe.Z)({},"".concat(Lt,"-jump-next-custom-icon"),!!Vn))},Ht):null),Ar=Pt.createElement(Ae,{locale:Ft,last:!0,rootPrefixCls:Lt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ot,page:ot,active:!1,showTitle:dn,itemRender:ar}),Pr=Pt.createElement(Ae,{locale:Ft,rootPrefixCls:Lt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:dn,itemRender:ar});var kn=Math.max(1,Nr-or),Wn=Math.min(Nr+or,ot);Nr-1<=or&&(Wn=1+or*2),ot-Nr<=or&&(kn=ot-or*2);for(var lr=kn;lr<=Wn;lr+=1){var on=Nr===lr;Ci.push(Pt.createElement(Ae,{locale:Ft,rootPrefixCls:Lt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:lr,page:lr,active:on,showTitle:dn,itemRender:ar}))}Nr-1>=or*2&&Nr!==3&&(Ci[0]=(0,Pt.cloneElement)(Ci[0],{className:"".concat(Lt,"-item-after-jump-prev")}),Ci.unshift(xi)),ot-Nr>=or*2&&Nr!==ot-2&&(Ci[Ci.length-1]=(0,Pt.cloneElement)(Ci[Ci.length-1],{className:"".concat(Lt,"-item-before-jump-next")}),Ci.push(pr)),kn!==1&&Ci.unshift(Pr),Wn!==ot&&Ci.push(Ar)}var Mn=!this.hasPrev()||!ot,an=!this.hasNext()||!ot,Sn=this.renderPrev(qt),gn=this.renderNext(Jt);return Pt.createElement("ul",(0,tt.Z)({className:xe()(Lt,en,(0,fe.Z)({},"".concat(Lt,"-disabled"),Kt)),style:Vt,ref:this.paginationNode},Et),ln,Sn?Pt.createElement("li",{title:dn?Ft.prev_page:null,onClick:this.prev,tabIndex:Mn?null:0,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Lt,"-prev"),(0,fe.Z)({},"".concat(Lt,"-disabled"),Mn)),"aria-disabled":Mn},Sn):null,Ci,gn?Pt.createElement("li",{title:dn?Ft.next_page:null,onClick:this.next,tabIndex:an?null:0,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Lt,"-next"),(0,fe.Z)({},"".concat(Lt,"-disabled"),an)),"aria-disabled":an},gn):null,Pt.createElement(je,{disabled:Kt,locale:Ft,rootPrefixCls:Lt,selectComponentClass:Or,selectPrefixCls:Dr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Nr,pageSize:di,pageSizeOptions:Jr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:nr}))}}],[{key:"getDerivedStateFromProps",value:function(ht,Lt){var en={};if("current"in ht&&(en.current=ht.current,ht.current!==Lt.current&&(en.currentInputValue=en.current)),"pageSize"in ht&&ht.pageSize!==Lt.pageSize){var Vt=Lt.current,Kt=ze(ht.pageSize,Lt,ht);Vt=Vt>Kt?Kt:Vt,"current"in ht||(en.current=Vt,en.currentInputValue=Vt),en.pageSize=ht.pageSize}return en}}]),dt}(Pt.Component);Xe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Be,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Be,locale:Ce.Z,style:{},itemRender:et,totalBoundaryShowSizeChanger:50};var Qe=Xe,lt=$e(22075),ct=$e(36355),vt=$e(19716),nt=$e(8628),it=$e(9763),pt=$e(57809);const xt=Ke=>Pt.createElement(pt.default,Object.assign({},Ke,{showSearch:!0,size:"small"})),yt=Ke=>Pt.createElement(pt.default,Object.assign({},Ke,{showSearch:!0,size:"middle"}));xt.Option=pt.default.Option,yt.Option=pt.default.Option;var ft=$e(9937),gt=$e(17313),mt=$e(83116),Nt=$e(37613);const Tt=Ke=>{const{componentCls:Je}=Ke;return{[`${Je}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Je}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Je}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed"}}},[`&${Je}-disabled`]:{cursor:"not-allowed",[`${Je}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ke.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ke.colorBorder,backgroundColor:Ke.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ke.itemActiveBgDisabled},a:{color:Ke.itemActiveColorDisabled}}},[`${Je}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Je}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Je}-simple-pager`]:{color:Ke.colorTextDisabled},[`${Je}-jump-prev, ${Je}-jump-next`]:{[`${Je}-item-link-icon`]:{opacity:0},[`${Je}-item-ellipsis`]:{opacity:1}}},[`&${Je}-simple`]:{[`${Je}-prev, ${Je}-next`]:{[`&${Je}-disabled ${Je}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},zt=Ke=>{const{componentCls:Je}=Ke;return{[`&${Je}-mini ${Je}-total-text, &${Je}-mini ${Je}-simple-pager`]:{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`},[`&${Je}-mini ${Je}-item`]:{minWidth:Ke.itemSizeSM,height:Ke.itemSizeSM,margin:0,lineHeight:`${Ke.itemSizeSM-2}px`},[`&${Je}-mini:not(${Je}-disabled) ${Je}-item:not(${Je}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive}},[`&${Je}-mini ${Je}-prev, &${Je}-mini ${Je}-next`]:{minWidth:Ke.itemSizeSM,height:Ke.itemSizeSM,margin:0,lineHeight:`${Ke.itemSizeSM}px`},[`&${Je}-mini:not(${Je}-disabled)`]:{[`${Je}-prev, ${Je}-next`]:{[`&:hover ${Je}-item-link`]:{backgroundColor:Ke.colorBgTextHover},[`&:active ${Je}-item-link`]:{backgroundColor:Ke.colorBgTextActive},[`&${Je}-disabled:hover ${Je}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Je}-mini ${Je}-prev ${Je}-item-link,
|
|
|
&${Je}-mini ${Je}-next ${Je}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`}},[`&${Je}-mini ${Je}-jump-prev, &${Je}-mini ${Je}-jump-next`]:{height:Ke.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ke.itemSizeSM}px`},[`&${Je}-mini ${Je}-options`]:{marginInlineStart:Ke.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ke.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ft.x0)(Ke)),{width:Ke.paginationMiniQuickJumperInputWidth,height:Ke.controlHeightSM})}}}},St=Ke=>{const{componentCls:Je}=Ke;return{[`
|
|
|
&${Je}-simple ${Je}-prev,
|
|
|
&${Je}-simple ${Je}-next
|
|
|
`]:{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`,verticalAlign:"top",[`${Je}-item-link`]:{height:Ke.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive},"&::after":{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`}}},[`&${Je}-simple ${Je}-simple-pager`]:{display:"inline-block",height:Ke.itemSizeSM,marginInlineEnd:Ke.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ke.marginXS,padding:`0 ${Ke.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ke.itemInputBg,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`,borderRadius:Ke.borderRadius,outline:"none",transition:`border-color ${Ke.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ke.colorPrimary},"&:focus":{borderColor:Ke.colorPrimaryHover,boxShadow:`${Ke.inputOutlineOffset}px 0 ${Ke.controlOutlineWidth}px ${Ke.controlOutline}`},"&[disabled]":{color:Ke.colorTextDisabled,backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,cursor:"not-allowed"}}}}},wt=Ke=>{const{componentCls:Je}=Ke;return{[`${Je}-jump-prev, ${Je}-jump-next`]:{outline:0,[`${Je}-item-container`]:{position:"relative",[`${Je}-item-link-icon`]:{color:Ke.colorPrimary,fontSize:Ke.fontSizeSM,opacity:0,transition:`all ${Ke.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Je}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ke.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ke.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ke.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ke.motionDurationMid}`}},"&:hover":{[`${Je}-item-link-icon`]:{opacity:1},[`${Je}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Je}-prev,
|
|
|
${Je}-jump-prev,
|
|
|
${Je}-jump-next
|
|
|
`]:{marginInlineEnd:Ke.marginXS},[`
|
|
|
${Je}-prev,
|
|
|
${Je}-next,
|
|
|
${Je}-jump-prev,
|
|
|
${Je}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ke.itemSize,height:Ke.itemSize,color:Ke.colorText,fontFamily:Ke.fontFamily,lineHeight:`${Ke.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ke.borderRadius,cursor:"pointer",transition:`all ${Ke.motionDurationMid}`},[`${Je}-prev, ${Je}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ke.colorText,cursor:"pointer",userSelect:"none"},[`${Je}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ke.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ke.lineWidth}px ${Ke.lineType} transparent`,borderRadius:Ke.borderRadius,outline:"none",transition:`all ${Ke.motionDurationMid}`},[`&:hover ${Je}-item-link`]:{backgroundColor:Ke.colorBgTextHover},[`&:active ${Je}-item-link`]:{backgroundColor:Ke.colorBgTextActive},[`&${Je}-disabled:hover`]:{[`${Je}-item-link`]:{backgroundColor:"transparent"}}},[`${Je}-slash`]:{marginInlineEnd:Ke.paginationSlashMarginInlineEnd,marginInlineStart:Ke.paginationSlashMarginInlineStart},[`${Je}-options`]:{display:"inline-block",marginInlineStart:Ke.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ke.controlHeight,marginInlineStart:Ke.marginXS,lineHeight:`${Ke.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ft.ik)(Ke)),{width:Ke.controlHeightLG*1.25,height:Ke.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ke.marginXS,marginInlineEnd:Ke.marginXS})}}}},at=Ke=>{const{componentCls:Je}=Ke;return{[`${Je}-item`]:{display:"inline-block",minWidth:Ke.itemSize,height:Ke.itemSize,marginInlineEnd:Ke.marginXS,fontFamily:Ke.fontFamily,lineHeight:`${Ke.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ke.lineWidth}px ${Ke.lineType} transparent`,borderRadius:Ke.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ke.paginationItemPaddingInline}px`,color:Ke.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Je}-item-active)`]:{"&:hover":{transition:`all ${Ke.motionDurationMid}`,backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive}},"&-active":{fontWeight:Ke.fontWeightStrong,backgroundColor:Ke.itemActiveBg,borderColor:Ke.colorPrimary,a:{color:Ke.colorPrimary},"&:hover":{borderColor:Ke.colorPrimaryHover},"&:hover a":{color:Ke.colorPrimaryHover}}}}},Ye=Ke=>{const{componentCls:Je}=Ke;return{[Je]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(Ke)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Je}-total-text`]:{display:"inline-block",height:Ke.itemSize,marginInlineEnd:Ke.marginXS,lineHeight:`${Ke.itemSize-2}px`,verticalAlign:"middle"}}),at(Ke)),wt(Ke)),St(Ke)),zt(Ke)),Tt(Ke)),{[`@media only screen and (max-width: ${Ke.screenLG}px)`]:{[`${Je}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ke.screenSM}px)`]:{[`${Je}-options`]:{display:"none"}}}),[`&${Ke.componentCls}-rtl`]:{direction:"rtl"}}},Pe=Ke=>{const{componentCls:Je}=Ke;return{[`${Je}${Je}-disabled:not(${Je}-mini)`]:{"&, &:hover":{[`${Je}-item-link`]:{borderColor:Ke.colorBorder}},"&:focus-visible":{[`${Je}-item-link`]:{borderColor:Ke.colorBorder}},[`${Je}-item, ${Je}-item-link`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,[`&:hover:not(${Je}-item-active)`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,a:{color:Ke.colorTextDisabled}},[`&${Je}-item-active`]:{backgroundColor:Ke.itemActiveBgDisabled}},[`${Je}-prev, ${Je}-next`]:{"&:hover button":{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,color:Ke.colorTextDisabled},[`${Je}-item-link`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder}}},[`${Je}:not(${Je}-mini)`]:{[`${Je}-prev, ${Je}-next`]:{"&:hover button":{borderColor:Ke.colorPrimaryHover,backgroundColor:Ke.itemBg},[`${Je}-item-link`]:{backgroundColor:Ke.itemLinkBg,borderColor:Ke.colorBorder},[`&:hover ${Je}-item-link`]:{borderColor:Ke.colorPrimary,backgroundColor:Ke.itemBg,color:Ke.colorPrimary},[`&${Je}-disabled`]:{[`${Je}-item-link`]:{borderColor:Ke.colorBorder,color:Ke.colorTextDisabled}}},[`${Je}-item`]:{backgroundColor:Ke.itemBg,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`,[`&:hover:not(${Je}-item-active)`]:{borderColor:Ke.colorPrimary,backgroundColor:Ke.itemBg,a:{color:Ke.colorPrimary}},"&-active":{borderColor:Ke.colorPrimary}}}}},Te=Ke=>{const{componentCls:Je}=Ke;return{[`${Je}:not(${Je}-disabled)`]:{[`${Je}-item`]:Object.assign({},(0,gt.Qy)(Ke)),[`${Je}-jump-prev, ${Je}-jump-next`]:{"&:focus-visible":Object.assign({[`${Je}-item-link-icon`]:{opacity:1},[`${Je}-item-ellipsis`]:{opacity:0}},(0,gt.oN)(Ke))},[`${Je}-prev, ${Je}-next`]:{[`&:focus-visible ${Je}-item-link`]:Object.assign({},(0,gt.oN)(Ke))}}}};var Ve=(0,mt.Z)("Pagination",Ke=>{const Je=(0,Nt.TS)(Ke,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ke.marginXXS/2,paginationMiniQuickJumperInputWidth:Ke.controlHeightLG*1.1,paginationItemPaddingInline:Ke.marginXXS*1.5,paginationEllipsisLetterSpacing:Ke.marginXXS/2,paginationSlashMarginInlineStart:Ke.marginXXS,paginationSlashMarginInlineEnd:Ke.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ft.e5)(Ke),(0,ft.TM)(Ke));return[Ye(Je),Te(Je),Ke.wireframe&&Pe(Je)]},Ke=>({itemBg:Ke.colorBgContainer,itemSize:Ke.controlHeight,itemSizeSM:Ke.controlHeightSM,itemActiveBg:Ke.colorBgContainer,itemLinkBg:Ke.colorBgContainer,itemActiveColorDisabled:Ke.colorTextDisabled,itemActiveBgDisabled:Ke.controlItemBgActiveDisabled,itemInputBg:Ke.colorBgContainer,miniOptionsSizeChangerTop:0})),Ze=function(Ke,Je){var dt={};for(var Ct in Ke)Object.prototype.hasOwnProperty.call(Ke,Ct)&&Je.indexOf(Ct)<0&&(dt[Ct]=Ke[Ct]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Ct=Object.getOwnPropertySymbols(Ke);ht<Ct.length;ht++)Je.indexOf(Ct[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Ct[ht])&&(dt[Ct[ht]]=Ke[Ct[ht]]);return dt},He=Ke=>{const{prefixCls:Je,selectPrefixCls:dt,className:Ct,rootClassName:ht,style:Lt,size:en,locale:Vt,selectComponentClass:Kt,responsive:Ut,showSizeChanger:rn}=Ke,Ft=Ze(Ke,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Xt}=(0,nt.Z)(Ut),{getPrefixCls:tn,direction:dn,pagination:En={}}=Pt.useContext(ct.E_),An=tn("pagination",Je),[ar,tr]=Ve(An),Tr=rn!=null?rn:En.showSizeChanger,Vn=Pt.useMemo(()=>{const ot=Pt.createElement("span",{className:`${An}-item-ellipsis`},"\u2022\u2022\u2022"),Ci=Pt.createElement("button",{className:`${An}-item-link`,type:"button",tabIndex:-1},dn==="rtl"?Pt.createElement(Oe.Z,null):Pt.createElement(Se.Z,null)),xi=Pt.createElement("button",{className:`${An}-item-link`,type:"button",tabIndex:-1},dn==="rtl"?Pt.createElement(Se.Z,null):Pt.createElement(Oe.Z,null)),pr=Pt.createElement("a",{className:`${An}-item-link`},Pt.createElement("div",{className:`${An}-item-container`},dn==="rtl"?Pt.createElement(Le.Z,{className:`${An}-item-link-icon`}):Pt.createElement(we,{className:`${An}-item-link-icon`}),ot)),Pr=Pt.createElement("a",{className:`${An}-item-link`},Pt.createElement("div",{className:`${An}-item-container`},dn==="rtl"?Pt.createElement(we,{className:`${An}-item-link-icon`}):Pt.createElement(Le.Z,{className:`${An}-item-link-icon`}),ot));return{prevIcon:Ci,nextIcon:xi,jumpPrevIcon:pr,jumpNextIcon:Pr}},[dn,An]),[Or]=(0,it.Z)("Pagination",lt.Z),Dr=Object.assign(Object.assign({},Or),Vt),Jr=(0,vt.Z)(en),ni=Jr==="small"||!!(Xt&&!Jr&&Ut),Nr=tn("select",dt),di=xe()({[`${An}-mini`]:ni,[`${An}-rtl`]:dn==="rtl"},En==null?void 0:En.className,Ct,ht,tr),Ir=Object.assign(Object.assign({},En==null?void 0:En.style),Lt);return ar(Pt.createElement(Qe,Object.assign({},Vn,Ft,{style:Ir,prefixCls:An,selectPrefixCls:Nr,className:di,selectComponentClass:Kt||(ni?xt:yt),locale:Dr,showSizeChanger:Tr})))},We=He},93948:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return rn}});var tt=$e(59301),Pt=$e(29679),oe=$e(40001),Ge=$e(19248),De=$e(99267),me=$e(92310),ce=$e.n(me),we=$e(2738),Le=$e(36355),Se=$e(96663),Oe=$e(44127),ve=$e(6620),xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},fe=function(){var Xt=(0,tt.useRef)([]),tn=(0,tt.useRef)(null);return(0,tt.useEffect)(function(){var dn=Date.now(),En=!1;Xt.current.forEach(function(An){if(An){En=!0;var ar=An.style;ar.transitionDuration=".3s, .3s, .3s, .06s",tn.current&&dn-tn.current<100&&(ar.transitionDuration="0s, 0s")}}),En&&(tn.current=Date.now())}),Xt.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Xt){var tn=(0,Oe.Z)((0,Oe.Z)({},xe),Xt),dn=tn.className,En=tn.percent,An=tn.prefixCls,ar=tn.strokeColor,tr=tn.strokeLinecap,Tr=tn.strokeWidth,Vn=tn.style,Or=tn.trailColor,Dr=tn.trailWidth,Jr=tn.transition,ni=(0,ve.Z)(tn,z);delete ni.gapPosition;var Nr=Array.isArray(En)?En:[En],di=Array.isArray(ar)?ar:[ar],Ir=fe(),ot=Tr/2,Ci=100-Tr/2,xi="M ".concat(tr==="round"?ot:0,",").concat(ot,`
|
|
|
L `).concat(tr==="round"?Ci:100,",").concat(ot),pr="0 0 100 ".concat(Tr),Pr=0;return tt.createElement("svg",(0,Se.Z)({className:ce()("".concat(An,"-line"),dn),viewBox:pr,preserveAspectRatio:"none",style:Vn},ni),tt.createElement("path",{className:"".concat(An,"-line-trail"),d:xi,strokeLinecap:tr,stroke:Or,strokeWidth:Dr||Tr,fillOpacity:"0"}),Nr.map(function(Ar,Li){var nr=1;switch(tr){case"round":nr=1-Tr/100;break;case"square":nr=1-Tr/2/100;break;default:nr=1;break}var or={strokeDasharray:"".concat(Ar*nr,"px, 100px"),strokeDashoffset:"-".concat(Pr,"px"),transition:Jr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},qt=di[Li]||di[di.length-1];return Pr+=Ar,tt.createElement("path",{key:Li,className:"".concat(An,"-line-path"),d:xi,strokeLinecap:tr,stroke:qt,strokeWidth:Tr,fillOpacity:"0",ref:function(Et){Ir[Li]=Et},style:or})}))},ae=ee,re=$e(20135),le=$e(72071),ue=$e(47273),pe=0,be=(0,ue.Z)();function Ce(){var Ft;return be?(Ft=pe,pe+=1):Ft="TEST_OR_SSR",Ft}var Fe=function(Ft){var Xt=tt.useState(),tn=(0,le.Z)(Xt,2),dn=tn[0],En=tn[1];return tt.useEffect(function(){En("rc_progress_".concat(Ce()))},[]),Ft||dn},je=function(Xt){var tn=Xt.bg,dn=Xt.children;return tt.createElement("div",{style:{width:"100%",height:"100%",background:tn}},dn)};function ke(Ft,Xt){return Object.keys(Ft).map(function(tn){var dn=parseFloat(tn),En="".concat(Math.floor(dn*Xt),"%");return"".concat(Ft[tn]," ").concat(En)})}var Ae=tt.forwardRef(function(Ft,Xt){var tn=Ft.prefixCls,dn=Ft.color,En=Ft.gradientId,An=Ft.radius,ar=Ft.style,tr=Ft.ptg,Tr=Ft.strokeLinecap,Vn=Ft.strokeWidth,Or=Ft.size,Dr=Ft.gapDegree,Jr=dn&&(0,re.Z)(dn)==="object",ni=Jr?"#FFF":void 0,Nr=Or/2,di=tt.createElement("circle",{className:"".concat(tn,"-circle-path"),r:An,cx:Nr,cy:Nr,stroke:ni,strokeLinecap:Tr,strokeWidth:Vn,opacity:tr===0?0:1,style:ar,ref:Xt});if(!Jr)return di;var Ir="".concat(En,"-conic"),ot=Dr?"".concat(180+Dr/2,"deg"):"0deg",Ci=ke(dn,(360-Dr)/360),xi=ke(dn,1),pr="conic-gradient(from ".concat(ot,", ").concat(Ci.join(", "),")"),Pr="linear-gradient(to ".concat(Dr?"bottom":"top",", ").concat(xi.join(", "),")");return tt.createElement(tt.Fragment,null,tt.createElement("mask",{id:Ir},di),tt.createElement("foreignObject",{x:0,y:0,width:Or,height:Or,mask:"url(#".concat(Ir,")")},tt.createElement(je,{bg:Pr},tt.createElement(je,{bg:pr}))))}),Be=Ae,_e=100,et=function(Xt,tn,dn,En,An,ar,tr,Tr,Vn,Or){var Dr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Jr=dn/100*360*((360-ar)/360),ni=ar===0?0:{bottom:0,top:180,left:90,right:-90}[tr],Nr=(100-En)/100*tn;Vn==="round"&&En!==100&&(Nr+=Or/2,Nr>=tn&&(Nr=tn-.01));var di=_e/2;return{stroke:typeof Tr=="string"?Tr:void 0,strokeDasharray:"".concat(tn,"px ").concat(Xt),strokeDashoffset:Nr+Dr,transform:"rotate(".concat(An+Jr+ni,"deg)"),transformOrigin:"".concat(di,"px ").concat(di,"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 Xe(Ft){var Xt=Ft!=null?Ft:[];return Array.isArray(Xt)?Xt:[Xt]}var Qe=function(Xt){var tn=(0,Oe.Z)((0,Oe.Z)({},xe),Xt),dn=tn.id,En=tn.prefixCls,An=tn.steps,ar=tn.strokeWidth,tr=tn.trailWidth,Tr=tn.gapDegree,Vn=Tr===void 0?0:Tr,Or=tn.gapPosition,Dr=tn.trailColor,Jr=tn.strokeLinecap,ni=tn.style,Nr=tn.className,di=tn.strokeColor,Ir=tn.percent,ot=(0,ve.Z)(tn,ze),Ci=_e/2,xi=Fe(dn),pr="".concat(xi,"-gradient"),Pr=Ci-ar/2,Ar=Math.PI*2*Pr,Li=Vn>0?90+Vn/2:-90,nr=Ar*((360-Vn)/360),or=(0,re.Z)(An)==="object"?An:{count:An,space:2},qt=or.count,Jt=or.space,Et=Xe(Ir),ln=Xe(di),Pn=ln.find(function(Ht){return Ht&&(0,re.Z)(Ht)==="object"}),$t=Pn&&(0,re.Z)(Pn)==="object",It=$t?"butt":Jr,fn=et(Ar,nr,0,100,Li,Vn,Or,Dr,It,ar),un=fe(),Gn=function(){var kn=0;return Et.map(function(Wn,lr){var on=ln[lr]||ln[ln.length-1],Mn=et(Ar,nr,kn,Wn,Li,Vn,Or,on,It,ar);return kn+=Wn,tt.createElement(Be,{key:lr,color:on,ptg:Wn,radius:Pr,prefixCls:En,gradientId:pr,style:Mn,strokeLinecap:It,strokeWidth:ar,gapDegree:Vn,ref:function(Sn){un[lr]=Sn},size:_e})}).reverse()},Xn=function(){var kn=Math.round(qt*(Et[0]/100)),Wn=100/qt,lr=0;return new Array(qt).fill(null).map(function(on,Mn){var an=Mn<=kn-1?ln[0]:Dr,Sn=an&&(0,re.Z)(an)==="object"?"url(#".concat(pr,")"):void 0,gn=et(Ar,nr,lr,Wn,Li,Vn,Or,an,"butt",ar,Jt);return lr+=(nr-gn.strokeDashoffset+Jt)*100/nr,tt.createElement("circle",{key:Mn,className:"".concat(En,"-circle-path"),r:Pr,cx:Ci,cy:Ci,stroke:Sn,strokeWidth:ar,opacity:1,style:gn,ref:function(On){un[Mn]=On}})})};return tt.createElement("svg",(0,Se.Z)({className:ce()("".concat(En,"-circle"),Nr),viewBox:"0 0 ".concat(_e," ").concat(_e),style:ni,id:dn,role:"presentation"},ot),!qt&&tt.createElement("circle",{className:"".concat(En,"-circle-trail"),r:Pr,cx:Ci,cy:Ci,stroke:Dr,strokeLinecap:It,strokeWidth:tr||ar,style:fn}),qt?Xn():Gn())},lt=Qe,ct={Line:ae,Circle:lt},vt=$e(6848),nt=$e(93398);function it(Ft){return!Ft||Ft<0?0:Ft>100?100:Ft}function pt(Ft){let{success:Xt,successPercent:tn}=Ft,dn=tn;return Xt&&"progress"in Xt&&(dn=Xt.progress),Xt&&"percent"in Xt&&(dn=Xt.percent),dn}const xt=Ft=>{let{percent:Xt,success:tn,successPercent:dn}=Ft;const En=it(pt({success:tn,successPercent:dn}));return[En,it(it(Xt)-En)]},yt=Ft=>{let{success:Xt={},strokeColor:tn}=Ft;const{strokeColor:dn}=Xt;return[dn||nt.presetPrimaryColors.green,tn||null]},ft=(Ft,Xt,tn)=>{var dn,En,An,ar;let tr=-1,Tr=-1;if(Xt==="step"){const Vn=tn.steps,Or=tn.strokeWidth;typeof Ft=="string"||typeof Ft=="undefined"?(tr=Ft==="small"?2:14,Tr=Or!=null?Or:8):typeof Ft=="number"?[tr,Tr]=[Ft,Ft]:[tr=14,Tr=8]=Ft,tr*=Vn}else if(Xt==="line"){const Vn=tn==null?void 0:tn.strokeWidth;typeof Ft=="string"||typeof Ft=="undefined"?Tr=Vn||(Ft==="small"?6:8):typeof Ft=="number"?[tr,Tr]=[Ft,Ft]:[tr=-1,Tr=8]=Ft}else(Xt==="circle"||Xt==="dashboard")&&(typeof Ft=="string"||typeof Ft=="undefined"?[tr,Tr]=Ft==="small"?[60,60]:[120,120]:typeof Ft=="number"?[tr,Tr]=[Ft,Ft]:(tr=(En=(dn=Ft[0])!==null&&dn!==void 0?dn:Ft[1])!==null&&En!==void 0?En:120,Tr=(ar=(An=Ft[0])!==null&&An!==void 0?An:Ft[1])!==null&&ar!==void 0?ar:120));return[tr,Tr]},gt=3,mt=Ft=>gt/Ft*100;var Tt=Ft=>{const{prefixCls:Xt,trailColor:tn=null,strokeLinecap:dn="round",gapPosition:En,gapDegree:An,width:ar=120,type:tr,children:Tr,success:Vn,size:Or=ar}=Ft,[Dr,Jr]=ft(Or,"circle");let{strokeWidth:ni}=Ft;ni===void 0&&(ni=Math.max(mt(Dr),6));const Nr={width:Dr,height:Jr,fontSize:Dr*.15+6},di=tt.useMemo(()=>{if(An||An===0)return An;if(tr==="dashboard")return 75},[An,tr]),Ir=En||tr==="dashboard"&&"bottom"||void 0,ot=Object.prototype.toString.call(Ft.strokeColor)==="[object Object]",Ci=yt({success:Vn,strokeColor:Ft.strokeColor}),xi=ce()(`${Xt}-inner`,{[`${Xt}-circle-gradient`]:ot}),pr=tt.createElement(lt,{percent:xt(Ft),strokeWidth:ni,trailWidth:ni,strokeColor:Ci,strokeLinecap:dn,trailColor:tn,prefixCls:Xt,gapDegree:di,gapPosition:Ir});return tt.createElement("div",{className:xi,style:Nr},Dr<=20?tt.createElement(vt.Z,{title:Tr},tt.createElement("span",null,pr)):tt.createElement(tt.Fragment,null,pr,Tr))},zt=function(Ft,Xt){var tn={};for(var dn in Ft)Object.prototype.hasOwnProperty.call(Ft,dn)&&Xt.indexOf(dn)<0&&(tn[dn]=Ft[dn]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,dn=Object.getOwnPropertySymbols(Ft);En<dn.length;En++)Xt.indexOf(dn[En])<0&&Object.prototype.propertyIsEnumerable.call(Ft,dn[En])&&(tn[dn[En]]=Ft[dn[En]]);return tn};const St=Ft=>{let Xt=[];return Object.keys(Ft).forEach(tn=>{const dn=parseFloat(tn.replace(/%/g,""));isNaN(dn)||Xt.push({key:dn,value:Ft[tn]})}),Xt=Xt.sort((tn,dn)=>tn.key-dn.key),Xt.map(tn=>{let{key:dn,value:En}=tn;return`${En} ${dn}%`}).join(", ")},wt=(Ft,Xt)=>{const{from:tn=nt.presetPrimaryColors.blue,to:dn=nt.presetPrimaryColors.blue,direction:En=Xt==="rtl"?"to left":"to right"}=Ft,An=zt(Ft,["from","to","direction"]);if(Object.keys(An).length!==0){const ar=St(An);return{backgroundImage:`linear-gradient(${En}, ${ar})`}}return{backgroundImage:`linear-gradient(${En}, ${tn}, ${dn})`}};var Ye=Ft=>{const{prefixCls:Xt,direction:tn,percent:dn,size:En,strokeWidth:An,strokeColor:ar,strokeLinecap:tr="round",children:Tr,trailColor:Vn=null,success:Or}=Ft,Dr=ar&&typeof ar!="string"?wt(ar,tn):{backgroundColor:ar},Jr=tr==="square"||tr==="butt"?0:void 0,ni={backgroundColor:Vn||void 0,borderRadius:Jr},Nr=En!=null?En:[-1,An||(En==="small"?6:8)],[di,Ir]=ft(Nr,"line",{strokeWidth:An}),ot=Object.assign({width:`${it(dn)}%`,height:Ir,borderRadius:Jr},Dr),Ci=pt(Ft),xi={width:`${it(Ci)}%`,height:Ir,borderRadius:Jr,backgroundColor:Or==null?void 0:Or.strokeColor},pr={width:di<0?"100%":di,height:Ir};return tt.createElement(tt.Fragment,null,tt.createElement("div",{className:`${Xt}-outer`,style:pr},tt.createElement("div",{className:`${Xt}-inner`,style:ni},tt.createElement("div",{className:`${Xt}-bg`,style:ot}),Ci!==void 0?tt.createElement("div",{className:`${Xt}-success-bg`,style:xi}):null)),Tr)},Te=Ft=>{const{size:Xt,steps:tn,percent:dn=0,strokeWidth:En=8,strokeColor:An,trailColor:ar=null,prefixCls:tr,children:Tr}=Ft,Vn=Math.round(tn*(dn/100)),Or=Xt==="small"?2:14,Dr=Xt!=null?Xt:[Or,En],[Jr,ni]=ft(Dr,"step",{steps:tn,strokeWidth:En}),Nr=Jr/tn,di=new Array(tn);for(let Ir=0;Ir<tn;Ir++){const ot=Array.isArray(An)?An[Ir]:An;di[Ir]=tt.createElement("div",{key:Ir,className:ce()(`${tr}-steps-item`,{[`${tr}-steps-item-active`]:Ir<=Vn-1}),style:{backgroundColor:Ir<=Vn-1?ot:ar,width:Nr,height:ni}})}return tt.createElement("div",{className:`${tr}-steps-outer`},di,Tr)},Ve=$e(93083),Ze=$e(17313),Ee=$e(83116),He=$e(37613);const We=Ft=>{const Xt=Ft?"100%":"-100%";return new Ve.Keyframes(`antProgress${Ft?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Xt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Xt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ke=Ft=>{const{componentCls:Xt,iconCls:tn}=Ft;return{[Xt]:Object.assign(Object.assign({},(0,Ze.Wf)(Ft)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ft.fontSize,marginInlineEnd:Ft.marginXS,marginBottom:Ft.marginXS},[`${Xt}-outer`]:{display:"inline-block",width:"100%"},[`&${Xt}-show-info`]:{[`${Xt}-outer`]:{marginInlineEnd:`calc(-2em - ${Ft.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Ft.paddingXS}px)`}},[`${Xt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Ft.remainingColor,borderRadius:Ft.lineBorderRadius},[`${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:Ft.defaultColor}},[`${Xt}-success-bg, ${Xt}-bg`]:{position:"relative",backgroundColor:Ft.defaultColor,borderRadius:Ft.lineBorderRadius,transition:`all ${Ft.motionDurationSlow} ${Ft.motionEaseInOutCirc}`},[`${Xt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ft.colorSuccess},[`${Xt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Ft.marginXS,color:Ft.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[tn]:{fontSize:Ft.fontSize}},[`&${Xt}-status-active`]:{[`${Xt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ft.colorBgContainer,borderRadius:Ft.lineBorderRadius,opacity:0,animationName:We(),animationDuration:Ft.progressActiveMotionDuration,animationTimingFunction:Ft.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Xt}-rtl${Xt}-status-active`]:{[`${Xt}-bg::before`]:{animationName:We(!0)}},[`&${Xt}-status-exception`]:{[`${Xt}-bg`]:{backgroundColor:Ft.colorError},[`${Xt}-text`]:{color:Ft.colorError}},[`&${Xt}-status-exception ${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:Ft.colorError}},[`&${Xt}-status-success`]:{[`${Xt}-bg`]:{backgroundColor:Ft.colorSuccess},[`${Xt}-text`]:{color:Ft.colorSuccess}},[`&${Xt}-status-success ${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:Ft.colorSuccess}}})}},Je=Ft=>{const{componentCls:Xt,iconCls:tn}=Ft;return{[Xt]:{[`${Xt}-circle-trail`]:{stroke:Ft.remainingColor},[`&${Xt}-circle ${Xt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Xt}-circle ${Xt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ft.circleTextColor,fontSize:Ft.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[tn]:{fontSize:`${Ft.fontSize/Ft.fontSizeSM}em`}},[`${Xt}-circle&-status-exception`]:{[`${Xt}-text`]:{color:Ft.colorError}},[`${Xt}-circle&-status-success`]:{[`${Xt}-text`]:{color:Ft.colorSuccess}}},[`${Xt}-inline-circle`]:{lineHeight:1,[`${Xt}-inner`]:{verticalAlign:"bottom"}}}},dt=Ft=>{const{componentCls:Xt}=Ft;return{[Xt]:{[`${Xt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ft.progressStepMinWidth,marginInlineEnd:Ft.progressStepMarginInlineEnd,backgroundColor:Ft.remainingColor,transition:`all ${Ft.motionDurationSlow}`,"&-active":{backgroundColor:Ft.defaultColor}}}}}},Ct=Ft=>{const{componentCls:Xt,iconCls:tn}=Ft;return{[Xt]:{[`${Xt}-small&-line, ${Xt}-small&-line ${Xt}-text ${tn}`]:{fontSize:Ft.fontSizeSM}}}};var ht=(0,Ee.Z)("Progress",Ft=>{const Xt=Ft.marginXXS/2,tn=(0,He.TS)(Ft,{progressStepMarginInlineEnd:Xt,progressStepMinWidth:Xt,progressActiveMotionDuration:"2.4s"});return[Ke(tn),Je(tn),dt(tn),Ct(tn)]},Ft=>({circleTextColor:Ft.colorText,defaultColor:Ft.colorInfo,remainingColor:Ft.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Lt=function(Ft,Xt){var tn={};for(var dn in Ft)Object.prototype.hasOwnProperty.call(Ft,dn)&&Xt.indexOf(dn)<0&&(tn[dn]=Ft[dn]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,dn=Object.getOwnPropertySymbols(Ft);En<dn.length;En++)Xt.indexOf(dn[En])<0&&Object.prototype.propertyIsEnumerable.call(Ft,dn[En])&&(tn[dn[En]]=Ft[dn[En]]);return tn};const en=null,Vt=["normal","exception","active","success"];var Ut=tt.forwardRef((Ft,Xt)=>{const{prefixCls:tn,className:dn,rootClassName:En,steps:An,strokeColor:ar,percent:tr=0,size:Tr="default",showInfo:Vn=!0,type:Or="line",status:Dr,format:Jr,style:ni}=Ft,Nr=Lt(Ft,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),di=tt.useMemo(()=>{var Et,ln;const Pn=pt(Ft);return parseInt(Pn!==void 0?(Et=Pn!=null?Pn:0)===null||Et===void 0?void 0:Et.toString():(ln=tr!=null?tr:0)===null||ln===void 0?void 0:ln.toString(),10)},[tr,Ft.success,Ft.successPercent]),Ir=tt.useMemo(()=>!Vt.includes(Dr)&&di>=100?"success":Dr||"normal",[Dr,di]),{getPrefixCls:ot,direction:Ci,progress:xi}=tt.useContext(Le.E_),pr=ot("progress",tn),[Pr,Ar]=ht(pr),Li=tt.useMemo(()=>{if(!Vn)return null;const Et=pt(Ft);let ln;const Pn=Jr||(It=>`${It}%`),$t=Or==="line";return Jr||Ir!=="exception"&&Ir!=="success"?ln=Pn(it(tr),it(Et)):Ir==="exception"?ln=$t?tt.createElement(Ge.Z,null):tt.createElement(De.Z,null):Ir==="success"&&(ln=$t?tt.createElement(Pt.Z,null):tt.createElement(oe.Z,null)),tt.createElement("span",{className:`${pr}-text`,title:typeof ln=="string"?ln:void 0},ln)},[Vn,tr,di,Ir,Or,pr,Jr]),nr=Array.isArray(ar)?ar[0]:ar,or=typeof ar=="string"||Array.isArray(ar)?ar:void 0;let qt;Or==="line"?qt=An?tt.createElement(Te,Object.assign({},Ft,{strokeColor:or,prefixCls:pr,steps:An}),Li):tt.createElement(Ye,Object.assign({},Ft,{strokeColor:nr,prefixCls:pr,direction:Ci}),Li):(Or==="circle"||Or==="dashboard")&&(qt=tt.createElement(Tt,Object.assign({},Ft,{strokeColor:nr,prefixCls:pr,progressStatus:Ir}),Li));const Jt=ce()(pr,`${pr}-status-${Ir}`,`${pr}-${Or==="dashboard"&&"circle"||An&&"steps"||Or}`,{[`${pr}-inline-circle`]:Or==="circle"&&ft(Tr,"circle")[0]<=20,[`${pr}-show-info`]:Vn,[`${pr}-${Tr}`]:typeof Tr=="string",[`${pr}-rtl`]:Ci==="rtl"},xi==null?void 0:xi.className,dn,En,Ar);return Pr(tt.createElement("div",Object.assign({ref:Xt,style:Object.assign(Object.assign({},xi==null?void 0:xi.style),ni),className:Jt,role:"progressbar","aria-valuenow":di},(0,we.Z)(Nr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),qt))}),rn=Ut},13570:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return it}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(xt,yt){return Pt.createElement(De.Z,(0,tt.Z)({},xt,{ref:yt,icon:Ge}))},ce=Pt.forwardRef(me),we=ce,Le=$e(92310),Se=$e.n(Le),Oe=$e(90493),ve=$e(72071),xe=$e(6620),fe=$e(18929),z=$e(10228),ee=$e(26112);function ae(pt,xt){var yt=pt.disabled,ft=pt.prefixCls,gt=pt.character,mt=pt.characterRender,Nt=pt.index,Tt=pt.count,zt=pt.value,St=pt.allowHalf,wt=pt.focused,at=pt.onHover,Ye=pt.onClick,Pe=function(Je){at(Je,Nt)},Te=function(Je){Ye(Je,Nt)},Ve=function(Je){Je.keyCode===z.Z.ENTER&&Ye(Je,Nt)},Ze=Nt+1,Ee=new Set([ft]);zt===0&&Nt===0&&wt?Ee.add("".concat(ft,"-focused")):St&&zt+.5>=Ze&&zt<Ze?(Ee.add("".concat(ft,"-half")),Ee.add("".concat(ft,"-active")),wt&&Ee.add("".concat(ft,"-focused"))):(Ze<=zt?Ee.add("".concat(ft,"-full")):Ee.add("".concat(ft,"-zero")),Ze===zt&&wt&&Ee.add("".concat(ft,"-focused")));var He=typeof gt=="function"?gt(pt):gt,We=Pt.createElement("li",{className:Se()(Array.from(Ee)),ref:xt},Pt.createElement("div",{onClick:yt?null:Te,onKeyDown:yt?null:Ve,onMouseMove:yt?null:Pe,role:"radio","aria-checked":zt>Nt?"true":"false","aria-posinset":Nt+1,"aria-setsize":Tt,tabIndex:yt?-1:0},Pt.createElement("div",{className:"".concat(ft,"-first")},He),Pt.createElement("div",{className:"".concat(ft,"-second")},He)));return mt&&(We=mt(We,pt)),We}var re=Pt.forwardRef(ae);function le(){var pt=Pt.useRef({});function xt(ft){return pt.current[ft]}function yt(ft){return function(gt){pt.current[ft]=gt}}return[xt,yt]}function ue(pt){var xt=pt.pageXOffset,yt="scrollLeft";if(typeof xt!="number"){var ft=pt.document;xt=ft.documentElement[yt],typeof xt!="number"&&(xt=ft.body[yt])}return xt}function pe(pt){var xt,yt,ft=pt.ownerDocument,gt=ft.body,mt=ft&&ft.documentElement,Nt=pt.getBoundingClientRect();return xt=Nt.left,yt=Nt.top,xt-=mt.clientLeft||gt.clientLeft||0,yt-=mt.clientTop||gt.clientTop||0,{left:xt,top:yt}}function be(pt){var xt=pe(pt),yt=pt.ownerDocument,ft=yt.defaultView||yt.parentWindow;return xt.left+=ue(ft),xt.left}var Ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Fe(pt,xt){var yt,ft=pt.prefixCls,gt=ft===void 0?"rc-rate":ft,mt=pt.className,Nt=pt.defaultValue,Tt=pt.value,zt=pt.count,St=zt===void 0?5:zt,wt=pt.allowHalf,at=wt===void 0?!1:wt,Ye=pt.allowClear,Pe=Ye===void 0?!0:Ye,Te=pt.character,Ve=Te===void 0?"\u2605":Te,Ze=pt.characterRender,Ee=pt.disabled,He=pt.direction,We=He===void 0?"ltr":He,Ke=pt.tabIndex,Je=Ke===void 0?0:Ke,dt=pt.autoFocus,Ct=pt.onHoverChange,ht=pt.onChange,Lt=pt.onFocus,en=pt.onBlur,Vt=pt.onKeyDown,Kt=pt.onMouseLeave,Ut=(0,xe.Z)(pt,Ce),rn=le(),Ft=(0,ve.Z)(rn,2),Xt=Ft[0],tn=Ft[1],dn=Pt.useRef(null),En=function(){if(!Ee){var It;(It=dn.current)===null||It===void 0||It.focus()}};Pt.useImperativeHandle(xt,function(){return{focus:En,blur:function(){if(!Ee){var It;(It=dn.current)===null||It===void 0||It.blur()}}}});var An=(0,fe.Z)(Nt||0,{value:Tt}),ar=(0,ve.Z)(An,2),tr=ar[0],Tr=ar[1],Vn=(0,fe.Z)(null),Or=(0,ve.Z)(Vn,2),Dr=Or[0],Jr=Or[1],ni=function(It,fn){var un=We==="rtl",Gn=It+1;if(at){var Xn=Xt(It),Ht=be(Xn),kn=Xn.clientWidth;(un&&fn-Ht>kn/2||!un&&fn-Ht<kn/2)&&(Gn-=.5)}return Gn},Nr=function(It){Tr(It),ht==null||ht(It)},di=Pt.useState(!1),Ir=(0,ve.Z)(di,2),ot=Ir[0],Ci=Ir[1],xi=function(){Ci(!0),Lt==null||Lt()},pr=function(){Ci(!1),en==null||en()},Pr=Pt.useState(null),Ar=(0,ve.Z)(Pr,2),Li=Ar[0],nr=Ar[1],or=function(It,fn){var un=ni(fn,It.pageX);un!==Dr&&(nr(un),Jr(null)),Ct==null||Ct(un)},qt=function(It){Ee||(nr(null),Jr(null),Ct==null||Ct(void 0)),It&&(Kt==null||Kt(It))},Jt=function(It,fn){var un=ni(fn,It.pageX),Gn=!1;Pe&&(Gn=un===tr),qt(),Nr(Gn?0:un),Jr(Gn?un:null)},Et=function(It){var fn=It.keyCode,un=We==="rtl",Gn=tr;fn===z.Z.RIGHT&&Gn<St&&!un?(at?Gn+=.5:Gn+=1,Nr(Gn),It.preventDefault()):fn===z.Z.LEFT&&Gn>0&&!un||fn===z.Z.RIGHT&&Gn>0&&un?(at?Gn-=.5:Gn-=1,Nr(Gn),It.preventDefault()):fn===z.Z.LEFT&&Gn<St&&un&&(at?Gn+=.5:Gn+=1,Nr(Gn),It.preventDefault()),Vt==null||Vt(It)};Pt.useEffect(function(){dt&&!Ee&&En()},[]);var ln=new Array(St).fill(0).map(function($t,It){return Pt.createElement(re,{ref:tn(It),index:It,count:St,disabled:Ee,prefixCls:"".concat(gt,"-star"),allowHalf:at,value:Li===null?tr:Li,onClick:Jt,onHover:or,key:$t||It,character:Ve,characterRender:Ze,focused:ot})}),Pn=Se()(gt,mt,(yt={},(0,Oe.Z)(yt,"".concat(gt,"-disabled"),Ee),(0,Oe.Z)(yt,"".concat(gt,"-rtl"),We==="rtl"),yt));return Pt.createElement("ul",(0,tt.Z)({className:Pn,onMouseLeave:qt,tabIndex:Ee?-1:Je,onFocus:Ee?null:xi,onBlur:Ee?null:pr,onKeyDown:Ee?null:Et,ref:dn,role:"radiogroup"},(0,ee.Z)(Ut,{aria:!0,data:!0,attr:!0})),ln)}var je=Pt.forwardRef(Fe),ke=je,Ae=$e(36355),Be=$e(6848),_e=$e(17313),et=$e(83116),ze=$e(37613);const Xe=pt=>{const{componentCls:xt}=pt;return{[`${xt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:pt.marginXS},"> div":{transition:`all ${pt.motionDurationMid}, outline 0s`,"&:hover":{transform:pt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${pt.lineWidth}px dashed ${pt.starColor}`,transform:pt.starHoverScale}},"&-first, &-second":{color:pt.starBg,transition:`all ${pt.motionDurationMid}`,userSelect:"none",[pt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${xt}-star-first, &-half ${xt}-star-second`]:{opacity:1},[`&-half ${xt}-star-first, &-full ${xt}-star-second`]:{color:"inherit"}}}},Qe=pt=>({[`&-rtl${pt.componentCls}`]:{direction:"rtl"}}),lt=pt=>{const{componentCls:xt}=pt;return{[xt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(pt)),{display:"inline-block",margin:0,padding:0,color:pt.starColor,fontSize:pt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${xt} ${xt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Xe(pt)),{[`+ ${xt}-text`]:{display:"inline-block",marginInlineStart:pt.marginXS,fontSize:pt.fontSize}}),Qe(pt))}};var ct=(0,et.Z)("Rate",pt=>{const xt=(0,ze.TS)(pt,{});return[lt(xt)]},pt=>({starColor:pt.yellow6,starSize:pt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:pt.colorFillContent})),vt=function(pt,xt){var yt={};for(var ft in pt)Object.prototype.hasOwnProperty.call(pt,ft)&&xt.indexOf(ft)<0&&(yt[ft]=pt[ft]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,ft=Object.getOwnPropertySymbols(pt);gt<ft.length;gt++)xt.indexOf(ft[gt])<0&&Object.prototype.propertyIsEnumerable.call(pt,ft[gt])&&(yt[ft[gt]]=pt[ft[gt]]);return yt},it=Pt.forwardRef((pt,xt)=>{const{prefixCls:yt,className:ft,rootClassName:gt,style:mt,tooltips:Nt,character:Tt=Pt.createElement(we,null)}=pt,zt=vt(pt,["prefixCls","className","rootClassName","style","tooltips","character"]),St=(Ee,He)=>{let{index:We}=He;return Nt?Pt.createElement(Be.Z,{title:Nt[We]},Ee):Ee},{getPrefixCls:wt,direction:at,rate:Ye}=Pt.useContext(Ae.E_),Pe=wt("rate",yt),[Te,Ve]=ct(Pe),Ze=Object.assign(Object.assign({},Ye==null?void 0:Ye.style),mt);return Te(Pt.createElement(ke,Object.assign({ref:xt,character:Tt,characterRender:St},zt,{className:Se()(ft,gt,Ve,Ye==null?void 0:Ye.className),style:Ze,prefixCls:Pe,direction:at})))})},57809:function(Rn,wn,$e){"use strict";var tt=$e(92310),Pt=$e.n(tt),oe=$e(77861),Ge=$e(2738),De=$e(59301),me=$e(53487),ce=$e(62892),we=$e(19080),Le=$e(36355),Se=$e(1684),Oe=$e(93891),ve=$e(19716),xe=$e(32441),fe=$e(33234),z=$e(14154),ee=$e(58582),ae=$e(84443),re=$e(66339),le=function(Fe,je){var ke={};for(var Ae in Fe)Object.prototype.hasOwnProperty.call(Fe,Ae)&&je.indexOf(Ae)<0&&(ke[Ae]=Fe[Ae]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ae=Object.getOwnPropertySymbols(Fe);Be<Ae.length;Be++)je.indexOf(Ae[Be])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ae[Be])&&(ke[Ae[Be]]=Fe[Ae[Be]]);return ke};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Fe,je)=>{var ke,{prefixCls:Ae,bordered:Be=!0,className:_e,rootClassName:et,getPopupContainer:ze,popupClassName:Xe,dropdownClassName:Qe,listHeight:lt=256,placement:ct,listItemHeight:vt=24,size:nt,disabled:it,notFoundContent:pt,status:xt,builtinPlacements:yt,dropdownMatchSelectWidth:ft,popupMatchSelectWidth:gt,direction:mt,style:Nt,allowClear:Tt}=Fe,zt=le(Fe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:St,getPrefixCls:wt,renderEmpty:at,direction:Ye,virtual:Pe,popupMatchSelectWidth:Te,popupOverflow:Ve,select:Ze}=De.useContext(Le.E_),Ee=wt("select",Ae),He=wt(),We=mt!=null?mt:Ye,{compactSize:Ke,compactItemClassnames:Je}=(0,fe.ri)(Ee,We),[dt,Ct]=(0,z.Z)(Ee),ht=De.useMemo(()=>{const{mode:Ir}=zt;if(Ir!=="combobox")return Ir===ue?"combobox":Ir},[zt.mode]),Lt=ht==="multiple"||ht==="tags",en=(0,ae.Z)(zt.suffixIcon,zt.showArrow),Vt=(ke=gt!=null?gt:ft)!==null&&ke!==void 0?ke:Te,{status:Kt,hasFeedback:Ut,isFormItemInput:rn,feedbackIcon:Ft}=De.useContext(xe.aM),Xt=(0,we.F)(Kt,xt);let tn;pt!==void 0?tn=pt:ht==="combobox"?tn=null:tn=(at==null?void 0:at("Select"))||De.createElement(Oe.Z,{componentName:"Select"});const{suffixIcon:dn,itemIcon:En,removeIcon:An,clearIcon:ar}=(0,re.Z)(Object.assign(Object.assign({},zt),{multiple:Lt,hasFeedback:Ut,feedbackIcon:Ft,showSuffixIcon:en,prefixCls:Ee,showArrow:zt.showArrow,componentName:"Select"})),tr=Tt===!0?{clearIcon:ar}:Tt,Tr=(0,Ge.Z)(zt,["suffixIcon","itemIcon"]),Vn=Pt()(Xe||Qe,{[`${Ee}-dropdown-${We}`]:We==="rtl"},et,Ct),Or=(0,ve.Z)(Ir=>{var ot;return(ot=nt!=null?nt:Ke)!==null&&ot!==void 0?ot:Ir}),Dr=De.useContext(Se.Z),Jr=it!=null?it:Dr,ni=Pt()({[`${Ee}-lg`]:Or==="large",[`${Ee}-sm`]:Or==="small",[`${Ee}-rtl`]:We==="rtl",[`${Ee}-borderless`]:!Be,[`${Ee}-in-form-item`]:rn},(0,we.Z)(Ee,Xt,Ut),Je,Ze==null?void 0:Ze.className,_e,et,Ct),Nr=De.useMemo(()=>ct!==void 0?ct:We==="rtl"?"bottomRight":"bottomLeft",[ct,We]),di=(0,ee.Z)(yt,Ve);return dt(De.createElement(oe.ZP,Object.assign({ref:je,virtual:Pe,showSearch:Ze==null?void 0:Ze.showSearch},Tr,{style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Nt),dropdownMatchSelectWidth:Vt,builtinPlacements:di,transitionName:(0,ce.m)(He,"slide-up",zt.transitionName),listHeight:lt,listItemHeight:vt,mode:ht,prefixCls:Ee,placement:Nr,direction:We,suffixIcon:dn,menuItemSelectedIcon:En,removeIcon:An,allowClear:tr,notFoundContent:tn,className:ni,getPopupContainer:ze||St,dropdownClassName:Vn,disabled:Jr})))},be=De.forwardRef(pe),Ce=(0,me.Z)(be);be.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,be.Option=oe.Wx,be.OptGroup=oe.Xo,be._InternalPanelDoNotUseOrYouWillBeFired=Ce,wn.default=be},14154:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return be}});var tt=$e(17313),Pt=$e(74207),oe=$e(37613),Ge=$e(83116),De=$e(13826),me=$e(92899);const ce=Ce=>{const{optionHeight:Fe,optionFontSize:je,optionLineHeight:ke,optionPadding:Ae}=Ce;return{position:"relative",display:"block",minHeight:Fe,padding:Ae,color:Ce.colorText,fontWeight:"normal",fontSize:je,lineHeight:ke,boxSizing:"border-box"}};var Le=Ce=>{const{antCls:Fe,componentCls:je}=Ce,ke=`${je}-item`,Ae=`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active`,Be=`&${Fe}-slide-up-appear${Fe}-slide-up-appear-active`,_e=`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active`,et=`${je}-dropdown-placement-`;return[{[`${je}-dropdown`]:Object.assign(Object.assign({},(0,tt.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,[`
|
|
|
${Ae}${et}bottomLeft,
|
|
|
${Be}${et}bottomLeft
|
|
|
`]:{animationName:De.fJ},[`
|
|
|
${Ae}${et}topLeft,
|
|
|
${Be}${et}topLeft,
|
|
|
${Ae}${et}topRight,
|
|
|
${Be}${et}topRight
|
|
|
`]:{animationName:De.Qt},[`${_e}${et}bottomLeft`]:{animationName:De.Uw},[`
|
|
|
${_e}${et}topLeft,
|
|
|
${_e}${et}topRight
|
|
|
`]:{animationName:De.ly},"&-hidden":{display:"none"},[`${ke}`]:Object.assign(Object.assign({},ce(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"},tt.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,De.oN)(Ce,"slide-up"),(0,De.oN)(Ce,"slide-down"),(0,me.Fm)(Ce,"move-up"),(0,me.Fm)(Ce,"move-down")]};const Se=2,Oe=Ce=>{let{controlHeightSM:Fe,controlHeight:je,lineWidth:ke}=Ce;const Ae=(je-Fe)/2-ke,Be=Math.ceil(Ae/2);return[Ae,Be]};function ve(Ce,Fe){const{componentCls:je,iconCls:ke}=Ce,Ae=`${je}-selection-overflow`,Be=Ce.multipleSelectItemHeight,[_e]=Oe(Ce),et=Fe?`${je}-${Fe}`:"";return{[`${je}-multiple${et}`]:{fontSize:Ce.fontSize,[Ae]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${je}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${_e-Se}px ${Se*2}px`,borderRadius:Ce.borderRadius,[`${je}-show-search&`]:{cursor:"text"},[`${je}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Se}px 0`,lineHeight:`${Be}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${je}-show-arrow ${je}-selector,
|
|
|
&${je}-allow-clear ${je}-selector
|
|
|
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${je}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Be,marginTop:Se,marginBottom:Se,lineHeight:`${Be-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:Se*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${je}-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,tt.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}})},[`${Ae}-item + ${Ae}-item`]:{[`${je}-selection-search`]:{marginInlineStart:0}},[`${je}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-_e,"\n &-input,\n &-mirror\n ":{height:Be,fontFamily:Ce.fontFamily,lineHeight:`${Be}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"}},[`${je}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var fe=Ce=>{const{componentCls:Fe}=Ce,je=(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}),[,Ae]=Oe(Ce);return[ve(Ce),ve(je,"sm"),{[`${Fe}-multiple${Fe}-sm`]:{[`${Fe}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${Fe}-selection-search`]:{marginInlineStart:Ae}}},ve(ke,"lg")]};function z(Ce,Fe){const{componentCls:je,inputPaddingHorizontalBase:ke,borderRadius:Ae}=Ce,Be=Ce.controlHeight-Ce.lineWidth*2,_e=Math.ceil(Ce.fontSize*1.25),et=Fe?`${je}-${Fe}`:"";return{[`${je}-single${et}`]:{fontSize:Ce.fontSize,[`${je}-selector`]:Object.assign(Object.assign({},(0,tt.Wf)(Ce)),{display:"flex",borderRadius:Ae,[`${je}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ke,insetInlineEnd:ke,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${je}-selection-item,
|
|
|
${je}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Be}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Be}px`}},[`${je}-selection-item`]:{position:"relative",userSelect:"none"},[`${je}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${je}-selection-item:after`,`${je}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${je}-show-arrow ${je}-selection-item,
|
|
|
&${je}-show-arrow ${je}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:_e},[`&${je}-open ${je}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${je}-customize-input)`]:{[`${je}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${ke}px`,[`${je}-selection-search-input`]:{height:Be},"&:after":{lineHeight:`${Be}px`}}},[`&${je}-customize-input`]:{[`${je}-selector`]:{"&:after":{display:"none"},[`${je}-selection-search`]:{position:"static",width:"100%"},[`${je}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ke}px`,"&:after":{display:"none"}}}}}}}function ee(Ce){const{componentCls:Fe}=Ce,je=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[z(Ce),z((0,oe.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${Fe}-single${Fe}-sm`]:{[`&:not(${Fe}-customize-input)`]:{[`${Fe}-selection-search`]:{insetInlineStart:je,insetInlineEnd:je},[`${Fe}-selector`]:{padding:`0 ${je}px`},[`&${Fe}-show-arrow ${Fe}-selection-search`]:{insetInlineEnd:je+Ce.fontSize*1.5},[`
|
|
|
&${Fe}-show-arrow ${Fe}-selection-item,
|
|
|
&${Fe}-show-arrow ${Fe}-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:Fe,selectorBg:je}=Ce;return{position:"relative",backgroundColor:je,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${Fe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Fe}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${Fe}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(Ce,Fe){let je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ke,borderHoverColor:Ae,outlineColor:Be,antCls:_e}=Fe,et=je?{[`${ke}-selector`]:{borderColor:Ae}}:{};return{[Ce]:{[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${_e}-pagination-size-changer)`]:Object.assign(Object.assign({},et),{[`${ke}-focused& ${ke}-selector`]:{borderColor:Ae,boxShadow:`0 0 0 ${Fe.controlOutlineWidth}px ${Be}`,outline:0},[`&:hover ${ke}-selector`]:{borderColor:Ae}})}}},le=Ce=>{const{componentCls:Fe}=Ce;return{[`${Fe}-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:Fe,inputPaddingHorizontalBase:je,iconCls:ke}=Ce;return{[Fe]:Object.assign(Object.assign({},(0,tt.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Fe}-customize-input) ${Fe}-selector`]:Object.assign(Object.assign({},ae(Ce)),le(Ce)),[`${Fe}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},tt.vS),[`${Fe}-selection-placeholder`]:Object.assign(Object.assign({},tt.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${Fe}-arrow`]:Object.assign(Object.assign({},(0,tt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,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(${Fe}-suffix)`]:{pointerEvents:"auto"}},[`${Fe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Fe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,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":{[`${Fe}-clear`]:{opacity:1}}}),[`${Fe}-has-feedback`]:{[`${Fe}-clear`]:{insetInlineEnd:je+Ce.fontSize+Ce.paddingXS}}}},pe=Ce=>{const{componentCls:Fe}=Ce;return[{[Fe]:{[`&-borderless ${Fe}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Fe}-in-form-item`]:{width:"100%"}}},ue(Ce),ee(Ce),fe(Ce),Le(Ce),{[`${Fe}-rtl`]:{direction:"rtl"}},re(Fe,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),re(`${Fe}-status-error`,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),re(`${Fe}-status-warning`,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,Pt.c)(Ce,{borderElCls:`${Fe}-selector`,focusElCls:`${Fe}-focused`})]};var be=(0,Ge.Z)("Select",(Ce,Fe)=>{let{rootPrefixCls:je}=Fe;const ke=(0,oe.TS)(Ce,{rootPrefixCls:je,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[pe(ke)]},Ce=>{const{fontSize:Fe,lineHeight:je,controlHeight:ke,controlPaddingHorizontal:Ae,zIndexPopupBase:Be,colorText:_e,fontWeightStrong:et,controlItemBgActive:ze,controlItemBgHover:Xe,colorBgContainer:Qe,colorFillSecondary:lt,controlHeightLG:ct,controlHeightSM:vt,colorBgContainerDisabled:nt,colorTextDisabled:it}=Ce;return{zIndexPopup:Be+50,optionSelectedColor:_e,optionSelectedFontWeight:et,optionSelectedBg:ze,optionActiveBg:Xe,optionPadding:`${(ke-Fe*je)/2}px ${Ae}px`,optionFontSize:Fe,optionLineHeight:je,optionHeight:ke,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:ct,multipleItemBg:lt,multipleItemBorderColor:"transparent",multipleItemHeight:vt,multipleItemHeightLG:ke,multipleSelectorBgDisabled:nt,multipleItemColorDisabled:it,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Pt}});const tt=oe=>{const De={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},De),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},De),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},De),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},De),{points:["br","tr"],offset:[0,-4]})}};function Pt(oe,Ge){return oe||tt(Ge)}},84443:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return tt}});function tt(Pt,oe){return oe!==void 0?oe:Pt!==null}},66339:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});var tt=$e(40001),Pt=$e(19248),oe=$e(99267),Ge=$e(84105),De=$e(58617),me=$e(47472),ce=$e(59301);function we(Le){let{suffixIcon:Se,clearIcon:Oe,menuItemSelectedIcon:ve,removeIcon:xe,loading:fe,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Le;const be=Oe!=null?Oe:ce.createElement(Pt.Z,null),Ce=Ae=>Se===null&&!ee&&!ue?null:ce.createElement(ce.Fragment,null,re!==!1&&Ae,ee&&le);let Fe=null;if(Se!==void 0)Fe=Ce(Se);else if(fe)Fe=Ce(ce.createElement(De.Z,{spin:!0}));else{const Ae=`${ae}-suffix`;Fe=Be=>{let{open:_e,showSearch:et}=Be;return Ce(_e&&et?ce.createElement(me.Z,{className:Ae}):ce.createElement(Ge.Z,{className:Ae}))}}let je=null;ve!==void 0?je=ve:z?je=ce.createElement(tt.Z,null):je=null;let ke=null;return xe!==void 0?ke=xe:ke=ce.createElement(oe.Z,null),{clearIcon:be,suffixIcon:Fe,itemIcon:je,removeIcon:ke}}},61621:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Ve}});var tt=$e(92310),Pt=$e.n(tt),oe=$e(59301),Ge=$e(36355),De=$e(2738),ce=Ze=>{const{prefixCls:Ee,className:He,style:We,size:Ke,shape:Je}=Ze,dt=Pt()({[`${Ee}-lg`]:Ke==="large",[`${Ee}-sm`]:Ke==="small"}),Ct=Pt()({[`${Ee}-circle`]:Je==="circle",[`${Ee}-square`]:Je==="square",[`${Ee}-round`]:Je==="round"}),ht=oe.useMemo(()=>typeof Ke=="number"?{width:Ke,height:Ke,lineHeight:`${Ke}px`}:{},[Ke]);return oe.createElement("span",{className:Pt()(Ee,dt,Ct,He),style:Object.assign(Object.assign({},ht),We)})},we=$e(93083),Le=$e(83116),Se=$e(37613);const Oe=new we.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ve=Ze=>({height:Ze,lineHeight:`${Ze}px`}),xe=Ze=>Object.assign({width:Ze},ve(Ze)),fe=Ze=>({background:Ze.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Oe,animationDuration:Ze.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),z=Ze=>Object.assign({width:Ze*5,minWidth:Ze*5},ve(Ze)),ee=Ze=>{const{skeletonAvatarCls:Ee,gradientFromColor:He,controlHeight:We,controlHeightLG:Ke,controlHeightSM:Je}=Ze;return{[`${Ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:He},xe(We)),[`${Ee}${Ee}-circle`]:{borderRadius:"50%"},[`${Ee}${Ee}-lg`]:Object.assign({},xe(Ke)),[`${Ee}${Ee}-sm`]:Object.assign({},xe(Je))}},ae=Ze=>{const{controlHeight:Ee,borderRadiusSM:He,skeletonInputCls:We,controlHeightLG:Ke,controlHeightSM:Je,gradientFromColor:dt}=Ze;return{[`${We}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:dt,borderRadius:He},z(Ee)),[`${We}-lg`]:Object.assign({},z(Ke)),[`${We}-sm`]:Object.assign({},z(Je))}},re=Ze=>Object.assign({width:Ze},ve(Ze)),le=Ze=>{const{skeletonImageCls:Ee,imageSizeBase:He,gradientFromColor:We,borderRadiusSM:Ke}=Ze;return{[`${Ee}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:We,borderRadius:Ke},re(He*2)),{[`${Ee}-path`]:{fill:"#bfbfbf"},[`${Ee}-svg`]:Object.assign(Object.assign({},re(He)),{maxWidth:He*4,maxHeight:He*4}),[`${Ee}-svg${Ee}-svg-circle`]:{borderRadius:"50%"}}),[`${Ee}${Ee}-circle`]:{borderRadius:"50%"}}},ue=(Ze,Ee,He)=>{const{skeletonButtonCls:We}=Ze;return{[`${He}${We}-circle`]:{width:Ee,minWidth:Ee,borderRadius:"50%"},[`${He}${We}-round`]:{borderRadius:Ee}}},pe=Ze=>Object.assign({width:Ze*2,minWidth:Ze*2},ve(Ze)),be=Ze=>{const{borderRadiusSM:Ee,skeletonButtonCls:He,controlHeight:We,controlHeightLG:Ke,controlHeightSM:Je,gradientFromColor:dt}=Ze;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${He}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:dt,borderRadius:Ee,width:We*2,minWidth:We*2},pe(We))},ue(Ze,We,He)),{[`${He}-lg`]:Object.assign({},pe(Ke))}),ue(Ze,Ke,`${He}-lg`)),{[`${He}-sm`]:Object.assign({},pe(Je))}),ue(Ze,Je,`${He}-sm`))},Ce=Ze=>{const{componentCls:Ee,skeletonAvatarCls:He,skeletonTitleCls:We,skeletonParagraphCls:Ke,skeletonButtonCls:Je,skeletonInputCls:dt,skeletonImageCls:Ct,controlHeight:ht,controlHeightLG:Lt,controlHeightSM:en,gradientFromColor:Vt,padding:Kt,marginSM:Ut,borderRadius:rn,titleHeight:Ft,blockRadius:Xt,paragraphLiHeight:tn,controlHeightXS:dn,paragraphMarginTop:En}=Ze;return{[`${Ee}`]:{display:"table",width:"100%",[`${Ee}-header`]:{display:"table-cell",paddingInlineEnd:Kt,verticalAlign:"top",[`${He}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Vt},xe(ht)),[`${He}-circle`]:{borderRadius:"50%"},[`${He}-lg`]:Object.assign({},xe(Lt)),[`${He}-sm`]:Object.assign({},xe(en))},[`${Ee}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${We}`]:{width:"100%",height:Ft,background:Vt,borderRadius:Xt,[`+ ${Ke}`]:{marginBlockStart:en}},[`${Ke}`]:{padding:0,"> li":{width:"100%",height:tn,listStyle:"none",background:Vt,borderRadius:Xt,"+ li":{marginBlockStart:dn}}},[`${Ke}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ee}-content`]:{[`${We}, ${Ke} > li`]:{borderRadius:rn}}},[`${Ee}-with-avatar ${Ee}-content`]:{[`${We}`]:{marginBlockStart:Ut,[`+ ${Ke}`]:{marginBlockStart:En}}},[`${Ee}${Ee}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},be(Ze)),ee(Ze)),ae(Ze)),le(Ze)),[`${Ee}${Ee}-block`]:{width:"100%",[`${Je}`]:{width:"100%"},[`${dt}`]:{width:"100%"}},[`${Ee}${Ee}-active`]:{[`
|
|
|
${We},
|
|
|
${Ke} > li,
|
|
|
${He},
|
|
|
${Je},
|
|
|
${dt},
|
|
|
${Ct}
|
|
|
`]:Object.assign({},fe(Ze))}}};var Fe=(0,Le.Z)("Skeleton",Ze=>{const{componentCls:Ee}=Ze,He=(0,Se.TS)(Ze,{skeletonAvatarCls:`${Ee}-avatar`,skeletonTitleCls:`${Ee}-title`,skeletonParagraphCls:`${Ee}-paragraph`,skeletonButtonCls:`${Ee}-button`,skeletonInputCls:`${Ee}-input`,skeletonImageCls:`${Ee}-image`,imageSizeBase:Ze.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ze.gradientFromColor} 25%, ${Ze.gradientToColor} 37%, ${Ze.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(He)]},Ze=>{const{colorFillContent:Ee,colorFill:He}=Ze,We=Ee,Ke=He;return{color:We,colorGradientEnd:Ke,gradientFromColor:We,gradientToColor:Ke,titleHeight:Ze.controlHeight/2,blockRadius:Ze.borderRadiusSM,paragraphMarginTop:Ze.marginLG+Ze.marginXXS,paragraphLiHeight:Ze.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ke=Ze=>{const{prefixCls:Ee,className:He,rootClassName:We,active:Ke,shape:Je="circle",size:dt="default"}=Ze,{getPrefixCls:Ct}=oe.useContext(Ge.E_),ht=Ct("skeleton",Ee),[Lt,en]=Fe(ht),Vt=(0,De.Z)(Ze,["prefixCls","className"]),Kt=Pt()(ht,`${ht}-element`,{[`${ht}-active`]:Ke},He,We,en);return Lt(oe.createElement("div",{className:Kt},oe.createElement(ce,Object.assign({prefixCls:`${ht}-avatar`,shape:Je,size:dt},Vt))))},Be=Ze=>{const{prefixCls:Ee,className:He,rootClassName:We,active:Ke,block:Je=!1,size:dt="default"}=Ze,{getPrefixCls:Ct}=oe.useContext(Ge.E_),ht=Ct("skeleton",Ee),[Lt,en]=Fe(ht),Vt=(0,De.Z)(Ze,["prefixCls"]),Kt=Pt()(ht,`${ht}-element`,{[`${ht}-active`]:Ke,[`${ht}-block`]:Je},He,We,en);return Lt(oe.createElement("div",{className:Kt},oe.createElement(ce,Object.assign({prefixCls:`${ht}-button`,size:dt},Vt))))};const _e="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=Ze=>{const{prefixCls:Ee,className:He,rootClassName:We,style:Ke,active:Je}=Ze,{getPrefixCls:dt}=oe.useContext(Ge.E_),Ct=dt("skeleton",Ee),[ht,Lt]=Fe(Ct),en=Pt()(Ct,`${Ct}-element`,{[`${Ct}-active`]:Je},He,We,Lt);return ht(oe.createElement("div",{className:en},oe.createElement("div",{className:Pt()(`${Ct}-image`,He),style:Ke},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ct}-image-svg`},oe.createElement("path",{d:_e,className:`${Ct}-image-path`})))))},Qe=Ze=>{const{prefixCls:Ee,className:He,rootClassName:We,active:Ke,block:Je,size:dt="default"}=Ze,{getPrefixCls:Ct}=oe.useContext(Ge.E_),ht=Ct("skeleton",Ee),[Lt,en]=Fe(ht),Vt=(0,De.Z)(Ze,["prefixCls"]),Kt=Pt()(ht,`${ht}-element`,{[`${ht}-active`]:Ke,[`${ht}-block`]:Je},He,We,en);return Lt(oe.createElement("div",{className:Kt},oe.createElement(ce,Object.assign({prefixCls:`${ht}-input`,size:dt},Vt))))},lt=$e(96663),ct={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"},vt=ct,nt=$e(7657),it=function(Ee,He){return oe.createElement(nt.Z,(0,lt.Z)({},Ee,{ref:He,icon:vt}))},pt=oe.forwardRef(it),xt=pt,ft=Ze=>{const{prefixCls:Ee,className:He,rootClassName:We,style:Ke,active:Je,children:dt}=Ze,{getPrefixCls:Ct}=oe.useContext(Ge.E_),ht=Ct("skeleton",Ee),[Lt,en]=Fe(ht),Vt=Pt()(ht,`${ht}-element`,{[`${ht}-active`]:Je},en,He,We),Kt=dt!=null?dt:oe.createElement(xt,null);return Lt(oe.createElement("div",{className:Vt},oe.createElement("div",{className:Pt()(`${ht}-image`,He),style:Ke},Kt)))},gt=$e(19127),Nt=Ze=>{const Ee=Ct=>{const{width:ht,rows:Lt=2}=Ze;if(Array.isArray(ht))return ht[Ct];if(Lt-1===Ct)return ht},{prefixCls:He,className:We,style:Ke,rows:Je}=Ze,dt=(0,gt.Z)(Array(Je)).map((Ct,ht)=>oe.createElement("li",{key:ht,style:{width:Ee(ht)}}));return oe.createElement("ul",{className:Pt()(He,We),style:Ke},dt)},zt=Ze=>{let{prefixCls:Ee,className:He,width:We,style:Ke}=Ze;return oe.createElement("h3",{className:Pt()(Ee,He),style:Object.assign({width:We},Ke)})};function St(Ze){return Ze&&typeof Ze=="object"?Ze:{}}function wt(Ze,Ee){return Ze&&!Ee?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function at(Ze,Ee){return!Ze&&Ee?{width:"38%"}:Ze&&Ee?{width:"50%"}:{}}function Ye(Ze,Ee){const He={};return(!Ze||!Ee)&&(He.width="61%"),!Ze&&Ee?He.rows=3:He.rows=2,He}const Pe=Ze=>{const{prefixCls:Ee,loading:He,className:We,rootClassName:Ke,style:Je,children:dt,avatar:Ct=!1,title:ht=!0,paragraph:Lt=!0,active:en,round:Vt}=Ze,{getPrefixCls:Kt,direction:Ut,skeleton:rn}=oe.useContext(Ge.E_),Ft=Kt("skeleton",Ee),[Xt,tn]=Fe(Ft);if(He||!("loading"in Ze)){const dn=!!Ct,En=!!ht,An=!!Lt;let ar;if(dn){const Vn=Object.assign(Object.assign({prefixCls:`${Ft}-avatar`},wt(En,An)),St(Ct));ar=oe.createElement("div",{className:`${Ft}-header`},oe.createElement(ce,Object.assign({},Vn)))}let tr;if(En||An){let Vn;if(En){const Dr=Object.assign(Object.assign({prefixCls:`${Ft}-title`},at(dn,An)),St(ht));Vn=oe.createElement(zt,Object.assign({},Dr))}let Or;if(An){const Dr=Object.assign(Object.assign({prefixCls:`${Ft}-paragraph`},Ye(dn,En)),St(Lt));Or=oe.createElement(Nt,Object.assign({},Dr))}tr=oe.createElement("div",{className:`${Ft}-content`},Vn,Or)}const Tr=Pt()(Ft,{[`${Ft}-with-avatar`]:dn,[`${Ft}-active`]:en,[`${Ft}-rtl`]:Ut==="rtl",[`${Ft}-round`]:Vt},rn==null?void 0:rn.className,We,Ke,tn);return Xt(oe.createElement("div",{className:Tr,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),Je)},ar,tr))}return typeof dt!="undefined"?dt:null};Pe.Button=Be,Pe.Avatar=ke,Pe.Input=Qe,Pe.Image=ze,Pe.Node=ft;var Te=Pe,Ve=Te},81327:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return ae}});var tt=$e(59301),Pt=$e(92310),oe=$e.n(Pt),Ge=$e(11592),De=$e(36355),me=$e(33234);const ce=tt.createContext({latestIndex:0}),we=ce.Provider;var Se=re=>{let{className:le,index:ue,children:pe,split:be,style:Ce}=re;const{latestIndex:Fe}=tt.useContext(ce);return pe==null?null:tt.createElement(tt.Fragment,null,tt.createElement("div",{className:le,style:Ce},pe),ue<Fe&&be&&tt.createElement("span",{className:`${le}-split`},be))},Oe=$e(2856);function ve(re){return["small","middle","large"].includes(re)}function xe(re){return re?typeof re=="number"&&!Number.isNaN(re):!1}var fe=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 be=0,pe=Object.getOwnPropertySymbols(re);be<pe.length;be++)le.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[be])&&(ue[pe[be]]=re[pe[be]]);return ue};const ee=tt.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:be,space:Ce,direction:Fe}=tt.useContext(De.E_),{size:je=(Ce==null?void 0:Ce.size)||"small",align:ke,className:Ae,rootClassName:Be,children:_e,direction:et="horizontal",prefixCls:ze,split:Xe,style:Qe,wrap:lt=!1,classNames:ct,styles:vt}=re,nt=fe(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[it,pt]=Array.isArray(je)?je:[je,je],xt=ve(pt),yt=ve(it),ft=xe(pt),gt=xe(it),mt=(0,Ge.Z)(_e,{keepEmpty:!0}),Nt=ke===void 0&&et==="horizontal"?"center":ke,Tt=be("space",ze),[zt,St]=(0,Oe.Z)(Tt),wt=oe()(Tt,Ce==null?void 0:Ce.className,St,`${Tt}-${et}`,{[`${Tt}-rtl`]:Fe==="rtl",[`${Tt}-align-${Nt}`]:Nt,[`${Tt}-gap-row-${pt}`]:xt,[`${Tt}-gap-col-${it}`]:yt},Ae,Be),at=oe()(`${Tt}-item`,(ue=ct==null?void 0:ct.item)!==null&&ue!==void 0?ue:(pe=Ce==null?void 0:Ce.classNames)===null||pe===void 0?void 0:pe.item);let Ye=0;const Pe=mt.map((Ze,Ee)=>{var He,We;Ze!=null&&(Ye=Ee);const Ke=Ze&&Ze.key||`${at}-${Ee}`;return tt.createElement(Se,{className:at,key:Ke,index:Ee,split:Xe,style:(He=vt==null?void 0:vt.item)!==null&&He!==void 0?He:(We=Ce==null?void 0:Ce.styles)===null||We===void 0?void 0:We.item},Ze)}),Te=tt.useMemo(()=>({latestIndex:Ye}),[Ye]);if(mt.length===0)return null;const Ve={};return lt&&(Ve.flexWrap="wrap"),!yt&>&&(Ve.columnGap=it),!xt&&ft&&(Ve.rowGap=pt),zt(tt.createElement("div",Object.assign({ref:le,className:wt,style:Object.assign(Object.assign(Object.assign({},Ve),Ce==null?void 0:Ce.style),Qe)},nt),tt.createElement(we,{value:Te},Pe)))});ee.Compact=me.ZP;var ae=ee},31797:function(Rn,wn,$e){"use strict";$e.d(wn,{default:function(){return Fe}});var tt=$e(59301),Pt=$e(56762),oe=$e(92343),Ge=$e(92310),De=$e.n(Ge),me=$e(36355),ce=$e(61621),Le=je=>{const{value:ke,formatter:Ae,precision:Be,decimalSeparator:_e,groupSeparator:et="",prefixCls:ze}=je;let Xe;if(typeof Ae=="function")Xe=Ae(ke);else{const Qe=String(ke),lt=Qe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!lt||Qe==="-")Xe=Qe;else{const ct=lt[1];let vt=lt[2]||"0",nt=lt[4]||"";vt=vt.replace(/\B(?=(\d{3})+(?!\d))/g,et),typeof Be=="number"&&(nt=nt.padEnd(Be,"0").slice(0,Be>0?Be:0)),nt&&(nt=`${_e}${nt}`),Xe=[tt.createElement("span",{key:"int",className:`${ze}-content-value-int`},ct,vt),nt&&tt.createElement("span",{key:"decimal",className:`${ze}-content-value-decimal`},nt)]}}return tt.createElement("span",{className:`${ze}-content-value`},Xe)},Se=$e(17313),Oe=$e(83116),ve=$e(37613);const xe=je=>{const{componentCls:ke,marginXXS:Ae,padding:Be,colorTextDescription:_e,titleFontSize:et,colorTextHeading:ze,contentFontSize:Xe,fontFamily:Qe}=je;return{[`${ke}`]:Object.assign(Object.assign({},(0,Se.Wf)(je)),{[`${ke}-title`]:{marginBottom:Ae,color:_e,fontSize:et},[`${ke}-skeleton`]:{paddingTop:Be},[`${ke}-content`]:{color:ze,fontSize:Xe,fontFamily:Qe,[`${ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ke}-content-prefix, ${ke}-content-suffix`]:{display:"inline-block"},[`${ke}-content-prefix`]:{marginInlineEnd:Ae},[`${ke}-content-suffix`]:{marginInlineStart:Ae}}})}};var fe=(0,Oe.Z)("Statistic",je=>{const ke=(0,ve.TS)(je,{});return[xe(ke)]},je=>{const{fontSizeHeading3:ke,fontSize:Ae}=je;return{titleFontSize:Ae,contentFontSize:ke}}),ee=je=>{const{prefixCls:ke,className:Ae,rootClassName:Be,style:_e,valueStyle:et,value:ze=0,title:Xe,valueRender:Qe,prefix:lt,suffix:ct,loading:vt=!1,onMouseEnter:nt,onMouseLeave:it,decimalSeparator:pt=".",groupSeparator:xt=","}=je,{getPrefixCls:yt,direction:ft,statistic:gt}=tt.useContext(me.E_),mt=yt("statistic",ke),[Nt,Tt]=fe(mt),zt=tt.createElement(Le,Object.assign({decimalSeparator:pt,groupSeparator:xt,prefixCls:mt},je,{value:ze})),St=De()(mt,{[`${mt}-rtl`]:ft==="rtl"},gt==null?void 0:gt.className,Ae,Be,Tt);return Nt(tt.createElement("div",{className:St,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),_e),onMouseEnter:nt,onMouseLeave:it},Xe&&tt.createElement("div",{className:`${mt}-title`},Xe),tt.createElement(ce.Z,{paragraph:!1,loading:vt,className:`${mt}-skeleton`},tt.createElement("div",{style:et,className:`${mt}-content`},lt&&tt.createElement("span",{className:`${mt}-content-prefix`},lt),Qe?Qe(zt):zt,ct&&tt.createElement("span",{className:`${mt}-content-suffix`},ct)))))};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(je,ke){let Ae=je;const Be=/\[[^\]]*]/g,_e=(ke.match(Be)||[]).map(Qe=>Qe.slice(1,-1)),et=ke.replace(Be,"[]"),ze=ae.reduce((Qe,lt)=>{let[ct,vt]=lt;if(Qe.includes(ct)){const nt=Math.floor(Ae/vt);return Ae-=nt*vt,Qe.replace(new RegExp(`${ct}+`,"g"),it=>{const pt=it.length;return nt.toString().padStart(pt,"0")})}return Qe},et);let Xe=0;return ze.replace(Be,()=>{const Qe=_e[Xe];return Xe+=1,Qe})}function le(je,ke){const{format:Ae=""}=ke,Be=new Date(je).getTime(),_e=Date.now(),et=Math.max(Be-_e,0);return re(et,Ae)}const ue=1e3/30;function pe(je){return new Date(je).getTime()}const be=je=>{const{value:ke,format:Ae="HH:mm:ss",onChange:Be,onFinish:_e}=je,et=(0,Pt.Z)(),ze=tt.useRef(null),Xe=()=>{_e==null||_e(),ze.current&&(clearInterval(ze.current),ze.current=null)},Qe=()=>{const vt=pe(ke);vt>=Date.now()&&(ze.current=setInterval(()=>{et(),Be==null||Be(vt-Date.now()),vt<Date.now()&&Xe()},ue))};tt.useEffect(()=>(Qe(),()=>{ze.current&&(clearInterval(ze.current),ze.current=null)}),[ke]);const lt=(vt,nt)=>le(vt,Object.assign(Object.assign({},nt),{format:Ae})),ct=vt=>(0,oe.Tm)(vt,{title:void 0});return tt.createElement(ee,Object.assign({},je,{valueRender:ct,formatter:lt}))};var Ce=tt.memo(be);ee.Countdown=Ce;var Fe=ee},15969:function(Rn,wn,$e){"use strict";$e.d(wn,{N:function(){return tt}});const tt=Pt=>({color:Pt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Pt.motionDurationSlow}`,"&:focus, &:hover":{color:Pt.colorLinkHover},"&:active":{color:Pt.colorLinkActive}})},78673:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return et}});var tt=$e(58617),Pt=$e(92310),oe=$e.n(Pt),Ge=$e(96663),De=$e(90493),me=$e(72071),ce=$e(6620),we=$e(59301),Le=$e(18929),Se=$e(10228),Oe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ve=we.forwardRef(function(ze,Xe){var Qe,lt=ze.prefixCls,ct=lt===void 0?"rc-switch":lt,vt=ze.className,nt=ze.checked,it=ze.defaultChecked,pt=ze.disabled,xt=ze.loadingIcon,yt=ze.checkedChildren,ft=ze.unCheckedChildren,gt=ze.onClick,mt=ze.onChange,Nt=ze.onKeyDown,Tt=(0,ce.Z)(ze,Oe),zt=(0,Le.Z)(!1,{value:nt,defaultValue:it}),St=(0,me.Z)(zt,2),wt=St[0],at=St[1];function Ye(Ze,Ee){var He=wt;return pt||(He=Ze,at(He),mt==null||mt(He,Ee)),He}function Pe(Ze){Ze.which===Se.Z.LEFT?Ye(!1,Ze):Ze.which===Se.Z.RIGHT&&Ye(!0,Ze),Nt==null||Nt(Ze)}function Te(Ze){var Ee=Ye(!wt,Ze);gt==null||gt(Ee,Ze)}var Ve=oe()(ct,vt,(Qe={},(0,De.Z)(Qe,"".concat(ct,"-checked"),wt),(0,De.Z)(Qe,"".concat(ct,"-disabled"),pt),Qe));return we.createElement("button",(0,Ge.Z)({},Tt,{type:"button",role:"switch","aria-checked":wt,disabled:pt,className:Ve,ref:Xe,onKeyDown:Pe,onClick:Te}),xt,we.createElement("span",{className:"".concat(ct,"-inner")},we.createElement("span",{className:"".concat(ct,"-inner-checked")},yt),we.createElement("span",{className:"".concat(ct,"-inner-unchecked")},ft)))});ve.displayName="Switch";var xe=ve,fe=$e(14088),z=$e(36355),ee=$e(1684),ae=$e(19716),re=$e(64993),le=$e(17313),ue=$e(83116),pe=$e(37613);const be=ze=>{const{componentCls:Xe,trackHeightSM:Qe,trackPadding:lt,trackMinWidthSM:ct,innerMinMarginSM:vt,innerMaxMarginSM:nt,handleSizeSM:it}=ze,pt=`${Xe}-inner`;return{[Xe]:{[`&${Xe}-small`]:{minWidth:ct,height:Qe,lineHeight:`${Qe}px`,[`${Xe}-inner`]:{paddingInlineStart:nt,paddingInlineEnd:vt,[`${pt}-checked`]:{marginInlineStart:`calc(-100% + ${it+lt*2}px - ${nt*2}px)`,marginInlineEnd:`calc(100% - ${it+lt*2}px + ${nt*2}px)`},[`${pt}-unchecked`]:{marginTop:-Qe,marginInlineStart:0,marginInlineEnd:0}},[`${Xe}-handle`]:{width:it,height:it},[`${Xe}-loading-icon`]:{top:(it-ze.switchLoadingIconSize)/2,fontSize:ze.switchLoadingIconSize},[`&${Xe}-checked`]:{[`${Xe}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:nt,[`${pt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pt}-unchecked`]:{marginInlineStart:`calc(100% - ${it+lt*2}px + ${nt*2}px)`,marginInlineEnd:`calc(-100% + ${it+lt*2}px - ${nt*2}px)`}},[`${Xe}-handle`]:{insetInlineStart:`calc(100% - ${it+lt}px)`}},[`&:not(${Xe}-disabled):active`]:{[`&:not(${Xe}-checked) ${pt}`]:{[`${pt}-unchecked`]:{marginInlineStart:ze.marginXXS/2,marginInlineEnd:-ze.marginXXS/2}},[`&${Xe}-checked ${pt}`]:{[`${pt}-checked`]:{marginInlineStart:-ze.marginXXS/2,marginInlineEnd:ze.marginXXS/2}}}}}}},Ce=ze=>{const{componentCls:Xe,handleSize:Qe}=ze;return{[Xe]:{[`${Xe}-loading-icon${ze.iconCls}`]:{position:"relative",top:(Qe-ze.fontSize)/2,color:ze.switchLoadingIconColor,verticalAlign:"top"},[`&${Xe}-checked ${Xe}-loading-icon`]:{color:ze.switchColor}}}},Fe=ze=>{const{componentCls:Xe,motion:Qe,trackPadding:lt,handleBg:ct,handleShadow:vt,handleSize:nt}=ze,it=`${Xe}-handle`;return{[Xe]:{[it]:{position:"absolute",top:lt,insetInlineStart:lt,width:nt,height:nt,transition:`all ${ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ct,borderRadius:nt/2,boxShadow:vt,transition:`all ${ze.switchDuration} ease-in-out`,content:'""'}},[`&${Xe}-checked ${it}`]:{insetInlineStart:`calc(100% - ${nt+lt}px)`},[`&:not(${Xe}-disabled):active`]:Qe?{[`${it}::before`]:{insetInlineEnd:ze.switchHandleActiveInset,insetInlineStart:0},[`&${Xe}-checked ${it}::before`]:{insetInlineEnd:0,insetInlineStart:ze.switchHandleActiveInset}}:{}}}},je=ze=>{const{componentCls:Xe,trackHeight:Qe,trackPadding:lt,innerMinMargin:ct,innerMaxMargin:vt,handleSize:nt}=ze,it=`${Xe}-inner`;return{[Xe]:{[it]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:vt,paddingInlineEnd:ct,transition:`padding-inline-start ${ze.switchDuration} ease-in-out, padding-inline-end ${ze.switchDuration} ease-in-out`,[`${it}-checked, ${it}-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"},[`${it}-checked`]:{marginInlineStart:`calc(-100% + ${nt+lt*2}px - ${vt*2}px)`,marginInlineEnd:`calc(100% - ${nt+lt*2}px + ${vt*2}px)`},[`${it}-unchecked`]:{marginTop:-Qe,marginInlineStart:0,marginInlineEnd:0}},[`&${Xe}-checked ${it}`]:{paddingInlineStart:ct,paddingInlineEnd:vt,[`${it}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${it}-unchecked`]:{marginInlineStart:`calc(100% - ${nt+lt*2}px + ${vt*2}px)`,marginInlineEnd:`calc(-100% + ${nt+lt*2}px - ${vt*2}px)`}},[`&:not(${Xe}-disabled):active`]:{[`&:not(${Xe}-checked) ${it}`]:{[`${it}-unchecked`]:{marginInlineStart:lt*2,marginInlineEnd:-lt*2}},[`&${Xe}-checked ${it}`]:{[`${it}-checked`]:{marginInlineStart:-lt*2,marginInlineEnd:lt*2}}}}}},ke=ze=>{const{componentCls:Xe,trackHeight:Qe,trackMinWidth:lt}=ze;return{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:lt,height:Qe,lineHeight:`${Qe}px`,verticalAlign:"middle",background:ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Xe}-disabled)`]:{background:ze.colorTextTertiary}}),(0,le.Qy)(ze)),{[`&${Xe}-checked`]:{background:ze.switchColor,[`&:hover:not(${Xe}-disabled)`]:{background:ze.colorPrimaryHover}},[`&${Xe}-loading, &${Xe}-disabled`]:{cursor:"not-allowed",opacity:ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Xe}-rtl`]:{direction:"rtl"}})}};var Ae=(0,ue.Z)("Switch",ze=>{const Xe=(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(Xe),je(Xe),Fe(Xe),Ce(Xe),be(Xe)]},ze=>{const{fontSize:Xe,lineHeight:Qe,controlHeight:lt,colorWhite:ct}=ze,vt=Xe*Qe,nt=lt/2,it=2,pt=vt-it*2,xt=nt-it*2;return{trackHeight:vt,trackHeightSM:nt,trackMinWidth:pt*2+it*4,trackMinWidthSM:xt*2+it*2,trackPadding:it,handleBg:ct,handleSize:pt,handleSizeSM:xt,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:pt/2,innerMaxMargin:pt+it+it*2,innerMinMarginSM:xt/2,innerMaxMarginSM:xt+it+it*2}}),Be=function(ze,Xe){var Qe={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Xe.indexOf(lt)<0&&(Qe[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,lt=Object.getOwnPropertySymbols(ze);ct<lt.length;ct++)Xe.indexOf(lt[ct])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[ct])&&(Qe[lt[ct]]=ze[lt[ct]]);return Qe};const _e=we.forwardRef((ze,Xe)=>{const{prefixCls:Qe,size:lt,disabled:ct,loading:vt,className:nt,rootClassName:it,style:pt}=ze,xt=Be(ze,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:yt,direction:ft,switch:gt}=we.useContext(z.E_),mt=we.useContext(ee.Z),Nt=(ct!=null?ct:mt)||vt,Tt=yt("switch",Qe),zt=we.createElement("div",{className:`${Tt}-handle`},vt&&we.createElement(tt.Z,{className:`${Tt}-loading-icon`})),[St,wt]=Ae(Tt),at=(0,ae.Z)(lt),Ye=oe()(gt==null?void 0:gt.className,{[`${Tt}-small`]:at==="small",[`${Tt}-loading`]:vt,[`${Tt}-rtl`]:ft==="rtl"},nt,it,wt),Pe=Object.assign(Object.assign({},gt==null?void 0:gt.style),pt);return St(we.createElement(fe.Z,{component:"Switch"},we.createElement(xe,Object.assign({},xt,{prefixCls:Tt,className:Ye,style:Pe,disabled:Nt,ref:Xe,loadingIcon:zt}))))});_e.__ANT_SWITCH=!0;var et=_e},1710:function(Rn,wn,$e){"use strict";$e.d(wn,{default:function(){return $p}});var tt={},Pt="rc-table-internal-hook",oe=$e(72071),Ge=$e(6089),De=$e(34280),me=$e(13697),ce=$e(59301),we=$e(4676);function Le(Dt){var Rt=ce.createContext(void 0),nn=function(Tn){var pn=Tn.value,Bn=Tn.children,_n=ce.useRef(pn);_n.current=pn;var In=ce.useState(function(){return{getValue:function(){return _n.current},listeners:new Set}}),Qn=(0,oe.Z)(In,1),ir=Qn[0];return(0,De.Z)(function(){(0,we.unstable_batchedUpdates)(function(){ir.listeners.forEach(function(er){er(pn)})})},[pn]),ce.createElement(Rt.Provider,{value:ir},Bn)};return{Context:Rt,Provider:nn,defaultValue:Dt}}function Se(Dt,Rt){var nn=(0,Ge.Z)(typeof Rt=="function"?Rt:function(er){if(Rt===void 0)return er;if(!Array.isArray(Rt))return er[Rt];var jr={};return Rt.forEach(function(Mr){jr[Mr]=er[Mr]}),jr}),sn=ce.useContext(Dt==null?void 0:Dt.Context),Tn=sn||{},pn=Tn.listeners,Bn=Tn.getValue,_n=ce.useRef();_n.current=nn(sn?Bn():Dt==null?void 0:Dt.defaultValue);var In=ce.useState({}),Qn=(0,oe.Z)(In,2),ir=Qn[1];return(0,De.Z)(function(){if(!sn)return;function er(jr){var Mr=nn(jr);(0,me.Z)(_n.current,Mr,!0)||ir({})}return pn.add(er),function(){pn.delete(er)}},[sn]),_n.current}var Oe=$e(96663),ve=$e(8654);function xe(){var Dt=ce.createContext(null);function Rt(){return ce.useContext(Dt)}function nn(Tn,pn){var Bn=(0,ve.Yr)(Tn),_n=function(Qn,ir){var er=Bn?{ref:ir}:{},jr=ce.useRef(0),Mr=ce.useRef(Qn),vr=Rt();return vr!==null?ce.createElement(Tn,(0,Oe.Z)({},Qn,er)):((!pn||pn(Mr.current,Qn))&&(jr.current+=1),Mr.current=Qn,ce.createElement(Dt.Provider,{value:jr.current},ce.createElement(Tn,(0,Oe.Z)({},Qn,er))))};return Bn?ce.forwardRef(_n):_n}function sn(Tn,pn){var Bn=(0,ve.Yr)(Tn),_n=function(Qn,ir){var er=Bn?{ref:ir}:{};return Rt(),ce.createElement(Tn,(0,Oe.Z)({},Qn,er))};return Bn?ce.memo(ce.forwardRef(_n),pn):ce.memo(_n,pn)}return{makeImmutable:nn,responseImmutable:sn,useImmutableMark:Rt}}var fe=xe(),z=fe.makeImmutable,ee=fe.responseImmutable,ae=fe.useImmutableMark,re=xe(),le=re.makeImmutable,ue=re.responseImmutable,pe=re.useImmutableMark,be=Le(),Ce=be;function Fe(Dt,Rt){var nn=ce.useRef(0);nn.current+=1;var sn=ce.useRef(Dt),Tn=[];Object.keys(Dt||{}).map(function(Bn){var _n;(Dt==null?void 0:Dt[Bn])!==((_n=sn.current)===null||_n===void 0?void 0:_n[Bn])&&Tn.push(Bn)}),sn.current=Dt;var pn=ce.useRef([]);return Tn.length&&(pn.current=Tn),ce.useDebugValue(nn.current),ce.useDebugValue(pn.current.join(", ")),Rt&&console.log("".concat(Rt,":"),nn.current,pn.current),nn.current}var je=null,ke=ce.memo(function(){var Dt=Fe();return ce.createElement("h1",null,"Render Times: ",Dt)});ke.displayName="RenderBlock";var Ae=$e(20135),Be=$e(44127),_e=$e(90493),et=$e(92310),ze=$e.n(et),Xe=$e(80547),Qe=$e(97938),lt=$e(48736),ct=ce.createContext({renderWithProps:!1}),vt=ct,nt="RC_TABLE_KEY";function it(Dt){return Dt==null?[]:Array.isArray(Dt)?Dt:[Dt]}function pt(Dt){var Rt=[],nn={};return Dt.forEach(function(sn){for(var Tn=sn||{},pn=Tn.key,Bn=Tn.dataIndex,_n=pn||it(Bn).join("-")||nt;nn[_n];)_n="".concat(_n,"_next");nn[_n]=!0,Rt.push(_n)}),Rt}function xt(Dt){return Dt!=null}function yt(Dt){return Dt&&(0,Ae.Z)(Dt)==="object"&&!Array.isArray(Dt)&&!ce.isValidElement(Dt)}function ft(Dt,Rt,nn,sn,Tn,pn){var Bn=ce.useContext(vt),_n=pe(),In=(0,Xe.Z)(function(){if(xt(sn))return[sn];var Qn=Rt==null||Rt===""?[]:Array.isArray(Rt)?Rt:[Rt],ir=(0,Qe.Z)(Dt,Qn),er=ir,jr=void 0;if(Tn){var Mr=Tn(ir,Dt,nn);yt(Mr)?(er=Mr.children,jr=Mr.props,Bn.renderWithProps=!0):er=Mr}return[er,jr]},[_n,Dt,sn,Rt,Tn,nn],function(Qn,ir){if(pn){var er=(0,oe.Z)(Qn,2),jr=er[1],Mr=(0,oe.Z)(ir,2),vr=Mr[1];return pn(vr,jr)}return Bn.renderWithProps?!0:!(0,me.Z)(Qn,ir,!0)});return In}function gt(Dt,Rt,nn,sn){var Tn=Dt+Rt-1;return Dt<=sn&&Tn>=nn}function mt(Dt,Rt){return Se(Ce,function(nn){var sn=gt(Dt,Rt||1,nn.hoverStartRow,nn.hoverEndRow);return[sn,nn.onHover]})}var Nt=function(Rt){var nn=Rt.ellipsis,sn=Rt.rowType,Tn=Rt.children,pn,Bn=nn===!0?{showTitle:!0}:nn;return Bn&&(Bn.showTitle||sn==="header")&&(typeof Tn=="string"||typeof Tn=="number"?pn=Tn.toString():ce.isValidElement(Tn)&&typeof Tn.props.children=="string"&&(pn=Tn.props.children)),pn};function Tt(Dt){var Rt,nn,sn,Tn,pn,Bn,_n,In,Qn=Dt.component,ir=Dt.children,er=Dt.ellipsis,jr=Dt.scope,Mr=Dt.prefixCls,vr=Dt.className,ei=Dt.align,Cr=Dt.record,Xr=Dt.render,Zr=Dt.dataIndex,hi=Dt.renderIndex,Ai=Dt.shouldCellUpdate,Wi=Dt.index,oi=Dt.rowType,Ni=Dt.colSpan,ho=Dt.rowSpan,ui=Dt.fixLeft,Ei=Dt.fixRight,li=Dt.firstFixLeft,Gr=Dt.lastFixLeft,yi=Dt.firstFixRight,Ri=Dt.lastFixRight,Xi=Dt.appendNode,Ji=Dt.additionalProps,ai=Ji===void 0?{}:Ji,po=Dt.isSticky,wo="".concat(Mr,"-cell"),Jo=Se(Ce,["supportSticky","allColumnsFixedLeft"]),Oo=Jo.supportSticky,ka=Jo.allColumnsFixedLeft,Ea=ft(Cr,Zr,hi,ir,Xr,Ai),vo=(0,oe.Z)(Ea,2),Hi=vo[0],Uo=vo[1],Na={},va=typeof ui=="number"&&Oo,ns=typeof Ei=="number"&&Oo;va&&(Na.position="sticky",Na.left=ui),ns&&(Na.position="sticky",Na.right=Ei);var Qi=(Rt=(nn=(sn=Uo==null?void 0:Uo.colSpan)!==null&&sn!==void 0?sn:ai.colSpan)!==null&&nn!==void 0?nn:Ni)!==null&&Rt!==void 0?Rt:1,Vi=(Tn=(pn=(Bn=Uo==null?void 0:Uo.rowSpan)!==null&&Bn!==void 0?Bn:ai.rowSpan)!==null&&pn!==void 0?pn:ho)!==null&&Tn!==void 0?Tn:1,qi=mt(Wi,Vi),ji=(0,oe.Z)(qi,2),Vo=ji[0],Ii=ji[1],fo=function(qa){var ps;Cr&&Ii(Wi,Wi+Vi-1),ai==null||(ps=ai.onMouseEnter)===null||ps===void 0||ps.call(ai,qa)},Fo=function(qa){var ps;Cr&&Ii(-1,-1),ai==null||(ps=ai.onMouseLeave)===null||ps===void 0||ps.call(ai,qa)};if(Qi===0||Vi===0)return null;var Bo=(_n=ai.title)!==null&&_n!==void 0?_n:Nt({rowType:oi,ellipsis:er,children:Hi}),bs=ze()(wo,vr,(In={},(0,_e.Z)(In,"".concat(wo,"-fix-left"),va&&Oo),(0,_e.Z)(In,"".concat(wo,"-fix-left-first"),li&&Oo),(0,_e.Z)(In,"".concat(wo,"-fix-left-last"),Gr&&Oo),(0,_e.Z)(In,"".concat(wo,"-fix-left-all"),Gr&&ka&&Oo),(0,_e.Z)(In,"".concat(wo,"-fix-right"),ns&&Oo),(0,_e.Z)(In,"".concat(wo,"-fix-right-first"),yi&&Oo),(0,_e.Z)(In,"".concat(wo,"-fix-right-last"),Ri&&Oo),(0,_e.Z)(In,"".concat(wo,"-ellipsis"),er),(0,_e.Z)(In,"".concat(wo,"-with-append"),Xi),(0,_e.Z)(In,"".concat(wo,"-fix-sticky"),(va||ns)&&po&&Oo),(0,_e.Z)(In,"".concat(wo,"-row-hover"),!Uo&&Vo),In),ai.className,Uo==null?void 0:Uo.className),ss={};ei&&(ss.textAlign=ei);var Hs=(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({},Na),ai.style),ss),Uo==null?void 0:Uo.style),Qo=Hi;return(0,Ae.Z)(Qo)==="object"&&!Array.isArray(Qo)&&!ce.isValidElement(Qo)&&(Qo=null),er&&(Gr||yi)&&(Qo=ce.createElement("span",{className:"".concat(wo,"-content")},Qo)),ce.createElement(Qn,(0,Oe.Z)({},Uo,ai,{className:bs,style:Hs,title:Bo,scope:jr,onMouseEnter:fo,onMouseLeave:Fo,colSpan:Qi!==1?Qi:null,rowSpan:Vi!==1?Vi:null}),Xi,Qo)}var zt=ce.memo(Tt);function St(Dt,Rt,nn,sn,Tn,pn){var Bn=nn[Dt]||{},_n=nn[Rt]||{},In,Qn;Bn.fixed==="left"?In=sn.left[Tn==="rtl"?Rt:Dt]:_n.fixed==="right"&&(Qn=sn.right[Tn==="rtl"?Dt:Rt]);var ir=!1,er=!1,jr=!1,Mr=!1,vr=nn[Rt+1],ei=nn[Dt-1],Cr=!(pn!=null&&pn.children);if(Tn==="rtl"){if(In!==void 0){var Xr=ei&&ei.fixed==="left";Mr=!Xr&&Cr}else if(Qn!==void 0){var Zr=vr&&vr.fixed==="right";jr=!Zr&&Cr}}else if(In!==void 0){var hi=vr&&vr.fixed==="left";ir=!hi&&Cr}else if(Qn!==void 0){var Ai=ei&&ei.fixed==="right";er=!Ai&&Cr}return{fixLeft:In,fixRight:Qn,lastFixLeft:ir,firstFixRight:er,lastFixRight:jr,firstFixLeft:Mr,isSticky:sn.isSticky}}var wt=ce.createContext({}),at=wt;function Ye(Dt){var Rt=Dt.className,nn=Dt.index,sn=Dt.children,Tn=Dt.colSpan,pn=Tn===void 0?1:Tn,Bn=Dt.rowSpan,_n=Dt.align,In=Se(Ce,["prefixCls","direction"]),Qn=In.prefixCls,ir=In.direction,er=ce.useContext(at),jr=er.scrollColumnIndex,Mr=er.stickyOffsets,vr=er.flattenColumns,ei=er.columns,Cr=nn+pn-1,Xr=Cr+1===jr?pn+1:pn,Zr=St(nn,nn+Xr-1,vr,Mr,ir,ei==null?void 0:ei[nn]);return ce.createElement(zt,(0,Oe.Z)({className:Rt,index:nn,component:"td",prefixCls:Qn,record:null,dataIndex:null,align:_n,colSpan:Xr,rowSpan:Bn,render:function(){return sn}},Zr))}var Pe=$e(6620),Te=["children"];function Ve(Dt){var Rt=Dt.children,nn=(0,Pe.Z)(Dt,Te);return ce.createElement("tr",nn,Rt)}function Ze(Dt){var Rt=Dt.children;return Rt}Ze.Row=Ve,Ze.Cell=Ye;var Ee=Ze;function He(Dt){var Rt=Dt.children,nn=Dt.stickyOffsets,sn=Dt.flattenColumns,Tn=Dt.columns,pn=Se(Ce,"prefixCls"),Bn=sn.length-1,_n=sn[Bn],In=ce.useMemo(function(){return{stickyOffsets:nn,flattenColumns:sn,scrollColumnIndex:_n!=null&&_n.scrollbar?Bn:null,columns:Tn}},[_n,sn,Bn,nn,Tn]);return ce.createElement(at.Provider,{value:In},ce.createElement("tfoot",{className:"".concat(pn,"-summary")},Rt))}var We=ue(He),Ke=Ee,Je=$e(70425),dt=$e(29301),Ct=$e(29194),ht=$e(24514),Lt=$e(75152),en=$e(26112);function Vt(Dt,Rt,nn,sn,Tn,pn,Bn){Dt.push({record:Rt,indent:nn,index:Bn});var _n=pn(Rt),In=Tn==null?void 0:Tn.has(_n);if(Rt&&Array.isArray(Rt[sn])&&In)for(var Qn=0;Qn<Rt[sn].length;Qn+=1)Vt(Dt,Rt[sn][Qn],nn+1,sn,Tn,pn,Qn)}function Kt(Dt,Rt,nn,sn){var Tn=ce.useMemo(function(){if(nn!=null&&nn.size){for(var pn=[],Bn=0;Bn<(Dt==null?void 0:Dt.length);Bn+=1){var _n=Dt[Bn];Vt(pn,_n,0,Rt,nn,sn,Bn)}return pn}return Dt==null?void 0:Dt.map(function(In,Qn){return{record:In,indent:0,index:Qn}})},[Dt,Rt,nn,sn]);return Tn}function Ut(Dt){var Rt=Dt.prefixCls,nn=Dt.children,sn=Dt.component,Tn=Dt.cellComponent,pn=Dt.className,Bn=Dt.expanded,_n=Dt.colSpan,In=Dt.isEmpty,Qn=Se(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ir=Qn.scrollbarSize,er=Qn.fixHeader,jr=Qn.fixColumn,Mr=Qn.componentWidth,vr=Qn.horizonScroll,ei=nn;return(In?vr&&Mr:jr)&&(ei=ce.createElement("div",{style:{width:Mr-(er?ir:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Rt,"-expanded-row-fixed")},ei)),ce.createElement(sn,{className:pn,style:{display:Bn?null:"none"}},ce.createElement(zt,{component:Tn,prefixCls:Rt,colSpan:_n},ei))}var rn=Ut;function Ft(Dt,Rt,nn,sn){var Tn=Se(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),pn=Tn.flattenColumns,Bn=Tn.expandableType,_n=Tn.expandedKeys,In=Tn.childrenColumnName,Qn=Tn.onTriggerExpand,ir=Tn.rowExpandable,er=Tn.onRow,jr=Tn.expandRowByClick,Mr=Tn.rowClassName,vr=Bn==="nest",ei=Bn==="row"&&(!ir||ir(Dt)),Cr=ei||vr,Xr=_n&&_n.has(Rt),Zr=In&&Dt&&Dt[In],hi=(0,Je.useEvent)(Qn),Ai=er==null?void 0:er(Dt,nn),Wi=Ai==null?void 0:Ai.onClick,oi=function(Ei){jr&&Cr&&Qn(Dt,Ei);for(var li=arguments.length,Gr=new Array(li>1?li-1:0),yi=1;yi<li;yi++)Gr[yi-1]=arguments[yi];Wi==null||Wi.apply(void 0,[Ei].concat(Gr))},Ni;typeof Mr=="string"?Ni=Mr:typeof Mr=="function"&&(Ni=Mr(Dt,nn,sn));var ho=pt(pn);return(0,Be.Z)((0,Be.Z)({},Tn),{},{columnsKey:ho,nestExpandable:vr,expanded:Xr,hasNestChildren:Zr,record:Dt,onTriggerExpand:hi,rowSupportExpand:ei,expandable:Cr,rowProps:(0,Be.Z)((0,Be.Z)({},Ai),{},{className:ze()(Ni,Ai==null?void 0:Ai.className),onClick:oi})})}function Xt(Dt,Rt,nn,sn,Tn){var pn=Dt.record,Bn=Dt.prefixCls,_n=Dt.columnsKey,In=Dt.fixedInfoList,Qn=Dt.expandIconColumnIndex,ir=Dt.nestExpandable,er=Dt.indentSize,jr=Dt.expandIcon,Mr=Dt.expanded,vr=Dt.hasNestChildren,ei=Dt.onTriggerExpand,Cr=_n[nn],Xr=In[nn],Zr;nn===(Qn||0)&&ir&&(Zr=ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{paddingLeft:"".concat(er*sn,"px")},className:"".concat(Bn,"-row-indent indent-level-").concat(sn)}),jr({prefixCls:Bn,expanded:Mr,expandable:vr,record:pn,onExpand:ei})));var hi;return Rt.onCell&&(hi=Rt.onCell(pn,Tn)),{key:Cr,fixedInfo:Xr,appendCellNode:Zr,additionalCellProps:hi||{}}}function tn(Dt){var Rt=Dt.className,nn=Dt.style,sn=Dt.record,Tn=Dt.index,pn=Dt.renderIndex,Bn=Dt.rowKey,_n=Dt.indent,In=_n===void 0?0:_n,Qn=Dt.rowComponent,ir=Dt.cellComponent,er=Dt.scopeCellComponent,jr=Ft(sn,Bn,Tn,In),Mr=jr.prefixCls,vr=jr.flattenColumns,ei=jr.expandedRowClassName,Cr=jr.expandedRowRender,Xr=jr.rowProps,Zr=jr.expanded,hi=jr.rowSupportExpand,Ai=ce.useState(!1),Wi=(0,oe.Z)(Ai,2),oi=Wi[0],Ni=Wi[1];ce.useEffect(function(){Zr&&Ni(!0)},[Zr]);var ho=ce.createElement(Qn,(0,Oe.Z)({},Xr,{"data-row-key":Bn,className:ze()(Rt,"".concat(Mr,"-row"),"".concat(Mr,"-row-level-").concat(In),Xr==null?void 0:Xr.className),style:(0,Be.Z)((0,Be.Z)({},nn),Xr==null?void 0:Xr.style)}),vr.map(function(Gr,yi){var Ri=Gr.render,Xi=Gr.dataIndex,Ji=Gr.className,ai=Xt(jr,Gr,yi,In,Tn),po=ai.key,wo=ai.fixedInfo,Jo=ai.appendCellNode,Oo=ai.additionalCellProps;return ce.createElement(zt,(0,Oe.Z)({className:Ji,ellipsis:Gr.ellipsis,align:Gr.align,scope:Gr.rowScope,component:Gr.rowScope?er:ir,prefixCls:Mr,key:po,record:sn,index:Tn,renderIndex:pn,dataIndex:Xi,render:Ri,shouldCellUpdate:Gr.shouldCellUpdate},wo,{appendNode:Jo,additionalProps:Oo}))})),ui;if(hi&&(oi||Zr)){var Ei=Cr(sn,Tn,In+1,Zr),li=ei&&ei(sn,Tn,In);ui=ce.createElement(rn,{expanded:Zr,className:ze()("".concat(Mr,"-expanded-row"),"".concat(Mr,"-expanded-row-level-").concat(In+1),li),prefixCls:Mr,component:Qn,cellComponent:ir,colSpan:vr.length,isEmpty:!1},Ei)}return ce.createElement(ce.Fragment,null,ho,ui)}tn.displayName="BodyRow";var dn=ue(tn);function En(Dt){var Rt=Dt.columnKey,nn=Dt.onColumnResize,sn=ce.useRef();return ce.useEffect(function(){sn.current&&nn(Rt,sn.current.offsetWidth)},[]),ce.createElement(dt.Z,{data:Rt},ce.createElement("td",{ref:sn,style:{padding:0,border:0,height:0}},ce.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function An(Dt){var Rt=Dt.prefixCls,nn=Dt.columnsKey,sn=Dt.onColumnResize;return ce.createElement("tr",{"aria-hidden":"true",className:"".concat(Rt,"-measure-row"),style:{height:0,fontSize:0}},ce.createElement(dt.Z.Collection,{onBatchResize:function(pn){pn.forEach(function(Bn){var _n=Bn.data,In=Bn.size;sn(_n,In.offsetWidth)})}},nn.map(function(Tn){return ce.createElement(En,{key:Tn,columnKey:Tn,onColumnResize:sn})})))}function ar(Dt){var Rt=Dt.data,nn=Dt.measureColumnWidth,sn=Se(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Tn=sn.prefixCls,pn=sn.getComponent,Bn=sn.onColumnResize,_n=sn.flattenColumns,In=sn.getRowKey,Qn=sn.expandedKeys,ir=sn.childrenColumnName,er=sn.emptyNode,jr=Kt(Rt,ir,Qn,In),Mr=ce.useRef({renderWithProps:!1}),vr=pn(["body","wrapper"],"tbody"),ei=pn(["body","row"],"tr"),Cr=pn(["body","cell"],"td"),Xr=pn(["body","cell"],"th"),Zr;Rt.length?Zr=jr.map(function(Ai,Wi){var oi=Ai.record,Ni=Ai.indent,ho=Ai.index,ui=In(oi,Wi);return ce.createElement(dn,{key:ui,rowKey:ui,record:oi,index:Wi,renderIndex:ho,rowComponent:ei,cellComponent:Cr,scopeCellComponent:Xr,getRowKey:In,indent:Ni})}):Zr=ce.createElement(rn,{expanded:!0,className:"".concat(Tn,"-placeholder"),prefixCls:Tn,component:ei,cellComponent:Cr,colSpan:_n.length,isEmpty:!0},er);var hi=pt(_n);return ce.createElement(vt.Provider,{value:Mr.current},ce.createElement(vr,{className:"".concat(Tn,"-tbody")},nn&&ce.createElement(An,{prefixCls:Tn,columnsKey:hi,onColumnResize:Bn}),Zr))}ar.displayName="Body";var tr=ue(ar),Tr=["expandable"],Vn="RC_TABLE_INTERNAL_COL_DEFINE";function Or(Dt){var Rt=Dt.expandable,nn=(0,Pe.Z)(Dt,Tr),sn;return"expandable"in Dt?sn=(0,Be.Z)((0,Be.Z)({},nn),Rt):sn=nn,sn.showExpandColumn===!1&&(sn.expandIconColumnIndex=-1),sn}var Dr=["columnType"];function Jr(Dt){for(var Rt=Dt.colWidths,nn=Dt.columns,sn=Dt.columCount,Tn=[],pn=sn||nn.length,Bn=!1,_n=pn-1;_n>=0;_n-=1){var In=Rt[_n],Qn=nn&&nn[_n],ir=Qn&&Qn[Vn];if(In||ir||Bn){var er=ir||{},jr=er.columnType,Mr=(0,Pe.Z)(er,Dr);Tn.unshift(ce.createElement("col",(0,Oe.Z)({key:_n,style:{width:In}},Mr))),Bn=!0}}return ce.createElement("colgroup",null,Tn)}var ni=Jr,Nr=$e(19127),di=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ir(Dt,Rt){return(0,ce.useMemo)(function(){for(var nn=[],sn=0;sn<Rt;sn+=1){var Tn=Dt[sn];if(Tn!==void 0)nn[sn]=Tn;else return null}return nn},[Dt.join("_"),Rt])}var ot=ce.forwardRef(function(Dt,Rt){var nn=Dt.className,sn=Dt.noData,Tn=Dt.columns,pn=Dt.flattenColumns,Bn=Dt.colWidths,_n=Dt.columCount,In=Dt.stickyOffsets,Qn=Dt.direction,ir=Dt.fixHeader,er=Dt.stickyTopOffset,jr=Dt.stickyBottomOffset,Mr=Dt.stickyClassName,vr=Dt.onScroll,ei=Dt.maxContentScroll,Cr=Dt.children,Xr=(0,Pe.Z)(Dt,di),Zr=Se(Ce,["prefixCls","scrollbarSize","isSticky"]),hi=Zr.prefixCls,Ai=Zr.scrollbarSize,Wi=Zr.isSticky,oi=Wi&&!ir?0:Ai,Ni=ce.useRef(null),ho=ce.useCallback(function(Ji){(0,ve.mH)(Rt,Ji),(0,ve.mH)(Ni,Ji)},[]);ce.useEffect(function(){var Ji;function ai(po){var wo=po,Jo=wo.currentTarget,Oo=wo.deltaX;Oo&&(vr({currentTarget:Jo,scrollLeft:Jo.scrollLeft+Oo}),po.preventDefault())}return(Ji=Ni.current)===null||Ji===void 0||Ji.addEventListener("wheel",ai),function(){var po;(po=Ni.current)===null||po===void 0||po.removeEventListener("wheel",ai)}},[]);var ui=ce.useMemo(function(){return pn.every(function(Ji){return Ji.width})},[pn]),Ei=pn[pn.length-1],li={fixed:Ei?Ei.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(hi,"-cell-scrollbar")}}},Gr=(0,ce.useMemo)(function(){return oi?[].concat((0,Nr.Z)(Tn),[li]):Tn},[oi,Tn]),yi=(0,ce.useMemo)(function(){return oi?[].concat((0,Nr.Z)(pn),[li]):pn},[oi,pn]),Ri=(0,ce.useMemo)(function(){var Ji=In.right,ai=In.left;return(0,Be.Z)((0,Be.Z)({},In),{},{left:Qn==="rtl"?[].concat((0,Nr.Z)(ai.map(function(po){return po+oi})),[0]):ai,right:Qn==="rtl"?Ji:[].concat((0,Nr.Z)(Ji.map(function(po){return po+oi})),[0]),isSticky:Wi})},[oi,In,Wi]),Xi=Ir(Bn,_n);return ce.createElement("div",{style:(0,Be.Z)({overflow:"hidden"},Wi?{top:er,bottom:jr}:{}),ref:ho,className:ze()(nn,(0,_e.Z)({},Mr,!!Mr))},ce.createElement("table",{style:{tableLayout:"fixed",visibility:sn||Xi?null:"hidden"}},(!sn||!ei||ui)&&ce.createElement(ni,{colWidths:Xi?[].concat((0,Nr.Z)(Xi),[oi]):[],columCount:_n+1,columns:yi}),Cr((0,Be.Z)((0,Be.Z)({},Xr),{},{stickyOffsets:Ri,columns:Gr,flattenColumns:yi}))))});ot.displayName="FixedHolder";var Ci=ce.memo(ot);function xi(Dt){var Rt=Dt.cells,nn=Dt.stickyOffsets,sn=Dt.flattenColumns,Tn=Dt.rowComponent,pn=Dt.cellComponent,Bn=Dt.tdCellComponent,_n=Dt.onHeaderRow,In=Dt.index,Qn=Se(Ce,["prefixCls","direction"]),ir=Qn.prefixCls,er=Qn.direction,jr;_n&&(jr=_n(Rt.map(function(vr){return vr.column}),In));var Mr=pt(Rt.map(function(vr){return vr.column}));return ce.createElement(Tn,jr,Rt.map(function(vr,ei){var Cr=vr.column,Xr=St(vr.colStart,vr.colEnd,sn,nn,er,Cr),Zr;return Cr&&Cr.onHeaderCell&&(Zr=vr.column.onHeaderCell(Cr)),ce.createElement(zt,(0,Oe.Z)({},vr,{scope:Cr.title?vr.colSpan>1?"colgroup":"col":null,ellipsis:Cr.ellipsis,align:Cr.align,component:Cr.title?pn:Bn,prefixCls:ir,key:Mr[ei]},Xr,{additionalProps:Zr,rowType:"header"}))}))}xi.displayName="HeaderRow";var pr=xi;function Pr(Dt){var Rt=[];function nn(Bn,_n){var In=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Rt[In]=Rt[In]||[];var Qn=_n,ir=Bn.filter(Boolean).map(function(er){var jr={key:er.key,className:er.className||"",children:er.title,column:er,colStart:Qn},Mr=1,vr=er.children;return vr&&vr.length>0&&(Mr=nn(vr,Qn,In+1).reduce(function(ei,Cr){return ei+Cr},0),jr.hasSubColumns=!0),"colSpan"in er&&(Mr=er.colSpan),"rowSpan"in er&&(jr.rowSpan=er.rowSpan),jr.colSpan=Mr,jr.colEnd=jr.colStart+Mr-1,Rt[In].push(jr),Qn+=Mr,Mr});return ir}nn(Dt,0);for(var sn=Rt.length,Tn=function(_n){Rt[_n].forEach(function(In){!("rowSpan"in In)&&!In.hasSubColumns&&(In.rowSpan=sn-_n)})},pn=0;pn<sn;pn+=1)Tn(pn);return Rt}function Ar(Dt){var Rt=Dt.stickyOffsets,nn=Dt.columns,sn=Dt.flattenColumns,Tn=Dt.onHeaderRow,pn=Se(Ce,["prefixCls","getComponent"]),Bn=pn.prefixCls,_n=pn.getComponent,In=ce.useMemo(function(){return Pr(nn)},[nn]),Qn=_n(["header","wrapper"],"thead"),ir=_n(["header","row"],"tr"),er=_n(["header","cell"],"th"),jr=_n(["header","cell"],"td");return ce.createElement(Qn,{className:"".concat(Bn,"-thead")},In.map(function(Mr,vr){var ei=ce.createElement(pr,{key:vr,flattenColumns:sn,cells:Mr,stickyOffsets:Rt,rowComponent:ir,cellComponent:er,tdCellComponent:jr,onHeaderRow:Tn,index:vr});return ei}))}var Li=ue(Ar),nr=$e(11592);function or(Dt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Rt=="number"?Rt:Rt.endsWith("%")?Dt*parseFloat(Rt)/100:null}function qt(Dt,Rt){return ce.useMemo(function(){if(Rt&&Rt>0){var nn=0,sn=0;Dt.forEach(function(Qn){var ir=or(Rt,Qn.width);ir?nn+=ir:sn+=1});var Tn=Rt-nn,pn=sn,Bn=Tn/sn,_n=0,In=Dt.map(function(Qn){var ir=(0,Be.Z)({},Qn),er=or(Rt,ir.width);if(er)ir.width=er;else{var jr=Math.floor(Bn);ir.width=pn===1?Tn:jr,Tn-=jr,pn-=1}return _n+=ir.width,ir});return[In,_n]}return[Dt,Rt]},[Dt,Rt])}var Jt=["children"],Et=["fixed"];function ln(Dt){return(0,nr.Z)(Dt).filter(function(Rt){return ce.isValidElement(Rt)}).map(function(Rt){var nn=Rt.key,sn=Rt.props,Tn=sn.children,pn=(0,Pe.Z)(sn,Jt),Bn=(0,Be.Z)({key:nn},pn);return Tn&&(Bn.children=ln(Tn)),Bn})}function Pn(Dt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Dt.filter(function(nn){return nn&&(0,Ae.Z)(nn)==="object"}).reduce(function(nn,sn,Tn){var pn=sn.fixed,Bn=pn===!0?"left":pn,_n="".concat(Rt,"-").concat(Tn),In=sn.children;return In&&In.length>0?[].concat((0,Nr.Z)(nn),(0,Nr.Z)(Pn(In,_n).map(function(Qn){return(0,Be.Z)({fixed:Bn},Qn)}))):[].concat((0,Nr.Z)(nn),[(0,Be.Z)((0,Be.Z)({key:_n},sn),{},{fixed:Bn})])},[])}function $t(Dt){for(var Rt=!0,nn=0;nn<Dt.length;nn+=1){var sn=Dt[nn];if(Rt&&sn.fixed!=="left")Rt=!1;else if(!Rt&&sn.fixed==="left"){warning(!1,"Index ".concat(nn-1," of `columns` missing `fixed='left'` prop."));break}}for(var Tn=!0,pn=Dt.length-1;pn>=0;pn-=1){var Bn=Dt[pn];if(Tn&&Bn.fixed!=="right")Tn=!1;else if(!Tn&&Bn.fixed==="right"){warning(!1,"Index ".concat(pn+1," of `columns` missing `fixed='right'` prop."));break}}}function It(Dt){return Dt.map(function(Rt){var nn=Rt.fixed,sn=(0,Pe.Z)(Rt,Et),Tn=nn;return nn==="left"?Tn="right":nn==="right"&&(Tn="left"),(0,Be.Z)({fixed:Tn},sn)})}function fn(Dt,Rt){var nn=Dt.prefixCls,sn=Dt.columns,Tn=Dt.children,pn=Dt.expandable,Bn=Dt.expandedKeys,_n=Dt.columnTitle,In=Dt.getRowKey,Qn=Dt.onTriggerExpand,ir=Dt.expandIcon,er=Dt.rowExpandable,jr=Dt.expandIconColumnIndex,Mr=Dt.direction,vr=Dt.expandRowByClick,ei=Dt.columnWidth,Cr=Dt.fixed,Xr=Dt.scrollWidth,Zr=ce.useMemo(function(){return sn||ln(Tn)},[sn,Tn]),hi=ce.useMemo(function(){if(pn){var Ei,li=Zr.slice();if(!li.includes(tt)){var Gr=jr||0;Gr>=0&&li.splice(Gr,0,tt)}var yi=li.indexOf(tt);li=li.filter(function(ai,po){return ai!==tt||po===yi});var Ri=Zr[yi],Xi;(Cr==="left"||Cr)&&!jr?Xi="left":(Cr==="right"||Cr)&&jr===Zr.length?Xi="right":Xi=Ri?Ri.fixed:null;var Ji=(Ei={},(0,_e.Z)(Ei,Vn,{className:"".concat(nn,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,_e.Z)(Ei,"title",_n),(0,_e.Z)(Ei,"fixed",Xi),(0,_e.Z)(Ei,"className","".concat(nn,"-row-expand-icon-cell")),(0,_e.Z)(Ei,"width",ei),(0,_e.Z)(Ei,"render",function(po,wo,Jo){var Oo=In(wo,Jo),ka=Bn.has(Oo),Ea=er?er(wo):!0,vo=ir({prefixCls:nn,expanded:ka,expandable:Ea,record:wo,onExpand:Qn});return vr?ce.createElement("span",{onClick:function(Uo){return Uo.stopPropagation()}},vo):vo}),Ei);return li.map(function(ai){return ai===tt?Ji:ai})}return Zr.filter(function(ai){return ai!==tt})},[pn,Zr,In,Bn,ir,Mr]),Ai=ce.useMemo(function(){var Ei=hi;return Rt&&(Ei=Rt(Ei)),Ei.length||(Ei=[{render:function(){return null}}]),Ei},[Rt,hi,Mr]),Wi=ce.useMemo(function(){return Mr==="rtl"?It(Pn(Ai)):Pn(Ai)},[Ai,Mr,Xr]),oi=qt(Wi,Xr),Ni=(0,oe.Z)(oi,2),ho=Ni[0],ui=Ni[1];return[Ai,ho,ui]}var un=fn;function Gn(Dt){var Rt,nn=Dt.prefixCls,sn=Dt.record,Tn=Dt.onExpand,pn=Dt.expanded,Bn=Dt.expandable,_n="".concat(nn,"-row-expand-icon");if(!Bn)return ce.createElement("span",{className:ze()(_n,"".concat(nn,"-row-spaced"))});var In=function(ir){Tn(sn,ir),ir.stopPropagation()};return ce.createElement("span",{className:ze()(_n,(Rt={},(0,_e.Z)(Rt,"".concat(nn,"-row-expanded"),pn),(0,_e.Z)(Rt,"".concat(nn,"-row-collapsed"),!pn),Rt)),onClick:In})}function Xn(Dt,Rt,nn){var sn=[];function Tn(pn){(pn||[]).forEach(function(Bn,_n){sn.push(Rt(Bn,_n)),Tn(Bn[nn])})}return Tn(Dt),sn}function Ht(Dt,Rt,nn){var sn=Or(Dt),Tn=sn.expandIcon,pn=sn.expandedRowKeys,Bn=sn.defaultExpandedRowKeys,_n=sn.defaultExpandAllRows,In=sn.expandedRowRender,Qn=sn.onExpand,ir=sn.onExpandedRowsChange,er=sn.childrenColumnName,jr=Tn||Gn,Mr=er||"children",vr=ce.useMemo(function(){return In?"row":Dt.expandable&&Dt.internalHooks===Pt&&Dt.expandable.__PARENT_RENDER_ICON__||Rt.some(function(Wi){return Wi&&(0,Ae.Z)(Wi)==="object"&&Wi[Mr]})?"nest":!1},[!!In,Rt]),ei=ce.useState(function(){return Bn||(_n?Xn(Rt,nn,Mr):[])}),Cr=(0,oe.Z)(ei,2),Xr=Cr[0],Zr=Cr[1],hi=ce.useMemo(function(){return new Set(pn||Xr||[])},[pn,Xr]),Ai=ce.useCallback(function(Wi){var oi=nn(Wi,Rt.indexOf(Wi)),Ni,ho=hi.has(oi);ho?(hi.delete(oi),Ni=(0,Nr.Z)(hi)):Ni=[].concat((0,Nr.Z)(hi),[oi]),Zr(Ni),Qn&&Qn(!ho,Wi),ir&&ir(Ni)},[nn,hi,Rt,Qn,ir]);return[sn,vr,hi,jr,Mr,Ai]}function kn(Dt,Rt,nn,sn){var Tn=Dt.map(function(pn,Bn){return St(Bn,Bn,Dt,Rt,nn,sn==null?void 0:sn[Bn])});return(0,Xe.Z)(function(){return Tn},[Tn],function(pn,Bn){return!(0,me.Z)(pn,Bn)})}function Wn(Dt){var Rt=(0,ce.useRef)(Dt),nn=(0,ce.useState)({}),sn=(0,oe.Z)(nn,2),Tn=sn[1],pn=(0,ce.useRef)(null),Bn=(0,ce.useRef)([]);function _n(In){Bn.current.push(In);var Qn=Promise.resolve();pn.current=Qn,Qn.then(function(){if(pn.current===Qn){var ir=Bn.current,er=Rt.current;Bn.current=[],ir.forEach(function(jr){Rt.current=jr(Rt.current)}),pn.current=null,er!==Rt.current&&Tn({})}})}return(0,ce.useEffect)(function(){return function(){pn.current=null}},[]),[Rt.current,_n]}function lr(Dt){var Rt=(0,ce.useRef)(Dt||null),nn=(0,ce.useRef)();function sn(){window.clearTimeout(nn.current)}function Tn(Bn){Rt.current=Bn,sn(),nn.current=window.setTimeout(function(){Rt.current=null,nn.current=void 0},100)}function pn(){return Rt.current}return(0,ce.useEffect)(function(){return sn},[]),[Tn,pn]}function on(){var Dt=ce.useState(-1),Rt=(0,oe.Z)(Dt,2),nn=Rt[0],sn=Rt[1],Tn=ce.useState(-1),pn=(0,oe.Z)(Tn,2),Bn=pn[0],_n=pn[1],In=ce.useCallback(function(Qn,ir){sn(Qn),_n(ir)},[]);return[nn,Bn,In]}var Mn=$e(47273),an=(0,Mn.Z)()?window:null;function Sn(Dt,Rt){var nn=(0,Ae.Z)(Dt)==="object"?Dt:{},sn=nn.offsetHeader,Tn=sn===void 0?0:sn,pn=nn.offsetSummary,Bn=pn===void 0?0:pn,_n=nn.offsetScroll,In=_n===void 0?0:_n,Qn=nn.getContainer,ir=Qn===void 0?function(){return an}:Qn,er=ir()||an;return ce.useMemo(function(){var jr=!!Dt;return{isSticky:jr,stickyClassName:jr?"".concat(Rt,"-sticky-holder"):"",offsetHeader:Tn,offsetSummary:Bn,offsetScroll:In,container:er}},[In,Tn,Bn,Rt,er])}function gn(Dt,Rt,nn){var sn=(0,ce.useMemo)(function(){for(var Tn=[],pn=[],Bn=0,_n=0,In=0;In<Rt;In+=1)if(nn==="rtl"){pn[In]=_n,_n+=Dt[In]||0;var Qn=Rt-In-1;Tn[Qn]=Bn,Bn+=Dt[Qn]||0}else{Tn[In]=Bn,Bn+=Dt[In]||0;var ir=Rt-In-1;pn[ir]=_n,_n+=Dt[ir]||0}return{left:Tn,right:pn}},[Dt,Rt,nn]);return sn}var yn=gn;function On(Dt){var Rt=Dt.className,nn=Dt.children;return ce.createElement("div",{className:Rt},nn)}var Nn=On,Fn=$e(8224),zn=$e(55468),xr=function(Rt,nn){var sn,Tn,pn=Rt.scrollBodyRef,Bn=Rt.onScroll,_n=Rt.offsetScroll,In=Rt.container,Qn=Se(Ce,"prefixCls"),ir=((sn=pn.current)===null||sn===void 0?void 0:sn.scrollWidth)||0,er=((Tn=pn.current)===null||Tn===void 0?void 0:Tn.clientWidth)||0,jr=ir&&er*(er/ir),Mr=ce.useRef(),vr=Wn({scrollLeft:0,isHiddenScrollBar:!1}),ei=(0,oe.Z)(vr,2),Cr=ei[0],Xr=ei[1],Zr=ce.useRef({delta:0,x:0}),hi=ce.useState(!1),Ai=(0,oe.Z)(hi,2),Wi=Ai[0],oi=Ai[1],Ni=function(){oi(!1)},ho=function(yi){yi.persist(),Zr.current.delta=yi.pageX-Cr.scrollLeft,Zr.current.x=0,oi(!0),yi.preventDefault()},ui=function(yi){var Ri,Xi=yi||((Ri=window)===null||Ri===void 0?void 0:Ri.event),Ji=Xi.buttons;if(!Wi||Ji===0){Wi&&oi(!1);return}var ai=Zr.current.x+yi.pageX-Zr.current.x-Zr.current.delta;ai<=0&&(ai=0),ai+jr>=er&&(ai=er-jr),Bn({scrollLeft:ai/er*(ir+2)}),Zr.current.x=yi.pageX},Ei=function(){if(pn.current){var yi=(0,zn.os)(pn.current).top,Ri=yi+pn.current.offsetHeight,Xi=In===window?document.documentElement.scrollTop+window.innerHeight:(0,zn.os)(In).top+In.clientHeight;Ri-(0,Lt.Z)()<=Xi||yi>=Xi-_n?Xr(function(Ji){return(0,Be.Z)((0,Be.Z)({},Ji),{},{isHiddenScrollBar:!0})}):Xr(function(Ji){return(0,Be.Z)((0,Be.Z)({},Ji),{},{isHiddenScrollBar:!1})})}},li=function(yi){Xr(function(Ri){return(0,Be.Z)((0,Be.Z)({},Ri),{},{scrollLeft:yi/ir*er||0})})};return ce.useImperativeHandle(nn,function(){return{setScrollLeft:li}}),ce.useEffect(function(){var Gr=(0,Fn.Z)(document.body,"mouseup",Ni,!1),yi=(0,Fn.Z)(document.body,"mousemove",ui,!1);return Ei(),function(){Gr.remove(),yi.remove()}},[jr,Wi]),ce.useEffect(function(){var Gr=(0,Fn.Z)(In,"scroll",Ei,!1),yi=(0,Fn.Z)(window,"resize",Ei,!1);return function(){Gr.remove(),yi.remove()}},[In]),ce.useEffect(function(){Cr.isHiddenScrollBar||Xr(function(Gr){var yi=pn.current;return yi?(0,Be.Z)((0,Be.Z)({},Gr),{},{scrollLeft:yi.scrollLeft/yi.scrollWidth*yi.clientWidth}):Gr})},[Cr.isHiddenScrollBar]),ir<=er||!jr||Cr.isHiddenScrollBar?null:ce.createElement("div",{style:{height:(0,Lt.Z)(),width:er,bottom:_n},className:"".concat(Qn,"-sticky-scroll")},ce.createElement("div",{onMouseDown:ho,ref:Mr,className:ze()("".concat(Qn,"-sticky-scroll-bar"),(0,_e.Z)({},"".concat(Qn,"-sticky-scroll-bar-active"),Wi)),style:{width:"".concat(jr,"px"),transform:"translate3d(".concat(Cr.scrollLeft,"px, 0, 0)")}}))},mn=ce.forwardRef(xr);function Fr(Dt){return null}var Yr=Fr;function Br(Dt){return null}var bn=Br,Jn="rc-table",sr=[],Sr={};function mr(){return"No Data"}function $r(Dt){var Rt,nn=(0,Be.Z)({rowKey:"key",prefixCls:Jn,emptyText:mr},Dt),sn=nn.prefixCls,Tn=nn.className,pn=nn.rowClassName,Bn=nn.style,_n=nn.data,In=nn.rowKey,Qn=nn.scroll,ir=nn.tableLayout,er=nn.direction,jr=nn.title,Mr=nn.footer,vr=nn.summary,ei=nn.caption,Cr=nn.id,Xr=nn.showHeader,Zr=nn.components,hi=nn.emptyText,Ai=nn.onRow,Wi=nn.onHeaderRow,oi=nn.internalHooks,Ni=nn.transformColumns,ho=nn.internalRefs,ui=nn.tailor,Ei=nn.sticky,li=_n||sr,Gr=!!li.length,yi=oi===Pt,Ri=ce.useCallback(function(ea,Ta){return(0,Qe.Z)(Zr,ea)||Ta},[Zr]),Xi=ce.useMemo(function(){return typeof In=="function"?In:function(ea){var Ta=ea&&ea[In];return Ta}},[In]),Ji=Ri(["body"]),ai=on(),po=(0,oe.Z)(ai,3),wo=po[0],Jo=po[1],Oo=po[2],ka=Ht(nn,li,Xi),Ea=(0,oe.Z)(ka,6),vo=Ea[0],Hi=Ea[1],Uo=Ea[2],Na=Ea[3],va=Ea[4],ns=Ea[5],Qi=Qn==null?void 0:Qn.x,Vi=ce.useState(0),qi=(0,oe.Z)(Vi,2),ji=qi[0],Vo=qi[1],Ii=un((0,Be.Z)((0,Be.Z)((0,Be.Z)({},nn),vo),{},{expandable:!!vo.expandedRowRender,columnTitle:vo.columnTitle,expandedKeys:Uo,getRowKey:Xi,onTriggerExpand:ns,expandIcon:Na,expandIconColumnIndex:vo.expandIconColumnIndex,direction:er,scrollWidth:yi&&ui&&typeof Qi=="number"?Qi:null}),yi?Ni:null),fo=(0,oe.Z)(Ii,3),Fo=fo[0],Bo=fo[1],bs=fo[2],ss=bs!=null?bs:Qi,Hs=ce.useMemo(function(){return{columns:Fo,flattenColumns:Bo}},[Fo,Bo]),Qo=ce.useRef(),Ps=ce.useRef(),qa=ce.useRef(),ps=ce.useRef(),Uu=ce.useRef(),qo=ce.useState(!1),ia=(0,oe.Z)(qo,2),ua=ia[0],Za=ia[1],gs=ce.useState(!1),Lo=(0,oe.Z)(gs,2),da=Lo[0],ms=Lo[1],pl=Wn(new Map),zl=(0,oe.Z)(pl,2),El=zl[0],ql=zl[1],eu=pt(Bo),Hl=eu.map(function(ea){return El.get(ea)}),ta=ce.useMemo(function(){return Hl},[Hl.join("_")]),Ts=yn(ta,Bo.length,er),Ga=Qn&&xt(Qn.y),fa=Qn&&xt(ss)||!!vo.fixed,Gl=fa&&Bo.some(function(ea){var Ta=ea.fixed;return Ta}),oc=ce.useRef(),tu=Sn(Ei,sn),Tu=tu.isSticky,$u=tu.offsetHeader,Tl=tu.offsetSummary,Zo=tu.offsetScroll,ya=tu.stickyClassName,ls=tu.container,Sa=ce.useMemo(function(){return vr==null?void 0:vr(li)},[vr,li]),Go=(Ga||Tu)&&ce.isValidElement(Sa)&&Sa.type===Ee&&Sa.props.fixed,vs,gl,pu;Ga&&(gl={overflowY:"scroll",maxHeight:Qn.y}),fa&&(vs={overflowX:"auto"},Ga||(gl={overflowY:"hidden"}),pu={width:ss===!0?"auto":ss,minWidth:"100%"});var cf=ce.useCallback(function(ea,Ta){(0,Ct.Z)(Qo.current)&&ql(function(js){if(js.get(ea)!==Ta){var nu=new Map(js);return nu.set(ea,Ta),nu}return js})},[]),cn=lr(null),Pc=(0,oe.Z)(cn,2),Ku=Pc[0],hf=Pc[1];function gh(ea,Ta){Ta&&(typeof Ta=="function"?Ta(ea):Ta.scrollLeft!==ea&&(Ta.scrollLeft=ea,Ta.scrollLeft!==ea&&setTimeout(function(){Ta.scrollLeft=ea},0)))}var Yc=(0,Ge.Z)(function(ea){var Ta=ea.currentTarget,js=ea.scrollLeft,nu=er==="rtl",ru=typeof js=="number"?js:Ta.scrollLeft,Dd=Ta||Sr;if(!hf()||hf()===Dd){var Tc;Ku(Dd),gh(ru,Ps.current),gh(ru,qa.current),gh(ru,Uu.current),gh(ru,(Tc=oc.current)===null||Tc===void 0?void 0:Tc.setScrollLeft)}var Zh=Ta||Ps.current;if(Zh){var gu=Zh.scrollWidth,ac=Zh.clientWidth;if(gu===ac){Za(!1),ms(!1);return}nu?(Za(-ru<gu-ac),ms(-ru>0)):(Za(ru>0),ms(ru<gu-ac))}}),Md=function(){fa&&qa.current?Yc({currentTarget:qa.current}):(Za(!1),ms(!1))},Kp=function(Ta){var js=Ta.width;js!==ji&&(Md(),Vo(Qo.current?Qo.current.offsetWidth:js))},Ms=ce.useRef(!1);ce.useEffect(function(){Ms.current&&Md()},[fa,_n,Fo.length]),ce.useEffect(function(){Ms.current=!0},[]);var Kh=ce.useState(0),Ld=(0,oe.Z)(Kh,2),Vh=Ld[0],df=Ld[1],Zf=ce.useState(!0),ff=(0,oe.Z)(Zf,2),kd=ff[0],Wl=ff[1];ce.useEffect(function(){(!ui||!yi)&&(qa.current instanceof Element?df((0,Lt.o)(qa.current).width):df((0,Lt.o)(ps.current).width)),Wl((0,ht.G)("position","sticky"))},[]),ce.useEffect(function(){yi&&ho&&(ho.body.current=qa.current)});var mh=ce.useCallback(function(ea){return ce.createElement(ce.Fragment,null,ce.createElement(Li,ea),Go==="top"&&ce.createElement(We,ea,Sa))},[Go,Sa]),pf=ce.useCallback(function(ea){return ce.createElement(We,ea,Sa)},[Sa]),Mu=Ri(["table"],"table"),Cc=ce.useMemo(function(){return ir||(Gl?ss==="max-content"?"auto":"fixed":Ga||Tu||Bo.some(function(ea){var Ta=ea.ellipsis;return Ta})?"fixed":"auto")},[Ga,Gl,Bo,ir,Tu]),vh,Jc={colWidths:ta,columCount:Bo.length,stickyOffsets:Ts,onHeaderRow:Wi,fixHeader:Ga,scroll:Qn},ml=ce.useMemo(function(){return Gr?null:typeof hi=="function"?hi():hi},[Gr,hi]),Nd=ce.createElement(tr,{data:li,measureColumnWidth:Ga||fa||Tu}),Od=ce.createElement(ni,{colWidths:Bo.map(function(ea){var Ta=ea.width;return Ta}),columns:Bo}),Ul=ei!=null?ce.createElement("caption",{className:"".concat(sn,"-caption")},ei):void 0,yh=(0,en.Z)(nn,{data:!0}),Ad=(0,en.Z)(nn,{aria:!0});if(Ga||Tu){var jd;typeof Ji=="function"?(jd=Ji(li,{scrollbarSize:Vh,ref:qa,onScroll:Yc}),Jc.colWidths=Bo.map(function(ea,Ta){var js=ea.width,nu=Ta===Bo.length-1?js-Vh:js;return typeof nu=="number"&&!Number.isNaN(nu)?nu:0})):jd=ce.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},vs),gl),onScroll:Yc,ref:qa,className:ze()("".concat(sn,"-body"))},ce.createElement(Mu,(0,Oe.Z)({style:(0,Be.Z)((0,Be.Z)({},pu),{},{tableLayout:Cc})},Ad),Ul,Od,Nd,!Go&&Sa&&ce.createElement(We,{stickyOffsets:Ts,flattenColumns:Bo,columns:Fo},Sa)));var Ec=(0,Be.Z)((0,Be.Z)((0,Be.Z)({noData:!li.length,maxContentScroll:fa&&ss==="max-content"},Jc),Hs),{},{direction:er,stickyClassName:ya,onScroll:Yc});vh=ce.createElement(ce.Fragment,null,Xr!==!1&&ce.createElement(Ci,(0,Oe.Z)({},Ec,{stickyTopOffset:$u,className:"".concat(sn,"-header"),ref:Ps}),mh),jd,Go&&Go!=="top"&&ce.createElement(Ci,(0,Oe.Z)({},Ec,{stickyBottomOffset:Tl,className:"".concat(sn,"-summary"),ref:Uu}),pf),Tu&&ce.createElement(mn,{ref:oc,offsetScroll:Zo,scrollBodyRef:qa,onScroll:Yc,container:ls}))}else vh=ce.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},vs),gl),className:ze()("".concat(sn,"-content")),onScroll:Yc,ref:qa},ce.createElement(Mu,(0,Oe.Z)({style:(0,Be.Z)((0,Be.Z)({},pu),{},{tableLayout:Cc})},Ad),Ul,Od,Xr!==!1&&ce.createElement(Li,(0,Oe.Z)({},Jc,Hs)),Nd,Sa&&ce.createElement(We,{stickyOffsets:Ts,flattenColumns:Bo,columns:Fo},Sa)));var ol=ce.createElement("div",(0,Oe.Z)({className:ze()(sn,Tn,(Rt={},(0,_e.Z)(Rt,"".concat(sn,"-rtl"),er==="rtl"),(0,_e.Z)(Rt,"".concat(sn,"-ping-left"),ua),(0,_e.Z)(Rt,"".concat(sn,"-ping-right"),da),(0,_e.Z)(Rt,"".concat(sn,"-layout-fixed"),ir==="fixed"),(0,_e.Z)(Rt,"".concat(sn,"-fixed-header"),Ga),(0,_e.Z)(Rt,"".concat(sn,"-fixed-column"),Gl),(0,_e.Z)(Rt,"".concat(sn,"-scroll-horizontal"),fa),(0,_e.Z)(Rt,"".concat(sn,"-has-fix-left"),Bo[0]&&Bo[0].fixed),(0,_e.Z)(Rt,"".concat(sn,"-has-fix-right"),Bo[Bo.length-1]&&Bo[Bo.length-1].fixed==="right"),Rt)),style:Bn,id:Cr,ref:Qo},yh),jr&&ce.createElement(Nn,{className:"".concat(sn,"-title")},jr(li)),ce.createElement("div",{ref:ps,className:"".concat(sn,"-container")},vh),Mr&&ce.createElement(Nn,{className:"".concat(sn,"-footer")},Mr(li)));fa&&(ol=ce.createElement(dt.Z,{onResize:Kp},ol));var Id=kn(Bo,Ts,er,Fo),us=ce.useMemo(function(){return{scrollX:ss,prefixCls:sn,getComponent:Ri,scrollbarSize:Vh,direction:er,fixedInfoList:Id,isSticky:Tu,supportSticky:kd,componentWidth:ji,fixHeader:Ga,fixColumn:Gl,horizonScroll:fa,tableLayout:Cc,rowClassName:pn,expandedRowClassName:vo.expandedRowClassName,expandIcon:Na,expandableType:Hi,expandRowByClick:vo.expandRowByClick,expandedRowRender:vo.expandedRowRender,onTriggerExpand:ns,expandIconColumnIndex:vo.expandIconColumnIndex,indentSize:vo.indentSize,allColumnsFixedLeft:Bo.every(function(ea){return ea.fixed==="left"}),emptyNode:ml,columns:Fo,flattenColumns:Bo,onColumnResize:cf,hoverStartRow:wo,hoverEndRow:Jo,onHover:Oo,rowExpandable:vo.rowExpandable,onRow:Ai,getRowKey:Xi,expandedKeys:Uo,childrenColumnName:va}},[ss,sn,Ri,Vh,er,Id,Tu,kd,ji,Ga,Gl,fa,Cc,pn,vo.expandedRowClassName,Na,Hi,vo.expandRowByClick,vo.expandedRowRender,ns,vo.expandIconColumnIndex,vo.indentSize,ml,Fo,Bo,cf,wo,Jo,Oo,vo.rowExpandable,Ai,Xi,Uo,va]);return ce.createElement(Ce.Provider,{value:us},ol)}function ri(Dt){return le($r,Dt)}var Rr=ri();Rr.EXPAND_COLUMN=tt,Rr.INTERNAL_HOOKS=Pt,Rr.Column=Yr,Rr.ColumnGroup=bn,Rr.Summary=Ke;var br=Rr,ur=$e(24916),vn=Le(null),cr=Le(null);function xn(Dt,Rt,nn){var sn=Rt||1;return nn[Dt+sn]-(nn[Dt]||0)}function zr(Dt){var Rt=Dt.rowInfo,nn=Dt.column,sn=Dt.colIndex,Tn=Dt.indent,pn=Dt.index,Bn=Dt.renderIndex,_n=Dt.record,In=Dt.style,Qn=Dt.className,ir=Dt.inverse,er=Dt.getHeight,jr=nn.render,Mr=nn.dataIndex,vr=nn.className,ei=nn.width,Cr=Se(cr,["columnsOffset"]),Xr=Cr.columnsOffset,Zr=Xt(Rt,nn,sn,Tn,pn),hi=Zr.key,Ai=Zr.fixedInfo,Wi=Zr.appendCellNode,oi=Zr.additionalCellProps,Ni=oi.style,ho=oi.colSpan,ui=ho===void 0?1:ho,Ei=oi.rowSpan,li=Ei===void 0?1:Ei,Gr=sn-1,yi=xn(Gr,ui,Xr),Ri=ui>1?ei-yi:0,Xi=(0,Be.Z)((0,Be.Z)((0,Be.Z)({},Ni),In),{},{flex:"0 0 ".concat(yi,"px"),width:"".concat(yi,"px"),marginRight:Ri,pointerEvents:"auto"}),Ji=ce.useMemo(function(){return ir?li<=1:ui===0||li===0||li>1},[li,ui,ir]);Ji?Xi.visibility="hidden":ir&&(Xi.height=er==null?void 0:er(li));var ai=Ji?function(){return null}:jr,po={};return(li===0||ui===0)&&(po.rowSpan=1,po.colSpan=1),ce.createElement(zt,(0,Oe.Z)({className:ze()(vr,Qn),ellipsis:nn.ellipsis,align:nn.align,scope:nn.rowScope,component:"div",prefixCls:Rt.prefixCls,key:hi,record:_n,index:pn,renderIndex:Bn,dataIndex:Mr,render:ai,shouldCellUpdate:nn.shouldCellUpdate},Ai,{appendNode:Wi,additionalProps:(0,Be.Z)((0,Be.Z)({},oi),{},{style:Xi},po)}))}var $i=zr,Mi=["data","index","className","rowKey","style","extra","getHeight"],yo=ce.forwardRef(function(Dt,Rt){var nn=Dt.data,sn=Dt.index,Tn=Dt.className,pn=Dt.rowKey,Bn=Dt.style,_n=Dt.extra,In=Dt.getHeight,Qn=(0,Pe.Z)(Dt,Mi),ir=nn.record,er=nn.indent,jr=nn.index,Mr=Se(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),vr=Mr.scrollX,ei=Mr.flattenColumns,Cr=Mr.prefixCls,Xr=Mr.fixColumn,Zr=Mr.componentWidth,hi=Ft(ir,pn,sn,er),Ai=hi.rowSupportExpand,Wi=hi.expanded,oi=hi.rowProps,Ni=hi.expandedRowRender,ho=hi.expandedRowClassName,ui;if(Ai&&Wi){var Ei=Ni(ir,sn,er+1,Wi),li=ho==null?void 0:ho(ir,sn,er),Gr={};Xr&&(Gr={style:(0,_e.Z)({},"--virtual-width","".concat(Zr,"px"))});var yi="".concat(Cr,"-expanded-row-cell");ui=ce.createElement("div",{className:ze()("".concat(Cr,"-expanded-row"),"".concat(Cr,"-expanded-row-level-").concat(er+1),li)},ce.createElement(zt,{component:"div",prefixCls:Cr,className:ze()(yi,(0,_e.Z)({},"".concat(yi,"-fixed"),Xr)),additionalProps:Gr},Ei))}var Ri=(0,Be.Z)((0,Be.Z)({},Bn),{},{width:vr});_n&&(Ri.position="absolute",Ri.pointerEvents="none");var Xi=ce.createElement("div",(0,Oe.Z)({},oi,Qn,{ref:Ai?null:Rt,className:ze()(Tn,"".concat(Cr,"-row"),oi==null?void 0:oi.className,(0,_e.Z)({},"".concat(Cr,"-row-extra"),_n)),style:(0,Be.Z)((0,Be.Z)({},Ri),oi==null?void 0:oi.style)}),ei.map(function(Ji,ai){return ce.createElement($i,{key:ai,rowInfo:hi,column:Ji,colIndex:ai,indent:er,index:sn,renderIndex:jr,record:ir,inverse:_n,getHeight:In})}));return Ai?ce.createElement("div",{ref:Rt},Xi,ui):Xi}),no=ue(yo),Wr=no,Hr=ce.forwardRef(function(Dt,Rt){var nn=Dt.data,sn=Dt.onScroll,Tn=Se(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),pn=Tn.flattenColumns,Bn=Tn.onColumnResize,_n=Tn.getRowKey,In=Tn.expandedKeys,Qn=Tn.prefixCls,ir=Tn.childrenColumnName,er=Tn.emptyNode,jr=Tn.scrollX,Mr=Se(vn),vr=Mr.scrollY,ei=Mr.listItemHeight,Cr=ce.useRef(),Xr=Kt(nn,ir,In,_n),Zr=ce.useMemo(function(){var ui=0;return pn.map(function(Ei){var li=Ei.width,Gr=Ei.key;return ui+=li,[Gr,li,ui]})},[pn]),hi=ce.useMemo(function(){return Zr.map(function(ui){return ui[2]})},[Zr]);ce.useEffect(function(){Zr.forEach(function(ui){var Ei=(0,oe.Z)(ui,2),li=Ei[0],Gr=Ei[1];Bn(li,Gr)})},[Zr]),ce.useImperativeHandle(Rt,function(){var ui={};return Object.defineProperty(ui,"scrollLeft",{get:function(){var li;return((li=Cr.current)===null||li===void 0?void 0:li.getScrollInfo().x)||0},set:function(li){var Gr;(Gr=Cr.current)===null||Gr===void 0||Gr.scrollTo({left:li})}}),ui});var Ai=function(Ei,li){var Gr,yi=(Gr=Xr[li])===null||Gr===void 0?void 0:Gr.record,Ri=Ei.onCell;if(Ri){var Xi,Ji=Ri(yi,li);return(Xi=Ji==null?void 0:Ji.rowSpan)!==null&&Xi!==void 0?Xi:1}return 1},Wi=function(Ei){var li=Ei.start,Gr=Ei.end,yi=Ei.getSize,Ri=Ei.offsetY;if(Gr<0)return null;for(var Xi=pn.filter(function(Qi){return Ai(Qi,li)===0}),Ji=li,ai=function(Vi){if(Xi=Xi.filter(function(qi){return Ai(qi,Vi)===0}),!Xi.length)return Ji=Vi,"break"},po=li;po>=0;po-=1){var wo=ai(po);if(wo==="break")break}for(var Jo=pn.filter(function(Qi){return Ai(Qi,Gr)!==1}),Oo=Gr,ka=function(Vi){if(Jo=Jo.filter(function(qi){return Ai(qi,Vi)!==1}),!Jo.length)return Oo=Math.max(Vi-1,Gr),"break"},Ea=Gr;Ea<Xr.length;Ea+=1){var vo=ka(Ea);if(vo==="break")break}for(var Hi=[],Uo=function(Vi){var qi=Xr[Vi];if(!qi)return"continue";pn.some(function(ji){return Ai(ji,Vi)>1})&&Hi.push(Vi)},Na=Ji;Na<=Oo;Na+=1)var va=Uo(Na);var ns=Hi.map(function(Qi){var Vi=Xr[Qi],qi=_n(Vi.record,Qi),ji=function(fo){var Fo=Qi+fo-1,Bo=_n(Xr[Fo].record,Fo),bs=yi(qi,Bo);return bs.bottom-bs.top},Vo=yi(qi);return ce.createElement(Wr,{key:Qi,data:Vi,rowKey:qi,index:Qi,style:{top:-Ri+Vo.top},extra:!0,getHeight:ji})});return ns},oi=ce.useMemo(function(){return{columnsOffset:hi}},[hi]),Ni="".concat(Qn,"-tbody"),ho;return Xr.length?ho=ce.createElement(ur.Z,{fullHeight:!1,ref:Cr,className:ze()(Ni,"".concat(Ni,"-virtual")),height:vr,itemHeight:ei||24,data:Xr,itemKey:function(Ei){return _n(Ei.record)},scrollWidth:jr,onVirtualScroll:function(Ei){var li=Ei.x;sn({scrollLeft:li})},extraRender:Wi},function(ui,Ei,li){var Gr=_n(ui.record,Ei);return ce.createElement(Wr,(0,Oe.Z)({data:ui,rowKey:Gr,index:Ei},li))}):ho=ce.createElement("div",{className:ze()("".concat(Qn,"-placeholder"))},ce.createElement(zt,{component:"div",prefixCls:Qn},er)),ce.createElement(cr.Provider,{value:oi},ho)}),wi=ue(Hr),vi=wi,fr=function(Rt,nn){var sn=nn.ref,Tn=nn.onScroll;return ce.createElement(vi,{ref:sn,data:Rt,onScroll:Tn})},kt=100;function Fi(Dt){var Rt=Dt.columns,nn=Dt.scroll,sn=Dt.prefixCls,Tn=sn===void 0?Jn:sn,pn=Dt.className,Bn=Dt.listItemHeight,_n=nn||{},In=_n.x,Qn=_n.y;typeof In!="number"&&(In=((Rt||[]).length+1)*kt),typeof Qn!="number"&&(Qn=500);var ir=ce.useMemo(function(){return{scrollY:Qn,listItemHeight:Bn}},[Qn,Bn]);return ce.createElement(vn.Provider,{value:ir},ce.createElement(br,(0,Oe.Z)({},Dt,{className:ze()(pn,"".concat(Tn,"-virtual")),scroll:(0,Be.Z)((0,Be.Z)({},nn),{},{x:In}),components:{body:fr},columns:Rt,internalHooks:Pt,tailor:!0})))}function Ki(Dt){return le(Fi,Dt)}var gi=Ki(),oo=null;function So(Dt){return null}var Qr=So;function ii(Dt){return null}var Oi=ii,Pi=$e(2738),co=$e(68031),To=$e(36355),Kr=$e(93891),Vr=$e(19716),Yn=$e(8628),ci=$e(31724),ro=$e(58421),Wo=$e(71418),_o=$e(88088);function Xo(Dt){return function(nn){let{prefixCls:sn,onExpand:Tn,record:pn,expanded:Bn,expandable:_n}=nn;const In=`${sn}-row-expand-icon`;return ce.createElement("button",{type:"button",onClick:Qn=>{Tn(pn,Qn),Qn.stopPropagation()},className:ze()(In,{[`${In}-spaced`]:!_n,[`${In}-expanded`]:_n&&Bn,[`${In}-collapsed`]:_n&&!Bn}),"aria-label":Bn?Dt.collapse:Dt.expand,"aria-expanded":Bn})}}var Pa=Xo;function na(Dt,Rt){return"key"in Dt&&Dt.key!==void 0&&Dt.key!==null?Dt.key:Dt.dataIndex?Array.isArray(Dt.dataIndex)?Dt.dataIndex.join("."):Dt.dataIndex:Rt}function os(Dt,Rt){return Rt?`${Rt}-${Dt}`:`${Dt}`}function Da(Dt,Rt){return typeof Dt=="function"?Dt(Rt):Dt}function fs(Dt,Rt){const nn=Da(Dt,Rt);return Object.prototype.toString.call(nn)==="[object Object]"?"":nn}var Ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Fa=Ln,rc=$e(7657),el=function(Rt,nn){return ce.createElement(rc.Z,(0,Oe.Z)({},Rt,{ref:nn,icon:Fa}))},xo=ce.forwardRef(el),eo=xo,ga=$e(56762);function jo(Dt){const Rt=ce.useRef(Dt),nn=(0,ga.Z)();return[()=>Rt.current,sn=>{Rt.current=sn,nn()}]}var Yi=$e(3113),No=$e(24905),xs=$e(38854),bi=$e(64165),so=$e(20834),io=$e(40875),Lr=$e(5112),Ba=$e(17574),Ra=$e(47472),Cs=$e(92832);function Il(Dt){let{value:Rt,onChange:nn,filterSearch:sn,tablePrefixCls:Tn,locale:pn}=Dt;return sn?ce.createElement("div",{className:`${Tn}-filter-dropdown-search`},ce.createElement(Cs.default,{prefix:ce.createElement(Ra.Z,null),placeholder:pn.filterSearchPlaceholder,onChange:nn,value:Rt,htmlSize:1,className:`${Tn}-filter-dropdown-search-input`})):null}var Ql=Il,wr=$e(10228);const aa=Dt=>{const{keyCode:Rt}=Dt;Rt===wr.Z.ENTER&&Dt.stopPropagation()};var Pl=ce.forwardRef((Dt,Rt)=>ce.createElement("div",{className:Dt.className,onClick:nn=>nn.stopPropagation(),onKeyDown:aa,ref:Rt},Dt.children));function Dl(Dt){let Rt=[];return(Dt||[]).forEach(nn=>{let{value:sn,children:Tn}=nn;Rt.push(sn),Tn&&(Rt=[].concat((0,Nr.Z)(Rt),(0,Nr.Z)(Dl(Tn))))}),Rt}function Fl(Dt){return Dt.some(Rt=>{let{children:nn}=Rt;return nn})}function Bi(Dt,Rt){return typeof Rt=="string"||typeof Rt=="number"?Rt==null?void 0:Rt.toString().toLowerCase().includes(Dt.trim().toLowerCase()):!1}function mc(Dt){let{filters:Rt,prefixCls:nn,filteredKeys:sn,filterMultiple:Tn,searchValue:pn,filterSearch:Bn}=Dt;return Rt.map((_n,In)=>{const Qn=String(_n.value);if(_n.children)return{key:Qn||In,label:_n.text,popupClassName:`${nn}-dropdown-submenu`,children:mc({filters:_n.children,prefixCls:nn,filteredKeys:sn,filterMultiple:Tn,searchValue:pn,filterSearch:Bn})};const ir=Tn?No.default:Lr.ZP,er={key:_n.value!==void 0?Qn:In,label:ce.createElement(ce.Fragment,null,ce.createElement(ir,{checked:sn.includes(Qn)}),ce.createElement("span",null,_n.text))};return pn.trim()?typeof Bn=="function"?Bn(pn,_n)?er:null:Bi(pn,_n.text)?er:null:er})}function tl(Dt){var Rt,nn;const{tablePrefixCls:sn,prefixCls:Tn,column:pn,dropdownPrefixCls:Bn,columnKey:_n,filterMultiple:In,filterMode:Qn="menu",filterSearch:ir=!1,filterState:er,triggerFilter:jr,locale:Mr,children:vr,getPopupContainer:ei}=Dt,{filterDropdownOpen:Cr,onFilterDropdownOpenChange:Xr,filterResetToDefaultFilteredValue:Zr,defaultFilteredValue:hi,filterDropdownVisible:Ai,onFilterDropdownVisibleChange:Wi}=pn,[oi,Ni]=ce.useState(!1),ho=!!(er&&(!((Rt=er.filteredKeys)===null||Rt===void 0)&&Rt.length||er.forceFiltered)),ui=Ii=>{Ni(Ii),Xr==null||Xr(Ii),Wi==null||Wi(Ii)},Ei=(nn=Cr!=null?Cr:Ai)!==null&&nn!==void 0?nn:oi,li=er==null?void 0:er.filteredKeys,[Gr,yi]=jo(li||[]),Ri=Ii=>{let{selectedKeys:fo}=Ii;yi(fo)},Xi=(Ii,fo)=>{let{node:Fo,checked:Bo}=fo;Ri(In?{selectedKeys:Ii}:{selectedKeys:Bo&&Fo.key?[Fo.key]:[]})};ce.useEffect(()=>{oi&&Ri({selectedKeys:li||[]})},[li]);const[Ji,ai]=ce.useState([]),po=Ii=>{ai(Ii)},[wo,Jo]=ce.useState(""),Oo=Ii=>{const{value:fo}=Ii.target;Jo(fo)};ce.useEffect(()=>{oi||Jo("")},[oi]);const ka=Ii=>{const fo=Ii&&Ii.length?Ii:null;if(fo===null&&(!er||!er.filteredKeys)||(0,me.Z)(fo,er==null?void 0:er.filteredKeys,!0))return null;jr({column:pn,key:_n,filteredKeys:fo})},Ea=()=>{ui(!1),ka(Gr())},vo=function(){let{confirm:Ii,closeDropdown:fo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ii&&ka([]),fo&&ui(!1),Jo(""),yi(Zr?(hi||[]).map(Fo=>String(Fo)):[])},Hi=function(){let{closeDropdown:Ii}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ii&&ui(!1),ka(Gr())},Uo=Ii=>{Ii&&li!==void 0&&yi(li||[]),ui(Ii),!Ii&&!pn.filterDropdown&&Ea()},Na=ze()({[`${Bn}-menu-without-submenu`]:!Fl(pn.filters||[])}),va=Ii=>{if(Ii.target.checked){const fo=Dl(pn==null?void 0:pn.filters).map(Fo=>String(Fo));yi(fo)}else yi([])},ns=Ii=>{let{filters:fo}=Ii;return(fo||[]).map((Fo,Bo)=>{const bs=String(Fo.value),ss={title:Fo.text,key:Fo.value!==void 0?bs:Bo};return Fo.children&&(ss.children=ns({filters:Fo.children})),ss})},Qi=Ii=>{var fo;return Object.assign(Object.assign({},Ii),{text:Ii.title,value:Ii.key,children:((fo=Ii.children)===null||fo===void 0?void 0:fo.map(Fo=>Qi(Fo)))||[]})};let Vi;if(typeof pn.filterDropdown=="function")Vi=pn.filterDropdown({prefixCls:`${Bn}-custom`,setSelectedKeys:Ii=>Ri({selectedKeys:Ii}),selectedKeys:Gr(),confirm:Hi,clearFilters:vo,filters:pn.filters,visible:Ei,close:()=>{ui(!1)}});else if(pn.filterDropdown)Vi=pn.filterDropdown;else{const Ii=Gr()||[],fo=()=>(pn.filters||[]).length===0?ce.createElement(bi.Z,{image:bi.Z.PRESENTED_IMAGE_SIMPLE,description:Mr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qn==="tree"?ce.createElement(ce.Fragment,null,ce.createElement(Ql,{filterSearch:ir,value:wo,onChange:Oo,tablePrefixCls:sn,locale:Mr}),ce.createElement("div",{className:`${sn}-filter-dropdown-tree`},In?ce.createElement(No.default,{checked:Ii.length===Dl(pn.filters).length,indeterminate:Ii.length>0&&Ii.length<Dl(pn.filters).length,className:`${sn}-filter-dropdown-checkall`,onChange:va},Mr.filterCheckall):null,ce.createElement(Ba.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:In,checkStrictly:!In,className:`${Bn}-menu`,onCheck:Xi,checkedKeys:Ii,selectedKeys:Ii,showIcon:!1,treeData:ns({filters:pn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:wo.trim()?Bo=>typeof ir=="function"?ir(wo,Qi(Bo)):Bi(wo,Bo.title):void 0}))):ce.createElement(ce.Fragment,null,ce.createElement(Ql,{filterSearch:ir,value:wo,onChange:Oo,tablePrefixCls:sn,locale:Mr}),ce.createElement(so.default,{selectable:!0,multiple:In,prefixCls:`${Bn}-menu`,className:Na,onSelect:Ri,onDeselect:Ri,selectedKeys:Ii,getPopupContainer:ei,openKeys:Ji,onOpenChange:po,items:mc({filters:pn.filters||[],filterSearch:ir,prefixCls:Tn,filteredKeys:Gr(),filterMultiple:In,searchValue:wo})})),Fo=()=>Zr?(0,me.Z)((hi||[]).map(Bo=>String(Bo)),Ii,!0):Ii.length===0;Vi=ce.createElement(ce.Fragment,null,fo(),ce.createElement("div",{className:`${Tn}-dropdown-btns`},ce.createElement(Yi.ZP,{type:"link",size:"small",disabled:Fo(),onClick:()=>vo()},Mr.filterReset),ce.createElement(Yi.ZP,{type:"primary",size:"small",onClick:Ea},Mr.filterConfirm)))}pn.filterDropdown&&(Vi=ce.createElement(io.J,{selectable:void 0},Vi));const qi=()=>ce.createElement(Pl,{className:`${Tn}-dropdown`},Vi);let ji;typeof pn.filterIcon=="function"?ji=pn.filterIcon(ho):pn.filterIcon?ji=pn.filterIcon:ji=ce.createElement(eo,null);const{direction:Vo}=ce.useContext(To.E_);return ce.createElement("div",{className:`${Tn}-column`},ce.createElement("span",{className:`${sn}-column-title`},vr),ce.createElement(xs.Z,{dropdownRender:qi,trigger:["click"],open:Ei,onOpenChange:Uo,getPopupContainer:ei,placement:Vo==="rtl"?"bottomLeft":"bottomRight"},ce.createElement("span",{role:"button",tabIndex:-1,className:ze()(`${Tn}-trigger`,{active:ho}),onClick:Ii=>{Ii.stopPropagation()}},ji)))}var nl=tl;function As(Dt,Rt,nn){let sn=[];return(Dt||[]).forEach((Tn,pn)=>{var Bn;const _n=os(pn,nn);if(Tn.filters||"filterDropdown"in Tn||"onFilter"in Tn)if("filteredValue"in Tn){let In=Tn.filteredValue;"filterDropdown"in Tn||(In=(Bn=In==null?void 0:In.map(String))!==null&&Bn!==void 0?Bn:In),sn.push({column:Tn,key:na(Tn,_n),filteredKeys:In,forceFiltered:Tn.filtered})}else sn.push({column:Tn,key:na(Tn,_n),filteredKeys:Rt&&Tn.defaultFilteredValue?Tn.defaultFilteredValue:void 0,forceFiltered:Tn.filtered});"children"in Tn&&(sn=[].concat((0,Nr.Z)(sn),(0,Nr.Z)(As(Tn.children,Rt,_n))))}),sn}function Cu(Dt,Rt,nn,sn,Tn,pn,Bn,_n){return nn.map((In,Qn)=>{const ir=os(Qn,_n),{filterMultiple:er=!0,filterMode:jr,filterSearch:Mr}=In;let vr=In;if(vr.filters||vr.filterDropdown){const ei=na(vr,ir),Cr=sn.find(Xr=>{let{key:Zr}=Xr;return ei===Zr});vr=Object.assign(Object.assign({},vr),{title:Xr=>ce.createElement(nl,{tablePrefixCls:Dt,prefixCls:`${Dt}-filter`,dropdownPrefixCls:Rt,column:vr,columnKey:ei,filterState:Cr,filterMultiple:er,filterMode:jr,filterSearch:Mr,triggerFilter:pn,locale:Tn,getPopupContainer:Bn},Da(In.title,Xr))})}return"children"in vr&&(vr=Object.assign(Object.assign({},vr),{children:Cu(Dt,Rt,vr.children,sn,Tn,pn,Bn,ir)})),vr})}function Bu(Dt){const Rt={};return Dt.forEach(nn=>{let{key:sn,filteredKeys:Tn,column:pn}=nn;const{filters:Bn,filterDropdown:_n}=pn;if(_n)Rt[sn]=Tn||null;else if(Array.isArray(Tn)){const In=Dl(Bn);Rt[sn]=In.filter(Qn=>Tn.includes(String(Qn)))}else Rt[sn]=null}),Rt}function _s(Dt,Rt){return Rt.reduce((nn,sn)=>{const{column:{onFilter:Tn,filters:pn},filteredKeys:Bn}=sn;return Tn&&Bn&&Bn.length?nn.filter(_n=>Bn.some(In=>{const Qn=Dl(pn),ir=Qn.findIndex(jr=>String(jr)===String(In)),er=ir!==-1?Qn[ir]:In;return Tn(er,_n)})):nn},Dt)}const dl=Dt=>Dt.flatMap(Rt=>"children"in Rt?[Rt].concat((0,Nr.Z)(dl(Rt.children||[]))):[Rt]);function Hc(Dt){let{prefixCls:Rt,dropdownPrefixCls:nn,mergedColumns:sn,onFilterChange:Tn,getPopupContainer:pn,locale:Bn}=Dt;const _n=ce.useMemo(()=>dl(sn||[]),[sn]),[In,Qn]=ce.useState(()=>As(_n,!0)),ir=ce.useMemo(()=>{const vr=As(_n,!1);if(vr.length===0)return vr;let ei=!0,Cr=!0;if(vr.forEach(Xr=>{let{filteredKeys:Zr}=Xr;Zr!==void 0?ei=!1:Cr=!1}),ei){const Xr=(_n||[]).map((Zr,hi)=>na(Zr,os(hi)));return In.filter(Zr=>{let{key:hi}=Zr;return Xr.includes(hi)}).map(Zr=>{const hi=_n[Xr.findIndex(Ai=>Ai===Zr.key)];return Object.assign(Object.assign({},Zr),{column:Object.assign(Object.assign({},Zr.column),hi),forceFiltered:hi.filtered})})}return vr},[_n,In]),er=ce.useMemo(()=>Bu(ir),[ir]),jr=vr=>{const ei=ir.filter(Cr=>{let{key:Xr}=Cr;return Xr!==vr.key});ei.push(vr),Qn(ei),Tn(Bu(ei),ei)};return[vr=>Cu(Rt,nn,vr,ir,Bn,jr,pn),ir,er]}var hh=Hc;function Gc(Dt,Rt,nn){const sn=ce.useRef({});function Tn(pn){if(!sn.current||sn.current.data!==Dt||sn.current.childrenColumnName!==Rt||sn.current.getRowKey!==nn){let _n=function(In){In.forEach((Qn,ir)=>{const er=nn(Qn,ir);Bn.set(er,Qn),Qn&&typeof Qn=="object"&&Rt in Qn&&_n(Qn[Rt]||[])})};const Bn=new Map;_n(Dt),sn.current={data:Dt,childrenColumnName:Rt,kvMap:Bn,getRowKey:nn}}return sn.current.kvMap.get(pn)}return[Tn]}var Wh=$e(50371),Wc=function(Dt,Rt){var nn={};for(var sn in Dt)Object.prototype.hasOwnProperty.call(Dt,sn)&&Rt.indexOf(sn)<0&&(nn[sn]=Dt[sn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tn=0,sn=Object.getOwnPropertySymbols(Dt);Tn<sn.length;Tn++)Rt.indexOf(sn[Tn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,sn[Tn])&&(nn[sn[Tn]]=Dt[sn[Tn]]);return nn};const vc=10;function Ru(Dt,Rt){const nn={current:Dt.current,pageSize:Dt.pageSize};return Object.keys(Rt&&typeof Rt=="object"?Rt:{}).forEach(Tn=>{const pn=Dt[Tn];typeof pn!="function"&&(nn[Tn]=pn)}),nn}function Bl(Dt,Rt,nn){const sn=nn&&typeof nn=="object"?nn:{},{total:Tn=0}=sn,pn=Wc(sn,["total"]),[Bn,_n]=(0,ce.useState)(()=>({current:"defaultCurrent"in pn?pn.defaultCurrent:1,pageSize:"defaultPageSize"in pn?pn.defaultPageSize:vc})),In=(0,Wh.Z)(Bn,pn,{total:Tn>0?Tn:Dt}),Qn=Math.ceil((Tn||Dt)/In.pageSize);In.current>Qn&&(In.current=Qn||1);const ir=(jr,Mr)=>{_n({current:jr!=null?jr:1,pageSize:Mr||In.pageSize})},er=(jr,Mr)=>{var vr;nn&&((vr=nn.onChange)===null||vr===void 0||vr.call(nn,jr,Mr)),ir(jr,Mr),Rt(jr,Mr||(In==null?void 0:In.pageSize))};return nn===!1?[{},()=>{}]:[Object.assign(Object.assign({},In),{onChange:er}),ir]}var dh=Bl,Uc=$e(84105),yc=$e(35654),to=$e(90782),Io=$e(71430),Es=$e(18929);const Xa={},_a="SELECT_ALL",ca="SELECT_INVERT",Ca="SELECT_NONE",Ka=[],za=(Dt,Rt)=>{let nn=[];return(Rt||[]).forEach(sn=>{nn.push(sn),sn&&typeof sn=="object"&&Dt in sn&&(nn=[].concat((0,Nr.Z)(nn),(0,Nr.Z)(za(Dt,sn[Dt]))))}),nn};var Rl=(Dt,Rt)=>{const{preserveSelectedRowKeys:nn,selectedRowKeys:sn,defaultSelectedRowKeys:Tn,getCheckboxProps:pn,onChange:Bn,onSelect:_n,onSelectAll:In,onSelectInvert:Qn,onSelectNone:ir,onSelectMultiple:er,columnWidth:jr,type:Mr,selections:vr,fixed:ei,renderCell:Cr,hideSelectAll:Xr,checkStrictly:Zr=!0}=Rt||{},{prefixCls:hi,data:Ai,pageData:Wi,getRecordByKey:oi,getRowKey:Ni,expandType:ho,childrenColumnName:ui,locale:Ei,getPopupContainer:li}=Dt,[Gr,yi]=(0,Es.Z)(sn||Tn||Ka,{value:sn}),Ri=ce.useRef(new Map),Xi=(0,ce.useCallback)(Qi=>{if(nn){const Vi=new Map;Qi.forEach(qi=>{let ji=oi(qi);!ji&&Ri.current.has(qi)&&(ji=Ri.current.get(qi)),Vi.set(qi,ji)}),Ri.current=Vi}},[oi,nn]);ce.useEffect(()=>{Xi(Gr)},[Gr]);const{keyEntities:Ji}=(0,ce.useMemo)(()=>{if(Zr)return{keyEntities:null};let Qi=Ai;if(nn){const Vi=new Set(Ai.map((ji,Vo)=>Ni(ji,Vo))),qi=Array.from(Ri.current).reduce((ji,Vo)=>{let[Ii,fo]=Vo;return Vi.has(Ii)?ji:ji.concat(fo)},[]);Qi=[].concat((0,Nr.Z)(Qi),(0,Nr.Z)(qi))}return(0,Io.I8)(Qi,{externalGetKey:Ni,childrenPropName:ui})},[Ai,Ni,Zr,ui,nn]),ai=(0,ce.useMemo)(()=>za(ui,Wi),[ui,Wi]),po=(0,ce.useMemo)(()=>{const Qi=new Map;return ai.forEach((Vi,qi)=>{const ji=Ni(Vi,qi),Vo=(pn?pn(Vi):null)||{};Qi.set(ji,Vo)}),Qi},[ai,Ni,pn]),wo=(0,ce.useCallback)(Qi=>{var Vi;return!!(!((Vi=po.get(Ni(Qi)))===null||Vi===void 0)&&Vi.disabled)},[po,Ni]),[Jo,Oo]=(0,ce.useMemo)(()=>{if(Zr)return[Gr||[],[]];const{checkedKeys:Qi,halfCheckedKeys:Vi}=(0,to.S)(Gr,!0,Ji,wo);return[Qi||[],Vi]},[Gr,Zr,Ji,wo]),ka=(0,ce.useMemo)(()=>{const Qi=Mr==="radio"?Jo.slice(0,1):Jo;return new Set(Qi)},[Jo,Mr]),Ea=(0,ce.useMemo)(()=>Mr==="radio"?new Set:new Set(Oo),[Oo,Mr]),[vo,Hi]=(0,ce.useState)(null);ce.useEffect(()=>{Rt||yi(Ka)},[!!Rt]);const Uo=(0,ce.useCallback)((Qi,Vi)=>{let qi,ji;Xi(Qi),nn?(qi=Qi,ji=Qi.map(Vo=>Ri.current.get(Vo))):(qi=[],ji=[],Qi.forEach(Vo=>{const Ii=oi(Vo);Ii!==void 0&&(qi.push(Vo),ji.push(Ii))})),yi(qi),Bn==null||Bn(qi,ji,{type:Vi})},[yi,oi,Bn,nn]),Na=(0,ce.useCallback)((Qi,Vi,qi,ji)=>{if(_n){const Vo=qi.map(Ii=>oi(Ii));_n(oi(Qi),Vi,Vo,ji)}Uo(qi,"single")},[_n,oi,Uo]),va=(0,ce.useMemo)(()=>!vr||Xr?null:(vr===!0?[_a,ca,Ca]:vr).map(Vi=>Vi===_a?{key:"all",text:Ei.selectionAll,onSelect(){Uo(Ai.map((qi,ji)=>Ni(qi,ji)).filter(qi=>{const ji=po.get(qi);return!(ji!=null&&ji.disabled)||ka.has(qi)}),"all")}}:Vi===ca?{key:"invert",text:Ei.selectInvert,onSelect(){const qi=new Set(ka);Wi.forEach((Vo,Ii)=>{const fo=Ni(Vo,Ii),Fo=po.get(fo);Fo!=null&&Fo.disabled||(qi.has(fo)?qi.delete(fo):qi.add(fo))});const ji=Array.from(qi);Qn&&Qn(ji),Uo(ji,"invert")}}:Vi===Ca?{key:"none",text:Ei.selectNone,onSelect(){ir==null||ir(),Uo(Array.from(ka).filter(qi=>{const ji=po.get(qi);return ji==null?void 0:ji.disabled}),"none")}}:Vi).map(Vi=>Object.assign(Object.assign({},Vi),{onSelect:function(){for(var qi,ji,Vo=arguments.length,Ii=new Array(Vo),fo=0;fo<Vo;fo++)Ii[fo]=arguments[fo];(ji=Vi.onSelect)===null||ji===void 0||(qi=ji).call.apply(qi,[Vi].concat(Ii)),Hi(null)}})),[vr,ka,Wi,Ni,Qn,Uo]);return[(0,ce.useCallback)(Qi=>{var Vi;if(!Rt)return Qi.filter(qo=>qo!==Xa);let qi=(0,Nr.Z)(Qi);const ji=new Set(ka),Vo=ai.map(Ni).filter(qo=>!po.get(qo).disabled),Ii=Vo.every(qo=>ji.has(qo)),fo=Vo.some(qo=>ji.has(qo)),Fo=()=>{const qo=[];Ii?Vo.forEach(ua=>{ji.delete(ua),qo.push(ua)}):Vo.forEach(ua=>{ji.has(ua)||(ji.add(ua),qo.push(ua))});const ia=Array.from(ji);In==null||In(!Ii,ia.map(ua=>oi(ua)),qo.map(ua=>oi(ua))),Uo(ia,"all"),Hi(null)};let Bo;if(Mr!=="radio"){let qo;if(va){const Lo={getPopupContainer:li,items:va.map((da,ms)=>{const{key:pl,text:zl,onSelect:El}=da;return{key:pl!=null?pl:ms,onClick:()=>{El==null||El(Vo)},label:zl}})};qo=ce.createElement("div",{className:`${hi}-selection-extra`},ce.createElement(xs.Z,{menu:Lo,getPopupContainer:li},ce.createElement("span",null,ce.createElement(Uc.Z,null))))}const ia=ai.map((Lo,da)=>{const ms=Ni(Lo,da),pl=po.get(ms)||{};return Object.assign({checked:ji.has(ms)},pl)}).filter(Lo=>{let{disabled:da}=Lo;return da}),ua=!!ia.length&&ia.length===ai.length,Za=ua&&ia.every(Lo=>{let{checked:da}=Lo;return da}),gs=ua&&ia.some(Lo=>{let{checked:da}=Lo;return da});Bo=!Xr&&ce.createElement("div",{className:`${hi}-selection`},ce.createElement(No.default,{checked:ua?Za:!!ai.length&&Ii,indeterminate:ua?!Za&&gs:!Ii&&fo,onChange:Fo,disabled:ai.length===0||ua,"aria-label":qo?"Custom selection":"Select all",skipGroup:!0}),qo)}let bs;Mr==="radio"?bs=(qo,ia,ua)=>{const Za=Ni(ia,ua),gs=ji.has(Za);return{node:ce.createElement(Lr.ZP,Object.assign({},po.get(Za),{checked:gs,onClick:Lo=>Lo.stopPropagation(),onChange:Lo=>{ji.has(Za)||Na(Za,!0,[Za],Lo.nativeEvent)}})),checked:gs}}:bs=(qo,ia,ua)=>{var Za;const gs=Ni(ia,ua),Lo=ji.has(gs),da=Ea.has(gs),ms=po.get(gs);let pl;return ho==="nest"?pl=da:pl=(Za=ms==null?void 0:ms.indeterminate)!==null&&Za!==void 0?Za:da,{node:ce.createElement(No.default,Object.assign({},ms,{indeterminate:pl,checked:Lo,skipGroup:!0,onClick:zl=>zl.stopPropagation(),onChange:zl=>{let{nativeEvent:El}=zl;const{shiftKey:ql}=El;let eu=-1,Hl=-1;if(ql&&Zr){const ta=new Set([vo,gs]);Vo.some((Ts,Ga)=>{if(ta.has(Ts))if(eu===-1)eu=Ga;else return Hl=Ga,!0;return!1})}if(Hl!==-1&&eu!==Hl&&Zr){const ta=Vo.slice(eu,Hl+1),Ts=[];Lo?ta.forEach(fa=>{ji.has(fa)&&(Ts.push(fa),ji.delete(fa))}):ta.forEach(fa=>{ji.has(fa)||(Ts.push(fa),ji.add(fa))});const Ga=Array.from(ji);er==null||er(!Lo,Ga.map(fa=>oi(fa)),Ts.map(fa=>oi(fa))),Uo(Ga,"multiple")}else{const ta=Jo;if(Zr){const Ts=Lo?(0,yc._5)(ta,gs):(0,yc.L0)(ta,gs);Na(gs,!Lo,Ts,El)}else{const Ts=(0,to.S)([].concat((0,Nr.Z)(ta),[gs]),!0,Ji,wo),{checkedKeys:Ga,halfCheckedKeys:fa}=Ts;let Gl=Ga;if(Lo){const oc=new Set(Ga);oc.delete(gs),Gl=(0,to.S)(Array.from(oc),{checked:!1,halfCheckedKeys:fa},Ji,wo).checkedKeys}Na(gs,!Lo,Gl,El)}}Hi(Lo?null:gs)}})),checked:Lo}};const ss=(qo,ia,ua)=>{const{node:Za,checked:gs}=bs(qo,ia,ua);return Cr?Cr(gs,ia,ua,Za):Za};if(!qi.includes(Xa))if(qi.findIndex(qo=>{var ia;return((ia=qo[Vn])===null||ia===void 0?void 0:ia.columnType)==="EXPAND_COLUMN"})===0){const[qo,...ia]=qi;qi=[qo,Xa].concat((0,Nr.Z)(ia))}else qi=[Xa].concat((0,Nr.Z)(qi));const Hs=qi.indexOf(Xa);qi=qi.filter((qo,ia)=>qo!==Xa||ia===Hs);const Qo=qi[Hs-1],Ps=qi[Hs+1];let qa=ei;qa===void 0&&((Ps==null?void 0:Ps.fixed)!==void 0?qa=Ps.fixed:(Qo==null?void 0:Qo.fixed)!==void 0&&(qa=Qo.fixed)),qa&&Qo&&((Vi=Qo[Vn])===null||Vi===void 0?void 0:Vi.columnType)==="EXPAND_COLUMN"&&Qo.fixed===void 0&&(Qo.fixed=qa);const ps=ze()(`${hi}-selection-col`,{[`${hi}-selection-col-with-dropdown`]:vr&&Mr==="checkbox"}),Uu={fixed:qa,width:jr,className:`${hi}-selection-column`,title:Rt.columnTitle||Bo,render:ss,onCell:Rt.onCell,[Vn]:{className:ps}};return qi.map(qo=>qo===Xa?Uu:qo)},[Ni,ai,Rt,Jo,ka,Ea,jr,va,ho,vo,po,er,Na,wo]),ka]},Ma=$e(89489),wd=$e(59477),bd=$e(6848);const $c="ascend",pi="descend";function fh(Dt){return typeof Dt.sorter=="object"&&typeof Dt.sorter.multiple=="number"?Dt.sorter.multiple:!1}function Qt(Dt){return typeof Dt=="function"?Dt:Dt&&typeof Dt=="object"&&Dt.compare?Dt.compare:!1}function Zn(Dt,Rt){return Rt?Dt[Dt.indexOf(Rt)+1]:Dt[0]}function Pd(Dt,Rt,nn){let sn=[];function Tn(pn,Bn){sn.push({column:pn,key:na(pn,Bn),multiplePriority:fh(pn),sortOrder:pn.sortOrder})}return(Dt||[]).forEach((pn,Bn)=>{const _n=os(Bn,nn);pn.children?("sortOrder"in pn&&Tn(pn,_n),sn=[].concat((0,Nr.Z)(sn),(0,Nr.Z)(Pd(pn.children,Rt,_n)))):pn.sorter&&("sortOrder"in pn?Tn(pn,_n):Rt&&pn.defaultSortOrder&&sn.push({column:pn,key:na(pn,_n),multiplePriority:fh(pn),sortOrder:pn.defaultSortOrder}))}),sn}function af(Dt,Rt,nn,sn,Tn,pn,Bn,_n){return(Rt||[]).map((In,Qn)=>{const ir=os(Qn,_n);let er=In;if(er.sorter){const jr=er.sortDirections||Tn,Mr=er.showSorterTooltip===void 0?Bn:er.showSorterTooltip,vr=na(er,ir),ei=nn.find(ho=>{let{key:ui}=ho;return ui===vr}),Cr=ei?ei.sortOrder:null,Xr=Zn(jr,Cr);let Zr;if(In.sortIcon)Zr=In.sortIcon({sortOrder:Cr});else{const ho=jr.includes($c)&&ce.createElement(wd.Z,{className:ze()(`${Dt}-column-sorter-up`,{active:Cr===$c})}),ui=jr.includes(pi)&&ce.createElement(Ma.Z,{className:ze()(`${Dt}-column-sorter-down`,{active:Cr===pi})});Zr=ce.createElement("span",{className:ze()(`${Dt}-column-sorter`,{[`${Dt}-column-sorter-full`]:!!(ho&&ui)})},ce.createElement("span",{className:`${Dt}-column-sorter-inner`,"aria-hidden":"true"},ho,ui))}const{cancelSort:hi,triggerAsc:Ai,triggerDesc:Wi}=pn||{};let oi=hi;Xr===pi?oi=Wi:Xr===$c&&(oi=Ai);const Ni=typeof Mr=="object"?Mr:{title:oi};er=Object.assign(Object.assign({},er),{className:ze()(er.className,{[`${Dt}-column-sort`]:Cr}),title:ho=>{const ui=ce.createElement("div",{className:`${Dt}-column-sorters`},ce.createElement("span",{className:`${Dt}-column-title`},Da(In.title,ho)),Zr);return Mr?ce.createElement(bd.Z,Object.assign({},Ni),ui):ui},onHeaderCell:ho=>{const ui=In.onHeaderCell&&In.onHeaderCell(ho)||{},Ei=ui.onClick,li=ui.onKeyDown;ui.onClick=Ri=>{sn({column:In,key:vr,sortOrder:Xr,multiplePriority:fh(In)}),Ei==null||Ei(Ri)},ui.onKeyDown=Ri=>{Ri.keyCode===wr.Z.ENTER&&(sn({column:In,key:vr,sortOrder:Xr,multiplePriority:fh(In)}),li==null||li(Ri))};const Gr=fs(In.title,{}),yi=Gr==null?void 0:Gr.toString();return Cr?ui["aria-sort"]=Cr==="ascend"?"ascending":"descending":ui["aria-label"]=yi||"",ui.className=ze()(ui.className,`${Dt}-column-has-sorters`),ui.tabIndex=0,In.ellipsis&&(ui.title=(Gr!=null?Gr:"").toString()),ui}})}return"children"in er&&(er=Object.assign(Object.assign({},er),{children:af(Dt,er.children,nn,sn,Tn,pn,Bn,ir)})),er})}function zu(Dt){const{column:Rt,sortOrder:nn}=Dt;return{column:Rt,order:nn,field:Rt.dataIndex,columnKey:Rt.key}}function Hu(Dt){const Rt=Dt.filter(nn=>{let{sortOrder:sn}=nn;return sn}).map(zu);return Rt.length===0&&Dt.length?Object.assign(Object.assign({},zu(Dt[Dt.length-1])),{column:void 0}):Rt.length<=1?Rt[0]||{}:Rt}function ic(Dt,Rt,nn){const sn=Rt.slice().sort((Bn,_n)=>_n.multiplePriority-Bn.multiplePriority),Tn=Dt.slice(),pn=sn.filter(Bn=>{let{column:{sorter:_n},sortOrder:In}=Bn;return Qt(_n)&&In});return pn.length?Tn.sort((Bn,_n)=>{for(let In=0;In<pn.length;In+=1){const Qn=pn[In],{column:{sorter:ir},sortOrder:er}=Qn,jr=Qt(ir);if(jr&&er){const Mr=jr(Bn,_n,er);if(Mr!==0)return er===$c?Mr:-Mr}}return 0}).map(Bn=>{const _n=Bn[nn];return _n?Object.assign(Object.assign({},Bn),{[nn]:ic(_n,Rt,nn)}):Bn}):Tn}function Cd(Dt){let{prefixCls:Rt,mergedColumns:nn,onSorterChange:sn,sortDirections:Tn,tableLocale:pn,showSorterTooltip:Bn}=Dt;const[_n,In]=ce.useState(Pd(nn,!0)),Qn=ce.useMemo(()=>{let vr=!0;const ei=Pd(nn,!1);if(!ei.length)return _n;const Cr=[];function Xr(hi){vr?Cr.push(hi):Cr.push(Object.assign(Object.assign({},hi),{sortOrder:null}))}let Zr=null;return ei.forEach(hi=>{Zr===null?(Xr(hi),hi.sortOrder&&(hi.multiplePriority===!1?vr=!1:Zr=!0)):(Zr&&hi.multiplePriority!==!1||(vr=!1),Xr(hi))}),Cr},[nn,_n]),ir=ce.useMemo(()=>{const vr=Qn.map(ei=>{let{column:Cr,sortOrder:Xr}=ei;return{column:Cr,order:Xr}});return{sortColumns:vr,sortColumn:vr[0]&&vr[0].column,sortOrder:vr[0]&&vr[0].order}},[Qn]);function er(vr){let ei;vr.multiplePriority===!1||!Qn.length||Qn[0].multiplePriority===!1?ei=[vr]:ei=[].concat((0,Nr.Z)(Qn.filter(Cr=>{let{key:Xr}=Cr;return Xr!==vr.key})),[vr]),In(ei),sn(Hu(ei),ei)}return[vr=>af(Rt,vr,Qn,er,Tn,pn,Bn),Qn,ir,()=>Hu(Qn)]}function ph(Dt,Rt){return Dt.map(nn=>{const sn=Object.assign({},nn);return sn.title=Da(nn.title,Rt),"children"in sn&&(sn.children=ph(sn.children,Rt)),sn})}function Ha(Dt){return[ce.useCallback(nn=>ph(nn,Dt),[Dt])]}var Gi=ri((Dt,Rt)=>{const{_renderTimes:nn}=Dt,{_renderTimes:sn}=Rt;return nn!==sn}),rl=Ki((Dt,Rt)=>{const{_renderTimes:nn}=Dt,{_renderTimes:sn}=Rt;return nn!==sn}),zs=$e(64993),ma=$e(17313),Po=$e(83116),as=$e(37613),ha=Dt=>{const{componentCls:Rt}=Dt,nn=`${Dt.lineWidth}px ${Dt.lineType} ${Dt.tableBorderColor}`,sn=(Tn,pn,Bn)=>({[`&${Rt}-${Tn}`]:{[`> ${Rt}-container`]:{[`> ${Rt}-content, > ${Rt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Rt}-expanded-row-fixed`]:{margin:`-${pn}px -${Bn+Dt.lineWidth}px`}}}}}});return{[`${Rt}-wrapper`]:{[`${Rt}${Rt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Rt}-title`]:{border:nn,borderBottom:0},[`> ${Rt}-container`]:{borderInlineStart:nn,borderTop:nn,[`
|
|
|
> ${Rt}-content,
|
|
|
> ${Rt}-header,
|
|
|
> ${Rt}-body,
|
|
|
> ${Rt}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:nn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:nn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Rt}-cell-fix-right-first::after`]:{borderInlineEnd:nn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Rt}-expanded-row-fixed`]:{margin:`-${Dt.tablePaddingVertical}px -${Dt.tablePaddingHorizontal+Dt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Dt.lineWidth,bottom:0,borderInlineEnd:nn,content:'""'}}}}}},[`&${Rt}-scroll-horizontal`]:{[`> ${Rt}-container > ${Rt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Rt}-expanded-row,
|
|
|
> tr${Rt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},sn("middle",Dt.tablePaddingVerticalMiddle,Dt.tablePaddingHorizontalMiddle)),sn("small",Dt.tablePaddingVerticalSmall,Dt.tablePaddingHorizontalSmall)),{[`> ${Rt}-footer`]:{border:nn,borderTop:0}}),[`${Rt}-cell`]:{[`${Rt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Dt.lineWidth}px 0 ${Dt.lineWidth}px ${Dt.tableHeaderBg}`}},[`${Rt}-bordered ${Rt}-cell-scrollbar`]:{borderInlineEnd:nn}}}},ws=Dt=>{const{componentCls:Rt}=Dt;return{[`${Rt}-wrapper`]:{[`${Rt}-cell-ellipsis`]:Object.assign(Object.assign({},ma.vS),{wordBreak:"keep-all",[`
|
|
|
&${Rt}-cell-fix-left-last,
|
|
|
&${Rt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Rt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Rt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},zo=Dt=>{const{componentCls:Rt}=Dt;return{[`${Rt}-wrapper`]:{[`${Rt}-tbody > tr${Rt}-placeholder`]:{textAlign:"center",color:Dt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Dt.colorBgContainer}}}}},il=$e(15969),la=Dt=>{const{componentCls:Rt,antCls:nn,controlInteractiveSize:sn,motionDurationSlow:Tn,lineWidth:pn,paddingXS:Bn,lineType:_n,tableBorderColor:In,tableExpandIconBg:Qn,tableExpandColumnWidth:ir,borderRadius:er,fontSize:jr,fontSizeSM:Mr,lineHeight:vr,tablePaddingVertical:ei,tablePaddingHorizontal:Cr,tableExpandedRowBg:Xr,paddingXXS:Zr}=Dt,hi=sn/2-pn,Ai=hi*2+pn*3,Wi=`${pn}px ${_n} ${In}`,oi=Zr-pn;return{[`${Rt}-wrapper`]:{[`${Rt}-expand-icon-col`]:{width:ir},[`${Rt}-row-expand-icon-cell`]:{textAlign:"center",[`${Rt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Rt}-row-indent`]:{height:1,float:"left"},[`${Rt}-row-expand-icon`]:Object.assign(Object.assign({},(0,il.N)(Dt)),{position:"relative",float:"left",boxSizing:"border-box",width:Ai,height:Ai,padding:0,color:"inherit",lineHeight:`${Ai}px`,background:Qn,border:Wi,borderRadius:er,transform:`scale(${sn/Ai})`,transition:`all ${Tn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Tn} ease-out`,content:'""'},"&::before":{top:hi,insetInlineEnd:oi,insetInlineStart:oi,height:pn},"&::after":{top:oi,bottom:oi,insetInlineStart:hi,width:pn,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Rt}-row-indent + ${Rt}-row-expand-icon`]:{marginTop:(jr*vr-pn*3)/2-Math.ceil((Mr*1.4-pn*3)/2),marginInlineEnd:Bn},[`tr${Rt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xr}},[`${nn}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Rt}-expanded-row-fixed`]:{position:"relative",margin:`-${ei}px -${Cr}px`,padding:`${ei}px ${Cr}px`}}}},Va=Dt=>{const{componentCls:Rt,antCls:nn,iconCls:sn,tableFilterDropdownWidth:Tn,tableFilterDropdownSearchWidth:pn,paddingXXS:Bn,paddingXS:_n,colorText:In,lineWidth:Qn,lineType:ir,tableBorderColor:er,tableHeaderIconColor:jr,fontSizeSM:Mr,tablePaddingHorizontal:vr,borderRadius:ei,motionDurationSlow:Cr,colorTextDescription:Xr,colorPrimary:Zr,tableHeaderFilterActiveBg:hi,colorTextDisabled:Ai,tableFilterDropdownBg:Wi,tableFilterDropdownHeight:oi,controlItemBgHover:Ni,controlItemBgActive:ho,boxShadowSecondary:ui,filterDropdownMenuBg:Ei}=Dt,li=`${nn}-dropdown`,Gr=`${Rt}-filter-dropdown`,yi=`${nn}-tree`,Ri=`${Qn}px ${ir} ${er}`;return[{[`${Rt}-wrapper`]:{[`${Rt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Rt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Bn,marginInline:`${Bn}px ${-vr/2}px`,padding:`0 ${Bn}px`,color:jr,fontSize:Mr,borderRadius:ei,cursor:"pointer",transition:`all ${Cr}`,"&:hover":{color:Xr,background:hi},"&.active":{color:Zr}}}},{[`${nn}-dropdown`]:{[Gr]:Object.assign(Object.assign({},(0,ma.Wf)(Dt)),{minWidth:Tn,backgroundColor:Wi,borderRadius:ei,boxShadow:ui,overflow:"hidden",[`${li}-menu`]:{maxHeight:oi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ei,"&:empty::after":{display:"block",padding:`${_n}px 0`,color:Ai,fontSize:Mr,textAlign:"center",content:'"Not Found"'}},[`${Gr}-tree`]:{paddingBlock:`${_n}px 0`,paddingInline:_n,[yi]:{padding:0},[`${yi}-treenode ${yi}-node-content-wrapper:hover`]:{backgroundColor:Ni},[`${yi}-treenode-checkbox-checked ${yi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ho}}},[`${Gr}-search`]:{padding:_n,borderBottom:Ri,"&-input":{input:{minWidth:pn},[sn]:{color:Ai}}},[`${Gr}-checkall`]:{width:"100%",marginBottom:Bn,marginInlineStart:Bn},[`${Gr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${_n-Qn}px ${_n}px`,overflow:"hidden",borderTop:Ri}})}},{[`${nn}-dropdown ${Gr}, ${Gr}-submenu`]:{[`${nn}-checkbox-wrapper + span`]:{paddingInlineStart:_n,color:In},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Vc=Dt=>{const{componentCls:Rt,lineWidth:nn,colorSplit:sn,motionDurationSlow:Tn,zIndexTableFixed:pn,tableBg:Bn,zIndexTableSticky:_n}=Dt,In=sn;return{[`${Rt}-wrapper`]:{[`
|
|
|
${Rt}-cell-fix-left,
|
|
|
${Rt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:pn,background:Bn},[`
|
|
|
${Rt}-cell-fix-left-first::after,
|
|
|
${Rt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-nn,width:30,transform:"translateX(100%)",transition:`box-shadow ${Tn}`,content:'""',pointerEvents:"none"},[`${Rt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Rt}-cell-fix-right-first::after,
|
|
|
${Rt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-nn,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Tn}`,content:'""',pointerEvents:"none"},[`${Rt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:_n+1,width:30,transition:`box-shadow ${Tn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Rt}-ping-left`]:{[`&:not(${Rt}-has-fix-left) ${Rt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${In}`}},[`
|
|
|
${Rt}-cell-fix-left-first::after,
|
|
|
${Rt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${In}`},[`${Rt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Rt}-ping-right`]:{[`&:not(${Rt}-has-fix-right) ${Rt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${In}`}},[`
|
|
|
${Rt}-cell-fix-right-first::after,
|
|
|
${Rt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${In}`}}}}},Wf=Dt=>{const{componentCls:Rt,antCls:nn}=Dt;return{[`${Rt}-wrapper`]:{[`${Rt}-pagination${nn}-pagination`]:{margin:`${Dt.margin}px 0`},[`${Rt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Dt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Uf=Dt=>{const{componentCls:Rt,tableRadius:nn}=Dt;return{[`${Rt}-wrapper`]:{[Rt]:{[`${Rt}-title, ${Rt}-header`]:{borderRadius:`${nn}px ${nn}px 0 0`},[`${Rt}-title + ${Rt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Rt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:nn,borderStartEndRadius:nn,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:nn},"> *:last-child":{borderStartEndRadius:nn}}},"&-footer":{borderRadius:`0 0 ${nn}px ${nn}px`}}}}},$h=Dt=>{const{componentCls:Rt}=Dt;return{[`${Rt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Rt}-pagination-left`]:{justifyContent:"flex-end"},[`${Rt}-pagination-right`]:{justifyContent:"flex-start"},[`${Rt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Rt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Rt}-row-indent`]:{float:"right"}}}}},Ed=Dt=>{const{componentCls:Rt,antCls:nn,iconCls:sn,fontSizeIcon:Tn,padding:pn,paddingXS:Bn,tableHeaderIconColor:_n,tableHeaderIconColorHover:In,tableSelectionColumnWidth:Qn}=Dt;return{[`${Rt}-wrapper`]:{[`${Rt}-selection-col`]:{width:Qn,[`&${Rt}-selection-col-with-dropdown`]:{width:Qn+Tn+pn/4}},[`${Rt}-bordered ${Rt}-selection-col`]:{width:Qn+Bn*2,[`&${Rt}-selection-col-with-dropdown`]:{width:Qn+Tn+pn/4+Bn*2}},[`
|
|
|
table tr th${Rt}-selection-column,
|
|
|
table tr td${Rt}-selection-column
|
|
|
`]:{paddingInlineEnd:Dt.paddingXS,paddingInlineStart:Dt.paddingXS,textAlign:"center",[`${nn}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Rt}-selection-column${Rt}-cell-fix-left`]:{zIndex:Dt.zIndexTableFixed+1},[`table tr th${Rt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Rt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Rt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Dt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Dt.tablePaddingHorizontal/4}px`,[sn]:{color:_n,fontSize:Tn,verticalAlign:"baseline","&:hover":{color:In}}}}}},Zc=Dt=>{const{componentCls:Rt}=Dt,nn=(sn,Tn,pn,Bn)=>({[`${Rt}${Rt}-${sn}`]:{fontSize:Bn,[`
|
|
|
${Rt}-title,
|
|
|
${Rt}-footer,
|
|
|
${Rt}-cell,
|
|
|
${Rt}-thead > tr > th,
|
|
|
${Rt}-tbody > tr > th,
|
|
|
${Rt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Tn}px ${pn}px`},[`${Rt}-filter-trigger`]:{marginInlineEnd:`-${pn/2}px`},[`${Rt}-expanded-row-fixed`]:{margin:`-${Tn}px -${pn}px`},[`${Rt}-tbody`]:{[`${Rt}-wrapper:only-child ${Rt}`]:{marginBlock:`-${Tn}px`,marginInline:`${Dt.tableExpandColumnWidth-pn}px -${pn}px`}},[`${Rt}-selection-column`]:{paddingInlineStart:`${pn/4}px`}}});return{[`${Rt}-wrapper`]:Object.assign(Object.assign({},nn("middle",Dt.tablePaddingVerticalMiddle,Dt.tablePaddingHorizontalMiddle,Dt.tableFontSizeMiddle)),nn("small",Dt.tablePaddingVerticalSmall,Dt.tablePaddingHorizontalSmall,Dt.tableFontSizeSmall))}},Gu=Dt=>{const{componentCls:Rt,marginXXS:nn,fontSizeIcon:sn,tableHeaderIconColor:Tn,tableHeaderIconColorHover:pn}=Dt;return{[`${Rt}-wrapper`]:{[`${Rt}-thead th${Rt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Dt.motionDurationSlow}`,"&:hover":{background:Dt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Dt.colorPrimary},[`
|
|
|
&${Rt}-cell-fix-left:hover,
|
|
|
&${Rt}-cell-fix-right:hover
|
|
|
`]:{background:Dt.tableFixedHeaderSortActiveBg}},[`${Rt}-thead th${Rt}-column-sort`]:{background:Dt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Rt}-column-sort`]:{background:Dt.tableBodySortBg},[`${Rt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Rt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Rt}-column-sorter`]:{marginInlineStart:nn,color:Tn,fontSize:0,transition:`color ${Dt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:sn,"&.active":{color:Dt.colorPrimary}},[`${Rt}-column-sorter-up + ${Rt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Rt}-column-sorters:hover ${Rt}-column-sorter`]:{color:pn}}}},Xc=Dt=>{const{componentCls:Rt,opacityLoading:nn,tableScrollThumbBg:sn,tableScrollThumbBgHover:Tn,tableScrollThumbSize:pn,tableScrollBg:Bn,zIndexTableSticky:_n,stickyScrollBarBorderRadius:In}=Dt,Qn=`${Dt.lineWidth}px ${Dt.lineType} ${Dt.tableBorderColor}`;return{[`${Rt}-wrapper`]:{[`${Rt}-sticky`]:{"&-holder":{position:"sticky",zIndex:_n,background:Dt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${pn}px !important`,zIndex:_n,display:"flex",alignItems:"center",background:Bn,borderTop:Qn,opacity:nn,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:pn,backgroundColor:sn,borderRadius:In,transition:`all ${Dt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Tn}}}}}}},Wu=Dt=>{const{componentCls:Rt,lineWidth:nn,tableBorderColor:sn}=Dt,Tn=`${nn}px ${Dt.lineType} ${sn}`;return{[`${Rt}-wrapper`]:{[`${Rt}-summary`]:{position:"relative",zIndex:Dt.zIndexTableFixed,background:Dt.tableBg,"> tr":{"> th, > td":{borderBottom:Tn}}},[`div${Rt}-summary`]:{boxShadow:`0 -${nn}px 0 ${sn}`}}}},xc=Dt=>{const{componentCls:Rt}=Dt,nn=`${Dt.lineWidth}px ${Dt.lineType} ${Dt.tableBorderColor}`,sn=`${Rt}-expanded-row-cell`;return{[`${Rt}-wrapper`]:{[`${Rt}-tbody-virtual`]:{[`${Rt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Rt}-cell`]:{borderBottom:nn},[`${Rt}-expanded-row`]:{[`${sn}${sn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Dt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Rt}-bordered`]:{[`${Rt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:nn,position:"absolute"},[`${Rt}-cell`]:{borderInlineEnd:nn,[`&${Rt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Dt.lineWidth,borderInlineStart:nn}}}}}}};const Eu=Dt=>{const{componentCls:Rt,fontWeightStrong:nn,tablePaddingVertical:sn,tablePaddingHorizontal:Tn,lineWidth:pn,lineType:Bn,tableBorderColor:_n,tableFontSize:In,tableBg:Qn,tableRadius:ir,tableHeaderTextColor:er,motionDurationMid:jr,tableHeaderBg:Mr,tableHeaderCellSplitColor:vr,tableRowHoverBg:ei,tableSelectedRowBg:Cr,tableSelectedRowHoverBg:Xr,tableFooterTextColor:Zr,tableFooterBg:hi,paddingContentVerticalLG:Ai}=Dt,Wi=`${pn}px ${Bn} ${_n}`;return{[`${Rt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ma.dF)()),{[Rt]:Object.assign(Object.assign({},(0,ma.Wf)(Dt)),{fontSize:In,background:Qn,borderRadius:`${ir}px ${ir}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${ir}px ${ir}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Rt}-cell,
|
|
|
${Rt}-thead > tr > th,
|
|
|
${Rt}-tbody > tr > th,
|
|
|
${Rt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Ai}px ${Tn}px`,overflowWrap:"break-word"},[`${Rt}-title`]:{padding:`${sn}px ${Tn}px`},[`${Rt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:er,fontWeight:nn,textAlign:"start",background:Mr,borderBottom:Wi,transition:`background ${jr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Rt}-selection-column):not(${Rt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:vr,transform:"translateY(-50%)",transition:`background-color ${jr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Rt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${jr}, border-color ${jr}`,borderBottom:Wi,[`
|
|
|
> ${Rt}-wrapper:only-child,
|
|
|
> ${Rt}-expanded-row-fixed > ${Rt}-wrapper:only-child
|
|
|
`]:{[Rt]:{marginBlock:`-${sn}px`,marginInline:`${Dt.tableExpandColumnWidth-Tn}px -${Tn}px`,[`${Rt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:er,fontWeight:nn,textAlign:"start",background:Mr,borderBottom:Wi,transition:`background ${jr} ease`},[`
|
|
|
&${Rt}-row:hover > th,
|
|
|
&${Rt}-row:hover > td,
|
|
|
> th${Rt}-cell-row-hover,
|
|
|
> td${Rt}-cell-row-hover
|
|
|
`]:{background:ei},[`&${Rt}-row-selected`]:{"> th, > td":{background:Cr},"&:hover > th, &:hover > td":{background:Xr}}}},[`${Rt}-footer`]:{padding:`${sn}px ${Tn}px`,color:Zr,background:hi}})}};var wc=(0,Po.Z)("Table",Dt=>{const{colorTextHeading:Rt,colorSplit:nn,colorIcon:sn,colorIconHover:Tn,opacityLoading:pn,colorBgContainer:Bn,controlInteractiveSize:_n,headerBg:In,headerColor:Qn,headerSortActiveBg:ir,headerSortHoverBg:er,bodySortBg:jr,rowHoverBg:Mr,rowSelectedBg:vr,rowSelectedHoverBg:ei,rowExpandedBg:Cr,cellPaddingBlock:Xr,cellPaddingInline:Zr,cellPaddingBlockMD:hi,cellPaddingInlineMD:Ai,cellPaddingBlockSM:Wi,cellPaddingInlineSM:oi,borderColor:Ni,footerBg:ho,footerColor:ui,headerBorderRadius:Ei,cellFontSize:li,cellFontSizeMD:Gr,cellFontSizeSM:yi,headerSplitColor:Ri,fixedHeaderSortActiveBg:Xi,headerFilterHoverBg:Ji,filterDropdownBg:ai,expandIconBg:po,selectionColumnWidth:wo,stickyScrollBarBg:Jo}=Dt,Oo=new zs.C(sn),ka=new zs.C(Tn),Ea=2,vo=(0,as.TS)(Dt,{tableFontSize:li,tableBg:Bn,tableRadius:Ei,tablePaddingVertical:Xr,tablePaddingHorizontal:Zr,tablePaddingVerticalMiddle:hi,tablePaddingHorizontalMiddle:Ai,tablePaddingVerticalSmall:Wi,tablePaddingHorizontalSmall:oi,tableBorderColor:Ni,tableHeaderTextColor:Qn,tableHeaderBg:In,tableFooterTextColor:ui,tableFooterBg:ho,tableHeaderCellSplitColor:Ri,tableHeaderSortBg:ir,tableHeaderSortHoverBg:er,tableHeaderIconColor:Oo.clone().setAlpha(Oo.getAlpha()*pn).toRgbString(),tableHeaderIconColorHover:ka.clone().setAlpha(ka.getAlpha()*pn).toRgbString(),tableBodySortBg:jr,tableFixedHeaderSortActiveBg:Xi,tableHeaderFilterActiveBg:Ji,tableFilterDropdownBg:ai,tableRowHoverBg:Mr,tableSelectedRowBg:vr,tableSelectedRowHoverBg:ei,zIndexTableFixed:Ea,zIndexTableSticky:Ea+1,tableFontSizeMiddle:Gr,tableFontSizeSmall:yi,tableSelectionColumnWidth:wo,tableExpandIconBg:po,tableExpandColumnWidth:_n+2*Dt.padding,tableExpandedRowBg:Cr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Jo,tableScrollThumbBgHover:Rt,tableScrollBg:nn});return[Eu(vo),Wf(vo),Wu(vo),Gu(vo),Va(vo),ha(vo),Uf(vo),la(vo),Wu(vo),zo(vo),Ed(vo),Vc(vo),Xc(vo),ws(vo),Zc(vo),$h(vo),xc(vo)]},Dt=>{const{colorFillAlter:Rt,colorBgContainer:nn,colorTextHeading:sn,colorFillSecondary:Tn,colorFillContent:pn,controlItemBgActive:Bn,controlItemBgActiveHover:_n,padding:In,paddingSM:Qn,paddingXS:ir,colorBorderSecondary:er,borderRadiusLG:jr,fontSize:Mr,controlHeight:vr,colorTextPlaceholder:ei}=Dt,Cr=new zs.C(Tn).onBackground(nn).toHexShortString(),Xr=new zs.C(pn).onBackground(nn).toHexShortString(),Zr=new zs.C(Rt).onBackground(nn).toHexShortString();return{headerBg:Zr,headerColor:sn,headerSortActiveBg:Cr,headerSortHoverBg:Xr,bodySortBg:Zr,rowHoverBg:Zr,rowSelectedBg:Bn,rowSelectedHoverBg:_n,rowExpandedBg:Rt,cellPaddingBlock:In,cellPaddingInline:In,cellPaddingBlockMD:Qn,cellPaddingInlineMD:ir,cellPaddingBlockSM:ir,cellPaddingInlineSM:ir,borderColor:er,headerBorderRadius:jr,footerBg:Zr,footerColor:sn,cellFontSize:Mr,cellFontSizeMD:Mr,cellFontSizeSM:Mr,headerSplitColor:er,fixedHeaderSortActiveBg:Cr,headerFilterHoverBg:pn,filterDropdownMenuBg:nn,filterDropdownBg:nn,expandIconBg:nn,selectionColumnWidth:vr,stickyScrollBarBg:ei,stickyScrollBarBorderRadius:100}});const Td=[],lf=(Dt,Rt)=>{const{prefixCls:nn,className:sn,rootClassName:Tn,style:pn,size:Bn,bordered:_n,dropdownPrefixCls:In,dataSource:Qn,pagination:ir,rowSelection:er,rowKey:jr="key",rowClassName:Mr,columns:vr,children:ei,childrenColumnName:Cr,onChange:Xr,getPopupContainer:Zr,loading:hi,expandIcon:Ai,expandable:Wi,expandedRowRender:oi,expandIconColumnIndex:Ni,indentSize:ho,scroll:ui,sortDirections:Ei,locale:li,showSorterTooltip:Gr=!0,virtual:yi}=Dt,Ri=ce.useMemo(()=>vr||ln(ei),[vr,ei]),Xi=ce.useMemo(()=>Ri.some(Zo=>Zo.responsive),[Ri]),Ji=(0,Yn.Z)(Xi),ai=ce.useMemo(()=>{const Zo=new Set(Object.keys(Ji).filter(ya=>Ji[ya]));return Ri.filter(ya=>!ya.responsive||ya.responsive.some(ls=>Zo.has(ls)))},[Ri,Ji]),po=(0,Pi.Z)(Dt,["className","style","columns"]),{locale:wo=ci.Z,direction:Jo,table:Oo,renderEmpty:ka,getPrefixCls:Ea,getPopupContainer:vo}=ce.useContext(To.E_),Hi=(0,Vr.Z)(Bn),Uo=Object.assign(Object.assign({},wo.Table),li),Na=Qn||Td,va=Ea("table",nn),ns=Ea("dropdown",In),Qi=Object.assign({childrenColumnName:Cr,expandIconColumnIndex:Ni},Wi),{childrenColumnName:Vi="children"}=Qi,qi=ce.useMemo(()=>Na.some(Zo=>Zo==null?void 0:Zo[Vi])?"nest":oi||Wi&&Wi.expandedRowRender?"row":null,[Na]),ji={body:ce.useRef()},Vo=ce.useMemo(()=>typeof jr=="function"?jr:Zo=>Zo==null?void 0:Zo[jr],[jr]),[Ii]=Gc(Na,Vi,Vo),fo={},Fo=function(Zo,ya){let ls=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Sa,Go,vs;const gl=Object.assign(Object.assign({},fo),Zo);ls&&((Sa=fo.resetPagination)===null||Sa===void 0||Sa.call(fo),!((Go=gl.pagination)===null||Go===void 0)&&Go.current&&(gl.pagination.current=1),ir&&ir.onChange&&ir.onChange(1,(vs=gl.pagination)===null||vs===void 0?void 0:vs.pageSize)),ui&&ui.scrollToFirstRowOnChange!==!1&&ji.body.current&&(0,co.Z)(0,{getContainer:()=>ji.body.current}),Xr==null||Xr(gl.pagination,gl.filters,gl.sorter,{currentDataSource:_s(ic(Na,gl.sorterStates,Vi),gl.filterStates),action:ya})},Bo=(Zo,ya)=>{Fo({sorter:Zo,sorterStates:ya},"sort",!1)},[bs,ss,Hs,Qo]=Cd({prefixCls:va,mergedColumns:ai,onSorterChange:Bo,sortDirections:Ei||["ascend","descend"],tableLocale:Uo,showSorterTooltip:Gr}),Ps=ce.useMemo(()=>ic(Na,ss,Vi),[Na,ss]);fo.sorter=Qo(),fo.sorterStates=ss;const qa=(Zo,ya)=>{Fo({filters:Zo,filterStates:ya},"filter",!0)},[ps,Uu,qo]=hh({prefixCls:va,locale:Uo,dropdownPrefixCls:ns,mergedColumns:ai,onFilterChange:qa,getPopupContainer:Zr||vo}),ia=_s(Ps,Uu);fo.filters=qo,fo.filterStates=Uu;const ua=ce.useMemo(()=>{const Zo={};return Object.keys(qo).forEach(ya=>{qo[ya]!==null&&(Zo[ya]=qo[ya])}),Object.assign(Object.assign({},Hs),{filters:Zo})},[Hs,qo]),[Za]=Ha(ua),gs=(Zo,ya)=>{Fo({pagination:Object.assign(Object.assign({},fo.pagination),{current:Zo,pageSize:ya})},"paginate")},[Lo,da]=dh(ia.length,gs,ir);fo.pagination=ir===!1?{}:Ru(Lo,ir),fo.resetPagination=da;const ms=ce.useMemo(()=>{if(ir===!1||!Lo.pageSize)return ia;const{current:Zo=1,total:ya,pageSize:ls=vc}=Lo;return ia.length<ya?ia.length>ls?ia.slice((Zo-1)*ls,Zo*ls):ia:ia.slice((Zo-1)*ls,Zo*ls)},[!!ir,ia,Lo&&Lo.current,Lo&&Lo.pageSize,Lo&&Lo.total]),[pl,zl]=Rl({prefixCls:va,data:ia,pageData:ms,getRowKey:Vo,getRecordByKey:Ii,expandType:qi,childrenColumnName:Vi,locale:Uo,getPopupContainer:Zr||vo},er),El=(Zo,ya,ls)=>{let Sa;return typeof Mr=="function"?Sa=ze()(Mr(Zo,ya,ls)):Sa=ze()(Mr),ze()({[`${va}-row-selected`]:zl.has(Vo(Zo,ya))},Sa)};Qi.__PARENT_RENDER_ICON__=Qi.expandIcon,Qi.expandIcon=Qi.expandIcon||Ai||Pa(Uo),qi==="nest"&&Qi.expandIconColumnIndex===void 0?Qi.expandIconColumnIndex=er?1:0:Qi.expandIconColumnIndex>0&&er&&(Qi.expandIconColumnIndex-=1),typeof Qi.indentSize!="number"&&(Qi.indentSize=typeof ho=="number"?ho:15);const ql=ce.useCallback(Zo=>Za(pl(ps(bs(Zo)))),[bs,ps,pl]);let eu,Hl;if(ir!==!1&&(Lo!=null&&Lo.total)){let Zo;Lo.size?Zo=Lo.size:Zo=Hi==="small"||Hi==="middle"?"small":void 0;const ya=Go=>ce.createElement(ro.Z,Object.assign({},Lo,{className:ze()(`${va}-pagination ${va}-pagination-${Go}`,Lo.className),size:Zo})),ls=Jo==="rtl"?"left":"right",{position:Sa}=Lo;if(Sa!==null&&Array.isArray(Sa)){const Go=Sa.find(pu=>pu.includes("top")),vs=Sa.find(pu=>pu.includes("bottom")),gl=Sa.every(pu=>`${pu}`=="none");!Go&&!vs&&!gl&&(Hl=ya(ls)),Go&&(eu=ya(Go.toLowerCase().replace("top",""))),vs&&(Hl=ya(vs.toLowerCase().replace("bottom","")))}else Hl=ya(ls)}let ta;typeof hi=="boolean"?ta={spinning:hi}:typeof hi=="object"&&(ta=Object.assign({spinning:!0},hi));const[Ts,Ga]=wc(va),[,fa]=(0,_o.Z)(),Gl=ze()(`${va}-wrapper`,Oo==null?void 0:Oo.className,{[`${va}-wrapper-rtl`]:Jo==="rtl"},sn,Tn,Ga),oc=Object.assign(Object.assign({},Oo==null?void 0:Oo.style),pn),tu=li&&li.emptyText||(ka==null?void 0:ka("Table"))||ce.createElement(Kr.Z,{componentName:"Table"}),Tu=yi?rl:Gi,$u={},Tl=ce.useMemo(()=>{const{fontSize:Zo,lineHeight:ya,padding:ls,paddingXS:Sa,paddingSM:Go}=fa,vs=Math.floor(Zo*ya);switch(Hi){case"large":return ls*2+vs;case"small":return Sa*2+vs;default:return Go*2+vs}},[fa,Hi]);return yi&&($u.listItemHeight=Tl),Ts(ce.createElement("div",{ref:Rt,className:Gl,style:oc},ce.createElement(Wo.Z,Object.assign({spinning:!1},ta),eu,ce.createElement(Tu,Object.assign({},$u,po,{columns:ai,direction:Jo,expandable:Qi,prefixCls:va,className:ze()({[`${va}-middle`]:Hi==="middle",[`${va}-small`]:Hi==="small",[`${va}-bordered`]:_n,[`${va}-empty`]:Na.length===0}),data:ms,rowKey:Vo,rowClassName:El,emptyText:tu,internalHooks:Pt,internalRefs:ji,transformColumns:ql})),Hl)))};var uf=ce.forwardRef(lf);const Vf=(Dt,Rt)=>{const nn=ce.useRef(0);return nn.current+=1,ce.createElement(uf,Object.assign({},Dt,{ref:Rt,_renderTimes:nn.current}))},fl=ce.forwardRef(Vf);fl.SELECTION_COLUMN=Xa,fl.EXPAND_COLUMN=tt,fl.SELECTION_ALL=_a,fl.SELECTION_INVERT=ca,fl.SELECTION_NONE=Ca,fl.Column=Qr,fl.ColumnGroup=Oi,fl.Summary=Ke;var bc=fl,$p=bc},17574:function(Rn,wn,$e){"use strict";$e.d(wn,{default:function(){return nt}});var tt=$e(43858),Pt=$e(19127),oe=$e(52671),Ge=$e(8657),De=$e(96663),me=$e(59301),ce={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"},we=ce,Le=$e(7657),Se=function(pt,xt){return me.createElement(Le.Z,(0,De.Z)({},pt,{ref:xt,icon:we}))},Oe=me.forwardRef(Se),ve=Oe,xe=$e(92310),fe=$e.n(xe),z=$e(35654),ee=$e(71430),ae=$e(36355),re=$e(56082),le=$e(62892),ue=$e(20648);const pe=4;function be(it){const{dropPosition:pt,dropLevelOffset:xt,prefixCls:yt,indent:ft,direction:gt="ltr"}=it,mt=gt==="ltr"?"left":"right",Nt=gt==="ltr"?"right":"left",Tt={[mt]:-xt*ft+pe,[Nt]:0};switch(pt){case-1:Tt.top=-3;break;case 1:Tt.bottom=-3;break;default:Tt.bottom=-3,Tt[mt]=ft+pe;break}return me.createElement("div",{style:Tt,className:`${yt}-drop-indicator`})}var Ce=$e(71997),je=me.forwardRef((it,pt)=>{const{getPrefixCls:xt,direction:yt,virtual:ft,tree:gt}=me.useContext(ae.E_),{prefixCls:mt,className:Nt,showIcon:Tt=!1,showLine:zt,switcherIcon:St,blockNode:wt=!1,children:at,checkable:Ye=!1,selectable:Pe=!0,draggable:Te,motion:Ve,style:Ze}=it,Ee=xt("tree",mt),He=xt(),We=Ve!=null?Ve:Object.assign(Object.assign({},(0,le.Z)(He)),{motionAppear:!1}),Ke=Object.assign(Object.assign({},it),{checkable:Ye,selectable:Pe,showIcon:Tt,motion:We,blockNode:wt,showLine:!!zt,dropIndicatorRender:be}),[Je,dt]=(0,ue.ZP)(Ee),Ct=me.useMemo(()=>{if(!Te)return!1;let Lt={};switch(typeof Te){case"function":Lt.nodeDraggable=Te;break;case"object":Lt=Object.assign({},Te);break;default:break}return Lt.icon!==!1&&(Lt.icon=Lt.icon||me.createElement(re.Z,null)),Lt},[Te]),ht=Lt=>me.createElement(Ce.Z,{prefixCls:Ee,switcherIcon:St,treeNodeProps:Lt,showLine:zt});return Je(me.createElement(tt.Z,Object.assign({itemHeight:20,ref:pt,virtual:ft},Ke,{style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Ze),prefixCls:Ee,className:fe()({[`${Ee}-icon-hide`]:!Tt,[`${Ee}-block-node`]:wt,[`${Ee}-unselectable`]:!Pe,[`${Ee}-rtl`]:yt==="rtl"},gt==null?void 0:gt.className,Nt,dt),direction:yt,checkable:Ye&&me.createElement("span",{className:`${Ee}-checkbox-inner`}),selectable:Pe,switcherIcon:ht,draggable:Ct}),at))}),ke;(function(it){it[it.None=0]="None",it[it.Start=1]="Start",it[it.End=2]="End"})(ke||(ke={}));function Ae(it,pt){function xt(yt){const{key:ft,children:gt}=yt;pt(ft,yt)!==!1&&Ae(gt||[],pt)}it.forEach(xt)}function Be(it){let{treeData:pt,expandedKeys:xt,startKey:yt,endKey:ft}=it;const gt=[];let mt=ke.None;if(yt&&yt===ft)return[yt];if(!yt||!ft)return[];function Nt(Tt){return Tt===yt||Tt===ft}return Ae(pt,Tt=>{if(mt===ke.End)return!1;if(Nt(Tt)){if(gt.push(Tt),mt===ke.None)mt=ke.Start;else if(mt===ke.Start)return mt=ke.End,!1}else mt===ke.Start&>.push(Tt);return xt.includes(Tt)}),gt}function _e(it,pt){const xt=(0,Pt.Z)(pt),yt=[];return Ae(it,(ft,gt)=>{const mt=xt.indexOf(ft);return mt!==-1&&(yt.push(gt),xt.splice(mt,1)),!!xt.length}),yt}var et=function(it,pt){var xt={};for(var yt in it)Object.prototype.hasOwnProperty.call(it,yt)&&pt.indexOf(yt)<0&&(xt[yt]=it[yt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,yt=Object.getOwnPropertySymbols(it);ft<yt.length;ft++)pt.indexOf(yt[ft])<0&&Object.prototype.propertyIsEnumerable.call(it,yt[ft])&&(xt[yt[ft]]=it[yt[ft]]);return xt};function ze(it){const{isLeaf:pt,expanded:xt}=it;return pt?me.createElement(oe.Z,null):xt?me.createElement(Ge.Z,null):me.createElement(ve,null)}function Xe(it){let{treeData:pt,children:xt}=it;return pt||(0,ee.zn)(xt)}const Qe=(it,pt)=>{var{defaultExpandAll:xt,defaultExpandParent:yt,defaultExpandedKeys:ft}=it,gt=et(it,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const mt=me.useRef(),Nt=me.useRef(),Tt=()=>{const{keyEntities:Ct}=(0,ee.I8)(Xe(gt));let ht;return xt?ht=Object.keys(Ct):yt?ht=(0,z.r7)(gt.expandedKeys||ft||[],Ct):ht=gt.expandedKeys||ft,ht},[zt,St]=me.useState(gt.selectedKeys||gt.defaultSelectedKeys||[]),[wt,at]=me.useState(()=>Tt());me.useEffect(()=>{"selectedKeys"in gt&&St(gt.selectedKeys)},[gt.selectedKeys]),me.useEffect(()=>{"expandedKeys"in gt&&at(gt.expandedKeys)},[gt.expandedKeys]);const Ye=(Ct,ht)=>{var Lt;return"expandedKeys"in gt||at(Ct),(Lt=gt.onExpand)===null||Lt===void 0?void 0:Lt.call(gt,Ct,ht)},Pe=(Ct,ht)=>{var Lt;const{multiple:en}=gt,{node:Vt,nativeEvent:Kt}=ht,{key:Ut=""}=Vt,rn=Xe(gt),Ft=Object.assign(Object.assign({},ht),{selected:!0}),Xt=(Kt==null?void 0:Kt.ctrlKey)||(Kt==null?void 0:Kt.metaKey),tn=Kt==null?void 0:Kt.shiftKey;let dn;en&&Xt?(dn=Ct,mt.current=Ut,Nt.current=dn,Ft.selectedNodes=_e(rn,dn)):en&&tn?(dn=Array.from(new Set([].concat((0,Pt.Z)(Nt.current||[]),(0,Pt.Z)(Be({treeData:rn,expandedKeys:wt,startKey:Ut,endKey:mt.current}))))),Ft.selectedNodes=_e(rn,dn)):(dn=[Ut],mt.current=Ut,Nt.current=dn,Ft.selectedNodes=_e(rn,dn)),(Lt=gt.onSelect)===null||Lt===void 0||Lt.call(gt,dn,Ft),"selectedKeys"in gt||St(dn)},{getPrefixCls:Te,direction:Ve}=me.useContext(ae.E_),{prefixCls:Ze,className:Ee,showIcon:He=!0,expandAction:We="click"}=gt,Ke=et(gt,["prefixCls","className","showIcon","expandAction"]),Je=Te("tree",Ze),dt=fe()(`${Je}-directory`,{[`${Je}-directory-rtl`]:Ve==="rtl"},Ee);return me.createElement(je,Object.assign({icon:ze,ref:pt,blockNode:!0},Ke,{showIcon:He,expandAction:We,prefixCls:Je,className:dt,expandedKeys:wt,selectedKeys:zt,onSelect:Pe,onExpand:Ye}))};var ct=me.forwardRef(Qe);const vt=je;vt.DirectoryTree=ct,vt.TreeNode=tt.O;var nt=vt},20648:function(Rn,wn,$e){"use strict";$e.d(wn,{TM:function(){return xe},Yk:function(){return ve}});var tt=$e(93083),Pt=$e(98447),oe=$e(17313),Ge=$e(8378),De=$e(37613),me=$e(83116);const ce=new tt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),we=(fe,z)=>({[`.${fe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${z.motionDurationSlow}`}}}),Le=(fe,z)=>({[`.${fe}-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:'""'}}}),Se=(fe,z)=>{const{treeCls:ee,treeNodeCls:ae,treeNodePadding:re,titleHeight:le,nodeSelectedBg:ue,nodeHoverBg:pe}=z,be=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:ce,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({},we(fe,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:be},[`${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"},Le(fe,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`}}}}})}},Oe=fe=>{const{treeCls:z,treeNodeCls:ee,treeNodePadding:ae,directoryNodeSelectedBg:re,directoryNodeSelectedColor:le}=fe;return{[`${z}${z}-directory`]:{[ee]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ae,insetInlineStart:0,transition:`background-color ${fe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:fe.controlItemBgHover}},"> *":{zIndex:1},[`${z}-switcher`]:{transition:`color ${fe.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"}}}}}},ve=(fe,z)=>{const ee=`.${fe}`,ae=`${ee}-treenode`,re=z.paddingXS/2,le=(0,De.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[Se(fe,le),Oe(le)]},xe=fe=>{const{controlHeightSM:z}=fe;return{titleHeight:z,nodeHoverBg:fe.controlItemBgHover,nodeSelectedBg:fe.controlItemBgActive}};wn.ZP=(0,me.Z)("Tree",(fe,z)=>{let{prefixCls:ee}=z;return[{[fe.componentCls]:(0,Pt.C2)(`${ee}-checkbox`,fe)},ve(ee,fe),(0,Ge.Z)(fe)]},fe=>{const{colorTextLightSolid:z,colorPrimary:ee}=fe;return Object.assign(Object.assign({},xe(fe)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},71997:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return ae}});var tt=$e(96663),Pt=$e(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"},Ge=oe,De=$e(7657),me=function(le,ue){return Pt.createElement(De.Z,(0,tt.Z)({},le,{ref:ue,icon:Ge}))},ce=Pt.forwardRef(me),we=ce,Le=$e(52671),Se=$e(58617),Oe=$e(15075),ve=$e(43531),xe=$e(92310),fe=$e.n(xe),z=$e(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:be}=re,{isLeaf:Ce,expanded:Fe,loading:je}=pe;if(je)return Pt.createElement(Se.Z,{className:`${le}-switcher-loading-icon`});let ke;if(be&&typeof be=="object"&&(ke=be.showLeafIcon),Ce){if(!be)return null;if(typeof ke!="boolean"&&ke){const _e=typeof ke=="function"?ke(pe):ke,et=`${le}-switcher-line-custom-icon`;return(0,z.l$)(_e)?(0,z.Tm)(_e,{className:fe()(_e.props.className||"",et)}):_e}return ke?Pt.createElement(Le.Z,{className:`${le}-switcher-line-icon`}):Pt.createElement("span",{className:`${le}-switcher-leaf-line`})}const Ae=`${le}-switcher-icon`,Be=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(Be)?(0,z.Tm)(Be,{className:fe()(Be.props.className||"",Ae)}):Be!==void 0?Be:be?Fe?Pt.createElement(Oe.Z,{className:`${le}-switcher-line-icon`}):Pt.createElement(ve.Z,{className:`${le}-switcher-line-icon`}):Pt.createElement(we,{className:Ae})}},54580:function(Rn,wn,$e){"use strict";$e.d(wn,{default:function(){return Mn}});var tt=$e(59301),Pt=$e(19127),oe=$e(92310),Ge=$e.n(oe),De=$e(96663),me=$e(52884),ce=$e(95727),we=$e(65711),Le=$e(85745),Se=$e(90493),Oe=$e(6620),ve=$e(49581),xe=$e(20135),fe=$e(73324),z=$e(26112);function ee(an,Sn){var gn="cannot ".concat(an.method," ").concat(an.action," ").concat(Sn.status,"'"),yn=new Error(gn);return yn.status=Sn.status,yn.method=an.method,yn.url=an.action,yn}function ae(an){var Sn=an.responseText||an.response;if(!Sn)return Sn;try{return JSON.parse(Sn)}catch(gn){return Sn}}function re(an){var Sn=new XMLHttpRequest;an.onProgress&&Sn.upload&&(Sn.upload.onprogress=function(Nn){Nn.total>0&&(Nn.percent=Nn.loaded/Nn.total*100),an.onProgress(Nn)});var gn=new FormData;an.data&&Object.keys(an.data).forEach(function(On){var Nn=an.data[On];if(Array.isArray(Nn)){Nn.forEach(function(Fn){gn.append("".concat(On,"[]"),Fn)});return}gn.append(On,Nn)}),an.file instanceof Blob?gn.append(an.filename,an.file,an.file.name):gn.append(an.filename,an.file),Sn.onerror=function(Nn){an.onError(Nn)},Sn.onload=function(){return Sn.status<200||Sn.status>=300?an.onError(ee(an,Sn),ae(Sn)):an.onSuccess(ae(Sn),Sn)},Sn.open(an.method,an.action,!0),an.withCredentials&&"withCredentials"in Sn&&(Sn.withCredentials=!0);var yn=an.headers||{};return yn["X-Requested-With"]!==null&&Sn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(yn).forEach(function(On){yn[On]!==null&&Sn.setRequestHeader(On,yn[On])}),Sn.send(gn),{abort:function(){Sn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var be=$e(48736),Ce=function(an,Sn){if(an&&Sn){var gn=Array.isArray(Sn)?Sn:Sn.split(","),yn=an.name||"",On=an.type||"",Nn=On.replace(/\/.*$/,"");return gn.some(function(Fn){var zn=Fn.trim();if(/^\*(\/\*)?$/.test(Fn))return!0;if(zn.charAt(0)==="."){var xr=yn.toLowerCase(),mn=zn.toLowerCase(),Fr=[mn];return(mn===".jpg"||mn===".jpeg")&&(Fr=[".jpg",".jpeg"]),Fr.some(function(Yr){return xr.endsWith(Yr)})}return/\/\*$/.test(zn)?Nn===zn.replace(/\/.*$/,""):On===zn?!0:/^\w+$/.test(zn)?((0,be.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(zn,"'.Skip for check.")),!0):!1})}return!0};function Fe(an,Sn){var gn=an.createReader(),yn=[];function On(){gn.readEntries(function(Nn){var Fn=Array.prototype.slice.apply(Nn);yn=yn.concat(Fn);var zn=!Fn.length;zn?Sn(yn):On()})}On()}var je=function(Sn,gn,yn){var On=function Nn(Fn,zn){Fn&&(Fn.path=zn||"",Fn.isFile?Fn.file(function(xr){yn(xr)&&(Fn.fullPath&&!xr.webkitRelativePath&&(Object.defineProperties(xr,{webkitRelativePath:{writable:!0}}),xr.webkitRelativePath=Fn.fullPath.replace(/^\//,""),Object.defineProperties(xr,{webkitRelativePath:{writable:!1}})),gn([xr]))}):Fn.isDirectory&&Fe(Fn,function(xr){xr.forEach(function(mn){Nn(mn,"".concat(zn).concat(Fn.name,"/"))})}))};Sn.forEach(function(Nn){On(Nn.webkitGetAsEntry())})},ke=je,Ae=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(an){(0,we.Z)(gn,an);var Sn=(0,Le.Z)(gn);function gn(){var yn;(0,me.Z)(this,gn);for(var On=arguments.length,Nn=new Array(On),Fn=0;Fn<On;Fn++)Nn[Fn]=arguments[Fn];return yn=Sn.call.apply(Sn,[this].concat(Nn)),yn.state={uid:pe()},yn.reqs={},yn.fileInput=void 0,yn._isMounted=void 0,yn.onChange=function(zn){var xr=yn.props,mn=xr.accept,Fr=xr.directory,Yr=zn.target.files,Br=(0,Pt.Z)(Yr).filter(function(bn){return!Fr||Ce(bn,mn)});yn.uploadFiles(Br),yn.reset()},yn.onClick=function(zn){var xr=yn.fileInput;if(xr){var mn=zn.target,Fr=yn.props.onClick;if(mn&&mn.tagName==="BUTTON"){var Yr=xr.parentNode;Yr.focus(),mn.blur()}xr.click(),Fr&&Fr(zn)}},yn.onKeyDown=function(zn){zn.key==="Enter"&&yn.onClick(zn)},yn.onFileDrop=function(zn){var xr=yn.props.multiple;if(zn.preventDefault(),zn.type!=="dragover")if(yn.props.directory)ke(Array.prototype.slice.call(zn.dataTransfer.items),yn.uploadFiles,function(Fr){return Ce(Fr,yn.props.accept)});else{var mn=(0,Pt.Z)(zn.dataTransfer.files).filter(function(Fr){return Ce(Fr,yn.props.accept)});xr===!1&&(mn=mn.slice(0,1)),yn.uploadFiles(mn)}},yn.uploadFiles=function(zn){var xr=(0,Pt.Z)(zn),mn=xr.map(function(Fr){return Fr.uid=pe(),yn.processFile(Fr,xr)});Promise.all(mn).then(function(Fr){var Yr=yn.props.onBatchStart;Yr==null||Yr(Fr.map(function(Br){var bn=Br.origin,Jn=Br.parsedFile;return{file:bn,parsedFile:Jn}})),Fr.filter(function(Br){return Br.parsedFile!==null}).forEach(function(Br){yn.post(Br)})})},yn.processFile=function(){var zn=(0,fe.Z)((0,ve.Z)().mark(function xr(mn,Fr){var Yr,Br,bn,Jn,sr,Sr,mr,$r,ri;return(0,ve.Z)().wrap(function(br){for(;;)switch(br.prev=br.next){case 0:if(Yr=yn.props.beforeUpload,Br=mn,!Yr){br.next=14;break}return br.prev=3,br.next=6,Yr(mn,Fr);case 6:Br=br.sent,br.next=12;break;case 9:br.prev=9,br.t0=br.catch(3),Br=!1;case 12:if(Br!==!1){br.next=14;break}return br.abrupt("return",{origin:mn,parsedFile:null,action:null,data:null});case 14:if(bn=yn.props.action,typeof bn!="function"){br.next=21;break}return br.next=18,bn(mn);case 18:Jn=br.sent,br.next=22;break;case 21:Jn=bn;case 22:if(sr=yn.props.data,typeof sr!="function"){br.next=29;break}return br.next=26,sr(mn);case 26:Sr=br.sent,br.next=30;break;case 29:Sr=sr;case 30:return mr=((0,xe.Z)(Br)==="object"||typeof Br=="string")&&Br?Br:mn,mr instanceof File?$r=mr:$r=new File([mr],mn.name,{type:mn.type}),ri=$r,ri.uid=mn.uid,br.abrupt("return",{origin:mn,data:Sr,parsedFile:ri,action:Jn});case 35:case"end":return br.stop()}},xr,null,[[3,9]])}));return function(xr,mn){return zn.apply(this,arguments)}}(),yn.saveFileInput=function(zn){yn.fileInput=zn},yn}return(0,ce.Z)(gn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(On){var Nn=this,Fn=On.data,zn=On.origin,xr=On.action,mn=On.parsedFile;if(this._isMounted){var Fr=this.props,Yr=Fr.onStart,Br=Fr.customRequest,bn=Fr.name,Jn=Fr.headers,sr=Fr.withCredentials,Sr=Fr.method,mr=zn.uid,$r=Br||re,ri={action:xr,filename:bn,data:Fn,file:mn,headers:Jn,withCredentials:sr,method:Sr||"post",onProgress:function(br){var ur=Nn.props.onProgress;ur==null||ur(br,mn)},onSuccess:function(br,ur){var vn=Nn.props.onSuccess;vn==null||vn(br,mn,ur),delete Nn.reqs[mr]},onError:function(br,ur){var vn=Nn.props.onError;vn==null||vn(br,ur,mn),delete Nn.reqs[mr]}};Yr(zn),this.reqs[mr]=$r(ri)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(On){var Nn=this.reqs;if(On){var Fn=On.uid?On.uid:On;Nn[Fn]&&Nn[Fn].abort&&Nn[Fn].abort(),delete Nn[Fn]}else Object.keys(Nn).forEach(function(zn){Nn[zn]&&Nn[zn].abort&&Nn[zn].abort(),delete Nn[zn]})}},{key:"render",value:function(){var On=this.props,Nn=On.component,Fn=On.prefixCls,zn=On.className,xr=On.disabled,mn=On.id,Fr=On.style,Yr=On.multiple,Br=On.accept,bn=On.capture,Jn=On.children,sr=On.directory,Sr=On.openFileDialogOnClick,mr=On.onMouseEnter,$r=On.onMouseLeave,ri=(0,Oe.Z)(On,Ae),Rr=Ge()((0,Se.Z)((0,Se.Z)((0,Se.Z)({},Fn,!0),"".concat(Fn,"-disabled"),xr),zn,zn)),br=sr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ur=xr?{}:{onClick:Sr?this.onClick:function(){},onKeyDown:Sr?this.onKeyDown:function(){},onMouseEnter:mr,onMouseLeave:$r,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return tt.createElement(Nn,(0,De.Z)({},ur,{className:Rr,role:"button",style:Fr}),tt.createElement("input",(0,De.Z)({},(0,z.Z)(ri,{aria:!0,data:!0}),{id:mn,disabled:xr,type:"file",ref:this.saveFileInput,onClick:function(cr){return cr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Br},br,{multiple:Yr,onChange:this.onChange},bn!=null?{capture:bn}:{})),Jn)}}]),gn}(tt.Component),_e=Be;function et(){}var ze=function(an){(0,we.Z)(gn,an);var Sn=(0,Le.Z)(gn);function gn(){var yn;(0,me.Z)(this,gn);for(var On=arguments.length,Nn=new Array(On),Fn=0;Fn<On;Fn++)Nn[Fn]=arguments[Fn];return yn=Sn.call.apply(Sn,[this].concat(Nn)),yn.uploader=void 0,yn.saveUploader=function(zn){yn.uploader=zn},yn}return(0,ce.Z)(gn,[{key:"abort",value:function(On){this.uploader.abort(On)}},{key:"render",value:function(){return tt.createElement(_e,(0,De.Z)({},this.props,{ref:this.saveUploader}))}}]),gn}(tt.Component);ze.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:et,onError:et,onSuccess:et,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Xe=ze,Qe=Xe,lt=$e(18929),ct=$e(4676),vt=$e(36355),nt=$e(1684),it=$e(9763),pt=$e(31724),xt={icon:function(Sn,gn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:gn}},{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:Sn}}]}},name:"file",theme:"twotone"},yt=xt,ft=$e(7657),gt=function(Sn,gn){return tt.createElement(ft.Z,(0,De.Z)({},Sn,{ref:gn,icon:yt}))},mt=tt.forwardRef(gt),Nt=mt,Tt=$e(58617),zt={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"},St=zt,wt=function(Sn,gn){return tt.createElement(ft.Z,(0,De.Z)({},Sn,{ref:gn,icon:St}))},at=tt.forwardRef(wt),Ye=at,Pe={icon:function(Sn,gn){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:Sn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:gn}},{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:gn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:gn}},{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:Sn}}]}},name:"picture",theme:"twotone"},Te=Pe,Ve=function(Sn,gn){return tt.createElement(ft.Z,(0,De.Z)({},Sn,{ref:gn,icon:Te}))},Ze=tt.forwardRef(Ve),Ee=Ze,He=$e(77900),We=$e(56762),Ke=$e(62892),Je=$e(92343),dt=$e(3113);function Ct(an){return Object.assign(Object.assign({},an),{lastModified:an.lastModified,lastModifiedDate:an.lastModifiedDate,name:an.name,size:an.size,type:an.type,uid:an.uid,percent:0,originFileObj:an})}function ht(an,Sn){const gn=(0,Pt.Z)(Sn),yn=gn.findIndex(On=>{let{uid:Nn}=On;return Nn===an.uid});return yn===-1?gn.push(an):gn[yn]=an,gn}function Lt(an,Sn){const gn=an.uid!==void 0?"uid":"name";return Sn.filter(yn=>yn[gn]===an[gn])[0]}function en(an,Sn){const gn=an.uid!==void 0?"uid":"name",yn=Sn.filter(On=>On[gn]!==an[gn]);return yn.length===Sn.length?null:yn}const Vt=function(){const Sn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),yn=Sn[Sn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(yn)||[""])[0]},Kt=an=>an.indexOf("image/")===0,Ut=an=>{if(an.type&&!an.thumbUrl)return Kt(an.type);const Sn=an.thumbUrl||an.url||"",gn=Vt(Sn);return/^data:image\//.test(Sn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(gn)?!0:!(/^data:/.test(Sn)||gn)},rn=200;function Ft(an){return new Promise(Sn=>{if(!an.type||!Kt(an.type)){Sn("");return}const gn=document.createElement("canvas");gn.width=rn,gn.height=rn,gn.style.cssText=`position: fixed; left: 0; top: 0; width: ${rn}px; height: ${rn}px; z-index: 9999; display: none;`,document.body.appendChild(gn);const yn=gn.getContext("2d"),On=new Image;if(On.onload=()=>{const{width:Nn,height:Fn}=On;let zn=rn,xr=rn,mn=0,Fr=0;Nn>Fn?(xr=Fn*(rn/Nn),Fr=-(xr-zn)/2):(zn=Nn*(rn/Fn),mn=-(zn-xr)/2),yn.drawImage(On,mn,Fr,zn,xr);const Yr=gn.toDataURL();document.body.removeChild(gn),window.URL.revokeObjectURL(On.src),Sn(Yr)},On.crossOrigin="anonymous",an.type.startsWith("image/svg+xml")){const Nn=new FileReader;Nn.onload=()=>{Nn.result&&(On.src=Nn.result)},Nn.readAsDataURL(an)}else if(an.type.startsWith("image/gif")){const Nn=new FileReader;Nn.onload=()=>{Nn.result&&Sn(Nn.result)},Nn.readAsDataURL(an)}else On.src=window.URL.createObjectURL(an)})}var Xt=$e(26227),tn=$e(41464),dn=$e(15277),En=$e(93948),An=$e(6848),tr=tt.forwardRef((an,Sn)=>{let{prefixCls:gn,className:yn,style:On,locale:Nn,listType:Fn,file:zn,items:xr,progress:mn,iconRender:Fr,actionIconRender:Yr,itemRender:Br,isImgUrl:bn,showPreviewIcon:Jn,showRemoveIcon:sr,showDownloadIcon:Sr,previewIcon:mr,removeIcon:$r,downloadIcon:ri,onPreview:Rr,onDownload:br,onClose:ur}=an;var vn,cr;const{status:xn}=zn,[zr,$i]=tt.useState(xn);tt.useEffect(()=>{xn!=="removed"&&$i(xn)},[xn]);const[Mi,yo]=tt.useState(!1);tt.useEffect(()=>{const To=setTimeout(()=>{yo(!0)},300);return()=>{clearTimeout(To)}},[]);const no=Fr(zn);let Wr=tt.createElement("div",{className:`${gn}-icon`},no);if(Fn==="picture"||Fn==="picture-card"||Fn==="picture-circle")if(zr==="uploading"||!zn.thumbUrl&&!zn.url){const To=Ge()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:zr!=="uploading"});Wr=tt.createElement("div",{className:To},no)}else{const To=bn!=null&&bn(zn)?tt.createElement("img",{src:zn.thumbUrl||zn.url,alt:zn.name,className:`${gn}-list-item-image`,crossOrigin:zn.crossOrigin}):no,Kr=Ge()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:bn&&!bn(zn)});Wr=tt.createElement("a",{className:Kr,onClick:Vr=>Rr(zn,Vr),href:zn.url||zn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},To)}const Hr=Ge()(`${gn}-list-item`,`${gn}-list-item-${zr}`),wi=typeof zn.linkProps=="string"?JSON.parse(zn.linkProps):zn.linkProps,vi=sr?Yr((typeof $r=="function"?$r(zn):$r)||tt.createElement(Xt.Z,null),()=>ur(zn),gn,Nn.removeFile):null,fr=Sr&&zr==="done"?Yr((typeof ri=="function"?ri(zn):ri)||tt.createElement(tn.Z,null),()=>br(zn),gn,Nn.downloadFile):null,kt=Fn!=="picture-card"&&Fn!=="picture-circle"&&tt.createElement("span",{key:"download-delete",className:Ge()(`${gn}-list-item-actions`,{picture:Fn==="picture"})},fr,vi),Fi=Ge()(`${gn}-list-item-name`),Ki=zn.url?[tt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Fi,title:zn.name},wi,{href:zn.url,onClick:To=>Rr(zn,To)}),zn.name),kt]:[tt.createElement("span",{key:"view",className:Fi,onClick:To=>Rr(zn,To),title:zn.name},zn.name),kt],gi={pointerEvents:"none",opacity:.5},oo=Jn?tt.createElement("a",{href:zn.url||zn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:zn.url||zn.thumbUrl?void 0:gi,onClick:To=>Rr(zn,To),title:Nn.previewFile},typeof mr=="function"?mr(zn):mr||tt.createElement(dn.Z,null)):null,So=(Fn==="picture-card"||Fn==="picture-circle")&&zr!=="uploading"&&tt.createElement("span",{className:`${gn}-list-item-actions`},oo,zr==="done"&&fr,vi),{getPrefixCls:Qr}=tt.useContext(vt.E_),ii=Qr(),Oi=tt.createElement("div",{className:Hr},Wr,Ki,So,Mi&&tt.createElement(He.default,{motionName:`${ii}-fade`,visible:zr==="uploading",motionDeadline:2e3},To=>{let{className:Kr}=To;const Vr="percent"in zn?tt.createElement(En.Z,Object.assign({},mn,{type:"line",percent:zn.percent,"aria-label":zn["aria-label"],"aria-labelledby":zn["aria-labelledby"]})):null;return tt.createElement("div",{className:Ge()(`${gn}-list-item-progress`,Kr)},Vr)})),Pi=zn.response&&typeof zn.response=="string"?zn.response:((vn=zn.error)===null||vn===void 0?void 0:vn.statusText)||((cr=zn.error)===null||cr===void 0?void 0:cr.message)||Nn.uploadError,co=zr==="error"?tt.createElement(An.Z,{title:Pi,getPopupContainer:To=>To.parentNode},Oi):Oi;return tt.createElement("div",{className:Ge()(`${gn}-list-item-container`,yn),style:On,ref:Sn},Br?Br(co,zn,xr,{download:br.bind(null,zn),preview:Rr.bind(null,zn),remove:ur.bind(null,zn)}):co)});const Tr=(an,Sn)=>{const{listType:gn="text",previewFile:yn=Ft,onPreview:On,onDownload:Nn,onRemove:Fn,locale:zn,iconRender:xr,isImageUrl:mn=Ut,prefixCls:Fr,items:Yr=[],showPreviewIcon:Br=!0,showRemoveIcon:bn=!0,showDownloadIcon:Jn=!1,removeIcon:sr,previewIcon:Sr,downloadIcon:mr,progress:$r={size:[-1,2],showInfo:!1},appendAction:ri,appendActionVisible:Rr=!0,itemRender:br,disabled:ur}=an,vn=(0,We.Z)(),[cr,xn]=tt.useState(!1);tt.useEffect(()=>{gn!=="picture"&&gn!=="picture-card"&&gn!=="picture-circle"||(Yr||[]).forEach(gi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(gi.originFileObj instanceof File||gi.originFileObj instanceof Blob)||gi.thumbUrl!==void 0||(gi.thumbUrl="",yn&&yn(gi.originFileObj).then(oo=>{gi.thumbUrl=oo||"",vn()}))})},[gn,Yr,yn]),tt.useEffect(()=>{xn(!0)},[]);const zr=(gi,oo)=>{if(On)return oo==null||oo.preventDefault(),On(gi)},$i=gi=>{typeof Nn=="function"?Nn(gi):gi.url&&window.open(gi.url)},Mi=gi=>{Fn==null||Fn(gi)},yo=gi=>{if(xr)return xr(gi,gn);const oo=gi.status==="uploading",So=mn&&mn(gi)?tt.createElement(Ee,null):tt.createElement(Nt,null);let Qr=oo?tt.createElement(Tt.Z,null):tt.createElement(Ye,null);return gn==="picture"?Qr=oo?tt.createElement(Tt.Z,null):So:(gn==="picture-card"||gn==="picture-circle")&&(Qr=oo?zn.uploading:So),Qr},no=(gi,oo,So,Qr)=>{const ii={type:"text",size:"small",title:Qr,onClick:Oi=>{oo(),(0,Je.l$)(gi)&&gi.props.onClick&&gi.props.onClick(Oi)},className:`${So}-list-item-action`,disabled:ur};if((0,Je.l$)(gi)){const Oi=(0,Je.Tm)(gi,Object.assign(Object.assign({},gi.props),{onClick:()=>{}}));return tt.createElement(dt.ZP,Object.assign({},ii,{icon:Oi}))}return tt.createElement(dt.ZP,Object.assign({},ii),tt.createElement("span",null,gi))};tt.useImperativeHandle(Sn,()=>({handlePreview:zr,handleDownload:$i}));const{getPrefixCls:Wr}=tt.useContext(vt.E_),Hr=Wr("upload",Fr),wi=Wr(),vi=Ge()(`${Hr}-list`,`${Hr}-list-${gn}`),fr=(0,Pt.Z)(Yr.map(gi=>({key:gi.uid,file:gi})));let Fi={motionDeadline:2e3,motionName:`${Hr}-${gn==="picture-card"||gn==="picture-circle"?"animate-inline":"animate"}`,keys:fr,motionAppear:cr};const Ki=tt.useMemo(()=>{const gi=Object.assign({},(0,Ke.Z)(wi));return delete gi.onAppearEnd,delete gi.onEnterEnd,delete gi.onLeaveEnd,gi},[wi]);return gn!=="picture-card"&&gn!=="picture-circle"&&(Fi=Object.assign(Object.assign({},Ki),Fi)),tt.createElement("div",{className:vi},tt.createElement(He.CSSMotionList,Object.assign({},Fi,{component:!1}),gi=>{let{key:oo,file:So,className:Qr,style:ii}=gi;return tt.createElement(tr,{key:oo,locale:zn,prefixCls:Hr,className:Qr,style:ii,file:So,items:Yr,progress:$r,listType:gn,isImgUrl:mn,showPreviewIcon:Br,showRemoveIcon:bn,showDownloadIcon:Jn,removeIcon:sr,previewIcon:Sr,downloadIcon:mr,iconRender:yo,actionIconRender:no,itemRender:br,onPreview:zr,onDownload:$i,onClose:Mi})}),ri&&tt.createElement(He.default,Object.assign({},Fi,{visible:Rr,forceRender:!0}),gi=>{let{className:oo,style:So}=gi;return(0,Je.Tm)(ri,Qr=>({className:Ge()(Qr.className,oo),style:Object.assign(Object.assign(Object.assign({},So),{pointerEvents:oo?"none":void 0}),Qr.style)}))}))};var Or=tt.forwardRef(Tr),Dr=$e(17313),Jr=$e(8378),ni=$e(83116),Nr=$e(37613),Ir=an=>{const{componentCls:Sn,iconCls:gn}=an;return{[`${Sn}-wrapper`]:{[`${Sn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:an.colorFillAlter,border:`${an.lineWidth}px dashed ${an.colorBorder}`,borderRadius:an.borderRadiusLG,cursor:"pointer",transition:`border-color ${an.motionDurationSlow}`,[Sn]:{padding:`${an.padding}px 0`},[`${Sn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Sn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Sn}-disabled):hover`]:{borderColor:an.colorPrimaryHover},[`p${Sn}-drag-icon`]:{marginBottom:an.margin,[gn]:{color:an.colorPrimary,fontSize:an.uploadThumbnailSize}},[`p${Sn}-text`]:{margin:`0 0 ${an.marginXXS}px`,color:an.colorTextHeading,fontSize:an.fontSizeLG},[`p${Sn}-hint`]:{color:an.colorTextDescription,fontSize:an.fontSize},[`&${Sn}-disabled`]:{cursor:"not-allowed",[`p${Sn}-drag-icon ${gn},
|
|
|
p${Sn}-text,
|
|
|
p${Sn}-hint
|
|
|
`]:{color:an.colorTextDisabled}}}}}},Ci=an=>{const{componentCls:Sn,antCls:gn,iconCls:yn,fontSize:On,lineHeight:Nn}=an,Fn=`${Sn}-list-item`,zn=`${Fn}-actions`,xr=`${Fn}-action`,mn=Math.round(On*Nn);return{[`${Sn}-wrapper`]:{[`${Sn}-list`]:Object.assign(Object.assign({},(0,Dr.dF)()),{lineHeight:an.lineHeight,[Fn]:{position:"relative",height:an.lineHeight*On,marginTop:an.marginXS,fontSize:On,display:"flex",alignItems:"center",transition:`background-color ${an.motionDurationSlow}`,"&:hover":{backgroundColor:an.controlItemBgHover},[`${Fn}-name`]:Object.assign(Object.assign({},Dr.vS),{padding:`0 ${an.paddingXS}px`,lineHeight:Nn,flex:"auto",transition:`all ${an.motionDurationSlow}`}),[zn]:{[xr]:{opacity:0},[`${xr}${gn}-btn-sm`]:{height:mn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${xr}:focus-visible,
|
|
|
&.picture ${xr}
|
|
|
`]:{opacity:1},[yn]:{color:an.actionsColor,transition:`all ${an.motionDurationSlow}`},[`&:hover ${yn}`]:{color:an.colorText}},[`${Sn}-icon ${yn}`]:{color:an.colorTextDescription,fontSize:On},[`${Fn}-progress`]:{position:"absolute",bottom:-an.uploadProgressOffset,width:"100%",paddingInlineStart:On+an.paddingXS,fontSize:On,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Fn}:hover ${xr}`]:{opacity:1,color:an.colorText},[`${Fn}-error`]:{color:an.colorError,[`${Fn}-name, ${Sn}-icon ${yn}`]:{color:an.colorError},[zn]:{[`${yn}, ${yn}:hover`]:{color:an.colorError},[xr]:{opacity:1}}},[`${Sn}-list-item-container`]:{transition:`opacity ${an.motionDurationSlow}, height ${an.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xi=$e(93083),pr=$e(1950);const Pr=new xi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ar=new xi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var nr=an=>{const{componentCls:Sn}=an,gn=`${Sn}-animate-inline`;return[{[`${Sn}-wrapper`]:{[`${gn}-appear, ${gn}-enter, ${gn}-leave`]:{animationDuration:an.motionDurationSlow,animationTimingFunction:an.motionEaseInOutCirc,animationFillMode:"forwards"},[`${gn}-appear, ${gn}-enter`]:{animationName:Pr},[`${gn}-leave`]:{animationName:Ar}}},{[`${Sn}-wrapper`]:(0,pr.J$)(an)},Pr,Ar]},or=$e(93398),qt=$e(64993);const Jt=an=>{const{componentCls:Sn,iconCls:gn,uploadThumbnailSize:yn,uploadProgressOffset:On}=an,Nn=`${Sn}-list`,Fn=`${Nn}-item`;return{[`${Sn}-wrapper`]:{[`
|
|
|
${Nn}${Nn}-picture,
|
|
|
${Nn}${Nn}-picture-card,
|
|
|
${Nn}${Nn}-picture-circle
|
|
|
`]:{[Fn]:{position:"relative",height:yn+an.lineWidth*2+an.paddingXS*2,padding:an.paddingXS,border:`${an.lineWidth}px ${an.lineType} ${an.colorBorder}`,borderRadius:an.borderRadiusLG,"&:hover":{background:"transparent"},[`${Fn}-thumbnail`]:Object.assign(Object.assign({},Dr.vS),{width:yn,height:yn,lineHeight:`${yn+an.paddingSM}px`,textAlign:"center",flex:"none",[gn]:{fontSize:an.fontSizeHeading2,color:an.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Fn}-progress`]:{bottom:On,width:`calc(100% - ${an.paddingSM*2}px)`,marginTop:0,paddingInlineStart:yn+an.paddingXS}},[`${Fn}-error`]:{borderColor:an.colorError,[`${Fn}-thumbnail ${gn}`]:{[`svg path[fill='${or.blue[0]}']`]:{fill:an.colorErrorBg},[`svg path[fill='${or.blue.primary}']`]:{fill:an.colorError}}},[`${Fn}-uploading`]:{borderStyle:"dashed",[`${Fn}-name`]:{marginBottom:On}}},[`${Nn}${Nn}-picture-circle ${Fn}`]:{[`&, &::before, ${Fn}-thumbnail`]:{borderRadius:"50%"}}}}},Et=an=>{const{componentCls:Sn,iconCls:gn,fontSizeLG:yn,colorTextLightSolid:On}=an,Nn=`${Sn}-list`,Fn=`${Nn}-item`,zn=an.uploadPicCardSize;return{[`
|
|
|
${Sn}-wrapper${Sn}-picture-card-wrapper,
|
|
|
${Sn}-wrapper${Sn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Dr.dF)()),{display:"inline-block",width:"100%",[`${Sn}${Sn}-select`]:{width:zn,height:zn,marginInlineEnd:an.marginXS,marginBottom:an.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:an.colorFillAlter,border:`${an.lineWidth}px dashed ${an.colorBorder}`,borderRadius:an.borderRadiusLG,cursor:"pointer",transition:`border-color ${an.motionDurationSlow}`,[`> ${Sn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Sn}-disabled):hover`]:{borderColor:an.colorPrimary}},[`${Nn}${Nn}-picture-card, ${Nn}${Nn}-picture-circle`]:{[`${Nn}-item-container`]:{display:"inline-block",width:zn,height:zn,marginBlock:`0 ${an.marginXS}px`,marginInline:`0 ${an.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Fn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${an.paddingXS*2}px)`,height:`calc(100% - ${an.paddingXS*2}px)`,backgroundColor:an.colorBgMask,opacity:0,transition:`all ${an.motionDurationSlow}`,content:'" "'}},[`${Fn}:hover`]:{[`&::before, ${Fn}-actions`]:{opacity:1}},[`${Fn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${an.motionDurationSlow}`,[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{zIndex:10,width:yn,margin:`0 ${an.marginXXS}px`,fontSize:yn,cursor:"pointer",transition:`all ${an.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Fn}-actions, ${Fn}-actions:hover`]:{[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{color:new qt.C(On).setAlpha(.65).toRgbString(),"&:hover":{color:On}}},[`${Fn}-thumbnail, ${Fn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Fn}-name`]:{display:"none",textAlign:"center"},[`${Fn}-file + ${Fn}-name`]:{position:"absolute",bottom:an.margin,display:"block",width:`calc(100% - ${an.paddingXS*2}px)`},[`${Fn}-uploading`]:{[`&${Fn}`]:{backgroundColor:an.colorFillAlter},[`&::before, ${gn}-eye, ${gn}-download, ${gn}-delete`]:{display:"none"}},[`${Fn}-progress`]:{bottom:an.marginXL,width:`calc(100% - ${an.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Sn}-wrapper${Sn}-picture-circle-wrapper`]:{[`${Sn}${Sn}-select`]:{borderRadius:"50%"}}}};var Pn=an=>{const{componentCls:Sn}=an;return{[`${Sn}-rtl`]:{direction:"rtl"}}};const $t=an=>{const{componentCls:Sn,colorTextDisabled:gn}=an;return{[`${Sn}-wrapper`]:Object.assign(Object.assign({},(0,Dr.Wf)(an)),{[Sn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Sn}-select`]:{display:"inline-block"},[`${Sn}-disabled`]:{color:gn,cursor:"not-allowed"}})}};var It=(0,ni.Z)("Upload",an=>{const{fontSizeHeading3:Sn,fontSize:gn,lineHeight:yn,lineWidth:On,controlHeightLG:Nn}=an,Fn=Math.round(gn*yn),zn=(0,Nr.TS)(an,{uploadThumbnailSize:Sn*2,uploadProgressOffset:Fn/2+On,uploadPicCardSize:Nn*2.55});return[$t(zn),Ir(zn),Jt(zn),Et(zn),Ci(zn),nr(zn),Pn(zn),(0,Jr.Z)(zn)]},an=>({actionsColor:an.colorTextDescription})),fn=function(an,Sn,gn,yn){function On(Nn){return Nn instanceof gn?Nn:new gn(function(Fn){Fn(Nn)})}return new(gn||(gn=Promise))(function(Nn,Fn){function zn(Fr){try{mn(yn.next(Fr))}catch(Yr){Fn(Yr)}}function xr(Fr){try{mn(yn.throw(Fr))}catch(Yr){Fn(Yr)}}function mn(Fr){Fr.done?Nn(Fr.value):On(Fr.value).then(zn,xr)}mn((yn=yn.apply(an,Sn||[])).next())})};const un=`__LIST_IGNORE_${Date.now()}__`,Gn=(an,Sn)=>{const{fileList:gn,defaultFileList:yn,onRemove:On,showUploadList:Nn=!0,listType:Fn="text",onPreview:zn,onDownload:xr,onChange:mn,onDrop:Fr,previewFile:Yr,disabled:Br,locale:bn,iconRender:Jn,isImageUrl:sr,progress:Sr,prefixCls:mr,className:$r,type:ri="select",children:Rr,style:br,itemRender:ur,maxCount:vn,data:cr={},multiple:xn=!1,action:zr="",accept:$i="",supportServerRender:Mi=!0,rootClassName:yo}=an,no=tt.useContext(nt.Z),Wr=Br!=null?Br:no,[Hr,wi]=(0,lt.Z)(yn||[],{value:gn,postState:xo=>xo!=null?xo:[]}),[vi,fr]=tt.useState("drop"),kt=tt.useRef(null);tt.useMemo(()=>{const xo=Date.now();(gn||[]).forEach((eo,ga)=>{!eo.uid&&!Object.isFrozen(eo)&&(eo.uid=`__AUTO__${xo}_${ga}__`)})},[gn]);const Fi=(xo,eo,ga)=>{let jo=(0,Pt.Z)(eo),Yi=!1;vn===1?jo=jo.slice(-1):vn&&(Yi=jo.length>vn,jo=jo.slice(0,vn)),(0,ct.flushSync)(()=>{wi(jo)});const No={file:xo,fileList:jo};ga&&(No.event=ga),(!Yi||jo.some(xs=>xs.uid===xo.uid))&&(0,ct.flushSync)(()=>{mn==null||mn(No)})},Ki=(xo,eo)=>fn(void 0,void 0,void 0,function*(){const{beforeUpload:ga,transformFile:jo}=an;let Yi=xo;if(ga){const No=yield ga(xo,eo);if(No===!1)return!1;if(delete xo[un],No===un)return Object.defineProperty(xo,un,{value:!0,configurable:!0}),!1;typeof No=="object"&&No&&(Yi=No)}return jo&&(Yi=yield jo(Yi)),Yi}),gi=xo=>{const eo=xo.filter(Yi=>!Yi.file[un]);if(!eo.length)return;const ga=eo.map(Yi=>Ct(Yi.file));let jo=(0,Pt.Z)(Hr);ga.forEach(Yi=>{jo=ht(Yi,jo)}),ga.forEach((Yi,No)=>{let xs=Yi;if(eo[No].parsedFile)Yi.status="uploading";else{const{originFileObj:bi}=Yi;let so;try{so=new File([bi],bi.name,{type:bi.type})}catch(io){so=new Blob([bi],{type:bi.type}),so.name=bi.name,so.lastModifiedDate=new Date,so.lastModified=new Date().getTime()}so.uid=Yi.uid,xs=so}Fi(xs,jo)})},oo=(xo,eo,ga)=>{try{typeof xo=="string"&&(xo=JSON.parse(xo))}catch(No){}if(!Lt(eo,Hr))return;const jo=Ct(eo);jo.status="done",jo.percent=100,jo.response=xo,jo.xhr=ga;const Yi=ht(jo,Hr);Fi(jo,Yi)},So=(xo,eo)=>{if(!Lt(eo,Hr))return;const ga=Ct(eo);ga.status="uploading",ga.percent=xo.percent;const jo=ht(ga,Hr);Fi(ga,jo,xo)},Qr=(xo,eo,ga)=>{if(!Lt(ga,Hr))return;const jo=Ct(ga);jo.error=xo,jo.response=eo,jo.status="error";const Yi=ht(jo,Hr);Fi(jo,Yi)},ii=xo=>{let eo;Promise.resolve(typeof On=="function"?On(xo):On).then(ga=>{var jo;if(ga===!1)return;const Yi=en(xo,Hr);Yi&&(eo=Object.assign(Object.assign({},xo),{status:"removed"}),Hr==null||Hr.forEach(No=>{const xs=eo.uid!==void 0?"uid":"name";No[xs]===eo[xs]&&!Object.isFrozen(No)&&(No.status="removed")}),(jo=kt.current)===null||jo===void 0||jo.abort(eo),Fi(eo,Yi))})},Oi=xo=>{fr(xo.type),xo.type==="drop"&&(Fr==null||Fr(xo))};tt.useImperativeHandle(Sn,()=>({onBatchStart:gi,onSuccess:oo,onProgress:So,onError:Qr,fileList:Hr,upload:kt.current}));const{getPrefixCls:Pi,direction:co,upload:To}=tt.useContext(vt.E_),Kr=Pi("upload",mr),Vr=Object.assign(Object.assign({onBatchStart:gi,onError:Qr,onProgress:So,onSuccess:oo},an),{data:cr,multiple:xn,action:zr,accept:$i,supportServerRender:Mi,prefixCls:Kr,disabled:Wr,beforeUpload:Ki,onChange:void 0});delete Vr.className,delete Vr.style,(!Rr||Wr)&&delete Vr.id;const[Yn,ci]=It(Kr),[ro]=(0,it.Z)("Upload",pt.Z.Upload),{showRemoveIcon:Wo,showPreviewIcon:_o,showDownloadIcon:Xo,removeIcon:Pa,previewIcon:na,downloadIcon:os}=typeof Nn=="boolean"?{}:Nn,Da=(xo,eo)=>Nn?tt.createElement(Or,{prefixCls:Kr,listType:Fn,items:Hr,previewFile:Yr,onPreview:zn,onDownload:xr,onRemove:ii,showRemoveIcon:!Wr&&Wo,showPreviewIcon:_o,showDownloadIcon:Xo,removeIcon:Pa,previewIcon:na,downloadIcon:os,iconRender:Jn,locale:Object.assign(Object.assign({},ro),bn),isImageUrl:sr,progress:Sr,appendAction:xo,appendActionVisible:eo,itemRender:ur,disabled:Wr}):xo,fs=Ge()(`${Kr}-wrapper`,$r,yo,ci,To==null?void 0:To.className,{[`${Kr}-rtl`]:co==="rtl",[`${Kr}-picture-card-wrapper`]:Fn==="picture-card",[`${Kr}-picture-circle-wrapper`]:Fn==="picture-circle"}),Ln=Object.assign(Object.assign({},To==null?void 0:To.style),br);if(ri==="drag"){const xo=Ge()(ci,Kr,`${Kr}-drag`,{[`${Kr}-drag-uploading`]:Hr.some(eo=>eo.status==="uploading"),[`${Kr}-drag-hover`]:vi==="dragover",[`${Kr}-disabled`]:Wr,[`${Kr}-rtl`]:co==="rtl"});return Yn(tt.createElement("span",{className:fs},tt.createElement("div",{className:xo,style:Ln,onDrop:Oi,onDragOver:Oi,onDragLeave:Oi},tt.createElement(Qe,Object.assign({},Vr,{ref:kt,className:`${Kr}-btn`}),tt.createElement("div",{className:`${Kr}-drag-container`},Rr))),Da()))}const Fa=Ge()(Kr,`${Kr}-select`,{[`${Kr}-disabled`]:Wr}),el=(xo=>tt.createElement("div",{className:Fa,style:xo},tt.createElement(Qe,Object.assign({},Vr,{ref:kt}))))(Rr?void 0:{display:"none"});return Yn(Fn==="picture-card"||Fn==="picture-circle"?tt.createElement("span",{className:fs},Da(el,!!Rr)):tt.createElement("span",{className:fs},el,Da()))};var Ht=tt.forwardRef(Gn),kn=function(an,Sn){var gn={};for(var yn in an)Object.prototype.hasOwnProperty.call(an,yn)&&Sn.indexOf(yn)<0&&(gn[yn]=an[yn]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,yn=Object.getOwnPropertySymbols(an);On<yn.length;On++)Sn.indexOf(yn[On])<0&&Object.prototype.propertyIsEnumerable.call(an,yn[On])&&(gn[yn[On]]=an[yn[On]]);return gn},lr=tt.forwardRef((an,Sn)=>{var{style:gn,height:yn}=an,On=kn(an,["style","height"]);return tt.createElement(Ht,Object.assign({ref:Sn},On,{type:"drag",style:Object.assign(Object.assign({},gn),{height:yn})}))});const on=Ht;on.Dragger=lr,on.LIST_IGNORE=un;var Mn=on},99498:function(Rn,wn,$e){(function(tt){tt($e(89780))})(function(tt){tt.defineOption("placeholder","",function(we,Le,Se){var Oe=Se&&Se!=tt.Init;if(Le&&!Oe)we.on("blur",De),we.on("change",me),we.on("swapDoc",me),tt.on(we.getInputField(),"compositionupdate",we.state.placeholderCompose=function(){Ge(we)}),me(we);else if(!Le&&Oe){we.off("blur",De),we.off("change",me),we.off("swapDoc",me),tt.off(we.getInputField(),"compositionupdate",we.state.placeholderCompose),Pt(we);var ve=we.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}Le&&!we.hasFocus()&&De(we)});function Pt(we){we.state.placeholder&&(we.state.placeholder.parentNode.removeChild(we.state.placeholder),we.state.placeholder=null)}function oe(we){Pt(we);var Le=we.state.placeholder=document.createElement("pre");Le.style.cssText="height: 0; overflow: visible",Le.style.direction=we.getOption("direction"),Le.className="CodeMirror-placeholder CodeMirror-line-like";var Se=we.getOption("placeholder");typeof Se=="string"&&(Se=document.createTextNode(Se)),Le.appendChild(Se),we.display.lineSpace.insertBefore(Le,we.display.lineSpace.firstChild)}function Ge(we){setTimeout(function(){var Le=!1,Se=we.getInputField();Se.nodeName=="TEXTAREA"?Le=!Se.value:we.lineCount()==1&&(Le=!/[^\u200b]/.test(Se.querySelector(".CodeMirror-line").textContent)),Le?oe(we):Pt(we)},20)}function De(we){ce(we)&&oe(we)}function me(we){var Le=we.getWrapperElement(),Se=ce(we);Le.className=Le.className.replace(" CodeMirror-empty","")+(Se?" CodeMirror-empty":""),Se?oe(we):Pt(we)}function ce(we){return we.lineCount()===1&&we.getLine(0)===""}})},25717:function(Rn,wn,$e){(function(tt){tt($e(89780))})(function(tt){var Pt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=tt.Pos;tt.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=tt.Init&&(z.removeKeyMap(De),z.state.closeBrackets=null),ee&&(me(Ge(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(De))});function Ge(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:Pt[ee]}var De={Backspace:Le,Enter:Se};function me(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";De[re]||(De[re]=ce(ae))}}me(Pt.pairs+"`");function ce(z){return function(ee){return ve(ee,z)}}function we(z){var ee=z.state.closeBrackets;if(!ee||ee.override)return ee;var ae=z.getModeAt(z.getCursor());return ae.closeBrackets||ee}function Le(z){var ee=we(z);if(!ee||z.getOption("disableInput"))return tt.Pass;for(var ae=Ge(ee,"pairs"),re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return tt.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return tt.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 Se(z){var ee=we(z),ae=ee&&Ge(ee,"explode");if(!ae||z.getOption("disableInput"))return tt.Pass;for(var re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return tt.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return tt.Pass}z.operation(function(){var pe=z.lineSeparator()||`
|
|
|
`;z.replaceSelection(pe+pe,null),z.execCommand("goCharLeft"),re=z.listSelections();for(var be=0;be<re.length;be++){var Ce=re[be].head.line;z.indentLine(Ce,null,!0),z.indentLine(Ce+1,null,!0)}})}function Oe(z){var ee=tt.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 ve(z,ee){var ae=we(z);if(!ae||z.getOption("disableInput"))return tt.Pass;var re=Ge(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return tt.Pass;for(var ue=Ge(ae,"closeBefore"),pe=Ge(ae,"triples"),be=re.charAt(le+1)==ee,Ce=z.listSelections(),Fe=le%2==0,je,ke=0;ke<Ce.length;ke++){var Ae=Ce[ke],Be=Ae.head,_e,et=z.getRange(Be,oe(Be.line,Be.ch+1));if(Fe&&!Ae.empty())_e="surround";else if((be||!Fe)&&et==ee)be&&fe(z,Be)?_e="both":pe.indexOf(ee)>=0&&z.getRange(Be,oe(Be.line,Be.ch+3))==ee+ee+ee?_e="skipThree":_e="skip";else if(be&&Be.ch>1&&pe.indexOf(ee)>=0&&z.getRange(oe(Be.line,Be.ch-2),Be)==ee+ee){if(Be.ch>2&&/\bstring/.test(z.getTokenTypeAt(oe(Be.line,Be.ch-2))))return tt.Pass;_e="addFour"}else if(be){var ze=Be.ch==0?" ":z.getRange(oe(Be.line,Be.ch-1),Be);if(!tt.isWordChar(et)&&ze!=ee&&!tt.isWordChar(ze))_e="both";else return tt.Pass}else if(Fe&&(et.length===0||/\s/.test(et)||ue.indexOf(et)>-1))_e="both";else return tt.Pass;if(!je)je=_e;else if(je!=_e)return tt.Pass}var Xe=le%2?re.charAt(le-1):ee,Qe=le%2?ee:re.charAt(le+1);z.operation(function(){if(je=="skip")z.execCommand("goCharRight");else if(je=="skipThree")for(var lt=0;lt<3;lt++)z.execCommand("goCharRight");else if(je=="surround"){for(var ct=z.getSelections(),lt=0;lt<ct.length;lt++)ct[lt]=Xe+ct[lt]+Qe;z.replaceSelections(ct,"around"),ct=z.listSelections().slice();for(var lt=0;lt<ct.length;lt++)ct[lt]=Oe(ct[lt]);z.setSelections(ct)}else je=="both"?(z.replaceSelection(Xe+Qe,null),z.triggerElectric(Xe+Qe),z.execCommand("goCharLeft")):je=="addFour"&&(z.replaceSelection(Xe+Xe+Xe+Xe,"before"),z.execCommand("goCharRight"))})}function xe(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 fe(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(Rn,wn,$e){(function(tt){tt($e(89780),$e(32855))})(function(tt){tt.defineOption("autoCloseTags",!1,function(Le,Se,Oe){if(Oe!=tt.Init&&Oe&&Le.removeKeyMap("autoCloseTags"),!!Se){var ve={name:"autoCloseTags"};(typeof Se!="object"||Se.whenClosing!==!1)&&(ve["'/'"]=function(xe){return me(xe)}),(typeof Se!="object"||Se.whenOpening!==!1)&&(ve["'>'"]=function(xe){return Ge(xe)}),Le.addKeyMap(ve)}});var Pt=["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 Ge(Le){if(Le.getOption("disableInput"))return tt.Pass;for(var Se=Le.listSelections(),Oe=[],ve=Le.getOption("autoCloseTags"),xe=0;xe<Se.length;xe++){if(!Se[xe].empty())return tt.Pass;var fe=Se[xe].head,z=Le.getTokenAt(fe),ee=tt.innerMode(Le.getMode(),z.state),ae=ee.state,re=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ae),le=re&&re.name;if(!le)return tt.Pass;var ue=ee.mode.configuration=="html",pe=typeof ve=="object"&&ve.dontCloseTags||ue&&Pt,be=typeof ve=="object"&&ve.indentTags||ue&&oe;z.end>fe.ch&&(le=le.slice(0,le.length-z.end+fe.ch));var Ce=le.toLowerCase();if(!le||z.type=="string"&&(z.end!=fe.ch||!/[\"\']/.test(z.string.charAt(z.string.length-1))||z.string.length==1)||z.type=="tag"&&re.close||z.string.indexOf("/")==fe.ch-z.start-1||pe&&ce(pe,Ce)>-1||we(Le,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,fe,!0))return tt.Pass;var Fe=typeof ve=="object"&&ve.emptyTags;if(Fe&&ce(Fe,le)>-1){Oe[xe]={text:"/>",newPos:tt.Pos(fe.line,fe.ch+2)};continue}var je=be&&ce(be,Ce)>-1;Oe[xe]={indent:je,text:">"+(je?`
|
|
|
|
|
|
`:"")+"</"+le+">",newPos:je?tt.Pos(fe.line+1,0):tt.Pos(fe.line,fe.ch+1)}}for(var ke=typeof ve=="object"&&ve.dontIndentOnAutoClose,xe=Se.length-1;xe>=0;xe--){var Ae=Oe[xe];Le.replaceRange(Ae.text,Se[xe].head,Se[xe].anchor,"+insert");var Be=Le.listSelections().slice(0);Be[xe]={head:Ae.newPos,anchor:Ae.newPos},Le.setSelections(Be),!ke&&Ae.indent&&(Le.indentLine(Ae.newPos.line,null,!0),Le.indentLine(Ae.newPos.line+1,null,!0))}}function De(Le,Se){for(var Oe=Le.listSelections(),ve=[],xe=Se?"/":"</",fe=Le.getOption("autoCloseTags"),z=typeof fe=="object"&&fe.dontIndentOnSlash,ee=0;ee<Oe.length;ee++){if(!Oe[ee].empty())return tt.Pass;var ae=Oe[ee].head,re=Le.getTokenAt(ae),le=tt.innerMode(Le.getMode(),re.state),ue=le.state;if(Se&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=ae.ch-1))return tt.Pass;var pe,be=le.mode.name!="xml"&&Le.getMode().name=="htmlmixed";if(be&&le.mode.name=="javascript")pe=xe+"script";else if(be&&le.mode.name=="css")pe=xe+"style";else{var Ce=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ue);if(!Ce||Ce.length&&we(Le,Ce,Ce[Ce.length-1],ae))return tt.Pass;pe=xe+Ce[Ce.length-1]}Le.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),ve[ee]=pe}if(Le.replaceSelections(ve),Oe=Le.listSelections(),!z)for(var ee=0;ee<Oe.length;ee++)(ee==Oe.length-1||Oe[ee].head.line<Oe[ee+1].head.line)&&Le.indentLine(Oe[ee].head.line)}function me(Le){return Le.getOption("disableInput")?tt.Pass:De(Le,!0)}tt.commands.closeTag=function(Le){return De(Le)};function ce(Le,Se){if(Le.indexOf)return Le.indexOf(Se);for(var Oe=0,ve=Le.length;Oe<ve;++Oe)if(Le[Oe]==Se)return Oe;return-1}function we(Le,Se,Oe,ve,xe){if(!tt.scanForClosingTag)return!1;var fe=Math.min(Le.lastLine()+1,ve.line+500),z=tt.scanForClosingTag(Le,ve,null,fe);if(!z||z.tag!=Oe)return!1;for(var ee=xe?1:0,ae=Se.length-1;ae>=0&&Se[ae]==Oe;ae--)++ee;ve=z.to;for(var ae=1;ae<ee;ae++){var re=tt.scanForClosingTag(Le,ve,null,fe);if(!re||re.tag!=Oe)return!1;ve=re.to}return!0}})},32855:function(Rn,wn,$e){(function(tt){tt($e(89780))})(function(tt){"use strict";var Pt=tt.Pos;function oe(ae,re){return ae.line-re.line||ae.ch-re.ch}var Ge="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",De=Ge+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("<(/?)(["+Ge+"]["+De+"]*)","g");function ce(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 we(ae,re){var le=ae.cm.getTokenTypeAt(Pt(ae.line,re));return le&&/\btag\b/.test(le)}function Le(ae){if(!(ae.line>=ae.max))return ae.ch=0,ae.text=ae.cm.getLine(++ae.line),!0}function Se(ae){if(!(ae.line<=ae.min))return ae.text=ae.cm.getLine(--ae.line),ae.ch=ae.text.length,!0}function Oe(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Le(ae))continue;return}if(!we(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 ve(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf("<",ae.ch-1):-1;if(re==-1){if(Se(ae))continue;return}if(!we(ae,re+1)){ae.ch=re;continue}me.lastIndex=re,ae.ch=re;var le=me.exec(ae.text);if(le&&le.index==re)return le}}function xe(ae){for(;;){me.lastIndex=ae.ch;var re=me.exec(ae.text);if(!re){if(Le(ae))continue;return}if(!we(ae,re.index+1)){ae.ch=re.index+1;continue}return ae.ch=re.index+re[0].length,re}}function fe(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf(">",ae.ch-1):-1;if(re==-1){if(Se(ae))continue;return}if(!we(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=xe(ae),pe,be=ae.line,Ce=ae.ch-(ue?ue[0].length:0);if(!ue||!(pe=Oe(ae)))return;if(pe!="selfClose")if(ue[1]){for(var Fe=le.length-1;Fe>=0;--Fe)if(le[Fe]==ue[2]){le.length=Fe;break}if(Fe<0&&(!re||re==ue[2]))return{tag:ue[2],from:Pt(be,Ce),to:Pt(ae.line,ae.ch)}}else le.push(ue[2])}}function ee(ae,re){for(var le=[];;){var ue=fe(ae);if(!ue)return;if(ue=="selfClose"){ve(ae);continue}var pe=ae.line,be=ae.ch,Ce=ve(ae);if(!Ce)return;if(Ce[1])le.push(Ce[2]);else{for(var Fe=le.length-1;Fe>=0;--Fe)if(le[Fe]==Ce[2]){le.length=Fe;break}if(Fe<0&&(!re||re==Ce[2]))return{tag:Ce[2],from:Pt(ae.line,ae.ch),to:Pt(pe,be)}}}}tt.registerHelper("fold","xml",function(ae,re){for(var le=new ce(ae,re.line,0);;){var ue=xe(le);if(!ue||le.line!=re.line)return;var pe=Oe(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var be=Pt(le.line,le.ch),Ce=z(le,ue[2]);return Ce&&oe(Ce.from,be)>0?{from:be,to:Ce.from}:null}}}),tt.findMatchingTag=function(ae,re,le){var ue=new ce(ae,re.line,re.ch,le);if(!(ue.text.indexOf(">")==-1&&ue.text.indexOf("<")==-1)){var pe=Oe(ue),be=pe&&Pt(ue.line,ue.ch),Ce=pe&&ve(ue);if(!(!pe||!Ce||oe(ue,re)>0)){var Fe={from:Pt(ue.line,ue.ch),to:be,tag:Ce[2]};return pe=="selfClose"?{open:Fe,close:null,at:"open"}:Ce[1]?{open:ee(ue,Ce[2]),close:Fe,at:"close"}:(ue=new ce(ae,be.line,be.ch,le),{open:Fe,close:z(ue,Ce[2]),at:"open"})}}},tt.findEnclosingTag=function(ae,re,le,ue){for(var pe=new ce(ae,re.line,re.ch,le);;){var be=ee(pe,ue);if(!be)break;var Ce=new ce(ae,re.line,re.ch,le),Fe=z(Ce,be.tag);if(Fe)return{open:be,close:Fe}}},tt.scanForClosingTag=function(ae,re,le,ue){var pe=new ce(ae,re.line,re.ch,ue?{from:0,to:ue}:null);return z(pe,le)}})},89780:function(Rn){(function(wn,$e){Rn.exports=$e()})(this,function(){"use strict";var wn=navigator.userAgent,$e=navigator.platform,tt=/gecko\/\d/i.test(wn),Pt=/MSIE \d/.test(wn),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(wn),Ge=/Edge\/(\d+)/.exec(wn),De=Pt||oe||Ge,me=De&&(Pt?document.documentMode||6:+(Ge||oe)[1]),ce=!Ge&&/WebKit\//.test(wn),we=ce&&/Qt\/\d+\.\d+/.test(wn),Le=!Ge&&/Chrome\//.test(wn),Se=/Opera\//.test(wn),Oe=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(wn),xe=/PhantomJS/.test(wn),fe=!Ge&&/AppleWebKit/.test(wn)&&/Mobile\/\w+/.test(wn),z=/Android/.test(wn),ee=fe||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(wn),ae=fe||/Mac/.test($e),re=/\bCrOS\b/.test(wn),le=/win/i.test($e),ue=Se&&wn.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(Se=!1,ce=!0);var pe=ae&&(we||Se&&(ue==null||ue<12.11)),be=tt||De&&me>=9;function Ce(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Fe=function(ie,de){var Ne=ie.className,Me=Ce(de).exec(Ne);if(Me){var Re=Ne.slice(Me.index+Me[0].length);ie.className=Ne.slice(0,Me.index)+(Re?Me[1]+Re:"")}};function je(ie){for(var de=ie.childNodes.length;de>0;--de)ie.removeChild(ie.firstChild);return ie}function ke(ie,de){return je(ie).appendChild(de)}function Ae(ie,de,Ne,Me){var Re=document.createElement(ie);if(Ne&&(Re.className=Ne),Me&&(Re.style.cssText=Me),typeof de=="string")Re.appendChild(document.createTextNode(de));else if(de)for(var st=0;st<de.length;++st)Re.appendChild(de[st]);return Re}function Be(ie,de,Ne,Me){var Re=Ae(ie,de,Ne,Me);return Re.setAttribute("role","presentation"),Re}var _e;document.createRange?_e=function(ie,de,Ne,Me){var Re=document.createRange();return Re.setEnd(Me||ie,Ne),Re.setStart(ie,de),Re}:_e=function(ie,de,Ne){var Me=document.body.createTextRange();try{Me.moveToElementText(ie.parentNode)}catch(Re){return Me}return Me.collapse(!0),Me.moveEnd("character",Ne),Me.moveStart("character",de),Me};function et(ie,de){if(de.nodeType==3&&(de=de.parentNode),ie.contains)return ie.contains(de);do if(de.nodeType==11&&(de=de.host),de==ie)return!0;while(de=de.parentNode)}function ze(){var ie;try{ie=document.activeElement}catch(de){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Xe(ie,de){var Ne=ie.className;Ce(de).test(Ne)||(ie.className+=(Ne?" ":"")+de)}function Qe(ie,de){for(var Ne=ie.split(" "),Me=0;Me<Ne.length;Me++)Ne[Me]&&!Ce(Ne[Me]).test(de)&&(de+=" "+Ne[Me]);return de}var lt=function(ie){ie.select()};fe?lt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:De&&(lt=function(ie){try{ie.select()}catch(de){}});function ct(ie){var de=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,de)}}function vt(ie,de,Ne){de||(de={});for(var Me in ie)ie.hasOwnProperty(Me)&&(Ne!==!1||!de.hasOwnProperty(Me))&&(de[Me]=ie[Me]);return de}function nt(ie,de,Ne,Me,Re){de==null&&(de=ie.search(/[^\s\u00a0]/),de==-1&&(de=ie.length));for(var st=Me||0,bt=Re||0;;){var jt=ie.indexOf(" ",st);if(jt<0||jt>=de)return bt+(de-st);bt+=jt-st,bt+=Ne-bt%Ne,st=jt+1}}var it=function(){this.id=null,this.f=null,this.time=0,this.handler=ct(this.onTimeout,this)};it.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},it.prototype.set=function(ie,de){this.f=de;var Ne=+new Date+ie;(!this.id||Ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=Ne)};function pt(ie,de){for(var Ne=0;Ne<ie.length;++Ne)if(ie[Ne]==de)return Ne;return-1}var xt=50,yt={toString:function(){return"CodeMirror.Pass"}},ft={scroll:!1},gt={origin:"*mouse"},mt={origin:"+move"};function Nt(ie,de,Ne){for(var Me=0,Re=0;;){var st=ie.indexOf(" ",Me);st==-1&&(st=ie.length);var bt=st-Me;if(st==ie.length||Re+bt>=de)return Me+Math.min(bt,de-Re);if(Re+=st-Me,Re+=Ne-Re%Ne,Me=st+1,Re>=de)return Me}}var Tt=[""];function zt(ie){for(;Tt.length<=ie;)Tt.push(St(Tt)+" ");return Tt[ie]}function St(ie){return ie[ie.length-1]}function wt(ie,de){for(var Ne=[],Me=0;Me<ie.length;Me++)Ne[Me]=de(ie[Me],Me);return Ne}function at(ie,de,Ne){for(var Me=0,Re=Ne(de);Me<ie.length&&Ne(ie[Me])<=Re;)Me++;ie.splice(Me,0,de)}function Ye(){}function Pe(ie,de){var Ne;return Object.create?Ne=Object.create(ie):(Ye.prototype=ie,Ne=new Ye),de&&vt(de,Ne),Ne}var Te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ve(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Te.test(ie))}function Ze(ie,de){return de?de.source.indexOf("\\w")>-1&&Ve(ie)?!0:de.test(ie):Ve(ie)}function Ee(ie){for(var de in ie)if(ie.hasOwnProperty(de)&&ie[de])return!1;return!0}var He=/[\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 We(ie){return ie.charCodeAt(0)>=768&&He.test(ie)}function Ke(ie,de,Ne){for(;(Ne<0?de>0:de<ie.length)&&We(ie.charAt(de));)de+=Ne;return de}function Je(ie,de,Ne){for(var Me=de>Ne?-1:1;;){if(de==Ne)return de;var Re=(de+Ne)/2,st=Me<0?Math.ceil(Re):Math.floor(Re);if(st==de)return ie(st)?de:Ne;ie(st)?Ne=st:de=st+Me}}function dt(ie,de,Ne,Me){if(!ie)return Me(de,Ne,"ltr",0);for(var Re=!1,st=0;st<ie.length;++st){var bt=ie[st];(bt.from<Ne&&bt.to>de||de==Ne&&bt.to==de)&&(Me(Math.max(bt.from,de),Math.min(bt.to,Ne),bt.level==1?"rtl":"ltr",st),Re=!0)}Re||Me(de,Ne,"ltr")}var Ct=null;function ht(ie,de,Ne){var Me;Ct=null;for(var Re=0;Re<ie.length;++Re){var st=ie[Re];if(st.from<de&&st.to>de)return Re;st.to==de&&(st.from!=st.to&&Ne=="before"?Me=Re:Ct=Re),st.from==de&&(st.from!=st.to&&Ne!="before"?Me=Re:Ct=Re)}return Me!=null?Me:Ct}var Lt=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",de="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Ne(Wt){return Wt<=247?ie.charAt(Wt):1424<=Wt&&Wt<=1524?"R":1536<=Wt&&Wt<=1785?de.charAt(Wt-1536):1774<=Wt&&Wt<=2220?"r":8192<=Wt&&Wt<=8203?"w":Wt==8204?"b":"L"}var Me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Re=/[stwN]/,st=/[LRr]/,bt=/[Lb1n]/,jt=/[1n]/;function Ot(Wt,Cn,Yt){this.level=Wt,this.from=Cn,this.to=Yt}return function(Wt,Cn){var Yt=Cn=="ltr"?"L":"R";if(Wt.length==0||Cn=="ltr"&&!Me.test(Wt))return!1;for(var Hn=Wt.length,Dn=[],gr=0;gr<Hn;++gr)Dn.push(Ne(Wt.charCodeAt(gr)));for(var Er=0,_r=Yt;Er<Hn;++Er){var si=Dn[Er];si=="m"?Dn[Er]=_r:_r=si}for(var ki=0,Si=Yt;ki<Hn;++ki){var _i=Dn[ki];_i=="1"&&Si=="r"?Dn[ki]="n":st.test(_i)&&(Si=_i,_i=="r"&&(Dn[ki]="R"))}for(var mo=1,mi=Dn[0];mo<Hn-1;++mo){var ko=Dn[mo];ko=="+"&&mi=="1"&&Dn[mo+1]=="1"?Dn[mo]="1":ko==","&&mi==Dn[mo+1]&&(mi=="1"||mi=="n")&&(Dn[mo]=mi),mi=ko}for(var Ya=0;Ya<Hn;++Ya){var Ds=Dn[Ya];if(Ds==",")Dn[Ya]="N";else if(Ds=="%"){var rs=void 0;for(rs=Ya+1;rs<Hn&&Dn[rs]=="%";++rs);for(var Kl=Ya&&Dn[Ya-1]=="!"||rs<Hn&&Dn[rs]=="1"?"1":"N",vl=Ya;vl<rs;++vl)Dn[vl]=Kl;Ya=rs-1}}for(var ks=0,iu=Yt;ks<Hn;++ks){var al=Dn[ks];iu=="L"&&al=="1"?Dn[ks]="L":st.test(al)&&(iu=al)}for(var Ns=0;Ns<Hn;++Ns)if(Re.test(Dn[Ns])){var oa=void 0;for(oa=Ns+1;oa<Hn&&Re.test(Dn[oa]);++oa);for(var cs=(Ns?Dn[Ns-1]:Yt)=="L",Gs=(oa<Hn?Dn[oa]:Yt)=="L",sl=cs==Gs?cs?"L":"R":Yt,Vu=Ns;Vu<oa;++Vu)Dn[Vu]=sl;Ns=oa-1}for(var is=[],Lu,ys=0;ys<Hn;)if(bt.test(Dn[ys])){var xf=ys;for(++ys;ys<Hn&&bt.test(Dn[ys]);++ys);is.push(new Ot(0,xf,ys))}else{var mu=ys,ou=is.length,Vl=Cn=="rtl"?1:0;for(++ys;ys<Hn&&Dn[ys]!="L";++ys);for(var Aa=mu;Aa<ys;)if(jt.test(Dn[Aa])){mu<Aa&&(is.splice(ou,0,new Ot(1,mu,Aa)),ou+=Vl);var Ws=Aa;for(++Aa;Aa<ys&&jt.test(Dn[Aa]);++Aa);is.splice(ou,0,new Ot(2,Ws,Aa)),ou+=Vl,mu=Aa}else++Aa;mu<ys&&is.splice(ou,0,new Ot(1,mu,ys))}return Cn=="ltr"&&(is[0].level==1&&(Lu=Wt.match(/^\s+/))&&(is[0].from=Lu[0].length,is.unshift(new Ot(0,0,Lu[0].length))),St(is).level==1&&(Lu=Wt.match(/\s+$/))&&(St(is).to-=Lu[0].length,is.push(new Ot(0,Hn-Lu[0].length,Hn)))),Cn=="rtl"?is.reverse():is}}();function en(ie,de){var Ne=ie.order;return Ne==null&&(Ne=ie.order=Lt(ie.text,de)),Ne}var Vt=[],Kt=function(ie,de,Ne){if(ie.addEventListener)ie.addEventListener(de,Ne,!1);else if(ie.attachEvent)ie.attachEvent("on"+de,Ne);else{var Me=ie._handlers||(ie._handlers={});Me[de]=(Me[de]||Vt).concat(Ne)}};function Ut(ie,de){return ie._handlers&&ie._handlers[de]||Vt}function rn(ie,de,Ne){if(ie.removeEventListener)ie.removeEventListener(de,Ne,!1);else if(ie.detachEvent)ie.detachEvent("on"+de,Ne);else{var Me=ie._handlers,Re=Me&&Me[de];if(Re){var st=pt(Re,Ne);st>-1&&(Me[de]=Re.slice(0,st).concat(Re.slice(st+1)))}}}function Ft(ie,de){var Ne=Ut(ie,de);if(Ne.length)for(var Me=Array.prototype.slice.call(arguments,2),Re=0;Re<Ne.length;++Re)Ne[Re].apply(null,Me)}function Xt(ie,de,Ne){return typeof de=="string"&&(de={type:de,preventDefault:function(){this.defaultPrevented=!0}}),Ft(ie,Ne||de.type,ie,de),tr(de)||de.codemirrorIgnore}function tn(ie){var de=ie._handlers&&ie._handlers.cursorActivity;if(de)for(var Ne=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),Me=0;Me<de.length;++Me)pt(Ne,de[Me])==-1&&Ne.push(de[Me])}function dn(ie,de){return Ut(ie,de).length>0}function En(ie){ie.prototype.on=function(de,Ne){Kt(this,de,Ne)},ie.prototype.off=function(de,Ne){rn(this,de,Ne)}}function An(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function ar(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function tr(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Tr(ie){An(ie),ar(ie)}function Vn(ie){return ie.target||ie.srcElement}function Or(ie){var de=ie.which;return de==null&&(ie.button&1?de=1:ie.button&2?de=3:ie.button&4&&(de=2)),ae&&ie.ctrlKey&&de==1&&(de=3),de}var Dr=function(){if(De&&me<9)return!1;var ie=Ae("div");return"draggable"in ie||"dragDrop"in ie}(),Jr;function ni(ie){if(Jr==null){var de=Ae("span","\u200B");ke(ie,Ae("span",[de,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Jr=de.offsetWidth<=1&&de.offsetHeight>2&&!(De&&me<8))}var Ne=Jr?Ae("span","\u200B"):Ae("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Ne.setAttribute("cm-text",""),Ne}var Nr;function di(ie){if(Nr!=null)return Nr;var de=ke(ie,document.createTextNode("A\u062EA")),Ne=_e(de,0,1).getBoundingClientRect(),Me=_e(de,1,2).getBoundingClientRect();return je(ie),!Ne||Ne.left==Ne.right?!1:Nr=Me.right-Ne.right<3}var Ir=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var de=0,Ne=[],Me=ie.length;de<=Me;){var Re=ie.indexOf(`
|
|
|
`,de);Re==-1&&(Re=ie.length);var st=ie.slice(de,ie.charAt(Re-1)=="\r"?Re-1:Re),bt=st.indexOf("\r");bt!=-1?(Ne.push(st.slice(0,bt)),de+=bt+1):(Ne.push(st),de=Re+1)}return Ne}:function(ie){return ie.split(/\r\n?|\n/)},ot=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(de){return!1}}:function(ie){var de;try{de=ie.ownerDocument.selection.createRange()}catch(Ne){}return!de||de.parentElement()!=ie?!1:de.compareEndPoints("StartToEnd",de)!=0},Ci=function(){var ie=Ae("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),xi=null;function pr(ie){if(xi!=null)return xi;var de=ke(ie,Ae("span","x")),Ne=de.getBoundingClientRect(),Me=_e(de,0,1).getBoundingClientRect();return xi=Math.abs(Ne.left-Me.left)>1}var Pr={},Ar={};function Li(ie,de){arguments.length>2&&(de.dependencies=Array.prototype.slice.call(arguments,2)),Pr[ie]=de}function nr(ie,de){Ar[ie]=de}function or(ie){if(typeof ie=="string"&&Ar.hasOwnProperty(ie))ie=Ar[ie];else if(ie&&typeof ie.name=="string"&&Ar.hasOwnProperty(ie.name)){var de=Ar[ie.name];typeof de=="string"&&(de={name:de}),ie=Pe(de,ie),ie.name=de.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return or("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return or("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function qt(ie,de){de=or(de);var Ne=Pr[de.name];if(!Ne)return qt(ie,"text/plain");var Me=Ne(ie,de);if(Jt.hasOwnProperty(de.name)){var Re=Jt[de.name];for(var st in Re)Re.hasOwnProperty(st)&&(Me.hasOwnProperty(st)&&(Me["_"+st]=Me[st]),Me[st]=Re[st])}if(Me.name=de.name,de.helperType&&(Me.helperType=de.helperType),de.modeProps)for(var bt in de.modeProps)Me[bt]=de.modeProps[bt];return Me}var Jt={};function Et(ie,de){var Ne=Jt.hasOwnProperty(ie)?Jt[ie]:Jt[ie]={};vt(de,Ne)}function ln(ie,de){if(de===!0)return de;if(ie.copyState)return ie.copyState(de);var Ne={};for(var Me in de){var Re=de[Me];Re instanceof Array&&(Re=Re.concat([])),Ne[Me]=Re}return Ne}function Pn(ie,de){for(var Ne;ie.innerMode&&(Ne=ie.innerMode(de),!(!Ne||Ne.mode==ie));)de=Ne.state,ie=Ne.mode;return Ne||{mode:ie,state:de}}function $t(ie,de,Ne){return ie.startState?ie.startState(de,Ne):!0}var It=function(ie,de,Ne){this.pos=this.start=0,this.string=ie,this.tabSize=de||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Ne};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.prototype.eat=function(ie){var de=this.string.charAt(this.pos),Ne;if(typeof ie=="string"?Ne=de==ie:Ne=de&&(ie.test?ie.test(de):ie(de)),Ne)return++this.pos,de},It.prototype.eatWhile=function(ie){for(var de=this.pos;this.eat(ie););return this.pos>de},It.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(ie){var de=this.string.indexOf(ie,this.pos);if(de>-1)return this.pos=de,!0},It.prototype.backUp=function(ie){this.pos-=ie},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=nt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?nt(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return nt(this.string,null,this.tabSize)-(this.lineStart?nt(this.string,this.lineStart,this.tabSize):0)},It.prototype.match=function(ie,de,Ne){if(typeof ie=="string"){var Me=function(bt){return Ne?bt.toLowerCase():bt},Re=this.string.substr(this.pos,ie.length);if(Me(Re)==Me(ie))return de!==!1&&(this.pos+=ie.length),!0}else{var st=this.string.slice(this.pos).match(ie);return st&&st.index>0?null:(st&&de!==!1&&(this.pos+=st[0].length),st)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(ie,de){this.lineStart+=ie;try{return de()}finally{this.lineStart-=ie}},It.prototype.lookAhead=function(ie){var de=this.lineOracle;return de&&de.lookAhead(ie)},It.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function fn(ie,de){if(de-=ie.first,de<0||de>=ie.size)throw new Error("There is no line "+(de+ie.first)+" in the document.");for(var Ne=ie;!Ne.lines;)for(var Me=0;;++Me){var Re=Ne.children[Me],st=Re.chunkSize();if(de<st){Ne=Re;break}de-=st}return Ne.lines[de]}function un(ie,de,Ne){var Me=[],Re=de.line;return ie.iter(de.line,Ne.line+1,function(st){var bt=st.text;Re==Ne.line&&(bt=bt.slice(0,Ne.ch)),Re==de.line&&(bt=bt.slice(de.ch)),Me.push(bt),++Re}),Me}function Gn(ie,de,Ne){var Me=[];return ie.iter(de,Ne,function(Re){Me.push(Re.text)}),Me}function Xn(ie,de){var Ne=de-ie.height;if(Ne)for(var Me=ie;Me;Me=Me.parent)Me.height+=Ne}function Ht(ie){if(ie.parent==null)return null;for(var de=ie.parent,Ne=pt(de.lines,ie),Me=de.parent;Me;de=Me,Me=Me.parent)for(var Re=0;Me.children[Re]!=de;++Re)Ne+=Me.children[Re].chunkSize();return Ne+de.first}function kn(ie,de){var Ne=ie.first;e:do{for(var Me=0;Me<ie.children.length;++Me){var Re=ie.children[Me],st=Re.height;if(de<st){ie=Re;continue e}de-=st,Ne+=Re.chunkSize()}return Ne}while(!ie.lines);for(var bt=0;bt<ie.lines.length;++bt){var jt=ie.lines[bt],Ot=jt.height;if(de<Ot)break;de-=Ot}return Ne+bt}function Wn(ie,de){return de>=ie.first&&de<ie.first+ie.size}function lr(ie,de){return String(ie.lineNumberFormatter(de+ie.firstLineNumber))}function on(ie,de,Ne){if(Ne===void 0&&(Ne=null),!(this instanceof on))return new on(ie,de,Ne);this.line=ie,this.ch=de,this.sticky=Ne}function Mn(ie,de){return ie.line-de.line||ie.ch-de.ch}function an(ie,de){return ie.sticky==de.sticky&&Mn(ie,de)==0}function Sn(ie){return on(ie.line,ie.ch)}function gn(ie,de){return Mn(ie,de)<0?de:ie}function yn(ie,de){return Mn(ie,de)<0?ie:de}function On(ie,de){return Math.max(ie.first,Math.min(de,ie.first+ie.size-1))}function Nn(ie,de){if(de.line<ie.first)return on(ie.first,0);var Ne=ie.first+ie.size-1;return de.line>Ne?on(Ne,fn(ie,Ne).text.length):Fn(de,fn(ie,de.line).text.length)}function Fn(ie,de){var Ne=ie.ch;return Ne==null||Ne>de?on(ie.line,de):Ne<0?on(ie.line,0):ie}function zn(ie,de){for(var Ne=[],Me=0;Me<de.length;Me++)Ne[Me]=Nn(ie,de[Me]);return Ne}var xr=function(ie,de){this.state=ie,this.lookAhead=de},mn=function(ie,de,Ne,Me){this.state=de,this.doc=ie,this.line=Ne,this.maxLookAhead=Me||0,this.baseTokens=null,this.baseTokenPos=1};mn.prototype.lookAhead=function(ie){var de=this.doc.getLine(this.line+ie);return de!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),de},mn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var de=this.baseTokens[this.baseTokenPos+1];return{type:de&&de.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},mn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mn.fromSaved=function(ie,de,Ne){return de instanceof xr?new mn(ie,ln(ie.mode,de.state),Ne,de.lookAhead):new mn(ie,ln(ie.mode,de),Ne)},mn.prototype.save=function(ie){var de=ie!==!1?ln(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new xr(de,this.maxLookAhead):de};function Fr(ie,de,Ne,Me){var Re=[ie.state.modeGen],st={};ri(ie,de.text,ie.doc.mode,Ne,function(Wt,Cn){return Re.push(Wt,Cn)},st,Me);for(var bt=Ne.state,jt=function(Wt){Ne.baseTokens=Re;var Cn=ie.state.overlays[Wt],Yt=1,Hn=0;Ne.state=!0,ri(ie,de.text,Cn.mode,Ne,function(Dn,gr){for(var Er=Yt;Hn<Dn;){var _r=Re[Yt];_r>Dn&&Re.splice(Yt,1,Dn,Re[Yt+1],_r),Yt+=2,Hn=Math.min(Dn,_r)}if(gr)if(Cn.opaque)Re.splice(Er,Yt-Er,Dn,"overlay "+gr),Yt=Er+2;else for(;Er<Yt;Er+=2){var si=Re[Er+1];Re[Er+1]=(si?si+" ":"")+"overlay "+gr}},st),Ne.state=bt,Ne.baseTokens=null,Ne.baseTokenPos=1},Ot=0;Ot<ie.state.overlays.length;++Ot)jt(Ot);return{styles:Re,classes:st.bgClass||st.textClass?st:null}}function Yr(ie,de,Ne){if(!de.styles||de.styles[0]!=ie.state.modeGen){var Me=Br(ie,Ht(de)),Re=de.text.length>ie.options.maxHighlightLength&&ln(ie.doc.mode,Me.state),st=Fr(ie,de,Me);Re&&(Me.state=Re),de.stateAfter=Me.save(!Re),de.styles=st.styles,st.classes?de.styleClasses=st.classes:de.styleClasses&&(de.styleClasses=null),Ne===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return de.styles}function Br(ie,de,Ne){var Me=ie.doc,Re=ie.display;if(!Me.mode.startState)return new mn(Me,!0,de);var st=Rr(ie,de,Ne),bt=st>Me.first&&fn(Me,st-1).stateAfter,jt=bt?mn.fromSaved(Me,bt,st):new mn(Me,$t(Me.mode),st);return Me.iter(st,de,function(Ot){bn(ie,Ot.text,jt);var Wt=jt.line;Ot.stateAfter=Wt==de-1||Wt%5==0||Wt>=Re.viewFrom&&Wt<Re.viewTo?jt.save():null,jt.nextLine()}),Ne&&(Me.modeFrontier=jt.line),jt}function bn(ie,de,Ne,Me){var Re=ie.doc.mode,st=new It(de,ie.options.tabSize,Ne);for(st.start=st.pos=Me||0,de==""&&Jn(Re,Ne.state);!st.eol();)sr(Re,st,Ne.state),st.start=st.pos}function Jn(ie,de){if(ie.blankLine)return ie.blankLine(de);if(ie.innerMode){var Ne=Pn(ie,de);if(Ne.mode.blankLine)return Ne.mode.blankLine(Ne.state)}}function sr(ie,de,Ne,Me){for(var Re=0;Re<10;Re++){Me&&(Me[0]=Pn(ie,Ne).mode);var st=ie.token(de,Ne);if(de.pos>de.start)return st}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Sr=function(ie,de,Ne){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=de||null,this.state=Ne};function mr(ie,de,Ne,Me){var Re=ie.doc,st=Re.mode,bt;de=Nn(Re,de);var jt=fn(Re,de.line),Ot=Br(ie,de.line,Ne),Wt=new It(jt.text,ie.options.tabSize,Ot),Cn;for(Me&&(Cn=[]);(Me||Wt.pos<de.ch)&&!Wt.eol();)Wt.start=Wt.pos,bt=sr(st,Wt,Ot.state),Me&&Cn.push(new Sr(Wt,bt,ln(Re.mode,Ot.state)));return Me?Cn:new Sr(Wt,bt,Ot.state)}function $r(ie,de){if(ie)for(;;){var Ne=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Ne)break;ie=ie.slice(0,Ne.index)+ie.slice(Ne.index+Ne[0].length);var Me=Ne[1]?"bgClass":"textClass";de[Me]==null?de[Me]=Ne[2]:new RegExp("(?:^|\\s)"+Ne[2]+"(?:$|\\s)").test(de[Me])||(de[Me]+=" "+Ne[2])}return ie}function ri(ie,de,Ne,Me,Re,st,bt){var jt=Ne.flattenSpans;jt==null&&(jt=ie.options.flattenSpans);var Ot=0,Wt=null,Cn=new It(de,ie.options.tabSize,Me),Yt,Hn=ie.options.addModeClass&&[null];for(de==""&&$r(Jn(Ne,Me.state),st);!Cn.eol();){if(Cn.pos>ie.options.maxHighlightLength?(jt=!1,bt&&bn(ie,de,Me,Cn.pos),Cn.pos=de.length,Yt=null):Yt=$r(sr(Ne,Cn,Me.state,Hn),st),Hn){var Dn=Hn[0].name;Dn&&(Yt="m-"+(Yt?Dn+" "+Yt:Dn))}if(!jt||Wt!=Yt){for(;Ot<Cn.start;)Ot=Math.min(Cn.start,Ot+5e3),Re(Ot,Wt);Wt=Yt}Cn.start=Cn.pos}for(;Ot<Cn.pos;){var gr=Math.min(Cn.pos,Ot+5e3);Re(gr,Wt),Ot=gr}}function Rr(ie,de,Ne){for(var Me,Re,st=ie.doc,bt=Ne?-1:de-(ie.doc.mode.innerMode?1e3:100),jt=de;jt>bt;--jt){if(jt<=st.first)return st.first;var Ot=fn(st,jt-1),Wt=Ot.stateAfter;if(Wt&&(!Ne||jt+(Wt instanceof xr?Wt.lookAhead:0)<=st.modeFrontier))return jt;var Cn=nt(Ot.text,null,ie.options.tabSize);(Re==null||Me>Cn)&&(Re=jt-1,Me=Cn)}return Re}function br(ie,de){if(ie.modeFrontier=Math.min(ie.modeFrontier,de),!(ie.highlightFrontier<de-10)){for(var Ne=ie.first,Me=de-1;Me>Ne;Me--){var Re=fn(ie,Me).stateAfter;if(Re&&(!(Re instanceof xr)||Me+Re.lookAhead<de)){Ne=Me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,Ne)}}var ur=!1,vn=!1;function cr(){ur=!0}function xn(){vn=!0}function zr(ie,de,Ne){this.marker=ie,this.from=de,this.to=Ne}function $i(ie,de){if(ie)for(var Ne=0;Ne<ie.length;++Ne){var Me=ie[Ne];if(Me.marker==de)return Me}}function Mi(ie,de){for(var Ne,Me=0;Me<ie.length;++Me)ie[Me]!=de&&(Ne||(Ne=[])).push(ie[Me]);return Ne}function yo(ie,de){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([de]):[de],de.marker.attachLine(ie)}function no(ie,de,Ne){var Me;if(ie)for(var Re=0;Re<ie.length;++Re){var st=ie[Re],bt=st.marker,jt=st.from==null||(bt.inclusiveLeft?st.from<=de:st.from<de);if(jt||st.from==de&&bt.type=="bookmark"&&(!Ne||!st.marker.insertLeft)){var Ot=st.to==null||(bt.inclusiveRight?st.to>=de:st.to>de);(Me||(Me=[])).push(new zr(bt,st.from,Ot?null:st.to))}}return Me}function Wr(ie,de,Ne){var Me;if(ie)for(var Re=0;Re<ie.length;++Re){var st=ie[Re],bt=st.marker,jt=st.to==null||(bt.inclusiveRight?st.to>=de:st.to>de);if(jt||st.from==de&&bt.type=="bookmark"&&(!Ne||st.marker.insertLeft)){var Ot=st.from==null||(bt.inclusiveLeft?st.from<=de:st.from<de);(Me||(Me=[])).push(new zr(bt,Ot?null:st.from-de,st.to==null?null:st.to-de))}}return Me}function Hr(ie,de){if(de.full)return null;var Ne=Wn(ie,de.from.line)&&fn(ie,de.from.line).markedSpans,Me=Wn(ie,de.to.line)&&fn(ie,de.to.line).markedSpans;if(!Ne&&!Me)return null;var Re=de.from.ch,st=de.to.ch,bt=Mn(de.from,de.to)==0,jt=no(Ne,Re,bt),Ot=Wr(Me,st,bt),Wt=de.text.length==1,Cn=St(de.text).length+(Wt?Re:0);if(jt)for(var Yt=0;Yt<jt.length;++Yt){var Hn=jt[Yt];if(Hn.to==null){var Dn=$i(Ot,Hn.marker);Dn?Wt&&(Hn.to=Dn.to==null?null:Dn.to+Cn):Hn.to=Re}}if(Ot)for(var gr=0;gr<Ot.length;++gr){var Er=Ot[gr];if(Er.to!=null&&(Er.to+=Cn),Er.from==null){var _r=$i(jt,Er.marker);_r||(Er.from=Cn,Wt&&(jt||(jt=[])).push(Er))}else Er.from+=Cn,Wt&&(jt||(jt=[])).push(Er)}jt&&(jt=wi(jt)),Ot&&Ot!=jt&&(Ot=wi(Ot));var si=[jt];if(!Wt){var ki=de.text.length-2,Si;if(ki>0&&jt)for(var _i=0;_i<jt.length;++_i)jt[_i].to==null&&(Si||(Si=[])).push(new zr(jt[_i].marker,null,null));for(var mo=0;mo<ki;++mo)si.push(Si);si.push(Ot)}return si}function wi(ie){for(var de=0;de<ie.length;++de){var Ne=ie[de];Ne.from!=null&&Ne.from==Ne.to&&Ne.marker.clearWhenEmpty!==!1&&ie.splice(de--,1)}return ie.length?ie:null}function vi(ie,de,Ne){var Me=null;if(ie.iter(de.line,Ne.line+1,function(Dn){if(Dn.markedSpans)for(var gr=0;gr<Dn.markedSpans.length;++gr){var Er=Dn.markedSpans[gr].marker;Er.readOnly&&(!Me||pt(Me,Er)==-1)&&(Me||(Me=[])).push(Er)}}),!Me)return null;for(var Re=[{from:de,to:Ne}],st=0;st<Me.length;++st)for(var bt=Me[st],jt=bt.find(0),Ot=0;Ot<Re.length;++Ot){var Wt=Re[Ot];if(!(Mn(Wt.to,jt.from)<0||Mn(Wt.from,jt.to)>0)){var Cn=[Ot,1],Yt=Mn(Wt.from,jt.from),Hn=Mn(Wt.to,jt.to);(Yt<0||!bt.inclusiveLeft&&!Yt)&&Cn.push({from:Wt.from,to:jt.from}),(Hn>0||!bt.inclusiveRight&&!Hn)&&Cn.push({from:jt.to,to:Wt.to}),Re.splice.apply(Re,Cn),Ot+=Cn.length-3}}return Re}function fr(ie){var de=ie.markedSpans;if(de){for(var Ne=0;Ne<de.length;++Ne)de[Ne].marker.detachLine(ie);ie.markedSpans=null}}function kt(ie,de){if(de){for(var Ne=0;Ne<de.length;++Ne)de[Ne].marker.attachLine(ie);ie.markedSpans=de}}function Fi(ie){return ie.inclusiveLeft?-1:0}function Ki(ie){return ie.inclusiveRight?1:0}function gi(ie,de){var Ne=ie.lines.length-de.lines.length;if(Ne!=0)return Ne;var Me=ie.find(),Re=de.find(),st=Mn(Me.from,Re.from)||Fi(ie)-Fi(de);if(st)return-st;var bt=Mn(Me.to,Re.to)||Ki(ie)-Ki(de);return bt||de.id-ie.id}function oo(ie,de){var Ne=vn&&ie.markedSpans,Me;if(Ne)for(var Re=void 0,st=0;st<Ne.length;++st)Re=Ne[st],Re.marker.collapsed&&(de?Re.from:Re.to)==null&&(!Me||gi(Me,Re.marker)<0)&&(Me=Re.marker);return Me}function So(ie){return oo(ie,!0)}function Qr(ie){return oo(ie,!1)}function ii(ie,de){var Ne=vn&&ie.markedSpans,Me;if(Ne)for(var Re=0;Re<Ne.length;++Re){var st=Ne[Re];st.marker.collapsed&&(st.from==null||st.from<de)&&(st.to==null||st.to>de)&&(!Me||gi(Me,st.marker)<0)&&(Me=st.marker)}return Me}function Oi(ie,de,Ne,Me,Re){var st=fn(ie,de),bt=vn&&st.markedSpans;if(bt)for(var jt=0;jt<bt.length;++jt){var Ot=bt[jt];if(Ot.marker.collapsed){var Wt=Ot.marker.find(0),Cn=Mn(Wt.from,Ne)||Fi(Ot.marker)-Fi(Re),Yt=Mn(Wt.to,Me)||Ki(Ot.marker)-Ki(Re);if(!(Cn>=0&&Yt<=0||Cn<=0&&Yt>=0)&&(Cn<=0&&(Ot.marker.inclusiveRight&&Re.inclusiveLeft?Mn(Wt.to,Ne)>=0:Mn(Wt.to,Ne)>0)||Cn>=0&&(Ot.marker.inclusiveRight&&Re.inclusiveLeft?Mn(Wt.from,Me)<=0:Mn(Wt.from,Me)<0)))return!0}}}function Pi(ie){for(var de;de=So(ie);)ie=de.find(-1,!0).line;return ie}function co(ie){for(var de;de=Qr(ie);)ie=de.find(1,!0).line;return ie}function To(ie){for(var de,Ne;de=Qr(ie);)ie=de.find(1,!0).line,(Ne||(Ne=[])).push(ie);return Ne}function Kr(ie,de){var Ne=fn(ie,de),Me=Pi(Ne);return Ne==Me?de:Ht(Me)}function Vr(ie,de){if(de>ie.lastLine())return de;var Ne=fn(ie,de),Me;if(!Yn(ie,Ne))return de;for(;Me=Qr(Ne);)Ne=Me.find(1,!0).line;return Ht(Ne)+1}function Yn(ie,de){var Ne=vn&&de.markedSpans;if(Ne){for(var Me=void 0,Re=0;Re<Ne.length;++Re)if(Me=Ne[Re],!!Me.marker.collapsed){if(Me.from==null)return!0;if(!Me.marker.widgetNode&&Me.from==0&&Me.marker.inclusiveLeft&&ci(ie,de,Me))return!0}}}function ci(ie,de,Ne){if(Ne.to==null){var Me=Ne.marker.find(1,!0);return ci(ie,Me.line,$i(Me.line.markedSpans,Ne.marker))}if(Ne.marker.inclusiveRight&&Ne.to==de.text.length)return!0;for(var Re=void 0,st=0;st<de.markedSpans.length;++st)if(Re=de.markedSpans[st],Re.marker.collapsed&&!Re.marker.widgetNode&&Re.from==Ne.to&&(Re.to==null||Re.to!=Ne.from)&&(Re.marker.inclusiveLeft||Ne.marker.inclusiveRight)&&ci(ie,de,Re))return!0}function ro(ie){ie=Pi(ie);for(var de=0,Ne=ie.parent,Me=0;Me<Ne.lines.length;++Me){var Re=Ne.lines[Me];if(Re==ie)break;de+=Re.height}for(var st=Ne.parent;st;Ne=st,st=Ne.parent)for(var bt=0;bt<st.children.length;++bt){var jt=st.children[bt];if(jt==Ne)break;de+=jt.height}return de}function Wo(ie){if(ie.height==0)return 0;for(var de=ie.text.length,Ne,Me=ie;Ne=So(Me);){var Re=Ne.find(0,!0);Me=Re.from.line,de+=Re.from.ch-Re.to.ch}for(Me=ie;Ne=Qr(Me);){var st=Ne.find(0,!0);de-=Me.text.length-st.from.ch,Me=st.to.line,de+=Me.text.length-st.to.ch}return de}function _o(ie){var de=ie.display,Ne=ie.doc;de.maxLine=fn(Ne,Ne.first),de.maxLineLength=Wo(de.maxLine),de.maxLineChanged=!0,Ne.iter(function(Me){var Re=Wo(Me);Re>de.maxLineLength&&(de.maxLineLength=Re,de.maxLine=Me)})}var Xo=function(ie,de,Ne){this.text=ie,kt(this,de),this.height=Ne?Ne(this):1};Xo.prototype.lineNo=function(){return Ht(this)},En(Xo);function Pa(ie,de,Ne,Me){ie.text=de,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),fr(ie),kt(ie,Ne);var Re=Me?Me(ie):1;Re!=ie.height&&Xn(ie,Re)}function na(ie){ie.parent=null,fr(ie)}var os={},Da={};function fs(ie,de){if(!ie||/^\s*$/.test(ie))return null;var Ne=de.addModeClass?Da:os;return Ne[ie]||(Ne[ie]=ie.replace(/\S+/g,"cm-$&"))}function Ln(ie,de){var Ne=Be("span",null,null,ce?"padding-right: .1px":null),Me={pre:Be("pre",[Ne],"CodeMirror-line"),content:Ne,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};de.measure={};for(var Re=0;Re<=(de.rest?de.rest.length:0);Re++){var st=Re?de.rest[Re-1]:de.line,bt=void 0;Me.pos=0,Me.addToken=rc,di(ie.display.measure)&&(bt=en(st,ie.doc.direction))&&(Me.addToken=xo(Me.addToken,bt)),Me.map=[];var jt=de!=ie.display.externalMeasured&&Ht(st);ga(st,Me,Yr(ie,st,jt)),st.styleClasses&&(st.styleClasses.bgClass&&(Me.bgClass=Qe(st.styleClasses.bgClass,Me.bgClass||"")),st.styleClasses.textClass&&(Me.textClass=Qe(st.styleClasses.textClass,Me.textClass||""))),Me.map.length==0&&Me.map.push(0,0,Me.content.appendChild(ni(ie.display.measure))),Re==0?(de.measure.map=Me.map,de.measure.cache={}):((de.measure.maps||(de.measure.maps=[])).push(Me.map),(de.measure.caches||(de.measure.caches=[])).push({}))}if(ce){var Ot=Me.content.lastChild;(/\bcm-tab\b/.test(Ot.className)||Ot.querySelector&&Ot.querySelector(".cm-tab"))&&(Me.content.className="cm-tab-wrap-hack")}return Ft(ie,"renderLine",ie,de.line,Me.pre),Me.pre.className&&(Me.textClass=Qe(Me.pre.className,Me.textClass||"")),Me}function Fa(ie){var de=Ae("span","\u2022","cm-invalidchar");return de.title="\\u"+ie.charCodeAt(0).toString(16),de.setAttribute("aria-label",de.title),de}function rc(ie,de,Ne,Me,Re,st,bt){if(de){var jt=ie.splitSpaces?el(de,ie.trailingSpace):de,Ot=ie.cm.state.specialChars,Wt=!1,Cn;if(!Ot.test(de))ie.col+=de.length,Cn=document.createTextNode(jt),ie.map.push(ie.pos,ie.pos+de.length,Cn),De&&me<9&&(Wt=!0),ie.pos+=de.length;else{Cn=document.createDocumentFragment();for(var Yt=0;;){Ot.lastIndex=Yt;var Hn=Ot.exec(de),Dn=Hn?Hn.index-Yt:de.length-Yt;if(Dn){var gr=document.createTextNode(jt.slice(Yt,Yt+Dn));De&&me<9?Cn.appendChild(Ae("span",[gr])):Cn.appendChild(gr),ie.map.push(ie.pos,ie.pos+Dn,gr),ie.col+=Dn,ie.pos+=Dn}if(!Hn)break;Yt+=Dn+1;var Er=void 0;if(Hn[0]==" "){var _r=ie.cm.options.tabSize,si=_r-ie.col%_r;Er=Cn.appendChild(Ae("span",zt(si),"cm-tab")),Er.setAttribute("role","presentation"),Er.setAttribute("cm-text"," "),ie.col+=si}else Hn[0]=="\r"||Hn[0]==`
|
|
|
`?(Er=Cn.appendChild(Ae("span",Hn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Er.setAttribute("cm-text",Hn[0]),ie.col+=1):(Er=ie.cm.options.specialCharPlaceholder(Hn[0]),Er.setAttribute("cm-text",Hn[0]),De&&me<9?Cn.appendChild(Ae("span",[Er])):Cn.appendChild(Er),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Er),ie.pos++}}if(ie.trailingSpace=jt.charCodeAt(de.length-1)==32,Ne||Me||Re||Wt||st||bt){var ki=Ne||"";Me&&(ki+=Me),Re&&(ki+=Re);var Si=Ae("span",[Cn],ki,st);if(bt)for(var _i in bt)bt.hasOwnProperty(_i)&&_i!="style"&&_i!="class"&&Si.setAttribute(_i,bt[_i]);return ie.content.appendChild(Si)}ie.content.appendChild(Cn)}}function el(ie,de){if(ie.length>1&&!/ /.test(ie))return ie;for(var Ne=de,Me="",Re=0;Re<ie.length;Re++){var st=ie.charAt(Re);st==" "&&Ne&&(Re==ie.length-1||ie.charCodeAt(Re+1)==32)&&(st="\xA0"),Me+=st,Ne=st==" "}return Me}function xo(ie,de){return function(Ne,Me,Re,st,bt,jt,Ot){Re=Re?Re+" cm-force-border":"cm-force-border";for(var Wt=Ne.pos,Cn=Wt+Me.length;;){for(var Yt=void 0,Hn=0;Hn<de.length&&(Yt=de[Hn],!(Yt.to>Wt&&Yt.from<=Wt));Hn++);if(Yt.to>=Cn)return ie(Ne,Me,Re,st,bt,jt,Ot);ie(Ne,Me.slice(0,Yt.to-Wt),Re,st,null,jt,Ot),st=null,Me=Me.slice(Yt.to-Wt),Wt=Yt.to}}}function eo(ie,de,Ne,Me){var Re=!Me&&Ne.widgetNode;Re&&ie.map.push(ie.pos,ie.pos+de,Re),!Me&&ie.cm.display.input.needsContentAttribute&&(Re||(Re=ie.content.appendChild(document.createElement("span"))),Re.setAttribute("cm-marker",Ne.id)),Re&&(ie.cm.display.input.setUneditable(Re),ie.content.appendChild(Re)),ie.pos+=de,ie.trailingSpace=!1}function ga(ie,de,Ne){var Me=ie.markedSpans,Re=ie.text,st=0;if(!Me){for(var bt=1;bt<Ne.length;bt+=2)de.addToken(de,Re.slice(st,st=Ne[bt]),fs(Ne[bt+1],de.cm.options));return}for(var jt=Re.length,Ot=0,Wt=1,Cn="",Yt,Hn,Dn=0,gr,Er,_r,si,ki;;){if(Dn==Ot){gr=Er=_r=Hn="",ki=null,si=null,Dn=1/0;for(var Si=[],_i=void 0,mo=0;mo<Me.length;++mo){var mi=Me[mo],ko=mi.marker;if(ko.type=="bookmark"&&mi.from==Ot&&ko.widgetNode)Si.push(ko);else if(mi.from<=Ot&&(mi.to==null||mi.to>Ot||ko.collapsed&&mi.to==Ot&&mi.from==Ot)){if(mi.to!=null&&mi.to!=Ot&&Dn>mi.to&&(Dn=mi.to,Er=""),ko.className&&(gr+=" "+ko.className),ko.css&&(Hn=(Hn?Hn+";":"")+ko.css),ko.startStyle&&mi.from==Ot&&(_r+=" "+ko.startStyle),ko.endStyle&&mi.to==Dn&&(_i||(_i=[])).push(ko.endStyle,mi.to),ko.title&&((ki||(ki={})).title=ko.title),ko.attributes)for(var Ya in ko.attributes)(ki||(ki={}))[Ya]=ko.attributes[Ya];ko.collapsed&&(!si||gi(si.marker,ko)<0)&&(si=mi)}else mi.from>Ot&&Dn>mi.from&&(Dn=mi.from)}if(_i)for(var Ds=0;Ds<_i.length;Ds+=2)_i[Ds+1]==Dn&&(Er+=" "+_i[Ds]);if(!si||si.from==Ot)for(var rs=0;rs<Si.length;++rs)eo(de,0,Si[rs]);if(si&&(si.from||0)==Ot){if(eo(de,(si.to==null?jt+1:si.to)-Ot,si.marker,si.from==null),si.to==null)return;si.to==Ot&&(si=!1)}}if(Ot>=jt)break;for(var Kl=Math.min(jt,Dn);;){if(Cn){var vl=Ot+Cn.length;if(!si){var ks=vl>Kl?Cn.slice(0,Kl-Ot):Cn;de.addToken(de,ks,Yt?Yt+gr:gr,_r,Ot+ks.length==Dn?Er:"",Hn,ki)}if(vl>=Kl){Cn=Cn.slice(Kl-Ot),Ot=Kl;break}Ot=vl,_r=""}Cn=Re.slice(st,st=Ne[Wt++]),Yt=fs(Ne[Wt++],de.cm.options)}}}function jo(ie,de,Ne){this.line=de,this.rest=To(de),this.size=this.rest?Ht(St(this.rest))-Ne+1:1,this.node=this.text=null,this.hidden=Yn(ie,de)}function Yi(ie,de,Ne){for(var Me=[],Re,st=de;st<Ne;st=Re){var bt=new jo(ie.doc,fn(ie.doc,st),st);Re=st+bt.size,Me.push(bt)}return Me}var No=null;function xs(ie){No?No.ops.push(ie):ie.ownsGroup=No={ops:[ie],delayedCallbacks:[]}}function bi(ie){var de=ie.delayedCallbacks,Ne=0;do{for(;Ne<de.length;Ne++)de[Ne].call(null);for(var Me=0;Me<ie.ops.length;Me++){var Re=ie.ops[Me];if(Re.cursorActivityHandlers)for(;Re.cursorActivityCalled<Re.cursorActivityHandlers.length;)Re.cursorActivityHandlers[Re.cursorActivityCalled++].call(null,Re.cm)}}while(Ne<de.length)}function so(ie,de){var Ne=ie.ownsGroup;if(Ne)try{bi(Ne)}finally{No=null,de(Ne)}}var io=null;function Lr(ie,de){var Ne=Ut(ie,de);if(Ne.length){var Me=Array.prototype.slice.call(arguments,2),Re;No?Re=No.delayedCallbacks:io?Re=io:(Re=io=[],setTimeout(Ba,0));for(var st=function(jt){Re.push(function(){return Ne[jt].apply(null,Me)})},bt=0;bt<Ne.length;++bt)st(bt)}}function Ba(){var ie=io;io=null;for(var de=0;de<ie.length;++de)ie[de]()}function Ra(ie,de,Ne,Me){for(var Re=0;Re<de.changes.length;Re++){var st=de.changes[Re];st=="text"?wr(ie,de):st=="gutter"?$a(ie,de,Ne,Me):st=="class"?aa(ie,de):st=="widget"&&Pl(ie,de,Me)}de.changes=null}function Cs(ie){return ie.node==ie.text&&(ie.node=Ae("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),De&&me<8&&(ie.node.style.zIndex=2)),ie.node}function Il(ie,de){var Ne=de.bgClass?de.bgClass+" "+(de.line.bgClass||""):de.line.bgClass;if(Ne&&(Ne+=" CodeMirror-linebackground"),de.background)Ne?de.background.className=Ne:(de.background.parentNode.removeChild(de.background),de.background=null);else if(Ne){var Me=Cs(de);de.background=Me.insertBefore(Ae("div",null,Ne),Me.firstChild),ie.display.input.setUneditable(de.background)}}function Ql(ie,de){var Ne=ie.display.externalMeasured;return Ne&&Ne.line==de.line?(ie.display.externalMeasured=null,de.measure=Ne.measure,Ne.built):Ln(ie,de)}function wr(ie,de){var Ne=de.text.className,Me=Ql(ie,de);de.text==de.node&&(de.node=Me.pre),de.text.parentNode.replaceChild(Me.pre,de.text),de.text=Me.pre,Me.bgClass!=de.bgClass||Me.textClass!=de.textClass?(de.bgClass=Me.bgClass,de.textClass=Me.textClass,aa(ie,de)):Ne&&(de.text.className=Ne)}function aa(ie,de){Il(ie,de),de.line.wrapClass?Cs(de).className=de.line.wrapClass:de.node!=de.text&&(de.node.className="");var Ne=de.textClass?de.textClass+" "+(de.line.textClass||""):de.line.textClass;de.text.className=Ne||""}function $a(ie,de,Ne,Me){if(de.gutter&&(de.node.removeChild(de.gutter),de.gutter=null),de.gutterBackground&&(de.node.removeChild(de.gutterBackground),de.gutterBackground=null),de.line.gutterClass){var Re=Cs(de);de.gutterBackground=Ae("div",null,"CodeMirror-gutter-background "+de.line.gutterClass,"left: "+(ie.options.fixedGutter?Me.fixedPos:-Me.gutterTotalWidth)+"px; width: "+Me.gutterTotalWidth+"px"),ie.display.input.setUneditable(de.gutterBackground),Re.insertBefore(de.gutterBackground,de.text)}var st=de.line.gutterMarkers;if(ie.options.lineNumbers||st){var bt=Cs(de),jt=de.gutter=Ae("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?Me.fixedPos:-Me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(jt),bt.insertBefore(jt,de.text),de.line.gutterClass&&(jt.className+=" "+de.line.gutterClass),ie.options.lineNumbers&&(!st||!st["CodeMirror-linenumbers"])&&(de.lineNumber=jt.appendChild(Ae("div",lr(ie.options,Ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),st)for(var Ot=0;Ot<ie.display.gutterSpecs.length;++Ot){var Wt=ie.display.gutterSpecs[Ot].className,Cn=st.hasOwnProperty(Wt)&&st[Wt];Cn&&jt.appendChild(Ae("div",[Cn],"CodeMirror-gutter-elt","left: "+Me.gutterLeft[Wt]+"px; width: "+Me.gutterWidth[Wt]+"px"))}}}function Pl(ie,de,Ne){de.alignable&&(de.alignable=null);for(var Me=Ce("CodeMirror-linewidget"),Re=de.node.firstChild,st=void 0;Re;Re=st)st=Re.nextSibling,Me.test(Re.className)&&de.node.removeChild(Re);Fl(ie,de,Ne)}function Dl(ie,de,Ne,Me){var Re=Ql(ie,de);return de.text=de.node=Re.pre,Re.bgClass&&(de.bgClass=Re.bgClass),Re.textClass&&(de.textClass=Re.textClass),aa(ie,de),$a(ie,de,Ne,Me),Fl(ie,de,Me),de.node}function Fl(ie,de,Ne){if(Bi(ie,de.line,de,Ne,!0),de.rest)for(var Me=0;Me<de.rest.length;Me++)Bi(ie,de.rest[Me],de,Ne,!1)}function Bi(ie,de,Ne,Me,Re){if(de.widgets)for(var st=Cs(Ne),bt=0,jt=de.widgets;bt<jt.length;++bt){var Ot=jt[bt],Wt=Ae("div",[Ot.node],"CodeMirror-linewidget"+(Ot.className?" "+Ot.className:""));Ot.handleMouseEvents||Wt.setAttribute("cm-ignore-events","true"),mc(Ot,Wt,Ne,Me),ie.display.input.setUneditable(Wt),Re&&Ot.above?st.insertBefore(Wt,Ne.gutter||Ne.text):st.appendChild(Wt),Lr(Ot,"redraw")}}function mc(ie,de,Ne,Me){if(ie.noHScroll){(Ne.alignable||(Ne.alignable=[])).push(de);var Re=Me.wrapperWidth;de.style.left=Me.fixedPos+"px",ie.coverGutter||(Re-=Me.gutterTotalWidth,de.style.paddingLeft=Me.gutterTotalWidth+"px"),de.style.width=Re+"px"}ie.coverGutter&&(de.style.zIndex=5,de.style.position="relative",ie.noHScroll||(de.style.marginLeft=-Me.gutterTotalWidth+"px"))}function tl(ie){if(ie.height!=null)return ie.height;var de=ie.doc.cm;if(!de)return 0;if(!et(document.body,ie.node)){var Ne="position: relative;";ie.coverGutter&&(Ne+="margin-left: -"+de.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(Ne+="width: "+de.display.wrapper.clientWidth+"px;"),ke(de.display.measure,Ae("div",[ie.node],null,Ne))}return ie.height=ie.node.parentNode.offsetHeight}function nl(ie,de){for(var Ne=Vn(de);Ne!=ie.wrapper;Ne=Ne.parentNode)if(!Ne||Ne.nodeType==1&&Ne.getAttribute("cm-ignore-events")=="true"||Ne.parentNode==ie.sizer&&Ne!=ie.mover)return!0}function As(ie){return ie.lineSpace.offsetTop}function Cu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function Bu(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var de=ke(ie.measure,Ae("pre","x","CodeMirror-line-like")),Ne=window.getComputedStyle?window.getComputedStyle(de):de.currentStyle,Me={left:parseInt(Ne.paddingLeft),right:parseInt(Ne.paddingRight)};return!isNaN(Me.left)&&!isNaN(Me.right)&&(ie.cachedPaddingH=Me),Me}function _s(ie){return xt-ie.display.nativeBarWidth}function dl(ie){return ie.display.scroller.clientWidth-_s(ie)-ie.display.barWidth}function Hc(ie){return ie.display.scroller.clientHeight-_s(ie)-ie.display.barHeight}function hh(ie,de,Ne){var Me=ie.options.lineWrapping,Re=Me&&dl(ie);if(!de.measure.heights||Me&&de.measure.width!=Re){var st=de.measure.heights=[];if(Me){de.measure.width=Re;for(var bt=de.text.firstChild.getClientRects(),jt=0;jt<bt.length-1;jt++){var Ot=bt[jt],Wt=bt[jt+1];Math.abs(Ot.bottom-Wt.bottom)>2&&st.push((Ot.bottom+Wt.top)/2-Ne.top)}}st.push(Ne.bottom-Ne.top)}}function Gc(ie,de,Ne){if(ie.line==de)return{map:ie.measure.map,cache:ie.measure.cache};for(var Me=0;Me<ie.rest.length;Me++)if(ie.rest[Me]==de)return{map:ie.measure.maps[Me],cache:ie.measure.caches[Me]};for(var Re=0;Re<ie.rest.length;Re++)if(Ht(ie.rest[Re])>Ne)return{map:ie.measure.maps[Re],cache:ie.measure.caches[Re],before:!0}}function Wh(ie,de){de=Pi(de);var Ne=Ht(de),Me=ie.display.externalMeasured=new jo(ie.doc,de,Ne);Me.lineN=Ne;var Re=Me.built=Ln(ie,Me);return Me.text=Re.pre,ke(ie.display.lineMeasure,Re.pre),Me}function Wc(ie,de,Ne,Me){return Bl(ie,Ru(ie,de),Ne,Me)}function vc(ie,de){if(de>=ie.display.viewFrom&&de<ie.display.viewTo)return ie.display.view[zs(ie,de)];var Ne=ie.display.externalMeasured;if(Ne&&de>=Ne.lineN&&de<Ne.lineN+Ne.size)return Ne}function Ru(ie,de){var Ne=Ht(de),Me=vc(ie,Ne);Me&&!Me.text?Me=null:Me&&Me.changes&&(Ra(ie,Me,Ne,Cd(ie)),ie.curOp.forceUpdate=!0),Me||(Me=Wh(ie,de));var Re=Gc(Me,de,Ne);return{line:de,view:Me,rect:null,map:Re.map,cache:Re.cache,before:Re.before,hasHeights:!1}}function Bl(ie,de,Ne,Me,Re){de.before&&(Ne=-1);var st=Ne+(Me||""),bt;return de.cache.hasOwnProperty(st)?bt=de.cache[st]:(de.rect||(de.rect=de.view.text.getBoundingClientRect()),de.hasHeights||(hh(ie,de.view,de.rect),de.hasHeights=!0),bt=to(ie,de,Ne,Me),bt.bogus||(de.cache[st]=bt)),{left:bt.left,right:bt.right,top:Re?bt.rtop:bt.top,bottom:Re?bt.rbottom:bt.bottom}}var dh={left:0,right:0,top:0,bottom:0};function Uc(ie,de,Ne){for(var Me,Re,st,bt,jt,Ot,Wt=0;Wt<ie.length;Wt+=3)if(jt=ie[Wt],Ot=ie[Wt+1],de<jt?(Re=0,st=1,bt="left"):de<Ot?(Re=de-jt,st=Re+1):(Wt==ie.length-3||de==Ot&&ie[Wt+3]>de)&&(st=Ot-jt,Re=st-1,de>=Ot&&(bt="right")),Re!=null){if(Me=ie[Wt+2],jt==Ot&&Ne==(Me.insertLeft?"left":"right")&&(bt=Ne),Ne=="left"&&Re==0)for(;Wt&&ie[Wt-2]==ie[Wt-3]&&ie[Wt-1].insertLeft;)Me=ie[(Wt-=3)+2],bt="left";if(Ne=="right"&&Re==Ot-jt)for(;Wt<ie.length-3&&ie[Wt+3]==ie[Wt+4]&&!ie[Wt+5].insertLeft;)Me=ie[(Wt+=3)+2],bt="right";break}return{node:Me,start:Re,end:st,collapse:bt,coverStart:jt,coverEnd:Ot}}function yc(ie,de){var Ne=dh;if(de=="left")for(var Me=0;Me<ie.length&&(Ne=ie[Me]).left==Ne.right;Me++);else for(var Re=ie.length-1;Re>=0&&(Ne=ie[Re]).left==Ne.right;Re--);return Ne}function to(ie,de,Ne,Me){var Re=Uc(de.map,Ne,Me),st=Re.node,bt=Re.start,jt=Re.end,Ot=Re.collapse,Wt;if(st.nodeType==3){for(var Cn=0;Cn<4;Cn++){for(;bt&&We(de.line.text.charAt(Re.coverStart+bt));)--bt;for(;Re.coverStart+jt<Re.coverEnd&&We(de.line.text.charAt(Re.coverStart+jt));)++jt;if(De&&me<9&&bt==0&&jt==Re.coverEnd-Re.coverStart?Wt=st.parentNode.getBoundingClientRect():Wt=yc(_e(st,bt,jt).getClientRects(),Me),Wt.left||Wt.right||bt==0)break;jt=bt,bt=bt-1,Ot="right"}De&&me<11&&(Wt=Io(ie.display.measure,Wt))}else{bt>0&&(Ot=Me="right");var Yt;ie.options.lineWrapping&&(Yt=st.getClientRects()).length>1?Wt=Yt[Me=="right"?Yt.length-1:0]:Wt=st.getBoundingClientRect()}if(De&&me<9&&!bt&&(!Wt||!Wt.left&&!Wt.right)){var Hn=st.parentNode.getClientRects()[0];Hn?Wt={left:Hn.left,right:Hn.left+ic(ie.display),top:Hn.top,bottom:Hn.bottom}:Wt=dh}for(var Dn=Wt.top-de.rect.top,gr=Wt.bottom-de.rect.top,Er=(Dn+gr)/2,_r=de.view.measure.heights,si=0;si<_r.length-1&&!(Er<_r[si]);si++);var ki=si?_r[si-1]:0,Si=_r[si],_i={left:(Ot=="right"?Wt.right:Wt.left)-de.rect.left,right:(Ot=="left"?Wt.left:Wt.right)-de.rect.left,top:ki,bottom:Si};return!Wt.left&&!Wt.right&&(_i.bogus=!0),ie.options.singleCursorHeightPerLine||(_i.rtop=Dn,_i.rbottom=gr),_i}function Io(ie,de){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!pr(ie))return de;var Ne=screen.logicalXDPI/screen.deviceXDPI,Me=screen.logicalYDPI/screen.deviceYDPI;return{left:de.left*Ne,right:de.right*Ne,top:de.top*Me,bottom:de.bottom*Me}}function Es(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var de=0;de<ie.rest.length;de++)ie.measure.caches[de]={}}function Xa(ie){ie.display.externalMeasure=null,je(ie.display.lineMeasure);for(var de=0;de<ie.display.view.length;de++)Es(ie.display.view[de])}function _a(ie){Xa(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function ca(){return Le&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ca(){return Le&&z?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ka(ie){var de=0;if(ie.widgets)for(var Ne=0;Ne<ie.widgets.length;++Ne)ie.widgets[Ne].above&&(de+=tl(ie.widgets[Ne]));return de}function za(ie,de,Ne,Me,Re){if(!Re){var st=Ka(de);Ne.top+=st,Ne.bottom+=st}if(Me=="line")return Ne;Me||(Me="local");var bt=ro(de);if(Me=="local"?bt+=As(ie.display):bt-=ie.display.viewOffset,Me=="page"||Me=="window"){var jt=ie.display.lineSpace.getBoundingClientRect();bt+=jt.top+(Me=="window"?0:Ca());var Ot=jt.left+(Me=="window"?0:ca());Ne.left+=Ot,Ne.right+=Ot}return Ne.top+=bt,Ne.bottom+=bt,Ne}function _u(ie,de,Ne){if(Ne=="div")return de;var Me=de.left,Re=de.top;if(Ne=="page")Me-=ca(),Re-=Ca();else if(Ne=="local"||!Ne){var st=ie.display.sizer.getBoundingClientRect();Me+=st.left,Re+=st.top}var bt=ie.display.lineSpace.getBoundingClientRect();return{left:Me-bt.left,top:Re-bt.top}}function Rl(ie,de,Ne,Me,Re){return Me||(Me=fn(ie.doc,de.line)),za(ie,Me,Wc(ie,Me,de.ch,Re),Ne)}function Ma(ie,de,Ne,Me,Re,st){Me=Me||fn(ie.doc,de.line),Re||(Re=Ru(ie,Me));function bt(gr,Er){var _r=Bl(ie,Re,gr,Er?"right":"left",st);return Er?_r.left=_r.right:_r.right=_r.left,za(ie,Me,_r,Ne)}var jt=en(Me,ie.doc.direction),Ot=de.ch,Wt=de.sticky;if(Ot>=Me.text.length?(Ot=Me.text.length,Wt="before"):Ot<=0&&(Ot=0,Wt="after"),!jt)return bt(Wt=="before"?Ot-1:Ot,Wt=="before");function Cn(gr,Er,_r){var si=jt[Er],ki=si.level==1;return bt(_r?gr-1:gr,ki!=_r)}var Yt=ht(jt,Ot,Wt),Hn=Ct,Dn=Cn(Ot,Yt,Wt=="before");return Hn!=null&&(Dn.other=Cn(Ot,Hn,Wt!="before")),Dn}function wd(ie,de){var Ne=0;de=Nn(ie.doc,de),ie.options.lineWrapping||(Ne=ic(ie.display)*de.ch);var Me=fn(ie.doc,de.line),Re=ro(Me)+As(ie.display);return{left:Ne,right:Ne,top:Re,bottom:Re+Me.height}}function bd(ie,de,Ne,Me,Re){var st=on(ie,de,Ne);return st.xRel=Re,Me&&(st.outside=Me),st}function $c(ie,de,Ne){var Me=ie.doc;if(Ne+=ie.display.viewOffset,Ne<0)return bd(Me.first,0,null,-1,-1);var Re=kn(Me,Ne),st=Me.first+Me.size-1;if(Re>st)return bd(Me.first+Me.size-1,fn(Me,st).text.length,null,1,1);de<0&&(de=0);for(var bt=fn(Me,Re);;){var jt=Zn(ie,bt,Re,de,Ne),Ot=ii(bt,jt.ch+(jt.xRel>0||jt.outside>0?1:0));if(!Ot)return jt;var Wt=Ot.find(1);if(Wt.line==Re)return Wt;bt=fn(Me,Re=Wt.line)}}function pi(ie,de,Ne,Me){Me-=Ka(de);var Re=de.text.length,st=Je(function(bt){return Bl(ie,Ne,bt-1).bottom<=Me},Re,0);return Re=Je(function(bt){return Bl(ie,Ne,bt).top>Me},st,Re),{begin:st,end:Re}}function fh(ie,de,Ne,Me){Ne||(Ne=Ru(ie,de));var Re=za(ie,de,Bl(ie,Ne,Me),"line").top;return pi(ie,de,Ne,Re)}function Qt(ie,de,Ne,Me){return ie.bottom<=Ne?!1:ie.top>Ne?!0:(Me?ie.left:ie.right)>de}function Zn(ie,de,Ne,Me,Re){Re-=ro(de);var st=Ru(ie,de),bt=Ka(de),jt=0,Ot=de.text.length,Wt=!0,Cn=en(de,ie.doc.direction);if(Cn){var Yt=(ie.options.lineWrapping?af:Pd)(ie,de,Ne,st,Cn,Me,Re);Wt=Yt.level!=1,jt=Wt?Yt.from:Yt.to-1,Ot=Wt?Yt.to:Yt.from-1}var Hn=null,Dn=null,gr=Je(function(mo){var mi=Bl(ie,st,mo);return mi.top+=bt,mi.bottom+=bt,Qt(mi,Me,Re,!1)?(mi.top<=Re&&mi.left<=Me&&(Hn=mo,Dn=mi),!0):!1},jt,Ot),Er,_r,si=!1;if(Dn){var ki=Me-Dn.left<Dn.right-Me,Si=ki==Wt;gr=Hn+(Si?0:1),_r=Si?"after":"before",Er=ki?Dn.left:Dn.right}else{!Wt&&(gr==Ot||gr==jt)&&gr++,_r=gr==0?"after":gr==de.text.length?"before":Bl(ie,st,gr-(Wt?1:0)).bottom+bt<=Re==Wt?"after":"before";var _i=Ma(ie,on(Ne,gr,_r),"line",de,st);Er=_i.left,si=Re<_i.top?-1:Re>=_i.bottom?1:0}return gr=Ke(de.text,gr,1),bd(Ne,gr,_r,si,Me-Er)}function Pd(ie,de,Ne,Me,Re,st,bt){var jt=Je(function(Yt){var Hn=Re[Yt],Dn=Hn.level!=1;return Qt(Ma(ie,on(Ne,Dn?Hn.to:Hn.from,Dn?"before":"after"),"line",de,Me),st,bt,!0)},0,Re.length-1),Ot=Re[jt];if(jt>0){var Wt=Ot.level!=1,Cn=Ma(ie,on(Ne,Wt?Ot.from:Ot.to,Wt?"after":"before"),"line",de,Me);Qt(Cn,st,bt,!0)&&Cn.top>bt&&(Ot=Re[jt-1])}return Ot}function af(ie,de,Ne,Me,Re,st,bt){var jt=pi(ie,de,Me,bt),Ot=jt.begin,Wt=jt.end;/\s/.test(de.text.charAt(Wt-1))&&Wt--;for(var Cn=null,Yt=null,Hn=0;Hn<Re.length;Hn++){var Dn=Re[Hn];if(!(Dn.from>=Wt||Dn.to<=Ot)){var gr=Dn.level!=1,Er=Bl(ie,Me,gr?Math.min(Wt,Dn.to)-1:Math.max(Ot,Dn.from)).right,_r=Er<st?st-Er+1e9:Er-st;(!Cn||Yt>_r)&&(Cn=Dn,Yt=_r)}}return Cn||(Cn=Re[Re.length-1]),Cn.from<Ot&&(Cn={from:Ot,to:Cn.to,level:Cn.level}),Cn.to>Wt&&(Cn={from:Cn.from,to:Wt,level:Cn.level}),Cn}var zu;function Hu(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(zu==null){zu=Ae("pre",null,"CodeMirror-line-like");for(var de=0;de<49;++de)zu.appendChild(document.createTextNode("x")),zu.appendChild(Ae("br"));zu.appendChild(document.createTextNode("x"))}ke(ie.measure,zu);var Ne=zu.offsetHeight/50;return Ne>3&&(ie.cachedTextHeight=Ne),je(ie.measure),Ne||1}function ic(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var de=Ae("span","xxxxxxxxxx"),Ne=Ae("pre",[de],"CodeMirror-line-like");ke(ie.measure,Ne);var Me=de.getBoundingClientRect(),Re=(Me.right-Me.left)/10;return Re>2&&(ie.cachedCharWidth=Re),Re||10}function Cd(ie){for(var de=ie.display,Ne={},Me={},Re=de.gutters.clientLeft,st=de.gutters.firstChild,bt=0;st;st=st.nextSibling,++bt){var jt=ie.display.gutterSpecs[bt].className;Ne[jt]=st.offsetLeft+st.clientLeft+Re,Me[jt]=st.clientWidth}return{fixedPos:ph(de),gutterTotalWidth:de.gutters.offsetWidth,gutterLeft:Ne,gutterWidth:Me,wrapperWidth:de.wrapper.clientWidth}}function ph(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Ha(ie){var de=Hu(ie.display),Ne=ie.options.lineWrapping,Me=Ne&&Math.max(5,ie.display.scroller.clientWidth/ic(ie.display)-3);return function(Re){if(Yn(ie.doc,Re))return 0;var st=0;if(Re.widgets)for(var bt=0;bt<Re.widgets.length;bt++)Re.widgets[bt].height&&(st+=Re.widgets[bt].height);return Ne?st+(Math.ceil(Re.text.length/Me)||1)*de:st+de}}function Gi(ie){var de=ie.doc,Ne=Ha(ie);de.iter(function(Me){var Re=Ne(Me);Re!=Me.height&&Xn(Me,Re)})}function rl(ie,de,Ne,Me){var Re=ie.display;if(!Ne&&Vn(de).getAttribute("cm-not-content")=="true")return null;var st,bt,jt=Re.lineSpace.getBoundingClientRect();try{st=de.clientX-jt.left,bt=de.clientY-jt.top}catch(Yt){return null}var Ot=$c(ie,st,bt),Wt;if(Me&&Ot.xRel>0&&(Wt=fn(ie.doc,Ot.line).text).length==Ot.ch){var Cn=nt(Wt,Wt.length,ie.options.tabSize)-Wt.length;Ot=on(Ot.line,Math.max(0,Math.round((st-Bu(ie.display).left)/ic(ie.display))-Cn))}return Ot}function zs(ie,de){if(de>=ie.display.viewTo||(de-=ie.display.viewFrom,de<0))return null;for(var Ne=ie.display.view,Me=0;Me<Ne.length;Me++)if(de-=Ne[Me].size,de<0)return Me}function ma(ie,de,Ne,Me){de==null&&(de=ie.doc.first),Ne==null&&(Ne=ie.doc.first+ie.doc.size),Me||(Me=0);var Re=ie.display;if(Me&&Ne<Re.viewTo&&(Re.updateLineNumbers==null||Re.updateLineNumbers>de)&&(Re.updateLineNumbers=de),ie.curOp.viewChanged=!0,de>=Re.viewTo)vn&&Kr(ie.doc,de)<Re.viewTo&&as(ie);else if(Ne<=Re.viewFrom)vn&&Vr(ie.doc,Ne+Me)>Re.viewFrom?as(ie):(Re.viewFrom+=Me,Re.viewTo+=Me);else if(de<=Re.viewFrom&&Ne>=Re.viewTo)as(ie);else if(de<=Re.viewFrom){var st=Cl(ie,Ne,Ne+Me,1);st?(Re.view=Re.view.slice(st.index),Re.viewFrom=st.lineN,Re.viewTo+=Me):as(ie)}else if(Ne>=Re.viewTo){var bt=Cl(ie,de,de,-1);bt?(Re.view=Re.view.slice(0,bt.index),Re.viewTo=bt.lineN):as(ie)}else{var jt=Cl(ie,de,de,-1),Ot=Cl(ie,Ne,Ne+Me,1);jt&&Ot?(Re.view=Re.view.slice(0,jt.index).concat(Yi(ie,jt.lineN,Ot.lineN)).concat(Re.view.slice(Ot.index)),Re.viewTo+=Me):as(ie)}var Wt=Re.externalMeasured;Wt&&(Ne<Wt.lineN?Wt.lineN+=Me:de<Wt.lineN+Wt.size&&(Re.externalMeasured=null))}function Po(ie,de,Ne){ie.curOp.viewChanged=!0;var Me=ie.display,Re=ie.display.externalMeasured;if(Re&&de>=Re.lineN&&de<Re.lineN+Re.size&&(Me.externalMeasured=null),!(de<Me.viewFrom||de>=Me.viewTo)){var st=Me.view[zs(ie,de)];if(st.node!=null){var bt=st.changes||(st.changes=[]);pt(bt,Ne)==-1&&bt.push(Ne)}}}function as(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Cl(ie,de,Ne,Me){var Re=zs(ie,de),st,bt=ie.display.view;if(!vn||Ne==ie.doc.first+ie.doc.size)return{index:Re,lineN:Ne};for(var jt=ie.display.viewFrom,Ot=0;Ot<Re;Ot++)jt+=bt[Ot].size;if(jt!=de){if(Me>0){if(Re==bt.length-1)return null;st=jt+bt[Re].size-de,Re++}else st=jt-de;de+=st,Ne+=st}for(;Kr(ie.doc,Ne)!=Ne;){if(Re==(Me<0?0:bt.length-1))return null;Ne+=Me*bt[Re-(Me<0?1:0)].size,Re+=Me}return{index:Re,lineN:Ne}}function ha(ie,de,Ne){var Me=ie.display,Re=Me.view;Re.length==0||de>=Me.viewTo||Ne<=Me.viewFrom?(Me.view=Yi(ie,de,Ne),Me.viewFrom=de):(Me.viewFrom>de?Me.view=Yi(ie,de,Me.viewFrom).concat(Me.view):Me.viewFrom<de&&(Me.view=Me.view.slice(zs(ie,de))),Me.viewFrom=de,Me.viewTo<Ne?Me.view=Me.view.concat(Yi(ie,Me.viewTo,Ne)):Me.viewTo>Ne&&(Me.view=Me.view.slice(0,zs(ie,Ne)))),Me.viewTo=Ne}function _l(ie){for(var de=ie.display.view,Ne=0,Me=0;Me<de.length;Me++){var Re=de[Me];!Re.hidden&&(!Re.node||Re.changes)&&++Ne}return Ne}function ws(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Kc(ie,de){de===void 0&&(de=!0);for(var Ne=ie.doc,Me={},Re=Me.cursors=document.createDocumentFragment(),st=Me.selection=document.createDocumentFragment(),bt=0;bt<Ne.sel.ranges.length;bt++)if(!(!de&&bt==Ne.sel.primIndex)){var jt=Ne.sel.ranges[bt];if(!(jt.from().line>=ie.display.viewTo||jt.to().line<ie.display.viewFrom)){var Ot=jt.empty();(Ot||ie.options.showCursorWhenSelecting)&&zo(ie,jt.head,Re),Ot||Ho(ie,jt,st)}}return Me}function zo(ie,de,Ne){var Me=Ma(ie,de,"div",null,null,!ie.options.singleCursorHeightPerLine),Re=Ne.appendChild(Ae("div","\xA0","CodeMirror-cursor"));if(Re.style.left=Me.left+"px",Re.style.top=Me.top+"px",Re.style.height=Math.max(0,Me.bottom-Me.top)*ie.options.cursorHeight+"px",Me.other){var st=Ne.appendChild(Ae("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 il(ie,de){return ie.top-de.top||ie.left-de.left}function Ho(ie,de,Ne){var Me=ie.display,Re=ie.doc,st=document.createDocumentFragment(),bt=Bu(ie.display),jt=bt.left,Ot=Math.max(Me.sizerWidth,dl(ie)-Me.sizer.offsetLeft)-bt.right,Wt=Re.direction=="ltr";function Cn(Si,_i,mo,mi){_i<0&&(_i=0),_i=Math.round(_i),mi=Math.round(mi),st.appendChild(Ae("div",null,"CodeMirror-selected","position: absolute; left: "+Si+`px;
|
|
|
top: `+_i+"px; width: "+(mo==null?Ot-Si:mo)+`px;
|
|
|
height: `+(mi-_i)+"px"))}function Yt(Si,_i,mo){var mi=fn(Re,Si),ko=mi.text.length,Ya,Ds;function rs(ks,iu){return Rl(ie,on(Si,ks),"div",mi,iu)}function Kl(ks,iu,al){var Ns=fh(ie,mi,null,ks),oa=iu=="ltr"==(al=="after")?"left":"right",cs=al=="after"?Ns.begin:Ns.end-(/\s/.test(mi.text.charAt(Ns.end-1))?2:1);return rs(cs,oa)[oa]}var vl=en(mi,Re.direction);return dt(vl,_i||0,mo==null?ko:mo,function(ks,iu,al,Ns){var oa=al=="ltr",cs=rs(ks,oa?"left":"right"),Gs=rs(iu-1,oa?"right":"left"),sl=_i==null&&ks==0,Vu=mo==null&&iu==ko,is=Ns==0,Lu=!vl||Ns==vl.length-1;if(Gs.top-cs.top<=3){var ys=(Wt?sl:Vu)&&is,xf=(Wt?Vu:sl)&&Lu,mu=ys?jt:(oa?cs:Gs).left,ou=xf?Ot:(oa?Gs:cs).right;Cn(mu,cs.top,ou-mu,cs.bottom)}else{var Vl,Aa,Ws,Mc;oa?(Vl=Wt&&sl&&is?jt:cs.left,Aa=Wt?Ot:Kl(ks,al,"before"),Ws=Wt?jt:Kl(iu,al,"after"),Mc=Wt&&Vu&&Lu?Ot:Gs.right):(Vl=Wt?Kl(ks,al,"before"):jt,Aa=!Wt&&sl&&is?Ot:cs.right,Ws=!Wt&&Vu&&Lu?jt:Gs.left,Mc=Wt?Kl(iu,al,"after"):Ot),Cn(Vl,cs.top,Aa-Vl,cs.bottom),cs.bottom<Gs.top&&Cn(jt,cs.bottom,null,Gs.top),Cn(Ws,Gs.top,Mc-Ws,Gs.bottom)}(!Ya||il(cs,Ya)<0)&&(Ya=cs),il(Gs,Ya)<0&&(Ya=Gs),(!Ds||il(cs,Ds)<0)&&(Ds=cs),il(Gs,Ds)<0&&(Ds=Gs)}),{start:Ya,end:Ds}}var Hn=de.from(),Dn=de.to();if(Hn.line==Dn.line)Yt(Hn.line,Hn.ch,Dn.ch);else{var gr=fn(Re,Hn.line),Er=fn(Re,Dn.line),_r=Pi(gr)==Pi(Er),si=Yt(Hn.line,Hn.ch,_r?gr.text.length+1:null).end,ki=Yt(Dn.line,_r?0:null,Dn.ch).start;_r&&(si.top<ki.top-2?(Cn(si.right,si.top,null,si.bottom),Cn(jt,ki.top,ki.left,ki.bottom)):Cn(si.right,si.top,ki.left-si.right,si.bottom)),si.bottom<ki.top&&Cn(jt,si.bottom,null,ki.top)}Ne.appendChild(st)}function la(ie){if(ie.state.focused){var de=ie.display;clearInterval(de.blinker);var Ne=!0;de.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?de.blinker=setInterval(function(){ie.hasFocus()||Vc(ie),de.cursorDiv.style.visibility=(Ne=!Ne)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(de.cursorDiv.style.visibility="hidden")}}function La(ie){ie.state.focused||(ie.display.input.focus(),$o(ie))}function Va(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Vc(ie))},100)}function $o(ie,de){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Ft(ie,"focus",ie,de),ie.state.focused=!0,Xe(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),ce&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),la(ie))}function Vc(ie,de){ie.state.delayingBlurEvent||(ie.state.focused&&(Ft(ie,"blur",ie,de),ie.state.focused=!1,Fe(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function zi(ie){for(var de=ie.display,Ne=de.lineDiv.offsetTop,Me=0;Me<de.view.length;Me++){var Re=de.view[Me],st=ie.options.lineWrapping,bt=void 0,jt=0;if(!Re.hidden){if(De&&me<8){var Ot=Re.node.offsetTop+Re.node.offsetHeight;bt=Ot-Ne,Ne=Ot}else{var Wt=Re.node.getBoundingClientRect();bt=Wt.bottom-Wt.top,!st&&Re.text.firstChild&&(jt=Re.text.firstChild.getBoundingClientRect().right-Wt.left-1)}var Cn=Re.line.height-bt;if((Cn>.005||Cn<-.005)&&(Xn(Re.line,bt),Wf(Re.line),Re.rest))for(var Yt=0;Yt<Re.rest.length;Yt++)Wf(Re.rest[Yt]);if(jt>ie.display.sizerWidth){var Hn=Math.ceil(jt/ic(ie.display));Hn>ie.display.maxLineLength&&(ie.display.maxLineLength=Hn,ie.display.maxLine=Re.line,ie.display.maxLineChanged=!0)}}}}function Wf(ie){if(ie.widgets)for(var de=0;de<ie.widgets.length;++de){var Ne=ie.widgets[de],Me=Ne.node.parentNode;Me&&(Ne.height=Me.offsetHeight)}}function Do(ie,de,Ne){var Me=Ne&&Ne.top!=null?Math.max(0,Ne.top):ie.scroller.scrollTop;Me=Math.floor(Me-As(ie));var Re=Ne&&Ne.bottom!=null?Ne.bottom:Me+ie.wrapper.clientHeight,st=kn(de,Me),bt=kn(de,Re);if(Ne&&Ne.ensure){var jt=Ne.ensure.from.line,Ot=Ne.ensure.to.line;jt<st?(st=jt,bt=kn(de,ro(fn(de,jt))+ie.wrapper.clientHeight)):Math.min(Ot,de.lastLine())>=bt&&(st=kn(de,ro(fn(de,Ot))-ie.wrapper.clientHeight),bt=Ot)}return{from:st,to:Math.max(bt,st+1)}}function Uf(ie,de){if(!Xt(ie,"scrollCursorIntoView")){var Ne=ie.display,Me=Ne.sizer.getBoundingClientRect(),Re=null;if(de.top+Me.top<0?Re=!0:de.bottom+Me.top>(window.innerHeight||document.documentElement.clientHeight)&&(Re=!1),Re!=null&&!xe){var st=Ae("div","\u200B",null,`position: absolute;
|
|
|
top: `+(de.top-Ne.viewOffset-As(ie.display))+`px;
|
|
|
height: `+(de.bottom-de.top+_s(ie)+Ne.barHeight)+`px;
|
|
|
left: `+de.left+"px; width: "+Math.max(2,de.right-de.left)+"px;");ie.display.lineSpace.appendChild(st),st.scrollIntoView(Re),ie.display.lineSpace.removeChild(st)}}}function Uh(ie,de,Ne,Me){Me==null&&(Me=0);var Re;!ie.options.lineWrapping&&de==Ne&&(de=de.ch?on(de.line,de.sticky=="before"?de.ch-1:de.ch,"after"):de,Ne=de.sticky=="before"?on(de.line,de.ch+1,"before"):de);for(var st=0;st<5;st++){var bt=!1,jt=Ma(ie,de),Ot=!Ne||Ne==de?jt:Ma(ie,Ne);Re={left:Math.min(jt.left,Ot.left),top:Math.min(jt.top,Ot.top)-Me,right:Math.max(jt.left,Ot.left),bottom:Math.max(jt.bottom,Ot.bottom)+Me};var Wt=$f(ie,Re),Cn=ie.doc.scrollTop,Yt=ie.doc.scrollLeft;if(Wt.scrollTop!=null&&(Xc(ie,Wt.scrollTop),Math.abs(ie.doc.scrollTop-Cn)>1&&(bt=!0)),Wt.scrollLeft!=null&&(Wu(ie,Wt.scrollLeft),Math.abs(ie.doc.scrollLeft-Yt)>1&&(bt=!0)),!bt)break}return Re}function $h(ie,de){var Ne=$f(ie,de);Ne.scrollTop!=null&&Xc(ie,Ne.scrollTop),Ne.scrollLeft!=null&&Wu(ie,Ne.scrollLeft)}function $f(ie,de){var Ne=ie.display,Me=Hu(ie.display);de.top<0&&(de.top=0);var Re=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:Ne.scroller.scrollTop,st=Hc(ie),bt={};de.bottom-de.top>st&&(de.bottom=de.top+st);var jt=ie.doc.height+Cu(Ne),Ot=de.top<Me,Wt=de.bottom>jt-Me;if(de.top<Re)bt.scrollTop=Ot?0:de.top;else if(de.bottom>Re+st){var Cn=Math.min(de.top,(Wt?jt:de.bottom)-st);Cn!=Re&&(bt.scrollTop=Cn)}var Yt=ie.options.fixedGutter?0:Ne.gutters.offsetWidth,Hn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:Ne.scroller.scrollLeft-Yt,Dn=dl(ie)-Ne.gutters.offsetWidth,gr=de.right-de.left>Dn;return gr&&(de.right=de.left+Dn),de.left<10?bt.scrollLeft=0:de.left<Hn?bt.scrollLeft=Math.max(0,de.left+Yt-(gr?0:10)):de.right>Dn+Hn-3&&(bt.scrollLeft=de.right+(gr?0:10)-Dn),bt}function Ed(ie,de){de!=null&&(Gu(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+de)}function Sc(ie){Gu(ie);var de=ie.getCursor();ie.curOp.scrollToPos={from:de,to:de,margin:ie.options.cursorScrollMargin}}function Zc(ie,de,Ne){(de!=null||Ne!=null)&&Gu(ie),de!=null&&(ie.curOp.scrollLeft=de),Ne!=null&&(ie.curOp.scrollTop=Ne)}function Ko(ie,de){Gu(ie),ie.curOp.scrollToPos=de}function Gu(ie){var de=ie.curOp.scrollToPos;if(de){ie.curOp.scrollToPos=null;var Ne=wd(ie,de.from),Me=wd(ie,de.to);sf(ie,Ne,Me,de.margin)}}function sf(ie,de,Ne,Me){var Re=$f(ie,{left:Math.min(de.left,Ne.left),top:Math.min(de.top,Ne.top)-Me,right:Math.max(de.right,Ne.right),bottom:Math.max(de.bottom,Ne.bottom)+Me});Zc(ie,Re.scrollLeft,Re.scrollTop)}function Xc(ie,de){Math.abs(ie.doc.scrollTop-de)<2||(tt||Xr(ie,{top:de}),Kf(ie,de,!0),tt&&Xr(ie),Qn(ie,100))}function Kf(ie,de,Ne){de=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,de)),!(ie.display.scroller.scrollTop==de&&!Ne)&&(ie.doc.scrollTop=de,ie.display.scrollbars.setScrollTop(de),ie.display.scroller.scrollTop!=de&&(ie.display.scroller.scrollTop=de))}function Wu(ie,de,Ne,Me){de=Math.max(0,Math.min(de,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((Ne?de==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-de)<2)&&!Me)&&(ie.doc.scrollLeft=de,Wi(ie),ie.display.scroller.scrollLeft!=de&&(ie.display.scroller.scrollLeft=de),ie.display.scrollbars.setScrollLeft(de))}function fu(ie){var de=ie.display,Ne=de.gutters.offsetWidth,Me=Math.round(ie.doc.height+Cu(ie.display));return{clientHeight:de.scroller.clientHeight,viewHeight:de.wrapper.clientHeight,scrollWidth:de.scroller.scrollWidth,clientWidth:de.scroller.clientWidth,viewWidth:de.wrapper.clientWidth,barLeft:ie.options.fixedGutter?Ne:0,docHeight:Me,scrollHeight:Me+_s(ie)+de.barHeight,nativeBarWidth:de.nativeBarWidth,gutterWidth:Ne}}var xc=function(ie,de,Ne){this.cm=Ne;var Me=this.vert=Ae("div",[Ae("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Re=this.horiz=Ae("div",[Ae("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Me.tabIndex=Re.tabIndex=-1,ie(Me),ie(Re),Kt(Me,"scroll",function(){Me.clientHeight&&de(Me.scrollTop,"vertical")}),Kt(Re,"scroll",function(){Re.clientWidth&&de(Re.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,De&&me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xc.prototype.update=function(ie){var de=ie.scrollWidth>ie.clientWidth+1,Ne=ie.scrollHeight>ie.clientHeight+1,Me=ie.nativeBarWidth;if(Ne){this.vert.style.display="block",this.vert.style.bottom=de?Me+"px":"0";var Re=ie.viewHeight-(de?Me:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Re)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(de){this.horiz.style.display="block",this.horiz.style.right=Ne?Me+"px":"0",this.horiz.style.left=ie.barLeft+"px";var st=ie.viewWidth-ie.barLeft-(Ne?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:Ne?Me:0,bottom:de?Me:0}},xc.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xc.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xc.prototype.zeroWidthHack=function(){var ie=ae&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new it,this.disableVert=new it},xc.prototype.enableZeroWidthBar=function(ie,de,Ne){ie.style.pointerEvents="auto";function Me(){var Re=ie.getBoundingClientRect(),st=Ne=="vert"?document.elementFromPoint(Re.right-1,(Re.top+Re.bottom)/2):document.elementFromPoint((Re.right+Re.left)/2,Re.bottom-1);st!=ie?ie.style.pointerEvents="none":de.set(1e3,Me)}de.set(1e3,Me)},xc.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Eu=function(){};Eu.prototype.update=function(){return{bottom:0,right:0}},Eu.prototype.setScrollLeft=function(){},Eu.prototype.setScrollTop=function(){},Eu.prototype.clear=function(){};function wc(ie,de){de||(de=fu(ie));var Ne=ie.display.barWidth,Me=ie.display.barHeight;Td(ie,de);for(var Re=0;Re<4&&Ne!=ie.display.barWidth||Me!=ie.display.barHeight;Re++)Ne!=ie.display.barWidth&&ie.options.lineWrapping&&zi(ie),Td(ie,fu(ie)),Ne=ie.display.barWidth,Me=ie.display.barHeight}function Td(ie,de){var Ne=ie.display,Me=Ne.scrollbars.update(de);Ne.sizer.style.paddingRight=(Ne.barWidth=Me.right)+"px",Ne.sizer.style.paddingBottom=(Ne.barHeight=Me.bottom)+"px",Ne.heightForcer.style.borderBottom=Me.bottom+"px solid transparent",Me.right&&Me.bottom?(Ne.scrollbarFiller.style.display="block",Ne.scrollbarFiller.style.height=Me.bottom+"px",Ne.scrollbarFiller.style.width=Me.right+"px"):Ne.scrollbarFiller.style.display="",Me.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(Ne.gutterFiller.style.display="block",Ne.gutterFiller.style.height=Me.bottom+"px",Ne.gutterFiller.style.width=de.gutterWidth+"px"):Ne.gutterFiller.style.display=""}var lf={native:xc,null:Eu};function uf(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Fe(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new lf[ie.options.scrollbarStyle](function(de){ie.display.wrapper.insertBefore(de,ie.display.scrollbarFiller),Kt(de,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),de.setAttribute("cm-not-content","true")},function(de,Ne){Ne=="horizontal"?Wu(ie,de):Xc(ie,de)},ie),ie.display.scrollbars.addClass&&Xe(ie.display.wrapper,ie.display.scrollbars.addClass)}var Vf=0;function fl(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:++Vf},xs(ie.curOp)}function bc(ie){var de=ie.curOp;de&&so(de,function(Ne){for(var Me=0;Me<Ne.ops.length;Me++)Ne.ops[Me].cm.curOp=null;$p(Ne)})}function $p(ie){for(var de=ie.ops,Ne=0;Ne<de.length;Ne++)Dt(de[Ne]);for(var Me=0;Me<de.length;Me++)Rt(de[Me]);for(var Re=0;Re<de.length;Re++)nn(de[Re]);for(var st=0;st<de.length;st++)sn(de[st]);for(var bt=0;bt<de.length;bt++)Tn(de[bt])}function Dt(ie){var de=ie.cm,Ne=de.display;jr(de),ie.updateMaxLine&&_o(de),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<Ne.viewFrom||ie.scrollToPos.to.line>=Ne.viewTo)||Ne.maxLineChanged&&de.options.lineWrapping,ie.update=ie.mustUpdate&&new er(de,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Rt(ie){ie.updatedDisplay=ie.mustUpdate&&ei(ie.cm,ie.update)}function nn(ie){var de=ie.cm,Ne=de.display;ie.updatedDisplay&&zi(de),ie.barMeasure=fu(de),Ne.maxLineChanged&&!de.options.lineWrapping&&(ie.adjustWidthTo=Wc(de,Ne.maxLine,Ne.maxLine.text.length).left+3,de.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(Ne.scroller.clientWidth,Ne.sizer.offsetLeft+ie.adjustWidthTo+_s(de)+de.display.barWidth),ie.maxScrollLeft=Math.max(0,Ne.sizer.offsetLeft+ie.adjustWidthTo-dl(de))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=Ne.input.prepareSelection())}function sn(ie){var de=ie.cm;ie.adjustWidthTo!=null&&(de.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<de.doc.scrollLeft&&Wu(de,Math.min(de.display.scroller.scrollLeft,ie.maxScrollLeft),!0),de.display.maxLineChanged=!1);var Ne=ie.focus&&ie.focus==ze();ie.preparedSelection&&de.display.input.showSelection(ie.preparedSelection,Ne),(ie.updatedDisplay||ie.startHeight!=de.doc.height)&&wc(de,ie.barMeasure),ie.updatedDisplay&&Ai(de,ie.barMeasure),ie.selectionChanged&&la(de),de.state.focused&&ie.updateInput&&de.display.input.reset(ie.typing),Ne&&La(ie.cm)}function Tn(ie){var de=ie.cm,Ne=de.display,Me=de.doc;if(ie.updatedDisplay&&Cr(de,ie.update),Ne.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(Ne.wheelStartX=Ne.wheelStartY=null),ie.scrollTop!=null&&Kf(de,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Wu(de,ie.scrollLeft,!0,!0),ie.scrollToPos){var Re=Uh(de,Nn(Me,ie.scrollToPos.from),Nn(Me,ie.scrollToPos.to),ie.scrollToPos.margin);Uf(de,Re)}var st=ie.maybeHiddenMarkers,bt=ie.maybeUnhiddenMarkers;if(st)for(var jt=0;jt<st.length;++jt)st[jt].lines.length||Ft(st[jt],"hide");if(bt)for(var Ot=0;Ot<bt.length;++Ot)bt[Ot].lines.length&&Ft(bt[Ot],"unhide");Ne.wrapper.offsetHeight&&(Me.scrollTop=de.display.scroller.scrollTop),ie.changeObjs&&Ft(de,"changes",de,ie.changeObjs),ie.update&&ie.update.finish()}function pn(ie,de){if(ie.curOp)return de();fl(ie);try{return de()}finally{bc(ie)}}function Bn(ie,de){return function(){if(ie.curOp)return de.apply(ie,arguments);fl(ie);try{return de.apply(ie,arguments)}finally{bc(ie)}}}function _n(ie){return function(){if(this.curOp)return ie.apply(this,arguments);fl(this);try{return ie.apply(this,arguments)}finally{bc(this)}}}function In(ie){return function(){var de=this.cm;if(!de||de.curOp)return ie.apply(this,arguments);fl(de);try{return ie.apply(this,arguments)}finally{bc(de)}}}function Qn(ie,de){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(de,ct(ir,ie))}function ir(ie){var de=ie.doc;if(!(de.highlightFrontier>=ie.display.viewTo)){var Ne=+new Date+ie.options.workTime,Me=Br(ie,de.highlightFrontier),Re=[];de.iter(Me.line,Math.min(de.first+de.size,ie.display.viewTo+500),function(st){if(Me.line>=ie.display.viewFrom){var bt=st.styles,jt=st.text.length>ie.options.maxHighlightLength?ln(de.mode,Me.state):null,Ot=Fr(ie,st,Me,!0);jt&&(Me.state=jt),st.styles=Ot.styles;var Wt=st.styleClasses,Cn=Ot.classes;Cn?st.styleClasses=Cn:Wt&&(st.styleClasses=null);for(var Yt=!bt||bt.length!=st.styles.length||Wt!=Cn&&(!Wt||!Cn||Wt.bgClass!=Cn.bgClass||Wt.textClass!=Cn.textClass),Hn=0;!Yt&&Hn<bt.length;++Hn)Yt=bt[Hn]!=st.styles[Hn];Yt&&Re.push(Me.line),st.stateAfter=Me.save(),Me.nextLine()}else st.text.length<=ie.options.maxHighlightLength&&bn(ie,st.text,Me),st.stateAfter=Me.line%5==0?Me.save():null,Me.nextLine();if(+new Date>Ne)return Qn(ie,ie.options.workDelay),!0}),de.highlightFrontier=Me.line,de.modeFrontier=Math.max(de.modeFrontier,Me.line),Re.length&&pn(ie,function(){for(var st=0;st<Re.length;st++)Po(ie,Re[st],"text")})}}var er=function(ie,de,Ne){var Me=ie.display;this.viewport=de,this.visible=Do(Me,ie.doc,de),this.editorIsHidden=!Me.wrapper.offsetWidth,this.wrapperHeight=Me.wrapper.clientHeight,this.wrapperWidth=Me.wrapper.clientWidth,this.oldDisplayWidth=dl(ie),this.force=Ne,this.dims=Cd(ie),this.events=[]};er.prototype.signal=function(ie,de){dn(ie,de)&&this.events.push(arguments)},er.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Ft.apply(null,this.events[ie])};function jr(ie){var de=ie.display;!de.scrollbarsClipped&&de.scroller.offsetWidth&&(de.nativeBarWidth=de.scroller.offsetWidth-de.scroller.clientWidth,de.heightForcer.style.height=_s(ie)+"px",de.sizer.style.marginBottom=-de.nativeBarWidth+"px",de.sizer.style.borderRightWidth=_s(ie)+"px",de.scrollbarsClipped=!0)}function Mr(ie){if(ie.hasFocus())return null;var de=ze();if(!de||!et(ie.display.lineDiv,de))return null;var Ne={activeElt:de};if(window.getSelection){var Me=window.getSelection();Me.anchorNode&&Me.extend&&et(ie.display.lineDiv,Me.anchorNode)&&(Ne.anchorNode=Me.anchorNode,Ne.anchorOffset=Me.anchorOffset,Ne.focusNode=Me.focusNode,Ne.focusOffset=Me.focusOffset)}return Ne}function vr(ie){if(!(!ie||!ie.activeElt||ie.activeElt==ze())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&et(document.body,ie.anchorNode)&&et(document.body,ie.focusNode))){var de=window.getSelection(),Ne=document.createRange();Ne.setEnd(ie.anchorNode,ie.anchorOffset),Ne.collapse(!1),de.removeAllRanges(),de.addRange(Ne),de.extend(ie.focusNode,ie.focusOffset)}}function ei(ie,de){var Ne=ie.display,Me=ie.doc;if(de.editorIsHidden)return as(ie),!1;if(!de.force&&de.visible.from>=Ne.viewFrom&&de.visible.to<=Ne.viewTo&&(Ne.updateLineNumbers==null||Ne.updateLineNumbers>=Ne.viewTo)&&Ne.renderedView==Ne.view&&_l(ie)==0)return!1;oi(ie)&&(as(ie),de.dims=Cd(ie));var Re=Me.first+Me.size,st=Math.max(de.visible.from-ie.options.viewportMargin,Me.first),bt=Math.min(Re,de.visible.to+ie.options.viewportMargin);Ne.viewFrom<st&&st-Ne.viewFrom<20&&(st=Math.max(Me.first,Ne.viewFrom)),Ne.viewTo>bt&&Ne.viewTo-bt<20&&(bt=Math.min(Re,Ne.viewTo)),vn&&(st=Kr(ie.doc,st),bt=Vr(ie.doc,bt));var jt=st!=Ne.viewFrom||bt!=Ne.viewTo||Ne.lastWrapHeight!=de.wrapperHeight||Ne.lastWrapWidth!=de.wrapperWidth;ha(ie,st,bt),Ne.viewOffset=ro(fn(ie.doc,Ne.viewFrom)),ie.display.mover.style.top=Ne.viewOffset+"px";var Ot=_l(ie);if(!jt&&Ot==0&&!de.force&&Ne.renderedView==Ne.view&&(Ne.updateLineNumbers==null||Ne.updateLineNumbers>=Ne.viewTo))return!1;var Wt=Mr(ie);return Ot>4&&(Ne.lineDiv.style.display="none"),Zr(ie,Ne.updateLineNumbers,de.dims),Ot>4&&(Ne.lineDiv.style.display=""),Ne.renderedView=Ne.view,vr(Wt),je(Ne.cursorDiv),je(Ne.selectionDiv),Ne.gutters.style.height=Ne.sizer.style.minHeight=0,jt&&(Ne.lastWrapHeight=de.wrapperHeight,Ne.lastWrapWidth=de.wrapperWidth,Qn(ie,400)),Ne.updateLineNumbers=null,!0}function Cr(ie,de){for(var Ne=de.viewport,Me=!0;;Me=!1){if(!Me||!ie.options.lineWrapping||de.oldDisplayWidth==dl(ie)){if(Ne&&Ne.top!=null&&(Ne={top:Math.min(ie.doc.height+Cu(ie.display)-Hc(ie),Ne.top)}),de.visible=Do(ie.display,ie.doc,Ne),de.visible.from>=ie.display.viewFrom&&de.visible.to<=ie.display.viewTo)break}else Me&&(de.visible=Do(ie.display,ie.doc,Ne));if(!ei(ie,de))break;zi(ie);var Re=fu(ie);ws(ie),wc(ie,Re),Ai(ie,Re),de.force=!1}de.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(de.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Xr(ie,de){var Ne=new er(ie,de);if(ei(ie,Ne)){zi(ie),Cr(ie,Ne);var Me=fu(ie);ws(ie),wc(ie,Me),Ai(ie,Me),Ne.finish()}}function Zr(ie,de,Ne){var Me=ie.display,Re=ie.options.lineNumbers,st=Me.lineDiv,bt=st.firstChild;function jt(gr){var Er=gr.nextSibling;return ce&&ae&&ie.display.currentWheelTarget==gr?gr.style.display="none":gr.parentNode.removeChild(gr),Er}for(var Ot=Me.view,Wt=Me.viewFrom,Cn=0;Cn<Ot.length;Cn++){var Yt=Ot[Cn];if(!Yt.hidden)if(!Yt.node||Yt.node.parentNode!=st){var Hn=Dl(ie,Yt,Wt,Ne);st.insertBefore(Hn,bt)}else{for(;bt!=Yt.node;)bt=jt(bt);var Dn=Re&&de!=null&&de<=Wt&&Yt.lineNumber;Yt.changes&&(pt(Yt.changes,"gutter")>-1&&(Dn=!1),Ra(ie,Yt,Wt,Ne)),Dn&&(je(Yt.lineNumber),Yt.lineNumber.appendChild(document.createTextNode(lr(ie.options,Wt)))),bt=Yt.node.nextSibling}Wt+=Yt.size}for(;bt;)bt=jt(bt)}function hi(ie){var de=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=de+"px"}function Ai(ie,de){ie.display.sizer.style.minHeight=de.docHeight+"px",ie.display.heightForcer.style.top=de.docHeight+"px",ie.display.gutters.style.height=de.docHeight+ie.display.barHeight+_s(ie)+"px"}function Wi(ie){var de=ie.display,Ne=de.view;if(!(!de.alignWidgets&&(!de.gutters.firstChild||!ie.options.fixedGutter))){for(var Me=ph(de)-de.scroller.scrollLeft+ie.doc.scrollLeft,Re=de.gutters.offsetWidth,st=Me+"px",bt=0;bt<Ne.length;bt++)if(!Ne[bt].hidden){ie.options.fixedGutter&&(Ne[bt].gutter&&(Ne[bt].gutter.style.left=st),Ne[bt].gutterBackground&&(Ne[bt].gutterBackground.style.left=st));var jt=Ne[bt].alignable;if(jt)for(var Ot=0;Ot<jt.length;Ot++)jt[Ot].style.left=st}ie.options.fixedGutter&&(de.gutters.style.left=Me+Re+"px")}}function oi(ie){if(!ie.options.lineNumbers)return!1;var de=ie.doc,Ne=lr(ie.options,de.first+de.size-1),Me=ie.display;if(Ne.length!=Me.lineNumChars){var Re=Me.measure.appendChild(Ae("div",[Ae("div",Ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),st=Re.firstChild.offsetWidth,bt=Re.offsetWidth-st;return Me.lineGutter.style.width="",Me.lineNumInnerWidth=Math.max(st,Me.lineGutter.offsetWidth-bt)+1,Me.lineNumWidth=Me.lineNumInnerWidth+bt,Me.lineNumChars=Me.lineNumInnerWidth?Ne.length:-1,Me.lineGutter.style.width=Me.lineNumWidth+"px",hi(ie.display),!0}return!1}function Ni(ie,de){for(var Ne=[],Me=!1,Re=0;Re<ie.length;Re++){var st=ie[Re],bt=null;if(typeof st!="string"&&(bt=st.style,st=st.className),st=="CodeMirror-linenumbers")if(de)Me=!0;else continue;Ne.push({className:st,style:bt})}return de&&!Me&&Ne.push({className:"CodeMirror-linenumbers",style:null}),Ne}function ho(ie){var de=ie.gutters,Ne=ie.gutterSpecs;je(de),ie.lineGutter=null;for(var Me=0;Me<Ne.length;++Me){var Re=Ne[Me],st=Re.className,bt=Re.style,jt=de.appendChild(Ae("div",null,"CodeMirror-gutter "+st));bt&&(jt.style.cssText=bt),st=="CodeMirror-linenumbers"&&(ie.lineGutter=jt,jt.style.width=(ie.lineNumWidth||1)+"px")}de.style.display=Ne.length?"":"none",hi(ie)}function ui(ie){ho(ie.display),ma(ie),Wi(ie)}function Ei(ie,de,Ne,Me){var Re=this;this.input=Ne,Re.scrollbarFiller=Ae("div",null,"CodeMirror-scrollbar-filler"),Re.scrollbarFiller.setAttribute("cm-not-content","true"),Re.gutterFiller=Ae("div",null,"CodeMirror-gutter-filler"),Re.gutterFiller.setAttribute("cm-not-content","true"),Re.lineDiv=Be("div",null,"CodeMirror-code"),Re.selectionDiv=Ae("div",null,null,"position: relative; z-index: 1"),Re.cursorDiv=Ae("div",null,"CodeMirror-cursors"),Re.measure=Ae("div",null,"CodeMirror-measure"),Re.lineMeasure=Ae("div",null,"CodeMirror-measure"),Re.lineSpace=Be("div",[Re.measure,Re.lineMeasure,Re.selectionDiv,Re.cursorDiv,Re.lineDiv],null,"position: relative; outline: none");var st=Be("div",[Re.lineSpace],"CodeMirror-lines");Re.mover=Ae("div",[st],null,"position: relative"),Re.sizer=Ae("div",[Re.mover],"CodeMirror-sizer"),Re.sizerWidth=null,Re.heightForcer=Ae("div",null,null,"position: absolute; height: "+xt+"px; width: 1px;"),Re.gutters=Ae("div",null,"CodeMirror-gutters"),Re.lineGutter=null,Re.scroller=Ae("div",[Re.sizer,Re.heightForcer,Re.gutters],"CodeMirror-scroll"),Re.scroller.setAttribute("tabIndex","-1"),Re.wrapper=Ae("div",[Re.scrollbarFiller,Re.gutterFiller,Re.scroller],"CodeMirror"),De&&me<8&&(Re.gutters.style.zIndex=-1,Re.scroller.style.paddingRight=0),!ce&&!(tt&&ee)&&(Re.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Re.wrapper):ie(Re.wrapper)),Re.viewFrom=Re.viewTo=de.first,Re.reportedViewFrom=Re.reportedViewTo=de.first,Re.view=[],Re.renderedView=null,Re.externalMeasured=null,Re.viewOffset=0,Re.lastWrapHeight=Re.lastWrapWidth=0,Re.updateLineNumbers=null,Re.nativeBarWidth=Re.barHeight=Re.barWidth=0,Re.scrollbarsClipped=!1,Re.lineNumWidth=Re.lineNumInnerWidth=Re.lineNumChars=null,Re.alignWidgets=!1,Re.cachedCharWidth=Re.cachedTextHeight=Re.cachedPaddingH=null,Re.maxLine=null,Re.maxLineLength=0,Re.maxLineChanged=!1,Re.wheelDX=Re.wheelDY=Re.wheelStartX=Re.wheelStartY=null,Re.shift=!1,Re.selForContextMenu=null,Re.activeTouch=null,Re.gutterSpecs=Ni(Me.gutters,Me.lineNumbers),ho(Re),Ne.init(Re)}var li=0,Gr=null;De?Gr=-.53:tt?Gr=15:Le?Gr=-.7:Oe&&(Gr=-1/3);function yi(ie){var de=ie.wheelDeltaX,Ne=ie.wheelDeltaY;return de==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(de=ie.detail),Ne==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?Ne=ie.detail:Ne==null&&(Ne=ie.wheelDelta),{x:de,y:Ne}}function Ri(ie){var de=yi(ie);return de.x*=Gr,de.y*=Gr,de}function Xi(ie,de){var Ne=yi(de),Me=Ne.x,Re=Ne.y,st=ie.display,bt=st.scroller,jt=bt.scrollWidth>bt.clientWidth,Ot=bt.scrollHeight>bt.clientHeight;if(Me&&jt||Re&&Ot){if(Re&&ae&&ce){e:for(var Wt=de.target,Cn=st.view;Wt!=bt;Wt=Wt.parentNode)for(var Yt=0;Yt<Cn.length;Yt++)if(Cn[Yt].node==Wt){ie.display.currentWheelTarget=Wt;break e}}if(Me&&!tt&&!Se&&Gr!=null){Re&&Ot&&Xc(ie,Math.max(0,bt.scrollTop+Re*Gr)),Wu(ie,Math.max(0,bt.scrollLeft+Me*Gr)),(!Re||Re&&Ot)&&An(de),st.wheelStartX=null;return}if(Re&&Gr!=null){var Hn=Re*Gr,Dn=ie.doc.scrollTop,gr=Dn+st.wrapper.clientHeight;Hn<0?Dn=Math.max(0,Dn+Hn-50):gr=Math.min(ie.doc.height,gr+Hn+50),Xr(ie,{top:Dn,bottom:gr})}li<20&&(st.wheelStartX==null?(st.wheelStartX=bt.scrollLeft,st.wheelStartY=bt.scrollTop,st.wheelDX=Me,st.wheelDY=Re,setTimeout(function(){if(st.wheelStartX!=null){var Er=bt.scrollLeft-st.wheelStartX,_r=bt.scrollTop-st.wheelStartY,si=_r&&st.wheelDY&&_r/st.wheelDY||Er&&st.wheelDX&&Er/st.wheelDX;st.wheelStartX=st.wheelStartY=null,si&&(Gr=(Gr*li+si)/(li+1),++li)}},200)):(st.wheelDX+=Me,st.wheelDY+=Re))}}var Ji=function(ie,de){this.ranges=ie,this.primIndex=de};Ji.prototype.primary=function(){return this.ranges[this.primIndex]},Ji.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var de=0;de<this.ranges.length;de++){var Ne=this.ranges[de],Me=ie.ranges[de];if(!an(Ne.anchor,Me.anchor)||!an(Ne.head,Me.head))return!1}return!0},Ji.prototype.deepCopy=function(){for(var ie=[],de=0;de<this.ranges.length;de++)ie[de]=new ai(Sn(this.ranges[de].anchor),Sn(this.ranges[de].head));return new Ji(ie,this.primIndex)},Ji.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Ji.prototype.contains=function(ie,de){de||(de=ie);for(var Ne=0;Ne<this.ranges.length;Ne++){var Me=this.ranges[Ne];if(Mn(de,Me.from())>=0&&Mn(ie,Me.to())<=0)return Ne}return-1};var ai=function(ie,de){this.anchor=ie,this.head=de};ai.prototype.from=function(){return yn(this.anchor,this.head)},ai.prototype.to=function(){return gn(this.anchor,this.head)},ai.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function po(ie,de,Ne){var Me=ie&&ie.options.selectionsMayTouch,Re=de[Ne];de.sort(function(Hn,Dn){return Mn(Hn.from(),Dn.from())}),Ne=pt(de,Re);for(var st=1;st<de.length;st++){var bt=de[st],jt=de[st-1],Ot=Mn(jt.to(),bt.from());if(Me&&!bt.empty()?Ot>0:Ot>=0){var Wt=yn(jt.from(),bt.from()),Cn=gn(jt.to(),bt.to()),Yt=jt.empty()?bt.from()==bt.head:jt.from()==jt.head;st<=Ne&&--Ne,de.splice(--st,2,new ai(Yt?Cn:Wt,Yt?Wt:Cn))}}return new Ji(de,Ne)}function wo(ie,de){return new Ji([new ai(ie,de||ie)],0)}function Jo(ie){return ie.text?on(ie.from.line+ie.text.length-1,St(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Oo(ie,de){if(Mn(ie,de.from)<0)return ie;if(Mn(ie,de.to)<=0)return Jo(de);var Ne=ie.line+de.text.length-(de.to.line-de.from.line)-1,Me=ie.ch;return ie.line==de.to.line&&(Me+=Jo(de).ch-de.to.ch),on(Ne,Me)}function ka(ie,de){for(var Ne=[],Me=0;Me<ie.sel.ranges.length;Me++){var Re=ie.sel.ranges[Me];Ne.push(new ai(Oo(Re.anchor,de),Oo(Re.head,de)))}return po(ie.cm,Ne,ie.sel.primIndex)}function Ea(ie,de,Ne){return ie.line==de.line?on(Ne.line,ie.ch-de.ch+Ne.ch):on(Ne.line+(ie.line-de.line),ie.ch)}function vo(ie,de,Ne){for(var Me=[],Re=on(ie.first,0),st=Re,bt=0;bt<de.length;bt++){var jt=de[bt],Ot=Ea(jt.from,Re,st),Wt=Ea(Jo(jt),Re,st);if(Re=jt.to,st=Wt,Ne=="around"){var Cn=ie.sel.ranges[bt],Yt=Mn(Cn.head,Cn.anchor)<0;Me[bt]=new ai(Yt?Wt:Ot,Yt?Ot:Wt)}else Me[bt]=new ai(Ot,Ot)}return new Ji(Me,ie.sel.primIndex)}function Hi(ie){ie.doc.mode=qt(ie.options,ie.doc.modeOption),Uo(ie)}function Uo(ie){ie.doc.iter(function(de){de.stateAfter&&(de.stateAfter=null),de.styles&&(de.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,Qn(ie,100),ie.state.modeGen++,ie.curOp&&ma(ie)}function Na(ie,de){return de.from.ch==0&&de.to.ch==0&&St(de.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function va(ie,de,Ne,Me){function Re(ki){return Ne?Ne[ki]:null}function st(ki,Si,_i){Pa(ki,Si,_i,Me),Lr(ki,"change",ki,de)}function bt(ki,Si){for(var _i=[],mo=ki;mo<Si;++mo)_i.push(new Xo(Wt[mo],Re(mo),Me));return _i}var jt=de.from,Ot=de.to,Wt=de.text,Cn=fn(ie,jt.line),Yt=fn(ie,Ot.line),Hn=St(Wt),Dn=Re(Wt.length-1),gr=Ot.line-jt.line;if(de.full)ie.insert(0,bt(0,Wt.length)),ie.remove(Wt.length,ie.size-Wt.length);else if(Na(ie,de)){var Er=bt(0,Wt.length-1);st(Yt,Yt.text,Dn),gr&&ie.remove(jt.line,gr),Er.length&&ie.insert(jt.line,Er)}else if(Cn==Yt)if(Wt.length==1)st(Cn,Cn.text.slice(0,jt.ch)+Hn+Cn.text.slice(Ot.ch),Dn);else{var _r=bt(1,Wt.length-1);_r.push(new Xo(Hn+Cn.text.slice(Ot.ch),Dn,Me)),st(Cn,Cn.text.slice(0,jt.ch)+Wt[0],Re(0)),ie.insert(jt.line+1,_r)}else if(Wt.length==1)st(Cn,Cn.text.slice(0,jt.ch)+Wt[0]+Yt.text.slice(Ot.ch),Re(0)),ie.remove(jt.line+1,gr);else{st(Cn,Cn.text.slice(0,jt.ch)+Wt[0],Re(0)),st(Yt,Hn+Yt.text.slice(Ot.ch),Dn);var si=bt(1,Wt.length-1);gr>1&&ie.remove(jt.line+1,gr-1),ie.insert(jt.line+1,si)}Lr(ie,"change",ie,de)}function ns(ie,de,Ne){function Me(Re,st,bt){if(Re.linked)for(var jt=0;jt<Re.linked.length;++jt){var Ot=Re.linked[jt];if(Ot.doc!=st){var Wt=bt&&Ot.sharedHist;Ne&&!Wt||(de(Ot.doc,Wt),Me(Ot.doc,Re,Wt))}}}Me(ie,null,!0)}function Qi(ie,de){if(de.cm)throw new Error("This document is already in use.");ie.doc=de,de.cm=ie,Gi(ie),Hi(ie),Vi(ie),ie.options.lineWrapping||_o(ie),ie.options.mode=de.modeOption,ma(ie)}function Vi(ie){(ie.doc.direction=="rtl"?Xe:Fe)(ie.display.lineDiv,"CodeMirror-rtl")}function qi(ie){pn(ie,function(){Vi(ie),ma(ie)})}function ji(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 Vo(ie,de){var Ne={from:Sn(de.from),to:Jo(de),text:un(ie,de.from,de.to)};return Hs(ie,Ne,de.from.line,de.to.line+1),ns(ie,function(Me){return Hs(Me,Ne,de.from.line,de.to.line+1)},!0),Ne}function Ii(ie){for(;ie.length;){var de=St(ie);if(de.ranges)ie.pop();else break}}function fo(ie,de){if(de)return Ii(ie.done),St(ie.done);if(ie.done.length&&!St(ie.done).ranges)return St(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),St(ie.done)}function Fo(ie,de,Ne,Me){var Re=ie.history;Re.undone.length=0;var st=+new Date,bt,jt;if((Re.lastOp==Me||Re.lastOrigin==de.origin&&de.origin&&(de.origin.charAt(0)=="+"&&Re.lastModTime>st-(ie.cm?ie.cm.options.historyEventDelay:500)||de.origin.charAt(0)=="*"))&&(bt=fo(Re,Re.lastOp==Me)))jt=St(bt.changes),Mn(de.from,de.to)==0&&Mn(de.from,jt.to)==0?jt.to=Jo(de):bt.changes.push(Vo(ie,de));else{var Ot=St(Re.done);for((!Ot||!Ot.ranges)&&ss(ie.sel,Re.done),bt={changes:[Vo(ie,de)],generation:Re.generation},Re.done.push(bt);Re.done.length>Re.undoDepth;)Re.done.shift(),Re.done[0].ranges||Re.done.shift()}Re.done.push(Ne),Re.generation=++Re.maxGeneration,Re.lastModTime=Re.lastSelTime=st,Re.lastOp=Re.lastSelOp=Me,Re.lastOrigin=Re.lastSelOrigin=de.origin,jt||Ft(ie,"historyAdded")}function Bo(ie,de,Ne,Me){var Re=de.charAt(0);return Re=="*"||Re=="+"&&Ne.ranges.length==Me.ranges.length&&Ne.somethingSelected()==Me.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function bs(ie,de,Ne,Me){var Re=ie.history,st=Me&&Me.origin;Ne==Re.lastSelOp||st&&Re.lastSelOrigin==st&&(Re.lastModTime==Re.lastSelTime&&Re.lastOrigin==st||Bo(ie,st,St(Re.done),de))?Re.done[Re.done.length-1]=de:ss(de,Re.done),Re.lastSelTime=+new Date,Re.lastSelOrigin=st,Re.lastSelOp=Ne,Me&&Me.clearRedo!==!1&&Ii(Re.undone)}function ss(ie,de){var Ne=St(de);Ne&&Ne.ranges&&Ne.equals(ie)||de.push(ie)}function Hs(ie,de,Ne,Me){var Re=de["spans_"+ie.id],st=0;ie.iter(Math.max(ie.first,Ne),Math.min(ie.first+ie.size,Me),function(bt){bt.markedSpans&&((Re||(Re=de["spans_"+ie.id]={}))[st]=bt.markedSpans),++st})}function Qo(ie){if(!ie)return null;for(var de,Ne=0;Ne<ie.length;++Ne)ie[Ne].marker.explicitlyCleared?de||(de=ie.slice(0,Ne)):de&&de.push(ie[Ne]);return de?de.length?de:null:ie}function Ps(ie,de){var Ne=de["spans_"+ie.id];if(!Ne)return null;for(var Me=[],Re=0;Re<de.text.length;++Re)Me.push(Qo(Ne[Re]));return Me}function qa(ie,de){var Ne=Ps(ie,de),Me=Hr(ie,de);if(!Ne)return Me;if(!Me)return Ne;for(var Re=0;Re<Ne.length;++Re){var st=Ne[Re],bt=Me[Re];if(st&&bt)e:for(var jt=0;jt<bt.length;++jt){for(var Ot=bt[jt],Wt=0;Wt<st.length;++Wt)if(st[Wt].marker==Ot.marker)continue e;st.push(Ot)}else bt&&(Ne[Re]=bt)}return Ne}function ps(ie,de,Ne){for(var Me=[],Re=0;Re<ie.length;++Re){var st=ie[Re];if(st.ranges){Me.push(Ne?Ji.prototype.deepCopy.call(st):st);continue}var bt=st.changes,jt=[];Me.push({changes:jt});for(var Ot=0;Ot<bt.length;++Ot){var Wt=bt[Ot],Cn=void 0;if(jt.push({from:Wt.from,to:Wt.to,text:Wt.text}),de)for(var Yt in Wt)(Cn=Yt.match(/^spans_(\d+)$/))&&pt(de,Number(Cn[1]))>-1&&(St(jt)[Yt]=Wt[Yt],delete Wt[Yt])}}return Me}function Uu(ie,de,Ne,Me){if(Me){var Re=ie.anchor;if(Ne){var st=Mn(de,Re)<0;st!=Mn(Ne,Re)<0?(Re=de,de=Ne):st!=Mn(de,Ne)<0&&(de=Ne)}return new ai(Re,de)}else return new ai(Ne||de,de)}function qo(ie,de,Ne,Me,Re){Re==null&&(Re=ie.cm&&(ie.cm.display.shift||ie.extend)),da(ie,new Ji([Uu(ie.sel.primary(),de,Ne,Re)],0),Me)}function ia(ie,de,Ne){for(var Me=[],Re=ie.cm&&(ie.cm.display.shift||ie.extend),st=0;st<ie.sel.ranges.length;st++)Me[st]=Uu(ie.sel.ranges[st],de[st],null,Re);var bt=po(ie.cm,Me,ie.sel.primIndex);da(ie,bt,Ne)}function ua(ie,de,Ne,Me){var Re=ie.sel.ranges.slice(0);Re[de]=Ne,da(ie,po(ie.cm,Re,ie.sel.primIndex),Me)}function Za(ie,de,Ne,Me){da(ie,wo(de,Ne),Me)}function gs(ie,de,Ne){var Me={ranges:de.ranges,update:function(Re){this.ranges=[];for(var st=0;st<Re.length;st++)this.ranges[st]=new ai(Nn(ie,Re[st].anchor),Nn(ie,Re[st].head))},origin:Ne&&Ne.origin};return Ft(ie,"beforeSelectionChange",ie,Me),ie.cm&&Ft(ie.cm,"beforeSelectionChange",ie.cm,Me),Me.ranges!=de.ranges?po(ie.cm,Me.ranges,Me.ranges.length-1):de}function Lo(ie,de,Ne){var Me=ie.history.done,Re=St(Me);Re&&Re.ranges?(Me[Me.length-1]=de,ms(ie,de,Ne)):da(ie,de,Ne)}function da(ie,de,Ne){ms(ie,de,Ne),bs(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,Ne)}function ms(ie,de,Ne){(dn(ie,"beforeSelectionChange")||ie.cm&&dn(ie.cm,"beforeSelectionChange"))&&(de=gs(ie,de,Ne));var Me=Ne&&Ne.bias||(Mn(de.primary().head,ie.sel.primary().head)<0?-1:1);pl(ie,El(ie,de,Me,!0)),!(Ne&&Ne.scroll===!1)&&ie.cm&&Sc(ie.cm)}function pl(ie,de){de.equals(ie.sel)||(ie.sel=de,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,tn(ie.cm)),Lr(ie,"cursorActivity",ie))}function zl(ie){pl(ie,El(ie,ie.sel,null,!1))}function El(ie,de,Ne,Me){for(var Re,st=0;st<de.ranges.length;st++){var bt=de.ranges[st],jt=de.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[st],Ot=eu(ie,bt.anchor,jt&&jt.anchor,Ne,Me),Wt=eu(ie,bt.head,jt&&jt.head,Ne,Me);(Re||Ot!=bt.anchor||Wt!=bt.head)&&(Re||(Re=de.ranges.slice(0,st)),Re[st]=new ai(Ot,Wt))}return Re?po(ie.cm,Re,de.primIndex):de}function ql(ie,de,Ne,Me,Re){var st=fn(ie,de.line);if(st.markedSpans)for(var bt=0;bt<st.markedSpans.length;++bt){var jt=st.markedSpans[bt],Ot=jt.marker,Wt="selectLeft"in Ot?!Ot.selectLeft:Ot.inclusiveLeft,Cn="selectRight"in Ot?!Ot.selectRight:Ot.inclusiveRight;if((jt.from==null||(Wt?jt.from<=de.ch:jt.from<de.ch))&&(jt.to==null||(Cn?jt.to>=de.ch:jt.to>de.ch))){if(Re&&(Ft(Ot,"beforeCursorEnter"),Ot.explicitlyCleared))if(st.markedSpans){--bt;continue}else break;if(!Ot.atomic)continue;if(Ne){var Yt=Ot.find(Me<0?1:-1),Hn=void 0;if((Me<0?Cn:Wt)&&(Yt=Hl(ie,Yt,-Me,Yt&&Yt.line==de.line?st:null)),Yt&&Yt.line==de.line&&(Hn=Mn(Yt,Ne))&&(Me<0?Hn<0:Hn>0))return ql(ie,Yt,de,Me,Re)}var Dn=Ot.find(Me<0?-1:1);return(Me<0?Wt:Cn)&&(Dn=Hl(ie,Dn,Me,Dn.line==de.line?st:null)),Dn?ql(ie,Dn,de,Me,Re):null}}return de}function eu(ie,de,Ne,Me,Re){var st=Me||1,bt=ql(ie,de,Ne,st,Re)||!Re&&ql(ie,de,Ne,st,!0)||ql(ie,de,Ne,-st,Re)||!Re&&ql(ie,de,Ne,-st,!0);return bt||(ie.cantEdit=!0,on(ie.first,0))}function Hl(ie,de,Ne,Me){return Ne<0&&de.ch==0?de.line>ie.first?Nn(ie,on(de.line-1)):null:Ne>0&&de.ch==(Me||fn(ie,de.line)).text.length?de.line<ie.first+ie.size-1?on(de.line+1,0):null:new on(de.line,de.ch+Ne)}function ta(ie){ie.setSelection(on(ie.firstLine(),0),on(ie.lastLine()),ft)}function Ts(ie,de,Ne){var Me={canceled:!1,from:de.from,to:de.to,text:de.text,origin:de.origin,cancel:function(){return Me.canceled=!0}};return Ne&&(Me.update=function(Re,st,bt,jt){Re&&(Me.from=Nn(ie,Re)),st&&(Me.to=Nn(ie,st)),bt&&(Me.text=bt),jt!==void 0&&(Me.origin=jt)}),Ft(ie,"beforeChange",ie,Me),ie.cm&&Ft(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 Ga(ie,de,Ne){if(ie.cm){if(!ie.cm.curOp)return Bn(ie.cm,Ga)(ie,de,Ne);if(ie.cm.state.suppressEdits)return}if(!((dn(ie,"beforeChange")||ie.cm&&dn(ie.cm,"beforeChange"))&&(de=Ts(ie,de,!0),!de))){var Me=ur&&!Ne&&vi(ie,de.from,de.to);if(Me)for(var Re=Me.length-1;Re>=0;--Re)fa(ie,{from:Me[Re].from,to:Me[Re].to,text:Re?[""]:de.text,origin:de.origin});else fa(ie,de)}}function fa(ie,de){if(!(de.text.length==1&&de.text[0]==""&&Mn(de.from,de.to)==0)){var Ne=ka(ie,de);Fo(ie,de,Ne,ie.cm?ie.cm.curOp.id:NaN),tu(ie,de,Ne,Hr(ie,de));var Me=[];ns(ie,function(Re,st){!st&&pt(Me,Re.history)==-1&&(ya(Re.history,de),Me.push(Re.history)),tu(Re,de,null,Hr(Re,de))})}}function Gl(ie,de,Ne){var Me=ie.cm&&ie.cm.state.suppressEdits;if(!(Me&&!Ne)){for(var Re=ie.history,st,bt=ie.sel,jt=de=="undo"?Re.done:Re.undone,Ot=de=="undo"?Re.undone:Re.done,Wt=0;Wt<jt.length&&(st=jt[Wt],!(Ne?st.ranges&&!st.equals(ie.sel):!st.ranges));Wt++);if(Wt!=jt.length){for(Re.lastOrigin=Re.lastSelOrigin=null;;)if(st=jt.pop(),st.ranges){if(ss(st,Ot),Ne&&!st.equals(ie.sel)){da(ie,st,{clearRedo:!1});return}bt=st}else if(Me){jt.push(st);return}else break;var Cn=[];ss(bt,Ot),Ot.push({changes:Cn,generation:Re.generation}),Re.generation=st.generation||++Re.maxGeneration;for(var Yt=dn(ie,"beforeChange")||ie.cm&&dn(ie.cm,"beforeChange"),Hn=function(Er){var _r=st.changes[Er];if(_r.origin=de,Yt&&!Ts(ie,_r,!1))return jt.length=0,{};Cn.push(Vo(ie,_r));var si=Er?ka(ie,_r):St(jt);tu(ie,_r,si,qa(ie,_r)),!Er&&ie.cm&&ie.cm.scrollIntoView({from:_r.from,to:Jo(_r)});var ki=[];ns(ie,function(Si,_i){!_i&&pt(ki,Si.history)==-1&&(ya(Si.history,_r),ki.push(Si.history)),tu(Si,_r,null,qa(Si,_r))})},Dn=st.changes.length-1;Dn>=0;--Dn){var gr=Hn(Dn);if(gr)return gr.v}}}}function oc(ie,de){if(de!=0&&(ie.first+=de,ie.sel=new Ji(wt(ie.sel.ranges,function(Re){return new ai(on(Re.anchor.line+de,Re.anchor.ch),on(Re.head.line+de,Re.head.ch))}),ie.sel.primIndex),ie.cm)){ma(ie.cm,ie.first,ie.first-de,de);for(var Ne=ie.cm.display,Me=Ne.viewFrom;Me<Ne.viewTo;Me++)Po(ie.cm,Me,"gutter")}}function tu(ie,de,Ne,Me){if(ie.cm&&!ie.cm.curOp)return Bn(ie.cm,tu)(ie,de,Ne,Me);if(de.to.line<ie.first){oc(ie,de.text.length-1-(de.to.line-de.from.line));return}if(!(de.from.line>ie.lastLine())){if(de.from.line<ie.first){var Re=de.text.length-1-(ie.first-de.from.line);oc(ie,Re),de={from:on(ie.first,0),to:on(de.to.line+Re,de.to.ch),text:[St(de.text)],origin:de.origin}}var st=ie.lastLine();de.to.line>st&&(de={from:de.from,to:on(st,fn(ie,st).text.length),text:[de.text[0]],origin:de.origin}),de.removed=un(ie,de.from,de.to),Ne||(Ne=ka(ie,de)),ie.cm?Tu(ie.cm,de,Me):va(ie,de,Me),ms(ie,Ne,ft),ie.cantEdit&&eu(ie,on(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Tu(ie,de,Ne){var Me=ie.doc,Re=ie.display,st=de.from,bt=de.to,jt=!1,Ot=st.line;ie.options.lineWrapping||(Ot=Ht(Pi(fn(Me,st.line))),Me.iter(Ot,bt.line+1,function(Dn){if(Dn==Re.maxLine)return jt=!0,!0})),Me.sel.contains(de.from,de.to)>-1&&tn(ie),va(Me,de,Ne,Ha(ie)),ie.options.lineWrapping||(Me.iter(Ot,st.line+de.text.length,function(Dn){var gr=Wo(Dn);gr>Re.maxLineLength&&(Re.maxLine=Dn,Re.maxLineLength=gr,Re.maxLineChanged=!0,jt=!1)}),jt&&(ie.curOp.updateMaxLine=!0)),br(Me,st.line),Qn(ie,400);var Wt=de.text.length-(bt.line-st.line)-1;de.full?ma(ie):st.line==bt.line&&de.text.length==1&&!Na(ie.doc,de)?Po(ie,st.line,"text"):ma(ie,st.line,bt.line+1,Wt);var Cn=dn(ie,"changes"),Yt=dn(ie,"change");if(Yt||Cn){var Hn={from:st,to:bt,text:de.text,removed:de.removed,origin:de.origin};Yt&&Lr(ie,"change",ie,Hn),Cn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Hn)}ie.display.selForContextMenu=null}function $u(ie,de,Ne,Me,Re){var st;Me||(Me=Ne),Mn(Me,Ne)<0&&(st=[Me,Ne],Ne=st[0],Me=st[1]),typeof de=="string"&&(de=ie.splitLines(de)),Ga(ie,{from:Ne,to:Me,text:de,origin:Re})}function Tl(ie,de,Ne,Me){Ne<ie.line?ie.line+=Me:de<ie.line&&(ie.line=de,ie.ch=0)}function Zo(ie,de,Ne,Me){for(var Re=0;Re<ie.length;++Re){var st=ie[Re],bt=!0;if(st.ranges){st.copied||(st=ie[Re]=st.deepCopy(),st.copied=!0);for(var jt=0;jt<st.ranges.length;jt++)Tl(st.ranges[jt].anchor,de,Ne,Me),Tl(st.ranges[jt].head,de,Ne,Me);continue}for(var Ot=0;Ot<st.changes.length;++Ot){var Wt=st.changes[Ot];if(Ne<Wt.from.line)Wt.from=on(Wt.from.line+Me,Wt.from.ch),Wt.to=on(Wt.to.line+Me,Wt.to.ch);else if(de<=Wt.to.line){bt=!1;break}}bt||(ie.splice(0,Re+1),Re=0)}}function ya(ie,de){var Ne=de.from.line,Me=de.to.line,Re=de.text.length-(Me-Ne)-1;Zo(ie.done,Ne,Me,Re),Zo(ie.undone,Ne,Me,Re)}function ls(ie,de,Ne,Me){var Re=de,st=de;return typeof de=="number"?st=fn(ie,On(ie,de)):Re=Ht(de),Re==null?null:(Me(st,Re)&&ie.cm&&Po(ie.cm,Re,Ne),st)}function Sa(ie){this.lines=ie,this.parent=null;for(var de=0,Ne=0;Ne<ie.length;++Ne)ie[Ne].parent=this,de+=ie[Ne].height;this.height=de}Sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,de){for(var Ne=ie,Me=ie+de;Ne<Me;++Ne){var Re=this.lines[Ne];this.height-=Re.height,na(Re),Lr(Re,"delete")}this.lines.splice(ie,de)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,de,Ne){this.height+=Ne,this.lines=this.lines.slice(0,ie).concat(de).concat(this.lines.slice(ie));for(var Me=0;Me<de.length;++Me)de[Me].parent=this},iterN:function(ie,de,Ne){for(var Me=ie+de;ie<Me;++ie)if(Ne(this.lines[ie]))return!0}};function Go(ie){this.children=ie;for(var de=0,Ne=0,Me=0;Me<ie.length;++Me){var Re=ie[Me];de+=Re.chunkSize(),Ne+=Re.height,Re.parent=this}this.size=de,this.height=Ne,this.parent=null}Go.prototype={chunkSize:function(){return this.size},removeInner:function(ie,de){this.size-=de;for(var Ne=0;Ne<this.children.length;++Ne){var Me=this.children[Ne],Re=Me.chunkSize();if(ie<Re){var st=Math.min(de,Re-ie),bt=Me.height;if(Me.removeInner(ie,st),this.height-=bt-Me.height,Re==st&&(this.children.splice(Ne--,1),Me.parent=null),(de-=st)==0)break;ie=0}else ie-=Re}if(this.size-de<25&&(this.children.length>1||!(this.children[0]instanceof Sa))){var jt=[];this.collapse(jt),this.children=[new Sa(jt)],this.children[0].parent=this}},collapse:function(ie){for(var de=0;de<this.children.length;++de)this.children[de].collapse(ie)},insertInner:function(ie,de,Ne){this.size+=de.length,this.height+=Ne;for(var Me=0;Me<this.children.length;++Me){var Re=this.children[Me],st=Re.chunkSize();if(ie<=st){if(Re.insertInner(ie,de,Ne),Re.lines&&Re.lines.length>50){for(var bt=Re.lines.length%25+25,jt=bt;jt<Re.lines.length;){var Ot=new Sa(Re.lines.slice(jt,jt+=25));Re.height-=Ot.height,this.children.splice(++Me,0,Ot),Ot.parent=this}Re.lines=Re.lines.slice(0,bt),this.maybeSpill()}break}ie-=st}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var de=ie.children.splice(ie.children.length-5,5),Ne=new Go(de);if(ie.parent){ie.size-=Ne.size,ie.height-=Ne.height;var Re=pt(ie.parent.children,ie);ie.parent.children.splice(Re+1,0,Ne)}else{var Me=new Go(ie.children);Me.parent=ie,ie.children=[Me,Ne],ie=Me}Ne.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,de,Ne){for(var Me=0;Me<this.children.length;++Me){var Re=this.children[Me],st=Re.chunkSize();if(ie<st){var bt=Math.min(de,st-ie);if(Re.iterN(ie,bt,Ne))return!0;if((de-=bt)==0)break;ie=0}else ie-=st}}};var vs=function(ie,de,Ne){if(Ne)for(var Me in Ne)Ne.hasOwnProperty(Me)&&(this[Me]=Ne[Me]);this.doc=ie,this.node=de};vs.prototype.clear=function(){var ie=this.doc.cm,de=this.line.widgets,Ne=this.line,Me=Ht(Ne);if(!(Me==null||!de)){for(var Re=0;Re<de.length;++Re)de[Re]==this&&de.splice(Re--,1);de.length||(Ne.widgets=null);var st=tl(this);Xn(Ne,Math.max(0,Ne.height-st)),ie&&(pn(ie,function(){gl(ie,Ne,-st),Po(ie,Me,"widget")}),Lr(ie,"lineWidgetCleared",ie,this,Me))}},vs.prototype.changed=function(){var ie=this,de=this.height,Ne=this.doc.cm,Me=this.line;this.height=null;var Re=tl(this)-de;Re&&(Yn(this.doc,Me)||Xn(Me,Me.height+Re),Ne&&pn(Ne,function(){Ne.curOp.forceUpdate=!0,gl(Ne,Me,Re),Lr(Ne,"lineWidgetChanged",Ne,ie,Ht(Me))}))},En(vs);function gl(ie,de,Ne){ro(de)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Ed(ie,Ne)}function pu(ie,de,Ne,Me){var Re=new vs(ie,Ne,Me),st=ie.cm;return st&&Re.noHScroll&&(st.display.alignWidgets=!0),ls(ie,de,"widget",function(bt){var jt=bt.widgets||(bt.widgets=[]);if(Re.insertAt==null?jt.push(Re):jt.splice(Math.min(jt.length-1,Math.max(0,Re.insertAt)),0,Re),Re.line=bt,st&&!Yn(ie,bt)){var Ot=ro(bt)<ie.scrollTop;Xn(bt,bt.height+tl(Re)),Ot&&Ed(st,Re.height),st.curOp.forceUpdate=!0}return!0}),st&&Lr(st,"lineWidgetAdded",st,Re,typeof de=="number"?de:Ht(de)),Re}var cf=0,cn=function(ie,de){this.lines=[],this.type=de,this.doc=ie,this.id=++cf};cn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,de=ie&&!ie.curOp;if(de&&fl(ie),dn(this,"clear")){var Ne=this.find();Ne&&Lr(this,"clear",Ne.from,Ne.to)}for(var Me=null,Re=null,st=0;st<this.lines.length;++st){var bt=this.lines[st],jt=$i(bt.markedSpans,this);ie&&!this.collapsed?Po(ie,Ht(bt),"text"):ie&&(jt.to!=null&&(Re=Ht(bt)),jt.from!=null&&(Me=Ht(bt))),bt.markedSpans=Mi(bt.markedSpans,jt),jt.from==null&&this.collapsed&&!Yn(this.doc,bt)&&ie&&Xn(bt,Hu(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Ot=0;Ot<this.lines.length;++Ot){var Wt=Pi(this.lines[Ot]),Cn=Wo(Wt);Cn>ie.display.maxLineLength&&(ie.display.maxLine=Wt,ie.display.maxLineLength=Cn,ie.display.maxLineChanged=!0)}Me!=null&&ie&&this.collapsed&&ma(ie,Me,Re+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&zl(ie.doc)),ie&&Lr(ie,"markerCleared",ie,this,Me,Re),de&&bc(ie),this.parent&&this.parent.clear()}},cn.prototype.find=function(ie,de){ie==null&&this.type=="bookmark"&&(ie=1);for(var Ne,Me,Re=0;Re<this.lines.length;++Re){var st=this.lines[Re],bt=$i(st.markedSpans,this);if(bt.from!=null&&(Ne=on(de?st:Ht(st),bt.from),ie==-1))return Ne;if(bt.to!=null&&(Me=on(de?st:Ht(st),bt.to),ie==1))return Me}return Ne&&{from:Ne,to:Me}},cn.prototype.changed=function(){var ie=this,de=this.find(-1,!0),Ne=this,Me=this.doc.cm;!de||!Me||pn(Me,function(){var Re=de.line,st=Ht(de.line),bt=vc(Me,st);if(bt&&(Es(bt),Me.curOp.selectionChanged=Me.curOp.forceUpdate=!0),Me.curOp.updateMaxLine=!0,!Yn(Ne.doc,Re)&&Ne.height!=null){var jt=Ne.height;Ne.height=null;var Ot=tl(Ne)-jt;Ot&&Xn(Re,Re.height+Ot)}Lr(Me,"markerChanged",Me,ie)})},cn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(!de.maybeHiddenMarkers||pt(de.maybeHiddenMarkers,this)==-1)&&(de.maybeUnhiddenMarkers||(de.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},cn.prototype.detachLine=function(ie){if(this.lines.splice(pt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(de.maybeHiddenMarkers||(de.maybeHiddenMarkers=[])).push(this)}},En(cn);function Pc(ie,de,Ne,Me,Re){if(Me&&Me.shared)return hf(ie,de,Ne,Me,Re);if(ie.cm&&!ie.cm.curOp)return Bn(ie.cm,Pc)(ie,de,Ne,Me,Re);var st=new cn(ie,Re),bt=Mn(de,Ne);if(Me&&vt(Me,st,!1),bt>0||bt==0&&st.clearWhenEmpty!==!1)return st;if(st.replacedWith&&(st.collapsed=!0,st.widgetNode=Be("span",[st.replacedWith],"CodeMirror-widget"),Me.handleMouseEvents||st.widgetNode.setAttribute("cm-ignore-events","true"),Me.insertLeft&&(st.widgetNode.insertLeft=!0)),st.collapsed){if(Oi(ie,de.line,de,Ne,st)||de.line!=Ne.line&&Oi(ie,Ne.line,de,Ne,st))throw new Error("Inserting collapsed marker partially overlapping an existing one");xn()}st.addToHistory&&Fo(ie,{from:de,to:Ne,origin:"markText"},ie.sel,NaN);var jt=de.line,Ot=ie.cm,Wt;if(ie.iter(jt,Ne.line+1,function(Yt){Ot&&st.collapsed&&!Ot.options.lineWrapping&&Pi(Yt)==Ot.display.maxLine&&(Wt=!0),st.collapsed&&jt!=de.line&&Xn(Yt,0),yo(Yt,new zr(st,jt==de.line?de.ch:null,jt==Ne.line?Ne.ch:null)),++jt}),st.collapsed&&ie.iter(de.line,Ne.line+1,function(Yt){Yn(ie,Yt)&&Xn(Yt,0)}),st.clearOnEnter&&Kt(st,"beforeCursorEnter",function(){return st.clear()}),st.readOnly&&(cr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),st.collapsed&&(st.id=++cf,st.atomic=!0),Ot){if(Wt&&(Ot.curOp.updateMaxLine=!0),st.collapsed)ma(Ot,de.line,Ne.line+1);else if(st.className||st.startStyle||st.endStyle||st.css||st.attributes||st.title)for(var Cn=de.line;Cn<=Ne.line;Cn++)Po(Ot,Cn,"text");st.atomic&&zl(Ot.doc),Lr(Ot,"markerAdded",Ot,st)}return st}var Ku=function(ie,de){this.markers=ie,this.primary=de;for(var Ne=0;Ne<ie.length;++Ne)ie[Ne].parent=this};Ku.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Lr(this,"clear")}},Ku.prototype.find=function(ie,de){return this.primary.find(ie,de)},En(Ku);function hf(ie,de,Ne,Me,Re){Me=vt(Me),Me.shared=!1;var st=[Pc(ie,de,Ne,Me,Re)],bt=st[0],jt=Me.widgetNode;return ns(ie,function(Ot){jt&&(Me.widgetNode=jt.cloneNode(!0)),st.push(Pc(Ot,Nn(Ot,de),Nn(Ot,Ne),Me,Re));for(var Wt=0;Wt<Ot.linked.length;++Wt)if(Ot.linked[Wt].isParent)return;bt=St(st)}),new Ku(st,bt)}function gh(ie){return ie.findMarks(on(ie.first,0),ie.clipPos(on(ie.lastLine())),function(de){return de.parent})}function Yc(ie,de){for(var Ne=0;Ne<de.length;Ne++){var Me=de[Ne],Re=Me.find(),st=ie.clipPos(Re.from),bt=ie.clipPos(Re.to);if(Mn(st,bt)){var jt=Pc(ie,st,bt,Me.primary,Me.primary.type);Me.markers.push(jt),jt.parent=Me}}}function Md(ie){for(var de=function(Me){var Re=ie[Me],st=[Re.primary.doc];ns(Re.primary.doc,function(Ot){return st.push(Ot)});for(var bt=0;bt<Re.markers.length;bt++){var jt=Re.markers[bt];pt(st,jt.doc)==-1&&(jt.parent=null,Re.markers.splice(bt--,1))}},Ne=0;Ne<ie.length;Ne++)de(Ne)}var Kp=0,Ms=function(ie,de,Ne,Me,Re){if(!(this instanceof Ms))return new Ms(ie,de,Ne,Me,Re);Ne==null&&(Ne=0),Go.call(this,[new Sa([new Xo("",null)])]),this.first=Ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Ne;var st=on(Ne,0);this.sel=wo(st),this.history=new ji(null),this.id=++Kp,this.modeOption=de,this.lineSep=Me,this.direction=Re=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),va(this,{from:st,to:st,text:ie}),da(this,wo(st),ft)};Ms.prototype=Pe(Go.prototype,{constructor:Ms,iter:function(ie,de,Ne){Ne?this.iterN(ie-this.first,de-ie,Ne):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,de){for(var Ne=0,Me=0;Me<de.length;++Me)Ne+=de[Me].height;this.insertInner(ie-this.first,de,Ne)},remove:function(ie,de){this.removeInner(ie-this.first,de)},getValue:function(ie){var de=Gn(this,this.first,this.first+this.size);return ie===!1?de:de.join(ie||this.lineSeparator())},setValue:In(function(ie){var de=on(this.first,0),Ne=this.first+this.size-1;Ga(this,{from:de,to:on(Ne,fn(this,Ne).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Zc(this.cm,0,0),da(this,wo(de),ft)}),replaceRange:function(ie,de,Ne,Me){de=Nn(this,de),Ne=Ne?Nn(this,Ne):de,$u(this,ie,de,Ne,Me)},getRange:function(ie,de,Ne){var Me=un(this,Nn(this,ie),Nn(this,de));return Ne===!1?Me:Me.join(Ne||this.lineSeparator())},getLine:function(ie){var de=this.getLineHandle(ie);return de&&de.text},getLineHandle:function(ie){if(Wn(this,ie))return fn(this,ie)},getLineNumber:function(ie){return Ht(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=fn(this,ie)),Pi(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Nn(this,ie)},getCursor:function(ie){var de=this.sel.primary(),Ne;return ie==null||ie=="head"?Ne=de.head:ie=="anchor"?Ne=de.anchor:ie=="end"||ie=="to"||ie===!1?Ne=de.to():Ne=de.from(),Ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:In(function(ie,de,Ne){Za(this,Nn(this,typeof ie=="number"?on(ie,de||0):ie),null,Ne)}),setSelection:In(function(ie,de,Ne){Za(this,Nn(this,ie),Nn(this,de||ie),Ne)}),extendSelection:In(function(ie,de,Ne){qo(this,Nn(this,ie),de&&Nn(this,de),Ne)}),extendSelections:In(function(ie,de){ia(this,zn(this,ie),de)}),extendSelectionsBy:In(function(ie,de){var Ne=wt(this.sel.ranges,ie);ia(this,zn(this,Ne),de)}),setSelections:In(function(ie,de,Ne){if(ie.length){for(var Me=[],Re=0;Re<ie.length;Re++)Me[Re]=new ai(Nn(this,ie[Re].anchor),Nn(this,ie[Re].head));de==null&&(de=Math.min(ie.length-1,this.sel.primIndex)),da(this,po(this.cm,Me,de),Ne)}}),addSelection:In(function(ie,de,Ne){var Me=this.sel.ranges.slice(0);Me.push(new ai(Nn(this,ie),Nn(this,de||ie))),da(this,po(this.cm,Me,Me.length-1),Ne)}),getSelection:function(ie){for(var de=this.sel.ranges,Ne,Me=0;Me<de.length;Me++){var Re=un(this,de[Me].from(),de[Me].to());Ne=Ne?Ne.concat(Re):Re}return ie===!1?Ne:Ne.join(ie||this.lineSeparator())},getSelections:function(ie){for(var de=[],Ne=this.sel.ranges,Me=0;Me<Ne.length;Me++){var Re=un(this,Ne[Me].from(),Ne[Me].to());ie!==!1&&(Re=Re.join(ie||this.lineSeparator())),de[Me]=Re}return de},replaceSelection:function(ie,de,Ne){for(var Me=[],Re=0;Re<this.sel.ranges.length;Re++)Me[Re]=ie;this.replaceSelections(Me,de,Ne||"+input")},replaceSelections:In(function(ie,de,Ne){for(var Me=[],Re=this.sel,st=0;st<Re.ranges.length;st++){var bt=Re.ranges[st];Me[st]={from:bt.from(),to:bt.to(),text:this.splitLines(ie[st]),origin:Ne}}for(var jt=de&&de!="end"&&vo(this,Me,de),Ot=Me.length-1;Ot>=0;Ot--)Ga(this,Me[Ot]);jt?Lo(this,jt):this.cm&&Sc(this.cm)}),undo:In(function(){Gl(this,"undo")}),redo:In(function(){Gl(this,"redo")}),undoSelection:In(function(){Gl(this,"undo",!0)}),redoSelection:In(function(){Gl(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,de=0,Ne=0,Me=0;Me<ie.done.length;Me++)ie.done[Me].ranges||++de;for(var Re=0;Re<ie.undone.length;Re++)ie.undone[Re].ranges||++Ne;return{undo:de,redo:Ne}},clearHistory:function(){var ie=this;this.history=new ji(this.history.maxGeneration),ns(this,function(de){return de.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:ps(this.history.done),undone:ps(this.history.undone)}},setHistory:function(ie){var de=this.history=new ji(this.history.maxGeneration);de.done=ps(ie.done.slice(0),null,!0),de.undone=ps(ie.undone.slice(0),null,!0)},setGutterMarker:In(function(ie,de,Ne){return ls(this,ie,"gutter",function(Me){var Re=Me.gutterMarkers||(Me.gutterMarkers={});return Re[de]=Ne,!Ne&&Ee(Re)&&(Me.gutterMarkers=null),!0})}),clearGutter:In(function(ie){var de=this;this.iter(function(Ne){Ne.gutterMarkers&&Ne.gutterMarkers[ie]&&ls(de,Ne,"gutter",function(){return Ne.gutterMarkers[ie]=null,Ee(Ne.gutterMarkers)&&(Ne.gutterMarkers=null),!0})})}),lineInfo:function(ie){var de;if(typeof ie=="number"){if(!Wn(this,ie)||(de=ie,ie=fn(this,ie),!ie))return null}else if(de=Ht(ie),de==null)return null;return{line:de,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:In(function(ie,de,Ne){return ls(this,ie,de=="gutter"?"gutter":"class",function(Me){var Re=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass";if(!Me[Re])Me[Re]=Ne;else{if(Ce(Ne).test(Me[Re]))return!1;Me[Re]+=" "+Ne}return!0})}),removeLineClass:In(function(ie,de,Ne){return ls(this,ie,de=="gutter"?"gutter":"class",function(Me){var Re=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass",st=Me[Re];if(st)if(Ne==null)Me[Re]=null;else{var bt=st.match(Ce(Ne));if(!bt)return!1;var jt=bt.index+bt[0].length;Me[Re]=st.slice(0,bt.index)+(!bt.index||jt==st.length?"":" ")+st.slice(jt)||null}else return!1;return!0})}),addLineWidget:In(function(ie,de,Ne){return pu(this,ie,de,Ne)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,de,Ne){return Pc(this,Nn(this,ie),Nn(this,de),Ne,Ne&&Ne.type||"range")},setBookmark:function(ie,de){var Ne={replacedWith:de&&(de.nodeType==null?de.widget:de),insertLeft:de&&de.insertLeft,clearWhenEmpty:!1,shared:de&&de.shared,handleMouseEvents:de&&de.handleMouseEvents};return ie=Nn(this,ie),Pc(this,ie,ie,Ne,"bookmark")},findMarksAt:function(ie){ie=Nn(this,ie);var de=[],Ne=fn(this,ie.line).markedSpans;if(Ne)for(var Me=0;Me<Ne.length;++Me){var Re=Ne[Me];(Re.from==null||Re.from<=ie.ch)&&(Re.to==null||Re.to>=ie.ch)&&de.push(Re.marker.parent||Re.marker)}return de},findMarks:function(ie,de,Ne){ie=Nn(this,ie),de=Nn(this,de);var Me=[],Re=ie.line;return this.iter(ie.line,de.line+1,function(st){var bt=st.markedSpans;if(bt)for(var jt=0;jt<bt.length;jt++){var Ot=bt[jt];!(Ot.to!=null&&Re==ie.line&&ie.ch>=Ot.to||Ot.from==null&&Re!=ie.line||Ot.from!=null&&Re==de.line&&Ot.from>=de.ch)&&(!Ne||Ne(Ot.marker))&&Me.push(Ot.marker.parent||Ot.marker)}++Re}),Me},getAllMarks:function(){var ie=[];return this.iter(function(de){var Ne=de.markedSpans;if(Ne)for(var Me=0;Me<Ne.length;++Me)Ne[Me].from!=null&&ie.push(Ne[Me].marker)}),ie},posFromIndex:function(ie){var de,Ne=this.first,Me=this.lineSeparator().length;return this.iter(function(Re){var st=Re.text.length+Me;if(st>ie)return de=ie,!0;ie-=st,++Ne}),Nn(this,on(Ne,de))},indexFromPos:function(ie){ie=Nn(this,ie);var de=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var Ne=this.lineSeparator().length;return this.iter(this.first,ie.line,function(Me){de+=Me.text.length+Ne}),de},copy:function(ie){var de=new Ms(Gn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return de.scrollTop=this.scrollTop,de.scrollLeft=this.scrollLeft,de.sel=this.sel,de.extend=!1,ie&&(de.history.undoDepth=this.history.undoDepth,de.setHistory(this.getHistory())),de},linkedDoc:function(ie){ie||(ie={});var de=this.first,Ne=this.first+this.size;ie.from!=null&&ie.from>de&&(de=ie.from),ie.to!=null&&ie.to<Ne&&(Ne=ie.to);var Me=new Ms(Gn(this,de,Ne),ie.mode||this.modeOption,de,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}],Yc(Me,gh(this)),Me},unlinkDoc:function(ie){if(ie instanceof ra&&(ie=ie.doc),this.linked)for(var de=0;de<this.linked.length;++de){var Ne=this.linked[de];if(Ne.doc==ie){this.linked.splice(de,1),ie.unlinkDoc(this),Md(gh(this));break}}if(ie.history==this.history){var Me=[ie.id];ns(ie,function(Re){return Me.push(Re.id)},!0),ie.history=new ji(null),ie.history.done=ps(this.history.done,Me),ie.history.undone=ps(this.history.undone,Me)}},iterLinkedDocs:function(ie){ns(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Ir(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:In(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(de){return de.order=null}),this.cm&&qi(this.cm))})}),Ms.prototype.eachLine=Ms.prototype.iter;var Kh=0;function Ld(ie){var de=this;if(Zf(de),!(Xt(de,ie)||nl(de.display,ie))){An(ie),De&&(Kh=+new Date);var Ne=rl(de,ie,!0),Me=ie.dataTransfer.files;if(!(!Ne||de.isReadOnly()))if(Me&&Me.length&&window.FileReader&&window.File)for(var Re=Me.length,st=Array(Re),bt=0,jt=function(){++bt==Re&&Bn(de,function(){Ne=Nn(de.doc,Ne);var Dn={from:Ne,to:Ne,text:de.doc.splitLines(st.filter(function(gr){return gr!=null}).join(de.doc.lineSeparator())),origin:"paste"};Ga(de.doc,Dn),Lo(de.doc,wo(Nn(de.doc,Ne),Nn(de.doc,Jo(Dn))))})()},Ot=function(Dn,gr){if(de.options.allowDropFileTypes&&pt(de.options.allowDropFileTypes,Dn.type)==-1){jt();return}var Er=new FileReader;Er.onerror=function(){return jt()},Er.onload=function(){var _r=Er.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(_r)){jt();return}st[gr]=_r,jt()},Er.readAsText(Dn)},Wt=0;Wt<Me.length;Wt++)Ot(Me[Wt],Wt);else{if(de.state.draggingText&&de.doc.sel.contains(Ne)>-1){de.state.draggingText(ie),setTimeout(function(){return de.display.input.focus()},20);return}try{var Cn=ie.dataTransfer.getData("Text");if(Cn){var Yt;if(de.state.draggingText&&!de.state.draggingText.copy&&(Yt=de.listSelections()),ms(de.doc,wo(Ne,Ne)),Yt)for(var Hn=0;Hn<Yt.length;++Hn)$u(de.doc,"",Yt[Hn].anchor,Yt[Hn].head,"drag");de.replaceSelection(Cn,"around","paste"),de.display.input.focus()}}catch(Dn){}}}}function Vh(ie,de){if(De&&(!ie.state.draggingText||+new Date-Kh<100)){Tr(de);return}if(!(Xt(ie,de)||nl(ie.display,de))&&(de.dataTransfer.setData("Text",ie.getSelection()),de.dataTransfer.effectAllowed="copyMove",de.dataTransfer.setDragImage&&!Oe)){var Ne=Ae("img",null,null,"position: fixed; left: 0; top: 0;");Ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Se&&(Ne.width=Ne.height=1,ie.display.wrapper.appendChild(Ne),Ne._top=Ne.offsetTop),de.dataTransfer.setDragImage(Ne,0,0),Se&&Ne.parentNode.removeChild(Ne)}}function df(ie,de){var Ne=rl(ie,de);if(Ne){var Me=document.createDocumentFragment();zo(ie,Ne,Me),ie.display.dragCursor||(ie.display.dragCursor=Ae("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),ke(ie.display.dragCursor,Me)}}function Zf(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function ff(ie){if(document.getElementsByClassName){for(var de=document.getElementsByClassName("CodeMirror"),Ne=[],Me=0;Me<de.length;Me++){var Re=de[Me].CodeMirror;Re&&Ne.push(Re)}Ne.length&&Ne[0].operation(function(){for(var st=0;st<Ne.length;st++)ie(Ne[st])})}}var kd=!1;function Wl(){kd||(mh(),kd=!0)}function mh(){var ie;Kt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,ff(pf)},100))}),Kt(window,"blur",function(){return ff(Vc)})}function pf(ie){var de=ie.display;de.cachedCharWidth=de.cachedTextHeight=de.cachedPaddingH=null,de.scrollbarsClipped=!1,ie.setSize()}for(var Mu={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"},Cc=0;Cc<10;Cc++)Mu[Cc+48]=Mu[Cc+96]=String(Cc);for(var vh=65;vh<=90;vh++)Mu[vh]=String.fromCharCode(vh);for(var Jc=1;Jc<=12;Jc++)Mu[Jc+111]=Mu[Jc+63235]="F"+Jc;var ml={};ml.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"},ml.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"},ml.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"},ml.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"]},ml.default=ae?ml.macDefault:ml.pcDefault;function Nd(ie){var de=ie.split(/-(?!$)/);ie=de[de.length-1];for(var Ne,Me,Re,st,bt=0;bt<de.length-1;bt++){var jt=de[bt];if(/^(cmd|meta|m)$/i.test(jt))st=!0;else if(/^a(lt)?$/i.test(jt))Ne=!0;else if(/^(c|ctrl|control)$/i.test(jt))Me=!0;else if(/^s(hift)?$/i.test(jt))Re=!0;else throw new Error("Unrecognized modifier name: "+jt)}return Ne&&(ie="Alt-"+ie),Me&&(ie="Ctrl-"+ie),st&&(ie="Cmd-"+ie),Re&&(ie="Shift-"+ie),ie}function Od(ie){var de={};for(var Ne in ie)if(ie.hasOwnProperty(Ne)){var Me=ie[Ne];if(/^(name|fallthrough|(de|at)tach)$/.test(Ne))continue;if(Me=="..."){delete ie[Ne];continue}for(var Re=wt(Ne.split(" "),Nd),st=0;st<Re.length;st++){var bt=void 0,jt=void 0;st==Re.length-1?(jt=Re.join(" "),bt=Me):(jt=Re.slice(0,st+1).join(" "),bt="...");var Ot=de[jt];if(!Ot)de[jt]=bt;else if(Ot!=bt)throw new Error("Inconsistent bindings for "+jt)}delete ie[Ne]}for(var Wt in de)ie[Wt]=de[Wt];return ie}function Ul(ie,de,Ne,Me){de=Ec(de);var Re=de.call?de.call(ie,Me):de[ie];if(Re===!1)return"nothing";if(Re==="...")return"multi";if(Re!=null&&Ne(Re))return"handled";if(de.fallthrough){if(Object.prototype.toString.call(de.fallthrough)!="[object Array]")return Ul(ie,de.fallthrough,Ne,Me);for(var st=0;st<de.fallthrough.length;st++){var bt=Ul(ie,de.fallthrough[st],Ne,Me);if(bt)return bt}}}function yh(ie){var de=typeof ie=="string"?ie:Mu[ie.keyCode];return de=="Ctrl"||de=="Alt"||de=="Shift"||de=="Mod"}function Ad(ie,de,Ne){var Me=ie;return de.altKey&&Me!="Alt"&&(ie="Alt-"+ie),(pe?de.metaKey:de.ctrlKey)&&Me!="Ctrl"&&(ie="Ctrl-"+ie),(pe?de.ctrlKey:de.metaKey)&&Me!="Mod"&&(ie="Cmd-"+ie),!Ne&&de.shiftKey&&Me!="Shift"&&(ie="Shift-"+ie),ie}function jd(ie,de){if(Se&&ie.keyCode==34&&ie.char)return!1;var Ne=Mu[ie.keyCode];return Ne==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(Ne=ie.code),Ad(Ne,ie,de))}function Ec(ie){return typeof ie=="string"?ml[ie]:ie}function ol(ie,de){for(var Ne=ie.doc.sel.ranges,Me=[],Re=0;Re<Ne.length;Re++){for(var st=de(Ne[Re]);Me.length&&Mn(st.from,St(Me).to)<=0;){var bt=Me.pop();if(Mn(bt.from,st.from)<0){st.from=bt.from;break}}Me.push(st)}pn(ie,function(){for(var jt=Me.length-1;jt>=0;jt--)$u(ie.doc,"",Me[jt].from,Me[jt].to,"+delete");Sc(ie)})}function Id(ie,de,Ne){var Me=Ke(ie.text,de+Ne,Ne);return Me<0||Me>ie.text.length?null:Me}function us(ie,de,Ne){var Me=Id(ie,de.ch,Ne);return Me==null?null:new on(de.line,Me,Ne<0?"after":"before")}function ea(ie,de,Ne,Me,Re){if(ie){de.doc.direction=="rtl"&&(Re=-Re);var st=en(Ne,de.doc.direction);if(st){var bt=Re<0?St(st):st[0],jt=Re<0==(bt.level==1),Ot=jt?"after":"before",Wt;if(bt.level>0||de.doc.direction=="rtl"){var Cn=Ru(de,Ne);Wt=Re<0?Ne.text.length-1:0;var Yt=Bl(de,Cn,Wt).top;Wt=Je(function(Hn){return Bl(de,Cn,Hn).top==Yt},Re<0==(bt.level==1)?bt.from:bt.to-1,Wt),Ot=="before"&&(Wt=Id(Ne,Wt,1))}else Wt=Re<0?bt.to:bt.from;return new on(Me,Wt,Ot)}}return new on(Me,Re<0?Ne.text.length:0,Re<0?"before":"after")}function Ta(ie,de,Ne,Me){var Re=en(de,ie.doc.direction);if(!Re)return us(de,Ne,Me);Ne.ch>=de.text.length?(Ne.ch=de.text.length,Ne.sticky="before"):Ne.ch<=0&&(Ne.ch=0,Ne.sticky="after");var st=ht(Re,Ne.ch,Ne.sticky),bt=Re[st];if(ie.doc.direction=="ltr"&&bt.level%2==0&&(Me>0?bt.to>Ne.ch:bt.from<Ne.ch))return us(de,Ne,Me);var jt=function(si,ki){return Id(de,si instanceof on?si.ch:si,ki)},Ot,Wt=function(si){return ie.options.lineWrapping?(Ot=Ot||Ru(ie,de),fh(ie,de,Ot,si)):{begin:0,end:de.text.length}},Cn=Wt(Ne.sticky=="before"?jt(Ne,-1):Ne.ch);if(ie.doc.direction=="rtl"||bt.level==1){var Yt=bt.level==1==Me<0,Hn=jt(Ne,Yt?1:-1);if(Hn!=null&&(Yt?Hn<=bt.to&&Hn<=Cn.end:Hn>=bt.from&&Hn>=Cn.begin)){var Dn=Yt?"before":"after";return new on(Ne.line,Hn,Dn)}}var gr=function(si,ki,Si){for(var _i=function(Ya,Ds){return Ds?new on(Ne.line,jt(Ya,1),"before"):new on(Ne.line,Ya,"after")};si>=0&&si<Re.length;si+=ki){var mo=Re[si],mi=ki>0==(mo.level!=1),ko=mi?Si.begin:jt(Si.end,-1);if(mo.from<=ko&&ko<mo.to||(ko=mi?mo.from:jt(mo.to,-1),Si.begin<=ko&&ko<Si.end))return _i(ko,mi)}},Er=gr(st+Me,Me,Cn);if(Er)return Er;var _r=Me>0?Cn.end:jt(Cn.begin,-1);return _r!=null&&!(Me>0&&_r==de.text.length)&&(Er=gr(Me>0?0:Re.length-1,Me,Wt(_r)),Er)?Er:null}var js={selectAll:ta,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),ft)},killLine:function(ie){return ol(ie,function(de){if(de.empty()){var Ne=fn(ie.doc,de.head.line).text.length;return de.head.ch==Ne&&de.head.line<ie.lastLine()?{from:de.head,to:on(de.head.line+1,0)}:{from:de.head,to:on(de.head.line,Ne)}}else return{from:de.from(),to:de.to()}})},deleteLine:function(ie){return ol(ie,function(de){return{from:on(de.from().line,0),to:Nn(ie.doc,on(de.to().line+1,0))}})},delLineLeft:function(ie){return ol(ie,function(de){return{from:on(de.from().line,0),to:de.from()}})},delWrappedLineLeft:function(ie){return ol(ie,function(de){var Ne=ie.charCoords(de.head,"div").top+5,Me=ie.coordsChar({left:0,top:Ne},"div");return{from:Me,to:de.from()}})},delWrappedLineRight:function(ie){return ol(ie,function(de){var Ne=ie.charCoords(de.head,"div").top+5,Me=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Ne},"div");return{from:de.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(on(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(on(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(de){return nu(ie,de.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(de){return Dd(ie,de.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(de){return ru(ie,de.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(de){var Ne=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Ne},"div")},mt)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(de){var Ne=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:0,top:Ne},"div")},mt)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(de){var Ne=ie.cursorCoords(de.head,"div").top+5,Me=ie.coordsChar({left:0,top:Ne},"div");return Me.ch<ie.getLine(Me.line).search(/\S/)?Dd(ie,de.head):Me},mt)},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 de=[],Ne=ie.listSelections(),Me=ie.options.tabSize,Re=0;Re<Ne.length;Re++){var st=Ne[Re].from(),bt=nt(ie.getLine(st.line),st.ch,Me);de.push(zt(Me-bt%Me))}ie.replaceSelections(de)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return pn(ie,function(){for(var de=ie.listSelections(),Ne=[],Me=0;Me<de.length;Me++)if(de[Me].empty()){var Re=de[Me].head,st=fn(ie.doc,Re.line).text;if(st){if(Re.ch==st.length&&(Re=new on(Re.line,Re.ch-1)),Re.ch>0)Re=new on(Re.line,Re.ch+1),ie.replaceRange(st.charAt(Re.ch-1)+st.charAt(Re.ch-2),on(Re.line,Re.ch-2),Re,"+transpose");else if(Re.line>ie.doc.first){var bt=fn(ie.doc,Re.line-1).text;bt&&(Re=new on(Re.line,1),ie.replaceRange(st.charAt(0)+ie.doc.lineSeparator()+bt.charAt(bt.length-1),on(Re.line-1,bt.length-1),Re,"+transpose"))}}Ne.push(new ai(Re,Re))}ie.setSelections(Ne)})},newlineAndIndent:function(ie){return pn(ie,function(){for(var de=ie.listSelections(),Ne=de.length-1;Ne>=0;Ne--)ie.replaceRange(ie.doc.lineSeparator(),de[Ne].anchor,de[Ne].head,"+input");de=ie.listSelections();for(var Me=0;Me<de.length;Me++)ie.indentLine(de[Me].from().line,null,!0);Sc(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function nu(ie,de){var Ne=fn(ie.doc,de),Me=Pi(Ne);return Me!=Ne&&(de=Ht(Me)),ea(!0,ie,Me,de,1)}function ru(ie,de){var Ne=fn(ie.doc,de),Me=co(Ne);return Me!=Ne&&(de=Ht(Me)),ea(!0,ie,Ne,de,-1)}function Dd(ie,de){var Ne=nu(ie,de.line),Me=fn(ie.doc,Ne.line),Re=en(Me,ie.doc.direction);if(!Re||Re[0].level==0){var st=Math.max(Ne.ch,Me.text.search(/\S/)),bt=de.line==Ne.line&&de.ch<=st&&de.ch;return on(Ne.line,bt?0:st,Ne.sticky)}return Ne}function Tc(ie,de,Ne){if(typeof de=="string"&&(de=js[de],!de))return!1;ie.display.input.ensurePolled();var Me=ie.display.shift,Re=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Ne&&(ie.display.shift=!1),Re=de(ie)!=yt}finally{ie.display.shift=Me,ie.state.suppressEdits=!1}return Re}function Zh(ie,de,Ne){for(var Me=0;Me<ie.state.keyMaps.length;Me++){var Re=Ul(de,ie.state.keyMaps[Me],Ne,ie);if(Re)return Re}return ie.options.extraKeys&&Ul(de,ie.options.extraKeys,Ne,ie)||Ul(de,ie.options.keyMap,Ne,ie)}var gu=new it;function ac(ie,de,Ne,Me){var Re=ie.state.keySeq;if(Re){if(yh(de))return"handled";if(/\'$/.test(de)?ie.state.keySeq=null:gu.set(50,function(){ie.state.keySeq==Re&&(ie.state.keySeq=null,ie.display.input.reset())}),Xf(ie,Re+" "+de,Ne,Me))return!0}return Xf(ie,de,Ne,Me)}function Xf(ie,de,Ne,Me){var Re=Zh(ie,de,Me);return Re=="multi"&&(ie.state.keySeq=de),Re=="handled"&&Lr(ie,"keyHandled",ie,de,Ne),(Re=="handled"||Re=="multi")&&(An(Ne),la(ie)),!!Re}function Yf(ie,de){var Ne=jd(de,!0);return Ne?de.shiftKey&&!ie.state.keySeq?ac(ie,"Shift-"+Ne,de,function(Me){return Tc(ie,Me,!0)})||ac(ie,Ne,de,function(Me){if(typeof Me=="string"?/^go[A-Z]/.test(Me):Me.motion)return Tc(ie,Me)}):ac(ie,Ne,de,function(Me){return Tc(ie,Me)}):!1}function Jf(ie,de,Ne){return ac(ie,"'"+Ne+"'",de,function(Me){return Tc(ie,Me,!0)})}var Xh=null;function Vp(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&(de.curOp.focus=ze(),!Xt(de,ie))){De&&me<11&&ie.keyCode==27&&(ie.returnValue=!1);var Ne=ie.keyCode;de.display.shift=Ne==16||ie.shiftKey;var Me=Yf(de,ie);Se&&(Xh=Me?Ne:null,!Me&&Ne==88&&!Ci&&(ae?ie.metaKey:ie.ctrlKey)&&de.replaceSelection("",null,"cut")),tt&&!ae&&!Me&&Ne==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),Ne==18&&!/\bCodeMirror-crosshair\b/.test(de.display.lineDiv.className)&&Zp(de)}}function Zp(ie){var de=ie.display.lineDiv;Xe(de,"CodeMirror-crosshair");function Ne(Me){(Me.keyCode==18||!Me.altKey)&&(Fe(de,"CodeMirror-crosshair"),rn(document,"keyup",Ne),rn(document,"mouseover",Ne))}Kt(document,"keyup",Ne),Kt(document,"mouseover",Ne)}function Xp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Xt(this,ie)}function sc(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&!(nl(de.display,ie)||Xt(de,ie)||ie.ctrlKey&&!ie.altKey||ae&&ie.metaKey)){var Ne=ie.keyCode,Me=ie.charCode;if(Se&&Ne==Xh){Xh=null,An(ie);return}if(!(Se&&(!ie.which||ie.which<10)&&Yf(de,ie))){var Re=String.fromCharCode(Me==null?Ne:Me);Re!="\b"&&(Jf(de,ie,Re)||de.display.input.onKeyPress(ie))}}}var om=400,Yp=function(ie,de,Ne){this.time=ie,this.pos=de,this.button=Ne};Yp.prototype.compare=function(ie,de,Ne){return this.time+om>ie&&Mn(de,this.pos)==0&&Ne==this.button};var Fd,Yh;function Jp(ie,de){var Ne=+new Date;return Yh&&Yh.compare(Ne,ie,de)?(Fd=Yh=null,"triple"):Fd&&Fd.compare(Ne,ie,de)?(Yh=new Yp(Ne,ie,de),Fd=null,"double"):(Fd=new Yp(Ne,ie,de),Yh=null,"single")}function lc(ie){var de=this,Ne=de.display;if(!(Xt(de,ie)||Ne.activeTouch&&Ne.input.supportsTouch())){if(Ne.input.ensurePolled(),Ne.shift=ie.shiftKey,nl(Ne,ie)){ce||(Ne.scroller.draggable=!1,setTimeout(function(){return Ne.scroller.draggable=!0},100));return}if(!ep(de,ie)){var Me=rl(de,ie),Re=Or(ie),st=Me?Jp(Me,Re):"single";window.focus(),Re==1&&de.state.selectingText&&de.state.selectingText(ie),!(Me&&Qp(de,Re,Me,st,ie))&&(Re==1?Me?am(de,Me,st,ie):Vn(ie)==Ne.scroller&&An(ie):Re==2?(Me&&qo(de.doc,Me),setTimeout(function(){return Ne.input.focus()},20)):Re==3&&(be?de.display.input.onContextMenu(ie):Va(de)))}}}function Qp(ie,de,Ne,Me,Re){var st="Click";return Me=="double"?st="Double"+st:Me=="triple"&&(st="Triple"+st),st=(de==1?"Left":de==2?"Middle":"Right")+st,ac(ie,Ad(st,Re),Re,function(bt){if(typeof bt=="string"&&(bt=js[bt]),!bt)return!1;var jt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),jt=bt(ie,Ne)!=yt}finally{ie.state.suppressEdits=!1}return jt})}function Qf(ie,de,Ne){var Me=ie.getOption("configureMouse"),Re=Me?Me(ie,de,Ne):{};if(Re.unit==null){var st=re?Ne.shiftKey&&Ne.metaKey:Ne.altKey;Re.unit=st?"rectangle":de=="single"?"char":de=="double"?"word":"line"}return(Re.extend==null||ie.doc.extend)&&(Re.extend=ie.doc.extend||Ne.shiftKey),Re.addNew==null&&(Re.addNew=ae?Ne.metaKey:Ne.ctrlKey),Re.moveOnDrag==null&&(Re.moveOnDrag=!(ae?Ne.altKey:Ne.ctrlKey)),Re}function am(ie,de,Ne,Me){De?setTimeout(ct(La,ie),0):ie.curOp.focus=ze();var Re=Qf(ie,Ne,Me),st=ie.doc.sel,bt;ie.options.dragDrop&&Dr&&!ie.isReadOnly()&&Ne=="single"&&(bt=st.contains(de))>-1&&(Mn((bt=st.ranges[bt]).from(),de)<0||de.xRel>0)&&(Mn(bt.to(),de)>0||de.xRel<0)?qp(ie,Me,de,Re):nv(ie,Me,de,Re)}function qp(ie,de,Ne,Me){var Re=ie.display,st=!1,bt=Bn(ie,function(Wt){ce&&(Re.scroller.draggable=!1),ie.state.draggingText=!1,rn(Re.wrapper.ownerDocument,"mouseup",bt),rn(Re.wrapper.ownerDocument,"mousemove",jt),rn(Re.scroller,"dragstart",Ot),rn(Re.scroller,"drop",bt),st||(An(Wt),Me.addNew||qo(ie.doc,Ne,null,null,Me.extend),ce&&!Oe||De&&me==9?setTimeout(function(){Re.wrapper.ownerDocument.body.focus({preventScroll:!0}),Re.input.focus()},20):Re.input.focus())}),jt=function(Wt){st=st||Math.abs(de.clientX-Wt.clientX)+Math.abs(de.clientY-Wt.clientY)>=10},Ot=function(){return st=!0};ce&&(Re.scroller.draggable=!0),ie.state.draggingText=bt,bt.copy=!Me.moveOnDrag,Re.scroller.dragDrop&&Re.scroller.dragDrop(),Kt(Re.wrapper.ownerDocument,"mouseup",bt),Kt(Re.wrapper.ownerDocument,"mousemove",jt),Kt(Re.scroller,"dragstart",Ot),Kt(Re.scroller,"drop",bt),Va(ie),setTimeout(function(){return Re.input.focus()},20)}function eg(ie,de,Ne){if(Ne=="char")return new ai(de,de);if(Ne=="word")return ie.findWordAt(de);if(Ne=="line")return new ai(on(de.line,0),Nn(ie.doc,on(de.line+1,0)));var Me=Ne(ie,de);return new ai(Me.from,Me.to)}function nv(ie,de,Ne,Me){var Re=ie.display,st=ie.doc;An(de);var bt,jt,Ot=st.sel,Wt=Ot.ranges;if(Me.addNew&&!Me.extend?(jt=st.sel.contains(Ne),jt>-1?bt=Wt[jt]:bt=new ai(Ne,Ne)):(bt=st.sel.primary(),jt=st.sel.primIndex),Me.unit=="rectangle")Me.addNew||(bt=new ai(Ne,Ne)),Ne=rl(ie,de,!0,!0),jt=-1;else{var Cn=eg(ie,Ne,Me.unit);Me.extend?bt=Uu(bt,Cn.anchor,Cn.head,Me.extend):bt=Cn}Me.addNew?jt==-1?(jt=Wt.length,da(st,po(ie,Wt.concat([bt]),jt),{scroll:!1,origin:"*mouse"})):Wt.length>1&&Wt[jt].empty()&&Me.unit=="char"&&!Me.extend?(da(st,po(ie,Wt.slice(0,jt).concat(Wt.slice(jt+1)),0),{scroll:!1,origin:"*mouse"}),Ot=st.sel):ua(st,jt,bt,gt):(jt=0,da(st,new Ji([bt],0),gt),Ot=st.sel);var Yt=Ne;function Hn(Si){if(Mn(Yt,Si)!=0)if(Yt=Si,Me.unit=="rectangle"){for(var _i=[],mo=ie.options.tabSize,mi=nt(fn(st,Ne.line).text,Ne.ch,mo),ko=nt(fn(st,Si.line).text,Si.ch,mo),Ya=Math.min(mi,ko),Ds=Math.max(mi,ko),rs=Math.min(Ne.line,Si.line),Kl=Math.min(ie.lastLine(),Math.max(Ne.line,Si.line));rs<=Kl;rs++){var vl=fn(st,rs).text,ks=Nt(vl,Ya,mo);Ya==Ds?_i.push(new ai(on(rs,ks),on(rs,ks))):vl.length>ks&&_i.push(new ai(on(rs,ks),on(rs,Nt(vl,Ds,mo))))}_i.length||_i.push(new ai(Ne,Ne)),da(st,po(ie,Ot.ranges.slice(0,jt).concat(_i),jt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Si)}else{var iu=bt,al=eg(ie,Si,Me.unit),Ns=iu.anchor,oa;Mn(al.anchor,Ns)>0?(oa=al.head,Ns=yn(iu.from(),al.anchor)):(oa=al.anchor,Ns=gn(iu.to(),al.head));var cs=Ot.ranges.slice(0);cs[jt]=sm(ie,new ai(Nn(st,Ns),oa)),da(st,po(ie,cs,jt),gt)}}var Dn=Re.wrapper.getBoundingClientRect(),gr=0;function Er(Si){var _i=++gr,mo=rl(ie,Si,!0,Me.unit=="rectangle");if(mo)if(Mn(mo,Yt)!=0){ie.curOp.focus=ze(),Hn(mo);var mi=Do(Re,st);(mo.line>=mi.to||mo.line<mi.from)&&setTimeout(Bn(ie,function(){gr==_i&&Er(Si)}),150)}else{var ko=Si.clientY<Dn.top?-20:Si.clientY>Dn.bottom?20:0;ko&&setTimeout(Bn(ie,function(){gr==_i&&(Re.scroller.scrollTop+=ko,Er(Si))}),50)}}function _r(Si){ie.state.selectingText=!1,gr=1/0,Si&&(An(Si),Re.input.focus()),rn(Re.wrapper.ownerDocument,"mousemove",si),rn(Re.wrapper.ownerDocument,"mouseup",ki),st.history.lastSelOrigin=null}var si=Bn(ie,function(Si){Si.buttons===0||!Or(Si)?_r(Si):Er(Si)}),ki=Bn(ie,_r);ie.state.selectingText=ki,Kt(Re.wrapper.ownerDocument,"mousemove",si),Kt(Re.wrapper.ownerDocument,"mouseup",ki)}function sm(ie,de){var Ne=de.anchor,Me=de.head,Re=fn(ie.doc,Ne.line);if(Mn(Ne,Me)==0&&Ne.sticky==Me.sticky)return de;var st=en(Re);if(!st)return de;var bt=ht(st,Ne.ch,Ne.sticky),jt=st[bt];if(jt.from!=Ne.ch&&jt.to!=Ne.ch)return de;var Ot=bt+(jt.from==Ne.ch==(jt.level!=1)?0:1);if(Ot==0||Ot==st.length)return de;var Wt;if(Me.line!=Ne.line)Wt=(Me.line-Ne.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var Cn=ht(st,Me.ch,Me.sticky),Yt=Cn-bt||(Me.ch-Ne.ch)*(jt.level==1?-1:1);Cn==Ot-1||Cn==Ot?Wt=Yt<0:Wt=Yt>0}var Hn=st[Ot+(Wt?-1:0)],Dn=Wt==(Hn.level==1),gr=Dn?Hn.from:Hn.to,Er=Dn?"after":"before";return Ne.ch==gr&&Ne.sticky==Er?de:new ai(new on(Ne.line,gr,Er),Me)}function qf(ie,de,Ne,Me){var Re,st;if(de.touches)Re=de.touches[0].clientX,st=de.touches[0].clientY;else try{Re=de.clientX,st=de.clientY}catch(Hn){return!1}if(Re>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;Me&&An(de);var bt=ie.display,jt=bt.lineDiv.getBoundingClientRect();if(st>jt.bottom||!dn(ie,Ne))return tr(de);st-=jt.top-bt.viewOffset;for(var Ot=0;Ot<ie.display.gutterSpecs.length;++Ot){var Wt=bt.gutters.childNodes[Ot];if(Wt&&Wt.getBoundingClientRect().right>=Re){var Cn=kn(ie.doc,st),Yt=ie.display.gutterSpecs[Ot];return Ft(ie,Ne,ie,Cn,Yt.className,de),tr(de)}}}function ep(ie,de){return qf(ie,de,"gutterClick",!0)}function tp(ie,de){nl(ie.display,de)||lm(ie,de)||Xt(ie,de,"contextmenu")||be||ie.display.input.onContextMenu(de)}function lm(ie,de){return dn(ie,"gutterContextMenu")?qf(ie,de,"gutterContextMenu",!1):!1}function np(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),_a(ie)}var Sh={toString:function(){return"CodeMirror.Init"}},tg={},gf={};function um(ie){var de=ie.optionHandlers;function Ne(Me,Re,st,bt){ie.defaults[Me]=Re,st&&(de[Me]=bt?function(jt,Ot,Wt){Wt!=Sh&&st(jt,Ot,Wt)}:st)}ie.defineOption=Ne,ie.Init=Sh,Ne("value","",function(Me,Re){return Me.setValue(Re)},!0),Ne("mode",null,function(Me,Re){Me.doc.modeOption=Re,Hi(Me)},!0),Ne("indentUnit",2,Hi,!0),Ne("indentWithTabs",!1),Ne("smartIndent",!0),Ne("tabSize",4,function(Me){Uo(Me),_a(Me),ma(Me)},!0),Ne("lineSeparator",null,function(Me,Re){if(Me.doc.lineSep=Re,!!Re){var st=[],bt=Me.doc.first;Me.doc.iter(function(Ot){for(var Wt=0;;){var Cn=Ot.text.indexOf(Re,Wt);if(Cn==-1)break;Wt=Cn+Re.length,st.push(on(bt,Cn))}bt++});for(var jt=st.length-1;jt>=0;jt--)$u(Me.doc,Re,st[jt],on(st[jt].line,st[jt].ch+Re.length))}}),Ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Me,Re,st){Me.state.specialChars=new RegExp(Re.source+(Re.test(" ")?"":"| "),"g"),st!=Sh&&Me.refresh()}),Ne("specialCharPlaceholder",Fa,function(Me){return Me.refresh()},!0),Ne("electricChars",!0),Ne("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Ne("spellcheck",!1,function(Me,Re){return Me.getInputField().spellcheck=Re},!0),Ne("autocorrect",!1,function(Me,Re){return Me.getInputField().autocorrect=Re},!0),Ne("autocapitalize",!1,function(Me,Re){return Me.getInputField().autocapitalize=Re},!0),Ne("rtlMoveVisually",!le),Ne("wholeLineUpdateBefore",!0),Ne("theme","default",function(Me){np(Me),ui(Me)},!0),Ne("keyMap","default",function(Me,Re,st){var bt=Ec(Re),jt=st!=Sh&&Ec(st);jt&&jt.detach&&jt.detach(Me,bt),bt.attach&&bt.attach(Me,jt||null)}),Ne("extraKeys",null),Ne("configureMouse",null),Ne("lineWrapping",!1,cm,!0),Ne("gutters",[],function(Me,Re){Me.display.gutterSpecs=Ni(Re,Me.options.lineNumbers),ui(Me)},!0),Ne("fixedGutter",!0,function(Me,Re){Me.display.gutters.style.left=Re?ph(Me.display)+"px":"0",Me.refresh()},!0),Ne("coverGutterNextToScrollbar",!1,function(Me){return wc(Me)},!0),Ne("scrollbarStyle","native",function(Me){uf(Me),wc(Me),Me.display.scrollbars.setScrollTop(Me.doc.scrollTop),Me.display.scrollbars.setScrollLeft(Me.doc.scrollLeft)},!0),Ne("lineNumbers",!1,function(Me,Re){Me.display.gutterSpecs=Ni(Me.options.gutters,Re),ui(Me)},!0),Ne("firstLineNumber",1,ui,!0),Ne("lineNumberFormatter",function(Me){return Me},ui,!0),Ne("showCursorWhenSelecting",!1,ws,!0),Ne("resetSelectionOnContextMenu",!0),Ne("lineWiseCopyCut",!0),Ne("pasteLinesPerSelection",!0),Ne("selectionsMayTouch",!1),Ne("readOnly",!1,function(Me,Re){Re=="nocursor"&&(Vc(Me),Me.display.input.blur()),Me.display.input.readOnlyChanged(Re)}),Ne("screenReaderLabel",null,function(Me,Re){Re=Re===""?null:Re,Me.display.input.screenReaderLabelChanged(Re)}),Ne("disableInput",!1,function(Me,Re){Re||Me.display.input.reset()},!0),Ne("dragDrop",!0,rp),Ne("allowDropFileTypes",null),Ne("cursorBlinkRate",530),Ne("cursorScrollMargin",0),Ne("cursorHeight",1,ws,!0),Ne("singleCursorHeightPerLine",!0,ws,!0),Ne("workTime",100),Ne("workDelay",100),Ne("flattenSpans",!0,Uo,!0),Ne("addModeClass",!1,Uo,!0),Ne("pollInterval",100),Ne("undoDepth",200,function(Me,Re){return Me.doc.history.undoDepth=Re}),Ne("historyEventDelay",1250),Ne("viewportMargin",10,function(Me){return Me.refresh()},!0),Ne("maxHighlightLength",1e4,Uo,!0),Ne("moveInputWithCursor",!0,function(Me,Re){Re||Me.display.input.resetPosition()}),Ne("tabindex",null,function(Me,Re){return Me.display.input.getField().tabIndex=Re||""}),Ne("autofocus",null),Ne("direction","ltr",function(Me,Re){return Me.doc.setDirection(Re)},!0),Ne("phrases",null)}function rp(ie,de,Ne){var Me=Ne&&Ne!=Sh;if(!de!=!Me){var Re=ie.display.dragFunctions,st=de?Kt:rn;st(ie.display.scroller,"dragstart",Re.start),st(ie.display.scroller,"dragenter",Re.enter),st(ie.display.scroller,"dragover",Re.over),st(ie.display.scroller,"dragleave",Re.leave),st(ie.display.scroller,"drop",Re.drop)}}function cm(ie){ie.options.lineWrapping?(Xe(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Fe(ie.display.wrapper,"CodeMirror-wrap"),_o(ie)),Gi(ie),ma(ie),_a(ie),setTimeout(function(){return wc(ie)},100)}function ra(ie,de){var Ne=this;if(!(this instanceof ra))return new ra(ie,de);this.options=de=de?vt(de):{},vt(tg,de,!1);var Me=de.value;typeof Me=="string"?Me=new Ms(Me,de.mode,null,de.lineSeparator,de.direction):de.mode&&(Me.modeOption=de.mode),this.doc=Me;var Re=new ra.inputStyles[de.inputStyle](this),st=this.display=new Ei(ie,Me,Re,de);st.wrapper.CodeMirror=this,np(this),de.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),uf(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 it,keySeq:null,specialChars:null},de.autofocus&&!ee&&st.input.focus(),De&&me<11&&setTimeout(function(){return Ne.display.input.reset(!0)},20),Bd(this),Wl(),fl(this),this.curOp.forceUpdate=!0,Qi(this,Me),de.autofocus&&!ee||this.hasFocus()?setTimeout(function(){Ne.hasFocus()&&!Ne.state.focused&&$o(Ne)},20):Vc(this);for(var bt in gf)gf.hasOwnProperty(bt)&&gf[bt](this,de[bt],Sh);oi(this),de.finishInit&&de.finishInit(this);for(var jt=0;jt<Jh.length;++jt)Jh[jt](this);bc(this),ce&&de.lineWrapping&&getComputedStyle(st.lineDiv).textRendering=="optimizelegibility"&&(st.lineDiv.style.textRendering="auto")}ra.defaults=tg,ra.optionHandlers=gf;function Bd(ie){var de=ie.display;Kt(de.scroller,"mousedown",Bn(ie,lc)),De&&me<11?Kt(de.scroller,"dblclick",Bn(ie,function(Ot){if(!Xt(ie,Ot)){var Wt=rl(ie,Ot);if(!(!Wt||ep(ie,Ot)||nl(ie.display,Ot))){An(Ot);var Cn=ie.findWordAt(Wt);qo(ie.doc,Cn.anchor,Cn.head)}}})):Kt(de.scroller,"dblclick",function(Ot){return Xt(ie,Ot)||An(Ot)}),Kt(de.scroller,"contextmenu",function(Ot){return tp(ie,Ot)}),Kt(de.input.getField(),"contextmenu",function(Ot){de.scroller.contains(Ot.target)||tp(ie,Ot)});var Ne,Me={end:0};function Re(){de.activeTouch&&(Ne=setTimeout(function(){return de.activeTouch=null},1e3),Me=de.activeTouch,Me.end=+new Date)}function st(Ot){if(Ot.touches.length!=1)return!1;var Wt=Ot.touches[0];return Wt.radiusX<=1&&Wt.radiusY<=1}function bt(Ot,Wt){if(Wt.left==null)return!0;var Cn=Wt.left-Ot.left,Yt=Wt.top-Ot.top;return Cn*Cn+Yt*Yt>20*20}Kt(de.scroller,"touchstart",function(Ot){if(!Xt(ie,Ot)&&!st(Ot)&&!ep(ie,Ot)){de.input.ensurePolled(),clearTimeout(Ne);var Wt=+new Date;de.activeTouch={start:Wt,moved:!1,prev:Wt-Me.end<=300?Me:null},Ot.touches.length==1&&(de.activeTouch.left=Ot.touches[0].pageX,de.activeTouch.top=Ot.touches[0].pageY)}}),Kt(de.scroller,"touchmove",function(){de.activeTouch&&(de.activeTouch.moved=!0)}),Kt(de.scroller,"touchend",function(Ot){var Wt=de.activeTouch;if(Wt&&!nl(de,Ot)&&Wt.left!=null&&!Wt.moved&&new Date-Wt.start<300){var Cn=ie.coordsChar(de.activeTouch,"page"),Yt;!Wt.prev||bt(Wt,Wt.prev)?Yt=new ai(Cn,Cn):!Wt.prev.prev||bt(Wt,Wt.prev.prev)?Yt=ie.findWordAt(Cn):Yt=new ai(on(Cn.line,0),Nn(ie.doc,on(Cn.line+1,0))),ie.setSelection(Yt.anchor,Yt.head),ie.focus(),An(Ot)}Re()}),Kt(de.scroller,"touchcancel",Re),Kt(de.scroller,"scroll",function(){de.scroller.clientHeight&&(Xc(ie,de.scroller.scrollTop),Wu(ie,de.scroller.scrollLeft,!0),Ft(ie,"scroll",ie))}),Kt(de.scroller,"mousewheel",function(Ot){return Xi(ie,Ot)}),Kt(de.scroller,"DOMMouseScroll",function(Ot){return Xi(ie,Ot)}),Kt(de.wrapper,"scroll",function(){return de.wrapper.scrollTop=de.wrapper.scrollLeft=0}),de.dragFunctions={enter:function(Ot){Xt(ie,Ot)||Tr(Ot)},over:function(Ot){Xt(ie,Ot)||(df(ie,Ot),Tr(Ot))},start:function(Ot){return Vh(ie,Ot)},drop:Bn(ie,Ld),leave:function(Ot){Xt(ie,Ot)||Zf(ie)}};var jt=de.input.getField();Kt(jt,"keyup",function(Ot){return Xp.call(ie,Ot)}),Kt(jt,"keydown",Bn(ie,Vp)),Kt(jt,"keypress",Bn(ie,sc)),Kt(jt,"focus",function(Ot){return $o(ie,Ot)}),Kt(jt,"blur",function(Ot){return Vc(ie,Ot)})}var Jh=[];ra.defineInitHook=function(ie){return Jh.push(ie)};function Is(ie,de,Ne,Me){var Re=ie.doc,st;Ne==null&&(Ne="add"),Ne=="smart"&&(Re.mode.indent?st=Br(ie,de).state:Ne="prev");var bt=ie.options.tabSize,jt=fn(Re,de),Ot=nt(jt.text,null,bt);jt.stateAfter&&(jt.stateAfter=null);var Wt=jt.text.match(/^\s*/)[0],Cn;if(!Me&&!/\S/.test(jt.text))Cn=0,Ne="not";else if(Ne=="smart"&&(Cn=Re.mode.indent(st,jt.text.slice(Wt.length),jt.text),Cn==yt||Cn>150)){if(!Me)return;Ne="prev"}Ne=="prev"?de>Re.first?Cn=nt(fn(Re,de-1).text,null,bt):Cn=0:Ne=="add"?Cn=Ot+ie.options.indentUnit:Ne=="subtract"?Cn=Ot-ie.options.indentUnit:typeof Ne=="number"&&(Cn=Ot+Ne),Cn=Math.max(0,Cn);var Yt="",Hn=0;if(ie.options.indentWithTabs)for(var Dn=Math.floor(Cn/bt);Dn;--Dn)Hn+=bt,Yt+=" ";if(Hn<Cn&&(Yt+=zt(Cn-Hn)),Yt!=Wt)return $u(Re,Yt,on(de,0),on(de,Wt.length),"+input"),jt.stateAfter=null,!0;for(var gr=0;gr<Re.sel.ranges.length;gr++){var Er=Re.sel.ranges[gr];if(Er.head.line==de&&Er.head.ch<Wt.length){var _r=on(de,Wt.length);ua(Re,gr,new ai(_r,_r));break}}}var $l=null;function Qh(ie){$l=ie}function mf(ie,de,Ne,Me,Re){var st=ie.doc;ie.display.shift=!1,Me||(Me=st.sel);var bt=+new Date-200,jt=Re=="paste"||ie.state.pasteIncoming>bt,Ot=Ir(de),Wt=null;if(jt&&Me.ranges.length>1)if($l&&$l.text.join(`
|
|
|
`)==de){if(Me.ranges.length%$l.text.length==0){Wt=[];for(var Cn=0;Cn<$l.text.length;Cn++)Wt.push(st.splitLines($l.text[Cn]))}}else Ot.length==Me.ranges.length&&ie.options.pasteLinesPerSelection&&(Wt=wt(Ot,function(si){return[si]}));for(var Yt=ie.curOp.updateInput,Hn=Me.ranges.length-1;Hn>=0;Hn--){var Dn=Me.ranges[Hn],gr=Dn.from(),Er=Dn.to();Dn.empty()&&(Ne&&Ne>0?gr=on(gr.line,gr.ch-Ne):ie.state.overwrite&&!jt?Er=on(Er.line,Math.min(fn(st,Er.line).text.length,Er.ch+St(Ot).length)):jt&&$l&&$l.lineWise&&$l.text.join(`
|
|
|
`)==Ot.join(`
|
|
|
`)&&(gr=Er=on(gr.line,0)));var _r={from:gr,to:Er,text:Wt?Wt[Hn%Wt.length]:Ot,origin:Re||(jt?"paste":ie.state.cutIncoming>bt?"cut":"+input")};Ga(ie.doc,_r),Lr(ie,"inputRead",ie,_r)}de&&!jt&&rg(ie,de),Sc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Yt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function ng(ie,de){var Ne=ie.clipboardData&&ie.clipboardData.getData("Text");if(Ne)return ie.preventDefault(),!de.isReadOnly()&&!de.options.disableInput&&pn(de,function(){return mf(de,Ne,0,null,"paste")}),!0}function rg(ie,de){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var Ne=ie.doc.sel,Me=Ne.ranges.length-1;Me>=0;Me--){var Re=Ne.ranges[Me];if(!(Re.head.ch>100||Me&&Ne.ranges[Me-1].head.line==Re.head.line)){var st=ie.getModeAt(Re.head),bt=!1;if(st.electricChars){for(var jt=0;jt<st.electricChars.length;jt++)if(de.indexOf(st.electricChars.charAt(jt))>-1){bt=Is(ie,Re.head.line,"smart");break}}else st.electricInput&&st.electricInput.test(fn(ie.doc,Re.head.line).text.slice(0,Re.head.ch))&&(bt=Is(ie,Re.head.line,"smart"));bt&&Lr(ie,"electricInput",ie,Re.head.line)}}}function ig(ie){for(var de=[],Ne=[],Me=0;Me<ie.doc.sel.ranges.length;Me++){var Re=ie.doc.sel.ranges[Me].head.line,st={anchor:on(Re,0),head:on(Re+1,0)};Ne.push(st),de.push(ie.getRange(st.anchor,st.head))}return{text:de,ranges:Ne}}function og(ie,de,Ne,Me){ie.setAttribute("autocorrect",Ne?"":"off"),ie.setAttribute("autocapitalize",Me?"":"off"),ie.setAttribute("spellcheck",!!de)}function ag(){var ie=Ae("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),de=Ae("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ce?ie.style.width="1000px":ie.setAttribute("wrap","off"),fe&&(ie.style.border="1px solid black"),og(ie),de}function xh(ie){var de=ie.optionHandlers,Ne=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Me,Re){var st=this.options,bt=st[Me];st[Me]==Re&&Me!="mode"||(st[Me]=Re,de.hasOwnProperty(Me)&&Bn(this,de[Me])(this,Re,bt),Ft(this,"optionChange",this,Me))},getOption:function(Me){return this.options[Me]},getDoc:function(){return this.doc},addKeyMap:function(Me,Re){this.state.keyMaps[Re?"push":"unshift"](Ec(Me))},removeKeyMap:function(Me){for(var Re=this.state.keyMaps,st=0;st<Re.length;++st)if(Re[st]==Me||Re[st].name==Me)return Re.splice(st,1),!0},addOverlay:_n(function(Me,Re){var st=Me.token?Me:ie.getMode(this.options,Me);if(st.startState)throw new Error("Overlays may not be stateful.");at(this.state.overlays,{mode:st,modeSpec:Me,opaque:Re&&Re.opaque,priority:Re&&Re.priority||0},function(bt){return bt.priority}),this.state.modeGen++,ma(this)}),removeOverlay:_n(function(Me){for(var Re=this.state.overlays,st=0;st<Re.length;++st){var bt=Re[st].modeSpec;if(bt==Me||typeof Me=="string"&&bt.name==Me){Re.splice(st,1),this.state.modeGen++,ma(this);return}}}),indentLine:_n(function(Me,Re,st){typeof Re!="string"&&typeof Re!="number"&&(Re==null?Re=this.options.smartIndent?"smart":"prev":Re=Re?"add":"subtract"),Wn(this.doc,Me)&&Is(this,Me,Re,st)}),indentSelection:_n(function(Me){for(var Re=this.doc.sel.ranges,st=-1,bt=0;bt<Re.length;bt++){var jt=Re[bt];if(jt.empty())jt.head.line>st&&(Is(this,jt.head.line,Me,!0),st=jt.head.line,bt==this.doc.sel.primIndex&&Sc(this));else{var Ot=jt.from(),Wt=jt.to(),Cn=Math.max(st,Ot.line);st=Math.min(this.lastLine(),Wt.line-(Wt.ch?0:1))+1;for(var Yt=Cn;Yt<st;++Yt)Is(this,Yt,Me);var Hn=this.doc.sel.ranges;Ot.ch==0&&Re.length==Hn.length&&Hn[bt].from().ch>0&&ua(this.doc,bt,new ai(Ot,Hn[bt].to()),ft)}}}),getTokenAt:function(Me,Re){return mr(this,Me,Re)},getLineTokens:function(Me,Re){return mr(this,on(Me),Re,!0)},getTokenTypeAt:function(Me){Me=Nn(this.doc,Me);var Re=Yr(this,fn(this.doc,Me.line)),st=0,bt=(Re.length-1)/2,jt=Me.ch,Ot;if(jt==0)Ot=Re[2];else for(;;){var Wt=st+bt>>1;if((Wt?Re[Wt*2-1]:0)>=jt)bt=Wt;else if(Re[Wt*2+1]<jt)st=Wt+1;else{Ot=Re[Wt*2+2];break}}var Cn=Ot?Ot.indexOf("overlay "):-1;return Cn<0?Ot:Cn==0?null:Ot.slice(0,Cn-1)},getModeAt:function(Me){var Re=this.doc.mode;return Re.innerMode?ie.innerMode(Re,this.getTokenAt(Me).state).mode:Re},getHelper:function(Me,Re){return this.getHelpers(Me,Re)[0]},getHelpers:function(Me,Re){var st=[];if(!Ne.hasOwnProperty(Re))return st;var bt=Ne[Re],jt=this.getModeAt(Me);if(typeof jt[Re]=="string")bt[jt[Re]]&&st.push(bt[jt[Re]]);else if(jt[Re])for(var Ot=0;Ot<jt[Re].length;Ot++){var Wt=bt[jt[Re][Ot]];Wt&&st.push(Wt)}else jt.helperType&&bt[jt.helperType]?st.push(bt[jt.helperType]):bt[jt.name]&&st.push(bt[jt.name]);for(var Cn=0;Cn<bt._global.length;Cn++){var Yt=bt._global[Cn];Yt.pred(jt,this)&&pt(st,Yt.val)==-1&&st.push(Yt.val)}return st},getStateAfter:function(Me,Re){var st=this.doc;return Me=On(st,Me==null?st.first+st.size-1:Me),Br(this,Me+1,Re).state},cursorCoords:function(Me,Re){var st,bt=this.doc.sel.primary();return Me==null?st=bt.head:typeof Me=="object"?st=Nn(this.doc,Me):st=Me?bt.from():bt.to(),Ma(this,st,Re||"page")},charCoords:function(Me,Re){return Rl(this,Nn(this.doc,Me),Re||"page")},coordsChar:function(Me,Re){return Me=_u(this,Me,Re||"page"),$c(this,Me.left,Me.top)},lineAtHeight:function(Me,Re){return Me=_u(this,{top:Me,left:0},Re||"page").top,kn(this.doc,Me+this.display.viewOffset)},heightAtLine:function(Me,Re,st){var bt=!1,jt;if(typeof Me=="number"){var Ot=this.doc.first+this.doc.size-1;Me<this.doc.first?Me=this.doc.first:Me>Ot&&(Me=Ot,bt=!0),jt=fn(this.doc,Me)}else jt=Me;return za(this,jt,{top:0,left:0},Re||"page",st||bt).top+(bt?this.doc.height-ro(jt):0)},defaultTextHeight:function(){return Hu(this.display)},defaultCharWidth:function(){return ic(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Me,Re,st,bt,jt){var Ot=this.display;Me=Ma(this,Nn(this.doc,Me));var Wt=Me.bottom,Cn=Me.left;if(Re.style.position="absolute",Re.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Re),Ot.sizer.appendChild(Re),bt=="over")Wt=Me.top;else if(bt=="above"||bt=="near"){var Yt=Math.max(Ot.wrapper.clientHeight,this.doc.height),Hn=Math.max(Ot.sizer.clientWidth,Ot.lineSpace.clientWidth);(bt=="above"||Me.bottom+Re.offsetHeight>Yt)&&Me.top>Re.offsetHeight?Wt=Me.top-Re.offsetHeight:Me.bottom+Re.offsetHeight<=Yt&&(Wt=Me.bottom),Cn+Re.offsetWidth>Hn&&(Cn=Hn-Re.offsetWidth)}Re.style.top=Wt+"px",Re.style.left=Re.style.right="",jt=="right"?(Cn=Ot.sizer.clientWidth-Re.offsetWidth,Re.style.right="0px"):(jt=="left"?Cn=0:jt=="middle"&&(Cn=(Ot.sizer.clientWidth-Re.offsetWidth)/2),Re.style.left=Cn+"px"),st&&$h(this,{left:Cn,top:Wt,right:Cn+Re.offsetWidth,bottom:Wt+Re.offsetHeight})},triggerOnKeyDown:_n(Vp),triggerOnKeyPress:_n(sc),triggerOnKeyUp:Xp,triggerOnMouseDown:_n(lc),execCommand:function(Me){if(js.hasOwnProperty(Me))return js[Me].call(null,this)},triggerElectric:_n(function(Me){rg(this,Me)}),findPosH:function(Me,Re,st,bt){var jt=1;Re<0&&(jt=-1,Re=-Re);for(var Ot=Nn(this.doc,Me),Wt=0;Wt<Re&&(Ot=vf(this.doc,Ot,jt,st,bt),!Ot.hitSide);++Wt);return Ot},moveH:_n(function(Me,Re){var st=this;this.extendSelectionsBy(function(bt){return st.display.shift||st.doc.extend||bt.empty()?vf(st.doc,bt.head,Me,Re,st.options.rtlMoveVisually):Me<0?bt.from():bt.to()},mt)}),deleteH:_n(function(Me,Re){var st=this.doc.sel,bt=this.doc;st.somethingSelected()?bt.replaceSelection("",null,"+delete"):ol(this,function(jt){var Ot=vf(bt,jt.head,Me,Re,!1);return Me<0?{from:Ot,to:jt.head}:{from:jt.head,to:Ot}})}),findPosV:function(Me,Re,st,bt){var jt=1,Ot=bt;Re<0&&(jt=-1,Re=-Re);for(var Wt=Nn(this.doc,Me),Cn=0;Cn<Re;++Cn){var Yt=Ma(this,Wt,"div");if(Ot==null?Ot=Yt.left:Yt.left=Ot,Wt=wh(this,Yt,jt,st),Wt.hitSide)break}return Wt},moveV:_n(function(Me,Re){var st=this,bt=this.doc,jt=[],Ot=!this.display.shift&&!bt.extend&&bt.sel.somethingSelected();if(bt.extendSelectionsBy(function(Cn){if(Ot)return Me<0?Cn.from():Cn.to();var Yt=Ma(st,Cn.head,"div");Cn.goalColumn!=null&&(Yt.left=Cn.goalColumn),jt.push(Yt.left);var Hn=wh(st,Yt,Me,Re);return Re=="page"&&Cn==bt.sel.primary()&&Ed(st,Rl(st,Hn,"div").top-Yt.top),Hn},mt),jt.length)for(var Wt=0;Wt<bt.sel.ranges.length;Wt++)bt.sel.ranges[Wt].goalColumn=jt[Wt]}),findWordAt:function(Me){var Re=this.doc,st=fn(Re,Me.line).text,bt=Me.ch,jt=Me.ch;if(st){var Ot=this.getHelper(Me,"wordChars");(Me.sticky=="before"||jt==st.length)&&bt?--bt:++jt;for(var Wt=st.charAt(bt),Cn=Ze(Wt,Ot)?function(Yt){return Ze(Yt,Ot)}:/\s/.test(Wt)?function(Yt){return/\s/.test(Yt)}:function(Yt){return!/\s/.test(Yt)&&!Ze(Yt)};bt>0&&Cn(st.charAt(bt-1));)--bt;for(;jt<st.length&&Cn(st.charAt(jt));)++jt}return new ai(on(Me.line,bt),on(Me.line,jt))},toggleOverwrite:function(Me){Me!=null&&Me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Xe(this.display.cursorDiv,"CodeMirror-overwrite"):Fe(this.display.cursorDiv,"CodeMirror-overwrite"),Ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ze()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:_n(function(Me,Re){Zc(this,Me,Re)}),getScrollInfo:function(){var Me=this.display.scroller;return{left:Me.scrollLeft,top:Me.scrollTop,height:Me.scrollHeight-_s(this)-this.display.barHeight,width:Me.scrollWidth-_s(this)-this.display.barWidth,clientHeight:Hc(this),clientWidth:dl(this)}},scrollIntoView:_n(function(Me,Re){Me==null?(Me={from:this.doc.sel.primary().head,to:null},Re==null&&(Re=this.options.cursorScrollMargin)):typeof Me=="number"?Me={from:on(Me,0),to:null}:Me.from==null&&(Me={from:Me,to:null}),Me.to||(Me.to=Me.from),Me.margin=Re||0,Me.from.line!=null?Ko(this,Me):sf(this,Me.from,Me.to,Me.margin)}),setSize:_n(function(Me,Re){var st=this,bt=function(Ot){return typeof Ot=="number"||/^\d+$/.test(String(Ot))?Ot+"px":Ot};Me!=null&&(this.display.wrapper.style.width=bt(Me)),Re!=null&&(this.display.wrapper.style.height=bt(Re)),this.options.lineWrapping&&Xa(this);var jt=this.display.viewFrom;this.doc.iter(jt,this.display.viewTo,function(Ot){if(Ot.widgets){for(var Wt=0;Wt<Ot.widgets.length;Wt++)if(Ot.widgets[Wt].noHScroll){Po(st,jt,"widget");break}}++jt}),this.curOp.forceUpdate=!0,Ft(this,"refresh",this)}),operation:function(Me){return pn(this,Me)},startOperation:function(){return fl(this)},endOperation:function(){return bc(this)},refresh:_n(function(){var Me=this.display.cachedTextHeight;ma(this),this.curOp.forceUpdate=!0,_a(this),Zc(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(Me==null||Math.abs(Me-Hu(this.display))>.5||this.options.lineWrapping)&&Gi(this),Ft(this,"refresh",this)}),swapDoc:_n(function(Me){var Re=this.doc;return Re.cm=null,this.state.selectingText&&this.state.selectingText(),Qi(this,Me),_a(this),this.display.input.reset(),Zc(this,Me.scrollLeft,Me.scrollTop),this.curOp.forceScroll=!0,Lr(this,"swapDoc",this,Re),Re}),phrase:function(Me){var Re=this.options.phrases;return Re&&Object.prototype.hasOwnProperty.call(Re,Me)?Re[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}},En(ie),ie.registerHelper=function(Me,Re,st){Ne.hasOwnProperty(Me)||(Ne[Me]=ie[Me]={_global:[]}),Ne[Me][Re]=st},ie.registerGlobalHelper=function(Me,Re,st,bt){ie.registerHelper(Me,Re,bt),Ne[Me]._global.push({pred:st,val:bt})}}function vf(ie,de,Ne,Me,Re){var st=de,bt=Ne,jt=fn(ie,de.line),Ot=Re&&ie.direction=="rtl"?-Ne:Ne;function Wt(){var ki=de.line+Ot;return ki<ie.first||ki>=ie.first+ie.size?!1:(de=new on(ki,de.ch,de.sticky),jt=fn(ie,ki))}function Cn(ki){var Si;if(Me=="codepoint"){var _i=jt.text.charCodeAt(de.ch+(Me>0?0:-1));isNaN(_i)?Si=null:Si=new on(de.line,Math.max(0,Math.min(jt.text.length,de.ch+Ne*(_i>=55296&&_i<56320?2:1))),-Ne)}else Re?Si=Ta(ie.cm,jt,de,Ne):Si=us(jt,de,Ne);if(Si==null)if(!ki&&Wt())de=ea(Re,ie.cm,jt,de.line,Ot);else return!1;else de=Si;return!0}if(Me=="char"||Me=="codepoint")Cn();else if(Me=="column")Cn(!0);else if(Me=="word"||Me=="group")for(var Yt=null,Hn=Me=="group",Dn=ie.cm&&ie.cm.getHelper(de,"wordChars"),gr=!0;!(Ne<0&&!Cn(!gr));gr=!1){var Er=jt.text.charAt(de.ch)||`
|
|
|
`,_r=Ze(Er,Dn)?"w":Hn&&Er==`
|
|
|
`?"n":!Hn||/\s/.test(Er)?null:"p";if(Hn&&!gr&&!_r&&(_r="s"),Yt&&Yt!=_r){Ne<0&&(Ne=1,Cn(),de.sticky="after");break}if(_r&&(Yt=_r),Ne>0&&!Cn(!gr))break}var si=eu(ie,de,st,bt,!0);return an(st,si)&&(si.hitSide=!0),si}function wh(ie,de,Ne,Me){var Re=ie.doc,st=de.left,bt;if(Me=="page"){var jt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ot=Math.max(jt-.5*Hu(ie.display),3);bt=(Ne>0?de.bottom:de.top)+Ne*Ot}else Me=="line"&&(bt=Ne>0?de.bottom+3:de.top-3);for(var Wt;Wt=$c(ie,st,bt),!!Wt.outside;){if(Ne<0?bt<=0:bt>=Re.height){Wt.hitSide=!0;break}bt+=Ne*5}return Wt}var Oa=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new it,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Oa.prototype.init=function(ie){var de=this,Ne=this,Me=Ne.cm,Re=Ne.div=ie.lineDiv;og(Re,Me.options.spellcheck,Me.options.autocorrect,Me.options.autocapitalize);function st(jt){for(var Ot=jt.target;Ot;Ot=Ot.parentNode){if(Ot==Re)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ot.className))break}return!1}Kt(Re,"paste",function(jt){!st(jt)||Xt(Me,jt)||ng(jt,Me)||me<=11&&setTimeout(Bn(Me,function(){return de.updateFromDOM()}),20)}),Kt(Re,"compositionstart",function(jt){de.composing={data:jt.data,done:!1}}),Kt(Re,"compositionupdate",function(jt){de.composing||(de.composing={data:jt.data,done:!1})}),Kt(Re,"compositionend",function(jt){de.composing&&(jt.data!=de.composing.data&&de.readFromDOMSoon(),de.composing.done=!0)}),Kt(Re,"touchstart",function(){return Ne.forceCompositionEnd()}),Kt(Re,"input",function(){de.composing||de.readFromDOMSoon()});function bt(jt){if(!(!st(jt)||Xt(Me,jt))){if(Me.somethingSelected())Qh({lineWise:!1,text:Me.getSelections()}),jt.type=="cut"&&Me.replaceSelection("",null,"cut");else if(Me.options.lineWiseCopyCut){var Ot=ig(Me);Qh({lineWise:!0,text:Ot.text}),jt.type=="cut"&&Me.operation(function(){Me.setSelections(Ot.ranges,0,ft),Me.replaceSelection("",null,"cut")})}else return;if(jt.clipboardData){jt.clipboardData.clearData();var Wt=$l.text.join(`
|
|
|
`);if(jt.clipboardData.setData("Text",Wt),jt.clipboardData.getData("Text")==Wt){jt.preventDefault();return}}var Cn=ag(),Yt=Cn.firstChild;Me.display.lineSpace.insertBefore(Cn,Me.display.lineSpace.firstChild),Yt.value=$l.text.join(`
|
|
|
`);var Hn=document.activeElement;lt(Yt),setTimeout(function(){Me.display.lineSpace.removeChild(Cn),Hn.focus(),Hn==Re&&Ne.showPrimarySelection()},50)}}Kt(Re,"copy",bt),Kt(Re,"cut",bt)},Oa.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Oa.prototype.prepareSelection=function(){var ie=Kc(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Oa.prototype.showSelection=function(ie,de){!ie||!this.cm.display.view.length||((ie.focus||de)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Oa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Oa.prototype.showPrimarySelection=function(){var ie=this.getSelection(),de=this.cm,Ne=de.doc.sel.primary(),Me=Ne.from(),Re=Ne.to();if(de.display.viewTo==de.display.viewFrom||Me.line>=de.display.viewTo||Re.line<de.display.viewFrom){ie.removeAllRanges();return}var st=yf(de,ie.anchorNode,ie.anchorOffset),bt=yf(de,ie.focusNode,ie.focusOffset);if(!(st&&!st.bad&&bt&&!bt.bad&&Mn(yn(st,bt),Me)==0&&Mn(gn(st,bt),Re)==0)){var jt=de.display.view,Ot=Me.line>=de.display.viewFrom&&ip(de,Me)||{node:jt[0].measure.map[2],offset:0},Wt=Re.line<de.display.viewTo&&ip(de,Re);if(!Wt){var Cn=jt[jt.length-1].measure,Yt=Cn.maps?Cn.maps[Cn.maps.length-1]:Cn.map;Wt={node:Yt[Yt.length-1],offset:Yt[Yt.length-2]-Yt[Yt.length-3]}}if(!Ot||!Wt){ie.removeAllRanges();return}var Hn=ie.rangeCount&&ie.getRangeAt(0),Dn;try{Dn=_e(Ot.node,Ot.offset,Wt.offset,Wt.node)}catch(gr){}Dn&&(!tt&&de.state.focused?(ie.collapse(Ot.node,Ot.offset),Dn.collapsed||(ie.removeAllRanges(),ie.addRange(Dn))):(ie.removeAllRanges(),ie.addRange(Dn)),Hn&&ie.anchorNode==null?ie.addRange(Hn):tt&&this.startGracePeriod()),this.rememberSelection()}},Oa.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)},Oa.prototype.showMultipleSelections=function(ie){ke(this.cm.display.cursorDiv,ie.cursors),ke(this.cm.display.selectionDiv,ie.selection)},Oa.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Oa.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var de=ie.getRangeAt(0).commonAncestorContainer;return et(this.div,de)},Oa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Oa.prototype.blur=function(){this.div.blur()},Oa.prototype.getField=function(){return this.div},Oa.prototype.supportsTouch=function(){return!0},Oa.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():pn(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function de(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,de))}this.polling.set(this.cm.options.pollInterval,de)},Oa.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Oa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),de=this.cm;if(z&&Le&&this.cm.display.gutterSpecs.length&&sg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Ne=yf(de,ie.anchorNode,ie.anchorOffset),Me=yf(de,ie.focusNode,ie.focusOffset);Ne&&Me&&pn(de,function(){da(de.doc,wo(Ne,Me),ft),(Ne.bad||Me.bad)&&(de.curOp.selectionChanged=!0)})}}},Oa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,de=ie.display,Ne=ie.doc.sel.primary(),Me=Ne.from(),Re=Ne.to();if(Me.ch==0&&Me.line>ie.firstLine()&&(Me=on(Me.line-1,fn(ie.doc,Me.line-1).length)),Re.ch==fn(ie.doc,Re.line).text.length&&Re.line<ie.lastLine()&&(Re=on(Re.line+1,0)),Me.line<de.viewFrom||Re.line>de.viewTo-1)return!1;var st,bt,jt;Me.line==de.viewFrom||(st=zs(ie,Me.line))==0?(bt=Ht(de.view[0].line),jt=de.view[0].node):(bt=Ht(de.view[st].line),jt=de.view[st-1].node.nextSibling);var Ot=zs(ie,Re.line),Wt,Cn;if(Ot==de.view.length-1?(Wt=de.viewTo-1,Cn=de.lineDiv.lastChild):(Wt=Ht(de.view[Ot+1].line)-1,Cn=de.view[Ot+1].node.previousSibling),!jt)return!1;for(var Yt=ie.doc.splitLines(_d(ie,jt,Cn,bt,Wt)),Hn=un(ie.doc,on(bt,0),on(Wt,fn(ie.doc,Wt).text.length));Yt.length>1&&Hn.length>1;)if(St(Yt)==St(Hn))Yt.pop(),Hn.pop(),Wt--;else if(Yt[0]==Hn[0])Yt.shift(),Hn.shift(),bt++;else break;for(var Dn=0,gr=0,Er=Yt[0],_r=Hn[0],si=Math.min(Er.length,_r.length);Dn<si&&Er.charCodeAt(Dn)==_r.charCodeAt(Dn);)++Dn;for(var ki=St(Yt),Si=St(Hn),_i=Math.min(ki.length-(Yt.length==1?Dn:0),Si.length-(Hn.length==1?Dn:0));gr<_i&&ki.charCodeAt(ki.length-gr-1)==Si.charCodeAt(Si.length-gr-1);)++gr;if(Yt.length==1&&Hn.length==1&&bt==Me.line)for(;Dn&&Dn>Me.ch&&ki.charCodeAt(ki.length-gr-1)==Si.charCodeAt(Si.length-gr-1);)Dn--,gr++;Yt[Yt.length-1]=ki.slice(0,ki.length-gr).replace(/^\u200b+/,""),Yt[0]=Yt[0].slice(Dn).replace(/\u200b+$/,"");var mo=on(bt,Dn),mi=on(Wt,Hn.length?St(Hn).length-gr:0);if(Yt.length>1||Yt[0]||Mn(mo,mi))return $u(ie.doc,Yt,mo,mi,"+input"),!0},Oa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Oa.prototype.reset=function(){this.forceCompositionEnd()},Oa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Oa.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))},Oa.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&pn(this.cm,function(){return ma(ie.cm)})},Oa.prototype.setUneditable=function(ie){ie.contentEditable="false"},Oa.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Bn(this.cm,mf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Oa.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Oa.prototype.onContextMenu=function(){},Oa.prototype.resetPosition=function(){},Oa.prototype.needsContentAttribute=!0;function ip(ie,de){var Ne=vc(ie,de.line);if(!Ne||Ne.hidden)return null;var Me=fn(ie.doc,de.line),Re=Gc(Ne,Me,de.line),st=en(Me,ie.doc.direction),bt="left";if(st){var jt=ht(st,de.ch);bt=jt%2?"right":"left"}var Ot=Uc(Re.map,de.ch,bt);return Ot.offset=Ot.collapse=="right"?Ot.end:Ot.start,Ot}function sg(ie){for(var de=ie;de;de=de.parentNode)if(/CodeMirror-gutter-wrapper/.test(de.className))return!0;return!1}function Rd(ie,de){return de&&(ie.bad=!0),ie}function _d(ie,de,Ne,Me,Re){var st="",bt=!1,jt=ie.doc.lineSeparator(),Ot=!1;function Wt(Dn){return function(gr){return gr.id==Dn}}function Cn(){bt&&(st+=jt,Ot&&(st+=jt),bt=Ot=!1)}function Yt(Dn){Dn&&(Cn(),st+=Dn)}function Hn(Dn){if(Dn.nodeType==1){var gr=Dn.getAttribute("cm-text");if(gr){Yt(gr);return}var Er=Dn.getAttribute("cm-marker"),_r;if(Er){var si=ie.findMarks(on(Me,0),on(Re+1,0),Wt(+Er));si.length&&(_r=si[0].find(0))&&Yt(un(ie.doc,_r.from,_r.to).join(jt));return}if(Dn.getAttribute("contenteditable")=="false")return;var ki=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;ki&&Cn();for(var Si=0;Si<Dn.childNodes.length;Si++)Hn(Dn.childNodes[Si]);/^(pre|p)$/i.test(Dn.nodeName)&&(Ot=!0),ki&&(bt=!0)}else Dn.nodeType==3&&Yt(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Hn(de),de!=Ne;)de=de.nextSibling,Ot=!1;return st}function yf(ie,de,Ne){var Me;if(de==ie.display.lineDiv){if(Me=ie.display.lineDiv.childNodes[Ne],!Me)return Rd(ie.clipPos(on(ie.display.viewTo-1)),!0);de=null,Ne=0}else for(Me=de;;Me=Me.parentNode){if(!Me||Me==ie.display.lineDiv)return null;if(Me.parentNode&&Me.parentNode==ie.display.lineDiv)break}for(var Re=0;Re<ie.display.view.length;Re++){var st=ie.display.view[Re];if(st.node==Me)return hm(st,de,Ne)}}function hm(ie,de,Ne){var Me=ie.text.firstChild,Re=!1;if(!de||!et(Me,de))return Rd(on(Ht(ie.line),0),!0);if(de==Me&&(Re=!0,de=Me.childNodes[Ne],Ne=0,!de)){var st=ie.rest?St(ie.rest):ie.line;return Rd(on(Ht(st),st.text.length),Re)}var bt=de.nodeType==3?de:null,jt=de;for(!bt&&de.childNodes.length==1&&de.firstChild.nodeType==3&&(bt=de.firstChild,Ne&&(Ne=bt.nodeValue.length));jt.parentNode!=Me;)jt=jt.parentNode;var Ot=ie.measure,Wt=Ot.maps;function Cn(_r,si,ki){for(var Si=-1;Si<(Wt?Wt.length:0);Si++)for(var _i=Si<0?Ot.map:Wt[Si],mo=0;mo<_i.length;mo+=3){var mi=_i[mo+2];if(mi==_r||mi==si){var ko=Ht(Si<0?ie.line:ie.rest[Si]),Ya=_i[mo]+ki;return(ki<0||mi!=_r)&&(Ya=_i[mo+(ki?1:0)]),on(ko,Ya)}}}var Yt=Cn(bt,jt,Ne);if(Yt)return Rd(Yt,Re);for(var Hn=jt.nextSibling,Dn=bt?bt.nodeValue.length-Ne:0;Hn;Hn=Hn.nextSibling){if(Yt=Cn(Hn,Hn.firstChild,0),Yt)return Rd(on(Yt.line,Yt.ch-Dn),Re);Dn+=Hn.textContent.length}for(var gr=jt.previousSibling,Er=Ne;gr;gr=gr.previousSibling){if(Yt=Cn(gr,gr.firstChild,-1),Yt)return Rd(on(Yt.line,Yt.ch+Er),Re);Er+=gr.textContent.length}}var Ls=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new it,this.hasSelection=!1,this.composing=null};Ls.prototype.init=function(ie){var de=this,Ne=this,Me=this.cm;this.createField(ie);var Re=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),fe&&(Re.style.width="0px"),Kt(Re,"input",function(){De&&me>=9&&de.hasSelection&&(de.hasSelection=null),Ne.poll()}),Kt(Re,"paste",function(bt){Xt(Me,bt)||ng(bt,Me)||(Me.state.pasteIncoming=+new Date,Ne.fastPoll())});function st(bt){if(!Xt(Me,bt)){if(Me.somethingSelected())Qh({lineWise:!1,text:Me.getSelections()});else if(Me.options.lineWiseCopyCut){var jt=ig(Me);Qh({lineWise:!0,text:jt.text}),bt.type=="cut"?Me.setSelections(jt.ranges,null,ft):(Ne.prevInput="",Re.value=jt.text.join(`
|
|
|
`),lt(Re))}else return;bt.type=="cut"&&(Me.state.cutIncoming=+new Date)}}Kt(Re,"cut",st),Kt(Re,"copy",st),Kt(ie.scroller,"paste",function(bt){if(!(nl(ie,bt)||Xt(Me,bt))){if(!Re.dispatchEvent){Me.state.pasteIncoming=+new Date,Ne.focus();return}var jt=new Event("paste");jt.clipboardData=bt.clipboardData,Re.dispatchEvent(jt)}}),Kt(ie.lineSpace,"selectstart",function(bt){nl(ie,bt)||An(bt)}),Kt(Re,"compositionstart",function(){var bt=Me.getCursor("from");Ne.composing&&Ne.composing.range.clear(),Ne.composing={start:bt,range:Me.markText(bt,Me.getCursor("to"),{className:"CodeMirror-composing"})}}),Kt(Re,"compositionend",function(){Ne.composing&&(Ne.poll(),Ne.composing.range.clear(),Ne.composing=null)})},Ls.prototype.createField=function(ie){this.wrapper=ag(),this.textarea=this.wrapper.firstChild},Ls.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Ls.prototype.prepareSelection=function(){var ie=this.cm,de=ie.display,Ne=ie.doc,Me=Kc(ie);if(ie.options.moveInputWithCursor){var Re=Ma(ie,Ne.sel.primary().head,"div"),st=de.wrapper.getBoundingClientRect(),bt=de.lineDiv.getBoundingClientRect();Me.teTop=Math.max(0,Math.min(de.wrapper.clientHeight-10,Re.top+bt.top-st.top)),Me.teLeft=Math.max(0,Math.min(de.wrapper.clientWidth-10,Re.left+bt.left-st.left))}return Me},Ls.prototype.showSelection=function(ie){var de=this.cm,Ne=de.display;ke(Ne.cursorDiv,ie.cursors),ke(Ne.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Ls.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var de=this.cm;if(de.somethingSelected()){this.prevInput="";var Ne=de.getSelection();this.textarea.value=Ne,de.state.focused&<(this.textarea),De&&me>=9&&(this.hasSelection=Ne)}else ie||(this.prevInput=this.textarea.value="",De&&me>=9&&(this.hasSelection=null))}},Ls.prototype.getField=function(){return this.textarea},Ls.prototype.supportsTouch=function(){return!1},Ls.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||ze()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Ls.prototype.blur=function(){this.textarea.blur()},Ls.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ls.prototype.receivedFocus=function(){this.slowPoll()},Ls.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Ls.prototype.fastPoll=function(){var ie=!1,de=this;de.pollingFast=!0;function Ne(){var Me=de.poll();!Me&&!ie?(ie=!0,de.polling.set(60,Ne)):(de.pollingFast=!1,de.slowPoll())}de.polling.set(20,Ne)},Ls.prototype.poll=function(){var ie=this,de=this.cm,Ne=this.textarea,Me=this.prevInput;if(this.contextMenuPending||!de.state.focused||ot(Ne)&&!Me&&!this.composing||de.isReadOnly()||de.options.disableInput||de.state.keySeq)return!1;var Re=Ne.value;if(Re==Me&&!de.somethingSelected())return!1;if(De&&me>=9&&this.hasSelection===Re||ae&&/[\uf700-\uf7ff]/.test(Re))return de.display.input.reset(),!1;if(de.doc.sel==de.display.selForContextMenu){var st=Re.charCodeAt(0);if(st==8203&&!Me&&(Me="\u200B"),st==8666)return this.reset(),this.cm.execCommand("undo")}for(var bt=0,jt=Math.min(Me.length,Re.length);bt<jt&&Me.charCodeAt(bt)==Re.charCodeAt(bt);)++bt;return pn(de,function(){mf(de,Re.slice(bt),Me.length-bt,null,ie.composing?"*compose":null),Re.length>1e3||Re.indexOf(`
|
|
|
`)>-1?Ne.value=ie.prevInput="":ie.prevInput=Re,ie.composing&&(ie.composing.range.clear(),ie.composing.range=de.markText(ie.composing.start,de.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ls.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ls.prototype.onKeyPress=function(){De&&me>=9&&(this.hasSelection=null),this.fastPoll()},Ls.prototype.onContextMenu=function(ie){var de=this,Ne=de.cm,Me=Ne.display,Re=de.textarea;de.contextMenuPending&&de.contextMenuPending();var st=rl(Ne,ie),bt=Me.scroller.scrollTop;if(!st||Se)return;var jt=Ne.options.resetSelectionOnContextMenu;jt&&Ne.doc.sel.contains(st)==-1&&Bn(Ne,da)(Ne.doc,wo(st),ft);var Ot=Re.style.cssText,Wt=de.wrapper.style.cssText,Cn=de.wrapper.offsetParent.getBoundingClientRect();de.wrapper.style.cssText="position: static",Re.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-Cn.top-5)+"px; left: "+(ie.clientX-Cn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(De?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Yt;ce&&(Yt=window.scrollY),Me.input.focus(),ce&&window.scrollTo(null,Yt),Me.input.reset(),Ne.somethingSelected()||(Re.value=de.prevInput=" "),de.contextMenuPending=Dn,Me.selForContextMenu=Ne.doc.sel,clearTimeout(Me.detectingSelectAll);function Hn(){if(Re.selectionStart!=null){var Er=Ne.somethingSelected(),_r="\u200B"+(Er?Re.value:"");Re.value="\u21DA",Re.value=_r,de.prevInput=Er?"":"\u200B",Re.selectionStart=1,Re.selectionEnd=_r.length,Me.selForContextMenu=Ne.doc.sel}}function Dn(){if(de.contextMenuPending==Dn&&(de.contextMenuPending=!1,de.wrapper.style.cssText=Wt,Re.style.cssText=Ot,De&&me<9&&Me.scrollbars.setScrollTop(Me.scroller.scrollTop=bt),Re.selectionStart!=null)){(!De||De&&me<9)&&Hn();var Er=0,_r=function(){Me.selForContextMenu==Ne.doc.sel&&Re.selectionStart==0&&Re.selectionEnd>0&&de.prevInput=="\u200B"?Bn(Ne,ta)(Ne):Er++<10?Me.detectingSelectAll=setTimeout(_r,500):(Me.selForContextMenu=null,Me.input.reset())};Me.detectingSelectAll=setTimeout(_r,200)}}if(De&&me>=9&&Hn(),be){Tr(ie);var gr=function(){rn(window,"mouseup",gr),setTimeout(Dn,20)};Kt(window,"mouseup",gr)}else setTimeout(Dn,50)},Ls.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Ls.prototype.setUneditable=function(){},Ls.prototype.needsContentAttribute=!1;function dm(ie,de){if(de=de?vt(de):{},de.value=ie.value,!de.tabindex&&ie.tabIndex&&(de.tabindex=ie.tabIndex),!de.placeholder&&ie.placeholder&&(de.placeholder=ie.placeholder),de.autofocus==null){var Ne=ze();de.autofocus=Ne==ie||ie.getAttribute("autofocus")!=null&&Ne==document.body}function Me(){ie.value=jt.getValue()}var Re;if(ie.form&&(Kt(ie.form,"submit",Me),!de.leaveSubmitMethodAlone)){var st=ie.form;Re=st.submit;try{var bt=st.submit=function(){Me(),st.submit=Re,st.submit(),st.submit=bt}}catch(Ot){}}de.finishInit=function(Ot){Ot.save=Me,Ot.getTextArea=function(){return ie},Ot.toTextArea=function(){Ot.toTextArea=isNaN,Me(),ie.parentNode.removeChild(Ot.getWrapperElement()),ie.style.display="",ie.form&&(rn(ie.form,"submit",Me),!de.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Re))}},ie.style.display="none";var jt=ra(function(Ot){return ie.parentNode.insertBefore(Ot,ie.nextSibling)},de);return jt}function zd(ie){ie.off=rn,ie.on=Kt,ie.wheelEventPixels=Ri,ie.Doc=Ms,ie.splitLines=Ir,ie.countColumn=nt,ie.findColumn=Nt,ie.isWordChar=Ve,ie.Pass=yt,ie.signal=Ft,ie.Line=Xo,ie.changeEnd=Jo,ie.scrollbarModel=lf,ie.Pos=on,ie.cmpPos=Mn,ie.modes=Pr,ie.mimeModes=Ar,ie.resolveMode=or,ie.getMode=qt,ie.modeExtensions=Jt,ie.extendMode=Et,ie.copyState=ln,ie.startState=$t,ie.innerMode=Pn,ie.commands=js,ie.keyMap=ml,ie.keyName=jd,ie.isModifierKey=yh,ie.lookupKey=Ul,ie.normalizeKeyMap=Od,ie.StringStream=It,ie.SharedTextMarker=Ku,ie.TextMarker=cn,ie.LineWidget=vs,ie.e_preventDefault=An,ie.e_stopPropagation=ar,ie.e_stop=Tr,ie.addClass=Xe,ie.contains=et,ie.rmClass=Fe,ie.keyNames=Mu}um(ra),xh(ra);var Qc="iter insert remove copy getEditor constructor".split(" ");for(var Sf in Ms.prototype)Ms.prototype.hasOwnProperty(Sf)&&pt(Qc,Sf)<0&&(ra.prototype[Sf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Ms.prototype[Sf]));return En(Ms),ra.inputStyles={textarea:Ls,contenteditable:Oa},ra.defineMode=function(ie){!ra.defaults.mode&&ie!="null"&&(ra.defaults.mode=ie),Li.apply(this,arguments)},ra.defineMIME=nr,ra.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),ra.defineMIME("text/plain","null"),ra.defineExtension=function(ie,de){ra.prototype[ie]=de},ra.defineDocExtension=function(ie,de){Ms.prototype[ie]=de},ra.fromTextArea=dm,zd(ra),ra.version="5.58.2",ra})},25419:function(Rn,wn,$e){(function(tt){tt($e(89780),$e(15525),$e(98101))})(function(tt){"use strict";tt.defineMode("markdown",function(Pt,oe){var Ge=tt.getMode(Pt,"text/html"),De=Ge.name=="null";function me(nt){if(tt.findModeByName){var it=tt.findModeByName(nt);it&&(nt=it.mime||it.mimes[0])}var pt=tt.getMode(Pt,nt);return pt.name=="null"?null:pt}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 ce={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 we in ce)ce.hasOwnProperty(we)&&oe.tokenTypeOverrides[we]&&(ce[we]=oe.tokenTypeOverrides[we]);var Le=/^([*\-_])(?:\s*\1){2,}\s*$/,Se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Oe=/^\[(x| )\](?=\s)/i,ve=oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,xe=/^ {0,3}(?:\={1,}|-{2,})\s*$/,fe=/^[^#!\[\]*_\\<>` "'(~:]+/,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(nt,it,pt){return it.f=it.inline=pt,pt(nt,it)}function ue(nt,it,pt){return it.f=it.block=pt,pt(nt,it)}function pe(nt){return!nt||!/\S/.test(nt.string)}function be(nt){if(nt.linkTitle=!1,nt.linkHref=!1,nt.linkText=!1,nt.em=!1,nt.strong=!1,nt.strikethrough=!1,nt.quote=0,nt.indentedCode=!1,nt.f==Fe){var it=De;if(!it){var pt=tt.innerMode(Ge,nt.htmlState);it=pt.mode.name=="xml"&&pt.state.tagStart===null&&!pt.state.context&&pt.state.tokenize.isInText}it&&(nt.f=Be,nt.block=Ce,nt.htmlState=null)}return nt.trailingSpace=0,nt.trailingSpaceNewLine=!1,nt.prevLine=nt.thisLine,nt.thisLine={stream:null},null}function Ce(nt,it){var pt=nt.column()===it.indentation,xt=pe(it.prevLine.stream),yt=it.indentedCode,ft=it.prevLine.hr,gt=it.list!==!1,mt=(it.listStack[it.listStack.length-1]||0)+3;it.indentedCode=!1;var Nt=it.indentation;if(it.indentationDiff===null&&(it.indentationDiff=it.indentation,gt)){for(it.list=null;Nt<it.listStack[it.listStack.length-1];)it.listStack.pop(),it.listStack.length?it.indentation=it.listStack[it.listStack.length-1]:it.list=!1;it.list!==!1&&(it.indentationDiff=Nt-it.listStack[it.listStack.length-1])}var Tt=!xt&&!ft&&!it.prevLine.header&&(!gt||!yt)&&!it.prevLine.fencedCodeEnd,zt=(it.list===!1||ft||xt)&&it.indentation<=mt&&nt.match(Le),St=null;if(it.indentationDiff>=4&&(yt||it.prevLine.fencedCodeEnd||it.prevLine.header||xt))return nt.skipToEnd(),it.indentedCode=!0,ce.code;if(nt.eatSpace())return null;if(pt&&it.indentation<=mt&&(St=nt.match(ve))&&St[1].length<=6)return it.quote=0,it.header=St[1].length,it.thisLine.header=!0,oe.highlightFormatting&&(it.formatting="header"),it.f=it.inline,ke(it);if(it.indentation<=mt&&nt.eat(">"))return it.quote=pt?1:it.quote+1,oe.highlightFormatting&&(it.formatting="quote"),nt.eatSpace(),ke(it);if(!zt&&!it.setext&&pt&&it.indentation<=mt&&(St=nt.match(Se))){var wt=St[1]?"ol":"ul";return it.indentation=Nt+nt.current().length,it.list=!0,it.quote=0,it.listStack.push(it.indentation),it.em=!1,it.strong=!1,it.code=!1,it.strikethrough=!1,oe.taskLists&&nt.match(Oe,!1)&&(it.taskList=!0),it.f=it.inline,oe.highlightFormatting&&(it.formatting=["list","list-"+wt]),ke(it)}else{if(pt&&it.indentation<=mt&&(St=nt.match(z,!0)))return it.quote=0,it.fencedEndRE=new RegExp(St[1]+"+ *$"),it.localMode=oe.fencedCodeBlockHighlighting&&me(St[2]||oe.fencedCodeBlockDefaultMode),it.localMode&&(it.localState=tt.startState(it.localMode)),it.f=it.block=je,oe.highlightFormatting&&(it.formatting="code-block"),it.code=-1,ke(it);if(it.setext||(!Tt||!gt)&&!it.quote&&it.list===!1&&!it.code&&!zt&&!ee.test(nt.string)&&(St=nt.lookAhead(1))&&(St=St.match(xe)))return it.setext?(it.header=it.setext,it.setext=0,nt.skipToEnd(),oe.highlightFormatting&&(it.formatting="header")):(it.header=St[0].charAt(0)=="="?1:2,it.setext=it.header),it.thisLine.header=!0,it.f=it.inline,ke(it);if(zt)return nt.skipToEnd(),it.hr=!0,it.thisLine.hr=!0,ce.hr;if(nt.peek()==="[")return le(nt,it,Qe)}return le(nt,it,it.inline)}function Fe(nt,it){var pt=Ge.token(nt,it.htmlState);if(!De){var xt=tt.innerMode(Ge,it.htmlState);(xt.mode.name=="xml"&&xt.state.tagStart===null&&!xt.state.context&&xt.state.tokenize.isInText||it.md_inside&&nt.current().indexOf(">")>-1)&&(it.f=Be,it.block=Ce,it.htmlState=null)}return pt}function je(nt,it){var pt=it.listStack[it.listStack.length-1]||0,xt=it.indentation<pt,yt=pt+3;if(it.fencedEndRE&&it.indentation<=yt&&(xt||nt.match(it.fencedEndRE))){oe.highlightFormatting&&(it.formatting="code-block");var ft;return xt||(ft=ke(it)),it.localMode=it.localState=null,it.block=Ce,it.f=Be,it.fencedEndRE=null,it.code=0,it.thisLine.fencedCodeEnd=!0,xt?ue(nt,it,it.block):ft}else return it.localMode?it.localMode.token(nt,it.localState):(nt.skipToEnd(),ce.code)}function ke(nt){var it=[];if(nt.formatting){it.push(ce.formatting),typeof nt.formatting=="string"&&(nt.formatting=[nt.formatting]);for(var pt=0;pt<nt.formatting.length;pt++)it.push(ce.formatting+"-"+nt.formatting[pt]),nt.formatting[pt]==="header"&&it.push(ce.formatting+"-"+nt.formatting[pt]+"-"+nt.header),nt.formatting[pt]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=nt.quote?it.push(ce.formatting+"-"+nt.formatting[pt]+"-"+nt.quote):it.push("error"))}if(nt.taskOpen)return it.push("meta"),it.length?it.join(" "):null;if(nt.taskClosed)return it.push("property"),it.length?it.join(" "):null;if(nt.linkHref?it.push(ce.linkHref,"url"):(nt.strong&&it.push(ce.strong),nt.em&&it.push(ce.em),nt.strikethrough&&it.push(ce.strikethrough),nt.emoji&&it.push(ce.emoji),nt.linkText&&it.push(ce.linkText),nt.code&&it.push(ce.code),nt.image&&it.push(ce.image),nt.imageAltText&&it.push(ce.imageAltText,"link"),nt.imageMarker&&it.push(ce.imageMarker)),nt.header&&it.push(ce.header,ce.header+"-"+nt.header),nt.quote&&(it.push(ce.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=nt.quote?it.push(ce.quote+"-"+nt.quote):it.push(ce.quote+"-"+oe.maxBlockquoteDepth)),nt.list!==!1){var xt=(nt.listStack.length-1)%3;xt?xt===1?it.push(ce.list2):it.push(ce.list3):it.push(ce.list1)}return nt.trailingSpaceNewLine?it.push("trailing-space-new-line"):nt.trailingSpace&&it.push("trailing-space-"+(nt.trailingSpace%2?"a":"b")),it.length?it.join(" "):null}function Ae(nt,it){if(nt.match(fe,!0))return ke(it)}function Be(nt,it){var pt=it.text(nt,it);if(typeof pt!="undefined")return pt;if(it.list)return it.list=null,ke(it);if(it.taskList){var xt=nt.match(Oe,!0)[1]===" ";return xt?it.taskOpen=!0:it.taskClosed=!0,oe.highlightFormatting&&(it.formatting="task"),it.taskList=!1,ke(it)}if(it.taskOpen=!1,it.taskClosed=!1,it.header&&nt.match(/^#+$/,!0))return oe.highlightFormatting&&(it.formatting="header"),ke(it);var yt=nt.next();if(it.linkTitle){it.linkTitle=!1;var ft=yt;yt==="("&&(ft=")"),ft=(ft+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var gt="^\\s*(?:[^"+ft+"\\\\]+|\\\\\\\\|\\\\.)"+ft;if(nt.match(new RegExp(gt),!0))return ce.linkHref}if(yt==="`"){var mt=it.formatting;oe.highlightFormatting&&(it.formatting="code"),nt.eatWhile("`");var Nt=nt.current().length;if(it.code==0&&(!it.quote||Nt==1))return it.code=Nt,ke(it);if(Nt==it.code){var Tt=ke(it);return it.code=0,Tt}else return it.formatting=mt,ke(it)}else if(it.code)return ke(it);if(yt==="\\"&&(nt.next(),oe.highlightFormatting)){var zt=ke(it),St=ce.formatting+"-escape";return zt?zt+" "+St:St}if(yt==="!"&&nt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return it.imageMarker=!0,it.image=!0,oe.highlightFormatting&&(it.formatting="image"),ke(it);if(yt==="["&&it.imageMarker&&nt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return it.imageMarker=!1,it.imageAltText=!0,oe.highlightFormatting&&(it.formatting="image"),ke(it);if(yt==="]"&&it.imageAltText){oe.highlightFormatting&&(it.formatting="image");var zt=ke(it);return it.imageAltText=!1,it.image=!1,it.inline=it.f=et,zt}if(yt==="["&&!it.image)return it.linkText&&nt.match(/^.*?\]/)||(it.linkText=!0,oe.highlightFormatting&&(it.formatting="link")),ke(it);if(yt==="]"&&it.linkText){oe.highlightFormatting&&(it.formatting="link");var zt=ke(it);return it.linkText=!1,it.inline=it.f=nt.match(/\(.*?\)| ?\[.*?\]/,!1)?et:Be,zt}if(yt==="<"&&nt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){it.f=it.inline=_e,oe.highlightFormatting&&(it.formatting="link");var zt=ke(it);return zt?zt+=" ":zt="",zt+ce.linkInline}if(yt==="<"&&nt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){it.f=it.inline=_e,oe.highlightFormatting&&(it.formatting="link");var zt=ke(it);return zt?zt+=" ":zt="",zt+ce.linkEmail}if(oe.xml&&yt==="<"&&nt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var wt=nt.string.indexOf(">",nt.pos);if(wt!=-1){var at=nt.string.substring(nt.start,wt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(at)&&(it.md_inside=!0)}return nt.backUp(1),it.htmlState=tt.startState(Ge),ue(nt,it,Fe)}if(oe.xml&&yt==="<"&&nt.match(/^\/\w*?>/))return it.md_inside=!1,"tag";if(yt==="*"||yt==="_"){for(var Ye=1,Pe=nt.pos==1?" ":nt.string.charAt(nt.pos-2);Ye<3&&nt.eat(yt);)Ye++;var Te=nt.peek()||" ",Ve=!/\s/.test(Te)&&(!ae.test(Te)||/\s/.test(Pe)||ae.test(Pe)),Ze=!/\s/.test(Pe)&&(!ae.test(Pe)||/\s/.test(Te)||ae.test(Te)),Ee=null,He=null;if(Ye%2&&(!it.em&&Ve&&(yt==="*"||!Ze||ae.test(Pe))?Ee=!0:it.em==yt&&Ze&&(yt==="*"||!Ve||ae.test(Te))&&(Ee=!1)),Ye>1&&(!it.strong&&Ve&&(yt==="*"||!Ze||ae.test(Pe))?He=!0:it.strong==yt&&Ze&&(yt==="*"||!Ve||ae.test(Te))&&(He=!1)),He!=null||Ee!=null){oe.highlightFormatting&&(it.formatting=Ee==null?"strong":He==null?"em":"strong em"),Ee===!0&&(it.em=yt),He===!0&&(it.strong=yt);var Tt=ke(it);return Ee===!1&&(it.em=!1),He===!1&&(it.strong=!1),Tt}}else if(yt===" "&&(nt.eat("*")||nt.eat("_"))){if(nt.peek()===" ")return ke(it);nt.backUp(1)}if(oe.strikethrough){if(yt==="~"&&nt.eatWhile(yt)){if(it.strikethrough){oe.highlightFormatting&&(it.formatting="strikethrough");var Tt=ke(it);return it.strikethrough=!1,Tt}else if(nt.match(/^[^\s]/,!1))return it.strikethrough=!0,oe.highlightFormatting&&(it.formatting="strikethrough"),ke(it)}else if(yt===" "&&nt.match(/^~~/,!0)){if(nt.peek()===" ")return ke(it);nt.backUp(2)}}if(oe.emoji&&yt===":"&&nt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){it.emoji=!0,oe.highlightFormatting&&(it.formatting="emoji");var We=ke(it);return it.emoji=!1,We}return yt===" "&&(nt.match(/^ +$/,!1)?it.trailingSpace++:it.trailingSpace&&(it.trailingSpaceNewLine=!0)),ke(it)}function _e(nt,it){var pt=nt.next();if(pt===">"){it.f=it.inline=Be,oe.highlightFormatting&&(it.formatting="link");var xt=ke(it);return xt?xt+=" ":xt="",xt+ce.linkInline}return nt.match(/^[^>]+/,!0),ce.linkInline}function et(nt,it){if(nt.eatSpace())return null;var pt=nt.next();return pt==="("||pt==="["?(it.f=it.inline=Xe(pt==="("?")":"]"),oe.highlightFormatting&&(it.formatting="link-string"),it.linkHref=!0,ke(it)):"error"}var ze={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Xe(nt){return function(it,pt){var xt=it.next();if(xt===nt){pt.f=pt.inline=Be,oe.highlightFormatting&&(pt.formatting="link-string");var yt=ke(pt);return pt.linkHref=!1,yt}return it.match(ze[nt]),pt.linkHref=!0,ke(pt)}}function Qe(nt,it){return nt.match(/^([^\]\\]|\\.)*\]:/,!1)?(it.f=lt,nt.next(),oe.highlightFormatting&&(it.formatting="link"),it.linkText=!0,ke(it)):le(nt,it,Be)}function lt(nt,it){if(nt.match(/^\]:/,!0)){it.f=it.inline=ct,oe.highlightFormatting&&(it.formatting="link");var pt=ke(it);return it.linkText=!1,pt}return nt.match(/^([^\]\\]|\\.)+/,!0),ce.linkText}function ct(nt,it){return nt.eatSpace()?null:(nt.match(/^[^\s]+/,!0),nt.peek()===void 0?it.linkTitle=!0:nt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),it.f=it.inline=Be,ce.linkHref+" url")}var vt={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Be,text:Ae,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(nt){return{f:nt.f,prevLine:nt.prevLine,thisLine:nt.thisLine,block:nt.block,htmlState:nt.htmlState&&tt.copyState(Ge,nt.htmlState),indentation:nt.indentation,localMode:nt.localMode,localState:nt.localMode?tt.copyState(nt.localMode,nt.localState):null,inline:nt.inline,text:nt.text,formatting:!1,linkText:nt.linkText,linkTitle:nt.linkTitle,linkHref:nt.linkHref,code:nt.code,em:nt.em,strong:nt.strong,strikethrough:nt.strikethrough,emoji:nt.emoji,header:nt.header,setext:nt.setext,hr:nt.hr,taskList:nt.taskList,list:nt.list,listStack:nt.listStack.slice(0),quote:nt.quote,indentedCode:nt.indentedCode,trailingSpace:nt.trailingSpace,trailingSpaceNewLine:nt.trailingSpaceNewLine,md_inside:nt.md_inside,fencedEndRE:nt.fencedEndRE}},token:function(nt,it){if(it.formatting=!1,nt!=it.thisLine.stream){if(it.header=0,it.hr=!1,nt.match(/^\s*$/,!0))return be(it),null;if(it.prevLine=it.thisLine,it.thisLine={stream:nt},it.taskList=!1,it.trailingSpace=0,it.trailingSpaceNewLine=!1,!it.localState&&(it.f=it.block,it.f!=Fe)){var pt=nt.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(it.indentation=pt,it.indentationDiff=null,pt>0)return null}}return it.f(nt,it)},innerMode:function(nt){return nt.block==Fe?{state:nt.htmlState,mode:Ge}:nt.localState?{state:nt.localState,mode:nt.localMode}:{state:nt,mode:vt}},indent:function(nt,it,pt){return nt.block==Fe&&Ge.indent?Ge.indent(nt.htmlState,it,pt):nt.localState&&nt.localMode.indent?nt.localMode.indent(nt.localState,it,pt):tt.Pass},blankLine:be,getType:ke,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return vt},"xml"),tt.defineMIME("text/markdown","markdown"),tt.defineMIME("text/x-markdown","markdown")})},98101:function(Rn,wn,$e){(function(tt){tt($e(89780))})(function(tt){"use strict";tt.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 Pt=0;Pt<tt.modeInfo.length;Pt++){var oe=tt.modeInfo[Pt];oe.mimes&&(oe.mime=oe.mimes[0])}tt.findModeByMIME=function(Ge){Ge=Ge.toLowerCase();for(var De=0;De<tt.modeInfo.length;De++){var me=tt.modeInfo[De];if(me.mime==Ge)return me;if(me.mimes){for(var ce=0;ce<me.mimes.length;ce++)if(me.mimes[ce]==Ge)return me}}if(/\+xml$/.test(Ge))return tt.findModeByMIME("application/xml");if(/\+json$/.test(Ge))return tt.findModeByMIME("application/json")},tt.findModeByExtension=function(Ge){Ge=Ge.toLowerCase();for(var De=0;De<tt.modeInfo.length;De++){var me=tt.modeInfo[De];if(me.ext){for(var ce=0;ce<me.ext.length;ce++)if(me.ext[ce]==Ge)return me}}},tt.findModeByFileName=function(Ge){for(var De=0;De<tt.modeInfo.length;De++){var me=tt.modeInfo[De];if(me.file&&me.file.test(Ge))return me}var ce=Ge.lastIndexOf("."),we=ce>-1&&Ge.substring(ce+1,Ge.length);if(we)return tt.findModeByExtension(we)},tt.findModeByName=function(Ge){Ge=Ge.toLowerCase();for(var De=0;De<tt.modeInfo.length;De++){var me=tt.modeInfo[De];if(me.name.toLowerCase()==Ge)return me;if(me.alias){for(var ce=0;ce<me.alias.length;ce++)if(me.alias[ce].toLowerCase()==Ge)return me}}}})},67549:function(Rn,wn,$e){(function(tt){tt($e(89780))})(function(tt){"use strict";tt.defineMode("stex",function(Pt,oe){"use strict";function Ge(fe,z){fe.cmdState.push(z)}function De(fe){return fe.cmdState.length>0?fe.cmdState[fe.cmdState.length-1]:null}function me(fe){var z=fe.cmdState.pop();z&&z.closeBracket()}function ce(fe){for(var z=fe.cmdState,ee=z.length-1;ee>=0;ee--){var ae=z[ee];if(ae.name!="DEFAULT")return ae}return{styleIdentifier:function(){return null}}}function we(fe,z,ee){return function(){this.name=fe,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 Le={};Le.importmodule=we("importmodule","tag",["string","builtin"]),Le.documentclass=we("documentclass","tag",["","atom"]),Le.usepackage=we("usepackage","tag",["atom"]),Le.begin=we("begin","tag",["atom"]),Le.end=we("end","tag",["atom"]),Le.label=we("label","tag",["atom"]),Le.ref=we("ref","tag",["atom"]),Le.eqref=we("eqref","tag",["atom"]),Le.cite=we("cite","tag",["atom"]),Le.bibitem=we("bibitem","tag",["atom"]),Le.Bibitem=we("Bibitem","tag",["atom"]),Le.RBibitem=we("RBibitem","tag",["atom"]),Le.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Se(fe,z){fe.f=z}function Oe(fe,z){var ee;if(fe.match(/^\\[a-zA-Z@]+/)){var ae=fe.current().slice(1);return ee=Le.hasOwnProperty(ae)?Le[ae]:Le.DEFAULT,ee=new ee,Ge(z,ee),Se(z,xe),ee.style}if(fe.match(/^\\[$&%#{}_]/)||fe.match(/^\\[,;!\/\\]/))return"tag";if(fe.match("\\["))return Se(z,function(le,ue){return ve(le,ue,"\\]")}),"keyword";if(fe.match("\\("))return Se(z,function(le,ue){return ve(le,ue,"\\)")}),"keyword";if(fe.match("$$"))return Se(z,function(le,ue){return ve(le,ue,"$$")}),"keyword";if(fe.match("$"))return Se(z,function(le,ue){return ve(le,ue,"$")}),"keyword";var re=fe.next();if(re=="%")return fe.skipToEnd(),"comment";if(re=="}"||re=="]"){if(ee=De(z),ee)ee.closeBracket(re),Se(z,xe);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Le.DEFAULT,ee=new ee,Ge(z,ee),"bracket"):/\d/.test(re)?(fe.eatWhile(/[\w.%]/),"atom"):(fe.eatWhile(/[\w\-_]/),ee=ce(z),ee.name=="begin"&&(ee.argument=fe.current()),ee.styleIdentifier())}function ve(fe,z,ee){if(fe.eatSpace())return null;if(ee&&fe.match(ee))return Se(z,Oe),"keyword";if(fe.match(/^\\[a-zA-Z@]+/))return"tag";if(fe.match(/^[a-zA-Z]+/))return"variable-2";if(fe.match(/^\\[$&%#{}_]/)||fe.match(/^\\[,;!\/]/)||fe.match(/^[\^_&]/))return"tag";if(fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ae=fe.next();return ae=="{"||ae=="}"||ae=="["||ae=="]"||ae=="("||ae==")"?"bracket":ae=="%"?(fe.skipToEnd(),"comment"):"error"}function xe(fe,z){var ee=fe.peek(),ae;return ee=="{"||ee=="["?(ae=De(z),ae.openBracket(ee),fe.eat(ee),Se(z,Oe),"bracket"):/[ \t\r]/.test(ee)?(fe.eat(ee),null):(Se(z,Oe),me(z),Oe(fe,z))}return{startState:function(){var fe=oe.inMathMode?function(z,ee){return ve(z,ee)}:Oe;return{cmdState:[],f:fe}},copyState:function(fe){return{cmdState:fe.cmdState.slice(),f:fe.f}},token:function(fe,z){return z.f(fe,z)},blankLine:function(fe){fe.f=Oe,fe.cmdState.length=0},lineComment:"%"}}),tt.defineMIME("text/x-stex","stex"),tt.defineMIME("text/x-latex","stex")})},15525:function(Rn,wn,$e){(function(tt){tt($e(89780))})(function(tt){"use strict";var Pt={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};tt.defineMode("xml",function(Ge,De){var me=Ge.indentUnit,ce={},we=De.htmlMode?Pt:oe;for(var Le in we)ce[Le]=we[Le];for(var Le in De)ce[Le]=De[Le];var Se,Oe;function ve(_e,et){function ze(lt){return et.tokenize=lt,lt(_e,et)}var Xe=_e.next();if(Xe=="<")return _e.eat("!")?_e.eat("[")?_e.match("CDATA[")?ze(z("atom","]]>")):null:_e.match("--")?ze(z("comment","-->")):_e.match("DOCTYPE",!0,!0)?(_e.eatWhile(/[\w\._\-]/),ze(ee(1))):null:_e.eat("?")?(_e.eatWhile(/[\w\._\-]/),et.tokenize=z("meta","?>"),"meta"):(Se=_e.eat("/")?"closeTag":"openTag",et.tokenize=xe,"tag bracket");if(Xe=="&"){var Qe;return _e.eat("#")?_e.eat("x")?Qe=_e.eatWhile(/[a-fA-F\d]/)&&_e.eat(";"):Qe=_e.eatWhile(/[\d]/)&&_e.eat(";"):Qe=_e.eatWhile(/[\w\.\-:]/)&&_e.eat(";"),Qe?"atom":"error"}else return _e.eatWhile(/[^&<]/),null}ve.isInText=!0;function xe(_e,et){var ze=_e.next();if(ze==">"||ze=="/"&&_e.eat(">"))return et.tokenize=ve,Se=ze==">"?"endTag":"selfcloseTag","tag bracket";if(ze=="=")return Se="equals",null;if(ze=="<"){et.tokenize=ve,et.state=ue,et.tagName=et.tagStart=null;var Xe=et.tokenize(_e,et);return Xe?Xe+" tag error":"tag error"}else return/[\'\"]/.test(ze)?(et.tokenize=fe(ze),et.stringStartCol=_e.column(),et.tokenize(_e,et)):(_e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function fe(_e){var et=function(ze,Xe){for(;!ze.eol();)if(ze.next()==_e){Xe.tokenize=xe;break}return"string"};return et.isInAttribute=!0,et}function z(_e,et){return function(ze,Xe){for(;!ze.eol();){if(ze.match(et)){Xe.tokenize=ve;break}ze.next()}return _e}}function ee(_e){return function(et,ze){for(var Xe;(Xe=et.next())!=null;){if(Xe=="<")return ze.tokenize=ee(_e+1),ze.tokenize(et,ze);if(Xe==">")if(_e==1){ze.tokenize=ve;break}else return ze.tokenize=ee(_e-1),ze.tokenize(et,ze)}return"meta"}}function ae(_e,et,ze){this.prev=_e.context,this.tagName=et,this.indent=_e.indented,this.startOfLine=ze,(ce.doNotIndent.hasOwnProperty(et)||_e.context&&_e.context.noIndent)&&(this.noIndent=!0)}function re(_e){_e.context&&(_e.context=_e.context.prev)}function le(_e,et){for(var ze;;){if(!_e.context||(ze=_e.context.tagName,!ce.contextGrabbers.hasOwnProperty(ze)||!ce.contextGrabbers[ze].hasOwnProperty(et)))return;re(_e)}}function ue(_e,et,ze){return _e=="openTag"?(ze.tagStart=et.column(),pe):_e=="closeTag"?be:ue}function pe(_e,et,ze){return _e=="word"?(ze.tagName=et.current(),Oe="tag",je):ce.allowMissingTagName&&_e=="endTag"?(Oe="tag bracket",je(_e,et,ze)):(Oe="error",pe)}function be(_e,et,ze){if(_e=="word"){var Xe=et.current();return ze.context&&ze.context.tagName!=Xe&&ce.implicitlyClosed.hasOwnProperty(ze.context.tagName)&&re(ze),ze.context&&ze.context.tagName==Xe||ce.matchClosing===!1?(Oe="tag",Ce):(Oe="tag error",Fe)}else return ce.allowMissingTagName&&_e=="endTag"?(Oe="tag bracket",Ce(_e,et,ze)):(Oe="error",Fe)}function Ce(_e,et,ze){return _e!="endTag"?(Oe="error",Ce):(re(ze),ue)}function Fe(_e,et,ze){return Oe="error",Ce(_e,et,ze)}function je(_e,et,ze){if(_e=="word")return Oe="attribute",ke;if(_e=="endTag"||_e=="selfcloseTag"){var Xe=ze.tagName,Qe=ze.tagStart;return ze.tagName=ze.tagStart=null,_e=="selfcloseTag"||ce.autoSelfClosers.hasOwnProperty(Xe)?le(ze,Xe):(le(ze,Xe),ze.context=new ae(ze,Xe,Qe==ze.indented)),ue}return Oe="error",je}function ke(_e,et,ze){return _e=="equals"?Ae:(ce.allowMissing||(Oe="error"),je(_e,et,ze))}function Ae(_e,et,ze){return _e=="string"?Be:_e=="word"&&ce.allowUnquoted?(Oe="string",je):(Oe="error",je(_e,et,ze))}function Be(_e,et,ze){return _e=="string"?Be:je(_e,et,ze)}return{startState:function(_e){var et={tokenize:ve,state:ue,indented:_e||0,tagName:null,tagStart:null,context:null};return _e!=null&&(et.baseIndent=_e),et},token:function(_e,et){if(!et.tagName&&_e.sol()&&(et.indented=_e.indentation()),_e.eatSpace())return null;Se=null;var ze=et.tokenize(_e,et);return(ze||Se)&&ze!="comment"&&(Oe=null,et.state=et.state(Se||ze,_e,et),Oe&&(ze=Oe=="error"?ze+" error":Oe)),ze},indent:function(_e,et,ze){var Xe=_e.context;if(_e.tokenize.isInAttribute)return _e.tagStart==_e.indented?_e.stringStartCol+1:_e.indented+me;if(Xe&&Xe.noIndent)return tt.Pass;if(_e.tokenize!=xe&&_e.tokenize!=ve)return ze?ze.match(/^(\s*)/)[0].length:0;if(_e.tagName)return ce.multilineTagIndentPastTag!==!1?_e.tagStart+_e.tagName.length+2:_e.tagStart+me*(ce.multilineTagIndentFactor||1);if(ce.alignCDATA&&/<!\[CDATA\[/.test(et))return 0;var Qe=et&&/^<(\/)?([\w_:\.-]*)/.exec(et);if(Qe&&Qe[1])for(;Xe;)if(Xe.tagName==Qe[2]){Xe=Xe.prev;break}else if(ce.implicitlyClosed.hasOwnProperty(Xe.tagName))Xe=Xe.prev;else break;else if(Qe)for(;Xe;){var lt=ce.contextGrabbers[Xe.tagName];if(lt&<.hasOwnProperty(Qe[2]))Xe=Xe.prev;else break}for(;Xe&&Xe.prev&&!Xe.startOfLine;)Xe=Xe.prev;return Xe?Xe.indent+me:_e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ce.htmlMode?"html":"xml",helperType:ce.htmlMode?"html":"xml",skipAttribute:function(_e){_e.state==Ae&&(_e.state=je)},xmlCurrentTag:function(_e){return _e.tagName?{name:_e.tagName,close:_e.type=="closeTag"}:null},xmlCurrentContext:function(_e){for(var et=[],ze=_e.context;ze;ze=ze.prev)ze.tagName&&et.push(ze.tagName);return et.reverse()}}}),tt.defineMIME("text/xml","xml"),tt.defineMIME("application/xml","xml"),tt.mimeModes.hasOwnProperty("text/html")||tt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Rn,wn,$e){"use strict";$e.d(wn,{$u:function(){return Le},BD:function(){return Ye},E9:function(){return we},FF:function(){return Jr},FJ:function(){return ue},Hn:function(){return le},KX:function(){return be},NB:function(){return dt},S0:function(){return St},UL:function(){return Se},Vk:function(){return re},Vm:function(){return ht},YI:function(){return wt},ZA:function(){return oe},Zt:function(){return Oe},al:function(){return Ee},bn:function(){return Ze},bx:function(){return Pe},g2:function(){return at},h1:function(){return Ae},hD:function(){return En},l4:function(){return me},rU:function(){return Ct},s_:function(){return Te},uz:function(){return Je},z6:function(){return ve}}),Rn=$e.hmd(Rn),function(){var ot;function Ci(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function xi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Ci(a)}}function pr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Pr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ar;if(typeof Object.setPrototypeOf=="function")Ar=Object.setPrototypeOf;else{var Li;e:{var nr={a:!0},or={};try{or.__proto__=nr,Li=or.a;break e}catch(a){}Li=!1}Ar=Li?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var qt=Ar;function Jt(a,y){if(a.prototype=Pr(y.prototype),a.prototype.constructor=a,qt)qt(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 Et=typeof $e.g!="undefined"&&$e.g!=null?$e.g:self,ln=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 $t(a,y){if(y){var x=Et;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})}}$t("Object.assign",function(a){return a||ln}),$t("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 It=typeof globalThis=="object"&&globalThis||typeof $e.g=="object"&&$e.g.global===$e.g&&$e.g||typeof self=="object"&&self.self===self&&self||{};It.requestAnimationFrame===void 0&&(It.setImmediate===void 0?It.requestAnimationFrame=function(a){It.setTimeout(a,0)}:It.requestAnimationFrame=It.setImmediate);function fn(){}function un(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&It.clearTimeout(x),x=Gn(function(){x=-1,a.apply(b,E)},y)}}function Gn(a,y){return It.setTimeout(a,y)}function Xn(a){return It.document.createElement(a)}function Ht(a){throw Error(a)}function kn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Ht(a)}function Wn(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),Ht(x+" is not in the range "+y+": "+a)}function lr(a){It.console&&It.console.log(a)}function on(a){return typeof a=="object"&&a!==null}function Mn(a){return Array.isArray(a)||It.NodeList&&a instanceof It.NodeList||It.HTMLCollection&&a instanceof It.HTMLCollection}function an(a){return Array.prototype.slice.call(a)}function Sn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Ht("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function gn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ht("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function yn(){var a=Br.pop();return a===void 0?[]:a}function On(a){a.length=0,Br.push(a)}function Nn(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(on(a)&&a.constructor)return Nn(a.constructor);return typeof a}function Fn(a){var y=a;return on(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 zn(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 xr(a,y,x){Object.defineProperty(Do.prototype,a,{get:y,set:x})}function mn(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=It.navigator!==void 0&&0<It.navigator.userAgent.indexOf("Trident/7"),Yr=It.navigator!==void 0&&It.navigator.platform!==void 0&&It.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Br=[];Object.freeze([]),fn.className="Util",fn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",fn.adym="gojs.net",fn.vfo="28e645fdb266",fn.className="Util";function bn(a,y,x){zr(this),this.j=a,this.xa=y,this.o=x}bn.prototype.toString=function(){return"EnumValue."+this.xa};function Jn(a,y){return y==null||y===""?null:a[y]}Et.Object.defineProperties(bn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),bn.className="EnumValue";function sr(){this.ew=[]}sr.prototype.toString=function(){return this.ew.join("")},sr.prototype.add=function(a){a!==""&&this.ew.push(a)},sr.className="StringBuilder";function Sr(){}Sr.className="PropertyCollection";var mr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){It.console&&It.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 $r(){}$r.prototype.reset=function(){},$r.prototype.next=function(){return!1},$r.prototype.Ad=function(){return!1},$r.prototype.first=function(){return null},$r.prototype.any=function(){return!1},$r.prototype.all=function(){return!0},$r.prototype.each=function(){return this},$r.prototype.map=function(){return this},$r.prototype.filter=function(){return this},$r.prototype.de=function(){},$r.prototype.toString=function(){return"EmptyIterator"},Et.Object.defineProperties($r.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),$r.prototype.first=$r.prototype.first,$r.prototype.hasNext=$r.prototype.Ad,$r.prototype.next=$r.prototype.next,$r.prototype.reset=$r.prototype.reset;var ri=null;$r.className="EmptyIterator",ri=new $r;function Rr(a){this.key=-1,this.value=a}Rr.prototype.reset=function(){this.key=-1},Rr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Rr.prototype.Ad=function(){return this.next()},Rr.prototype.first=function(){return this.key=0,this.value},Rr.prototype.any=function(a){return this.key=-1,a(this.value)},Rr.prototype.all=function(a){return this.key=-1,a(this.value)},Rr.prototype.each=function(a){return this.key=-1,a(this.value),this},Rr.prototype.map=function(a){return new Rr(a(this.value))},Rr.prototype.filter=function(a){return a(this.value)?new Rr(this.value):ri},Rr.prototype.de=function(){this.value=null},Rr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Et.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="SingletonIterator";function br(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}br.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},br.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},br.prototype.Ad=function(){return this.next()},br.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},br.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},br.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},br.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},br.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 vn,a.s=x,a.xb(),a.iterator},br.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 vn,a.s=x,a.xb(),a.iterator},br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},br.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Et.Object.defineProperties(br.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}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset,br.className="ListIterator";function ur(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}ur.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},ur.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)},ur.prototype.Ad=function(){return this.next()},ur.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},ur.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},ur.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},ur.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},ur.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 vn,a.s=x,a.xb(),a.iterator},ur.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 vn,a.s=x,a.xb(),a.iterator},ur.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},ur.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Et.Object.defineProperties(ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),ur.prototype.first=ur.prototype.first,ur.prototype.hasNext=ur.prototype.Ad,ur.prototype.next=ur.prototype.next,ur.prototype.reset=ur.prototype.reset,ur.className="ListIteratorBackwards";function vn(a){zr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ot=vn.prototype,ot.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.toString=function(){return"List()#"+Mi(this)},ot.add=function(a){return a===null?this:(this._isFrozen&&kn(this,a),this.s.push(a),this.xb(),this)},ot.push=function(a){this.add(a)},ot.addAll=function(a){if(a===null)return this;this._isFrozen&&kn(this);var y=this.s;if(Mn(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},ot.clear=function(){this._isFrozen&&kn(this),this.s.length=0,this.xb()},ot.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},ot.has=function(a){return this.contains(a)},ot.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},ot.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Wn(a,"0 <= i < length",vn,"elt:i"),y[a]},ot.get=function(a){return this.M(a)},ot.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Wn(a,"0 <= i < length",vn,"setElt:i"),this._isFrozen&&kn(this,a),x[a]=y},ot.set=function(a,y){this.cd(a,y)},ot.first=function(){var a=this.s;return a.length===0?null:a[0]},ot.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},ot.pop=function(){this._isFrozen&&kn(this);var a=this.s;return 0<a.length?a.pop():null},vn.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},vn.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},vn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},vn.prototype.map=function(a){for(var y=new vn,x=[],b=this.s,E=b.length,te=0;te<E;te++)x.push(a(b[te]));return y.s=x,y.xb(),y},vn.prototype.filter=function(a){for(var y=new vn,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},ot=vn.prototype,ot.Gb=function(a,y){0>a&&Wn(a,">= 0",vn,"insertAt:i"),this._isFrozen&&kn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},ot.remove=function(a){if(a===null)return!1;this._isFrozen&&kn(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)},ot.delete=function(a){return this.remove(a)},ot.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Wn(a,"0 <= i < length",vn,"removeAt:i"),this._isFrozen&&kn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},ot.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&&kn(this);for(var E=a,te=y+1;te<b;)x[E++]=x[te++];return x.length=b-(y-a+1),this.xb(),this},vn.prototype.copy=function(){var a=new vn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},ot=vn.prototype,ot.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},ot.Iv=function(){for(var a=new xn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},ot.sort=function(a){return this._isFrozen&&kn(this),this.s.sort(a),this.xb(),this},ot.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&kn(this);var te=x-y;if(1>=te)return this;if((0>y||y>=E-1)&&Wn(y,"0 <= from < length",vn,"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},ot.reverse=function(){return this._isFrozen&&kn(this),this.s.reverse(),this.xb(),this},Et.Object.defineProperties(vn.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 ri;var a=this.Sa;return a!==null?(a.reset(),a):new br(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return ri;var a=this.Hg;return a!==null?(a.reset(),a):new ur(this)}}}),vn.prototype.reverse=vn.prototype.reverse,vn.prototype.sortRange=vn.prototype.zi,vn.prototype.sort=vn.prototype.sort,vn.prototype.toSet=vn.prototype.Iv,vn.prototype.toArray=vn.prototype.Fa,vn.prototype.removeRange=vn.prototype.removeRange,vn.prototype.removeAt=vn.prototype.mb,vn.prototype.delete=vn.prototype.delete,vn.prototype.remove=vn.prototype.remove,vn.prototype.insertAt=vn.prototype.Gb,vn.prototype.pop=vn.prototype.pop,vn.prototype.last=vn.prototype.jc,vn.prototype.first=vn.prototype.first,vn.prototype.set=vn.prototype.set,vn.prototype.setElt=vn.prototype.cd,vn.prototype.get=vn.prototype.get,vn.prototype.elt=vn.prototype.M,vn.prototype.indexOf=vn.prototype.indexOf,vn.prototype.has=vn.prototype.has,vn.prototype.contains=vn.prototype.contains,vn.prototype.clear=vn.prototype.clear,vn.prototype.addAll=vn.prototype.addAll,vn.prototype.push=vn.prototype.push,vn.prototype.add=vn.prototype.add,vn.prototype.thaw=vn.prototype.ka,vn.prototype.freeze=vn.prototype.freeze,vn.className="List";function cr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}cr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},cr.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)},cr.prototype.Ad=function(){return this.next()},cr.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},cr.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},cr.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},cr.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},cr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},cr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},cr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},cr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Et.Object.defineProperties(cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),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="SetIterator";function xn(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"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ot=xn.prototype,ot.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.toString=function(){return"Set()#"+Mi(this)},ot.add=function(a){if(a===null)return this;this._isFrozen&&kn(this,a);var y=a;return on(a)&&(y=$i(a)),this.Tb[y]===void 0&&(this.Sb++,a=new wi(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},ot.addAll=function(a){if(a===null)return this;if(this._isFrozen&&kn(this),Mn(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},ot.contains=function(a){if(a===null)return!1;var y=a;return on(a)&&(y=Mi(a),y===void 0)?!1:this.Tb[y]!==void 0},ot.has=function(a){return this.contains(a)},ot.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},ot.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},ot.first=function(){var a=this.ea;return a===null?null:a.value},xn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},xn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},xn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},xn.prototype.map=function(a){for(var y=new xn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},xn.prototype.filter=function(a){for(var y=new xn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},ot=xn.prototype,ot.remove=function(a){if(a===null)return!1;this._isFrozen&&kn(this,a);var y=a;if(on(a)&&(y=Mi(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},ot.delete=function(a){return this.remove(a)},ot.hp=function(a){if(a===null)return this;if(this._isFrozen&&kn(this),Mn(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},ot.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&kn(this);var y=new xn;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},ot.clear=function(){this._isFrozen&&kn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},xn.prototype.copy=function(){var a=new xn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},xn.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},xn.prototype.Hv=function(){var a=new vn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function zr(a){a.__gohashid=yo++}function $i(a){var y=a.__gohashid;return y===void 0&&(y=yo++,a.__gohashid=y),y}function Mi(a){return a.__gohashid}Et.Object.defineProperties(xn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return ri;var a=this.Sa;return a!==null?(a.reset(),a):new cr(this)}}}),xn.prototype.toList=xn.prototype.Hv,xn.prototype.toArray=xn.prototype.Fa,xn.prototype.clear=xn.prototype.clear,xn.prototype.retainAll=xn.prototype.pA,xn.prototype.removeAll=xn.prototype.hp,xn.prototype.delete=xn.prototype.delete,xn.prototype.remove=xn.prototype.remove,xn.prototype.first=xn.prototype.first,xn.prototype.containsAny=xn.prototype.Ty,xn.prototype.containsAll=xn.prototype.Sy,xn.prototype.has=xn.prototype.has,xn.prototype.contains=xn.prototype.contains,xn.prototype.addAll=xn.prototype.addAll,xn.prototype.add=xn.prototype.add,xn.prototype.thaw=xn.prototype.ka,xn.prototype.freeze=xn.prototype.freeze;var yo=1;xn.className="Set",xn.uniqueHash=zr,xn.hashIdUnique=$i,xn.hashId=Mi;function no(a){this.ma=a,this.qa=a.Ja,this.sa=null}no.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},no.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)},no.prototype.Ad=function(){return this.next()},no.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},no.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},no.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},no.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},no.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},no.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},no.prototype.de=function(){this.value=this.key=null,this.qa=-1},no.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Et.Object.defineProperties(no.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),no.prototype.first=no.prototype.first,no.prototype.hasNext=no.prototype.Ad,no.prototype.next=no.prototype.next,no.prototype.reset=no.prototype.reset,no.className="MapKeySetIterator";function Wr(a){xn.call(this),zr(this),this._isFrozen=!0,this.ma=a}Jt(Wr,xn),ot=Wr.prototype,ot.freeze=function(){return this},ot.ka=function(){return this},ot.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ot.add=function(){Ht("This Set is read-only: "+this.toString())},ot.contains=function(a){return this.ma.contains(a)},ot.has=function(a){return this.contains(a)},ot.remove=function(){Ht("This Set is read-only: "+this.toString())},ot.delete=function(a){return this.remove(a)},ot.clear=function(){Ht("This Set is read-only: "+this.toString())},ot.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Wr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Wr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Wr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Wr.prototype.map=function(a){for(var y=new xn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Wr.prototype.filter=function(a){for(var y=new xn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Wr.prototype.copy=function(){return new Wr(this.ma)},Wr.prototype.Iv=function(){var a=new xn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Wr.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},Wr.prototype.Hv=function(){var a=new vn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Et.Object.defineProperties(Wr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?ri:new no(this.ma)}}}),Wr.prototype.toList=Wr.prototype.Hv,Wr.prototype.toArray=Wr.prototype.Fa,Wr.prototype.toSet=Wr.prototype.Iv,Wr.prototype.first=Wr.prototype.first,Wr.prototype.clear=Wr.prototype.clear,Wr.prototype.delete=Wr.prototype.delete,Wr.prototype.remove=Wr.prototype.remove,Wr.prototype.has=Wr.prototype.has,Wr.prototype.contains=Wr.prototype.contains,Wr.prototype.add=Wr.prototype.add,Wr.prototype.thaw=Wr.prototype.ka,Wr.prototype.freeze=Wr.prototype.freeze,Wr.className="MapKeySet";function Hr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Hr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Hr.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)},Hr.prototype.Ad=function(){return this.next()},Hr.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},Hr.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},Hr.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},Hr.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},Hr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Hr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new vn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Hr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Hr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Et.Object.defineProperties(Hr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Hr.prototype.first=Hr.prototype.first,Hr.prototype.hasNext=Hr.prototype.Ad,Hr.prototype.next=Hr.prototype.next,Hr.prototype.reset=Hr.prototype.reset,Hr.className="MapValueSetIterator";function wi(a,y){this.key=a,this.value=y,this.ll=this.va=null}wi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},wi.className="KeyValuePair";function vi(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}vi.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},vi.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)},vi.prototype.Ad=function(){return this.next()},vi.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},vi.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},vi.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},vi.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},vi.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},vi.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},vi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},vi.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Et.Object.defineProperties(vi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),vi.prototype.first=vi.prototype.first,vi.prototype.hasNext=vi.prototype.Ad,vi.prototype.next=vi.prototype.next,vi.prototype.reset=vi.prototype.reset,vi.className="MapIterator";function fr(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"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ot=fr.prototype,ot.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.toString=function(){return"Map()#"+Mi(this)},ot.add=function(a,y){this._isFrozen&&kn(this,a);var x=a;on(a)&&(x=$i(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new wi(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},ot.set=function(a,y){return this.add(a,y)},ot.addAll=function(a){if(a===null)return this;if(Mn(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 fr)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},ot.first=function(){return this.ea},fr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},fr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},fr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},fr.prototype.map=function(a){for(var y=new fr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},fr.prototype.filter=function(a){for(var y=new fr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},ot=fr.prototype,ot.contains=function(a){var y=a;return on(a)&&(y=Mi(a),y===void 0)?!1:this.Tb[y]!==void 0},ot.has=function(a){return this.contains(a)},ot.I=function(a){var y=a;return on(a)&&(y=Mi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},ot.get=function(a){return this.I(a)},ot.remove=function(a){if(a===null)return!1;this._isFrozen&&kn(this,a);var y=a;if(on(a)&&(y=Mi(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},ot.delete=function(a){return this.remove(a)},ot.clear=function(){this._isFrozen&&kn(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()},fr.prototype.copy=function(){var a=new fr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},fr.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 wi(E.key,E.value),x++}return y},fr.prototype.Lf=function(){return new Wr(this)},Et.Object.defineProperties(fr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return ri;var a=this.Sa;return a!==null?(a.reset(),a):new vi(this)}},iteratorKeys:{get:function(){return 0>=this.count?ri:new no(this)}},iteratorValues:{get:function(){if(0>=this.count)return ri;var a=this.jf;return a!==null?(a.reset(),a):new Hr(this)}}}),fr.prototype.toKeySet=fr.prototype.Lf,fr.prototype.toArray=fr.prototype.Fa,fr.prototype.clear=fr.prototype.clear,fr.prototype.delete=fr.prototype.delete,fr.prototype.remove=fr.prototype.remove,fr.prototype.get=fr.prototype.get,fr.prototype.getValue=fr.prototype.I,fr.prototype.has=fr.prototype.has,fr.prototype.contains=fr.prototype.contains,fr.prototype.first=fr.prototype.first,fr.prototype.addAll=fr.prototype.addAll,fr.prototype.set=fr.prototype.set,fr.prototype.add=fr.prototype.add,fr.prototype.thaw=fr.prototype.ka,fr.prototype.freeze=fr.prototype.freeze,fr.className="Map";function kt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ht("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Fi,Ki,gi,oo,So;kt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},kt.prototype.h=function(a,y){return this.x=a,this.y=y,this},kt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},kt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},kt.prototype.copy=function(){var a=new kt;return a.x=this.x,a.y=this.y,a},ot=kt.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qr(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 kt(x,E)}return new kt}function ii(a){return a.x.toString()+" "+a.y.toString()}ot.toString=function(){return"Point("+this.x+","+this.y+")"},ot.D=function(a){return a instanceof kt?this.x===a.x&&this.y===a.y:!1},ot.hi=function(a,y){return this.x===a&&this.y===y},ot.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)},ot.add=function(a){return this.x+=a.x,this.y+=a.y,this},ot.re=function(a){return this.x-=a.x,this.y-=a.y,this},ot.offset=function(a,y){return this.x+=a,this.y+=y,this},kt.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},ot=kt.prototype,ot.scale=function(a,y){return this.x*=a,this.y*=y,this},ot.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},ot.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},ot.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},ot.ab=function(a){return Oi(a.x-this.x,a.y-this.y)},ot.direction=function(a,y){return Oi(a-this.x,y-this.y)};function Oi(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}ot.Ry=function(a,y){return Qt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ot.fA=function(a,y,x,b){return Qt.qh(a,y,x,b,this.x,this.y,this),this},ot.gA=function(a,y){return Qt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ot.uA=function(a,y,x,b){return Qt.No(this.x,this.y,a,y,x,b,this),this},ot.vA=function(a,y){return Qt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},ot.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},ot.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},ot.transform=function(a){return a.Ga(this),this};function Pi(a,y){return y.Cd(a),a}function co(a,y,x,b,E,te){var ne=E-x,se=te-b,he=ne*ne+se*se;x-=a,b-=y;var ge=-x*ne-b*se;return 0>=ge||ge>=he?(ne=E-a,se=te-y,Math.min(x*x+b*b,ne*ne+se*se)):(a=ne*b-se*x,a*a/he)}function To(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Kr(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)}ot.w=function(){return isFinite(this.x)&&isFinite(this.y)},kt.alloc=function(){var a=Vr.pop();return a===void 0?new kt:a},kt.allocAt=function(a,y){var x=Vr.pop();return x===void 0?new kt(a,y):(x.x=a,x.y=y,x)},kt.free=function(a){Vr.push(a)},kt.prototype.isReal=kt.prototype.w,kt.prototype.setSpot=kt.prototype.yi,kt.prototype.setRectSpot=kt.prototype.xi,kt.prototype.snapToGridPoint=kt.prototype.vA,kt.prototype.snapToGrid=kt.prototype.uA,kt.prototype.projectOntoLineSegmentPoint=kt.prototype.gA,kt.prototype.projectOntoLineSegment=kt.prototype.fA,kt.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return Qt.Rl(a,y,x,b,E,te,ne,se)},kt.prototype.compareWithLineSegmentPoint=kt.prototype.Ry,kt.compareWithLineSegment=function(a,y,x,b,E,te){return Qt.Fl(a,y,x,b,E,te)},kt.prototype.direction=kt.prototype.direction,kt.prototype.directionPoint=kt.prototype.ab,kt.prototype.normalize=kt.prototype.normalize,kt.prototype.distanceSquared=kt.prototype.zd,kt.prototype.distanceSquaredPoint=kt.prototype.Bf,kt.prototype.scale=kt.prototype.scale,kt.prototype.rotate=kt.prototype.rotate,kt.prototype.offset=kt.prototype.offset,kt.prototype.subtract=kt.prototype.re,kt.prototype.add=kt.prototype.add,kt.prototype.equalsApprox=kt.prototype.Xa,kt.prototype.equalTo=kt.prototype.hi,kt.prototype.equals=kt.prototype.D,kt.prototype.set=kt.prototype.set,kt.prototype.setTo=kt.prototype.sg;var Vr=[];kt.className="Point",kt.parse=Qr,kt.stringify=ii,kt.distanceLineSegmentSquared=co,kt.distanceSquared=To,kt.direction=Kr,kt.Origin=Fi=new kt(0,0).ja(),kt.InfiniteTopLeft=Ki=new kt(-1/0,-1/0).ja(),kt.InfiniteBottomRight=gi=new kt(1/0,1/0).ja(),kt.SixPoint=oo=new kt(6,6).ja(),kt.NoPoint=So=new kt(NaN,NaN).ja(),kt.parse=Qr,kt.stringify=ii,kt.distanceLineSegmentSquared=co,kt.distanceSquared=To,kt.direction=Kr;function Yn(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):Ht("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ci,ro,Wo,_o,Xo,Pa,na;Yn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Yn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Yn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Yn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Yn.prototype.copy=function(){var a=new Yn;return a.width=this.width,a.height=this.height,a},ot=Yn.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function os(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 Yn(x,E)}return new Yn}function Da(a){return a.width.toString()+" "+a.height.toString()}ot.toString=function(){return"Size("+this.width+","+this.height+")"},ot.D=function(a){return a instanceof Yn?this.width===a.width&&this.height===a.height:!1},ot.hi=function(a,y){return this.width===a&&this.height===y},ot.Xa=function(a){return Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)},ot.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},ot.w=function(){return isFinite(this.width)&&isFinite(this.height)},Yn.alloc=function(){var a=fs.pop();return a===void 0?new Yn:a},Yn.free=function(a){fs.push(a)},Yn.prototype.isReal=Yn.prototype.w,Yn.prototype.inflate=Yn.prototype.Bc,Yn.prototype.equalsApprox=Yn.prototype.Xa,Yn.prototype.equalTo=Yn.prototype.hi,Yn.prototype.equals=Yn.prototype.D,Yn.prototype.set=Yn.prototype.set,Yn.prototype.setTo=Yn.prototype.sg;var fs=[];Yn.className="Size",Yn.parse=os,Yn.stringify=Da,Yn.ZeroSize=ci=new Yn(0,0).ja(),Yn.OneSize=ro=new Yn(1,1).ja(),Yn.SixSize=Wo=new Yn(6,6).ja(),Yn.EightSize=_o=new Yn(8,8).ja(),Yn.TenSize=Xo=new Yn(10,10).ja(),Yn.InfiniteSize=Pa=new Yn(1/0,1/0).ja(),Yn.NoSize=na=new Yn(NaN,NaN).ja(),Yn.parse=os,Yn.stringify=Da;function Ln(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 kt?(x=a.x,a=a.y,y instanceof kt?(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 Yn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Ht("Incorrect second argument supplied to Rect constructor "+y)):Ht("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}ot=Ln.prototype,ot.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ot.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Fa(a,y,x){a.width=y,a.height=x}ot.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},ot.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ot.dd=function(a){return this.x=a.x,this.y=a.y,this},ot.tA=function(a){return this.width=a.width,this.height=a.height,this},Ln.prototype.copy=function(){var a=new Ln;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},ot=Ln.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function rc(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 Ln(x,E,te,ne)}return new Ln}function el(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}ot.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},ot.D=function(a){return a instanceof Ln?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},ot.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},ot.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 xo(a,y){return Qt.$(a.x,y.x)&&Qt.$(a.y,y.y)&&Qt.$(a.width,y.width)&&Qt.$(a.height,y.height)}ot.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},ot.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},ot.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},ot.offset=function(a,y){return this.x+=a,this.y+=y,this},ot.Bc=function(a,y){return eo(this,y,a,y,a)},ot.Co=function(a){return eo(this,a.top,a.right,a.bottom,a.left)},ot.Fv=function(a){return eo(this,-a.top,-a.right,-a.bottom,-a.left)},ot.Hz=function(a,y,x,b){return eo(this,a,y,x,b)};function eo(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}ot.Ex=function(a){return ga(this,a.x,a.y,a.width,a.height)},ot.Uu=function(a,y,x,b){return ga(this,a,y,x,b)};function ga(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}ot.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},ot.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 jo(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))}ot.Ye=function(a){return Yi(this,a.x,a.y,0,0)},ot.ed=function(a){return Yi(this,a.x,a.y,a.width,a.height)},ot.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}ot.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 No(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 xs(a,y,x,b,E,te,ne,se){return a>ne+E||E>x+a?!1:!(y>se+te||te>b+y)}ot.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ot.Mz=function(){return this.width===0&&this.height===0},Ln.alloc=function(){var a=io.pop();return a===void 0?new Ln:a},Ln.allocAt=function(a,y,x,b){var E=io.pop();return E===void 0?new Ln(a,y,x,b):E.h(a,y,x,b)},Ln.free=function(a){io.push(a)},Et.Object.defineProperties(Ln.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 kt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Yn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new kt(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}}}),Ln.prototype.isEmpty=Ln.prototype.Mz,Ln.prototype.isReal=Ln.prototype.w,Ln.intersectsLineSegment=function(a,y,x,b,E,te,ne,se){return Qt.Fx(a,y,x,b,E,te,ne,se)},Ln.prototype.setSpot=Ln.prototype.yi,Ln.prototype.union=Ln.prototype.Kv,Ln.prototype.unionRect=Ln.prototype.ed,Ln.prototype.unionPoint=Ln.prototype.Ye,Ln.prototype.intersects=Ln.prototype.Vu,Ln.prototype.intersectsRect=Ln.prototype.Yc,Ln.prototype.intersect=Ln.prototype.Uu,Ln.prototype.intersectRect=Ln.prototype.Ex,Ln.prototype.grow=Ln.prototype.Hz,Ln.prototype.subtractMargin=Ln.prototype.Fv,Ln.prototype.addMargin=Ln.prototype.Co,Ln.prototype.inflate=Ln.prototype.Bc,Ln.prototype.offset=Ln.prototype.offset,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.containsRect=Ln.prototype.Re,Ln.prototype.containsPoint=Ln.prototype.ca,Ln.prototype.equalsApprox=Ln.prototype.Xa,Ln.prototype.equalTo=Ln.prototype.hi,Ln.prototype.equals=Ln.prototype.D,Ln.prototype.setSize=Ln.prototype.tA,Ln.prototype.setPoint=Ln.prototype.dd,Ln.prototype.set=Ln.prototype.set,Ln.prototype.setTo=Ln.prototype.sg;var bi=null,so=null,io=[];Ln.className="Rect",Ln.parse=rc,Ln.stringify=el,Ln.contains=No,Ln.intersects=xs,Ln.ZeroRect=bi=new Ln(0,0,0,0).ja(),Ln.NoRect=so=new Ln(NaN,NaN,NaN,NaN).ja(),Ln.parse=rc,Ln.stringify=el,Ln.contains=No,Ln.intersects=xs;function Lr(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):Ht("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Lr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Lr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Lr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Lr.prototype.copy=function(){var a=new Lr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ot=Lr.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ba(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 Lr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Lr(x);for(var te=NaN;a[y]==="";)y++;if((b=a[y++])&&(te=parseFloat(b)),isNaN(te))return new Lr(x,E);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new Lr(x,E):new Lr(x,E,te,ne)}return new Lr}function Ra(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}ot.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},ot.D=function(a){return a instanceof Lr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},ot.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},ot.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)},ot.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Lr.alloc=function(){var a=Ql.pop();return a===void 0?new Lr:a},Lr.free=function(a){Ql.push(a)},Lr.prototype.isReal=Lr.prototype.w,Lr.prototype.equalsApprox=Lr.prototype.Xa,Lr.prototype.equalTo=Lr.prototype.hi,Lr.prototype.equals=Lr.prototype.D,Lr.prototype.set=Lr.prototype.set,Lr.prototype.setTo=Lr.prototype.sg;var Cs=null,Il=null,Ql=[];Lr.className="Margin",Lr.parse=Ba,Lr.stringify=Ra,Lr.ZeroMargin=Cs=new Lr(0,0,0,0).ja(),Lr.TwoMargin=Il=new Lr(2,2,2,2).ja(),Lr.parse=Ba,Lr.stringify=Ra;function wr(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 aa,$a,Pl,Dl,Fl,Bi,mc,tl,nl,As,Cu,Bu,_s,dl,Hc,hh,Gc,Wh,Wc,vc,Ru,Bl,dh,Uc,yc,to,Io,Es,Xa,_a,ca,Ca,Ka,za,_u,Rl;wr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},wr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wr.prototype.copy=function(){var a=new wr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},ot=wr.prototype,ot.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ot.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ma(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function wd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return aa;if(a==="TopLeft")return $a;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Pl;if(a==="TopRight")return Dl;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Fl;if(a==="Center")return Bi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return mc;if(a==="BottomLeft")return tl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return nl;if(a==="BottomRight")return As;if(a==="TopSide")return Cu;if(a==="LeftSide")return Bu;if(a==="RightSide")return _s;if(a==="BottomSide")return dl;if(a==="TopBottomSides")return Hc;if(a==="LeftRightSides")return hh;if(a==="TopLeftSides")return Gc;if(a==="TopRightSides")return Wh;if(a==="BottomLeftSides")return Wc;if(a==="BottomRightSides")return vc;if(a==="NotTopSide")return Ru;if(a==="NotLeftSide")return Bl;if(a==="NotRightSide")return dh;if(a==="NotBottomSide")return Uc;if(a==="AllSides")return yc;if(a==="Default")return to;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 wr(x,E,te,ne)}return new wr}function bd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}ot.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(aa)?"None":this.D($a)?"TopLeft":this.D(Pl)?"Top":this.D(Dl)?"TopRight":this.D(Fl)?"Left":this.D(Bi)?"Center":this.D(mc)?"Right":this.D(tl)?"BottomLeft":this.D(nl)?"Bottom":this.D(As)?"BottomRight":this.D(Cu)?"TopSide":this.D(Bu)?"LeftSide":this.D(_s)?"RightSide":this.D(dl)?"BottomSide":this.D(Hc)?"TopBottomSides":this.D(hh)?"LeftRightSides":this.D(Gc)?"TopLeftSides":this.D(Wh)?"TopRightSides":this.D(Wc)?"BottomLeftSides":this.D(vc)?"BottomRightSides":this.D(Ru)?"NotTopSide":this.D(Bl)?"NotLeftSide":this.D(dh)?"NotRightSide":this.D(Uc)?"NotBottomSide":this.D(yc)?"AllSides":this.D(to)?"Default":"None"},ot.D=function(a){return a instanceof wr?(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},ot.gv=function(){return new wr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},ot.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Io))a=Bu;else if(a.D(Es))a=_s;else if(a.D(Xa))a=Cu;else if(a.D(_a))a=dl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},ot.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},ot.Mc=function(){return isNaN(this.x)||isNaN(this.y)},ot.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},ot.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},ot.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},wr.alloc=function(){var a=$c.pop();return a===void 0?new wr:a},wr.free=function(a){$c.push(a)},wr.prototype.isDefault=wr.prototype.Xb,wr.prototype.isNone=wr.prototype.ys,wr.prototype.isSide=wr.prototype.$c,wr.prototype.isNoSpot=wr.prototype.Mc,wr.prototype.isSpot=wr.prototype.sb,wr.prototype.includesSide=wr.prototype.Hf,wr.prototype.opposite=wr.prototype.gv,wr.prototype.equals=wr.prototype.D,wr.prototype.set=wr.prototype.set,wr.prototype.setTo=wr.prototype.sg;var $c=[];wr.className="Spot",wr.parse=wd,wr.stringify=bd,wr.None=aa=Ma(new wr(0,0,0,0),0).ja(),wr.Default=to=Ma(new wr(0,0,-1,0),-1).ja(),wr.TopLeft=$a=new wr(0,0,0,0).ja(),wr.TopCenter=Pl=new wr(.5,0,0,0).ja(),wr.TopRight=Dl=new wr(1,0,0,0).ja(),wr.LeftCenter=Fl=new wr(0,.5,0,0).ja(),wr.Center=Bi=new wr(.5,.5,0,0).ja(),wr.RightCenter=mc=new wr(1,.5,0,0).ja(),wr.BottomLeft=tl=new wr(0,1,0,0).ja(),wr.BottomCenter=nl=new wr(.5,1,0,0).ja(),wr.BottomRight=As=new wr(1,1,0,0).ja(),wr.MiddleTop=ca=Pl,wr.MiddleLeft=Ca=Fl,wr.MiddleRight=Ka=mc,wr.MiddleBottom=za=nl,wr.Top=Xa=Pl,wr.Left=Io=Fl,wr.Right=Es=mc,wr.Bottom=_a=nl,wr.TopSide=Cu=Ma(new wr(0,0,1,1),1).ja(),wr.LeftSide=Bu=Ma(new wr(0,0,1,2),1).ja(),wr.RightSide=_s=Ma(new wr(0,0,1,4),1).ja(),wr.BottomSide=dl=Ma(new wr(0,0,1,8),1).ja(),wr.TopBottomSides=Hc=Ma(new wr(0,0,1,9),1).ja(),wr.LeftRightSides=hh=Ma(new wr(0,0,1,6),1).ja(),wr.TopLeftSides=Gc=Ma(new wr(0,0,1,3),1).ja(),wr.TopRightSides=Wh=Ma(new wr(0,0,1,5),1).ja(),wr.BottomLeftSides=Wc=Ma(new wr(0,0,1,10),1).ja(),wr.BottomRightSides=vc=Ma(new wr(0,0,1,12),1).ja(),wr.NotTopSide=Ru=Ma(new wr(0,0,1,14),1).ja(),wr.NotLeftSide=Bl=Ma(new wr(0,0,1,13),1).ja(),wr.NotRightSide=dh=Ma(new wr(0,0,1,11),1).ja(),wr.NotBottomSide=Uc=Ma(new wr(0,0,1,7),1).ja(),wr.AllSides=yc=Ma(new wr(0,0,1,15),1).ja(),_u=new wr(.156,.156).ja(),Rl=new wr(.844,.844).ja(),wr.parse=wd,wr.stringify=bd;function pi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}pi.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},pi.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},pi.prototype.copy=function(){var a=new pi;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},pi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},pi.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},pi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},pi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},pi.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},pi.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},pi.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},pi.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},ot=pi.prototype,ot.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},ot.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},ot.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)},ot.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))},ot.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))},ot.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,he=this.m22,ge=this.dx,ye=this.dy,Ie=y*te+x*se+ge,Ue=y*ne+x*he+ye,qe=b*te+x*se+ge,rt=b*ne+x*he+ye;return x=y*te+E*se+ge,y=y*ne+E*he+ye,te=b*te+E*se+ge,b=b*ne+E*he+ye,E=Math.min(Ie,qe),Ie=Math.max(Ie,qe),qe=Math.min(Ue,rt),Ue=Math.max(Ue,rt),E=Math.min(E,x),Ie=Math.max(Ie,x),qe=Math.min(qe,y),Ue=Math.max(Ue,y),E=Math.min(E,te),Ie=Math.max(Ie,te),qe=Math.min(qe,b),Ue=Math.max(Ue,b),a.h(E,qe,Ie-E,Ue-qe),a},pi.alloc=function(){var a=fh.pop();return a===void 0?new pi:a},pi.free=function(a){fh.push(a)},pi.prototype.transformRect=pi.prototype.pp,pi.prototype.transformPoint=pi.prototype.Ga,pi.prototype.scale=pi.prototype.scale,pi.prototype.translate=pi.prototype.translate,pi.prototype.rotate=pi.prototype.rotate,pi.prototype.invert=pi.prototype.Vj,pi.prototype.multiplyInverted=pi.prototype.bv,pi.prototype.multiply=pi.prototype.multiply,pi.prototype.reset=pi.prototype.reset,pi.prototype.isIdentity=pi.prototype.ws,pi.prototype.equals=pi.prototype.D,pi.prototype.setTransform=pi.prototype.setTransform,pi.prototype.set=pi.prototype.set;var fh=[];pi.className="Transform",pi.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,he=x;else se=x,he=a;if(y<b)var ge=y,ye=b;else ge=b,ye=y;if(a===x)return ge<=ne&&ne<=ye&&a-E<=te&&te<=a+E;if(y===b)return se<=te&&te<=he&&y-E<=ne&&ne<=y+E;if(he+=E,se-=E,se<=te&&te<=he&&(ye+=E,ge-=E,ge<=ne&&ne<=ye))if(he-se>ye-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,he,ge,ye,Ie){if(Qt.Yb(a,y,ne,se,Ie,x,b)&&Qt.Yb(a,y,ne,se,Ie,E,te))return Qt.Yb(a,y,ne,se,Ie,ge,ye);var Ue=(a+x)/2,qe=(y+b)/2,rt=(x+E)/2,ut=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Ue+rt)/2,x=(qe+ut)/2,rt=(rt+E)/2,ut=(ut+te)/2;var At=(b+rt)/2,Mt=(x+ut)/2;return Qt.cs(a,y,Ue,qe,b,x,At,Mt,he,ge,ye,Ie)||Qt.cs(At,Mt,rt,ut,E,te,ne,se,he,ge,ye,Ie)},ax:function(a,y,x,b,E,te,ne,se,he){var ge=(x+E)/2,ye=(b+te)/2;return he.h((((a+x)/2+ge)/2+(ge+(E+ne)/2)/2)/2,(((y+b)/2+ye)/2+(ye+(te+se)/2)/2)/2),he},My:function(a,y,x,b,E,te,ne,se){var he=(x+E)/2,ge=(b+te)/2;return Kr(((a+x)/2+he)/2,((y+b)/2+ge)/2,(he+(E+ne)/2)/2,(ge+(te+se)/2)/2)},Dl:function(a,y,x,b,E,te,ne,se,he,ge){if(Qt.Yb(a,y,ne,se,he,x,b)&&Qt.Yb(a,y,ne,se,he,E,te))Yi(ge,a,y,0,0),Yi(ge,ne,se,0,0);else{var ye=(a+x)/2,Ie=(y+b)/2,Ue=(x+E)/2,qe=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(ye+Ue)/2,x=(Ie+qe)/2,Ue=(Ue+E)/2,qe=(qe+te)/2;var rt=(b+Ue)/2,ut=(x+qe)/2;Qt.Dl(a,y,ye,Ie,b,x,rt,ut,he,ge),Qt.Dl(rt,ut,Ue,qe,E,te,ne,se,he,ge)}return ge},Qe:function(a,y,x,b,E,te,ne,se,he,ge){if(Qt.Yb(a,y,ne,se,he,x,b)&&Qt.Yb(a,y,ne,se,he,E,te))ge.length===0&&(ge.push(a),ge.push(y)),ge.push(ne),ge.push(se);else{var ye=(a+x)/2,Ie=(y+b)/2,Ue=(x+E)/2,qe=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(ye+Ue)/2,x=(Ie+qe)/2,Ue=(Ue+E)/2,qe=(qe+te)/2;var rt=(b+Ue)/2,ut=(x+qe)/2;Qt.Qe(a,y,ye,Ie,b,x,rt,ut,he,ge),Qt.Qe(rt,ut,Ue,qe,E,te,ne,se,he,ge)}return ge},jv:function(a,y,x,b,E,te,ne,se,he,ge){if(Qt.Yb(a,y,E,te,ge,x,b))return Qt.Yb(a,y,E,te,ge,se,he);var ye=(a+x)/2,Ie=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Ue=(ye+x)/2,qe=(Ie+b)/2;return Qt.jv(a,y,ye,Ie,Ue,qe,ne,se,he,ge)||Qt.jv(Ue,qe,x,b,E,te,ne,se,he,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 he=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var ye=(he+x)/2,Ie=(ge+b)/2;Qt.iv(a,y,he,ge,ye,Ie,ne,se),Qt.iv(ye,Ie,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 he=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var ye=(he+x)/2,Ie=(ge+b)/2;Qt.ep(a,y,he,ge,ye,Ie,ne,se),Qt.ep(ye,Ie,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,he,ge,ye,Ie,Ue,qe){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,he,ge,ye,Ie)||(Ue=(a-ne)*(ge-Ie)-(y-se)*(he-ye),Ue===0)?!1:(qe.h(((a*se-y*ne)*(he-ye)-(a-ne)*(he*Ie-ge*ye))/Ue,((a*se-y*ne)*(ge-Ie)-(y-se)*(he*Ie-ge*ye))/Ue),!0);var rt=(a+x)/2,ut=(y+b)/2,At=(x+E)/2,Mt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+At)/2,x=(ut+Mt)/2,At=(At+E)/2,Mt=(Mt+te)/2;var Bt=(b+At)/2,_t=(x+Mt)/2,Gt=1/0,Zt=!1,hn=0,qn=0;return Qt.Eo(a,y,rt,ut,b,x,Bt,_t,he,ge,ye,Ie,Ue,qe)&&(a=(qe.x-he)*(qe.x-he)+(qe.y-ge)*(qe.y-ge),a<Gt&&(Gt=a,Zt=!0,hn=qe.x,qn=qe.y)),Qt.Eo(Bt,_t,At,Mt,E,te,ne,se,he,ge,ye,Ie,Ue,qe)&&(qe.x-he)*(qe.x-he)+(qe.y-ge)*(qe.y-ge)<Gt&&(Zt=!0,hn=qe.x,qn=qe.y),Zt&&(qe.x=hn,qe.y=qn),Zt},Fo:function(a,y,x,b,E,te,ne,se,he,ge,ye,Ie,Ue){var qe=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-Ie)-(y-se)*(he-ye),Ue===0)return qe;var rt=((a*se-y*ne)*(he-ye)-(a-ne)*(he*Ie-ge*ye))/Ue,ut=((a*se-y*ne)*(ge-Ie)-(y-se)*(he*Ie-ge*ye))/Ue;if(rt>=ye)return qe;if((he>ye?he-ye:ye-he)<(ge>Ie?ge-Ie:Ie-ge)){if(y<se?(he=y,a=se):(he=se,a=y),ut<he||ut>a)return qe}else if(a<ne?(he=a,a=ne):he=ne,rt<he||rt>a)return qe;0<Ue?qe++:0>Ue&&qe--}else{rt=(a+x)/2,ut=(y+b)/2;var At=(x+E)/2,Mt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+At)/2,x=(ut+Mt)/2,At=(At+E)/2,Mt=(Mt+te)/2;var Bt=(b+At)/2,_t=(x+Mt)/2;qe+=Qt.Fo(a,y,rt,ut,b,x,Bt,_t,he,ge,ye,Ie,Ue),qe+=Qt.Fo(Bt,_t,At,Mt,E,te,ne,se,he,ge,ye,Ie,Ue)}return qe},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,he){return Qt.B(a,x)&&Qt.B(y,b)?(he.h(a,y),!1):Qt.$(E,ne)?Qt.$(a,x)?(Qt.qh(a,y,x,b,E,te,he),!1):Qt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,he):(se=(se-te)/(ne-E),Qt.$(a,x)?(x=se*(a-E)+te,y<b?(E=y,y=b):E=b,x<E?(he.h(a,E),!1):x>y?(he.h(a,y),!1):(he.h(a,x),!0)):(ne=(b-y)/(x-a),Qt.$(se,ne)?(Qt.qh(a,y,x,b,E,te,he),!1):(E=(ne*a-se*E+te-y)/(ne-se),Qt.$(ne,0)?(a<x?(b=a,a=x):b=x,E<b?(he.h(b,y),!1):E>a?(he.h(a,y),!1):(he.h(E,y),!0)):Qt.qh(a,y,x,b,E,ne*(E-a)+y,he))))},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,he,ge){function ye(At,Mt){var Bt=(At-a)*(At-a)+(Mt-y)*(Mt-y);Bt<Ie&&(Ie=Bt,he.h(At,Mt))}var Ie=1/0;ye(he.x,he.y);var Ue=0,qe=0,rt=0,ut=0;if(E<ne?(Ue=E,qe=ne):(Ue=ne,qe=E),te<se?(rt=E,ut=ne):(rt=ne,ut=E),Ue=(qe-Ue)/2+ge,ge=(ut-rt)/2+ge,E=(E+ne)/2,te=(te+se)/2,Ue===0||ge===0)return he;if(.5>(x>a?x-a:a-x)){if(Ue=1-(x-E)*(x-E)/(Ue*Ue),0>Ue)return he;Ue=Math.sqrt(Ue),b=-ge*Ue+te,ye(x,ge*Ue+te),ye(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 he;Ue=Math.sqrt(Ue),ge=(-se+Ue)/(2*b),ye(ge,x*ge-x*a+y),Ue=(-se-Ue)/(2*b),ye(Ue,x*Ue-x*a+y)}return he},Ff:function(a,y,x,b,E,te,ne,se,he){var ge=1e21,ye=a,Ie=y;if(Qt.Ve(a,y,a,b,E,te,ne,se,he)){var Ue=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te);Ue<ge&&(ge=Ue,ye=he.x,Ie=he.y)}return Qt.Ve(x,y,x,b,E,te,ne,se,he)&&(Ue=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),Ue<ge&&(ge=Ue,ye=he.x,Ie=he.y)),Qt.Ve(a,y,x,y,E,te,ne,se,he)&&(y=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),y<ge&&(ge=y,ye=he.x,Ie=he.y)),Qt.Ve(a,b,x,b,E,te,ne,se,he)&&(a=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),a<ge&&(ge=a,ye=he.x,Ie=he.y)),he.h(ye,Ie),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 he=a+x,ge=y+b;return E===ne?(te<se?(ne=te,te=se):ne=se,a<=E&&E<=he&&ne<=ge&&te>=y):te===se?(E<ne?(se=E,E=ne):se=ne,y<=te&&te<=ge&&se<=he&&E>=a):!!(No(a,y,x,b,E,te)||No(a,y,x,b,ne,se)||Qt.Rl(a,y,he,y,E,te,ne,se)||Qt.Rl(he,y,he,ge,E,te,ne,se)||Qt.Rl(he,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 he=ne/2,ge=b;if(b=Math.min(2*ne,Math.abs(E-b)),1e-5>b)return he=ge+se*Math.min(b,he),se=a+x*Math.cos(ge),ge=y+x*Math.sin(ge),a+=x*Math.cos(he),y+=x*Math.sin(he),x=(se+a)/2,he=(ge+y)/2,te.push([se,ge,x,he,x,he,a,y]),te;for(;1e-5<b;)E=ge+se*Math.min(b,he),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),he=-se,ge=ne*ne+he*he,ye=ge+ne*ne+he*se;return ge=4/3*(Math.sqrt(2*ge*ye)-ye)/(ne*se-he*ne),se=ne-ge*he,ne=he+ge*ne,he=-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-he*ge,E+se*ge+he*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 he=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(he,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,he=-te+Math.sqrt(a*a+ne*ne);y=se;for(var ge=0;9999999999>ge&&(y=.5*(se+he),!(y===se||y===he));++ge){var ye=a/(y+E),Ie=ne/(y+te);if(ye=ye*ye+Ie*Ie-1,0<ye)se=y;else if(0>ye)he=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 Sr,um:new Sr,Mf:new Sr,Nf:0,vm:100};Qt.za=Qt.AA;function Zn(a){zr(this),this.l=2,a===void 0&&(a=Zn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Zn.o?this.ee=new vn:(Zn.V===null&&(Zn.V=new vn().freeze()),this.ee=Zn.V),this.aq=this.ee.Ja,this.Ip=new Ln().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=$a,this.gg=As,this.Rk=this.Sk=NaN,this.Uf=Hn}Zn.prototype.copy=function(){var a=new Zn;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===Zn.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},Zn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Zn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Zn.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},Zn.prototype.ka=function(){if(Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Zn.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},Zn.prototype.Xa=function(a){if(!(a instanceof Zn))return!1;if(this.type!==a.type)return this.type===Zn.j&&a.type===Zn.o?Pd(this,a):a.type===Zn.j&&this.type===Zn.o?Pd(a,this):!1;if(this.type===Zn.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 Pd(a,y){return a.type!==Zn.j||y.type!==Zn.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===Po&&Qt.B(a.endX,y.endX)&&Qt.B(a.endY,y.endY))))}Zn.ia=function(a){return a.toString()},Zn.prototype.qb=function(a){a.classType===Zn&&(this.type=a)},Zn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Zn.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 Zn.u:var y=new Ln(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 Zn.F:if(y=new Ln(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 Zn.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()}},Zn.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},Zn.parse=function(a,y){function x(){return ut>=Gt-1?!0:ge[ut+1].match(Zt)!==null}function b(){return ut++,ge[ut]}function E(qr){var Ur=parseFloat(b()),Zi=parseFloat(b());At===At.toLowerCase()&&(Ur=_t.x+Ur,Zi=_t.y+Zi),qr.h(Ur,Zi)}function te(){return E(_t),_t}function ne(){return E(Bt),Bt}function se(){var qr=Mt.toLowerCase();return qr!=="c"&&qr!=="s"&&qr!=="q"&&qr!=="t"?_t:new kt(2*_t.x-Bt.x,2*_t.y-Bt.y)}y===void 0&&(y=!1);var he=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(he,"$1 $2"),a=a.replace(he,"$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 ye=ge[a];if(ye.match(/(\.[0-9]*)(\.)/gm)!==null){he=yn();for(var Ie="",Ue=!1,qe=0;qe<ye.length;qe++){var rt=ye[qe];rt!=="."||Ue?rt==="."?(he.push(Ie),Ie="."):Ie+=rt:(Ue=!0,Ie+=rt)}for(he.push(Ie),ge.splice(a,1),ye=0;ye<he.length;ye++)ge.splice(a+ye,0,he[ye]);a+=he.length-1,On(he)}}var ut=-1,At="",Mt="";he=new kt(0,0);var Bt=new kt(0,0),_t=new kt(0,0),Gt=ge.length;a=O1(null),Ue=Ie=ye=!1,qe=!0,rt=null;for(var Zt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ut>=Gt-1);)if(Mt=At,At=b(),At!=="")switch(At.toUpperCase()){case"X":qe=!0,Ie=ye=!1;break;case"M":for(rt=te(),a.mc===null||qe===!0?(yp(a,rt.x,rt.y,ye,!Ie,Ue),qe=!1):a.moveTo(rt.x,rt.y),he.assign(_t);!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();)_t=new kt((At===At.toLowerCase()?_t.x:0)+parseFloat(b()),_t.y),a.lineTo(_t.x,_t.y);break;case"V":for(;!x();)_t=new kt(_t.x,(At===At.toLowerCase()?_t.y:0)+parseFloat(b())),a.lineTo(_t.x,_t.y);break;case"C":for(;!x();){rt=new kt,E(rt);var hn=ne(),qn=te();Eh(a,rt.x,rt.y,hn.x,hn.y,qn.x,qn.y)}break;case"S":for(;!x();)rt=se(),hn=ne(),qn=te(),Eh(a,rt.x,rt.y,hn.x,hn.y,qn.x,qn.y);break;case"Q":for(;!x();)rt=ne(),hn=te(),Gm(a,rt.x,rt.y,hn.x,hn.y);break;case"T":for(;!x();)Bt=rt=se(),hn=te(),Gm(a,rt.x,rt.y,hn.x,hn.y);break;case"B":for(;!x();){rt=parseFloat(b()),hn=parseFloat(b()),qn=parseFloat(b());var dr=parseFloat(b()),hr=parseFloat(b()),$n=hr,jn=!1;x()||($n=parseFloat(b()),x()||(jn=parseFloat(b())!==0)),At===At.toLowerCase()&&(qn+=_t.x,dr+=_t.y),a.arcTo(rt,hn,qn,dr,hr,$n,jn)}break;case"A":for(;!x();)rt=Math.abs(parseFloat(b())),hn=Math.abs(parseFloat(b())),qn=parseFloat(b()),hr=dr=!1,jn=$n=0,$n=b(),$n.length===1?(dr=!!parseFloat($n),hr=!!parseFloat(b()),$n=parseFloat(b())):$n.length===2?(dr=!!parseFloat($n[0]),hr=!!parseFloat($n[1]),$n=parseFloat(b())):(dr=!!parseFloat($n[0]),hr=!!parseFloat($n[1]),$n=parseFloat($n.slice(2))),jn=parseFloat(b()),At===At.toLowerCase()&&($n=_t.x+$n,jn=_t.y+jn),_t.h($n,jn),Px(a,rt,hn,qn,dr,hr,$n,jn);break;case"Z":bx(a),_t.assign(he);break;case"F":for(rt="",hn=1;ge[ut+hn];)if(ge[ut+hn]==="0")Ue=!0,hn++;else if(ge[ut+hn].match(/[Uu]/)!==null)hn++;else if(ge[ut+hn].match(Zt)===null)hn++;else{rt=ge[ut+hn];break}rt.match(/[Mm]/)?ye=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(rt="",hn=1;ge[ut+hn];)if(ge[ut+hn].match(/[Ff]/)!==null)hn++;else if(ge[ut+hn].match(Zt)===null)hn++;else{rt=ge[ut+hn];break}rt.match(/[Mm]/)?Ie=!0:a.mc.isShadowed=!1}if(he=a.os,Wm=a,y)for(y=he.figures.iterator;y.next();)y.value.isFilled=!0;return he},Zn.Ha=function(a,y){for(var x=a.length,b=kt.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}kt.free(b)},Zn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Zn.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},Zn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Zn.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),af(this,a,!1),Yi(a,0,0,0,0),a.freeze()},Zn.prototype.ix=function(){var a=new Ln;return af(this,a,!0),a};function af(a,y,x){switch(a.type){case Zn.j:case Zn.u:case Zn.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 Zn.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,he=te.startX,ge=te.startY,ye=0;ye<se;ye++){var Ie=ne[ye];switch(Ie.type){case Po:case ma:he=Ie.endX,ge=Ie.endY,Yi(y,he,ge,0,0);break;case as:Qt.Dl(he,ge,Ie.point1X,Ie.point1Y,Ie.point2X,Ie.point2Y,Ie.endX,Ie.endY,.5,y),he=Ie.endX,ge=Ie.endY;break;case Cl:Qt.iv(he,ge,Ie.point1X,Ie.point1Y,Ie.endX,Ie.endY,.5,y),he=Ie.endX,ge=Ie.endY;break;case ha:case _l:var Ue=Ie.type===ha?rl(Ie,te):zs(Ie,te,he,ge),qe=Ue.length;if(qe===0){he=Ie.type===ha?Ie.centerX:Ie.endX,ge=Ie.type===ha?Ie.centerY:Ie.endY,Yi(y,he,ge,0,0);break}Ie=null;for(var rt=0;rt<qe;rt++)Ie=Ue[rt],Qt.Dl(Ie[0],Ie[1],Ie[2],Ie[3],Ie[4],Ie[5],Ie[6],Ie[7],.5,y);Ie!==null&&(he=Ie[6],ge=Ie[7]);break;default:Ht("Unknown Segment type: "+Ie.type)}}}break;default:Ht("Unknown Geometry type: "+a.type)}}Zn.prototype.normalize=function(){this._isFrozen&&kn(this);var a=this.ix();return this.offset(-a.x,-a.y),new kt(-a.x,-a.y)},Zn.prototype.offset=function(a,y){return this._isFrozen&&kn(this),this.transform(1,0,0,1,a,y),this},Zn.prototype.scale=function(a,y){return this._isFrozen&&kn(this),this.transform(a,0,0,y,0,0),this},Zn.prototype.rotate=function(a,y,x){this._isFrozen&&kn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=pi.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),pi.free(b),this},ot=Zn.prototype,ot.transform=function(a,y,x,b,E,te){switch(this.type){case Zn.j:case Zn.u:case Zn.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 Zn.o:for(var he=this.figures.s,ge=he.length,ye=0;ye<ge;ye++){var Ie=he[ye];ne=Ie.startX,se=Ie.startY,Ie.startX=ne*a+se*x+E,Ie.startY=ne*y+se*b+te,Ie=Ie.segments.s;for(var Ue=Ie.length,qe=0;qe<Ue;qe++){var rt=Ie[qe];switch(rt.type){case Po:case ma:ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case as: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 Cl: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 ha: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 _l: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:Ht("Unknown Segment type: "+rt.type)}}}}return this._isInvalidBounds=!0,this},ot.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 Zn.j:return Qt.Yb(x,b,E,te,y,a.x,a.y);case Zn.u:var ne=Ln.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),Ln.free(ne),a;case Zn.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 Zn.o:return zu(this,a,y,!0,!1);default:return!1}};function zu(a,y,x,b,E){var te=y.x;y=y.y;for(var ne=a.bounds.x-20,se=0,he,ge,ye,Ie,Ue=a.figures.s,qe=Ue.length,rt=0;rt<qe;rt++){var ut=Ue[rt],At=!ut.isEvenOdd;if(ut.isFilled){if(b&&ut.ca(te,y,x))return!0;var Mt=ut.segments;he=ut.startX,ge=ut.startY;for(var Bt=he,_t=ge,Gt=Mt.s,Zt=0;Zt<=Mt.length;Zt++){var hn=void 0;if(Zt!==Mt.length){hn=Gt[Zt];var qn=hn.type;a=hn.endX,Ie=hn.endY}else qn=Po,a=Bt,Ie=_t;switch(qn){case ma:if(Bt=Hu(te,y,ne,y,he,ge,Bt,_t),isNaN(Bt))return!0;se+=Bt,Bt=a,_t=Ie;break;case Po:if(he=Hu(te,y,ne,y,he,ge,a,Ie),isNaN(he))return!0;se+=he;break;case as:ye=Qt.Fo(he,ge,hn.point1X,hn.point1Y,hn.point2X,hn.point2Y,a,Ie,ne,y,te,y,.5),se+=ye;break;case Cl:ye=Qt.Fo(he,ge,(he+2*hn.point1X)/3,(ge+2*hn.point1Y)/3,(2*hn.point1X+a)/3,(2*hn.point1Y+Ie)/3,a,Ie,ne,y,te,y,.5),se+=ye;break;case ha:case _l:qn=hn.type===ha?rl(hn,ut):zs(hn,ut,he,ge);var dr=qn.length;if(dr===0){if(he=Hu(te,y,ne,y,he,ge,hn.type===ha?hn.centerX:hn.endX,hn.type===ha?hn.centerY:hn.endY),isNaN(he))return!0;se+=he;break}hn=null;for(var hr=0;hr<dr;hr++){if(hn=qn[hr],hr===0){if(ye=Hu(te,y,ne,y,he,ge,hn[0],hn[1]),isNaN(ye))return!0;se+=ye}ye=Qt.Fo(hn[0],hn[1],hn[2],hn[3],hn[4],hn[5],hn[6],hn[7],ne,y,te,y,.5),se+=ye}hn!==null&&(a=hn[6],Ie=hn[7]);break;default:Ht("Unknown Segment type: "+hn.type)}he=a,ge=Ie}if(At){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(ut.ca(te,y,E?x:x+2))return!0}return!1}function Hu(a,y,x,b,E,te,ne,se){if(Qt.Yb(E,te,ne,se,.05,a,y))return NaN;var he=(a-x)*(te-se);if(he===0)return 0;var ge=((a*b-y*x)*(E-ne)-(a-x)*(E*se-te*ne))/he;if(y=(a*b-y*x)*(te-se)/he,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<he?1:-1}function ic(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}ot.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new kt),this.type===Zn.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 he=b[se],ge=he.length;for(a=0;a<ge;a++){var ye=he[a];if(ne+ye>=te)return b=te-ne,b=ye===0?0:b/ye,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+=ye}}return y},ot.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Zn.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],he=se.length;for(a=0;a<he;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},ot.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Zn.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 he=b[se],ge=he.length;for(a=0;a<ge;a++){var ye=he[a];if(ne+ye>=te)return b=te-ne,b=ye===0?0:b/ye,ye=x[se],x=ye[2*a],se=ye[2*a+1],E=ye[2*a+2],a=ye[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+=ye}}return y},ot.xx=function(a){if(this.type===Zn.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=kt.alloc();return Qt.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,kt.free(se),Math.sqrt(((a-y)*(a-y)+(te-x)*(te-x))/ne)}}else if(this.type===Zn.u){ne=this.startX,se=this.startY;var he=this.endX;if(E=this.endY,ne!==he||se!==E){y=he-ne,x=E-se,te=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ne),he),a=Math.min(Math.max(a,se),E),ne=Math.abs(b-ne),he=Math.abs(b-he),se=Math.abs(a-se),E=Math.abs(a-E);var ge=Math.min(ne,he,se,E);if(ge===se)return b/te;if(ge===he)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=kt.alloc(),E=1/0,se=ne=0,he=y.length;for(var ye=ge=0,Ie=0;Ie<he;Ie++)for(var Ue=y[Ie],qe=x[Ie],rt=Ue.length,ut=0;ut<rt;ut+=2){var At=Ue[ut],Mt=Ue[ut+1];if(ut!==0){Qt.qh(ge,ye,At,Mt,a.x,a.y,b);var Bt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Bt<E&&(E=Bt,ne=se,ne+=Math.sqrt((b.x-ge)*(b.x-ge)+(b.y-ye)*(b.y-ye))),se+=qe[(ut-2)/2]}ge=At,ye=Mt}return kt.free(b),a=ne/te,0>a?0:1<a?1:a}return 0};function Cd(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Zn.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===Zn.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===Zn.F){var te=new Ha;te.startX=a.endX,te.startY=(a.startY+a.endY)/2;var ne=new Gi(ha);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=rl(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 he=a[se];Qt.Qe(ne,te,he[2],he[3],he[4],he[5],he[6],he[7],.5,b),ne=he[6],te=he[7]}}y.push(b),x.push(ph(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,he=te;for(var ge=E.segments.s,ye=ge.length,Ie=0;Ie<ye;Ie++){var Ue=ge[Ie];switch(Ue.type){case ma:4<=b.length&&(y.push(b),x.push(ph(b))),b=[],b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,te=Ue.endY,se=ne,he=te;break;case Po:b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,te=Ue.endY;break;case as: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 Cl:Qt.ep(ne,te,Ue.point1X,Ue.point1Y,Ue.endX,Ue.endY,.5,b),ne=Ue.endX,te=Ue.endY;break;case ha:var qe=rl(Ue,E),rt=qe.length;if(rt===0){b.push(Ue.centerX),b.push(Ue.centerY),ne=Ue.centerX,te=Ue.centerY;break}for(var ut=0;ut<rt;ut++){var At=qe[ut];Qt.Qe(ne,te,At[2],At[3],At[4],At[5],At[6],At[7],.5,b),ne=At[6],te=At[7]}break;case _l:if(qe=zs(Ue,E,ne,te),rt=qe.length,ut=Ue.endX,At=Ue.endY,rt===0){b.push(ut),b.push(At),ne=ut,te=At;break}for(ut=0;ut<rt;ut++)At=qe[ut],Qt.Qe(ne,te,At[2],At[3],At[4],At[5],At[6],At[7],.5,b),ne=At[6],te=At[7];break;default:Ht("Segment not of valid type: "+Ue.type)}Ue.isClosed&&(b.push(se),b.push(he))}4<=b.length&&(y.push(b),x.push(ph(b)))}}}function ph(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(To(x,b,ne,se))),x=ne,b=se}return y}ot.add=function(a){return this.ee.add(a),this},ot.pm=function(a,y,x,b,E,te,ne,se){return this._isFrozen&&kn(this),this.fg=new wr(a,y,E,te).freeze(),this.gg=new wr(x,b,ne,se).freeze(),this},Et.Object.defineProperties(Zn.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 Cd(this),this.tk}},flattenedLengths:{get:function(){return Cd(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Zn.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===Zn.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&&kn(this,a),this.na=a,a===Zn.o?this.ee=new vn:(Zn.V===null&&(Zn.V=new vn().freeze()),this.ee=Zn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&kn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&kn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&kn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&kn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&kn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&kn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&kn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&kn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Zn.prototype.setSpots=Zn.prototype.pm,Zn.prototype.add=Zn.prototype.add,Zn.prototype.getFractionForPoint=Zn.prototype.xx,Zn.prototype.getPointAndAngleAlongPath=Zn.prototype.Qu,Zn.prototype.getAngleAlongPath=Zn.prototype.wx,Zn.prototype.getPointAlongPath=Zn.prototype.Pu,Zn.prototype.containsPoint=Zn.prototype.ca,Zn.prototype.transform=Zn.prototype.transform,Zn.prototype.rotate=Zn.prototype.rotate,Zn.prototype.scale=Zn.prototype.scale,Zn.prototype.offset=Zn.prototype.offset,Zn.prototype.normalize=Zn.prototype.normalize,Zn.prototype.computeBoundsWithoutOrigin=Zn.prototype.ix,Zn.prototype.equalsApprox=Zn.prototype.Xa,Zn.className="Geometry",Zn.j=new bn(Zn,"Line",0),Zn.u=new bn(Zn,"Rectangle",1),Zn.F=new bn(Zn,"Ellipse",2),Zn.o=new bn(Zn,"Path",3),Zn.V=null,Zn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Zn.className="Geometry",Zn.stringify=Zn.ia,Zn.fillPath=Zn.nb,Zn.parse=Zn.parse,Zn.Line=Zn.j,Zn.Rectangle=Zn.u,Zn.Ellipse=Zn.F,Zn.Path=Zn.o;function Ha(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 vn,this.sr=this.pl.Ja,this.fw=null}Ha.prototype.copy=function(){var a=new Ha;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},ot=Ha.prototype,ot.Xa=function(a){if(!(a instanceof Ha&&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},ot.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},ot.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},ot.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},ot.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},ot.add=function(a){return this.pl.add(a),this},ot.ca=function(a,y,x){for(var b=this.startX,E=this.startY,te=b,ne=E,se=this.segments.s,he=se.length,ge=0;ge<he;ge++){var ye=se[ge];switch(ye.type){case ma:te=ye.endX,ne=ye.endY,b=ye.endX,E=ye.endY;break;case Po:if(Qt.Yb(b,E,ye.endX,ye.endY,x,a,y))return!0;b=ye.endX,E=ye.endY;break;case as:if(Qt.cs(b,E,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.5,a,y,x))return!0;b=ye.endX,E=ye.endY;break;case Cl:if(Qt.jv(b,E,ye.point1X,ye.point1Y,ye.endX,ye.endY,.5,a,y,x))return!0;b=ye.endX,E=ye.endY;break;case ha:case _l:var Ie=ye.type===ha?rl(ye,this):zs(ye,this,b,E),Ue=Ie.length,qe=ye.type===ha?ye.centerX:ye.endX,rt=ye.type===ha?ye.centerY:ye.endY;if(Ue===0){if(Qt.Yb(b,E,qe,rt,x,a,y))return!0;b=qe,E=rt;break}for(qe=null,rt=0;rt<Ue;rt++)if(qe=Ie[rt],rt===0&&Qt.Yb(b,E,qe[0],qe[1],x,a,y)||Qt.cs(qe[0],qe[1],qe[2],qe[3],qe[4],qe[5],qe[6],qe[7],.5,a,y,x))return!0;qe!==null&&(b=qe[6],E=qe[7]);break;default:Ht("Unknown Segment type: "+ye.type)}if(ye.isClosed&&(b!==te||E!==ne)&&Qt.Yb(b,E,te,ne,x,a,y))return!0}return!1},Et.Object.defineProperties(Ha.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&&kn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&kn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&kn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&kn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&kn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&kn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Ha.prototype.add=Ha.prototype.add,Ha.prototype.equalsApprox=Ha.prototype.Xa,Ha.className="PathFigure";function Gi(a,y,x,b,E,te,ne,se){zr(this),a===void 0&&(a=Po),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===_l?(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===ha&&(te=Math.max(te,0)),this.Wh=te,typeof ne=="number"?(a===ha&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}Gi.prototype.copy=function(){var a=new Gi;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},ot=Gi.prototype,ot.Xa=function(a){if(!(a instanceof Gi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ma:case Po:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY);case as: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 Cl: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 ha: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 _l: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}},ot.qb=function(a){a.classType===Gi&&(this.type=a)},ot.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ma:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Po:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case as:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Cl:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ha: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 _l: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":"")},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.close=function(){return this.isClosed=!0,this};function rl(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=pi.alloc();ne.reset(),x<b?ne.scale(1,b/x):ne.scale(x/b,1),Zn.Ha(te,ne),pi.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 zs(a,y,x,b){function E(ut,At,Mt,Bt){return(ut*Bt<At*Mt?-1:1)*Math.acos((ut*Mt+At*Bt)/(Math.sqrt(ut*ut+At*At)*Math.sqrt(Mt*Mt+Bt*Bt)))}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,he=a.isClockwiseArc,ge=a.Dc,ye=a.Ec,Ie=Math.cos(ne),Ue=Math.sin(ne),qe=Ie*(x-ge)/2+Ue*(b-ye)/2;ne=-Ue*(x-ge)/2+Ie*(b-ye)/2;var rt=qe*qe/(y*y)+ne*ne/(te*te);return 1<rt&&(y*=Math.sqrt(rt),te*=Math.sqrt(rt)),rt=(se===he?-1:1)*Math.sqrt((y*y*te*te-y*y*ne*ne-te*te*qe*qe)/(y*y*ne*ne+te*te*qe*qe)),isNaN(rt)&&(rt=0),se=rt*y*ne/te,rt=rt*-te*qe/y,isNaN(se)&&(se=0),isNaN(rt)&&(rt=0),x=(x+ge)/2+Ie*se-Ue*rt,b=(b+ye)/2+Ue*se+Ie*rt,ye=E(1,0,(qe-se)/y,(ne-rt)/te),Ie=(qe-se)/y,ge=(ne-rt)/te,qe=(-qe-se)/y,se=(-ne-rt)/te,ne=E(Ie,ge,qe,se),qe=(Ie*qe+ge*se)/(Math.sqrt(Ie*Ie+ge*ge)*Math.sqrt(qe*qe+se*se)),-1>=qe?ne=Math.PI:1<=qe&&(ne=0),!he&&0<ne&&(ne-=2*Math.PI),he&&0>ne&&(ne+=2*Math.PI),he=y>te?1:y/te,qe=y>te?te/y:1,y=Qt.jx(0,0,y>te?y:te,ye,ye+ne,!0),te=pi.alloc(),te.reset(),te.translate(x,b),te.rotate(a.Ne,0,0),te.scale(he,qe),Zn.Ha(y,te),pi.free(te),a.ae=y,a.ae}Et.Object.defineProperties(Gi.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&&kn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&kn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&kn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&kn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&kn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&kn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&kn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&kn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&kn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Wn(a,">= zero",Gi,"radiusX"),this._isFrozen&&kn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Wn(a,">= zero",Gi,"radiusY"),this._isFrozen&&kn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&kn(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&&kn(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&&kn(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&&kn(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&&kn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Gi.prototype.equalsApprox=Gi.prototype.Xa;var ma=new bn(Gi,"Move",0),Po=new bn(Gi,"Line",1),as=new bn(Gi,"Bezier",2),Cl=new bn(Gi,"QuadraticBezier",3),ha=new bn(Gi,"Arc",4),_l=new bn(Gi,"SvgArc",4);Gi.className="PathSegment",Gi.Move=ma,Gi.Line=Po,Gi.Bezier=as,Gi.QuadraticBezier=Cl,Gi.Arc=ha,Gi.SvgArc=_l;function ws(){this.H=null,this.xu=new kt(0,0).freeze(),this.mt=new kt(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}ws.prototype.copy=function(){var a=new ws;return this.clone(a)},ws.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},ws.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},ws.prototype.So=function(a,y){var x=this.diagram;return x===null||Ad(x,a,y),y},ws.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ad(x,a,y),y.assign(x.Ps(y))),y},Et.Object.defineProperties(ws.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}}}),ws.prototype.getMultiTouchDocumentPoint=ws.prototype.Bz,ws.prototype.getMultiTouchViewPoint=ws.prototype.So,ws.className="InputEvent";function Kc(){this.H=null,this.xa="",this.ar=this.Lr=null}Kc.prototype.copy=function(){var a=new Kc;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Kc.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Et.Object.defineProperties(Kc.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}}}),Kc.className="DiagramEvent";function zo(){this.Fm=Ho,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}zo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},zo.prototype.copy=function(){var a=new zo;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=on(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=on(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=on(y)&&typeof y.J=="function"?y.J():y,a},zo.prototype.qb=function(a){a.classType===zo&&(this.change=a)},zo.prototype.toString=function(){var a="";return a=this.change===il?a+"* ":this.change===Ho?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===il?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Fn(this.object)),this.oldValue!==null&&(a+=" old: "+Fn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Fn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},zo.prototype.I=function(a){return a?this.oldValue:this.newValue},zo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},zo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},zo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},zo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},zo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Et.Object.defineProperties(zo.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===il&&(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}}}),zo.prototype.redo=zo.prototype.redo,zo.prototype.canRedo=zo.prototype.canRedo,zo.prototype.undo=zo.prototype.undo,zo.prototype.canUndo=zo.prototype.canUndo,zo.prototype.getParam=zo.prototype.Dz,zo.prototype.getValue=zo.prototype.I,zo.prototype.clear=zo.prototype.clear;var il=new bn(zo,"Transaction",-1),Ho=new bn(zo,"Property",0),la=new bn(zo,"Insert",1),La=new bn(zo,"Remove",2);zo.className="ChangedEvent",zo.Transaction=il,zo.Property=Ho,zo.Insert=la,zo.Remove=La;function Va(){this.o=new vn().freeze(),this.xa="",this.j=!1}Va.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
|
`+b.toString())}}return y},Va.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()},Va.prototype.canUndo=function(){return this.isComplete},Va.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Va.prototype.canRedo=function(){return this.isComplete},Va.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Va.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new fr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Ho&&b.object){var E=y.get(b.object);E||(E=new fr,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()}},Et.Object.defineProperties(Va.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Va.prototype.optimize=Va.prototype.ak,Va.prototype.redo=Va.prototype.redo,Va.prototype.canRedo=Va.prototype.canRedo,Va.prototype.undo=Va.prototype.undo,Va.prototype.canUndo=Va.prototype.canUndo,Va.prototype.clear=Va.prototype.clear,Va.className="Transaction";function $o(){this.Pt=new xn,this.Jd=!1,this.u=new vn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new vn().freeze(),this.hl=new vn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}$o.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var 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},$o.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},$o.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},ot=$o.prototype,ot.Xw=function(a){this.Pt.add(a)},ot.Rx=function(a){this.Pt.remove(a)},ot.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},ot.eb=function(a){return a===void 0&&(a=""),Vc(this,!0,a)},ot.Kf=function(){return Vc(this,!1,"")};function Vc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&lr("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}ot.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()}},$o.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},$o.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){lr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},$o.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},$o.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){lr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},$o.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new zo;for(b.change=il,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},$o.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Va);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||lr("Change not within a transaction: "+x.toString()))}},$o.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Et.Object.defineProperties($o.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),$o.prototype.handleChanged=$o.prototype.Tu,$o.prototype.redo=$o.prototype.redo,$o.prototype.undo=$o.prototype.undo,$o.prototype.canUndo=$o.prototype.canUndo,$o.prototype.discardHistoryAfterIndex=$o.prototype.lx,$o.prototype.rollbackTransaction=$o.prototype.Kf,$o.prototype.commitTransaction=$o.prototype.eb,$o.prototype.startTransaction=$o.prototype.Ea,$o.prototype.removeModel=$o.prototype.Rx,$o.prototype.addModel=$o.prototype.Xw,$o.prototype.clear=$o.prototype.clear,$o.className="UndoManager";function zi(){zr(this),this.H=Ku,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ws,this.Zr=-1}zi.prototype.toString=function(){return this.name!==""?this.name+" Tool":Nn(this.constructor)},zi.prototype.updateAdornments=function(){},zi.prototype.canStart=function(){return this.isEnabled},zi.prototype.doStart=function(){},zi.prototype.doActivate=function(){this.isActive=!0},zi.prototype.doDeactivate=function(){this.isActive=!1},zi.prototype.doStop=function(){},zi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},zi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},zi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},zi.prototype.doMouseMove=function(){},zi.prototype.doMouseUp=function(){this.stopTool()},zi.prototype.doMouseWheel=function(){},zi.prototype.canStartMultiTouch=function(){return!0},zi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,kt.allocAt(NaN,NaN)),b=y.So(1,kt.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}kt.free(x),kt.free(b)},zi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,kt.allocAt(NaN,NaN)),b=y.So(1,kt.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 kt((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}kt.free(x),kt.free(b)},zi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},zi.prototype.doKeyUp=function(){},zi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},zi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},zi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Yr?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||(Yr?y.meta:y.control)||y.shift||a.clearSelection()}},zi.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,Wf(a,b,x),b.handled};function Wf(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)}}}zi.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}},zi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},zi.prototype.doCurrentObjectChanged=function(){},zi.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===$h&&!y.shift||E===Uh&&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===$h&&y.shift||E===Uh&&!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)}}},zi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},zi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Gn(function(){x.doWaitAfter(b)},a)},zi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&It.clearTimeout(this.Zr),this.Zr=-1},zi.prototype.doWaitAfter=function(){},zi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ui);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},zi.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},Et.Object.defineProperties(zi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof cn&&(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}}}),zi.prototype.startTransaction=zi.prototype.Ea,zi.className="Tool";function Do(){zi.call(this),this.name="ToolManager",this.hb=new vn,this.ob=new vn,this.Hb=new vn,this.F=this.V=850,this.o=new Yn(2,2).ja(),this.Ha=5e3,this.ia=Uh,this.u=Ed,this.Mp=this.j=null,this.zj=-1}Jt(Do,zi),Do.prototype.initializeStandardTools=function(){},Do.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ui&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Do.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Sc&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Zc){y.bubbles=!0;return}if(this.gestureBehavior===Sc)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===Uh?this.mouseWheelBehavior=$h:this.mouseWheelBehavior===$h&&(this.mouseWheelBehavior=Uh)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Do.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Zc){y.bubbles=!0;return}if(this.gestureBehavior===Sc)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}}Uf(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Uf(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Do.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ui&&(y===a||y.rg(a))||this.hideToolTip()},Do.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()))},Do.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)},Do.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 Ui)||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()},Do.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ui){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 yi&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(It.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Gn(function(){E.hideToolTip()},a)}},Do.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}},Do.prototype.hideToolTip=function(){this.zj!==-1&&(It.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ui?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof yi&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Do.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()},Do.prototype.doMouseWheel=function(){this.standardMouseWheel()},Do.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Do.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Do.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},Do.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},Do.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)},Et.Object.defineProperties(Do.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 Ui?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}}}),Do.prototype.replaceStandardTool=Do.prototype.gb;var Uh=new bn(Do,"WheelScroll",0),$h=new bn(Do,"WheelZoom",1),$f=new bn(Do,"WheelNone",2),Ed=new bn(Do,"GestureZoom",3),Sc=new bn(Do,"GestureCancel",4),Zc=new bn(Do,"GestureNone",5);Do.className="ToolManager",Do.WheelScroll=Uh,Do.WheelZoom=$h,Do.WheelNone=$f,Do.GestureZoom=Ed,Do.GestureCancel=Sc,Do.GestureNone=Zc;function Ko(){zi.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 kt(NaN,NaN),this.Fr=new kt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new xn().freeze(),this.ia=new de,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gu;Jt(Ko,zi),Ko.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},Ko.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},Ko.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,(Yr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ko.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),sn=null,this.isActive=!0,this.tl.set(a.position),sf(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&&Ms(a),Jf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,sn=this,Tn=this.diagram,this.doSimulatedDragOut()))};function sf(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Kn?(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 vr,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ko.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ko.prototype.Pd=function(a){return a===void 0?new Qc(Fi):this.isGridSnapEnabled?new Qc(new kt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Qc(a.copy())},Ko.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Xc(this),Xh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Gu.count){for(var y=Gu,x=y.length,b=0;b<x;b++){var E=y.M(b);xc(E),fu(E),Xc(E),E.diagram.ug()}y.clear()}xc(this),this.tl.h(NaN,NaN),Tn!==null&&(Tn.currentCursor=""),sn=Tn=null,fu(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Kh(a,!0)},Ko.prototype.stopTransaction=function(){var a=this.diagram,y=zi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Xc(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,lf(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Kf(){var a=sn;fu(a),wc(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ko.prototype.doCancel=function(){fu(this),wc(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ko.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ko.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Wu(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")):wc(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 fr,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 Kn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,sf(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function fu(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 Kn&&(x.value.point=new kt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function xc(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 Eu(a,y,x){var b=a.diagram,E=a.startPoint,te=kt.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),kt.free(te),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Ms(b),b.hk())}Ko.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&ac(b,a,y,this.dragOptions,x)};function wc(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 Kn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Lh(b,-E.x,-E.y)}y.bd()}}function Td(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),fl(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=lf(a,E,b),!a.isActive&&sn===null)return;var se=b!==null?b.part:null;if(se===null||x.handlesDragDropForTopLevelParts&&se.isTopLevel&&!(se instanceof ti)){var he=x.mouseDragOver;he!==null&&(he(E),ne=!0)}if(!a.isActive&&sn===null||(a.doDragOver(y,b),!a.isActive&&sn===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)}Ko.prototype.findDragOverObject=function(a){var y=this;return Mu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ui||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Ko.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 lf(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],he=se.mouseDragLeave;if(he!==null&&(he(y,se,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&sn===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=uf(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 uf(a){var y=a.panel;return y!==null?y:a instanceof kr&&!(a instanceof ti)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Vf(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=kt.alloc();var te=1/0,ne=null;for(E=E.iterator;E.next();){var se=E.value;if(se.part!==null){var he=se.ga(Bi,a);he=y.Bf(he),he<te&&(ne=se,te=he)}}return kt.free(a),ne}function fl(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=Vf(a,x.i(0),!1),te!==null&&(ne=te.part));var se=null,he=null;x.toNode===null&&(se=Vf(a,x.i(x.pointsCount-1),!0),se!==null&&(he=se.part)),E.isValidLink(ne,te,he,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=he,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)):ei(E,ne,te,he,se):ei(E,null,null,null,null)}}}}Ko.prototype.doDragOver=function(){};function bc(a,y){var x=a.diagram;a.dragsLink&&fl(a,!0),Xc(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;$p(a,E,te),te=uf(te)}}else te=x.mouseDrop,te!==null&&te(E);if(a.isActive||sn!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)te=E.key,te instanceof rr&&te.linksConnected.each(function(se){se.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||sn!==null){for(a=Ln.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof rr&&Dt(x,b,a);Ln.free(a)}}}function $p(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof ti||(x=a.mouseDrop,x!==null&&x(y))}function Dt(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 Kn},!0,function(E){return E instanceof Kn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Ko.prototype.doDropOnto=function(){},Ko.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()?(Wu(this,!1),Jf(a,this.copiedParts),Eu(this,this.copiedParts,!1),Xh(a,this.copiedParts)):this.mayMove()?(fu(this),Eu(this,this.draggedParts,!0)):this.mayDragOut()?(Wu(this,!1),Eu(this,this.copiedParts,!1)):fu(this),Td(this,a.lastInput.documentPoint))}},Ko.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?(fu(this),Wu(this,!0),Jf(a,this.copiedParts),Eu(this,this.copiedParts,!1),Xh(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,fu(this),this.mayMove()&&(Eu(this,this.draggedParts,!0),Td(this,a.lastInput.documentPoint))),this.Ym=!0,bc(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Rt(this),a.Ya(),Xh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Ko.prototype.simulatedMouseMove=function(a,y,x){if(sn===null)return!1;var b=sn.diagram;x instanceof cn||(x=null);var E=Tn;return x!==E&&(E!==null&&E!==b&&(E.ug(),sn.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Tn=x,x!==null&&x!==b&&(Kf(),E=x.toolManager.findTool("Dragging"),E!==null&&(Gu.contains(E)||Gu.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)},Ko.prototype.simulatedMouseUp=function(a,y,x){if(sn===null)return!1;var b=Tn,E=sn.diagram;if(x===null)return sn.doCancel(),!0;if(x!==b){var te=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&te!==null)return b.ug(),sn.isDragOutStarted=!1,te.doSimulatedDragLeave(),!1;Tn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Kf(),Gu.contains(b)||Gu.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 kt),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=sn,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Rt(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof rr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Ko.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Yr?!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())},Ko.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())},Ko.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())},Ko.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Ko.prototype.Az=function(){return sn},Ko.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=sn;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ko.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ol(a),a.animationManager.Cc(),a=sn,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ko.prototype.doSimulatedDragLeave=function(){var a=sn;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ko.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=sn;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;nn(this,y.draggedParts.Lf(),!1,a.firstInput),Eu(this,this.copiedParts,!1),Td(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ko.prototype.doSimulatedDrop=function(){var a=this.diagram,y=sn;if(y!==null){var x=y.diagram;if(y.Ym=!0,fu(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),nn(this,y.draggedParts.Lf(),!0,a.lastInput),Eu(this,this.copiedParts,!1);var b=new xn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),bc(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 nn(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=Ln.alloc();E=b=1/0;for(var ne=-1/0,se=-1/0,he=y.iterator;he.next();){var ge=he.value;if(ge.isVisible()){var ye=ge.location;ge=ye.x,ye=ye.y,isNaN(ge)||isNaN(ye)||(ge<b&&(b=ge),ye<E&&(E=ye),ge>ne&&(ne=ge),ye>se&&(se=ye))}}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,Ln.free(te),te=a.Fr,ne=new fr,se=kt.alloc(),he=y.iterator;he.next();)ge=he.value,ge instanceof Kn&&ge.canCopy()&&(ye=x.I(ge),ye!==null&&(ye.points=ge.points,Lh(ye,te.x-b,te.y-E),ye.suspendsRouting=!0,ne.add(ye,a.Pd())));for(y=y.iterator;y.next();)ge=y.value,ge.Zc()&&ge.canCopy()&&(he=x.I(ge),he!==null&&(ge=ge.location,se.h(te.x-(b-ge.x),te.y-(E-ge.y)),he.location=se,he.Va(),ne.add(he,a.Pd(se))));kt.free(se),a.copiedParts=ne,sf(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Ko.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ko.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new kt},Et.Object.defineProperties(Ko.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}}}),Ko.prototype.getDraggingSource=Ko.prototype.Az;var sn=null,Tn=null;Ko.className="DraggingTool",Gu=new vn,xr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Do.prototype.doCancel=function(){sn!==null&&sn.doCancel(),zi.prototype.doCancel.call(this)};function pn(){zi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Kn,y=new fi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new fi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new rr,y=new fi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ro,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new rr,y=new fi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ro,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 fr,this.Of=this.gj=this.Pf=null}Jt(pn,zi),pn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},pn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var te=y.Df(),ne=Yn.alloc();ne.width=y.naturalBounds.width*te,ne.height=y.naturalBounds.height*te,b.desiredSize=ne,Yn.free(ne),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Bi,te=kt.alloc(),x.location=y.ga(Bi,te),kt.free(te),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},pn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ro,y.fromSpot=aa,y.toSpot=aa),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},pn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},pn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof rr){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)}},pn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof rr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof rr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},pn.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(Ie){return E.findValidLinkablePort(Ie,a)},null,!0);for(b=1/0,y=null,te=te.iterator;te.next();){var ne=te.value,se=ne.part;if(se instanceof rr){var he=ne.ga(Bi,kt.alloc()),ge=x.x-he.x,ye=x.y-he.y;kt.free(he),he=ge*ge+ye*ye,he<b&&(ge=this.validPortsCache.I(ne),ge!==null?ge&&(y=ne,b=he):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=he):this.validPortsCache.add(ne,!1))}}return y!==null&&(x=y.part,x instanceof rr&&(x.layer===null||x.layer.allowLink))?y:null},pn.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},pn.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},pn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},pn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof rr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof rr))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},pn.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)},pn.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 xn;return b.add(a),Bn(this,x,y,b)};function Bn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Bn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Bn(a,y.labeledLink,x,b))))}pn.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!==mf){if(b===og){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!_n(this,a,y,x,!0)}if(b===ag){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!_n(this,a,y,x,!0)}if(b===ng)return a===y?a=!0:(b=new xn,b.add(y),a=In(this,b,a,y,x)),!a;if(b===rg)return!_n(this,a,y,x,!1);if(b===ig)return a===y?a=!0:(b=new xn,b.add(y),a=Qn(this,b,a,y,x)),!a}return!0};function _n(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&&_n(a,ne,x,b,E)))return!0}return!1}function In(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&&In(a,y,ne,b,E)))return!0}return!1}function Qn(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&&Qn(a,y,se,b,E))return!0}}return!1}Et.Object.defineProperties(pn.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}}}),pn.className="LinkingBaseTool";function ir(){pn.call(this),this.name="Linking",this.V={},this.F=null,this.K=er,this.Xd=null}Jt(ir,pn),ir.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},ir.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 rr)))return null;var x=this.direction;if(x===er||x===jr){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===er||x===Mr)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ir.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 rr&&(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 rr&&(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)},ir.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()},ir.prototype.doStop=function(){pn.prototype.doStop.call(this),this.startObject=null},ir.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 rr&&(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)}}},ir.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Kn)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)},ir.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ir.prototype.doNoLink=function(){},Et.Object.defineProperties(ir.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 er=new bn(ir,"Either",0),jr=new bn(ir,"ForwardsOnly",0),Mr=new bn(ir,"BackwardsOnly",0);ir.className="LinkingTool",ir.Either=er,ir.ForwardsOnly=jr,ir.BackwardsOnly=Mr;function vr(){pn.call(this),this.name="Relinking";var a=new fi;a.figure="Diamond",a.desiredSize=_o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new fi,a.figure="Diamond",a.desiredSize=_o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Ln}Jt(vr,pn),vr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Kn){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)}},vr.prototype.makeAdornment=function(a,y){var x=new Ui;return x.type=Un.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},vr.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},vr.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 Ui&&x.adornedPart instanceof Kn))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=ci),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ci),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},vr.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===wp||x===kh)&&(x=Ks),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}},vr.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()},vr.prototype.doStop=function(){pn.prototype.doStop.call(this),this.handle=null},vr.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 rr&&(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()}}},vr.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},vr.prototype.doNoRelink=function(){};function ei(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)}Et.Object.defineProperties(vr.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 Ui))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),vr.className="RelinkingTool",xr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),xr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Cr(){zi.call(this),this.name="LinkReshaping";var a=new fi;a.figure="Rectangle",a.desiredSize=Wo,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new fi,a.figure="Diamond",a.desiredSize=_o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new kt,this.Yq=new vn}Jt(Cr,zi),Cr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Zr},Cr.prototype.om=function(a,y){a.reshapingBehavior=y},Cr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Kn){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)}},Cr.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ui,E.type=Un.Link,x=y.firstPickIndex;var te=y.lastPickIndex,ne=b?1:0;if(y.resegmentable&&y.computeCurve()!==Xl)for(var se=x+ne;se<te-ne;se++){var he=this.makeResegmentHandle(a,se);he!==null&&(he.segmentIndex=se,he.segmentFraction=.5,he.fromMaxLinks=999,E.add(he))}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){he=y.i(x);var ge=y.i(x+1);Qt.B(he.x,ge.x)&&Qt.B(he.y,ge.y)&&(ge=y.i(x-1)),Qt.B(he.x,ge.x)?(this.om(se,Ai),se.cursor="n-resize"):Qt.B(he.y,ge.y)&&(this.om(se,hi),se.cursor="w-resize")}else ne===te-1&&b?(he=y.i(te-1),ge=y.i(te),Qt.B(he.x,ge.x)&&Qt.B(he.y,ge.y)&&(he=y.i(te+1)),Qt.B(he.x,ge.x)?(this.om(se,Ai),se.cursor="n-resize"):Qt.B(he.y,ge.y)&&(this.om(se,hi),se.cursor="w-resize")):ne!==te&&(this.om(se,Wi),se.cursor="move");E.add(se)}E.adornedObject=a}return E},Cr.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Cr.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Cr.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},Cr.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 Kn){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}}},Cr.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Cr.prototype.stopTransaction=function(){var a=this.diagram,y=zi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Cr.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Cr.prototype.getResegmentingPoint=function(){return this.handle.ga(Bi)},Cr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Cr.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&&(Xr(this,ne,b,E,te,!0)||Xr(this,ne,b,E,te,!1))){var se=y.points.copy();Xr(this,ne,b,E,te,!0)?(se.cd(x-2,new kt(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new kt(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new kt((te.x+ne.x)/2,ne.y)),se.cd(x+1,new kt((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&&(Xr(this,b,E,te,ne,!0)||Xr(this,b,E,te,ne,!1))&&(se=y.points.copy(),Xr(this,b,E,te,ne,!0)?(se.cd(x-1,new kt(b.x,(b.y+ne.y)/2)),se.cd(x+2,new kt(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new kt((b.x+ne.x)/2,b.y)),se.cd(x+2,new kt((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=kt.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()),kt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Xr(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}Cr.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===Ai?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===hi&&(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===Ai?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===hi&&(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(Bi,kt.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,kt.alloc()),y.L(0,b.x,b.y),kt.free(te),kt.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(Bi,kt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,kt.alloc()),y.L(y.pointsCount-1,a.x,a.y),kt.free(x),kt.free(a));y.zf()},Cr.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Wi:return a;case Ai:return new kt(y.i(x).x,a.y);case hi:return new kt(a.x,y.i(x).y);default:case Zr:return y.i(x)}},Et.Object.defineProperties(Cr.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 Ui))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}}}),Cr.prototype.setReshapingBehavior=Cr.prototype.om,Cr.prototype.getReshapingBehavior=Cr.prototype.Ru;var Zr=new bn(Cr,"None",0),hi=new bn(Cr,"Horizontal",1),Ai=new bn(Cr,"Vertical",2),Wi=new bn(Cr,"All",3);Cr.className="LinkReshapingTool",Cr.None=Zr,Cr.Horizontal=hi,Cr.Vertical=Ai,Cr.All=Wi,xr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function oi(){zi.call(this),this.name="Resizing",this.o=new Yn(1,1).freeze(),this.j=new Yn(9999,9999).freeze(),this.yg=new Yn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new fi;a.alignmentFocus=Bi,a.figure="Rectangle",a.desiredSize=Wo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new kt,this.Dw=new Yn,this.Tn=new kt,this.rt=new Yn(0,0),this.qt=new Yn(1/0,1/0),this.pt=new Yn(1,1)}Jt(oi,zi),oi.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Kn)){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(),td(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},oi.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ui,y.type=Un.Spot,y.locationSpot=Bi;var x=new $s;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,$a)),y.add(this.makeHandle(a,Dl)),y.add(this.makeHandle(a,As)),y.add(this.makeHandle(a,tl)),y.add(this.makeHandle(a,ca)),y.add(this.makeHandle(a,Ka)),y.add(this.makeHandle(a,za)),y.add(this.makeHandle(a,Ca))}else if(yu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},oi.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},oi.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=Bi),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 Un)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},oi.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},oi.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))},oi.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},oi.prototype.stopTransaction=function(){var a=this.diagram,y=zi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},oi.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},oi.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,kt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),kt.free(E)}},oi.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,kt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),kt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},oi.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 ti){var b=new vn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new de;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()}},oi.prototype.computeResize=function(a,y,x,b,E,te){y.Mc()&&(y=Bi);var ne=this.adornedObject.naturalBounds,se=ne.x,he=ne.y,ge=ne.x+ne.width,ye=ne.y+ne.height,Ie=1;if(!te){Ie=ne.width;var Ue=ne.height;0>=Ie&&(Ie=1),0>=Ue&&(Ue=1),Ie=Ue/Ie}return Ue=kt.alloc(),Qt.No(a.x,a.y,se,he,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,ye-b.height),a.y=Math.min(a.y,ye-x.height),a.height=Math.max(ye-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie):(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width),a.x=ge-a.width,a.y=ye-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-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie):(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*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(Ie*a.width,b.height),x.height),a.width=a.height/Ie,a.y=he+.5*(ye-he-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,ye-b.height),a.y=Math.min(a.y,ye-x.height),a.height=Math.max(ye-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie):(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width),a.y=ye-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-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie):(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width))):(a.width=Math.max(Math.min(Ue.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie,a.y=he+.5*(ye-he-a.height))):0>=y.y?(a.y=Math.max(Ue.y,ye-b.height),a.y=Math.min(a.y,ye-x.height),a.height=ye-a.y,te||(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width,a.x=se+.5*(ge-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ue.y-he,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width,a.x=se+.5*(ge-se-a.width))),kt.free(Ue),a},oi.prototype.computeReshape=function(){var a=Dn;return this.adornedObject instanceof fi&&(a=Ev(this.adornedObject)),!(a===gr||this.diagram.lastInput.shift)},oi.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},oi.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},oi.prototype.computeCellSize=function(){var a=new Yn(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},Et.Object.defineProperties(oi.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 Ui))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 Ui)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}}}),oi.className="ResizingTool",xr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ni(){zi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new kt,this.ue=null;var a=new fi;a.figure="Ellipse",a.desiredSize=_o,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new kt(NaN,NaN),this.u=0,this.F=50}Jt(Ni,zi),Ni.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)}},Ni.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ui,y.type=Un.Position,y.locationSpot=Bi;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(yu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ni.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},Ni.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)},Ni.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(Bi)},Ni.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)},Ni.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new kt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ni.prototype.stopTransaction=function(){var a=this.diagram,y=zi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ni.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ni.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ni.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()},Ni.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()}},Ni.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},Et.Object.defineProperties(Ni.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 Ui))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 Ui)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}}}),Ni.className="RotatingTool",xr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function ho(){zi.call(this),this.name="ClickSelecting"}Jt(ho,zi),ho.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},ho.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},ho.className="ClickSelectingTool";function ui(){zi.call(this),this.name="Action",this.pk=null}Jt(ui,zi),ui.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},ui.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()},ui.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))}},ui.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()},ui.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())},ui.prototype.doStop=function(){this.pk=null},ui.className="ActionTool";function Ei(){zi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new kt(0,0)}Jt(Ei,zi),Ei.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)},Ei.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ei.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 kr)x.Zc()&&(yu(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);on(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var te=kt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Yf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),kt.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Et.Object.defineProperties(Ei.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}}}),Ei.className="ClickCreatingTool";function li(){zi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new kr;a.layerName="Tool",a.selectable=!1;var y=new fi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Jt(li,zi),li.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))},li.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},li.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},li.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=Yn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Yn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},li.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()},li.prototype.computeBoxBounds=function(){var a=this.diagram;return new Ln(a.firstInput.documentPoint,a.lastInput.documentPoint)},li.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Yr?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 vn,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)}},Et.Object.defineProperties(li.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}}}),li.className="DragSelectingTool";function Gr(){zi.call(this),this.name="Panning",this.Xt=new kt,this.xy=new kt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(It.document,"scroll",a.Kw,!1),a.stopTool()}}Jt(Gr,zi),Gr.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())},Gr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(It.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Gr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Gr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Gr.prototype.doMouseMove=function(){this.move()},Gr.prototype.doMouseUp=function(){this.move(),this.stopTool()},Gr.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)}},Et.Object.defineProperties(Gr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Gr.className="PanningTool",xr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),xr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),xr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),xr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),xr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function yi(){this.F=this.u=this.j=this.o=null}Et.Object.defineProperties(yi.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}}}),yi.className="HTMLInfo";function Ri(a,y,x){this.text=a,this.hx=y,this.visible=x}Ri.className="ContextMenuButtonInfo";function Xi(){zi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new kt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Jt(Xi,zi);function Ji(a){var y=new yi;y.show=function(E,te,ne){ne.showDefaultContextMenu()},y.hide=function(E,te){te.hideDefaultContextMenu()},Oo=y,a.tu=function(){a.stopTool()},y=Xn("div");var x=Xn("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=Xn("style");It.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",ai,!1),b.addEventListener(y,"selectstart",ai,!1),b.addEventListener(x,"contextmenu",ai,!1)),y.className="goCXforeground",x.className="goCXbackground",It.document.body&&(It.document.body.appendChild(y),It.document.body.appendChild(x)),vo=y,Ea=x,ka=!0}function ai(a){return a.preventDefault(),!1}Xi.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)},Xi.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Xi.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Xi.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof cn||(a instanceof Yt?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},Xi.prototype.doActivate=function(){},Xi.prototype.doMouseDown=function(){if(zi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ui){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&po(this)},Xi.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ui){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}po(this)};function po(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof yi||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(wo(a,!0),a.isActive||a.stopTool())}Xi.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function wo(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=Oo,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Yt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ui&&!a.currentContextMenu.visible&&a.stopTool()}}Xi.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Xi.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ui){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 yi&&a.show(y,x,this);this.currentContextMenu=a},Xi.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}},Xi.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ui?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof yi&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Jo(a){var y=new vn;return y.add(new Ri("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Ri("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Ri("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Ri("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Ri("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Ri("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Ri("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Ri("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Ri("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Ri("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Ri("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Ri("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Ri("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Xi.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Jo(this)),vo.innerHTML="",Ea.addEventListener("pointerdown",this.tu,!1);var y=this,x=Xn("ul");x.className="goCXul",vo.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=Xn("li"),te.className="goCXli";var ne=Xn("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)}}vo.style.display="block",Ea.style.display="block"},Xi.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Oo){vo.style.display="none",Ea.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Ea,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Et.Object.defineProperties(Xi.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ui?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ka===!1&&Oo===null&&ra&&Ji(this),Oo},set:function(a){a===null&&(ka=!0),Oo=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Oo=null,ka=!1,Ea=null,vo=null;Xi.className="ContextMenuTool",xr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Hi(){zi.call(this),this.name="TextEditing",this.Zh=new Co,this.ia=null,this.V=ji,this.vj=null,this.qa=Ii,this.u=1,this.F=!0,this.o=null,this.j=new yi,this.kt=null,Uo(this,this.j)}Jt(Hi,zi);function Uo(a,y){if(ra){var x=Xn("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(Vi)):E==="Tab"?(a.acceptText(Qi),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ii){var b=a.kt;a.qa===fo&&(a.qa=Fo),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ii){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 Co&&te instanceof Hi)if(te.state===bs)x.style.border="3px solid red",x.focus();else{var ne=b.ga(Bi),se=E.position,he=E.scale,ge=b.Df()*he;ge<te.minimumEditorScale&&(ge=te.minimumEditorScale);var ye=b.naturalBounds.width*ge+6,Ie=b.naturalBounds.height*ge+2,Ue=(ne.x-se.x)*he;ne=(ne.y-se.y)*he,se=b.verticalAlignment,he=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ge,Ie=se.y*Ie-se.y*he+se.offsetY-(.5*Ie-.5*he)-he/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=ye+"px",x.style.left=(Ue-ye/2|0)-1+"px",x.style.top=(ne+Ie|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)}}}Hi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Hs&&Hs!==this&&(Hs.acceptText(ns),Hs&&Hs!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Co&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===ji&&!y.isSelected||this.starting===Vo&&2>a.lastInput.clickCount)):!1},Hi.prototype.doStart=function(){Hs=this,this.textBlock!==null&&this.doActivate()},Hi.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 Co&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=fo;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Ln(this.textBlock.ga($a),this.textBlock.ga(As));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Hi.prototype.doCancel=function(){this.stopTool()},Hi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Hi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(ns)},Hi.prototype.acceptText=function(a){switch(a){case ns:this.qa===ss?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===fo||this.qa===bs||this.qa===Fo)&&(this.qa=Bo,Na(this));break;case va:case Vi:case Qi:(Vi!==a||this.textBlock.isMultiline!==!0)&&(this.qa===fo||this.qa===bs||this.qa===Fo)&&(this.qa=Bo,Na(this))}};function Na(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=ss,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=bs,a.doError(E,te))}}Hi.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)},Hi.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Hi.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ii,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Hi.prototype.doStop=function(){Hs=null},Hi.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)))},Hi.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Et.Object.defineProperties(Hi.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)}}}),Hi.prototype.measureTemporaryTextBlock=Hi.prototype.Lx;var va=new bn(Hi,"LostFocus",0),ns=new bn(Hi,"MouseDown",1),Qi=new bn(Hi,"Tab",2),Vi=new bn(Hi,"Enter",3),qi=new bn(Hi,"SingleClick",0),ji=new bn(Hi,"SingleClickSelected",1),Vo=new bn(Hi,"DoubleClick",2),Ii=new bn(Hi,"StateNone",0),fo=new bn(Hi,"StateActive",1),Fo=new bn(Hi,"StateEditing",2),Bo=new bn(Hi,"StateValidating",3),bs=new bn(Hi,"StateInvalid",4),ss=new bn(Hi,"StateValidated",5),Hs=null;Hi.className="TextEditingTool",Hi.LostFocus=va,Hi.MouseDown=ns,Hi.Tab=Qi,Hi.Enter=Vi,Hi.SingleClick=qi,Hi.SingleClickSelected=ji,Hi.DoubleClick=Vo,Hi.StateNone=Ii,Hi.StateActive=fo,Hi.StateEditing=Fo,Hi.StateValidating=Bo,Hi.StateInvalid=bs,Hi.StateValidated=ss,xr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Qo(a){El||(pl(),El=!0),this.H=Ku,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=ql,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new xn,this.ce=new ta,this.ce.Yd=this,this.Ei=new xn,this.pu=new xn,this.Sr=new xn,this.pr=new xn,a&&Object.assign(this,a)}Qo.prototype.Xe=function(a){this.H=a},Qo.prototype.canStart=function(){return!0};function Ps(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),us(a.H),a.zb=!0)}function qa(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===ql?(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===Hl&&y.vc.clear(),a.Qw=!!(a.Pk===eu&&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(),Ts(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Is&&b!==null&&(delete b.start.scale,delete b.end.scale),It.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ms(x),Ld(x),a.zb=!1,y.start(),y.bc&&(ua(a),x.Ya(),oc(y,0),ol(x,!0),Za(a),x.R("AnimationStarting",a)))}))}}function ps(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Uu(a,y,x,b){a.isTicking||ps(a)||y instanceof Kn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}ot=Qo.prototype,ot.fv=function(a){return this.ce.fv(a)},ot.Xu=function(a){return this.ce.Xu(a)};function qo(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 he=se.key;if(he instanceof Yt&&he.diagram!==null||he instanceof cn){se=!0;break e}}se=!1}se?Gl(ne,!1):ne.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ua(E),ol(E.H),Za(E)),It.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),It.requestAnimationFrame(function(){x()}))}function ia(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ua(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 Za(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}ot.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(),Ts(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ts(y,this.H)},ot.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))},ot.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),da(this,a))},ot.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ga(this.ce,y,"position",y.position,y.position),da(this,a))};function gs(a,y,x){!a.zb||y.D(x)||ps(a)||(a.H.pi||(y=x.copy()),Ga(a.ce,a.H,"position",y,x))}function Lo(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function da(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function ms(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 he=y[0],ge=y[1],ye=y[2];return y=y[3],se===0||se===100?(te=he,ne=ge):(ye===0||ye===100)&&(he=te,ge=ne),180<Math.abs(he-te)&&(he>te?te+=360:he+=360),te=E(x,te,he-te,b)%360,ne=E(x,ne,ge-ne,b),se=E(x,se,ye-se,b),x=E(x,a,y-a,b),"hsla("+te+", "+ne+"%, "+se+"%, "+x+")"}function pl(){function a(x,b,E,te,ne,se){x.position=new kt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}var y=new fr;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 kt(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 kt(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 kt(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 he=x.actualBounds,ge=E.actualBounds;E=ge.x+ge.width/2-he.width/2,he=ge.y+ge.height/2-he.height/2,ne<se?x.mm(te(ne,b.x,E-b.x,se),te(ne,b.y,he-b.y,se),!1):x.position=new kt(te(ne,b.x,E-b.x,se),te(ne,b.y,he-b.y,se))}),y.add("desiredSize",function(x,b,E,te,ne,se){x.desiredSize=new Ln(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=ms(b,E,ne,se,te)}),y.add("stroke",function(x,b,E,te,ne,se){x.stroke=ms(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=ms(b,E,ne,se,te)}),y.add("areaBackground",function(x,b,E,te,ne,se){x.areaBackground=ms(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)}),zl=y}Et.Object.defineProperties(Qo.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&&Wn(a,">= 1",Qo,"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}}}),Qo.prototype.stopAnimation=Qo.prototype.Cc;var zl=null,El=!1,ql=new bn(Qo,"Default",1),eu=new bn(Qo,"AnimateLocations",2),Hl=new bn(Qo,"None",3);Qo.className="AnimationManager",Qo.defineAnimationEffect=function(a,y){El||(pl(),El=!0),zl.add(a,y)},Qo.Default=ql,Qo.AnimateLocations=eu,Qo.None=Hl;function ta(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=tu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Fi,this.vc=new fr,this.Tt=new fr,this.yl=new xn,this.Ut=new xn,this.dw=xh,a&&Object.assign(this,a)}ta.prototype.suspend=function(){this.Xk=!0},ta.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Gl(this,!0),ua(this.Yd),ol(this.H),Za(this.Yd),this.H.redraw()};function Ts(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}ot=ta.prototype,ot.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 cn?a=x:x instanceof Yt&&(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===ql&&this===y.defaultAnimation&&(this.Lp=Tu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=vf),ua(y),this.yl.each(function(b){b.data=null,a.add(b)}),Za(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,qo(y,this),this)},ot.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},ot.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof cn?this.H=a:a instanceof Yt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof kr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ga(this,a,y,x,b,E),this};function Ga(a,y,x,b,E,te){var ne=a.vc;if(y instanceof cn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(eh(b),sv(),b=[Zl.j,Zl.u,Zl.o,Zl.F],eh(E),sv(),E=[Zl.j,Zl.u,Zl.o,Zl.F]),ne.contains(y)){var se=ne.I(y),he=se.start,ge=se.end;he[x]===void 0&&(he[x]=fa(b)),ge[x]=fa(E)}else he={},ge={},he[x]=fa(b),ge[x]=fa(E),se=he.position,y instanceof Yt&&se instanceof kt&&!se.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&se.assign(ge.position),se=new $u(he,ge,te),ne.add(y,se);ne=he[x],ne instanceof kt&&!ne.w()&&ne.assign(a.o),te&&x.indexOf("position:")===0&&y instanceof kr?se.Ku.location=fa(y.location):te&&(se.Ku[x]=fa(b))}function fa(a){return a instanceof kt||a instanceof Yn?a.copy():a}ot.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},ot.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Gl(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),ua(x),oc(a,E),ol(a.H,!0),Za(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 oc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var te=b.key;if(!(te instanceof Yt&&te.diagram===null)){var ne=b.value,se=E?ne.end:ne.start;ne=E?ne.start:ne.end;var he=zl,ge;for(ge in ne)ge==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||he.get(ge)===null||he.get(ge)(te,se[ge],ne[ge],a.Lp,y,x,a)}}}ot.stop=function(){return this.bc?(this.Ml(!0),this):this},ot.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,ua(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=zl;b.next();){var ne=b.key,se=b.value,he=E?se.end:se.start,ge=E?se.start:se.end,ye=se.Ku,Ie;for(Ie in ge)if(te.get(Ie)!==null){var Ue=Ie;!se.Hu||Ue!=="position:nodeCollapse"&&Ue!=="position:placeholder"||(Ue="position"),te.get(Ue)(ne,he[Ie],ye[Ie]!==void 0?ye[Ie]:se.Hu?he[Ie]:ge[Ie],this.Lp,this.Gd,this.Gd,this)}se.Hu&&ye.location!==void 0&&ne instanceof kr&&(ne.location=ye.location),se.nv&&ne instanceof kr&&ne.Zb(!1)}if(y.As.clear(),Kh(y,!1),y.Ya(),y.N(),ol(y,!0),x.defaultAnimation===this){for(Ie=x.pr.iterator;Ie.next();)E=Ie.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}ol(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Za(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ts(this,null),x.Ml(this),y.$b())}},ot.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof ti&&(b=y.placeholder),b!==null?(x=b.ga($a),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new kt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ti)for(a=a.memberParts;a.next();)b=a.value,b instanceof rr&&this.Cj(b,y)},ot.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof ti&&(x=y.placeholder),x!==null){var b=x.ga($a);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 ti)for(a=a.memberParts;a.next();)b=a.value,b instanceof rr&&this.Aj(b,y)}},ot.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Et.Object.defineProperties(ta.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Wn(a,">= 1",ta,"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:Ht("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}}}),ta.prototype.getTemporaryState=ta.prototype.Ez,ta.prototype.stop=ta.prototype.stop,ta.prototype.add=ta.prototype.add,ta.prototype.addTemporaryPart=ta.prototype.Iy;function tu(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Tu(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}ta.className="Animation",ta.EaseLinear=function(a,y,x,b){return x*a/b+y},ta.EaseInOutQuad=tu,ta.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},ta.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},ta.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},ta.EaseOutExpo=Tu;function $u(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}$u.className="AnimationState";function Tl(a,y,x){this.xd=null,this.rf=a,this.so=x||ya,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=ls))}Tl.prototype.copy=function(){var a=new Tl(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 Zo(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))}Et.Object.defineProperties(Tl.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 ya=new bn(Tl,"Default",1),ls=new bn(Tl,"Immediate",2),Sa=new bn(Tl,"Bundled",3);Tl.className="AnimationTrigger",Tl.Default=ya,Tl.Immediate=ls,Tl.Bundled=Sa;function Go(a){zr(this),this.H=null,this.Pa=new vn,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)}ot=Go.prototype,ot.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Ns(x)}a.clear(),this.Zq.length=0},ot.Xe=function(a){this.H=a},ot.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 he=se.value;he instanceof ti?E++:he instanceof rr?b++:he instanceof Kn?te++:he instanceof Ui?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&&Mi(b)&&(se+=" #"+Mi(b)),x instanceof rr?se+=" "+Fn(b):x instanceof Kn&&(se+=" "+Fn(x.fromNode)+" "+Fn(x.toNode));return y+" "+this.Pa.count+": "+se},ot.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=kt.alloc(),te=this.Pa.s,ne=te.length;ne--;){var se=te[ne];if((b!==!0||td(se)!==!1)&&se.isVisible()&&(E.assign(a),Pi(E,se.oe),se=se.ic(E,y,x),se!==null&&(y!==null&&(se=y(se)),se!==null&&(x===null||x(se)))))return kt.free(E),se}return kt.free(E),null},ot.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof vn||b instanceof xn||(b=new xn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var te=kt.alloc(),ne=this.Pa.s,se=ne.length;se--;){var he=ne[se];if((E!==!0||td(he)!==!1)&&he.isVisible()){te.assign(a),Pi(te,he.oe);var ge=he;he.ji(te,y,x,b)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge))}}return kt.free(te),b},ot.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 vn||E instanceof xn||(E=new xn),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 he=ne[se];if((te!==!0||td(he)!==!1)&&he.isVisible()){var ge=he;he.Cf(a,y,x,b,E)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||E.add(ge))}}return E},ot.Nu=function(a,y,x,b,E,te,ne){if(this.Uh===!1)return E;for(var se=this.Pa.s,he=se.length;he--;){var ge=se[he];if((ne!==!0||td(ge)!==!1)&&te(ge)&&ge.isVisible()){var ye=ge;ge.Cf(a,y,x,b,E)&&(y!==null&&(ye=y(ye)),ye===null||x!==null&&!x(ye)||E.add(ye))}}return E},ot.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 vn||E instanceof xn)&&(te=E),E=!0),te instanceof vn||te instanceof xn||(te=new xn),this.Uh===!1)return te;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var se=kt.alloc(),he=kt.alloc(),ge=this.Pa.s,ye=ge.length;ye--;){var Ie=ge[ye];if((ne!==!0||td(Ie)!==!1)&&Ie.isVisible()){se.assign(a),Pi(se,Ie.oe),he.h(a.x+y,a.y),Pi(he,Ie.oe);var Ue=Ie;Ie.og(se,he,x,b,E,te)&&(x!==null&&(Ue=x(Ue)),Ue===null||b!==null&&!b(Ue)||te.add(Ue))}}return kt.free(se),kt.free(he),te},ot.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=yn();for(var E=yn(),te=0;te<b;te++){var ne=x[te];if(ne.vw=te,ne instanceof Kn){if(ne.fd===!1)continue}else if(ne instanceof Ui&&ne.adornedPart!==null)continue;var se=ne.actualBounds;ne.isVisible()&&jo(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],Fv(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++)Fv(E[y]);On(a),On(E)}}};function vs(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}ot.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=vs(this,a);var te=this.Zq;te.length=0;for(var ne=y.scale,se=Ln.alloc(),he=0;he<b;he++)this.Oj(a,x[he],y,te,ne,se,!0);if(Ln.free(se),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function gl(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=vs(a,y),se=a.Zq;se.length=0;for(var he=x.scale,ge=Ln.alloc(),ye=0;ye<te;ye++){var Ie=E[ye];b.contains(Ie)&&a.Oj(y,Ie,x,se,he,ge,!1)}Ln.free(ge),y.globalAlpha=ne}}}ot.Oj=function(a,y,x,b,E,te,ne){if(ne&&!td(y))a.Hs(y);else{if(b!==null&&y instanceof Kn&&(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 Ml?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&&(oa(y,a,y.areaBackground,!0,!0,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(oa(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),oa(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))}},ot.g=function(a,y,x,b,E){var te=this.diagram;te!==null&&te.cb(Ho,a,this,y,x,b,E)},ot.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Ns(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)),pu(this,a,y),a},ot.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,Ns(y),a};function pu(a,y,x){if(y=cf(a,y,x),x instanceof ti&&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&&pu(a,-1,y)}x.svg!==null&&x.svg.remove()}function cf(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,he=NaN;se<E&&(he=a.M(se).zOrder,!!isNaN(he));)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(he)&&he<b)for(;;){if(se===E||he>=b){if(se--,se===y)break;return a.mb(y),a.Gb(se,x),se}for(he=NaN;++se<E&&(he=a.M(se).zOrder,isNaN(he)););}return y}Et.Object.defineProperties(Go.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===""&&Ht("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Ht("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)&&Wn(a,"0 <= value <= 1",Go,"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))}}}),Go.prototype.findObjectsNear=Go.prototype.og,Go.prototype.findObjectsIn=Go.prototype.Cf,Go.prototype.findObjectsAt=Go.prototype.ji,Go.prototype.findObjectAt=Go.prototype.ic,Go.className="Layer";function cn(a,y){if(hm||(Ls(),hm=!0),zr(this),Ku=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ra){var x=this,b=function(){x.removeEventListener(It.document,"DOMContentLoaded",b,!1),x.setRTL()};It.document.body!==null?this.setRTL():x.addEventListener(It.document,"DOMContentLoaded",b,!1)}this.ol=null,rp.add("Model",lo);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===Ho&&ne.updateDataBindings(te.object,te.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(te){E.partManager.doModelChanged(te)},this.hu=this.ku=null,hf(this),this.model=hy(),this.Wg=!0,Vh(this),this.layout=new Ro,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 dm,a!==void 0&&(typeof a=="string"||It.Element&&a instanceof Element?Md(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Pc,Ku;function hf(a){a.Yd=new Qo,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new vn,a.pj=new fr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new kt(NaN,NaN).freeze(),a.du=new kt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new kt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new pi,a.zu=new kt(NaN,NaN).freeze(),a.ut=new Ln(NaN,NaN,NaN,NaN).freeze(),a.rj=new Lr(0,0,0,0).freeze(),a.sj=xh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Is,a.zk=to,a.Fg=Is,a.pq=to,a.yt=$a,a.Bt=$a,a.Fc=!0,a.pn=!1,a.De=new xn,a.Eh=new fr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Lr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ws,a.bq.diagram=a,a.Qg=new ws,a.Qg.diagram=a,a.cj=new ws,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,nv(a),a.ai=new xn,a.Ht=!0,a.uu=wh,a.pw=!1,a.wu=mf,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 fr,a.Xn=new vn,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 Lr(5).freeze(),a.Hw=new xn().freeze(),a.Nt=999999999,a.nw=new xn().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 xn,a.ow=new xn,a.Xh=null,a.aw=new Yn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new kt,bounds:new Ln,Py:new Yn,bA:new Yn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Ln(NaN,NaN,NaN,NaN).freeze(),a.wo=new Yn(NaN,NaN).freeze(),a.Sp=new Ln(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new fr;var y=new rr,x=new Co;x.bind(new xa("text","",Fn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new rr,x=new Co,x.stroke="brown",x.bind(new xa("text","",Fn)),y.add(x),a.Lg.add("Comment",y),y=new rr,y.selectable=!1,y.avoidable=!1,x=new fi,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Yn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new fr,y=new ti,y.selectionObjectName="GROUPPANEL",y.type=Un.Vertical,x=new Co,x.font="bold 12pt sans-serif",x.bind(new xa("text","",Fn)),y.add(x),x=new Un(Un.Auto),x.name="GROUPPANEL";var b=new fi;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new $s,b.padding=new Lr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new fr,y=new Kn,x=new fi,x.isPanelMain=!0,y.add(x),x=new fi,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Kn,x=new fi,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ui,y.type=Un.Auto,x=new fi,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new $s,x.margin=new Lr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ui,y.type=Un.Link,x=new fi,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 lo,a.toolManager=new Do,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new de,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Yc(),a.eq=null,a.fq=So,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 kt,a.zy=500,a.wp=new kt,a.wq=!1}cn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Bd=null,Jh="",gh(this,!1),this.Xn.clear(),mp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function gh(a,y){a.animationManager.Cc(!0),a.Hw=new xn().freeze(),a.nw=new xn().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 he=se.value;he!==E&&he.data===null&&te.push(he)}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(),mp(),a.Og.clear(),Br=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),te}function Yc(){return null}cn.prototype.reset=function(){this.clear(),this.vb=!0,hf(this),lc(this),this.Wg=!0,Vh(this),this.layout=new Ro,this.Wg=!1,this.model=hy(),this.model.undoManager=new $o,this.vb=this.rn=!1,this.N()},cn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=It.document.body);var y=Xn("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},cn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=It.document.body);var y=0;if(ra){var x=cm;y=Pc,x===null&&(x=cm=Xn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Pc=Xn("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||Yr||(y=11)}this.Db=y,this.Gw=!0},cn.prototype.qb=function(a){a.classType===cn&&(this.autoScale=a)},cn.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 Md(a,y){if(ra){if(y!=null||Ht("Diagram setup requires an argument DIV."),a.Ka!==null&&Ht("Diagram has already completed setup."),typeof y=="string"?a.Ka=It.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ht("No DIV or DIV id supplied: "+y),a.Ka===null&&Ht("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ht("Invalid div id; div already has a Diagram associated with it."),!a.ol&&It.ResizeObserver){var x=un(function(){a.$b()},250);a.ol=new It.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}It.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=It.go;var E=new vu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",It.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),Dd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new vu(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,ra){E=Xn("div");var te=Xn("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=Zf,E.addEventListener("pointerdown",ff),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=te}a.hk=un(function(){a.Yh=null,a.N()},300),a.Ov=un(function(){Ld(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var se=ml(a,ne,!0);se.bubbles=!0;var he=0,ge=0;se.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(he=0<ne.deltaX?1:-1),ne.deltaY!==0&&(ge=0<ne.deltaY?1:-1),se.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-he:-ge):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(he=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(ge=0<ne.wheelDeltaY?-1:1),se.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-he:-ge):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(se.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),Ul(se,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,ml(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 he=!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,he=!0;else if(se[0]===null)se[0]=ne;else if(se[1]===null)se[1]=ne,he=!0;else{ne.preventDefault();return}else se[0]=ne;(se=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ge=he;he=Od(a,ne,!0,!1,!0,ge),yh(a,ne,he),he.targetDiagram=Nd(ne,ne.target),he.targetObject=null,ge||he.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,he.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():Ul(he,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=Od(a,ne,!1,!1,!1,se[1]!==null);var he=It.document.elementFromPoint(ne.clientX,ne.clientY)||null;he!==null&&he.shadowRoot!==void 0&&he.shadowRoot!==null&&(he=he.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var ge=a,ye=ne;he&&he.H&&(ye=ne,ge=he.H),se.targetDiagram=ge,yh(a,ye,se),se.targetObject=null,a.doMouseMove(),Ul(se,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var se=ne.pointerType==="touch"||ne.pointerType==="pen",he=a.Yt;if(se&&a.qu)delete he[ne.pointerId],ne.preventDefault();else if(he=a.oj,he[0]===null||he[0].pointerId!==ne.pointerId&&he[0].pointerType===ne.pointerType)he[1]!==null&&he[1].pointerId===ne.pointerId&&(he[1]=null);else{he[0]=null,he=Od(a,ne,!1,!0,!0,!1);var ge=It.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 cn&&ge.H!==a&&yh(ge.H,ne,he),ge===null&&(ge=ne.target),yh(a,ne,he),he.clickCount=a.yq,he.targetDiagram=Nd(ne,ge),he.targetObject=null,a.doMouseUp(),Ul(he,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"+Sf[1]+Sf[2]+"wI"+_d.slice(1,5)]["b"+jx.slice(1,y)](b.Z,yf,y,y),b.Vc(!0),Kp(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}cn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},cn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function Kp(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(It,"resize",a.Ov,!1)}function Ms(a){30<a.Sq&&(a.Yh=1)}function Kh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),mr&&mr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}cn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:It.devicePixelRatio||1},cn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},cn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},cn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},cn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},cn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},cn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},cn.prototype.doFocus=function(){this.focus()},cn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=It.scrollX||It.pageXOffset,y=It.scrollY||It.pageYOffset;this.ta.focus(),It.scrollTo(a,y)}},cn.prototype.Oy=function(){this.H.R("GainedFocus")},cn.prototype.Ny=function(){this.H.R("LostFocus")};function Ld(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===Is&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Vh(a){var y=new Go;y.name="Background",a.Al(y),y=new Go,y.name="",a.Al(y),y=new Go,y.name="Foreground",a.Al(y),y=new Go,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Go,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Go,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function df(a){var y=new Un(Un.Grid);y.name="GRID";var x=new fi;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new fi,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new fi,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new fi,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new fi,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new fi,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new kr,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 Zf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Tc(this.H)}function ff(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Tc(this.H)}cn.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,he=b.width+te.left+te.right,ge=b.height+te.top+te.bottom,ye=b.right+te.right;te=b.bottom+te.bottom;var Ie=E.x;b=E.y;var Ue=E.width,qe=E.height,rt=E.right,ut=E.bottom;E=this.scale;var At=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":At=At+a.scrollWidth-a.clientWidth;break;case"reverse":At=a.scrollWidth-At-a.clientWidth}var Mt=At;Ue<he||qe<ge?(At=kt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Mt&&(At.x=Mt/E+ne,this.ju=Mt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(At.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=At,kt.free(At),this.Ee=this.qr=!1):(At=kt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Ie&&(this.position=At.h(Mt+ne,this.position.y)),ye>rt&&(this.position=At.h(-(y.scrollWidth-this.Aa)+Mt-this.Aa/E+ye,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=At.h(this.position.x,a.scrollTop+se)),te>ut&&(this.position=At.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),kt.free(At),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ye=b.right,rt=E.right,te=b.bottom,ut=E.bottom,ne=b.x,Ie=E.x,se=b.y,b=E.y,Ue>=he&&ne>=Ie&&ye<=rt&&(x.style.width="1px"),qe>=ge&&se>=b&&te<=ut&&(x.style.height="1px"))}},cn.prototype.computeBounds=function(a){return a===void 0&&(a=new Ln),us(this),kd(this,a)};function kd(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,he=0;he<se;he++){var ge=ne[he];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}cn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Mn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Kn||(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 Kn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Ln(NaN,NaN,0,0):x};function Wl(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=kt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Ln.allocAt(0,0,b.width,b.height);var E=kt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Ln.free(b),kt.free(E),kt.free(x)}x=a.yh,y&&a.Fg!==Is&&(x=a.Fg);var te=x!==Is?mh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/te;var ne=a.ya/te,se=a.zk,he=a.pq;y&&!se.sb()&&(he.sb()||he.Xb())&&(se=he.Xb()?Bi:he),pf(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 Ln(x,b,E,ne),te,y,!1)}}function mh(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,he=ne/b;return y===$l?(y=Math.min(he,se),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Qh?(y=he>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}cn.prototype.zoomToFit=function(){var a=this.sj;this.sj=xh,this.scale=mh(this,$l),a!==xh&&(Wl(this,!1),pf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},ot=cn.prototype,ot.BA=function(a,y){y===void 0&&(y=$l);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===$l||y===Qh)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===Qh?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 kt(a.x,a.y)}},ot.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new kt(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))},ot.zz=function(a){if(a instanceof Yt){this.eq=a;var y=kt.alloc();this.fq=this.op(a.ga($a,y)),kt.free(y)}else this.eq=null,this.fq=So};function pf(a,y,x,b,E,te){var ne=kt.allocAt(a.pa.x,a.pa.y),se=ne.x,he=ne.y;if(a.eq!==null){var ge=kt.alloc();ge=a.eq.ga($a,ge),se=ge.x-a.fq.x/a.scale,he=ge.y-a.fq.y/a.scale,E=aa,kt.free(ge)}(te||a.scrollMode===xh)&&(E.sb()&&(x>y.width&&(se=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(he=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?(he=Math.min(he+b/2,y.bottom+Math.max(x,E.bottom)-b/2),he=Math.max(he,y.top-Math.max(x,E.top)+b/2),he-=b/2):he>y.top?he=y.top:he<y.bottom-b&&(he=y.bottom-b)),ne.x=isFinite(se)?se:-a.yb.left,ne.y=isFinite(he)?he:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),gs(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),lc(a),kt.free(ne)}ot.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Mu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof kr)return a}else if(a=Mu(this,a,function(x){return x.part}),a instanceof kr)return a;return null},ot.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),us(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 Mu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),us(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}ot.lz=function(a,y,x){return y===void 0&&(y=!0),Cc(this,a,function(b){return b.part},y?function(b){return b instanceof kr&&b.canSelect()}:null,x)};function Cc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof vn||E instanceof xn||(E=new xn),us(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.ji(y,x,b,E)}return E}ot.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof vn||b instanceof xn||(b=new xn),us(this);for(var E=this.Wa.iteratorBackwards;E.next();){var te=E.value;te.visible&&te.ji(a,y,x,b)}return b},ot.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),vh(this,a,function(E){return E instanceof kr&&(!x||E.canSelect())},y,b)},ot.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof vn||E instanceof xn||(E=new xn),us(this);for(var te=this.Wa.iteratorBackwards;te.next();){var ne=te.value;ne.visible&&ne.Cf(a,y,x,b,E)}return E},ot.Nu=function(a,y,x,b,E,te){var ne=new xn;us(this);for(var se=this.Wa.iteratorBackwards;se.next();){var he=se.value;he.visible&&he.Nu(a,y,x,b,ne,E,te)}return ne};function vh(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 vn||E instanceof xn||(E=new xn),us(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,te,x,b,E)}return E}ot.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),Jc(this,a,y,function(te){return te instanceof kr&&(!b||te.canSelect())},x,E)},ot.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 vn||E instanceof xn)&&(te=E),E=!0),te instanceof vn||te instanceof xn||(te=new xn),us(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 Jc(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 vn||E instanceof xn)&&(te=E),E=!0),te instanceof vn||te instanceof xn||(te=new xn),us(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}cn.prototype.acceptEvent=function(a){return ml(this,a,a instanceof MouseEvent)};function ml(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?yh(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),Yr&&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=Nd(y,y.target),b.targetObject=null,b}function Nd(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 Od(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,Yr&&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 Ul(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}cn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=ml(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(),Ul(x,a)},cn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(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(),Ul(x,a)},cn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Ul(x,a)},cn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Ul(x,a)},cn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new kt(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?Pi(new kt(y,a),this.Ab):new kt(y,a)};function yh(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=kt.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),kt.free(y)):x.documentPoint.h(ne,se)}function Ad(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))}}cn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function jd(a){a.ld||us(a),a.Va()}cn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ot=cn.prototype,ot.Pz=function(){return this.kg},ot.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,ol(this),this.hf=!1,this.du=new kt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Gn(function(){b.ld=!1,Ps(y,"Model"),a(b)},1)},ot.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;It.requestAnimationFrame(function(){y.kg&&y.bd()})}},ot.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ol(this))};function Ec(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Tc(a)||(y&&us(a),x&&Wl(a,!1))}function ol(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];Aa(se,!1),se.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(he){he.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Ld(a),Ec(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(sc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),us(a),te=!1,(!a.hf||a.xh)&&(a.hf?qp(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),qp(a,!1)),te=!0),a.Jk=!1,us(a),a.ou||jd(a),Ec(a,!0,!1),ne=!1,te?(x=Ln.alloc(),x.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Id(a)),a.R("LayoutCompleted"),Ec(a,!0,!1),Ln.free(x)):x.Ok&&x.Qw&&(a.Fg!==Is?a.scale=mh(a,a.Fg):a.yh!==Is?a.scale=mh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Wl(a,!0)),te&&ne&&a.eb("Initial Layout"),us(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Id(a){if(a.Fg!==Is)a.scale=mh(a,a.Fg);else if(a.yh!==Is)a.scale=mh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Wl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),sc(a)}function us(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 xn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof ti&&b.U&65536&&(b.U=b.U^65536)})}}ot.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof ti||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof ti&&x.isVisible()&&ea(this,x);for(a.reset();a.next();)x=a.value,x instanceof Kn&&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 Ui&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function ea(a,y){for(var x=yn(),b=yn(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof ti?(Vl(te)||Ws(te)||ed(te))&&ea(a,te):te instanceof Kn?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(On(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();On(b)}ot.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},ot.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Ht("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){ru(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),js(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?zd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(pi.prototype.Cd=pi.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(te=this.animationManager,!te.zb&&(!te.isAnimating||te.isTicking)&&(x=new Date,ru(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 he=this.Ca,ge=Math.round(se.x*he)/he,ye=Math.round(se.y*he)/he;for(he!==1&&te.scale(he),se.x===0&&se.y===0||te.translate(-ge,-ye),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),js(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?zd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(pi.prototype.Cd=pi.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=mr&&mr.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 Ta(a,y,x,b,E,te,ne,se,he,ge){if(a.Ka!==null){a.ta===null&&Ht("No canvas specified"),ne===void 0&&(ne=null),se===void 0&&(se=null),he===void 0&&(he=!1),ge===void 0&&(ge=!1),ru(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ye=a.Ca;a.Ca=E;var Ie=a.Wa.s,Ue=Ie.length;try{var qe=new Ln(te.x,te.y,b.width/E,b.height/E),rt=qe.copy();rt.Co(x),sc(a,rt),us(a),a.Fd(Ie,Ue,a,qe),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 ut=a.Mb;y.scale(ut,ut);var At=pi.alloc();At.reset(),At.translate(x.left,x.top),At.scale(E),te.x===0&&te.y===0||At.translate(-te.x,-te.y),y.setTransform(At.m11,At.m12,At.m21,At.m22,At.dx,At.dy),y.yc(),y instanceof Ml&&Xy(y,At.m11,At.m12,At.m21,At.m22,At.dx,At.dy),pi.free(At),js(a,y),y.globalAlpha=a.pb;var Mt=a.Qj("Grid");if(ne){var Bt=new xn,_t=ne.iterator;for(_t.reset();_t.next();){var Gt=_t.value;Gt instanceof kr&&(ge||Gt.layer!==Mt)&&(Gt.Gj(),Bt.add(Gt))}for(ge=0;ge<Ue;ge++)gl(Ie[ge],y,a,Bt,he);Bt.each(function(hn){return hn.Gj()})}else for(Bt=0;Bt<Ue;Bt++){var Zt=Ie[Bt];Zt===Mt?ge&&Zt.gc(y,a,!0):Zt.gc(y,a,he)}a.$i=!1,a.Yf&&zd(a.Yf,a)&&a.Vp()}finally{a.Ca=ye,a.ib.Vc(!0),a.vd=!0,a.Fd(Ie,Ue,a,a.viewportBounds),sc(a),a.ib instanceof Ml&&(a.ib.Nj.PA(),a.redraw())}}}ot.Gf=function(a){return this.Rg[a]},ot.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},ot.Tx=function(){this.Rg=new Sr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Yr||Fr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function js(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}ot.Ql=function(a){return this.on[a]},ot.sA=function(a,y){this.on[a]=y},ot.Sx=function(){this.on=new Sr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},ot.set=function(a){return Object.assign(this,a),this},ot.Du=function(a){return this.nm(a)},ot.nm=function(a){return nu(this,a),this};function nu(a,y){var x=a instanceof Un,b=a instanceof cn,E;for(E in y){E===""&&Ht("Setting properties requires non-empty property names");var te=a,ne=E;if(x||b){var se=E.indexOf(".");if(0<se){var he=E.substring(0,se);x?te=a.fb(he):(te=a[he],te==null&&(te=a.toolManager[he])),on(te)?ne=E.substr(se+1):Ht("Unable to find object named: "+he+" in "+a.toString()+" when trying to set property: "+E)}}if(ne[0]!=="_"&&!zn(te,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&zn(a.toolManager,ne))te=a.toolManager;else if(b&&sm(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof yr&&ne==="Changed"){a.Pe(y[ne]);continue}else Ht('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof Yt&&te.Vw(ne)}}ot.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new fr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},ot.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")},cn.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!==vf&&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=Ln.alloc(),Qp(this,this.computeBounds(b)),Ln.free(b)),b=this.ta,b===null||b instanceof uc)))){var ne=this.Mb;E=this.Aa*ne;var se=this.ya*ne,he=this.scale*ne;te=Math.round(Math.round(y.x*he)-Math.round(a.x*he)),y=Math.round(Math.round(y.y*he)-Math.round(a.y*he)),he=this.jw,a=this.oy,he.width!==E&&(he.width=E),he.height!==se&&(he.height=se),a.clearRect(0,0,E,se),he=190*ne;var ge=70*ne,ye=Math.max(te,0),Ie=Math.max(y,0),Ue=Math.floor(E-ye),qe=Math.floor(se-Ie);a.drawImage(b.Oa,ye,Ie,Ue,qe,0,0,Ue,qe),zd(this.Yf,this)&&a.clearRect(0,0,he,ge),b=yn(),a=yn(),qe=Math.abs(te),Ue=Math.abs(y);var rt=ye===0?0:E-qe;ye=kt.allocAt(rt,0),qe=kt.allocAt(qe+rt,se),a.push(new Ln(Math.min(ye.x,qe.x),Math.min(ye.y,qe.y),Math.abs(ye.x-qe.x),Math.abs(ye.y-qe.y)));var ut=this.Ab;if(ut.reset(),ut.scale(ne,ne),this.Ca!==1&&ut.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&ut.translate(-ne.x,-ne.y),Pi(ye,ut),Pi(qe,ut),b.push(new Ln(Math.min(ye.x,qe.x),Math.min(ye.y,qe.y),Math.abs(ye.x-qe.x),Math.abs(ye.y-qe.y))),rt=Ie===0?0:se-Ue,ye.h(0,rt),qe.h(E,Ue+rt),a.push(new Ln(Math.min(ye.x,qe.x),Math.min(ye.y,qe.y),Math.abs(ye.x-qe.x),Math.abs(ye.y-qe.y))),Pi(ye,ut),Pi(qe,ut),b.push(new Ln(Math.min(ye.x,qe.x),Math.min(ye.y,qe.y),Math.abs(ye.x-qe.x),Math.abs(ye.y-qe.y))),zd(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,ye.h(E,se),qe.h(he+E,ge+se),a.push(new Ln(Math.min(ye.x,qe.x),Math.min(ye.y,qe.y),Math.abs(ye.x-qe.x),Math.abs(ye.y-qe.y))),Pi(ye,ut),Pi(qe,ut),b.push(new Ln(Math.min(ye.x,qe.x),Math.min(ye.y,qe.y),Math.abs(ye.x-qe.x),Math.abs(ye.y-qe.y)))),kt.free(ye),kt.free(qe),Ec(this,!1,!0),this.Ka===null&&Ht("No div specified"),this.ta===null&&Ht("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(ru(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,he=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(-he,-ge),E.save(),E.beginPath(),te=a.length,ne=0;ne<te;ne++)he=a[ne],he.width!==0&&he.height!==0&&E.rect(Math.floor(he.x),Math.floor(he.y),Math.ceil(he.width),Math.ceil(he.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),js(this,E),E.globalAlpha=this.pb,se=0;se<te;se++)if(ne=y[se],he=b,ne.visible&&ne.pb!==0){ge=vs(ne,E),Ie=ne.Zq,Ie.length=0,ye=this.scale,Ue=Ln.alloc(),qe=ne.Pa.s,ut=qe.length,rt=he.length;for(var At=0;At<ut;At++){var Mt=qe[At],Bt=Vd(Mt,Mt.actualBounds);e:{for(var _t=2/ye,Gt=4/ye,Zt=0;Zt<rt;Zt++){var hn=he[Zt];if(hn.width!==0&&hn.height!==0&&Bt.Vu(hn.x-_t,hn.y-_t,hn.width+Gt,hn.height+Gt)){Bt=!0;break e}}Bt=!1}Bt&&ne.Oj(E,Mt,this,Ie,ye,Ue,!0)}Ln.free(Ue),E.globalAlpha=ge}E.restore(),E.Vc(!0),this.Yf&&zd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}On(b),On(a),this.ld=!1}}else this.bd();x&&(Ms(this),this.bd(),Kh(this,!0))}else x?(Ms(this),this.bd(),Kh(this,!0)):this.bd()}};function ru(a){a.pn!==!1&&(a.pn=!1,Dd(a,a.Aa,a.ya))}function Dd(a,y,x){lc(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Tc(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,he=E.clientWidth||x+ne,ge=E.clientHeight||b+se,ye=a.viewportBounds;E=ye.x;var Ie=ye.y,Ue=ye.width,qe=ye.height;if((he!==x+ne||ge!==b+se)&&(a.gf=!1,a.Be=!1,se=ne=0,a.Aa=he,a.ya=ge,te=a.pn=!0,lc(a)),!a.hf||!a.viewportBounds.w())return!0;var rt=a.ku,ut=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var At=a.documentBounds,Mt=0,Bt=0,_t=0,Gt=0,Zt=ye.width,hn=ye.height,qn=a.rj;a.contentAlignment.sb()?(At.width>Zt&&(Mt=qn.left,Bt=qn.right),At.height>hn&&(_t=qn.top,Gt=qn.bottom)):(Mt=qn.left,Bt=qn.right,_t=qn.top,Gt=qn.bottom);var dr=At.width+Mt+Bt,hr=At.height+_t+Gt;qn=a.scale;var $n=dr>he/qn,jn=hr>ge/qn;if(!(te||a.gf||a.Be||$n||jn))return!0;Mt=At.x-Mt,he=ye.x,Bt=At.right+Bt,ge=ye.right+ne,_t=At.y-_t;var qr=ye.y;At=At.bottom+Gt,ye=ye.bottom+se;var Ur="1px";if(Gt="1px",a.scrollMode===xh&&($n||jn)&&($n&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($n=1,Mt+1<he&&($n=Math.max((he-Mt)*qn+a.Aa,$n)),Bt>ge+1&&($n=Math.max((Bt-ge)*qn+a.Aa,$n)),Zt+ne+1<dr&&($n=Math.max((dr-Zt)*qn+a.Aa,$n)),Ur=$n.toString()+"px"),jn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&($n=1,_t+1<qr&&($n=Math.max((qr-_t)*qn+a.ya,$n)),At>ye+1&&($n=Math.max((At-ye)*qn+a.ya,$n)),hn+se+1<hr&&($n=Math.max((hr-hn)*qn+a.ya,$n)),Gt=$n.toString()+"px")),$n=Ur!=="1px",jn=Gt!=="1px",$n&&jn||!$n&&!jn||(jn&&(ge-=a.Db),$n&&(ye-=a.Db),dr<Zt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Mt+1<he&&(ne=Math.max((he-Mt)*qn+a.Aa,ne)),Bt>ge+1&&(ne=Math.max((Bt-ge)*qn+a.Aa,ne)),Zt+1<dr&&(ne=Math.max((dr-Zt)*qn+a.Aa,ne)),Ur=ne.toString()+"px"),$n=Ur!=="1px",ne=a.ya,$n!==a.Be&&(ne=$n?a.ya-a.Db:a.ya+a.Db),hr<hn+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,_t+1<qr&&(se=Math.max((qr-_t)*qn+ne,se)),At>ye+1&&(se=Math.max((At-ye)*qn+ne,se)),hn+1<hr&&(se=Math.max((hr-hn)*qn+ne,se)),Gt=se.toString()+"px"),jn=Gt!=="1px"),a.qr&&$n===a.Be&&jn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if($n!==a.Be&&(Ur==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=$n,ut.style.width=Ur,jn!==a.gf&&(Gt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=kt.alloc(),jn?(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)),kt.free(se))),te&&lc(a),a.gf=jn,ut.style.height=Gt,a.gu=!0,te&&(a.pn=!0),y=rt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Zt+1<dr?y=(a.position.x-Mt)*qn:Mt+1<he?y=rt.scrollWidth-rt.clientWidth:Bt>ge+1&&(y=a.position.x*qn)),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&&(hn+1<hr?rt.scrollTop=(a.position.y-_t)*qn:_t+1<qr?rt.scrollTop=rt.scrollHeight-rt.clientHeight:At>ye+1&&(rt.scrollTop=a.position.y*qn)),he=a.Aa,ge=a.ya,rt.style.width=he+(a.gf?a.Db:0)+"px",rt.style.height=ge+(a.Be?a.Db:0)+"px",x!==he||b!==ge||a.animationManager.zb?(x=Ln.allocAt(E,Ie,Ue,qe),a.onViewportBoundsChanged(x,a.viewportBounds,qn,te),Ln.free(x),!1):!0}ot=cn.prototype,ot.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ht("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&&Ht('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(la,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},ot.oi=function(a){this.partManager.oi(a);var y=this;Ud(a,function(x){Fd(y,x)}),(a instanceof Ui||a instanceof ti&&a.placeholder!==null)&&a.v(),a.data!==null&&Ud(a,function(x){ly(y.partManager,x)}),Ws(a)!==!0&&ed(a)!==!0||this.De.add(a),R1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Vd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Vd(a,a.actualBounds)),this.$b()},ot.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ud(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Vd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Vd(a,a.actualBounds)),this.$b()},ot.remove=function(a){Zh(this,a,!0)};function Zh(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(La,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}ot.Is=function(a,y){if(y===void 0&&(y=!1),Mn(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 xn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},ot.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},cn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Xf(this)),this.toolManager!==null){var E=new fr;if(a!==null)if(Mn(a))for(var te=0;te<a.length;te++)gu(this,E,a[te],x,b);else for(a=a.iterator;a.next();)gu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)gu(this,E,a.value,x,b);for(a=this.nodes;a.next();)gu(this,E,a.value,x,b);for(a=this.links;a.next();)gu(this,E,a.value,x,b)}ac(this,E,y,b,x)}};function gu(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=Xf(a)),x instanceof rr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof ti&&(x.placeholder!==null||E.dragsMembers))for(te=x.memberParts;te.next();)gu(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,he=ne.toNode;se!==null&&y.contains(se)&&he!==null&&y.contains(he)&&gu(a,y,ne,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)gu(a,y,x.value,b,E)}else if(x instanceof Kn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)gu(a,y,x.value,b,E);else x instanceof Ui||y.add(x,a.Pd(E,x,x.location))}function ac(a,y,x,b,E){if(y!==null&&y.count!==0){var te=kt.alloc(),ne=kt.alloc();ne.assign(x),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(x=a.Mr)||Jf(a,y);for(var se=yn(),he=yn(),ge=y.iterator,ye=kt.alloc();ge.next();){var Ie=ge.key,Ue=ge.value;if(Ie.Zc()){var qe=Vp(a,Ie,y);qe!==null?se.push(new ie(Ie,Ue,qe)):(!E||Ie.canMove())&&(qe=Ue.point,te.assign(qe),a.computeMove(Ie,te.add(ne),b,ye),Ie.location=ye,Ue.shifted===void 0&&(Ue.shifted=new kt),Ue.shifted.assign(ye.re(qe)))}else ge.key instanceof Kn&&he.push(ge.sa)}for(kt.free(ye),E=se.length,ge=0;ge<E;ge++)Ie=se[ge],te.assign(Ie.info.point),Ie.Su.shifted===void 0&&(Ie.Su.shifted=new kt),Ie.node.location=te.add(Ie.Su.shifted);for(E=kt.alloc(),ge=kt.alloc(),Ie=he.length,Ue=0;Ue<Ie;Ue++){var rt=he[Ue];if(qe=rt.key,qe instanceof Kn)if(qe.suspendsRouting){qe.Tg=null,ye=qe.fromNode;var ut=qe.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ut=rt.value.point,qe.dragComputation===null)y.add(qe,a.Pd(b,qe,ne)),Lh(qe,ne.x-ut.x,ne.y-ut.y);else{rt=kt.allocAt(0,0),(ye=qe.i(0))&&ye.w()&&rt.assign(ye);var At=ye=kt.alloc().assign(rt).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(At=kt.alloc(),Yf(a,qe,ye,At,b)),ye.assign(qe.dragComputation(qe,ye,At)).re(rt),y.add(qe,a.Pd(b,qe,ye)),Lh(qe,ye.x-ut.x,ye.y-ut.y),kt.free(rt),kt.free(ye),At!==ye&&kt.free(At)}else ye!==null&&(E.assign(ye.location),At=y.I(ye),At!==null&&E.re(At.point)),ut!==null&&(ge.assign(ut.location),At=y.I(ut),At!==null&&ge.re(At.point)),ye!==null&&ut!==null?E.Xa(ge)?(ye=rt.value.point,ut=te,ut.assign(E),ut.re(ye),y.add(qe,a.Pd(b,qe,E)),Lh(qe,ut.x,ut.y)):(qe.suspendsRouting=!1,qe.bb()):(rt=rt.value.point,ye=ye!==null?E:ut!==null?ge:ne,y.add(qe,a.Pd(b,qe,ye)),Lh(qe,ye.x-rt.x,ye.y-rt.y))}else(qe.fromNode===null||qe.toNode===null)&&(ye=rt.value.point,y.add(qe,a.Pd(b,qe,ne)),Lh(qe,ne.x-ye.x,ne.y-ye.y))}kt.free(te),kt.free(ne),kt.free(E),kt.free(ge),On(se),On(he),x||(us(a),Xh(a,y))}}cn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new kt),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=kt.alloc(),Yf(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 he=a.maxLocation,ge=he.x;return isNaN(ge)&&(ge=te?Math.round(1e3*a.location.x)/1e3:a.location.x),he=he.y,isNaN(he)&&(he=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,he))),E!==y&&kt.free(E),b};function Xf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Yf(a,y,x,b,E){if(E===void 0&&(E=Xf(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 he=te.gridCellSize;isNaN(a)&&(a=he.width),isNaN(y)&&(y=he.height),te=te.gridOrigin,isNaN(se)&&(se=te.x),isNaN(ne)&&(ne=te.y)}te=kt.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),kt.free(te)}}function Jf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Kn&&(y.suspendsRouting=!0)}function Xh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Kn&&(x.suspendsRouting=!1,Zv(x)&&x.bb())}a.Mr=!1}}function Vp(a,y,x){return y=y.containingGroup,y!==null&&(a=Vp(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}ot=cn.prototype,ot.Pd=function(a,y,x){if(x===void 0)return new Qc(Fi);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Qc(new kt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Qc(x.copy())};function Zp(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Ht("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Ht("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Ht("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Ht("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&&Ht("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}ot.Al=function(a){Zp(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(la,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},ot.Ww=function(a,y){Zp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(La,"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(la,"layers",this,null,a,null,te),this.N(),0>b&&this.Ya(),this},ot.Cy=function(a,y){Zp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(La,"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(la,"layers",this,null,a,null,te+1),this.N(),0>b&&this.Ya(),this},ot.kA=function(a){if(a.diagram!==this&&Ht("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(La,"layers",this,a,null,x,null),this.N(),this.Ya()}}},ot.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},ot.Yw=function(a){return this.pf===null&&(this.pf=new vn),this.pf.add(a),this.model.Pe(a),this},ot.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},ot.Pe=function(a){return this.zg===null&&(this.zg=new vn),this.zg.add(a),this},ot.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},ot.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==il&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},ot.cb=function(a,y,x,b,E,te,ne){te===void 0&&(te=null),ne===void 0&&(ne=null);var se=new zo;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)},ot.g=function(a,y,x,b,E){this.cb(Ho,a,this,y,x,b,E)},cn.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===Ho){var E=a.object;if(Ao(E,a.propertyName,a.I(y)),E instanceof Yt){var te=E.part;te!==null&&te.Wb()}this.isModified=!0}else if(b===la){var ne=a.object,se=a.newParam,he=a.newValue;if(ne instanceof Un)if(typeof se=="number"&&he instanceof Yt){y?ne.pc(se):ne.Gb(se,he);var ge=ne.part;ge!==null&&ge.Wb()}else typeof se=="number"&&he instanceof ja&&(he.isRow?h1(ne,se,y?void 0:he):d1(ne,se,y?void 0:he));else if(ne instanceof Go){var ye=a.oldParam===!0;typeof se=="number"&&he instanceof kr&&(y?(he.isSelected=!1,he.isHighlighted=!1,he.Wb(),ne.pc(ye?se:-1,he,ye)):ne.oi(se,he,ye))}else ne instanceof cn?typeof se=="number"&&he instanceof Go&&(y?this.Wa.mb(se):(he.Xe(this),this.Wa.Gb(se,he))):Ht("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===La){var Ie=a.object,Ue=a.oldParam,qe=a.oldValue;if(Ie instanceof Un)typeof Ue=="number"&&qe instanceof Yt?y?Ie.Gb(Ue,qe):Ie.pc(Ue):typeof Ue=="number"&&qe instanceof ja&&(qe.isRow?h1(Ie,Ue,y?qe:void 0):d1(Ie,Ue,y?qe:void 0));else if(Ie instanceof Go){var rt=a.newParam===!0;typeof Ue=="number"&&qe instanceof kr&&(y?0>Ie.Pa.indexOf(qe)&&Ie.oi(Ue,qe,rt):(qe.isSelected=!1,qe.isHighlighted=!1,qe.Wb(),Ie.pc(rt?Ue:-1,qe,rt)))}else Ie instanceof cn?typeof Ue=="number"&&qe instanceof Go&&(y?(qe.Xe(this),this.Wa.Gb(Ue,qe)):this.Wa.mb(Ue)):Ht("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==il&&Ht("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},cn.prototype.Ea=function(a){return this.undoManager.Ea(a)},cn.prototype.eb=function(a){return this.undoManager.eb(a)},cn.prototype.Kf=function(){return this.undoManager.Kf()},cn.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}},cn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},cn.prototype.rp=function(){this.partManager.rp()};function Xp(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,lc(a),a.N(),a.Ee=!0,b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,lc(a);else{a.vb=!0;var E=a.viewportBounds.copy(),te=a.Aa,ne=a.ya,se=a.zoomPoint.x,he=a.zoomPoint.y,ge=a.contentAlignment;isNaN(se)&&(ge.$c()?ge.Hf(Bu)?se=0:ge.Hf(_s)&&(se=te-1):se=ge.sb()?ge.x*(te-1):te/2),isNaN(he)&&(ge.$c()?ge.Hf(Cu)?he=0:ge.Hf(dl)&&(he=ne-1):he=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=kt.allocAt(a.pa.x+se/y-se/x,a.pa.y+he/y-he/x),a.position=te,kt.free(te),a.Ca=x,lc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Wl(a,!1),b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca))}}cn.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!==Is||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Do&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Uf(E,this)),this.vb||this.invalidateViewport(a,y),sc(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 sc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Yn.alloc(),E=1,te=1,ne=x.O.s,se=ne.length,he=0;he<se;he++){var ge=ne[he],ye=Math.abs(ge.interval);2>ye||(mv(ge.figure)?te=te*ye/Qt.vx(te,ye):E=E*ye/Qt.vx(E,ye))}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=Ln.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Ln.free(y);return}E=y.width,te=y.height,a=y.x,ne=y.y,Ln.free(y)}x.width=E+2*b.width,x.height=te+2*b.height,y=kt.alloc(),Qt.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Yn.free(b),x.part.location=y,kt.free(y)}}cn.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)}},cn.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))},cn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Mn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof kr||Ht("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 kr||Ht("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},cn.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()}},ot=cn.prototype,ot.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},ot.Jz=function(a){a=new xn().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 kr||Ht("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},ot.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,te=kt.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)),kt.free(te);return}Ht("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):Ht("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),kt.free(te)},ot.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)},ot.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},ot.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)},ot.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,he=y.m21,ge=y.m22,ye=y.dx,Ie=y.dy,Ue=x*ne+b*he+ye;y=x*se+b*ge+Ie;var qe=E*ne+b*he+ye;return a=E*se+b*ge+Ie,b=x*ne+te*he+ye,x=x*se+te*ge+Ie,ne=E*ne+te*he+ye,E=E*se+te*ge+Ie,te=Math.min(Ue,qe),Ue=Math.max(Ue,qe),qe=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),Ue=Math.max(Ue,b),qe=Math.min(qe,x),y=Math.max(y,x),te=Math.min(te,ne),Ue=Math.max(Ue,ne),qe=Math.min(qe,E),y=Math.max(y,E),new Ln(te,qe,Ue-te,y-qe)},ot.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),Pi(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Yp(a){return a=rp.get(a),a!==null?new a:new lo}cn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===il&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(he){return he.diagram=E}),a.mouseMoveTools.each(function(he){return he.diagram=E}),a.mouseUpTools.each(function(he){return he.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===il){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),us(this));var te=this.animationManager;b==="RolledBackTransaction"&&te.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||qa(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&&(om(this),this.As.clear(),ia(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var se=this;Gn(function(){se.currentTool.standardMouseOver(),se.Rt=!1},10)}}}finally{this.aa=!0}}}};function Fd(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Yh(a,y[b])}function Yh(a,y){if(y instanceof ul){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof xn&&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 Jp(a,y){if(y instanceof ul){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 xn&&x.Bg.remove(a),mp(b));break}}}}}cn.prototype.Wd=function(){this.partManager.Wd()},cn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},cn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},cn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},cn.prototype.Vb=function(a){return this.partManager.Vb(a)},cn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},ot=cn.prototype,ot.Lc=function(a){return this.partManager.Lc(a)},ot.ii=function(a){return this.partManager.ii(a)},ot.Kc=function(a){return this.partManager.Kc(a)},ot.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:pr(xi(y)))},ot.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:pr(xi(y)))};function lc(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 Qp(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Wl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}ot.Va=function(){if(this.Zi){var a=Ln.alloc();Qp(this,this.computeBounds(a)),Ln.free(a)}},ot.rz=function(){for(var a=new xn,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},ot.qz=function(){return this.ai.iterator},ot.Uz=function(a){us(this),a&&Qf(this,!0),this.ld?qp(this,!1):(this.Jk=!0,ol(this))};function Qf(a,y){for(var x=a.ai.iterator;x.next();)am(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function am(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)am(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function qp(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||Ps(te,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)eg(a,ne.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),us(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||qa(te),a.aa=x}}}function eg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)eg(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),ea(a,y),E.isValidLayout=!0):a.xh=!0)}}ot.yz=function(){for(var a=new vn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function nv(a){function y(E){var te=E.toLowerCase(),ne=new vn;x.add(E,ne),x.add(te,ne),b.add(E,E),b.add(te,E)}var x=new fr,b=new fr;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 sm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function qf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Ht("Unknown DiagramEvent name: "+y)}ot.Bj=function(a,y){return a=qf(this,a),a!==null&&a.add(y),this},ot.am=function(a,y){a=qf(this,a),a!==null&&a.remove(y)},ot.R=function(a,y,x){var b=qf(this,a),E=new Kc;if(E.diagram=this,a=sm(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 ep(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}ot.Yj=function(a,y){return tp(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},cn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?kd(this,a):a.assign(this.documentBounds)};function tp(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new kg(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=lm(a,x)),x===null){y=Ln.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&&np(a,ne,b,y)}Ln.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Ln.alloc(),te=x.memberParts;te.next();)ne=te.value,ne instanceof rr&&np(a,ne,b,y);Ln.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function lm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lm(a,y.containingGroup):null}function np(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(bp(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(Nh,x,y+1);else for(var ne=x;ne<=y;ne++)te[ne]=Nh}else if(y instanceof ti)for(y=y.memberParts;y.next();)E=y.value,E instanceof rr&&np(a,E,x,b)}}function Sh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}cn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():tg(this)};function tg(a){a.vk===-1&&(a.vk=Gn(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=Ln.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Qp(a,y),Ln.free(y),a.Fc=!0,a.bd(),tg(a))}},a.vp))}cn.prototype.ug=function(){this.vk!==-1&&(It.clearTimeout(this.vk),this.vk=-1)},cn.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=Ln.allocAt(0,0,b.width*E,b.height*E);var te=kt.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(Fi)||(y=new kt(y.x+te.x/E,y.y+te.y/E)),Ln.free(b),kt.free(te),y},ot=cn.prototype,ot.Cs=function(){return null},ot.av=function(){return null},ot.bs=function(a,y){this.pj.add(a,y)},ot.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof ti&&(y.$p=null)})};function gf(a,y,x){function b(){var ye=+new Date;for(te=!0,ne.reset();ne.next();)if(!ne.value[0].al){te=!1;break}te||ye-ge>he?y(x,E,se):It.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,he=x.callbackTimeout||300,ge=+new Date;return It.requestAnimationFrame(function(){b()}),null}ot.Wz=function(a){return ra?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},ot.Jx=function(a){return a===void 0&&(a={}),gf(this,this.Xz,a)},ot.Xz=function(a,y,x){var b=um(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 _d+"data":E=b.getImageData(0,0,x.width,x.height);break;case _d:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Ht('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 um(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Ht("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 Yn(1/0,1/0):new Yn(2e3,2e3));var se=y.position||null,he=y.parts||null,ge=y.padding===void 0?1:y.padding,ye=y.background||null,Ie=y.omitTemporary;Ie===void 0&&(Ie=!0);var Ue=y.document||document,qe=y.elementFinished||null,rt=y.showTemporary;rt===void 0&&(rt=!Ie),y=y.showGrid,y===void 0&&(y=rt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ge=="number"?ge=new Lr(ge):ge instanceof Lr||Ht("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),Ie=new vu(null,Ue,void 0,!0);var ut=Ie.context;if(!(E||te||he||se))return Ie.width=a.Aa+Math.ceil(ge.left+ge.right),Ie.height=a.ya+Math.ceil(ge.top+ge.bottom),x==="SVG"?b===null?null:(b.resize(Ie.width,Ie.height,Ie.width,Ie.height),b.ownerDocument=Ue,b.hs=qe,Ta(a,b.context,ge,new Yn(Ie.width,Ie.height),a.Ca,a.pa,he,ye,rt,y),b.context):(a.Xm=!1,Ta(a,ut,ge,new Yn(Ie.width,Ie.height),a.Ca,a.pa,he,ye,rt,y),a.Xm=!0,Ie.context);var At=a.Pp,Mt=a.documentBounds.copy();if(Mt.Fv(a.yb),rt)for(var Bt=a.Wa.s,_t=Bt.length,Gt=0;Gt<_t;Gt++){var Zt=Bt[Gt];if(Zt.visible&&Zt.isTemporary){Zt=Zt.Pa.s;for(var hn=Zt.length,qn=0;qn<hn;qn++){var dr=Zt[qn];dr.isInDocumentBounds&&dr.isVisible()&&(dr=dr.actualBounds,dr.w()&&Mt.ed(dr))}}}if(Bt=new kt(Mt.x,Mt.y),he!==null){for(_t=new Ln(0,0,0,0),Gt=!0,Zt=he.iterator,Zt.reset();Zt.next();)hn=Zt.value,hn instanceof kr&&(qn=hn.layer,qn!==null&&!qn.visible||qn!==null&&!rt&&qn.isTemporary||!hn.isVisible()||(hn=hn.actualBounds,hn.w()&&(Gt?(Gt=!1,_t.assign(hn)):_t.ed(hn))));Mt.width=_t.width,Mt.height=_t.height,Bt.x=_t.x,Bt.y=_t.y}return se!==null&&se.w()&&(Bt=se,te||(te=At)),_t=se=0,ge!==null&&(se=ge.left+ge.right,_t=ge.top+ge.bottom),Gt=Zt=0,E!==null&&(Zt=E.width,Gt=E.height,isFinite(Zt)&&(Zt=Math.max(0,Zt-se)),isFinite(Gt)&&(Gt=Math.max(0,Gt-_t))),E!==null&&te!==null?(te==="NaN"&&(te=At),E.w()?(E=Zt,Mt=Gt):isNaN(Gt)?(E=Zt,Mt=Mt.height*te):(E=Mt.width*te,Mt=Gt)):E!==null?E.w()?(te=Math.min(Zt/Mt.width,Gt/Mt.height),E=Zt,Mt=Gt):isNaN(Gt)?(te=Zt/Mt.width,E=Zt,Mt=Mt.height*te):(te=Gt/Mt.height,E=Mt.width*te,Mt=Gt):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/Mt.width,(ne.height-_t)/Mt.height),te>At?(te=At,E=Mt.width,Mt=Mt.height):(E=ne.width,Mt=ne.height)):(E=Mt.width*te,Mt=Mt.height*te):(te=At,E=Mt.width,Mt=Mt.height),ge!==null?(E+=se,Mt+=_t):ge=new Lr(0),ne!==null&&(At=ne.width,ne=ne.height,isNaN(At)&&(At=2e3),isNaN(ne)&&(ne=2e3),isFinite(At)&&(E=Math.min(E,At)),isFinite(ne)&&(Mt=Math.min(Mt,ne))),Ie.width=Math.ceil(E),Ie.height=Math.ceil(Mt),x==="SVG"?b===null?null:(b.resize(Ie.width,Ie.height,Ie.width,Ie.height),b.ownerDocument=Ue,b.hs=qe,Ta(a,b.context,ge,new Yn(Math.ceil(E),Math.ceil(Mt)),te,Bt,he,ye,rt,y),b.context):(a.Xm=!1,Ta(a,ut,ge,new Yn(Math.ceil(E),Math.ceil(Mt)),te,Bt,he,ye,rt,y),a.Xm=!0,Ie.context)}Et.Object.defineProperties(cn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Re||(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 uc(this,It.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 uc(this,It.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(It,"resize",this.Ov,!1),this.removeEventListener(It,"wheel",this.$j,!0),Ku===this&&(Ku=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Md(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)&&Wn(a,"0 <= value <= 1",cn,"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),Wl(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),Wl(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),Wl(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),Wl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Wn(a,">= 0",cn,"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&&Wn(a,">= 0",cn,"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 Wn(a,">= 0",cn,"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||om(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&&Ht("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=gh(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ps(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=Yp(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(It,"pointermove",this.dk,!0),this.addEventListener(It,"pointerdown",this.ui,!0),this.addEventListener(It,"pointerup",this.fk,!0),this.addEventListener(It,"pointerout",this.ek,!0),this.addEventListener(It,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(It,"wheel",this.$j,!0),this.addEventListener(It,"selectstart",this.preventDefault,!1)):(this.removeEventListener(It,"pointermove",this.dk,!0),this.removeEventListener(It,"pointerdown",this.ui,!0),this.removeEventListener(It,"pointerup",this.fk,!0),this.removeEventListener(It,"pointerout",this.ek,!0),this.removeEventListener(It,"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(It,"wheel",this.$j,!0),this.removeEventListener(It,"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=kt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),gs(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?lc(this):(this.vb=!0,a=this.scale,pf(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)}kt.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=df(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=df(this)),a.type!==Un.Grid&&Ht("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),sc(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),lc(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||Ht("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 Lr(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===xh&&Wl(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,Wl(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,Xp(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&&Xp(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!==Is&&Wl(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()||Ht("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()||Ht("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)):Wn(a,"> 0",cn,"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)):Wn(a,"> 0",cn,"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),Wl(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 Lr(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&&Ht("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();)Sg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==wh&&a!==Oa&&a!==ip&&Ht("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 Yn(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 Lr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Et.Object.defineProperties(cn,{licenseKey:{get:function(){return sg.jc()},set:function(a){sg.add(a.replace(/\s/g,""))}},version:{get:function(){return Rd}}}),cn.prototype.makeImageData=cn.prototype.Jx,cn.prototype.makeImage=cn.prototype.Wz,cn.prototype.cacheGroupExternalLinks=cn.prototype.Fu,cn.prototype.addRenderer=cn.prototype.bs,cn.prototype.makeSVG=cn.prototype.av,cn.prototype.makeSvg=cn.prototype.Cs,cn.prototype.stopAutoScroll=cn.prototype.ug,cn.prototype.doAutoScroll=cn.prototype.gs,cn.prototype.isUnoccupied=cn.prototype.Yj,cn.prototype.raiseDiagramEvent=cn.prototype.R,cn.prototype.removeDiagramListener=cn.prototype.am,cn.prototype.addDiagramListener=cn.prototype.Bj,cn.prototype.findTreeRoots=cn.prototype.yz,cn.prototype.layoutDiagram=cn.prototype.Uz,cn.prototype.findTopLevelGroups=cn.prototype.qz,cn.prototype.findTopLevelNodesAndLinks=cn.prototype.rz,cn.prototype.ensureBounds=cn.prototype.Va,cn.prototype.findLinksByExample=cn.prototype.ls,cn.prototype.findNodesByExample=cn.prototype.ms,cn.prototype.findLinkForData=cn.prototype.Kc,cn.prototype.findNodeForData=cn.prototype.ii,cn.prototype.findPartForData=cn.prototype.Lc,cn.prototype.findLinkForKey=cn.prototype.findLinkForKey,cn.prototype.findNodeForKey=cn.prototype.Vb,cn.prototype.findPartForKey=cn.prototype.findPartForKey,cn.prototype.rebuildParts=cn.prototype.Wd,cn.prototype.transformViewToDoc=cn.prototype.Ps,cn.prototype.transformRectDocToView=cn.prototype.zA,cn.prototype.transformDocToView=cn.prototype.op,cn.prototype.centerRect=cn.prototype.es,cn.prototype.scrollToRect=cn.prototype.tv,cn.prototype.scroll=cn.prototype.scroll,cn.prototype.highlightCollection=cn.prototype.Jz,cn.prototype.highlight=cn.prototype.Iz,cn.prototype.selectCollection=cn.prototype.rA,cn.prototype.select=cn.prototype.select,cn.prototype.updateAllRelationshipsFromData=cn.prototype.rp,cn.prototype.updateAllTargetBindings=cn.prototype.updateAllTargetBindings,cn.prototype.commit=cn.prototype.commit,cn.prototype.rollbackTransaction=cn.prototype.Kf,cn.prototype.commitTransaction=cn.prototype.eb,cn.prototype.startTransaction=cn.prototype.Ea,cn.prototype.raiseChanged=cn.prototype.g,cn.prototype.raiseChangedEvent=cn.prototype.cb,cn.prototype.removeChangedListener=cn.prototype.ik,cn.prototype.addChangedListener=cn.prototype.Pe,cn.prototype.removeModelChangedListener=cn.prototype.mA,cn.prototype.addModelChangedListener=cn.prototype.Yw,cn.prototype.findLayer=cn.prototype.Qj,cn.prototype.removeLayer=cn.prototype.kA,cn.prototype.addLayerAfter=cn.prototype.Cy,cn.prototype.addLayerBefore=cn.prototype.Ww,cn.prototype.addLayer=cn.prototype.Al,cn.prototype.moveParts=cn.prototype.moveParts,cn.prototype.copyParts=cn.prototype.Kj,cn.prototype.removeParts=cn.prototype.Is,cn.prototype.remove=cn.prototype.remove,cn.prototype.add=cn.prototype.add,cn.prototype.clearDelayedGeometries=cn.prototype.bx,cn.prototype.setProperties=cn.prototype.nm,cn.prototype.attach=cn.prototype.Du,cn.prototype.set=cn.prototype.set,cn.prototype.resetInputOptions=cn.prototype.Sx,cn.prototype.setInputOption=cn.prototype.sA,cn.prototype.getInputOption=cn.prototype.Ql,cn.prototype.resetRenderingHints=cn.prototype.Tx,cn.prototype.setRenderingHint=cn.prototype.Xx,cn.prototype.getRenderingHint=cn.prototype.Gf,cn.prototype.maybeUpdate=cn.prototype.bd,cn.prototype.requestUpdate=cn.prototype.$b,cn.prototype.delayInitialization=cn.prototype.Xy,cn.prototype.isUpdateRequested=cn.prototype.Pz,cn.prototype.invalidateDocumentBounds=cn.prototype.Ya,cn.prototype.findObjectsNear=cn.prototype.og,cn.prototype.findPartsNear=cn.prototype.mz,cn.prototype.findObjectsIn=cn.prototype.Cf,cn.prototype.findPartsIn=cn.prototype.ux,cn.prototype.findObjectsAt=cn.prototype.ji,cn.prototype.findPartsAt=cn.prototype.lz,cn.prototype.findObjectAt=cn.prototype.ic,cn.prototype.findPartAt=cn.prototype.Ol,cn.prototype.focusObject=cn.prototype.zz,cn.prototype.alignDocument=cn.prototype.Jy,cn.prototype.zoomToRect=cn.prototype.BA,cn.prototype.zoomToFit=cn.prototype.zoomToFit,cn.prototype.diagramScroll=cn.prototype.kx,cn.prototype.focus=cn.prototype.focus;var rp=new fr,cm=null,ra=It.document!==void 0,Bd=null,Jh="",Is=new bn(cn,"None",0),$l=new bn(cn,"Uniform",1),Qh=new bn(cn,"UniformToFill",2),mf=new bn(cn,"CycleAll",10),ng=new bn(cn,"CycleNotDirected",11),rg=new bn(cn,"CycleNotDirectedFast",12),ig=new bn(cn,"CycleNotUndirected",13),og=new bn(cn,"CycleDestinationTree",14),ag=new bn(cn,"CycleSourceTree",15),xh=new bn(cn,"DocumentScroll",1),vf=new bn(cn,"InfiniteScroll",2),wh=new bn(cn,"TreeParentCollapsed",21),Oa=new bn(cn,"AllParentsCollapsed",22),ip=new bn(cn,"AnyParentsCollapsed",23),sg=new vn,Rd="2.3.10",_d="image",yf=null,hm=!1;function Ls(){if(ra){var a=It.document.createElement("canvas"),y=a.getContext("2d"),x=mn("7ca11abfd022028846");y[x]=mn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",fn.Dx+"4ae6247590da4bb21c324ba3a84e385776",pi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Qt.za],E=1;5>E;E++)y[mn("7ca11abfd7330390")](mn(b[E-1]),10,15*E);for(y[x]=mn("39f046ebb36e4b"),x=1;5>x;x++)y[mn("7ca11abfd7330390")](mn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(pi.prototype.Cd=pi.prototype.Eu),yf=a}}cn.className="Diagram",cn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=It.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof cn?y.H:null},cn.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},cn.useDOM=function(a){ra=a?It.document!==void 0:!1},cn.isUsingDOM=function(){return ra},cn.None=Is,cn.Uniform=$l,cn.UniformToFill=Qh,cn.CycleAll=mf,cn.CycleNotDirected=ng,cn.CycleNotDirectedFast=rg,cn.CycleNotUndirected=ig,cn.CycleDestinationTree=og,cn.CycleSourceTree=ag,cn.DocumentScroll=xh,cn.InfiniteScroll=vf,cn.TreeParentCollapsed=wh,cn.AllParentsCollapsed=Oa,cn.AnyParentsCollapsed=ip;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function zd(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=It[mn("76a715b2f73f148a")][mn("72ba13b5")]||"";if(a.Rc=!0,ra){var b=cn[mn("76a115b6ed251eaf4692")];if(b)for(var E=sg.iterator;E.next()&&(b=E.value,b=mn(b).split(mn("39e9")),!(6>b.length));){var te=mn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=mn(fn[mn("6cae19")]).split(".");if(te[0]>ne[0]||te[0]===ne[0]&&te[1]>=ne[1]){var se=It[mn("74a900bae4370f8b51")][mn("6fbb13a1c2311e8a57")].toLowerCase();if(ne=se[mn("73a612b6fb191d")](mn("3aad1ab6e022098b4dc4")),te=mn(b[2]),-1<ne&&(se=se[mn("73a612b6fb191d")](te.toLowerCase()+"/"),a.Rc=!(-1<se&&se<ne),!a.Rc))break;for(ne=x[mn("76ad18b4f73e")],se=x[mn("73a612b6fb191d")](mn("35e7"))+2;se<ne;se++)y+=x[se];if(ne=y[mn("73a612b6fb191d")](te),0>ne&&te!==mn("7da71ca0ad381e90")&&(ne=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>ne&&(ne=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>ne&&(ne=y[mn("73a612b6fb191d")](mn("2bfa41fdb3784bca12"))),0>ne&&(ne=x[mn("73a612b6fb191d")](mn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[mn("73a612b6fb191d")](mn("35"))||y[mn("73a612b6fb191d")](mn("35"))===-1),!a.Rc||x[mn("73a612b6fb191d")](mn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[mn("73a612b6fb191d")](te)),!a.Rc)||(ne=It[mn("76a715b2f73f148a")][mn("69ad17a1e03e")],se=ne[mn("73a612b6fb191d")](mn("7fb002b6ed25128b4da25b2e")),-1<se&&(a.Rc=!(ne[mn("73a612b6fb191d")](te)>se),!a.Rc)))break;if(te[0]==="#"){ne=It.document.createElement("div");for(var he=b[0].replace(/[A-Za-z]/g,"");4>he.length;)he+="9";if(se=he,he=he.substr(he.length-4),b="",b+=["gsh","gsf"][parseInt(he.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(he.substr(0,1),10)%4],ne[mn("79a417a0f0181a8946")]=b,It.document[mn("78a712aa")]){It.document[mn("78a712aa")][mn("7bb806b6ed32388c4a875b")](ne),he=It.getComputedStyle(ne).getPropertyValue(mn("78a704b7e62456904c9b12701b6532a8"));var ge=It.getComputedStyle(ne).getPropertyValue(mn("75b817b0ea2202"));if(It.document[mn("78a712aa")][mn("68ad1bbcf533388c4a875b")](ne),he){if(ne=It[mn("77a902b0eb1b1e804a8a")],ge==="0."+parseInt(se,10)%100||he.indexOf(parseInt(te[1]+te[2],16))!==-1&&he.indexOf(parseInt(te[3]+te[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(mn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,te=0;te<document.styleSheets.length;te++){ne=document.styleSheets[te].rules||document.styleSheets[te].cssRules;for(var ye in ne)if(b===ne[ye].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ye=x[mn("76ad18b4f73e")],E=x[mn("73a612b6fb191d")](mn("35e7"))+2;E<ye;E++)y+=x[E];x=y[mn("73a612b6fb191d")](mn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[mn("73a612b6fb191d")](mn("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function Qc(a){this.j=a===void 0?new kt:a,this.o=new kt}Et.Object.defineProperties(Qc.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 Sf="DraggingInfo";Qc.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function de(){this.reset()}de.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Yn(NaN,NaN).freeze(),this.gridSnapCellSpot=$a,this.gridSnapOrigin=new kt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},de.className="DraggingOptions";function Ne(a,y){if(typeof a=="string"||It.Element&&a instanceof Element)var x=cn.call(this,a)||this;else x=cn.call(this)||this,y=a;return Me(x),y&&x.nm(y),x}Jt(Ne,cn);function Me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Pl,a.layout=new hs}Ne.prototype.reset=function(){cn.prototype.reset.call(this),Me(this)},Ne.className="Palette";function Re(a,y){if(typeof a=="string"||It.Element&&a instanceof Element)var x=cn.call(this,a)||this;else x=cn.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 kr;var E=new fi;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 Lr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new jt,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new kt(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),bt(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&&bt(b)},x.autoScale=$l,x.vb=!1,y&&Object.assign(x,y),x}Jt(Re,cn),Re.prototype.computePixelRatio=function(){return 1},Re.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(ru(this),this.ql===null){var x=new vu(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}}}cn.prototype.redraw.call(this)},Re.prototype.gc=function(){if(this.Ka===null&&Ht("No div specified"),this.ta===null&&Ht("No canvas specified"),!(this.ta instanceof uc)&&(Fv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){ru(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=Ln.alloc().assign(a.viewportBounds).ed(y.viewportBounds),sc(y,E),Ln.free(E),us(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],he=a;if(se.visible&&se.opacity!==0){var ge=se.diagram.grid.part;if(!x&&se.isTemporary)b&&ge.layer===se&&(se=vs(se,E),ge.gc(E,he),E.globalAlpha=se);else{for(var ye=vs(se,E),Ie=he.scale,Ue=Ln.alloc(),qe=se.Pa.s,rt=qe.length,ut=0;ut<rt;ut++){var At=qe[ut];(b||At!==ge)&&se.Oj(E,At,he,null,Ie,Ue,!1)}Ln.free(Ue),E.globalAlpha=ye}}}}}function bt(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=Yn.alloc();E.h(x.width,x.height),b.desiredSize=E,Yn.free(E),a=2/a.scale,b instanceof fi&&(b.strokeWidth=a),y.location=new kt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Re.prototype.computeBounds=function(){var a=this.observed;if(a===null)return bi;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Re.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Re.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),bt(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))},Et.Object.defineProperties(Re.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Re&&Ht("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),bt(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),bt(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),Re.className="Overview";function jt(){Ko.call(this),this.j=null}Jt(jt,Ko),jt.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 kt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new kt(a.x-this.j.x,a.y-this.j.y)),!0)},jt.prototype.doActivate=function(){this.j=null,Ko.prototype.doActivate.call(this)},jt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},jt.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 kt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new kt(a.x-this.j.x,a.y-this.j.y)}}},jt.className="OverviewDraggingTool";function Ot(){zr(this),this.H=Ku,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=bi,this.hb=!0,this.cg=null,this.ob=200}Ot.prototype.toString=function(){return"CommandHandler"},Ot.prototype.Xe=function(a){this.H=a},Ot.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Yr?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()},Ot.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Ot.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Do&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Ot.prototype.canStopCommand=function(){return!0},Ot.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=""}},Ot.prototype.canSelectAll=function(){return this.diagram.allowSelect},Ot.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 xn,x=a.selection.iterator;x.next();)nd(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=""}},Ot.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Ot.prototype.copySelection=function(){var a=this.diagram,y=new xn;for(a=a.selection.iterator;a.next();)nd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Ot.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Ot.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Ot.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Ot.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Bd=null,Jh="";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 vn,x.addAll(te),Bd=x,Jh=y.model.dataFormat}}y.R("ClipboardChanged",x)},Ot.prototype.pasteFromClipboard=function(){var a=new xn,y=Bd;if(y===null)return a;var x=this.diagram;if(Jh!==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},Ot.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);ac(y,te,new kt(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=""}},Ot.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Bd===null||Bd.count===0||Jh!==a.model.dataFormat)},Ot.prototype.undo=function(){this.diagram.undoManager.undo()},Ot.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Ot.prototype.redo=function(){this.diagram.undoManager.redo()},Ot.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Ot.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ot.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ot.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ot.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ot.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Ot.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Ot.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ps(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=bi):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),qa(y)},Ot.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ot.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(he){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;Ps(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Wt(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 he=E.pop();0<E.length&&he instanceof rr&&he.isTreeExpanded&&(!(he instanceof ti)||he.isSubGraphExpanded);)he=E.pop();0<E.length?(he instanceof kr&&y.tv(he.actualBounds),he instanceof rr&&!he.isTreeExpanded&&(he.isTreeExpanded=!0),he instanceof ti&&!he.isSubGraphExpanded&&(he.isSubGraphExpanded=!0)):(he instanceof kr&&y.es(he.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){Gn(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 Wt(a,y,x){if(y.isVisible())return x;if(y instanceof Ui)Wt(a,y.adornedPart,x);else if(y instanceof Kn){var b=y.fromNode;b!==null&&Wt(a,b,x),y=y.toNode,y!==null&&Wt(a,y,x)}else y instanceof rr&&(b=y.labeledLink,b!==null&&Wt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Wt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Wt(a,y,x));return x}Ot.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof kr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Ot.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ps(y.animationManager,"Collapse Tree");var x=new vn;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 rr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Ot.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof rr&&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 rr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ot.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ps(y.animationManager,"Expand Tree");var x=new vn;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 rr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Ot.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof rr)||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 rr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ot.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 vn,te=a.selection.iterator;te.next();){var ne=te.value;ne.Zc()&&ne.canGroup()&&E.add(ne)}for(var se=new vn,he=E.iterator;he.next();){var ge=he.value;te=!1;for(var ye=E.iterator;ye.next();)if(ge.Td(ye.value)){te=!0;break}te||se.add(ge)}if(0<se.count){var Ie=se.first().containingGroup;if(Ie!==null)for(;Ie!==null;){E=!1;for(var Ue=se.iterator;Ue.next();)if(!Ue.value.Td(Ie)){E=!0;break}if(E)Ie=Ie.containingGroup;else break}if(x instanceof ti)yu(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var qe=y.copyNodeData(x);on(qe)&&(y.xf(qe),b=a.ii(qe))}if(b!==null){Ie!==null&&this.isValidMember(Ie,b)&&(b.containingGroup=Ie);for(var rt=se.iterator;rt.next();){var ut=rt.value;this.isValidMember(b,ut)&&(ut.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Ot.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 Cn(a){var y=yn();for(a=a.iterator;a.next();){var x=a.value;x instanceof Kn||y.push(x)}a=new xn,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 On(y),a}Ot.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Kn)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},Ot.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 vn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof ti&&te.canUngroup()&&b.add(te)}var ne=new vn;if(0<b.count){y.clearSelection(!0);for(var se=b.iterator;se.next();){var he=se.value;he.expandSubGraph();var ge=he.containingGroup,ye=ge!==null&&ge.data!==null?x.wa(ge.data):void 0;ne.addAll(he.memberParts);for(var Ie=ne.iterator;Ie.next();){var Ue=Ie.value;if(Ue.isSelected=!0,!(Ue instanceof Kn)){var qe=Ue.data;qe!==null?x.mp(qe,ye):Ue.containingGroup=ge}}y.remove(he)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ot.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 ti))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ti&&y.canUngroup())return!0;return!1},Ot.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Cn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Ot.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ps(y.animationManager,"Collapse SubGraph");var x=new vn;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 ti&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Ot.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof ti&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ti&&y.isSubGraphExpanded)return!0;return!1},Ot.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ps(y.animationManager,"Expand SubGraph");var x=new vn;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 ti&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Ot.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof ti&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ti&&!y.isSubGraphExpanded)return!0;return!1},Ot.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 Co&&te.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Ot.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 Co))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 Co&&x.editable}),a!==null))return!0;return!1},Ot.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 Yt?E=a.ga(Bi):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new kt(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,wo(x,!1,a)}},Ot.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)},Ot.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 fr,a===null)return b;for(var te=a.iterator;te.next();)gu(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 Kn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Et.Object.defineProperties(Ot.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||Ht("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}}}),Ot.className="CommandHandler",Yc=function(){return new Ot};function Yt(){zr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new kt(NaN,NaN).freeze(),this.jd=na,this.Ab=new pi,this.wh=new pi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Cs,this.uc=new Ln(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Ln(NaN,NaN,NaN,NaN).freeze(),this.dc=new Ln(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=to,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 Hn,Dn,gr,Er,_r,si,ki,Si,_i,mo;Yt.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=an(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Yt.prototype.Vw=function(a){var y=this.Dh;if(Mn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Yt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Yt.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},Yt.prototype.copy=function(){return this.clone()},ot=Yt.prototype,ot.qb=function(a){a.classType===Kn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Ht("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Yt&&(this.stretch=a)},ot.toString=function(){return Nn(this.constructor)+"#"+Mi(this)},ot.th=function(){this.A!==null&&(this.A.nc=!0)};function mi(a){a.A===null?a.A=new wf:a.A.nc&&(a.A=a.A.copy())}ot.Xc=function(){if(this.ba===null){var a=new lg;a.Xi=aa,a.yj=aa,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},ot.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===Ho&&ys(this)&&ko(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 fr),ne=te.undoManager.transactionLevel===0,a.startCondition===ls?ne=!0:a.startCondition===Sa&&(ne=!1),ne?(te=new ta,Zo(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()):(Ps(te.animationManager,"Trigger"),te.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Un&&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 Un&&Ud(se,function(he){he.data!==null&&he.l&16777216&&he.La(y)})};function ko(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=MS(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 he=y.diagram;he===null||he.skipsModelSourceBindings||te.sp(a,se,x,b)}ne===a&&(se=b.ks(te.Ai),se!==null&&te.Mv(se,ne,x))}}ot.ks=function(a){return this.bindingId===a?this:null},ot.g=function(a,y,x){this.cb(Ho,a,this,y,x)},ot.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 pi);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),te.pp(E)}};function Ya(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}ot.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?co(a.x,a.y,0,0,0,b.height)<=y||co(a.x,a.y,0,b.height,b.width,b.height)<=y||co(a.x,a.y,b.width,b.height,b.width,0)<=y||co(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},ot.se=function(){return!0},ot.ca=function(a){var y=kt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return kt.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 he=1/b;if(se.width*b<E&&se.height*b<E)return a=No(x.x-ne*he,x.y-ne*he,x.width+te*he,x.height+te*he,y.x,y.y),kt.free(y),a}return E=!1,(this instanceof Ui||this instanceof fi?No(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)),kt.free(y),E},ot.gh=function(a){var y=this.naturalBounds;return No(0,0,y.width,y.height,a.x,a.y)},ot.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Ln.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=kt.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)))),kt.free(E),Ln.free(y),b},ot.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=kt.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)))),kt.free(E),b},ot.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=kt.allocAt(0,0),E=kt.allocAt(0,x.height),te=kt.allocAt(x.width,x.height),ne=kt.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=Ln.allocAt(0,0,x.width,x.height);var he=kt.allocAt(a.x,a.y);x.ca(y.Cd(he))?se=!0:(he.h(a.x,a.bottom),x.ca(y.Cd(he))?se=!0:(he.h(a.right,a.bottom),x.ca(y.Cd(he))?se=!0:(he.h(a.right,a.y),x.ca(y.Cd(he))&&(se=!0)))),kt.free(he),Ln.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 kt.free(b),kt.free(E),kt.free(te),kt.free(ne),se},ot.ga=function(a,y){if(y===void 0&&(y=new kt),a instanceof wr){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},ot.mi=function(a){a===void 0&&(a=new Ln);var y=this.naturalBounds,x=this.oe,b=kt.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),kt.free(b),a},ot.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},ot.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},ot.qs=function(a,y){return y===void 0&&(y=new kt),y.assign(a),this.oe.Cd(y),y},ot.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ot.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,he=-te.m12*ne,ge=-te.m21*ne,ye=te.m11*ne,Ie=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+Ie,a=a*he+y*ye+Ue,y=x*se+b*ge+Ie,x=x*he+b*ye+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)},Yt.prototype.measure=function(a,y,x,b){if(Vl(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 Un;switch(sl(this,!0)){case Dn:ne=E=0,se&&(y=a=1/0);break;case Hn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ne=y);break;case Er:isFinite(a)&&a>x&&(E=a),ne=0,se&&(y=1/0);break;case _r:isFinite(y)&&y>b&&(ne=y),E=0,se&&(a=1/0)}se=this.maxSize;var he=this.minSize;E>se.width&&he.width<se.width&&(E=se.width),ne>se.height&&he.height<se.height&&(ne=se.height),x=Math.max(E,he.width),b=Math.max(ne,he.height),se.width<x&&(x=Math.min(he.width,x)),se.height<b&&(b=Math.min(he.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()||Ht("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Aa(this,!1)}},Yt.prototype.Wl=function(){},Yt.prototype.Dd=function(){return!1},Yt.prototype.arrange=function(a,y,x,b,E){this.Uk();var te=Ln.alloc();te.assign(this.Ib),this.Ib.ka(),Ws(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&&Ch(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 Co&&(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()||Ht("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Mc(this,!1),Ln.free(te)},ot=Yt.prototype,ot.eh=function(){};function Ds(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=sl(a,!0),x===b&&te===E&&(y=Dn),y){case Dn:(x>b||te>E)&&(Aa(a,!0),a.measure(x>b?b:x,te>E?E:te,0,0));break;case Hn:Aa(a,!0),a.measure(b,E,0,0);break;case Er:Aa(a,!0),a.measure(b,te,0,0);break;case _r:Aa(a,!0),a.measure(x,E,0,0)}}}ot.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||_v(x,!0),this.N(),xo(a,y)||(x.oh(),this.Pn(x)))},ot.Pn=function(a){this.portId!==null&&(_v(a,!0),a instanceof rr&&U1(a,this))},ot.gc=function(a,y){if(!iu(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 Un&&Ch(this),ne=this.Ib;if(te){var se=this.Ib,he=this.dc,ge=this.areaBackground,ye=this.Ma;ge===null&&ye===null||a.yc(),ge!==null&&(oa(this,a,ge,!0,!0,he,se),ge instanceof ao&&ge.type===su?(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)),ye!==null&&(oa(this,a,ye,!0,!1,he,se),ye instanceof ao&&ye.type===su?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(ye)):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&&cs(this),ge=this.part,he=!1;var Ie=0;ge&&y.Gf("drawShadows")&&(he=ge.isShadowed)&&(ye=ge.shadowOffset,Ie=Math.max(ye.y,ye.x)*y.scale*y.Mb),ye=this.Dd();var Ue;if(!(Ue=y.$i||!ye)){var qe=this.naturalBounds;Ue=this.wh;var rt=Ue.m11,ut=Ue.m21,At=Ue.dx,Mt=Ue.m12,Bt=Ue.m22,_t=Ue.dy,Gt,Zt=Gt=0;Ue=Gt*rt+Zt*ut+At;var hn=Gt*Mt+Zt*Bt+_t;Gt=qe.width+Ie,Zt=0;var qn=Gt*rt+Zt*ut+At;Gt=Gt*Mt+Zt*Bt+_t,Zt=Math.min(Ue,qn);var dr=Math.min(hn,Gt),hr=Math.max(Ue+0,qn)-Zt,$n=Math.max(hn+0,Gt)-dr;Ue=Zt,hn=dr,Gt=qe.width+Ie,Zt=qe.height+Ie,qn=Gt*rt+Zt*ut+At,Gt=Gt*Mt+Zt*Bt+_t,Zt=Math.min(Ue,qn),dr=Math.min(hn,Gt),hr=Math.max(Ue+hr,qn)-Zt,$n=Math.max(hn+$n,Gt)-dr,Ue=Zt,hn=dr,Gt=0,Zt=qe.height+Ie,qn=Gt*rt+Zt*ut+At,Gt=Gt*Mt+Zt*Bt+_t,Zt=Math.min(Ue,qn),dr=Math.min(hn,Gt),hr=Math.max(Ue+hr,qn)-Zt,$n=Math.max(hn+$n,Gt)-dr,Ue=Zt,hn=dr,Ie=y.viewportBounds,qe=Ie.x,rt=Ie.y,Ue=!(Ue>Ie.width+qe||qe>hr+Ue||hn>Ie.height+rt||rt>$n+hn)}if(Ue){if(Ue=(this.l&256)!==0,a.clipInsteadOfFill&&(Ue=!1),this instanceof Co&&(a.font=this.font),Ue){if(hn=se.se()?se.naturalBounds:se.actualBounds,hr=Math.max(ne.x,hn.x),$n=Math.max(ne.y,hn.y),Ie=Math.min(ne.right,hn.right)-hr,qe=Math.min(ne.bottom,hn.bottom)-$n,rt=this.tb,rt!==null&&(hr=rt.x,$n=rt.y,Ie=rt.width,qe=rt.height),hr>ne.width+ne.x||ne.x>hn.width+hn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(hr,$n,Ie,qe),a.clip()}if(ye){if(!ge.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}he&&(hn=ge.shadowOffset,a.Ev(hn.x*y.scale*this.scale*y.Mb,hn.y*y.scale*this.scale*y.Mb,ge.shadowBlur),qc(a),a.shadowColor=ge.shadowColor)}he&&this.shadowVisible===!0?qc(a):he&&this.shadowVisible===!1&&Lc(a),ge=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Kl(this,a,ge,ne)),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),he&&rs(this,se)&&this.shadowVisible===null&&Lc(a),this.Ma!==null&&(a.yc(),vl(this,a,ge,ne)),he&&(this.Ma!==null||this.areaBackground!==null||rs(this,se))?(Lu(this,!0),this.shadowVisible===null&&Lc(a)):Lu(this,!1),this.hh(a,y),he&&this.l&512&&qc(a),ye&&he&&Lc(a),Ue&&(a.restore(),a.Vc(this instanceof Un)),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 rs(a,y){return y===null?!1:(Ch(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Un.Auto||y.type===Un.Spot)&&y.Pb()!==a)}ot.Dv=function(){};function Kl(a,y,x,b){oa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof ao&&a.areaBackground.type===su?(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 vl(a,y,x,b){var E=a.kq(),te=x.x,ne=x.y,se=x.width+E,he=x.height+E;oa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof ao&&a.Ma.type===su?(y.beginPath(),y.rect(te-E/2,ne-E/2,se,he),y.ng(a.Ma)):y.fillRect(te-E/2,ne-E/2,se,he)}function ks(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===Un.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 iu(a,y,x){if(!(y instanceof Ml))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&&ks(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),qc(y),y.shadowColor=a.shadowColor}a instanceof Co&&(y.font=a.font),y.yd=null;var ne=a.transform;te=a instanceof Un;var se=a instanceof Un?Ch(a):!1;a.l&4096&&cs(a);var he=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,te&&se?(ug(y,1,0,0,1,0,0),a.svg=y.ad):te?(ug(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):ug(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],Kl(a,y,E,he),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]),vl(a,y,E,he),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],vl(a,y,E,he)),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&&qc(y),se&&a.shadowVisible===!0?qc(y):se&&a.shadowVisible===!1&&Lc(y),E=a.panel,se&&rs(a,E)&&a.shadowVisible===null&&Lc(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||rs(a,E))?(Lu(a,!0),a.shadowVisible===null&&Lc(y)):Lu(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,he,se),al(y,ge),!0):(a.svg=se,ne!==null&&se===null&&(pm(y),y.nh.pop()),se===null||(a.$o(y,b,he,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&&qc(y),a.Dd()&&Lc(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&&ks(a,b,se),ne!==null&&ne(a,se)),!0)}ot.$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"+yo++,se=a.Ud("clipPath",{id:te}),y=a.Ud("rect",{x:y,y:E,width:ne,height:x}),this instanceof Un&&(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"),al(a,b)};function al(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Ns(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=xi(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()}}ot.hh=function(){},ot.lv=function(){this.Uc=!0},ot.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 Un?Ch(this):!1;if(!(this instanceof Un&&E))if(this instanceof ul){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 Un)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof fi){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],Kl(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&&gm(a,te)),(this.background!==null||y.Ma!==void 0)&&(te=y.Ma,this.background===null?(gm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Un))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),vl(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gm(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&&gm(a,te)),this.$o(a,this.panel,this.actualBounds,y),!0},ot.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 oa(a,y,x,b,E,te,ne){if(x!==null){var se=1,he=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Ph)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ge=a.kq();if(se=te.width,he=te.height,E?(se=ne.width,he=ne.height):b||(se+=ge,he+=ge),(te=y instanceof Wd)&&x.xe&&(x.type===hp||x.yk===se&&x.ft===he))var ye=x.xe;else{var Ie=0,Ue=0,qe=0,rt=0,ut=0,At=0;if(At=ut=0,E?(ut=ne.x,At=ne.y):b||(ut-=ge/2,At-=ge/2),Ie=x.start.x*se+x.start.offsetX,Ue=x.start.y*he+x.start.offsetY,qe=x.end.x*se+x.end.offsetX,rt=x.end.y*he+x.end.offsetY,Ie+=ut,qe+=ut,Ue+=At,rt+=At,x.type===th)ye=y.createLinearGradient(Ie,Ue,qe,rt);else if(x.type===su)At=isNaN(x.endRadius)?Math.max(se,he)/2:x.endRadius,isNaN(x.startRadius)?(ut=0,At=Math.max(se,he)/2):ut=x.startRadius,ye=y.createRadialGradient(Ie,Ue,ut,qe,rt,At);else if(x.type===hp)try{ye=y.createPattern(x.pattern,"repeat")}catch(Bt){ye=null}if(x.type!==hp&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ye.addColorStop(E.key,E.value);if(te&&(x.xe=ye,ye!==null&&(x.yk=se,x.ft=he),ye===null&&x.type===hp&&x.yk!==-1)){x.yk=-1;var Mt=a.diagram;Mt!==null&&x.yk===-1&&Gn(function(){Mt.redraw()},600)}}b?y.fillStyle=ye:y.strokeStyle=ye}}}ot.rg=function(a){if(a instanceof Un)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},ot.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},ot.If=function(){for(var a=this instanceof Un?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function cs(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){mu(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)}mu(a,!1),ou(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,ou(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,ou(a,!1)))}ot.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=kt.alloc();te.yi(y,x,b,E,Bi),a.rotate(this.Kb,te.x,te.y),kt.free(te)}},ot.v=function(a){if(!Vl(this)){a===void 0&&(a=!1),Aa(this,!0),Mc(this,!0);var y=this.panel;y===null||a||y.v()}},ot.Uj=function(){Vl(this)||(Aa(this,!0),Mc(this,!0))};function Gs(a){if(!Ws(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof rr&&a.Bd(),y.$b())),Mc(a,!0)}}ot.Uk=function(){!(this.l&2048)&&(mu(this,!0),ou(this,!0))},ot.Wu=function(){ou(this,!0)},ot.N=function(){var a=this.part;a!==null&&a.N()};function sl(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Un.Table?Vu(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Un.Auto&&b.Pb()===a?is(a,Hn,y):x===si?b!==null?b.type===Un.Spot&&b.Pb()===a?is(a,Hn,y):(x=b.defaultStretch,x===si?is(a,Dn,y):is(a,x,y)):is(a,Dn,y):is(a,x,y)}function Vu(a,y,x,b){var E=a.stretch;if(E!==si)return is(a,E,b);var te=E=null;switch(y.stretch){case _r:te=!0;break;case Hn:te=!0}switch(x.stretch){case Er:E=!0;break;case Hn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Er||y===Hn),te===null&&(te=y===_r||y===Hn),E===!0&&te===!0?is(a,Hn,b):E===!0?is(a,Er,b):te===!0?is(a,_r,b):is(a,Dn,b)}function is(a,y,x){if(x)return y;if(y===Dn||(x=a.desiredSize,x.w()))return Dn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Er)return Dn;if(y===Hn)return _r}else{if(y===_r)return Dn;if(y===Hn)return Er}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===_r)return Dn;if(y===Hn)return Er}else{if(y===Er)return Dn;if(y===Hn)return _r}return y}function Lu(a,y){a.l=y?a.l|512:a.l&-513}function ys(a){return(a.l&1024)!==0}function xf(a,y){a.l=y?a.l|1024:a.l&-1025}function mu(a,y){a.l=y?a.l|2048:a.l&-2049}function ou(a,y){a.l=y?a.l|4096:a.l&-4097}function Vl(a){return(a.l&8192)!==0}function Aa(a,y){a.l=y?a.l|8192:a.l&-8193}function Ws(a){return(a.l&16384)!==0}function Mc(a,y){a.l=y?a.l|16384:a.l&-16385}ot.Gj=function(){this.svg=null},ot.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},ot.Av=function(){},ot.zv=function(a){return this.pa=a,Gs(this),!0},ot.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},ot.kq=function(){return 0};function Hd(a){var y=a.part;if(y instanceof rr&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||U1(y,a)}}function Zy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Un?a instanceof rr?a.Bd():a.qm(a,function(x){Hd(x)}):Hd(a))}ot.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new xa(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&Ht("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new vn),this.localBindings.add(E),this},ot.set=function(a){return Object.assign(this,a),this},ot.Du=function(a){return rv(this,a),this},ot.apply=function(a){return a(this),this},ot.nm=function(a){return nu(this,a),this},ot.pz=function(){return this.ih()},ot.ih=function(){for(var a=this instanceof Un?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},ot.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new fr),this.animationTriggers.add(a.propertyName,a),this};function au(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=op.I(a);typeof te=="function"?(x=an(arguments),b=te(x),on(b)||Ht('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=It.go[a]}if(b===null&&(E!=null&&E.constructor||Ht("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 cn&&1<x.length){te=b;var ne=x[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(Md(te,ne),E++)}for(;E<x.length;E++)te=x[E],te===void 0?Ht("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):rv(b,te);return b}function rv(a,y){if(typeof y=="string")if(a instanceof Co)a.text=y;else if(a instanceof fi)a.figure=y;else if(a instanceof ul)a.source=y;else if(a instanceof Un)y=ku.I(y),y!==null&&(a.type=y);else if(a instanceof ao){var x=Jn(ao,y);x!==null?a.type=x:Ht("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Zn?(y=Jn(Zn,y),y!==null&&(a.type=y)):a instanceof Gi&&(y=Jn(Gi,y),y!==null&&(a.type=y));else if(y instanceof Yt)a instanceof Un||Ht("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof ja){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 ja?Om(b,y):Ht("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof bn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Wa)a.type=y;else if(y instanceof xa)a instanceof Yt||a instanceof ja?a.bind(y):Ht("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Tl)a instanceof Yt?a.Jv(y):Ht("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Ha)a instanceof Zn&&a.type===Zn.o?a.figures.add(y):Ht("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Gi)a instanceof Ha?a.segments.add(y):Ht("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ro)a instanceof cn||a instanceof ti?a.layout=y:Ht("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++)rv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof ao){x=new Sr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);nu(a,x)}else if(a instanceof ja){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Ht("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)&&Ht("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Sr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);nu(a,E)}else nu(a,y);else Ht('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function bh(a,y){op.add(a,y)}function fm(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}Et.Object.defineProperties(Yt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new wf),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 wf),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 wf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(mi(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&&(mi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ks},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new qh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ks&&(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 qh),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 qh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Fi},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new qh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:si},set:function(a){var y=this.stretch;y!==a&&(mi(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&&(mi(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)&&Wn(a,"0 <= value <= 1",Yt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Vd(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(Vd(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(),Zy(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&&Pf(a,"GraphObject.areaBackground"),a instanceof ao&&a.freeze(),mi(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&&Pf(a,"GraphObject.background"),a instanceof ao&&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 kr)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 kt(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&&Ht("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,Zy(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 fi&&this.qc(),this.g("desiredSize",b,a),ys(this)&&(a=this.part,a!==null&&(ko(this,a,"width"),ko(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 Yn(a,this.jd.height).freeze(),this.v(),this instanceof fi&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&ko(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 Yn(this.jd.width,a).freeze(),this.v(),this instanceof fi&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&ko(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ci},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(),mi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Pa},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(),mi(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 Lr(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&&cs(this),this.Ab}},oe:{get:function(){return this.l&4096&&cs(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(mi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Dn},set:function(a){this.reshapingBehavior!==a&&(mi(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()&&Ht("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Gs(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&&Wn(a,">= 0",Yt,"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&&Wn(a,">= 1",Yt,"columnSpan"),mi(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&&Wn(a,">= 0",Yt,"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&&Wn(a,">= 1",Yt,"rowSpan"),mi(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&&(mi(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 rr||Ht("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Wv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,V1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:aa},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Hd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Wn(a,">= 0",Yt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Hd(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),Hd(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&&Wn(a,">= 0",Yt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:aa},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Hd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Wn(a,">= 0",Yt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Hd(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),Hd(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&&Wn(a,">= 0",Yt,"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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Yt.prototype.trigger=Yt.prototype.Jv,Yt.prototype.findBindingPanel=Yt.prototype.ih,Yt.prototype.findTemplateBinder=Yt.prototype.pz,Yt.prototype.setProperties=Yt.prototype.nm,Yt.prototype.apply=Yt.prototype.apply,Yt.prototype.attach=Yt.prototype.Du,Yt.prototype.set=Yt.prototype.set,Yt.prototype.isEnabledObject=Yt.prototype.If,Yt.prototype.isVisibleObject=Yt.prototype.Ed,Yt.prototype.isContainedBy=Yt.prototype.rg,Yt.prototype.getNearestIntersectionPoint=Yt.prototype.rs,Yt.prototype.getLocalPoint=Yt.prototype.qs,Yt.prototype.getDocumentScale=Yt.prototype.Df,Yt.prototype.getDocumentAngle=Yt.prototype.li,Yt.prototype.getDocumentBounds=Yt.prototype.mi,Yt.prototype.getDocumentPoint=Yt.prototype.ga,Yt.prototype.intersectsRect=Yt.prototype.Yc,Yt.prototype.containedInRect=Yt.prototype.fh,Yt.prototype.containsRect=Yt.prototype.Re,Yt.prototype.containsPoint=Yt.prototype.ca,Yt.prototype.raiseChanged=Yt.prototype.g,Yt.prototype.raiseChangedEvent=Yt.prototype.cb,Yt.prototype.addCopyProperty=Yt.prototype.Vw;var op=null;Yt.className="GraphObject",op=new fr,bh("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=au(Un,Un.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Un){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"},au(fi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new wr(0,0,2.76142374915397,2.761423749153969),spot2:new wr(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 Un&&(x=b.fb("ButtonBorder"),x instanceof fi)){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 Un&&(x=b.fb("ButtonBorder"),x instanceof fi&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Un&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof fi){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 Un&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof fi){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 Un&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof fi){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 Un&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof fi))){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}),bh("TreeExpanderButton",function(){var a=au("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},au(fi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:_o},new xa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new xa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ui&&(x=x.adornedPart),x instanceof rr){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}),bh("SubGraphExpanderButton",function(){var a=au("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},au(fi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:_o},new xa("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 Ui&&(x=x.adornedPart),x instanceof ti){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}),bh("ToolTip",function(){return au(Ui,Un.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new kt(0,3),shadowBlur:5},au(fi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new wr(0,0,4,6),spot2:new wr(1,1,-4,-4)}))}),bh("ContextMenu",function(){return au(Ui,Un.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new kt(0,3),shadowBlur:5},new xa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),bh("ContextMenuButton",function(){var a=au("Button");a.stretch=Er;var y=a.fb("ButtonBorder");return y instanceof fi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new wr(0,0,2,3),y.spot2=new wr(1,1,-2,-2)),a}),bh("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=au("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},au(fi,{name:"ButtonIcon",strokeWidth:2},new xa("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof fi&&(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}),bh("CheckBoxButton",function(a){var y=fm(a);return a=au("Button",{desiredSize:new Yn(14,14)},au(fi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Hn,geometryStretch:gr,visible:!1},y!==""?new xa("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Un){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}),bh("CheckBox",function(a){a=fm(a),a=au("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Lr(0,1,0,0)});var y=au(Un,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Lr(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}),Yt.None=Dn=new bn(Yt,"None",0),Yt.Default=si=new bn(Yt,"Default",0),Yt.Vertical=_r=new bn(Yt,"Vertical",4),Yt.Horizontal=Er=new bn(Yt,"Horizontal",5),Yt.Fill=Hn=new bn(Yt,"Fill",3),Yt.Uniform=gr=new bn(Yt,"Uniform",1),Yt.UniformToFill=ki=new bn(Yt,"UniformToFill",2),Yt.FlipVertical=Si=new bn(Yt,"FlipVertical",1),Yt.FlipHorizontal=_i=new bn(Yt,"FlipHorizontal",2),Yt.FlipBoth=mo=new bn(Yt,"FlipBoth",3),Yt.make=au,Yt.getBuilders=function(){var a=new fr,y;for(y in op)if(y!==y.toLowerCase()){var x=op.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Yt.defineBuilder=bh,Yt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=op.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Yt))return y&&b.set(y),b;Ht('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Yt.takeBuilderArgument=fm;function wf(){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=ci,this.o=Pa,this.hg=si,this.ob=this.Bi=1,this.Pf=Dn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}wf.prototype.copy=function(){var a=new wf;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 qh(){this.u=-1/0,this.o=0,this.F=Fi,this.rr=Ks,this.j=this.V="None"}qh.prototype.copy=function(){var a=new qh;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},qh.className="LinkElementSettings";function lg(){this.yj=this.Xi=to,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}lg.prototype.copy=function(){var a=new lg;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},lg.className="LinkSettings";function Gd(){this.ha=[1,0,0,1,0,0]}Gd.prototype.copy=function(){var a=new Gd;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},Gd.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},Gd.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Gd.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)}},Gd.className="STransform";function bf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}bf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},bf.className="SGradient";function uc(a,y,x){this.ownerDocument=a=y===void 0?It.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 Ml(this,x)}uc.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},uc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),on(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},uc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},uc.prototype.focus=function(){this.Oa.focus()},uc.prototype.mx=function(){this.ownerDocument=null},Et.Object.defineProperties(uc.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}}}),uc.className="SVGSurface";function Ml(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 Gd,this.j=pm(this),this.Nj=pm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=yo++,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?ug(a,y,x,b,E,te,ne):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+te+", "+ne+")")}ot=Ml.prototype,ot.arc=function(a,y,x,b,E,te,ne,se){var he=2*Math.PI,ge=he-1e-6,ye=x*Math.cos(b),Ie=x*Math.sin(b),Ue=a+ye,qe=y+Ie,rt=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-Ue)||1e-6<Math.abs(se-qe))&&this.path.push(["L",Ue,+qe]),0>b&&(b=b%he+he),b>ge?(this.path.push(["A",x,x,0,1,rt,a-ye,y-Ie]),this.path.push(["A",x,x,0,1,rt,Ue,qe])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),rt,a+x*Math.cos(E),y+x*Math.sin(E)])},ot.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},ot.Se=function(a){this.addPath(this.path,this.rb,a||0)},ot.bezierCurveTo=function(a,y,x,b,E,te){this.path.push(["C",a,y,x,b,E,te])},ot.clearRect=function(){},ot.clip=function(){this.Yl.clipPath=!0},ot.closePath=function(){this.path.push(["z"])},ot.createLinearGradient=function(a,y,x,b){var E=new bf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},ot.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"+yo++,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(_d,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},ot.createRadialGradient=function(a,y,x,b,E,te){var ne=new bf("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,he){b=se/b,E=he/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)}ot.drawImage=function(a,y,x,b,E,te,ne,se,he){var ge="";a instanceof HTMLCanvasElement&&(ge=a.toDataURL()),a instanceof HTMLImageElement&&(ge=a.getAttribute("src"));var ye=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(te=y,ne=x,se=b=ye,he=E=a),b=b||0,E=E||0,se=se||0,he=he||0,Yy(this,y,x,b,E,te||0,ne||0,se,he),te={x:0,y:0,width:ye||b,height:a||E,href:ge},Qt.$(b,se)&&Qt.$(E,he)?ge.toLowerCase().indexOf(".svg")===-1&&ge.toLowerCase().indexOf("data:image/svg")===-1&&(te.preserveAspectRatio="xMidYMid slice"):te.preserveAspectRatio="none",(y!==0||x!==0||b!==ye||E!==a)&&(b+=y,E+=x,te["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),ap(this,_d,te,this.rb),this.addElement(_d,te)},ot.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},ot.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},ot.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},ap(this,"fill",a,this.rb),this.addElement("rect",a)},ot.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},ap(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},ot.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},ap(this,"fill",y,this.rb),this.addElement("text",y,a[0])},ot.lineTo=function(a,y){this.path.push(["L",a,y])},ot.moveTo=function(a,y){this.path.push(["M",a,y])},ot.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},ot.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"])},ot.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},ot.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())},ot.setTransform=function(a,y,x,b,E,te){a===1&&y===0&&x===0&&b===1&&E===0&&te===0||ug(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]+")"}ot.scale=function(a,y){this.rb.scale(a,y)},ot.translate=function(a,y){this.rb.translate(a,y)},ot.transform=function(){},ot.yc=function(){},ot.stroke=function(){qy(this,this.Yl)},ot.jk=function(){this.clipInsteadOfFill||this.stroke()},ot.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},ot.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 ap(a,y,x,b){y==="fill"?iv(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 iv(a,y){a.fillStyle instanceof bf?y.fill=ov(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 bf?y.setAttributeNS(null,"fill",ov(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 bf)y.stroke=ov(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 ov(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"+yo++,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],he=se.color;se={offset:se.offset,"stop-color":he},/^rgba\(/.test(he)&&(he=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(he),se["stop-color"]="rgb("+he[1]+","+he[2]+","+he[3]+")",se["stop-opacity"]=he[4]),te.push(se)}for(te.sort(function(ge,ye){return ge.offset>ye.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",te[E]));return a.svg.appendChild(x),"url(#"+b+")"}ot.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var te=an(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,ap(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 he in a)he!=="transform"&&se[x].setAttributeNS(null,he,a[he])}else this.addElement("path",a)};function ug(a,y,x,b,E,te,ne){var se=new Gd;se.ha=[y,x,b,E,te,ne],y={},ap(a,"g",y,se),se=a.addElement("g",y),a.nh.push(se)}function pm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}ot.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Lc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function qc(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}ot.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},ot.fs=function(){this.Ct=!1},ot.Vc=function(){},ot.Wx=function(){},Ml.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Ml.prototype.getImageData=function(){return null},Ml.prototype.measureText=function(){return null};function gm(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()))}Ml.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Ml.className="SVGContext",cn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new uc(this,It.document));var y=new uc(this,It.document,!0);a===void 0&&(a=new Sr);var x=this;return gf(this,function(b,E){return b=um(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},cn.prototype.makeSvg=cn.prototype.Cs,cn.prototype.av=function(a){return this.Cs(a)},cn.prototype.makeSVG=cn.prototype.av;function vu(a,y,x,b){this.ownerDocument=y=y===void 0?It.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Wd(y,x,b),y.H=a}vu.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},vu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},vu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vu.prototype.focus=function(){this.Oa.focus()},vu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Et.Object.defineProperties(vu.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}}}),vu.className="CanvasSurface";function Wd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Ht("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 pi,this.isTemporary=!!x}ot=Wd.prototype,ot.Wx=function(a){this.Z.imageSmoothingEnabled=a},ot.arc=function(a,y,x,b,E,te){this.Z.arc(a,y,x,b,E,te)},ot.beginPath=function(){this.Z.beginPath()},ot.Se=function(){},ot.bezierCurveTo=function(a,y,x,b,E,te){this.Z.bezierCurveTo(a,y,x,b,E,te)},ot.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},ot.clip=function(){this.Z.clip()},ot.closePath=function(){this.Z.closePath()},ot.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},ot.createPattern=function(a,y){return this.Z.createPattern(a,y)},ot.createRadialGradient=function(a,y,x,b,E,te){return this.Z.createRadialGradient(a,y,x,b,E,te)},ot.drawImage=function(a,y,x,b,E,te,ne,se,he){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,te,ne,se,he)},ot.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},ot.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},ot.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},ot.fillText=function(a,y,x){this.Z.fillText(a,y,x)},ot.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},ot.lineTo=function(a,y){this.Z.lineTo(a,y)},ot.measureText=function(a){return this.Z.measureText(a)},ot.moveTo=function(a,y){this.Z.moveTo(a,y)},ot.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},ot.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},ot.restore=function(){this.Z.restore()},ot.save=function(){this.yc(),this.Z.save()},Wd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},ot=Wd.prototype,ot.setTransform=function(a,y,x,b,E,te){this.El.setTransform(a,y,x,b,E,te)},ot.scale=function(a,y){this.El.scale(a,y)},ot.translate=function(a,y){this.El.translate(a,y)},ot.stroke=function(){this.Z.stroke()},ot.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}},ot.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},ot.ng=function(a,y){if(a instanceof ao&&a.type===su){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)},ot.jk=function(){this.Hm||this.stroke()},ot.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},ot.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},ot.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},ot.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},ot.Hs=function(){},Et.Object.defineProperties(Wd.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([]);Wd.className="CanvasSurfaceContext";function cg(){this.F=this.o=this.u=this.j=0}cg.className="ColorNumbers";function ao(a,y){cp||(hv(),cp=!0),zr(this),this._isFrozen=!1,a===void 0?(this.na=Ph,this.xk="black"):typeof a=="string"?(this.na=Ph,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===th?(this.Qd=Pl,this.Lk=nl):this.Lk=a===su?this.Qd=Bi:this.Qd=aa,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}ao.prototype.copy=function(){var a=new ao;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},ot=ao.prototype,ot.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ot.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ot.qb=function(a){a.classType===ao&&(this.type=a)},ot.toString=function(){var a="Brush(";if(this.type===Ph)a+=this.color;else if(a=this.type===th?a+"Linear ":this.type===su?a+"Radial ":this.type===hp?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+")"},ot.addColorStop=function(a,y){return this._isFrozen&&kn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Wn(a,"0 <= loc <= 1",ao,"addColorStop:loc"),this.we===null&&(this.we=new fr),this.we.add(a,y),this.na===Ph&&(this.type=th),this.xe=null,this},ot.Vz=function(a,y){if(this._isFrozen&&kn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dp:y,this.type===Ph)eh(this.color),this.color=lp(a,y);else if((this.type===th||this.type===su)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)eh(x.value),this.addColorStop(x.key,lp(a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dp:x,eh(a),lp(y,x)}ot.Wy=function(a,y){if(this._isFrozen&&kn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dp:y,this.type===Ph)eh(this.color),this.color=lp(-a,y);else if((this.type===th||this.type===su)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)eh(x.value),this.addColorStop(x.key,lp(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dp:x,eh(a),lp(-y,x)}function av(a,y,x){eh(a),a=Mo.j;var b=Mo.u,E=Mo.o,te=Mo.F;return eh(y),x===void 0&&(x=.5),"rgba("+Math.round((Mo.j-a)*x+a)+", "+Math.round((Mo.u-b)*x+b)+", "+Math.round((Mo.o-E)*x+E)+", "+Math.round((Mo.F-te)*x+te)+")"}ot.Gx=function(){if(this.type===Ph)return sp(this.color);if((this.type===th||this.type===su)&&this.colorStops!==null){var a=this.colorStops;if(this.type===su)return sp(a.first().value);if(a.get(.5)!==null)return sp(a.get(.5));if(a.count===2)return a=a.Fa(),sp(av(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,sp(av(a.get(x),a.get(b),1-te/E))}return!1};function sp(a){return a?a instanceof ao?a.Gx():(eh(a),128>(299*Mo.j+587*Mo.u+114*Mo.o)/1e3):!1}function lp(a,y){switch(y){case dp:y=100*lv(Mo.j);var x=100*lv(Mo.u),b=100*lv(Mo.o);return Us.j=.4124564*y+.3575761*x+.1804375*b,Us.u=.2126729*y+.7151522*x+.072175*b,Us.o=.0193339*y+.119192*x+.9503041*b,Us.F=Mo.F,y=cv(Us.j/up[0]),x=cv(Us.u/up[1]),b=cv(Us.o/up[2]),kc.j=116*x-16,kc.u=500*(y-x),kc.o=200*(x-b),kc.F=Us.F,kc.j=Math.min(100,Math.max(0,kc.j+100*a)),a=(kc.j+16)/116,y=a-kc.o/200,Us.j=up[0]*n1(kc.u/500+a),Us.u=up[1]*(kc.j>mm*dv?Math.pow(a,3):kc.j/mm),Us.o=up[2]*n1(y),Us.F=kc.F,a=-.969266*Us.j+1.8760108*Us.u+.041556*Us.o,y=.0556434*Us.j+-.2040259*Us.u+1.0572252*Us.o,Mo.j=255*uv((3.2404542*Us.j+-1.5371385*Us.u+-.4985314*Us.o)/100),Mo.u=255*uv(a/100),Mo.o=255*uv(y/100),Mo.F=Us.F,Mo.j=Math.round(Mo.j),255<Mo.j?Mo.j=255:0>Mo.j&&(Mo.j=0),Mo.u=Math.round(Mo.u),255<Mo.u?Mo.u=255:0>Mo.u&&(Mo.u=0),Mo.o=Math.round(Mo.o),255<Mo.o?Mo.o=255:0>Mo.o&&(Mo.o=0),"rgba("+Mo.j+", "+Mo.u+", "+Mo.o+", "+Mo.F+")";case r1:return sv(),Zl.o=Math.min(100,Math.max(0,Zl.o+100*a)),"hsla("+Zl.j+", "+Zl.u+"%, "+Zl.o+"%, "+Zl.F+")";default:Ht("Unknown color space: "+y)}}function eh(a){cp||(hv(),cp=!0);var y=fv;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,Mo.j=a[0],Mo.u=a[1],Mo.o=a[2],Mo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Mo.j=0,Mo.u=0,Mo.o=0,Mo.F=1)}}function sv(){var a=Mo.j/255,y=Mo.u/255,x=Mo.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))}Zl.j=Math.round(ne),Zl.u=Math.round(100*a),Zl.o=Math.round(100*E),Zl.F=Mo.F}function lv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function uv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function cv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function n1(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function Pf(a,y){typeof a!="string"&&(a instanceof ao||Ht("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){fv=ra?new vu(null,void 0,{willReadFrequently:!0}).context:null}Et.Object.defineProperties(ao.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&kn(this,a),this.na=a,this.start.Mc()&&(a===th?this.start=Pl:a===su&&(this.start=Bi)),this.end.Mc()&&(a===th?this.end=nl:a===su&&(this.end=Bi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&kn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&kn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&kn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&kn(this,a),0>a&&Wn(a,">= zero",ao,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&kn(this,a),0>a&&Wn(a,">= zero",ao,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&kn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&kn(this,a),this.cr=a,this.xe=null}}}),ao.prototype.isDark=ao.prototype.Gx,ao.prototype.darkenBy=ao.prototype.Wy,ao.prototype.lightenBy=ao.prototype.Vz,ao.prototype.addColorStop=ao.prototype.addColorStop;var dv=216/24389,mm=24389/27,up=[95.047,100,108.883],fv=null,Mo=new cg,Zl=new cg,Us=new cg,kc=new cg,cp=!1;ao.className="Brush";var Ph;ao.Solid=Ph=new bn(ao,"Solid",0);var th;ao.Linear=th=new bn(ao,"Linear",1);var su;ao.Radial=su=new bn(ao,"Radial",2);var hp;ao.Pattern=hp=new bn(ao,"Pattern",4);var dp;ao.Lab=dp=new bn(ao,"Lab",5);var r1;ao.HSL=r1=new bn(ao,"HSL",6),ao.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},ao.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;cp||(hv(),cp=!0);var y=fv;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)},ao.lighten=function(a){return e1(a)},ao.lightenBy=e1,ao.darken=function(a){return t1(a)},ao.darkenBy=t1,ao.mix=av,ao.isDark=sp;function Wa(){this.xa="Base"}Wa.prototype.measure=function(){},Wa.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Wa.prototype.arrange=function(){},Wa.prototype.Ly=function(a,y,x,b,E,te){a.arrange(y,x,b,E,te)},Wa.prototype.iA=function(a){a.Uj()},Wa.prototype.gc=function(){},Et.Object.defineProperties(Wa.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Un}}}),Wa.prototype.remeasureObject=Wa.prototype.iA,Wa.prototype.arrangeElement=Wa.prototype.Ly,Wa.prototype.measureElement=Wa.prototype.Yz,Wa.className="PanelLayout";function vm(){this.xa="Base"}Jt(vm,Wa),vm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;a=nh(a);for(var he=0;he<se;he++){var ge=b[he];if(ge.visible||ge===a){var ye=ge.margin,Ie=ye.right+ye.left;ye=ye.top+ye.bottom,ge.measure(y,x,te,ne);var Ue=ge.measuredBounds;Ie=Math.max(Ue.width+Ie,0),ye=Math.max(Ue.height+ye,0),Ue=ge.position.x;var qe=ge.position.y;isFinite(Ue)||(Ue=0),isFinite(qe)||(qe=0),ge instanceof fi&&ge.isGeometryPositioned&&(ge=ge.strokeWidth/2,Ue-=ge,qe-=ge),Yi(E,Ue,qe,Ie,ye)}}},vm.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,he=te.position.x,ge=te.position.y;if(he=isNaN(he)?-a:he-a,ge=isNaN(ge)?-x:ge-x,te instanceof fi&&te.isGeometryPositioned){var ye=te.strokeWidth/2;he-=ye,ge-=ye}te.visible&&te.arrange(he+se.left,ge+se.top,ne.width,ne.height)}};function ym(){this.xa="Base"}Jt(ym,Wa),ym.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=yn(),te=nh(a);for(var he=0;he<se;he++){var ge=b[he];if(ge.visible||ge===te){var ye=sl(ge,!1);if(ye!==Dn&&ye!==Er)y.push(ge);else{ge.measure(1/0,x,0,ne),ye=ge.margin,ge=ge.measuredBounds;var Ie=Math.max(ge.height+ye.top+ye.bottom,0);E.width+=Math.max(ge.width+ye.right+ye.left,0),E.height=Math.max(E.height,Ie)}}}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++)he=y[a],(he.visible||he===te)&&(ye=he.margin,se=ye.right+ye.left,ye=ye.top+ye.bottom,he.measure(1/0,x,0,ne),he=he.measuredBounds,ye=Math.max(he.height+ye,0),E.width+=Math.max(he.width+se,0),E.height=Math.max(E.height,ye));On(y)},ym.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,he=0;he<b;he++){var ge=te,ye=y[he];if(ye.visible){var Ie=ye.measuredBounds,Ue=ye.margin,qe=Ue.top+Ue.bottom,rt=te+E.bottom,ut=Ie.height,At=sl(ye,!1);(isNaN(ye.desiredSize.height)&&At===Hn||At===_r)&&(ut=Math.max(x.height-qe-rt,0)),qe=ut+qe+rt,rt=ye.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=Bi),ne&&(se-=Ie.width+Ue.left+Ue.right),ye.arrange(se+rt.offsetX+Ue.left,ge+rt.offsetY+Ue.top+(x.height*rt.y-qe*rt.y),Ie.width,ut),ne||(se+=Ie.width+Ue.left+Ue.right)}}};function Sm(){this.xa="Base"}Jt(Sm,Wa),Sm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=yn();for(var se=nh(a),he=0;he<ne;he++){var ge=b[he];if(ge.visible||ge===se){var ye=sl(ge,!1);if(ye!==Dn&&ye!==_r)x.push(ge);else{var Ie=ge.margin;ye=Ie.right+Ie.left,Ie=Ie.top+Ie.bottom,ge.measure(y,1/0,te,0),ge=ge.measuredBounds,Fa(E,Math.max(E.width,Math.max(ge.width+ye,0)),E.height+Math.max(ge.height+Ie,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++)he=x[a],(he.visible||he===se)&&(ge=he.margin,ne=ge.right+ge.left,ge=ge.top+ge.bottom,he.measure(y,1/0,te,0),he=he.measuredBounds,ge=Math.max(he.height+ge,0),E.width=Math.max(E.width,Math.max(he.width+ne,0)),E.height+=ge);On(x)}},Sm.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,he=0;he<b;he++){var ge=te,ye=y[he];if(ye.visible){var Ie=ye.measuredBounds,Ue=ye.margin,qe=Ue.left+Ue.right,rt=te+E.right,ut=Ie.width,At=sl(ye,!1);(isNaN(ye.desiredSize.width)&&At===Hn||At===Er)&&(ut=Math.max(x.width-qe-rt,0)),qe=ut+qe+rt,rt=ye.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=Bi),ne&&(se-=Ie.height+Ue.bottom+Ue.top),ye.arrange(ge+rt.offsetX+Ue.left+(x.width*rt.x-qe*rt.x),se+rt.offsetY+Ue.top,ut,Ie.height),ne||(se+=Ie.height+Ue.bottom+Ue.top)}}};function xm(){this.xa="Base"}Jt(xm,Wa),xm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),ge=he.margin,ye=ge.right+ge.left,Ie=ge.top+ge.bottom;he.measure(y,x,te,ne);var Ue=he.measuredBounds;te=Ue.width,ne=Ue.height;var qe=Math.max(te+ye,0),rt=Math.max(ne+Ie,0),ut=a.isClipping,At=Ln.allocAt(-ge.left,-ge.top,qe,rt),Mt=Ln.allocAt(0,0,te,ne);pv(he,Mt,!0),te=Mt.width,ne=Mt.height;for(var Bt=!0,_t=nh(a),Gt=0;Gt<se;Gt++){var Zt=b[Gt];Ue=y;var hn=x;if(Zt!==he&&(Zt.visible||Zt===_t)){ge=Zt.margin;var qn=ge.left,dr=ge.top;switch(qe=ge.right+ge.left,rt=ge.top+ge.bottom,ge=sl(Zt,!1),ge){case Hn:Ue=te,hn=ne,dr=qn=rt=qe=0;break;case Er:Ue=te,qn=qe=0;break;case _r:hn=ne,dr=rt=0}Zt.measure(Ue,hn,0,0),Ue=Zt.measuredBounds,qe=Math.max(Ue.width+qe,0),rt=Math.max(Ue.height+rt,0),ge=Zt.alignment,ge.Xb()&&(ge=a.defaultAlignment),ge.sb()||(ge=Bi);var hr=Zt.alignmentFocus;if(hr.Xb()&&(hr=Bi),hn=null,Zt instanceof Un&&Zt.$e!==""&&(hn=Zt.fb(Zt.$e),hn===Zt&&(hn=null)),qn=Mt.x-qn,dr=Mt.y-dr,hn!==null){for(Zt.arrange(0,0,Ue.width,Ue.height),Ue=hn.actualBounds,Ue=kt.allocAt(Ue.x+(hr.x*Ue.width-hr.offsetX),Ue.y+(hr.y*Ue.height-hr.offsetY)),hn=hn.panel;hn!==Zt;)hn.transform.Ga(Ue),hn=hn.panel;qn+=ge.x*te+ge.offsetX-Ue.x,dr+=ge.y*ne+ge.offsetY-Ue.y,kt.free(Ue)}else qn+=ge.x*te+ge.offsetX-(hr.x*Ue.width+hr.offsetX),dr+=ge.y*ne+ge.offsetY-(hr.y*Ue.height+hr.offsetY);Bt?(Bt=!1,E.h(qn,dr,qe,rt)):Yi(E,qn,dr,qe,rt)}}switch(Bt?E.assign(At):ut?E.Uu(Mt.x,Mt.y,Mt.width,Mt.height):Yi(E,At.x,At.y,At.width,At.height),Ln.free(At),Ln.free(Mt),ge=he.stretch,ge===si&&(ge=sl(he,!1)),ge){case Dn:return;case Hn:if(!isFinite(y)&&!isFinite(x))return;break;case Er:if(!isFinite(y))return;break;case _r:if(!isFinite(x))return}for(Ue=he.measuredBounds,te=Ue.width,ne=Ue.height,qe=Math.max(te+ye,0),rt=Math.max(ne+Ie,0),ge=he.margin,Mt=Ln.allocAt(-ge.left,-ge.top,qe,rt),pv(he,Mt,!0),te=Mt.width,ne=Mt.height,y=0;y<se;y++)x=b[y],x===he||!x.visible&&x!==_t||(ge=x.margin,qe=ge.right+ge.left,rt=ge.top+ge.bottom,Ue=x.measuredBounds,qe=Math.max(Ue.width+qe,0),rt=Math.max(Ue.height+rt,0),ye=x.alignment,ye.Xb()&&(ye=a.defaultAlignment),ye.sb()||(ye=Bi),x=x.alignmentFocus,x.Xb()&&(x=Bi),Bt?(Bt=!1,E.h(ye.x*te+ye.offsetX-(x.x*Ue.width+x.offsetX)-ge.left,ye.y*ne+ye.offsetY-(x.y*Ue.height+x.offsetY)-ge.top,qe,rt)):Yi(E,ye.x*te+ye.offsetX-(x.x*Ue.width+x.offsetX)-ge.left,ye.y*ne+ye.offsetY-(x.y*Ue.height+x.offsetY)-ge.top,qe,rt));Bt?E.assign(At):ut?E.Uu(Mt.x,Mt.y,Mt.width,Mt.height):Yi(E,At.x,At.y,At.width,At.height),Ln.free(Mt)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),te=E.measuredBounds,ne=te.width,se=te.height,he=a.padding;te=he.left,he=he.top;var ge=te-x.x,ye=he-x.y;for(E.arrange(ge,ye,ne,se),ne=Ln.allocAt(0,0,ne,se),pv(E,ne,!1),se=0;se<b;se++){var Ie=y[se];if(Ie!==E){ge=Ie.measuredBounds;var Ue=ge.width,qe=ge.height;ye=Ie.alignment,ye.Xb()&&(ye=a.defaultAlignment),ye.sb()||(ye=Bi);var rt=Ie.alignmentFocus;if(rt.Xb()&&(rt=Bi),ge=null,Ie instanceof Un&&Ie.$e!==""&&(ge=Ie.fb(Ie.$e),ge===Ie&&(ge=null)),ge!==null){var ut=ge.actualBounds;for(rt=kt.allocAt(ut.x+(rt.x*ut.width-rt.offsetX),ut.y+(rt.y*ut.height-rt.offsetY)),ge=ge.panel;ge!==Ie;)ge.transform.Ga(rt),ge=ge.panel;ge=ye.x*ne.width+ye.offsetX-rt.x,ye=ye.y*ne.height+ye.offsetY-rt.y,kt.free(rt)}else ge=ye.x*ne.width+ye.offsetX-(rt.x*Ue+rt.offsetX),ye=ye.y*ne.height+ye.offsetY-(rt.y*qe+rt.offsetY);ge+=ne.x-x.x,ye+=ne.y-x.y,Ie.visible&&Ie.arrange(te+ge,he+ye,Ue,qe)}}Ln.free(ne)};function pv(a,y,x){var b=null;if(a instanceof Un&&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 wm(){this.xa="Base"}Jt(wm,Wa),wm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),ge=he.margin,ye=y,Ie=x,Ue=ge.right+ge.left,qe=ge.top+ge.bottom;he.measure(y,x,te,ne),ge=he.measuredBounds;var rt=0,ut=null;he instanceof fi&&(ut=he,rt=ut.strokeWidth*ut.scale);var At=Math.max(ge.width+Ue,0);ge=Math.max(ge.height+qe,0);var Mt=yv(he),Bt=Mt.x*At+Mt.offsetX;Mt=Mt.y*ge+Mt.offsetY;var _t=Sv(he),Gt=_t.x*At+_t.offsetX;for(_t=_t.y*ge+_t.offsetY,isFinite(y)&&(ye=Math.max(Math.abs(Bt-Gt)-rt,0)),isFinite(x)&&(Ie=Math.max(Math.abs(Mt-_t)-rt,0)),rt=Yn.alloc(),rt.h(0,0),a=nh(a),_t=0;_t<se;_t++)Mt=b[_t],Mt===he||!Mt.visible&&Mt!==a||(ge=Mt.margin,At=ge.right+ge.left,Bt=ge.top+ge.bottom,Mt.measure(ye,Ie,0,0),ge=Mt.measuredBounds,At=Math.max(ge.width+At,0),ge=Math.max(ge.height+Bt,0),rt.h(Math.max(At,rt.width),Math.max(ge,rt.height)));if(se===1)E.width=At,E.height=ge,Yn.free(rt);else{switch(Mt=yv(he),_t=Sv(he),se=b=0,_t.x!==Mt.x&&_t.y!==Mt.y&&(b=rt.width/Math.abs(_t.x-Mt.x),se=rt.height/Math.abs(_t.y-Mt.y)),Yn.free(rt),rt=0,ut!==null&&(rt=ut.strokeWidth*ut.scale,Ev(ut)===gr&&(b=se=Math.max(b,se))),b+=Math.abs(Mt.offsetX)+Math.abs(_t.offsetX)+rt,se+=Math.abs(Mt.offsetY)+Math.abs(_t.offsetY)+rt,ut=he.stretch,ut===si&&(ut=sl(he,!1)),ut){case Dn:ne=te=0;break;case Hn:isFinite(y)&&(b=y),isFinite(x)&&(se=x);break;case Er:isFinite(y)&&(b=y),ne=0;break;case _r:te=0,isFinite(x)&&(se=x)}he.Uj(),he.measure(b,se,te,ne),E.width=he.measuredBounds.width+Ue,E.height=he.measuredBounds.height+qe}},wm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,te=Ln.alloc();te.h(0,0,1,1);var ne=b.margin,se=ne.left;ne=ne.top;var he=a.padding,ge=he.left;he=he.top,b.arrange(ge+se,he+ne,E.width,E.height);var ye=yv(b),Ie=Sv(b),Ue=ye.y*E.height+ye.offsetY,qe=Ie.x*E.width+Ie.offsetX;for(Ie=Ie.y*E.height+Ie.offsetY,te.x=ye.x*E.width+ye.offsetX,te.y=Ue,Yi(te,qe,Ie,0,0),te.x+=se+ge,te.y+=ne+he,E=0;E<x;E++)se=y[E],se!==b&&(ge=se.measuredBounds,ne=se.margin,he=Math.max(ge.width+ne.right+ne.left,0),ye=Math.max(ge.height+ne.top+ne.bottom,0),Ue=se.alignment,Ue.Xb()&&(Ue=a.defaultAlignment),Ue.sb()||(Ue=Bi),he=te.width*Ue.x+Ue.offsetX-he*Ue.x+ne.left+te.x,ne=te.height*Ue.y+Ue.offsetY-ye*Ue.y+ne.top+te.y,se.visible&&(No(te.x,te.y,te.width,te.height,he,ne,ge.width,ge.height)?se.arrange(he,ne,ge.width,ge.height):se.arrange(he,ne,ge.width,ge.height,new Ln(te.x,te.y,te.width,te.height))));Ln.free(te)};function bm(){this.xa="Base",this.name="Table"}Jt(bm,Wa),bm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=yn(),se=yn(),he=0;he<te;he++){var ge=b[he],ye=ge instanceof Un?ge:null;if(ye!==null&&Ch(ye)&&ge.visible){se.push(ye);for(var Ie=ye.O.s,Ue=Ie.length,qe=0;qe<Ue;qe++){var rt=Ie[qe];ye.type===Un.TableRow?rt.row=ge.row:ye.type===Un.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 ut=[],At=0;At<te;At++){var Mt=ne[At];Mt.visible&&(Aa(Mt,!0),Mc(Mt,!0),ut[Mt.row]||(ut[Mt.row]=[]),ut[Mt.row][Mt.column]||(ut[Mt.row][Mt.column]=[]),ut[Mt.row][Mt.column].push(Mt))}On(ne);var Bt=yn(),_t=yn(),Gt=yn(),Zt={count:0},hn={count:0},qn=y,dr=x,hr=a.rowDefs,$n=a.colDefs,jn=null;te=hr.length;for(var qr=0;qr<te;qr++)jn=hr[qr],jn!==void 0&&(jn.actual=0);te=$n.length;for(var Ur=0;Ur<te;Ur++)jn=$n[Ur],jn!==void 0&&(jn.actual=0);for(var Zi=ut.length,bo=0,Ja=0;Ja<Zi;Ja++)ut[Ja]&&(bo=Math.max(bo,ut[Ja].length));var ts=Math.min(a.topIndex,Zi-1),Fs=Math.min(a.leftIndex,bo-1),Qa=0;Zi=ut.length;for(var Ih=nh(a),wa=0;wa<Zi;wa++)if(ut[wa]){bo=ut[wa].length;var Qu=a.Fb(wa);Qu.actual=0;for(var Bs=Qu.oc=0;Bs<bo;Bs++)if(ut[wa][Bs]){var Dh=a.Eb(Bs);Bt[Bs]===void 0&&(Dh.actual=0,Dh.oc=0,Bt[Bs]=!0);for(var Jl=ut[wa][Bs],wu=Jl.length,Nl=0;Nl<wu;Nl++){var Sl=Jl[Nl];if(Sl.visible||Sl===Ih){var fd=1<Sl.rowSpan||1<Sl.columnSpan;fd&&(wa<ts||Bs<Fs||_t.push(Sl));var qu=Sl.margin,Dp=qu.right+qu.left,Ol=qu.top+qu.bottom,Rs=Vu(Sl,Qu,Dh,!1),Jg=Sl.desiredSize,Df=!isNaN(Jg.height),dc=!isNaN(Jg.width)&&Df;if(fd||Rs===Dn||dc||wa<ts||Bs<Fs||(Zt[Bs]!==void 0||Rs!==Hn&&Rs!==Er||(Zt[Bs]=-1,Zt.count++),hn[wa]!==void 0||Rs!==Hn&&Rs!==_r||(hn[wa]=-1,hn.count++),Gt.push(Sl)),Sl.measure(1/0,1/0,0,0),!(wa<ts||Bs<Fs)){var xl=Sl.measuredBounds,Qd=Math.max(xl.width+Dp,0),Al=Math.max(xl.height+Ol,0);if(Sl.rowSpan===1&&(Rs===Dn||Rs===Er)){jn=a.Fb(wa);var pd=jn.Wc();Qa=Math.max(Al-jn.actual,0),Qa+pd>dr&&(Qa=Math.max(dr-pd,0));var $0=jn.oa===0;jn.oc=jn.oc+Qa,jn.actual=jn.oa+Qa,dr=Math.max(dr-(Qa+($0?pd:0)),0)}if(Sl.columnSpan===1&&(Rs===Dn||Rs===_r)){jn=a.Eb(Bs);var Qg=jn.Wc();Qa=Math.max(Qd-jn.actual,0),Qa+Qg>qn&&(Qa=Math.max(qn-Qg,0));var Hy=jn.oa===0;jn.oc=jn.oc+Qa,jn.actual=jn.oa+Qa,qn=Math.max(qn-(Qa+(Hy?Qg:0)),0)}fd&&Sl.Uj()}}}}}On(Bt);var Rc=0,oh=0;te=a.columnCount;for(var Ff=0;Ff<te;Ff++){var gd=$n[Ff];gd!==void 0&&(Rc+=isNaN(gd.Hc)?gd.oc:gd.Hc,gd.oc!==0&&(Rc+=gd.Wc()))}te=a.rowCount;for(var Fp=0;Fp<te;Fp++){var md=hr[Fp];md!==void 0&&(oh+=isNaN(md.Hc)?md.oc:md.Hc,md.oc!==0&&(oh+=md.Wc()))}qn=Math.max(y-Rc,0);var _c=dr=Math.max(x-oh,0),Fh=qn;te=Gt.length;for(var wl=0;wl<te;wl++){var fc=Gt[wl],K0=a.Fb(fc.row),ah=a.Eb(fc.column),Bp=fc.measuredBounds,ec=fc.margin,qd=ec.right+ec.left,pc=ec.top+ec.bottom;Zt[fc.column]=ah.oc===0&&Zt[fc.column]!==void 0?Math.max(Bp.width+qd,Zt[fc.column]):null,hn[fc.row]=K0.oc===0&&hn[fc.row]!==void 0?Math.max(Bp.height+pc,hn[fc.row]):null}var Bf=0,Rp=0,Du;for(Du in hn)Du!=="count"&&(Bf+=hn[Du]);for(Du in Zt)Du!=="count"&&(Rp+=Zt[Du]);for(var ds=Yn.alloc(),qg=0;qg<te;qg++){var Js=Gt[qg];if(Js.visible||Js===Ih){var ba=a.Fb(Js.row),Qs=a.Eb(Js.column),sh=0;isFinite(Qs.width)?sh=Qs.width:(isFinite(qn)&&Zt[Js.column]!==null?Rp===0?sh=Qs.actual+qn:sh=Zt[Js.column]/Rp*Fh:Zt[Js.column]!==null?sh=qn:sh=Qs.actual||qn,sh=Math.max(0,sh-Qs.Wc()));var Bh=0;switch(isFinite(ba.height)?Bh=ba.height:(isFinite(dr)&&hn[Js.row]!==null?Bf===0?Bh=ba.actual+dr:Bh=hn[Js.row]/Bf*_c:hn[Js.row]!==null?Bh=dr:Bh=ba.actual||dr,Bh=Math.max(0,Bh-ba.Wc())),ds.h(Math.max(Qs.minimum,Math.min(sh,Qs.maximum)),Math.max(ba.minimum,Math.min(Bh,ba.maximum))),Rs=Vu(Js,ba,Qs,!1),Rs){case Er:ds.height=Math.max(ds.height,ba.actual+dr);break;case _r:ds.width=Math.max(ds.width,Qs.actual+qn)}var ef=Js.margin,Gy=ef.right+ef.left,V0=ef.top+ef.bottom;Js.Uj(),Js.measure(ds.width,ds.height,Qs.minimum,ba.minimum);var _p=Js.measuredBounds,tf=Math.max(_p.width+Gy,0),Rf=Math.max(_p.height+V0,0);isFinite(qn)&&(tf=Math.min(tf,ds.width)),isFinite(dr)&&(Rf=Math.min(Rf,ds.height));var bl=0;bl=ba.actual,ba.actual=Math.max(ba.actual,Rf),ba.oc=Math.max(ba.oc,Rf),Qa=ba.actual-bl,dr=Math.max(dr-Qa,0),hn[Js.row]===null&&(_c=Math.max(_c-Qa,0)),bl=Qs.actual,Qs.actual=Math.max(Qs.actual,tf),Qs.oc=Math.max(Qs.oc,tf),Qa=Qs.actual-bl,qn=Math.max(qn-Qa,0),Zt[Js.column]===null&&(Fh=Math.max(Fh-Qa,0))}}On(Gt);var lh=Yn.alloc(),tc=yn(),du=yn();if(te=_t.length,te!==0){for(var vd=0;vd<Zi;vd++)if(ut[vd]){bo=ut[vd].length;var zp=a.Fb(vd);tc[vd]=zp.actual;for(var yd=0;yd<bo;yd++)if(ut[vd][yd]){var Z0=a.Eb(yd);du[yd]=Z0.actual}}}for(var Hp=0;Hp<te;Hp++){var sa=_t[Hp];if(sa.visible||sa===Ih){var Fu=a.Fb(sa.row),bu=a.Eb(sa.column);switch(ds.h(Math.max(bu.minimum,Math.min(y,bu.maximum)),Math.max(Fu.minimum,Math.min(x,Fu.maximum))),Rs=Vu(sa,Fu,bu,!1),Rs){case Hn:du[bu.index]!==0&&(ds.width=Math.min(ds.width,du[bu.index])),tc[Fu.index]!==0&&(ds.height=Math.min(ds.height,tc[Fu.index]));break;case Er:du[bu.index]!==0&&(ds.width=Math.min(ds.width,du[bu.index]));break;case _r:tc[Fu.index]!==0&&(ds.height=Math.min(ds.height,tc[Fu.index]))}isFinite(bu.width)&&(ds.width=bu.width),isFinite(Fu.height)&&(ds.height=Fu.height),lh.h(0,0);for(var X0=bu.minimum,jl=Fu.minimum,Rh=1;Rh<sa.rowSpan&&!(sa.row+Rh>=a.rowCount);Rh++)jn=a.Fb(sa.row+Rh),Qa=0,Qa=Rs===Hn||Rs===_r?Math.max(jn.minimum,tc[sa.row+Rh]===0?jn.maximum:Math.min(tc[sa.row+Rh],jn.maximum)):Math.max(jn.minimum,isNaN(jn.Hc)?jn.maximum:Math.min(jn.Hc,jn.maximum)),lh.height+=Qa,jl+=jn.minimum;for(var Pu=1;Pu<sa.columnSpan&&!(sa.column+Pu>=a.columnCount);Pu++)jn=a.Eb(sa.column+Pu),Qa=0,Qa=Rs===Hn||Rs===Er?Math.max(jn.minimum,du[sa.column+Pu]===0?jn.maximum:Math.min(du[sa.column+Pu],jn.maximum)):Math.max(jn.minimum,isNaN(jn.Hc)?jn.maximum:Math.min(jn.Hc,jn.maximum)),lh.width+=Qa,X0+=jn.minimum;ds.width+=lh.width,ds.height+=lh.height;var Gp=sa.margin,Sd=Gp.right+Gp.left,em=Gp.top+Gp.bottom;sa.measure(ds.width,ds.height,X0,jl);for(var Wp=sa.measuredBounds,gc=Math.max(Wp.width+Sd,0),nf=Math.max(Wp.height+em,0),xd=0,Up=0;Up<sa.rowSpan&&!(sa.row+Up>=a.rowCount);Up++)jn=a.Fb(sa.row+Up),xd+=jn.total||0;if(xd<nf){var _h=nf-xd,zc=nf-xd;if(sa.spanAllocation!==null)for(var zh=sa.spanAllocation,uh=0;uh<sa.rowSpan&&!(0>=_h)&&!(sa.row+uh>=a.rowCount);uh++){jn=a.Fb(sa.row+uh);var Hh=jn.oa||0,rf=zh(sa,jn,zc);jn.actual=Math.min(jn.maximum,Hh+rf),jn.oa!==Hh&&(_h-=jn.oa-Hh)}for(;0<_h;){var nc=jn.oa||0;if(isNaN(jn.height)&&jn.maximum>nc&&(jn.actual=Math.min(jn.maximum,nc+_h),jn.oa!==nc&&(_h-=jn.oa-nc)),jn.index===0)break;jn=a.Fb(jn.index-1)}}for(var _f=0,Gh=0;Gh<sa.columnSpan&&!(sa.column+Gh>=a.columnCount);Gh++)jn=a.Eb(sa.column+Gh),_f+=jn.total||0;if(_f<gc){var zf=gc-_f,Wy=gc-_f;if(sa.spanAllocation!==null)for(var ch=sa.spanAllocation,of=0;of<sa.columnSpan&&!(0>=zf)&&!(sa.column+of>=a.columnCount);of++){jn=a.Eb(sa.column+of);var tm=jn.oa||0,Uy=ch(sa,jn,Wy);jn.actual=Math.min(jn.maximum,tm+Uy),jn.oa!==tm&&(zf-=jn.oa-tm)}for(;0<zf;){var Y0=jn.oa||0;if(isNaN(jn.width)&&jn.maximum>Y0&&(jn.actual=Math.min(jn.maximum,Y0+zf),jn.oa!==Y0&&(zf-=jn.oa-Y0)),jn.index===0)break;jn=a.Eb(jn.index-1)}}}}On(_t),Yn.free(lh),Yn.free(ds),tc!==void 0&&On(tc),du!==void 0&&On(du);var Hf=0,Gf=0,J0=a.desiredSize,gx=a.maxSize;Rs=sl(a,!0);var nm=oh=Rc=0,rm=0;te=a.columnCount;for(var Q0=0;Q0<te;Q0++)$n[Q0]!==void 0&&(jn=a.Eb(Q0),isFinite(jn.width)?(nm+=jn.width,nm+=jn.Wc()):Am(jn)===pg?(nm+=jn.oa,nm+=jn.Wc()):jn.oa!==0&&(Rc+=jn.oa,Rc+=jn.Wc()));isFinite(J0.width)?Hf=Math.min(J0.width,gx.width):Hf=Rs!==Dn&&isFinite(y)?y:Rc,Hf=Math.max(Hf,a.minSize.width),Hf=Math.max(Hf-nm,0);for(var Qx=Rc===0?1:Math.max(Hf/Rc,1),q0=0;q0<te;q0++)$n[q0]!==void 0&&(jn=a.Eb(q0),isFinite(jn.width)||Am(jn)===pg||(jn.actual=jn.oa*Qx),jn.position=E.width,jn.oa!==0&&(E.width+=jn.oa,E.width+=jn.Wc()));te=a.rowCount;for(var ev=0;ev<te;ev++)hr[ev]!==void 0&&(jn=a.Fb(ev),isFinite(jn.height)?(rm+=jn.height,rm+=jn.Wc()):Am(jn)===pg?(rm+=jn.oa,rm+=jn.Wc()):jn.oa!==0&&(oh+=jn.oa,oh+=jn.Wc()));isFinite(J0.height)?Gf=Math.min(J0.height,gx.height):Gf=Rs!==Dn&&isFinite(x)?x:oh,Gf=Math.max(Gf,a.minSize.height),Gf=Math.max(Gf-rm,0);for(var qx=oh===0?1:Math.max(Gf/oh,1),tv=0;tv<te;tv++)hr[tv]!==void 0&&(jn=a.Fb(tv),isFinite(jn.height)||Am(jn)===pg||(jn.actual=jn.oa*qx),jn.position=E.height,jn.oa!==0&&(E.height+=jn.oa,E.height+=jn.Wc()));te=se.length;for(var $y=0;$y<te;$y++){var im=se[$y],Ky=0,Vy=0;im.type===Un.TableRow?(Ky=E.width,jn=a.Fb(im.row),Vy=jn.actual):(jn=a.Eb(im.column),Ky=jn.actual,Vy=E.height),im.measuredBounds.h(0,0,Ky,Vy),Aa(im,!1)}On(se),a.inRowsCols=ut},bm.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,he,ge=ne.length,ye=0,Ie=0;Ie<ge;Ie++)ne[Ie]&&(ye=Math.max(ye,ne[Ie].length));he=a.rowDefs,se=a.colDefs;var Ue=Ie=0,qe=Math.min(a.topIndex,ge-1);if(0<he.length){for(;qe!==ge&&(he[qe]===void 0||he[qe].oa===0);)qe++;qe=Math.max(Math.min(qe,ge-1),0),Ie=-he[qe].position}var rt=Math.min(a.leftIndex,ye-1);if(0<se.length){for(;rt!==ye&&(se[rt]===void 0||se[rt].oa===0);)rt++;rt=Math.max(Math.min(rt,ye-1),0),Ue=-se[rt].position}for(var ut=0,At=0;ut!==ge&&he[ut]===void 0;)ut++;for(;At!==ge&&se[At]===void 0;)At++;ye=a.part,a.Fb(ut),a.Eb(At);for(var Mt=0;Mt<y.length;Mt++){var Bt=y[Mt];if(Bt instanceof Un&&Bt.visible&&Ch(Bt)){if(Bt.type===Un.TableRow){se=a.Fb(Bt.row);var _t=a.Eb(At)}else se=a.Fb(ut),_t=a.Eb(Bt.column);he=se.position+Ie+E,se.oa!==0&&(he+=se.Io(Math.max(ut,qe))),se=_t.position+Ue+te,_t.oa!==0&&(se+=_t.Io(Math.max(At,rt))),_t=Bt.measuredBounds,Bt.Uk(),Bt.actualBounds.ka();var Gt=Bt.actualBounds,Zt=Ln.allocAt(Gt.x,Gt.y,Gt.width,Gt.height);Gt.x=Bt.type===Un.TableRow?te:se,Gt.y=Bt.type===Un.TableColumn?E:he,Gt.width=_t.width,Gt.height=_t.height,Bt.actualBounds.freeze(),Mc(Bt,!1),xo(Zt,Gt)||ye===null||(ye.oh(),Bt.Pn(ye)),Ln.free(Zt)}}for(Mt=Yn.alloc(),Bt=0;Bt<ge;Bt++)if(ne[Bt]){for(ye=ne[Bt].length,_t=a.Fb(Bt),he=_t.position+Ie+E,_t.oa!==0&&(he+=_t.Io(Math.max(ut,qe))),Gt=0;Gt<ye;Gt++)if(ne[Bt][Gt]){Zt=a.Eb(Gt),se=Zt.position+Ue+te,Zt.oa!==0&&(se+=Zt.Io(Math.max(At,rt)));for(var hn=ne[Bt][Gt],qn=hn.length,dr=0;dr<qn;dr++){var hr=hn[dr],$n=hr.measuredBounds;Mt.h(0,0);for(var jn=1;jn<hr.rowSpan&&!(Bt+jn>=a.rowCount);jn++){var qr=a.Fb(Bt+jn);qr.oa!==0&&(Mt.height+=qr.total)}for(jn=1;jn<hr.columnSpan&&!(Gt+jn>=a.columnCount);jn++)qr=a.Eb(Gt+jn),qr.oa!==0&&(Mt.width+=qr.total);var Ur=Zt.oa+Mt.width,Zi=_t.oa+Mt.height;jn=se,qr=he;var bo=Ur,Ja=Zi,ts=se,Fs=he,Qa=Ur,Ih=Zi;se+Ur>x.width&&(Qa=Math.max(x.width-se,0)),he+Zi>x.height&&(Ih=Math.max(x.height-he,0));var wa=hr.alignment;if(wa.Xb()){wa=a.defaultAlignment,wa.sb()||(wa=Bi);var Qu=wa.x,Bs=wa.y,Dh=wa.offsetX;wa=wa.offsetY;var Jl=Zt.alignment,wu=_t.alignment;Jl.sb()&&(Qu=Jl.x,Dh=Jl.offsetX),wu.sb()&&(Bs=wu.y,wa=wu.offsetY)}else Qu=wa.x,Bs=wa.y,Dh=wa.offsetX,wa=wa.offsetY;(isNaN(Qu)||isNaN(Bs))&&(Bs=Qu=.5,wa=Dh=0),Jl=$n.width,wu=$n.height;var Nl=hr.margin,Sl=Nl.left+Nl.right,fd=Nl.top+Nl.bottom,qu=Vu(hr,_t,Zt,!1);!isNaN(hr.desiredSize.width)||qu!==Hn&&qu!==Er||(Jl=Math.max(Ur-Sl,0)),!isNaN(hr.desiredSize.height)||qu!==Hn&&qu!==_r||(wu=Math.max(Zi-fd,0)),Ur=hr.maxSize,Zi=hr.minSize,Jl=Math.min(Ur.width,Jl),wu=Math.min(Ur.height,wu),Jl=Math.max(Zi.width,Jl),wu=Math.max(Zi.height,wu),Ur=wu+fd,jn+=bo*Qu-(Jl+Sl)*Qu+Dh+Nl.left,qr+=Ja*Bs-Ur*Bs+wa+Nl.top,hr.visible&&(No(ts,Fs,Qa,Ih,jn,qr,$n.width,$n.height)?hr.arrange(jn,qr,Jl,wu):hr.arrange(jn,qr,Jl,wu,new Ln(ts,Fs,Qa,Ih)))}}}for(Yn.free(Mt),a=0;a<b;a++)x=y[a],te=x instanceof Un?x:null,te!==null&&Ch(te)&&(te=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,te.width,te.height),x.naturalBounds.freeze())}};function Pm(){this.xa="Base"}Jt(Pm,Wa),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}Jt(Cm,Wa),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Em(){this.xa="Base"}Jt(Em,Wa),Em.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&Ht("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,he=b.margin,ge=he.right+he.left;if(he=he.top+he.bottom,isFinite(y)||isFinite(x)){var ye=b.scale,Ie=se.width;se=se.height;var Ue=Math.max(y-ge,0),qe=Math.max(x-he,0),rt=1;a.viewboxStretch===gr?Ie!==0&&se!==0&&(rt=Math.min(Ue/Ie,qe/se)):Ie!==0&&se!==0&&(rt=Math.max(Ue/Ie,qe/se)),rt===0&&(rt=1e-4),b.Ca*=rt,ye!==b.scale&&(Aa(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+he,0)},Em.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=Bi),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 hg(){this.xa="Base"}Jt(hg,Wa),hg.prototype.measure=function(){},hg.prototype.arrange=function(){},hg.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,he=te.height,ge=Math.ceil(se/E),ye=Math.ceil(he/b),Ie=a.gridOrigin,Ue=Ie.x;Ie=Ie.y,y.save(),y.beginPath(),y.rect(0,0,se,he),y.clip(),y.Se();for(var qe=[],rt=a.O.s,ut=rt.length,At=0;At<ut;At++){var Mt=rt[At],Bt=[];if(qe.push(Bt),Mt.visible){var _t=Mt.interval;if(!(0>_t)){Mt=mv(Mt.figure);for(var Gt=0;Gt<ut;Gt++)if(Gt!==At){var Zt=rt[Gt];Zt.visible&&mv(Zt.figure)===Mt&&(Zt=Zt.interval,Zt>_t&&Bt.push(Zt))}}}}for(rt=a.O.s,ut=rt.length,At=0;At<ut;At++){var hn=rt[At];if(hn.visible&&(Bt=hn.interval||1,Mt=Math.abs(Bt),!(2>E*Mt*x))){if(_t=hn.segmentIndex,(!isFinite(_t)||isNaN(_t))&&(_t=0),0>_t&&(_t=Mt-Math.min(-_t,Mt)),_t=Math.round(_t%Mt),Mt=hn.opacity,Gt=1,Mt!==1){if(Mt===0)continue;Gt=y.globalAlpha,y.globalAlpha=Gt*Mt}Zt=qe[At];var qn=!1,dr=hn.strokeDashArray;if(dr!==null&&(qn=!0,y.js(dr,hn.strokeDashOffset)),hn.figure==="LineV"&&hn.stroke!==null&&0<hn.strokeWidth){for(y.lineWidth=hn.strokeWidth,oa(a,y,hn.stroke,!1,!1,te,ne),y.beginPath(),dr=hn=Math.floor((Ue-E)/E);dr<=hn+ge;dr++){var hr=dr*E+Ue;0<=hr&&hr<=se&&Tm(dr,Bt,_t,Zt)&&(y.moveTo(hr,0),y.lineTo(hr,he))}y.stroke(),y.Se()}else if(hn.figure==="LineH"&&hn.stroke!==null&&0<hn.strokeWidth){for(y.lineWidth=hn.strokeWidth,oa(a,y,hn.stroke,!1,!1,te,ne),y.beginPath(),dr=hn=Math.floor((Ie-b)/b);dr<=hn+ye;dr++)hr=dr*b+Ie,0<=hr&&hr<=he&&Tm(dr,Bt,_t,Zt)&&(y.moveTo(0,hr),y.lineTo(se,hr));y.stroke(),y.Se()}else if(hn.figure==="BarV"&&hn.fill!==null)for(oa(a,y,hn.fill,!0,!1,te,ne),hn=hn.width,isNaN(hn)&&(hn=E),hr=dr=Math.floor((Ue-E)/E);hr<=dr+ge;hr++){var $n=hr*E+Ue;0<=$n+hn&&$n<=se&&Tm(hr,Bt,_t,Zt)&&y.fillRect($n,0,hn,he)}else if(hn.figure==="BarH"&&hn.fill!==null)for(oa(a,y,hn.fill,!0,!1,te,ne),hn=hn.height,isNaN(hn)&&(hn=b),hr=dr=Math.floor((Ie-b)/b);hr<=dr+ye;hr++)$n=hr*b+Ie,0<=$n+hn&&$n<=he&&Tm(hr,Bt,_t,Zt)&&y.fillRect(0,$n,se,hn);qn&&y.fs(),Mt!==1&&(y.globalAlpha=Gt)}}y.restore(),y.Vc(!1)};function Tm(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 Mm(){this.xa="Base"}Jt(Mm,Wa),Mm.prototype.measure=function(a,y,x,b,E){var te=b.length;if(a instanceof Ui||a instanceof Kn){var ne=null,se=null;if(a instanceof Kn&&(ne=a),a instanceof Ui&&(se=a,ne=se.adornedPart,a.j===null&&(a.j=[])),ne instanceof Kn){var he=ne;if(te===0)Fa(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ge=a instanceof Ui?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ye=he.points,Ie=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var Ue=y.height,qe=a.j;if(qe.length=0,ge!==null){i1(a,se,Ue,ge);var rt=ge.measuredBounds;x.ed(rt),qe.push(rt)}rt=pi.alloc();for(var ut=kt.alloc(),At=kt.alloc(),Mt=0;Mt<te;Mt++){var Bt=b[Mt];if(Bt!==ge)if(Bt.isPanelMain&&Bt instanceof fi){i1(a,se,Ue,Bt);var _t=Bt.measuredBounds;x.ed(_t),qe.push(_t)}else if(2>Ie)Bt.measure(1/0,1/0,0,0),_t=Bt.measuredBounds,x.ed(_t),qe.push(_t);else{var Gt=Bt.segmentIndex,Zt=Bt.segmentFraction,hn=Bt.alignmentFocus;hn.Mc()&&(hn=Bi);var qn=Bt.segmentOrientation,dr=Bt.segmentOffset;if(isNaN(Gt)){var hr=he.ua;_t=yn(),hr.Qu(Zt,_t);var $n=kt.allocAt(_t[0],_t[1]);if($n.add(he.i(0)),hr.type===Zn.j?$n.offset(-hr.startX,-hr.startY):(hr=hr.figures.first(),hr!==null&&$n.offset(-hr.startX,-hr.startY)),hr=_t[2],qn!==Ks){var jn=he.computeAngle(Bt,qn,hr);Bt.Kb=jn}jn=$n.x-y.x;var qr=$n.y-y.y;kt.free($n),On(_t)}else if(Gt<-Ie||Gt>=Ie)_t=kt.alloc(),he.vg(),he.computeMidPoint(_t),hr=he.midAngle,qn!==Ks&&(jn=he.computeAngle(Bt,qn,hr),Bt.Kb=jn),jn=_t.x-y.x,qr=_t.y-y.y,kt.free(_t);else{if(jn=0,0<=Gt?(qr=ye.M(Gt),_t=Gt<Ie-1?ye.M(Gt+1):qr):(jn=Ie+Gt,qr=ye.M(jn),_t=0<jn?ye.M(jn-1):qr),qr.Xa(_t)){0<=Gt?(hr=0<Gt?ye.M(Gt-1):qr,jn=Gt<Ie-2?ye.M(Gt+2):_t):(hr=jn<Ie-1?ye.M(jn+1):qr,jn=1<jn?ye.M(jn-2):_t),$n=hr.Bf(qr);var Ur=_t.Bf(jn);hr=$n>Ur+10?0<=Gt?hr.ab(qr):qr.ab(hr):Ur>$n+10?0<=Gt?_t.ab(jn):jn.ab(_t):0<=Gt?hr.ab(jn):jn.ab(hr)}else hr=0<=Gt?qr.ab(_t):_t.ab(qr);qn!==Ks&&(jn=he.computeAngle(Bt,qn,hr),Bt.Kb=jn),jn=qr.x+(_t.x-qr.x)*Zt-y.x,qr=qr.y+(_t.y-qr.y)*Zt-y.y}Bt.measure(1/0,1/0,0,0),_t=Bt.measuredBounds,$n=Bt.naturalBounds;var Zi=0;Bt instanceof fi&&(Zi=Bt.strokeWidth),Ur=$n.width+Zi;var bo=$n.height+Zi;rt.reset(),rt.translate(-_t.x,-_t.y),rt.scale(Bt.scale,Bt.scale),rt.rotate(qn===Ks?Bt.angle:hr,Ur/2,bo/2),qn!==Cg&&qn!==Tg||rt.rotate(90,Ur/2,bo/2),qn!==Eg&&qn!==Mg||rt.rotate(-90,Ur/2,bo/2),qn===r0&&(45<hr&&135>hr||225<hr&&315>hr)&&rt.rotate(-hr,Ur/2,bo/2),$n=new Ln(0,0,Ur,bo),ut.xi($n,hn),rt.Ga(ut),hn=-ut.x+Zi/2*Bt.scale,Bt=-ut.y+Zi/2*Bt.scale,At.assign(dr),Zi=isNaN(dr.x);var Ja=isNaN(dr.y);if(Zi||Ja){Ur=Ur/2+3,bo=bo/2+3;var ts=45<=hr&&135>=hr,Fs=225<=hr&&315>=hr;qn===Ks&&(ts||Fs)?(At.x=Ja?Ur:dr.y,At.y=Zi?bo:dr.x,ts?0<=Gt||isNaN(Gt)&&.5>Zt||!Zi||(At.y=-bo):Fs&&((0<=Gt||isNaN(Gt)&&.5>Zt)&&Zi&&(At.y=-bo),Ja&&(At.x=-Ur))):(Zi&&(At.x=0<=Gt||isNaN(Gt)&&.5>Zt?Ur:-Ur),Ja&&(At.y=-bo),At.rotate(hr))}else At.rotate(hr);jn+=At.x,qr+=At.y,$n.set(_t),$n.h(jn+hn,qr+Bt,_t.width,_t.height),qe.push($n),x.ed($n)}}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),Fa(E,x.width||0,x.height||0),pi.free(rt),kt.free(ut),kt.free(At)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ui||a instanceof Kn){var b=a,E=null;a instanceof Ui&&(E=a,b=E.adornedPart);var te=a instanceof Ui?null:b.path,ne=a.j;if(ne.length!==0){var se=0;if(te!==null&&se<ne.length){var he=ne[se];se++,te.arrange(he.x-a.jg.x,he.y-a.jg.y,he.width,he.height)}for(he=0;he<x;he++){var ge=y[he];if(ge!==te&&se<ne.length){var ye=ne[se];se++,ge.arrange(ye.x-a.jg.x,ye.y-a.jg.y,ye.width,ye.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Kn)for(te=a.labelNodes;te.next();){var Ie=a;ne=te.value,se=ne.segmentIndex,he=ne.segmentFraction;var Ue=ne.alignmentFocus;if(ge=ne.segmentOrientation,ye=ne.segmentOffset,isNaN(se)){var qe=Ie.ua,rt=yn();qe.Qu(he,rt);var ut=kt.allocAt(rt[0],rt[1]);ut.add(Ie.i(0)),qe.type===Zn.j||(qe=qe.figures.first()),ut.offset(-qe.startX,-qe.startY),qe=rt[2],ge!==Ks&&(Ie=Ie.computeAngle(ne,ge,qe),ne.angle=Ie),Ie=ut.x;var At=ut.y;kt.free(ut),On(rt)}else if(se<-x||se>=x)rt=kt.alloc(),qe=Ie,At=rt,qe.vg(),qe.computeMidPoint(At),qe=Ie.midAngle,ge!==Ks&&(Ie=Ie.computeAngle(ne,ge,qe),ne.angle=Ie),Ie=rt.x,At=rt.y,kt.free(rt);else{if(ut=0,0<=se?(rt=y.s[se],At=se<x-1?y.s[se+1]:rt):(ut=x+se,rt=y.s[ut],At=0<ut?y.s[ut-1]:rt),rt.Xa(At)){0<=se?(qe=0<se?y.s[se-1]:rt,ut=se<x-2?y.s[se+2]:At):(qe=ut<x-1?y.s[ut+1]:rt,ut=1<ut?y.s[ut-2]:At);var Mt=qe.Bf(rt),Bt=At.Bf(ut);qe=Mt>Bt+10?0<=se?qe.ab(rt):rt.ab(qe):Bt>Mt+10?0<=se?At.ab(ut):ut.ab(At):0<=se?qe.ab(ut):ut.ab(qe)}else qe=0<=se?rt.ab(At):At.ab(rt);ge!==Ks&&(Ie=Ie.computeAngle(ne,ge,qe),ne.angle=Ie),Ie=rt.x+(At.x-rt.x)*he,At=rt.y+(At.y-rt.y)*he}if(Ue.ys())ne.location=new kt(Ie,At);else{Ue.Mc()&&(Ue=Bi),rt=pi.alloc(),rt.reset(),rt.scale(ne.scale,ne.scale),rt.rotate(ne.angle,0,0);var _t=ne.naturalBounds;ut=Ln.allocAt(0,0,_t.width,_t.height),Mt=kt.alloc(),Mt.xi(ut,Ue),rt.Ga(Mt),Ue=-Mt.x,Bt=-Mt.y;var Gt=_t.width,Zt=_t.height;_t=kt.alloc(),_t.assign(ye);var hn=isNaN(ye.x),qn=isNaN(ye.y);if(hn||qn){Gt=Gt/2+3,Zt=Zt/2+3;var dr=45<=qe&&135>=qe,hr=225<=qe&&315>=qe;ge===Ks&&(dr||hr)?(_t.x=qn?Gt:ye.y,_t.y=hn?Zt:ye.x,dr?0<=se||isNaN(se)&&.5>he||!hn||(_t.y=-Zt):hr&&((0<=se||isNaN(se)&&.5>he)&&hn&&(_t.y=-Zt),qn&&(_t.x=-Gt))):(hn&&(_t.x=0<=se||isNaN(se)&&.5>he?Gt:-Gt),qn&&(_t.y=-Zt),_t.rotate(qe))}else _t.rotate(qe);Ie+=_t.x,At+=_t.y,rt.pp(ut),Ue+=ut.x,Bt+=ut.y,se=kt.allocAt(Ie+Ue,At+Bt),ne.move(se),kt.free(se),kt.free(_t),kt.free(Mt),Ln.free(ut),pi.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),kt.free(b)}};function i1(a,y,x,b){if(Vl(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ui&&a.type===Un.Link&&a.adornedObject instanceof fi&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Kn&&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 Ui&&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),Aa(b,!1)}}function dg(){this.xa="Base"}Jt(dg,Wa),dg.prototype.measure=function(a,y,x,b,E,te,ne){var se=a.Pb();a.graduatedBounds=[];var he=se.margin,ge=he.right+he.left,ye=he.top+he.bottom;se.measure(y,x,te,ne);var Ie=se.measuredBounds,Ue=new Ln(-he.left,-he.top,Math.max(Ie.width+ge,0),Math.max(Ie.height+ye,0));a.graduatedBounds.push(Ue),E.assign(Ue);for(var qe=se.geometry,rt=se.strokeWidth,ut=qe.flattenedSegments,At=qe.flattenedLengths,Mt=qe.flattenedTotalLength,Bt=ut.length,_t=0,Gt=0,Zt=yn(),hn=0;hn<Bt;hn++){var qn=ut[hn],dr=[];Gt=_t=0;for(var hr=qn.length,$n=0;$n<hr;$n+=2){var jn=qn[$n],qr=qn[$n+1];if($n!==0){var Ur=180*Math.atan2(qr-Gt,jn-_t)/Math.PI;0>Ur&&(Ur+=360),dr.push(Ur)}_t=jn,Gt=qr}Zt.push(dr)}if(a.graduatedIntervals===null){for(var Zi=[],bo=a.O.s,Ja=bo.length,ts=0;ts<Ja;ts++){var Fs=bo[ts],Qa=[];if(Zi.push(Qa),Fs.visible){var Ih=Fs.interval;if(!(0>Ih)){for(var wa=0;wa<Ja;wa++)if(wa!==ts){var Qu=bo[wa];if(Qu.visible&&Fs.constructor===Qu.constructor){var Bs=Qu.interval;Bs>Ih&&Qa.push(Bs)}}}}}a.graduatedIntervals=Zi}var Dh=a.graduatedIntervals,Jl=a.O.s,wu=Jl.length,Nl=0,Sl=0,fd=Mt;a.graduatedMarks=[];for(var qu,Dp=0;Dp<wu;Dp++){var Ol=Jl[Dp];if(qu=[],Ol.visible&&Ol!==se){var Rs=Math.abs(Ol.interval),Jg=a.graduatedTickUnit;if(!(2>Jg*Rs*Mt/a.graduatedRange&&Ol.graduatedSkip===null)){var Df=At[0][0],dc=0,xl=0;Sl=Mt*Ol.graduatedStart-1e-4,fd=Mt*Ol.graduatedEnd+1e-4;var Qd=Jg*Rs,Al=a.graduatedTickBase;if(Al<a.graduatedMin){var pd=(a.graduatedMin-Al)/Qd;pd=pd%1===0?pd:Math.floor(pd+1),Al+=pd*Qd}else Al>a.graduatedMin+Qd&&(Al-=Math.floor((Al-a.graduatedMin)/Qd)*Qd);for(var $0=Dh[Dp],Qg=Al,Hy=1e-6*a.graduatedMax,Rc=1;Al<=a.graduatedMax+Hy;Rc++){e:{for(var oh=$0.length,Ff=0;Ff<oh;Ff++){var gd=(Al-a.graduatedTickBase)%($0[Ff]*a.graduatedTickUnit),Fp=1e-6*a.graduatedTickUnit;if(gd<Fp&&gd>-Fp){var md=!1;break e}}md=!0}if(md&&(Al>a.graduatedMax&&(Al=a.graduatedMax),Ol.graduatedSkip===null||Ol instanceof Co&&!Ol.graduatedSkip(Al,Ol)||Ol instanceof fi&&!Ol.graduatedSkip(Al,Ol))&&(Nl=(Al-a.graduatedMin)*Mt/a.graduatedRange,Nl>Mt&&(Nl=Mt),Sl<=Nl&&Nl<=fd)){for(var _c=Zt[dc][xl],Fh=At[dc][xl];dc<At.length;){for(;Nl>Df&&xl<At[dc].length-1;)xl++,_c=Zt[dc][xl],Fh=At[dc][xl],Df+=Fh;if(Nl<=Df)break;dc++,xl=0,_c=Zt[dc][xl],Fh=At[dc][xl],Df+=Fh}var wl=ut[dc],fc=wl[2*xl],K0=wl[2*xl+1],ah=(Nl-(Df-Fh))/Fh,Bp=new kt(fc+(wl[2*xl+2]-fc)*ah+rt/2-qe.bounds.x,K0+(wl[2*xl+3]-K0)*ah+rt/2-qe.bounds.y);Bp.scale(se.scale,se.scale);e:{var ec=_c,qd=Zt[dc];if(!(.5005>ah&&.4995<ah)){var pc=ec;if(.5>ah?0<xl?pc=qd[xl-1]:Qt.$(wl[0],wl[wl.length-2])&&Qt.$(wl[1],wl[wl.length-1])&&(pc=qd[qd.length-1]):.5<ah&&(xl+1<qd.length?pc=qd[xl+1]:Qt.$(wl[0],wl[wl.length-2])&&Qt.$(wl[1],wl[wl.length-1])&&(pc=qd[0])),ec!==pc){var Bf=Math.abs(ec-pc);if(180<Bf&&(ec<pc?ec+=360:pc+=360,Bf=Math.abs(ec-pc)),5e-4>ah||.9995<ah){_c=(ec+pc)/2%360;break e}if(10>Bf){var Rp=1-Math.abs(.5-ah);_c=(ec*Rp+pc*(1-Rp))%360;break e}}}_c=ec}if(Ol instanceof Co){var Du="";Ol.graduatedFunction!==null?(Du=Ol.graduatedFunction(Al,Ol),Du=Du!=null?Du.toString():""):Du=(+Al.toFixed(2)).toString(),Du!==""&&qu.push({$l:Bp,angle:_c,text:Du})}else qu.push({$l:Bp,angle:_c})}Al=Qg+Rc*Qd}}}a.graduatedMarks.push(qu)}On(Zt);var ds=a.graduatedMarks;if(ds!==null)for(var qg=b.length,Js=0;Js<qg;Js++){var ba=b[Js],Qs=ds[Js];if(ba.visible&&ba!==se&&Qs.length!==0){if(ba instanceof fi){var sh=a,Bh=E,ef=ba.alignmentFocus;ef.Mc()&&(ef=Pl);var Gy=ba.angle;ba.Kb=0,ba.measure(1/0,1/0,0,0),ba.Kb=Gy;var V0=ba.measuredBounds,_p=V0.width,tf=V0.height,Rf=Ln.allocAt(0,0,_p,tf),bl=kt.alloc();bl.xi(Rf,ef),Ln.free(Rf);for(var lh=-bl.x,tc=-bl.y,du=new Ln,vd=Qs.length,zp=0;zp<vd;zp++)for(var yd=Qs[zp],Z0=yd.$l.x,Hp=yd.$l.y,sa=yd.angle,Fu=0;4>Fu;Fu++){switch(Fu){case 0:bl.h(lh,tc);break;case 1:bl.h(lh+_p,tc);break;case 2:bl.h(lh,tc+tf);break;case 3:bl.h(lh+_p,tc+tf)}bl.rotate(sa+ba.angle),bl.offset(Z0,Hp),zp===0&&Fu===0?du.h(bl.x,bl.y,0,0):du.Ye(bl),bl.offset(-Z0,-Hp),bl.rotate(-sa-ba.angle)}kt.free(bl),sh.graduatedBounds!==null&&sh.graduatedBounds.push(du),Yi(Bh,du.x,du.y,du.width,du.height)}else if(ba instanceof Co){var bu=a,X0=E;bu.temporaryTextBlock===null&&(bu.temporaryTextBlock=new Co);var jl=bu.temporaryTextBlock;S1(jl,ba);var Rh=ba.alignmentFocus;Rh.Mc()&&(Rh=Pl);for(var Pu=ba.segmentOrientation,Gp=ba.segmentOffset,Sd=new Ln,em=0,Wp=0,gc=0,nf=0,xd=0,Up=Qs.length,_h=0;_h<Up;_h++){var zc=Qs[_h];em=zc.$l.x,Wp=zc.$l.y,gc=zc.angle,xd=nf=ba.angle,Pu!==Ks&&(xd=Pu===Pg||Pu===n0?gc+ba.angle:gc,nf=Kn.computeAngle(Pu,xd)),jl.Kb=nf,jl.text=zc.text||"",jl.measure(1/0,1/0,0,0);var zh=jl.measuredBounds,uh=jl.naturalBounds,Hh=uh.width,rf=uh.height,nc=pi.alloc();nc.reset(),nc.translate(-zh.x,-zh.y),nc.scale(jl.scale,jl.scale),nc.rotate(xd,Hh/2,rf/2),Pu!==Cg&&Pu!==Tg||nc.rotate(90,Hh/2,rf/2),Pu!==Eg&&Pu!==Mg||nc.rotate(-90,Hh/2,rf/2),Pu===r0&&(45<gc&&135>gc||225<gc&&315>gc)&&nc.rotate(-gc,Hh/2,rf/2);var _f=Ln.allocAt(0,0,Hh,rf),Gh=kt.alloc();Gh.xi(_f,Rh),nc.Ga(Gh);var zf=-Gh.x,Wy=-Gh.y,ch=kt.alloc();ch.assign(Gp),isNaN(ch.x)&&(ch.x=Hh/2+3),isNaN(ch.y)&&(ch.y=-(rf/2+3)),ch.rotate(gc),em+=ch.x+zf,Wp+=ch.y+Wy;var of=new Ln(em,Wp,zh.width,zh.height),tm=new Ln(zh.x,zh.y,zh.width,zh.height),Uy=new Ln(uh.x,uh.y,uh.width,uh.height);zc.Sz=nf,zc.lineCount=jl.lineCount,zc.lines=[jl.Cb,jl.Ih,jl.df,jl.Le,jl.Qc,jl.Qb,jl.ze],zc.actualBounds=of,zc.measuredBounds=tm,zc.naturalBounds=Uy,_h===0?Sd.assign(of):Sd.ed(of),kt.free(ch),kt.free(Gh),Ln.free(_f),pi.free(nc)}bu.graduatedBounds!==null&&bu.graduatedBounds.push(Sd),Yi(X0,Sd.x,Sd.y,Sd.width,Sd.height)}Aa(ba,!1)}}},dg.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 he=y.length,ge=0;ge<he;ge++){var ye=y[ge];se=E[ge],ye.visible&&ye!==b&&se.length!==0&&(se=te[ne],ne++,ye.arrange(se.x-x.x,se.y-x.y,se.width,se.height))}a.graduatedBounds=null}}},dg.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 Ml,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,he=a.O.s,ge=a.graduatedMarks,ye=he.length,Ie=0;Ie<ye;Ie++){var Ue=he[Ie],qe=ge[Ie],rt=qe.length;if(Ue.visible&&Ue!==te&&qe.length!==0){if(Ue instanceof fi){if(!(2>a.graduatedTickUnit*Ue.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ue.graduatedSkip===null)){var ut=Ue.measuredBounds,At=Ue.strokeWidth*Ue.scale,Mt=Ue.alignmentFocus;Mt.Mc()&&(Mt=Pl);for(var Bt=0;Bt<rt;Bt++){var _t=qe[Bt].$l,Gt=qe[Bt].angle,Zt=Mt,hn=Ue.Ab;hn.reset(),hn.translate(_t.x+se.x,_t.y+se.y),hn.rotate(Gt+Ue.angle,0,0),hn.translate(-ut.width*Zt.x+Zt.offsetX+At/2,-ut.height*Zt.y+Zt.offsetY+At/2),hn.scale(Ue.scale,Ue.scale),mu(Ue,!1),Ue.wh.set(Ue.Ab),Ue.Kk=Ue.scale,ou(Ue,!1),Ue.gc(y,x),E&&(a.svg.appendChild(Ue.svg),Ue.svg=null),Ue.Ab.reset()}}}else if(Ue instanceof Co)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Co),ut=a.temporaryTextBlock,S1(ut,Ue),At=0;At<rt;At++)Mt=qe[At],Mt.actualBounds&&Mt.measuredBounds&&Mt.naturalBounds&&(ut.ec=Mt.text||"",ut.Kb=Mt.Sz||0,ut.Gc=Mt.lineCount||0,Bt=Mt.lines,Bt!==void 0&&(ut.Cb=Bt[0],ut.Ih=Bt[1],ut.df=Bt[2],ut.Le=Bt[3],ut.Qc=Bt[4],ut.Qb=Bt[5],ut.ze=Bt[6]),Mt.naturalBounds&&(ut.dc=Mt.naturalBounds),Mt.actualBounds&&(Bt=Mt.actualBounds,ut.arrange(Bt.x,Bt.y,Bt.width,Bt.height)),Bt=Mt.actualBounds,ut.arrange(Bt.x,Bt.y,Bt.width,Bt.height),_t=Mt.measuredBounds,Mt=Mt.naturalBounds,Gt=ut.Ab,Gt.reset(),Gt.translate(Bt.x+se.x,Bt.y+se.y),Gt.translate(-_t.x,-_t.y),ut.no(Gt,Mt.x,Mt.y,Mt.width,Mt.height),mu(ut,!1),ut.wh.set(ut.Ab),ut.Kk=ut.scale,ou(ut,!1),ut.Ng=Ue.part,ut.Me=Ue.panel,ut.gc(y,x),ut.Me=null,ut.Ng=null,E&&(a.svg.appendChild(ut.svg),ut.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Un(a,y){if(Yt.call(this),this.na=null,a===void 0)this.na=Un.Position;else if(typeof a=="string"){var x=ku.I(a);x!==null&&(this.na=x)}else a instanceof Wa?this.na=a:a&&(this.na=Un.Position,y=a);this.na===null&&Ht("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Un.Grid?1048576:0),this.O=new vn,this.yb=Cs,this.Tm=to,this.Uf=si,this.$g=null,this.$e="",this.jg=new Ln(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=gr,this.jn=Xo,this.kn=Fi,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Jt(Un,Yt),Un.prototype.cloneProtected=function(a){Yt.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},Un.prototype.Af=function(a){Yt.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},Un.prototype.copy=function(){var a=Yt.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 rr&&(te.Te=!0);var se=a.diagram;se!==null&&se.undoManager.isUndoingRedoing||te.cb(la,"elements",a,null,E,null,ne)}}return a}return null},ot=Un.prototype,ot.toString=function(){return"Panel("+this.type.name+")#"+Mi(this)},ot.Pn=function(a){Yt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},ot.hh=function(a,y){if(this.na===Un.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Un.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Un.Table)if(a.yc(),a instanceof Ml){var x=a.yd;a.yd=pm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===Un.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 gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Lm(a,y,!0,x,!0),b!==null&&Lm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Lm(a,y,!0,x,!1),b!==null&&Lm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,te=a.actualBounds,ne=a.naturalBounds,se=!0,he=0;he<E;he++){var ge=b[he];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 ye=ge.separatorStrokeWidth;isNaN(ye)&&(ye=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ie=ge.separatorStroke;if(Ie===null&&(Ie=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ye!==0&&Ie!==null){oa(a,y,Ie,!1,!1,ne,te),Ie=!1;var Ue=ge.separatorDashArray;Ue===null&&(Ue=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ue!==null&&(Ie=!0,y.js(Ue,0)),y.beginPath(),Ue=ge.position+ye,x?Ue>ne.height&&(ye-=Ue-ne.height):Ue>ne.width&&(ye-=Ue-ne.width),ge=ge.position+ye/2,y.lineWidth=ye,ye=a.yb,x?(ge+=ye.top,Ue=ne.width-ye.right,y.moveTo(ye.left,ge),y.lineTo(Ue,ge)):(ge+=ye.left,Ue=ne.height-ye.bottom,y.moveTo(ge,ye.top),y.lineTo(ge,Ue)),y.stroke(),y.Se(),Ie&&y.fs()}}}}function Lm(a,y,x,b,E){for(var te=b.length,ne=a.actualBounds,se=a.naturalBounds,he=a1(a,!0),ge=a1(a,!1),ye=0;ye<te;ye++){var Ie=b[ye];if(Ie!==void 0&&Ie.background!==null&&Ie.coversSeparators!==E&&Ie.actual!==0){var Ue=x?ne.height:ne.width;if(!(Ie.position>Ue)){var qe=Ie.Wc(),rt=Ie.separatorStrokeWidth;isNaN(rt)&&(rt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ut=Ie.separatorStroke;ut===null&&(ut=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ut===null||Ie.index===(x?he:ge))&&(rt=0),qe-=rt,rt=Ie.position+rt,qe+=Ie.actual,rt+qe>Ue&&(qe=Ue-rt),0>=qe||(Ue=a.yb,oa(a,y,Ie.background,!0,!1,se,ne),x?y.fillRect(Ue.left,rt+Ue.top,ne.width-(Ue.left+Ue.right),qe):y.fillRect(rt+Ue.left,Ue.top,qe,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 mv(a){return a==="LineV"||a==="BarV"}ot.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},ot.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(this.type===Un.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===Un.Grid||this.na===Un.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},ot.nk=function(){return!0},ot.$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 Yt.prototype.$o.call(this,a,y,x,b)},ot.Sj=function(a,y,x,b,E){var te=this.se(),ne=this.transform,se=1/(ne.m11*ne.m22-ne.m12*ne.m21),he=ne.m22*se,ge=-ne.m12*se,ye=-ne.m21*se,Ie=ne.m11*se,Ue=se*(ne.m21*ne.dy-ne.m22*ne.dx),qe=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*he+y*ye+Ue,se=a*ge+y*Ie+qe,a=x*he+b*ye+Ue,he=x*ge+b*Ie+qe,E.h(0,0),x=this.naturalBounds,te=Qt.Ff(0,0,x.width,x.height,te,se,a,he,E),E.transform(ne),te;te||(he=1,ye=ge=0,Ie=1,qe=Ue=0),se=a*he+y*ye+Ue,a=a*ge+y*Ie+qe,he=x*he+b*ye+Ue,x=x*ge+b*Ie+qe,E.h(he,x),b=(he-se)*(he-se)+(x-a)*(x-a),ge=!1,Ie=this.O.s,qe=Ie.length,ye=kt.alloc(),Ue=null,y=1/0;var rt=null,ut=this.isClipping&&this.na===Un.Spot;ut&&(rt=kt.alloc(),Ue=this.Pb(),(ge=Ue.Sj(se,a,he,x,rt))&&(y=(se-rt.x)*(se-rt.x)+(a-rt.y)*(a-rt.y)));for(var At=0;At<qe;At++){var Mt=Ie[At];Mt.visible&&Mt!==Ue&&Mt.Sj(se,a,he,x,ye)&&(ge=!0,Mt=(se-ye.x)*(se-ye.x)+(a-ye.y)*(a-ye.y),Mt<b&&(b=Mt,E.set(ye)))}return ut&&(y>b&&E.set(rt),kt.free(rt)),kt.free(ye),te&&E.transform(ne),ge},ot.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Yt.prototype.Gj.call(this)},ot.v=function(a){if(!Vl(this)){Yt.prototype.v.call(this,a),a=null,(this.na===Un.Auto||this.na===Un.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=sl(E,!1);(E instanceof $s||E instanceof Un||E instanceof Co||te!==Dn)&&E.v(!0)}}}},ot.Uj=function(){if(!Vl(this)){Aa(this,!0),Mc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},ot.Uk=function(){if(!(this.l&2048)){mu(this,!0),ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},ot.Wu=function(){ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},ot.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 he=this.yb;a=Math.max(a-he.left-he.right,0),y=Math.max(y-he.top-he.bottom,0);var ge=this.O.s;ge.length!==0&&this.na.measure(this,a,y,ge,E,x,b),a=E.width+he.left+he.right,he=E.height+he.top+he.bottom,isFinite(te.width)&&(a=te.width),isFinite(te.height)&&(he=te.height),a=Math.min(se.width,a),he=Math.min(se.height,he),a=Math.max(ne.width,a),he=Math.max(ne.height,he),a=Math.max(x,a),he=Math.max(b,he),Fa(E,a,he),Fa(this.naturalBounds,a,he),this.Ge(0,0,a,he)},ot.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 nh(a){return a.part!==null?a.part.locationObject:null}ot.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=sl(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=Dn),a){case Dn:(y>x||te>b)&&(this.v(),this.measure(y>x?x:y,te>b?b:te,0,0));break;case Hn:this.v(!0),this.measure(x+se,b+ne,0,0);break;case Er:this.v(!0),this.measure(x+se,te+ne,0,0);break;case _r:this.v(!0),this.measure(y+se,b+ne,0,0)}}this.na.arrange(this,E,this.jg)}},ot.gh=function(a){var y=this.naturalBounds,x=nh(this);if(No(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=kt.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(Pi(E.set(a),te.transform),te.ca(E)))return kt.free(E),!0}return kt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},ot.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},ot.qm=function(a,y){if(y(this,a),a instanceof Un){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Ud(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 Un&&s1(a,te,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof Un){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}ot.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof Un){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}ot.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=fg(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Un){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 Un?x=Math.max(x,c1(E)):E instanceof fi&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}ot.se=function(){return!(this.type===Un.TableRow||this.type===Un.TableColumn)};function Ch(a){return a.type===Un.TableRow||a.type===Un.TableColumn}ot.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ws(this)))return null;var b=this.naturalBounds,E=1/this.Df(),te=this.se(),ne=te?a:Pi(kt.allocAt(a.x,a.y),this.transform),se=this.diagram,he=10,ge=5;if(se!==null&&(he=se.Ql("extraTouchArea"),ge=he/2),No(-(ge*E),-(ge*E),b.width+he*E,b.height+he*E,ne.x,ne.y)){if(!this.isAtomic){E=this.O.s;var ye=E.length;if(se=kt.alloc(),ge=(he=this.isClipping&&this.na===Un.Spot)?this.Pb():null,he&&(ge.se()?Pi(se.set(a),ge.transform):se.set(a),!ge.ca(se)))return kt.free(se),te||kt.free(ne),null;for(var Ie=nh(this);ye--;){var Ue=E[ye];if((Ue.visible||Ue===Ie)&&(Ue.se()?Pi(se.set(a),Ue.transform):se.set(a),!he||Ue!==ge)){var qe=null;if(Ue instanceof Un?qe=Ue.ic(se,y,x):Ue.pickable===!0&&Ue.ca(se)&&(qe=Ue),qe!==null&&(y!==null&&(qe=y(qe)),qe!==null&&(x===null||x(qe))))return kt.free(se),te||kt.free(ne),qe}}kt.free(se)}return this.background===null&&this.areaBackground===null?(te||kt.free(ne),null):(a=No(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||kt.free(ne),a)}return te||kt.free(ne),null},ot.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:Pi(kt.allocAt(a.x,a.y),this.transform);if(E=No(0,0,E.width,E.height,ne.x,ne.y),Ch(this)||E){if(!this.isAtomic){for(var se=this.O.s,he=se.length,ge=kt.alloc(),ye=nh(this);he--;){var Ie=se[he];if(Ie.visible||Ie===ye){Ie.se()?Pi(ge.set(a),Ie.transform):ge.set(a);var Ue=Ie;Ie=Ie instanceof Un?Ie:null,(Ie!==null?Ie.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))}}kt.free(ge)}return te||kt.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||kt.free(ne),!1},ot.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=pi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return vv(this,y,x,E),te===void 0&&pi.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var se=nh(this),he=this.O.s,ge=he.length;ge--;){var ye=he[ge];if(ye.visible||ye===se){var Ie=ye.actualBounds,Ue=this.naturalBounds;Ie.x>Ue.width||Ie.y>Ue.height||0>Ie.x+Ie.width||0>Ie.y+Ie.height||(Ie=ye,ye=ye instanceof Un?ye:null,Ue=pi.alloc(),Ue.set(ne),(ye!==null?ye.Cf(a,y,x,b,E,Ue):Ya(Ie,a,b,Ue))&&(y!==null&&(Ie=y(Ie)),Ie===null||x!==null&&!x(Ie)||E.add(Ie)),pi.free(Ue))}}return te===void 0&&pi.free(ne),b}return te===void 0&&pi.free(ne),!1};function vv(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,he=a.naturalBounds;se.x>he.width||se.y>he.height||0>se.x+se.width||0>se.y+se.height||(ne instanceof Un&&vv(ne,y,x,b),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||b.add(ne))}}}ot.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(),he=se?a:Pi(kt.allocAt(a.x,a.y),this.transform),ge=se?y:Pi(kt.allocAt(y.x,y.y),this.transform),ye=he.Bf(ge),Ie=0<he.x&&he.x<ne.width&&0<he.y&&he.y<ne.height||co(he.x,he.y,0,0,0,ne.height)<=ye||co(he.x,he.y,0,ne.height,ne.width,ne.height)<=ye||co(he.x,he.y,ne.width,ne.height,ne.width,0)<=ye||co(he.x,he.y,ne.width,0,0,0)<=ye;if(ne=he.zd(0,0)<=ye&&he.zd(0,ne.height)<=ye&&he.zd(ne.width,0)<=ye&&he.zd(ne.width,ne.height)<=ye,se||(kt.free(he),kt.free(ge)),Ie){if(!this.isAtomic){he=kt.alloc(),ge=kt.alloc(),ye=nh(this);for(var Ue=this.O.s,qe=Ue.length;qe--;){var rt=Ue[qe];if(rt.visible||rt===ye){var ut=rt.actualBounds,At=this.naturalBounds;(!se||!(ut.x>At.width||ut.y>At.height||0>ut.x+ut.width||0>ut.y+ut.height))&&(rt.se()?(ut=rt.transform,Pi(he.set(a),ut),Pi(ge.set(y),ut)):(he.set(a),ge.set(y)),ut=rt,rt=rt instanceof Un?rt:null,(rt!==null?rt.og(he,ge,x,b,E,te):ut.tx(he,ge,E))&&(x!==null&&(ut=x(ut)),ut===null||b!==null&&!b(ut)||te.add(ut)))}}kt.free(he),kt.free(ge)}return E?Ie:ne}return!1};function yv(a){var y=null;return a instanceof fi&&(y=a.spot1,y===to&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=$a),y}function Sv(a){var y=null;return a instanceof fi&&(y=a.spot2,y===to&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=As),y}ot.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},ot.M=function(a){return this.O.M(a)},ot.Gb=function(a,y){y instanceof kr&&Ht("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Ht("Cannot make a Panel contain itself: "+this.toString()),Ht("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Ht("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!==Un.Grid||y instanceof fi||Ht("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Un.Graduated||y instanceof fi||y instanceof Co||Ht("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 fr),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,he=0;he<se;he++)if(ne[he]===y){te=he;break}if(te!==-1){if(te===a||te+1>=E.count&&a>=E.count)return;E.mb(te),b=te}else Ht("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),Vl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Un&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Nm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof rr&&(x.Te=!0),x.Te&&x instanceof rr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(La,"elements",this,y,null,b,null),x.cb(la,"elements",this,null,y,null,a)))};function xv(a,y){a.l=y?a.l|16777216:a.l&-16777217}ot.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)},ot.mb=function(a){0<=a&&this.pc(a,!0)},ot.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),Aa(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 rr&&(b instanceof Un?b.qm(b,function(ne,se){Wv(te,se,y)}):Wv(te,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||te.cb(La,"elements",this,b,null,a,null))},ot.Fb=function(a){0>a&&Wn(a,">= 0",Un,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new ja;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(la,"rowdefs",this,null,x,null,a)}return y[a]},ot.oA=function(a){if(0>a&&Wn(a,">= 0",Un,"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(La,"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 ja?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ot.Eb=function(a){0>a&&Wn(a,">= 0",Un,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new ja;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(la,"coldefs",this,null,x,null,a)}return y[a]},ot.jA=function(a){if(0>a&&Wn(a,">= 0",Un,"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(La,"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 ja?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ot.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Om(y,a),this},ot.Hy=function(a,y){return(a=this.Fb(a))&&Om(a,new ja(y)),this},ot.By=function(a,y){return(a=this.Eb(a))&&Om(a,new ja(y)),this},ot.nz=function(a){if(0>a||this.type!==Un.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},ot.fz=function(a){if(0>a||this.type!==Un.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},ot.Fz=function(a,y){if(y===void 0&&(y=new kt(NaN,NaN)),this.type!==Un.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)},ot.Gz=function(a){if(this.type!==Un.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 yu(a){var y=a.allBindings;if(y===null)a.data!==null&&Ht("Template cannot have .data be non-null: "+a),a.allBindings=y=new vn;else if(y._isFrozen)return;var x=new vn;xv(a,!1),a.qm(a,function(ge,ye){ye.th();var Ie=ye.localBindings;if(Ie!==null)for(xf(ye,!1),Ie=Ie.iterator;Ie.next();){var Ue=Ie.value;Ue.mode===Dg&&xf(ye,!0);var qe=Ue.sourceName;qe!==null&&(qe==="/"&&xv(ge,!0),qe=MS(Ue,ge,ye),qe!==null&&(x.add(qe),qe.srcBindings===null&&(qe.srcBindings=new vn),qe.srcBindings.add(Ue))),y.add(Ue)}if(ye instanceof Un&&ye.type===Un.Table){if(0<ye.rowCount){for(ge=ye.rowDefs,Ie=ge.length,Ue=0;Ue<Ie;Ue++)if(qe=ge[Ue],qe!==void 0&&qe.be!==null)for(var rt=qe.be.iterator;rt.next();){var ut=rt.value;ut.xd=qe,ut.to=2,ut.wl=qe.index,y.add(ut)}}if(0<ye.columnCount){for(ye=ye.colDefs,ge=ye.length,Ie=0;Ie<ge;Ie++)if(Ue=ye[Ie],Ue!==void 0&&Ue.be!==null)for(qe=Ue.be.iterator;qe.next();)rt=qe.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){xf(E,!0);for(var te=E.srcBindings.iterator;te.next();){var ne=te.value;E.localBindings===null&&(E.localBindings=new vn),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,he=se.indexOf(".");0<he&&te instanceof Un&&(ne=se.substring(0,he),se=se.substr(he+1),he=te.fb(ne),he!==null?(te=he,E.targetProperty=se):lr('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+E.toString())),te instanceof ja?(ne=Mi(te.panel),E.Ai=ne===void 0?-1:ne,te.panel.bindingId=E.Ai):te instanceof Yt?(ne=Mi(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):Ht("Unknown type of binding target: "+te)}y.freeze(),a instanceof kr&&a.Zc()&&a.Va()}ot.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof Un&&(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&&yu(y),y},ot.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 Un))continue;E===1?te=te.Eb(x.wl):E===2&&(te=te.Fb(x.wl))}te!==void 0&&x.Mv(te,b)}}},ot.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 Un&&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 Un)||te.data!==y[ne])return!0;E++,ne++}return!1}function fg(a){if(a.type===Un.Spot||a.type===Un.Auto)return Math.min(a.O.length,1);if(a.type===Un.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof fi&&b.isPanelMain))break}return x}return a.type===Un.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Un&&Ch(a))?1:0}ot.mv=function(){for(var a=fg(this);this.O.length>a;)this.pc(this.O.length-1,!1);p1(this,this.itemArray)};function p1(a,y){var x=fg(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++)km(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 Un){if(ne.data!==te){var se=bv(a,ne.data),he=bv(a,te),ge=he!==se;ge||(se=Pv(a,se),ge=Pv(a,he)!==se),ge?(a.pc(b,!1),km(a,te,E,!1)):ne.data=te}}else km(a,te,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,wv(a,x,0),Vl(a)||a.v(),a.graduatedIntervals=null,a.If()||Nm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof rr&&(y.Te=!0),y.Te&&y instanceof rr&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=bv(a,y);if(E=Pv(a,E),E!==null){if(yu(E),E=E.copy(),E.l&16777216){var te=a.ih();te!==null&&xv(te,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new fr),a.ge.add(y,E)),te=x+fg(a),a.Gb(te,E),b&&(E.ub=y,wv(a,te,x),E.ub=null),E.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Un){var E=y,te=x;b.type===Un.TableRow?b.row=E:b.type===Un.TableColumn&&(b.column=E),b.itemIndex=te}y++,x++}}function bv(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=pa(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Ht("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(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,lr('No item template Panel found for category "'+y+'" on '+a),lr(" Using default item template."),a=new Un,y=new Co,y.bind(new xa("text","",Fn)),a.add(y),m1=a),b=m1)),b}function Nm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Un){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var te=y[E];x&&te instanceof Un&&!te.isEnabled||Nm(a,te,x)}}}function cc(a,y){y.name=a,ku.add(a,y)}Et.Object.defineProperties(Un.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Un.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&&Wn(a,">= 0",Un,"padding"),a=new Lr(a)):(0>a.left&&Wn(a.left,">= 0",Un,"padding:value.left"),0>a.right&&Wn(a.right,">= 0",Un,"padding:value.right"),0>a.top&&Wn(a.top,">= 0",Un,"padding:value.top"),0>a.bottom&&Wn(a.bottom,">= 0",Un,"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:Cs},set:function(a){typeof a=="number"&&(a=new Lr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new lu),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 ao)&&(a instanceof ao&&a.freeze(),this.T===null&&(this.T=new lu),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 lu),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)||Ht("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 lu),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 ao)&&(a instanceof ao&&a.freeze(),this.T===null&&(this.T=new lu),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 lu),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)||Ht("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 lu),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 lu),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||Ht("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sc(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()||Ht("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sc(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 rh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ys(this)&&(a=this.part,a!==null&&ko(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 rh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ys(this)&&(a=this.part,a!==null&&ko(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 rh),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 rh),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 rh,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 rh,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 rh,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 rh,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 lu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new lu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:jm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new lu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:jm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new lu),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)&&Ht("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new lu),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)&&Ht("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new lu),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 kr&&!(this instanceof Ui);yu(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Kn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof kr&&(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 wf),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 fr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof kr||a.isPanelMain)&&Ht("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(););mi(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&&(mi(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 ti&&(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&&Nm(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))}}}),Et.Object.defineProperties(Un,{Position:{get:function(){return ku.I("Position")}},Horizontal:{get:function(){return ku.I("Horizontal")}},Vertical:{get:function(){return ku.I("Vertical")}},Spot:{get:function(){return ku.I("Spot")}},Auto:{get:function(){return ku.I("Auto")}},Table:{get:function(){return ku.I("Table")}},Viewbox:{get:function(){return ku.I("Viewbox")}},TableRow:{get:function(){return ku.I("TableRow")}},TableColumn:{get:function(){return ku.I("TableColumn")}},Link:{get:function(){return ku.I("Link")}},Grid:{get:function(){return ku.I("Grid")}},Graduated:{get:function(){return ku.I("Graduated")}}}),Un.prototype.rebuildItemElements=Un.prototype.mv,Un.prototype.findItemPanelForData=Un.prototype.sx,Un.prototype.updateTargetBindings=Un.prototype.La,Un.prototype.copyTemplate=Un.prototype.Uy,Un.prototype.graduatedValueForPoint=Un.prototype.Gz,Un.prototype.graduatedPointForValue=Un.prototype.Fz,Un.prototype.findColumnForLocalX=Un.prototype.fz,Un.prototype.findRowForLocalY=Un.prototype.nz,Un.prototype.addColumnDefinition=Un.prototype.By,Un.prototype.addRowDefinition=Un.prototype.Hy,Un.prototype.addRowColumnDefinition=Un.prototype.Gy,Un.prototype.removeColumnDefinition=Un.prototype.jA,Un.prototype.getColumnDefinition=Un.prototype.Eb,Un.prototype.removeRowDefinition=Un.prototype.oA,Un.prototype.getRowDefinition=Un.prototype.Fb,Un.prototype.removeAt=Un.prototype.mb,Un.prototype.remove=Un.prototype.remove,Un.prototype.insertAt=Un.prototype.Gb,Un.prototype.elt=Un.prototype.M,Un.prototype.add=Un.prototype.add,Un.prototype.findObject=Un.prototype.fb,Un.prototype.findInVisualTree=Un.prototype.Nl,Un.prototype.walkVisualTreeFrom=Un.prototype.qm,Un.prototype.findMainElement=Un.prototype.Pb;var g1=!1,m1=null,ku=new fr;Un.className="Panel",Un.definePanelLayout=cc,cc("Position",new vm),cc("Vertical",new Sm),cc("Auto",new wm),cc("Link",new Mm);function rh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}rh.prototype.copy=function(){var a=new rh;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},rh.className="GradPanelSettings";function lu(){this.Pc=[],this.Oc=[],this.j=this.ob=jm,this.hb=this.Hb=0,this.Qp=Cs,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}lu.prototype.copy=function(a){for(var y=new lu,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},lu.className="TablePanelSettings";function ja(a){zr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=to,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=si,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))}ja.prototype.copy=function(){var a=new ja;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=an(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Om(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=an(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}ot=ja.prototype,ot.qb=function(a){a.classType===ja&&(this.sizing=a)},ot.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Mi(this)},ot.wi=function(a){this.Me=a},ot.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)},ot.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Un.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)},ot.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Ho,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 Am(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}ot.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new xa(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&Ht("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new vn),this.be.add(E),this},Et.Object.defineProperties(ja.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&&Wn(a,">= 0",ja,"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&&Wn(a,">= 0",ja,"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))&&Wn(a,">= 0",ja,"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&&Wn(a,">= 0",ja,"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 Lr(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&&Pf(a,"RowColumnDefinition.separatorStroke"),a instanceof ao&&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)||Ht("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&&Pf(a,"RowColumnDefinition.background"),a instanceof ao&&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}}}),ja.prototype.computeEffectiveSpacing=ja.prototype.Wc,ja.prototype.computeEffectiveSpacingTop=ja.prototype.Io;var Cv=new bn(ja,"Default",0),pg=new bn(ja,"None",1),jm=new bn(ja,"ProportionalExtra",2);ja.className="RowColumnDefinition",ja.Default=Cv,ja.None=pg,ja.ProportionalExtra=jm;function fi(a,y){Yt.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)}Jt(fi,Yt),fi.prototype.cloneProtected=function(a){Yt.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=an(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 $d(a){a.Na===null?a.Na=new Mv:a.Na.nc&&(a.Na=a.Na.copy())}ot=fi.prototype,ot.th=function(){Yt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},ot.qb=function(a){a===Dn||a===gr||a===ki||a===si?this.geometryStretch=a:Yt.prototype.qb.call(this,a)},ot.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Mi(this)};function fp(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],he=x[1],ge,ye,Ie,Ue,qe,rt,ut=0,At=yn(),Mt=2;Mt<E;Mt+=2)ge=x[Mt],ye=x[Mt+1],Ie=ge-se,se=ye-he,Ie===0&&(Ie=.001),Ue=se/Ie,qe=Math.atan2(se,Ie),rt=Math.sqrt(Ie*Ie+se*se),At.push([Ie,qe,Ue,rt]),ut+=rt,se=ge,he=ye;se=x[0],he=x[1],Ie=b.measuredBounds.width,b instanceof fi&&(Ie-=b.strokeWidth),1>Ie&&(Ie=1),E=x=Ie,ge=ne/2,ye=ge!==0,Mt=0,rt=At[Mt],Ie=rt[0],qe=rt[1],Ue=rt[2],rt=rt[3];for(var Bt=0;.1<=ut;){if(Bt===0&&(ye?(E=x,E-=ge,ut-=ge,ye=!1):E=x,E===0&&(E=1)),E>ut){On(At);return}E>rt?(Bt=E-rt,E=rt):Bt=0;var _t=Math.sqrt(E*E/(1+Ue*Ue));if(0>Ie&&(_t=-_t),se+=_t,he+=Ue*_t,a.translate(se,he),a.rotate(qe),a.translate(-(ne/2),-(te/2)),Bt===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-qe),a.translate(-se,-he),ut-=E,rt-=E,Bt!==0){if(Mt++,Mt===At.length){On(At);return}rt=At[Mt],Ie=rt[0],qe=rt[1],Ue=rt[2],rt=rt[3],E=Bt}}On(At)}}ot.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&&oa(this,a,b,!0,!1,ne,te);var se=this.part,he=this.ig;if(x===null||he!==0||se===null||!this.isPanelMain&&se.Pb()!==this||(he=se.type===Un.Link&&se instanceof Ui&&se.category==="Selection"&&se.adornedObject instanceof fi&&se.adornedPart.Pb()===se.adornedObject?se.adornedObject.strokeWidth:0),he===0&&(x=null),x!==null&&he!==0&&(oa(this,a,x,!1,!1,ne,te),a.lineWidth=he,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,he=this.strokeDashArray,he!==null&&(ne=!0,a.js(he,this.strokeDashOffset)),E.type===Zn.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===Zn.u){var ge=E.startX;he=E.startY;var ye=E.endX,Ie=E.endY;E=Math.min(ge,ye);var Ue=Math.min(he,Ie);ge=Math.abs(ye-ge),he=Math.abs(Ie-he),a.beginPath(),a.rect(E,Ue,ge,he),b!==null&&a.ng(b),x!==null&&(se&&te&&Lc(a),a.jk(),se&&te&&qc(a)),a.Se()}else if(E.type===Zn.F)ge=E.startX,he=E.startY,ye=E.endX,Ie=E.endY,E=Math.abs(ye-ge)/2,Ue=Math.abs(Ie-he)/2,ge=Math.min(ge,ye)+E,he=Math.min(he,Ie)+Ue,a.beginPath(),a.moveTo(ge,he-Ue),a.bezierCurveTo(ge+Qt.wg*E,he-Ue,ge+E,he-Qt.wg*Ue,ge+E,he),a.bezierCurveTo(ge+E,he+Qt.wg*Ue,ge+Qt.wg*E,he+Ue,ge,he+Ue),a.bezierCurveTo(ge-Qt.wg*E,he+Ue,ge-E,he+Qt.wg*Ue,ge-E,he),a.bezierCurveTo(ge-E,he-Qt.wg*Ue,ge-Qt.wg*E,he-Ue,ge,he-Ue),a.closePath(),b!==null&&a.ng(b),x!==null&&(se&&te&&Lc(a),a.jk(),se&&te&&qc(a)),a.Se();else if(E.type===Zn.o)for(E=E.figures,he=E.length,Ue=0;Ue<he;Ue++){ge=E.s[Ue],a.beginPath(),a.moveTo(ge.startX,ge.startY),ye=ge.segments.s,Ie=ye.length;for(var qe=null,rt=0;rt<Ie;rt++){var ut=ye[rt];switch(ut.type){case ma:a.moveTo(ut.endX,ut.endY);break;case Po:a.lineTo(ut.endX,ut.endY);break;case as:a.bezierCurveTo(ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY);break;case Cl:a.quadraticCurveTo(ut.point1X,ut.point1Y,ut.endX,ut.endY);break;case ha:if(ut.radiusX===ut.radiusY){var At=Math.PI/180;a.arc(ut.point1X,ut.point1Y,ut.radiusX,ut.startAngle*At,(ut.startAngle+ut.sweepAngle)*At,0>ut.sweepAngle,qe!==null?qe.endX:ge.startX,qe!==null?qe.endY:ge.startY)}else if(qe=rl(ut,ge),At=qe.length,At===0)a.lineTo(ut.centerX,ut.centerY);else for(var Mt=0;Mt<At;Mt++){var Bt=qe[Mt];Mt===0&&a.lineTo(Bt[0],Bt[1]),a.bezierCurveTo(Bt[2],Bt[3],Bt[4],Bt[5],Bt[6],Bt[7])}break;case _l:if(Mt=At=0,qe!==null&&qe.type===ha){if(qe=rl(qe,ge),Bt=qe.length,Bt===0){a.lineTo(ut.endX,ut.endY);break}qe=qe[Bt-1]||null,qe!==null&&(At=qe[6],Mt=qe[7])}else At=qe!==null?qe.endX:ge.startX,Mt=qe!==null?qe.endY:ge.startY;if(qe=zs(ut,ge,At,Mt),At=qe.length,At===0){a.lineTo(ut.endX,ut.endY);break}for(Mt=0;Mt<At;Mt++)Bt=qe[Mt],a.bezierCurveTo(Bt[2],Bt[3],Bt[4],Bt[5],Bt[6],Bt[7]);break;default:Ht("Segment not of valid type: "+ut.type)}ut.isClosed&&a.closePath(),qe=ut}ye=ge.isFilled,te?ge.isShadowed?(ye===!0&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&(ye&&se&&Lc(a),a.jk(),ye&&se&&qc(a))):(Lc(a),ye&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk(),qc(a)):(ye&&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=yn(),te.type===Zn.j)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.endY),fp(a,y,b,x);else if(te.type===Zn.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,he=ne,Ue=E,ge=se.segments.s,ye=ge.length,Ie=0;Ie<ye;Ie++){switch(rt=ge[Ie],rt.type){case ma:fp(a,y,b,x),b.length=0,b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY,he=ne,Ue=E;break;case Po:b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break;case as: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 Cl:Qt.ep(ne,E,rt.point1X,rt.point1Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case ha:if(ut=rl(rt,se),qe=ut.length,qe===0){b.push(rt.centerX),b.push(rt.centerY),ne=rt.centerX,E=rt.centerY;break}for(At=0;At<qe;At++)Mt=ut[At],Qt.Qe(ne,E,Mt[2],Mt[3],Mt[4],Mt[5],Mt[6],Mt[7],.5,b),ne=Mt[6],E=Mt[7];break;case _l:if(ut=zs(rt,se,ne,E),qe=ut.length,qe===0){b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break}for(At=0;At<qe;At++)Mt=ut[At],Qt.Qe(ne,E,Mt[2],Mt[3],Mt[4],Mt[5],Mt[6],Mt[7],.5,b),ne=Mt[6],E=Mt[7];break;default:Ht("Segment not of valid type: "+rt.type)}rt.isClosed&&(b.push(he),b.push(Ue),fp(a,y,b,x))}fp(a,y,b,x)}else if(te.type===Zn.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),fp(a,y,b,x);else if(te.type===Zn.F){if(E=new Ha,E.startX=te.endX,E.startY=(te.startY+te.endY)/2,ne=new Gi(ha),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=rl(ne,E),se=te.length,se===0)b.push(ne.centerX),b.push(ne.centerY);else for(ne=E.startX,E=E.startY,he=0;he<se;he++)Ue=te[he],Qt.Qe(ne,E,Ue[2],Ue[3],Ue[4],Ue[5],Ue[6],Ue[7],.5,b),ne=Ue[6],E=Ue[7];fp(a,y,b,x)}On(b),a.restore(),a.Vc(!1)}}}},ot.kk=function(a,y,x){return!Yt.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)},ot.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Yt.prototype.nk.call(this,a)},ot.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)}},ot.ga=function(a,y){if(y===void 0&&(y=new kt),a instanceof wr){a.Mc()&&Ht("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},ot.mi=function(a){a===void 0&&(a=new Ln);var y=this.naturalBounds,x=this.oe;y=Ln.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=kt.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),Ln.free(y),kt.free(b),a},ot.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!==Zn.j||y||(E+=2);var te=Ln.alloc();if(te.assign(b),te.Bc(E+2,E+2),!te.ca(a))return Ln.free(te),!1;if(b=E+1e-4,x.type===Zn.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:(Ln.free(te),Qt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Zn.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 Ln.free(te),!1;te.Bc(b,b)}return this.stroke!==null&&te.Bc(E,E),a=te.ca(a),Ln.free(te),a}if(x.type===Zn.F){ne=x.startX,E=x.startY,se=x.endX;var he=x.endY;if(x=Math.min(ne,se),y=Math.min(E,he),ne=Math.abs(se-ne)/2,E=Math.abs(he-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 Ln.free(te),!1;ne+=b,E+=b}return this.stroke!==null&&(ne+=b,E+=b),Ln.free(te),0>=ne||0>=E?!1:1>=x*x/(ne*ne)+y*y/(E*E)}if(x.type===Zn.o)return Ln.free(te),this.fill===null?ic(x,a.x,a.y,E):zu(x,a,E,1<this.strokeWidth,y);Ht("Unknown Geometry type: "+x.type)},ot.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,he=Tv[se];if(he===void 0){var ge=Qt.Ze[se];typeof ge=="string"&&(ge=Qt.Ze[ge]),typeof ge=="function"?(he=ge(null,100,100),Tv[se]=he):Ht("Unsupported Figure: "+se)}ne=he.bounds}se=ne.width,he=ne.height,ge=ne.width;var ye=ne.height;switch(sl(this,!0)){case Dn:b=x=0;break;case Hn:ge=Math.max(a-te,0),ye=Math.max(y-te,0);break;case Er:ge=Math.max(a-te,0),b=0;break;case _r:x=0,ye=Math.max(y-te,0)}isFinite(E.width)&&(ge=E.width),isFinite(E.height)&&(ye=E.height);var Ie=this.maxSize,Ue=this.minSize;switch(x=Math.max(x-te,Ue.width),b=Math.max(b-te,Ue.height),ge=Math.min(Ie.width,ge),ye=Math.min(Ie.height,ye),ge=isFinite(ge)?Math.max(x,ge):Math.max(se,x),ye=isFinite(ye)?Math.max(b,ye):Math.max(he,b),x=Ev(this),x){case Dn:break;case Hn:se=ge,he=ye;break;case gr:x=Math.min(ge/se,ye/he),isFinite(x)||(x=1),se*=x,he*=x;break;default:Ht(x+" is not a valid geometryStretch.")}this.Rd!==null?(se===0&&(se=.001),he===0&&(he=.001),x=this.Rd!==null?this.Rd:this.ua,ne=x.bounds,b=se/ne.width,ne=he/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=fi.makeGeometry(this,se,he)),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&&he===0?0:ne.height+te):this.Ge(-(te/2),-(te/2),ge+te,ye+te),E.w()?(ge=E.width,ye=E.height,ge=Math.min(Ie.width,ge),ye=Math.min(Ie.height,ye),ge=Math.max(Ue.width,ge),ye=Math.max(Ue.height,ye),this.dc.h(0,0,ge,ye)):this.dc.assign(ne)};function Ev(a){var y=a.geometryStretch;return a.Rd!==null?y===si?Hn:y:y===si?Tv[a.figure].defaultStretch:y}ot.eh=function(a,y,x,b){Ds(this,a,y,x,b)},ot.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ot.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,he=-te.m12*ne,ge=-te.m21*ne,ye=te.m11*ne,Ie=ne*(te.m21*te.dy-te.m22*te.dx),Ue=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*ge+Ie,ne=a*he+y*ye+Ue,se=x*se+b*ge+Ie,he=x*he+b*ye+Ue,Ie=this.ig/2,ge=this.ua,ge===null&&(this.measure(1/0,1/0),ge=this.ua);var qe=ge.bounds;if(ye=!1,ge.type===Zn.j)if(1.5>=this.strokeWidth)ye=Qt.Ve(ge.startX,ge.startY,ge.endX,ge.endY,te,ne,se,he,E);else{if(ge.startX===ge.endX?(b=Ie,ye=0):(y=(ge.endY-ge.startY)/(ge.endX-ge.startX),ye=Ie/Math.sqrt(1+y*y),b=ye*y),y=yn(),a=new kt,Qt.Ve(ge.startX+b,ge.startY+ye,ge.endX+b,ge.endY+ye,te,ne,se,he,a)&&y.push(a),a=new kt,Qt.Ve(ge.startX-b,ge.startY-ye,ge.endX-b,ge.endY-ye,te,ne,se,he,a)&&y.push(a),a=new kt,Qt.Ve(ge.startX+b,ge.startY+ye,ge.startX-b,ge.startY-ye,te,ne,se,he,a)&&y.push(a),a=new kt,Qt.Ve(ge.endX+b,ge.endY+ye,ge.endX-b,ge.endY-ye,te,ne,se,he,a)&&y.push(a),se=y.length,se===0)return On(y),!1;for(ye=!0,he=1/0,b=0;b<se;b++)a=y[b],x=(a.x-te)*(a.x-te)+(a.y-ne)*(a.y-ne),x<he&&(he=x,E.x=a.x,E.y=a.y);On(y)}else if(ge.type===Zn.u)ye=Qt.Ff(qe.x-Ie,qe.y-Ie,qe.x+qe.width+Ie,qe.y+qe.height+Ie,te,ne,se,he,E);else if(ge.type===Zn.F){y=Ln.allocAt(qe.x,qe.y,qe.width,qe.height).Bc(Ie,Ie);e:if(y.width===0)ye=Qt.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,he,E);else if(y.height===0)ye=Qt.Ve(y.x,y.y,y.x+y.width,y.y,te,ne,se,he,E);else{if(a=y.width/2,ge=y.height/2,b=y.x+a,ye=y.y+ge,x=9999,te!==se&&(x=(ne-he)/(te-se)),9999>Math.abs(x)){if(he=ne-ye-x*(te-b),0>a*a*x*x+ge*ge-he*he){E.x=NaN,E.y=NaN,ye=!1;break e}Ie=Math.sqrt(a*a*x*x+ge*ge-he*he),se=(-(a*a*x*he)+a*ge*Ie)/(ge*ge+a*a*x*x)+b,a=(-(a*a*x*he)-a*ge*Ie)/(ge*ge+a*a*x*x)+b,ge=x*(se-b)+he+ye,he=x*(a-b)+he+ye,Math.abs((te-se)*(te-se))+Math.abs((ne-ge)*(ne-ge))<Math.abs((te-a)*(te-a))+Math.abs((ne-he)*(ne-he))?(E.x=se,E.y=ge):(E.x=a,E.y=he)}else{if(se=ge*ge,he=te-b,se-=se/(a*a)*he*he,0>se){E.x=NaN,E.y=NaN,ye=!1;break e}he=Math.sqrt(se),se=ye+he,he=ye-he,Math.abs(se-ne)<Math.abs(he-ne)?(E.x=te,E.y=se):(E.x=te,E.y=he)}ye=!0}Ln.free(y)}else if(ge.type===Zn.o){Ue=kt.alloc();var rt=se-te,ut=he-ne,At=rt*rt+ut*ut,Mt=te,Bt=ne;if(0<At&&qe.contains(Mt,Bt)&&(Ue.x=Mt,Ue.y=Bt,this.ca(Ue)))for(rt!==0&&.5>Math.abs(rt)?(ut*=.5/rt,rt=.5):ut!==0&&.5>Math.abs(ut)&&(rt*=.5/ut,ut=.5),Mt-=rt,Bt-=ut;qe.contains(Mt,Bt);)Mt-=rt,Bt-=ut;for(E.x=se,E.y=he,ut=0;ut<ge.figures.count;ut++){var _t=ge.figures.s[ut],Gt=_t.isFilled?Mt:te,Zt=_t.isFilled?Bt:ne,hn=_t.segments;qe=_t.startX,rt=_t.startY;for(var qn=qe,dr=rt,hr=0;hr<hn.count;hr++){var $n=hn.s[hr],jn=$n.type,qr=$n.endX,Ur=$n.endY,Zi=!1;switch(jn){case ma:qn=qr,dr=Ur;break;case Po:Zi=Dm(qe,rt,qr,Ur,Gt,Zt,se,he,Ue);break;case as:Zi=Qt.Eo(qe,rt,$n.point1X,$n.point1Y,$n.point2X,$n.point2Y,qr,Ur,Gt,Zt,se,he,.6,Ue);break;case Cl:Zi=Qt.Eo(qe,rt,qe+2/3*($n.point1X-qe),rt+2/3*($n.point1Y-rt),qr+2/3*($n.point1X-qr),Ur+2/3*($n.point1Y-Ur),qr,Ur,Gt,Zt,se,he,.6,Ue);break;case ha:case _l:jn=$n.type===ha?rl($n,_t):zs($n,_t,qe,rt);var bo=jn.length;if(bo===0){Zi=Dm(qe,rt,$n.type===ha?$n.centerX:$n.endX,$n.type===ha?$n.centerY:$n.endY,Gt,Zt,se,he,Ue);break}for(Ur=null,qr=0;qr<bo;qr++){if(Ur=jn[qr],qr===0&&Dm(qe,rt,Ur[0],Ur[1],Gt,Zt,se,he,Ue)){var Ja=Im(Gt,Zt,Ue,At,E);Ja<At&&(At=Ja,ye=!0)}Qt.Eo(Ur[0],Ur[1],Ur[2],Ur[3],Ur[4],Ur[5],Ur[6],Ur[7],Gt,Zt,se,he,.6,Ue)&&(Ja=Im(Gt,Zt,Ue,At,E),Ja<At&&(At=Ja,ye=!0))}qr=Ur[6],Ur=Ur[7];break;default:Ht("Unknown Segment type: "+jn)}qe=qr,rt=Ur,Zi&&(Zi=Im(Gt,Zt,Ue,At,E),Zi<At&&(At=Zi,ye=!0)),$n.isClosed&&(qr=qn,Ur=dr,Dm(qe,rt,qr,Ur,Gt,Zt,se,he,Ue)&&($n=Im(Gt,Zt,Ue,At,E),$n<At&&(At=$n,ye=!0)))}}te=x-a,ne=b-y,se=Math.sqrt(te*te+ne*ne),se!==0&&(te/=se,ne/=se),E.x-=te*Ie,E.y-=ne*Ie,kt.free(Ue)}else Ht("Unknown Geometry type: "+ge.type);return ye?(this.transform.Ga(E),!0):!1};function Im(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 Dm(a,y,x,b,E,te,ne,se,he){if(Qt.$(a,x)&&Qt.$(y,b)||Qt.$(E,ne)&&Qt.$(te,se))return!1;var ge=!1,ye=(E-ne)*(y-b)-(te-se)*(a-x);return ye===0?!1:(he.x=((E*se-te*ne)*(a-x)-(E-ne)*(a*b-y*x))/ye,he.y=((E*se-te*ne)*(y-b)-(te-se)*(a*b-y*x))/ye,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(he.y>a||Qt.$(he.y,a))&&(he.y<y||Qt.$(he.y,y))&&(ge=!0)):(y=a<x?a:x,a=a<x?x:a,(he.x>y||Qt.$(he.x,y))&&(he.x<a||Qt.$(he.x,a))&&(ge=!0)),ge)}ot.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=kt.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)))),kt.free(te),E},ot.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=pi.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,te=a.top;a=a.bottom;var ne=kt.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 kt.free(ne),!0;var se=kt.alloc(),he=kt.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,Kd(this,ne,se,he)?y=!0:(ne.x=E,ne.y=a,ne.transform(x),Kd(this,ne,se,he)?y=!0:(se.x=b,se.y=a,se.transform(x),Kd(this,ne,se,he)?y=!0:(ne.x=b,ne.y=te,ne.transform(x),Kd(this,ne,se,he)&&(y=!0)))),kt.free(ne),pi.free(x),kt.free(se),kt.free(he),y};function Kd(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)}ot.tx=function(a,y,x){function b(At,Mt){for(var Bt=At.length,_t=0;_t<Bt;_t+=2)if(Mt.zd(At[_t],At[_t+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,he=ne.y,ge=ne.x+ne.width;if(ne=ne.y+ne.height,To(a.x,a.y,se,he)<=E&&To(a.x,a.y,ge,he)<=E&&To(a.x,a.y,se,ne)<=E&&To(a.x,a.y,ge,ne)<=E)return!0}if(se=y.startX,he=y.startY,ge=y.endX,ne=y.endY,y.type===Zn.j){if(x=(se-ge)*(a.x-ge)+(he-ne)*(a.y-ne),co(a.x,a.y,se,he,ge,ne)<=(0<=(ge-se)*(a.x-se)+(ne-he)*(a.y-he)&&0<=x?E:te))return!0}else{if(y.type===Zn.u)return y=!1,x&&(y=co(a.x,a.y,se,he,se,ne)<=E||co(a.x,a.y,se,he,ge,he)<=E||co(a.x,a.y,ge,he,ge,ne)<=E||co(a.x,a.y,se,ne,ge,ne)<=E),y;if(y.type===Zn.F){y=a.x-(se+ge)/2,te=a.y-(he+ne)/2;var ye=Math.abs(ge-se)/2,Ie=Math.abs(ne-he)/2;if(ye===0||Ie===0)return co(a.x,a.y,se,he,ge,ne)<=E;if(x){if(a=Qt.$y(ye,Ie,y,te),a*a<=E)return!0}else return!(To(y,te,-ye,0)>=E||To(y,te,0,-Ie)>=E||To(y,te,0,Ie)>=E||To(y,te,ye,0)>=E)}else if(y.type===Zn.o){if(ge=y.bounds,te=ge.x,se=ge.y,he=ge.x+ge.width,ge=ge.y+ge.height,a.x>he&&a.x<te&&a.y>ge&&a.y<se&&co(a.x,a.y,te,se,te,ge)>E&&co(a.x,a.y,te,se,he,se)>E&&co(a.x,a.y,he,ge,te,ge)>E&&co(a.x,a.y,he,ge,he,se)>E)return!1;if(te=Math.sqrt(E),x){if(this.fill===null?ic(y,a.x,a.y,te):zu(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,ye=te.startY,a.zd(ne,ye)>E)return!1;for(se=te.segments.s,he=se.length,ge=0;ge<he;ge++)switch(Ie=se[ge],Ie.type){case ma:case Po:if(ne=Ie.endX,ye=Ie.endY,a.zd(ne,ye)>E)return!1;break;case as:var Ue=yn();if(Qt.Qe(ne,ye,Ie.point1X,Ie.point1Y,Ie.point2X,Ie.point2Y,Ie.endX,Ie.endY,.8,Ue),ne=b(Ue,a),On(Ue),ne||(ne=Ie.endX,ye=Ie.endY,a.zd(ne,ye)>E))return!1;break;case Cl:if(Ue=yn(),Qt.ep(ne,ye,Ie.point1X,Ie.point1Y,Ie.endX,Ie.endY,.8,Ue),ne=b(Ue,a),On(Ue),ne||(ne=Ie.endX,ye=Ie.endY,a.zd(ne,ye)>E))return!1;break;case ha:case _l:Ue=Ie.type===ha?rl(Ie,te):zs(Ie,te,ne,ye);var qe=Ue.length;if(qe===0){if(ne=Ie.type===ha?Ie.centerX:Ie.endX,ye=Ie.type===ha?Ie.centerY:Ie.endY,a.zd(ne,ye)>E)return!1;break}Ie=null;for(var rt=yn(),ut=0;ut<qe;ut++)if(Ie=Ue[ut],rt.length=0,Qt.Qe(Ie[0],Ie[1],Ie[2],Ie[3],Ie[4],Ie[5],Ie[6],Ie[7],.8,rt),b(rt,a))return On(rt),!1;On(rt),Ie!==null&&(ne=Ie[6],ye=Ie[7]);break;default:Ht("Unknown Segment type: "+Ie.type)}}return!0}}}return!1},ot.qc=function(){this.ua=null},ot.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Pg,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ka):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new wr(1-Ka.x,Ka.y)))}fi.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Nc[a.toArrow];else a.fromArrow!=="None"?b=Nc[a.fromArrow]:(b=Qt.Ze[a.figure],typeof b=="string"&&(b=Qt.Ze[b]),b===void 0&&Ht("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=Nc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Nc[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=Zn.parse(Qt.um[b],!1),Nc[b]=a,x!==b&&(Nc[x]=b),b}}return typeof y=="string"?y:y instanceof Zn?a:null}Et.Object.defineProperties(fi.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),ys(this)&&(a=this.part,a!==null&&ko(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Zn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=kt.allocAt(-y.x,-y.y),kt.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&&Pf(a,"Shape.fill"),a instanceof ao&&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&&Pf(a,"Shape.stroke"),a instanceof ao&&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 Wn(a,"value >= 0",fi,"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"?Wn(a,'"butt", "round", or "square"',fi,"strokeCap"):($d(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"?Wn(a,'"miter", "bevel", or "round"',fi,"strokeJoin"):($d(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){$d(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)||Ht("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&&($d(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()])||Ht("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?Ht("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new qh),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?Ht("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new qh),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:to},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),$d(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:to},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),$d(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&&($d(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:si},set:function(a){var y=this.geometryStretch;y!==a&&($d(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 Oc),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&sc(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 Oc),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 Oc),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 Oc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),fi.prototype.intersectsRect=fi.prototype.Yc,fi.prototype.containedInRect=fi.prototype.fh,fi.prototype.getNearestIntersectionPoint=fi.prototype.rs,fi.prototype.getDocumentBounds=fi.prototype.mi,fi.prototype.getDocumentPoint=fi.prototype.ga;var Nc=new Sr,Tv=new Sr;fi.className="Shape",fi.getFigureGenerators=function(){var a=new fr,y;for(y in Qt.Ze)y!==y.toLowerCase()&&a.add(y,Qt.Ze[y]);return a.freeze(),a},fi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[x]=a},fi.getArrowheadGeometries=function(){var a=new fr;for(b in Qt.um)if(Nc[b]===void 0){var y=Zn.parse(Qt.um[b],!1);Nc[b]=y,y=b.toLowerCase(),y!==b&&(Nc[y]=b)}for(var x in Nc)if(x!==x.toLowerCase()){var b=Nc[x];b instanceof Zn&&a.add(x,b)}return a.freeze(),a},fi.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Zn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Ht("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Nc;b[a]=x,b[y]=a};function Mv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=si,this.gg=this.fg=to}Mv.prototype.copy=function(){var a=new Mv;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 Co(a,y){return Yt.call(this),zm||(ll=ra?new vu(null).context:null,zm=!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}Jt(Co,Yt),Co.prototype.cloneProtected=function(a){Yt.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 hc(a){a.da===null?a.da=new Iv:a.da.nc&&(a.da=a.da.copy())}ot=Co.prototype,ot.th=function(){Yt.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}ot.qb=function(a){a.classType===Co?this.wrap=a:Yt.prototype.qb.call(this,a)},ot.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},ot.v=function(){Yt.prototype.v.call(this)},ot.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=mg(this),se=a.textAlign=this.textAlign,he=y.tn;se==="start"?se=he?"right":"left":se==="end"&&(se=he?"left":"right"),he=this.isUnderline;var ge=this.isStrikethrough;oa(this,a,this.xc,!0,!1,x,b),(he||ge)&&oa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ye=this.oe,Ie=ye.dx-(ne*ye.m21+ye.dx);ye=ye.dy-(ne*ye.m22+ye.dy);var Ue=y.scale;switch(8>(Ie*Ie+ye*ye)*Ue*Ue&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ml&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Ie=this.spacingBelow,this.flip){case _i:a.translate(E,0),a.scale(-1,1);break;case Si:a.translate(0,te),a.scale(1,-1);break;case mo:a.translate(E,te),a.scale(-1,-1)}if(a.yc(),ye=this.Gc,Ue=(y+ne+Ie)*ye,te>Ue&&(b=this.verticalAlignment,b=b.y*te-b.y*Ue+b.offsetY),ye===1&&this.ze!==null)Ie=this.Cb,Ie>E&&(Ie=E),this.Oj(this.ze,a,0,b+y,E,ne,Ie,x,se,he,ge);else if(this.Qc!==null&&this.Qb!==null)for(Ue=0;Ue<ye;Ue++){var qe=this.Qc[Ue];qe>E&&(qe=E),b+=y,this.Oj(this.Qb[Ue],a,0,b,E,ne,qe,x,se,he,ge),b+=ne+Ie}switch(this.flip){case _i:a.scale(-1,1),a.translate(-E,0);break;case Si:a.scale(1,-1),a.translate(0,-te);break;case mo:a.scale(-1,-1),a.translate(-E,-te)}}},ot.Oj=function(a,y,x,b,E,te,ne,se,he,ge,ye){var Ie=0;if(se)he==="left"?Ie=0:he==="right"?Ie=E-ne:he==="center"&&(Ie=(E-ne)/2),y.fillRect(x+Ie,b+.25*te,ne,1);else{if(he==="left"?Ie=0:he==="right"?Ie=E:he==="center"&&(Ie=E/2),E=Fm!==null?Fm(this,te):.75*te,y.fillText(a,x+Ie,b+E),a=te/20|0,a===0&&(a=1),he==="right"?Ie-=ne:he==="center"&&(Ie-=ne/2),ge){se=Bm!==null?Bm(this,te):.8*te,he=x+Ie,ge=b+se,E=x+Ie+ne,se=b+se;var Ue=a;y.beginPath(),y.lineWidth=Ue,y.moveTo(he,ge),y.lineTo(E,se),y.stroke(),y.Se(),y instanceof Ml&&y.ad.classList.add("gojs-td")}ye&&(ye=b+te-te/2.2|0,a%2!==0&&(ye+=.5),b=x+Ie,te=ye,x=x+Ie+ne,ne=ye,Ie=a,y.beginPath(),y.lineWidth=Ie,y.moveTo(b,te),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof Ml&&y.ad.classList.add("gojs-td"))}},ot.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(oa(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},ot.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Yt.prototype.nk.call(this,a)},ot.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)}},ot.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var te=this.Ae;ll!==null&&T1!==te&&(T1=ll.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,he=!1;!he;){var ge=te.indexOf(`
|
|
|
`,se);ge===-1&&(ge=te.length,he=!0),se=te.substr(se,ge-se),this.formatting===vg&&(se=se.trim()),ne=Math.max(ne,Nu(se)),se=ge+1}te=ne}else ne=te.indexOf(`
|
|
|
`,0),0<=ne&&(te=te.substr(0,ne)),te=Nu(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,he=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Rm&&(y=this.Ae,y=this.overflow===Rm?x1(y):0,ge=this.spacingAbove+this.spacingBelow,ge=Math.max(0,mg(this)+ge),he=Math.min(this.maxLines-1,Math.max(Math.floor(he/ge+.01)-1,0)),!(he+1>=this.Qb.length))){for(this.l|=16777216,ge=this.Qb[he],y=Math.max(1,a-y);Nu(ge)>y&&1<ge.length;)ge=ge.substr(0,ge.length-1);ge+=yg,y=Nu(ge),this.Qb[he]=ge,this.Qb=this.Qb.slice(0,he+1),this.Qc[he]=y,this.Qc=this.Qc.slice(0,he+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),Fa(this.dc,te,ne),this.Ge(0,0,te,ne),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},ot.eh=function(a,y,x,b){Ds(this,a,y,x,b)};function gg(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 Lv(a,y,x,b){var E=a.formatting===vg;E&&(y=y.trim());var te=0,ne=a.Ae,se=a.spacingAbove+a.spacingBelow;se=Math.max(0,mg(a)+se);var he=a.overflow===Rm?x1(ne):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,se);else if(ne=y,a.wrap===kv){a.Le=1;var ge=Nu(y);if(he===0||ge<=x)a.Cb=Math.max(a.Cb,ge),gg(a,y,a.Cb),b!==null&&b.h(ge,se);else{for(te=pp(a,ne),ne=ne.substr(te.length),y=pp(a,ne),ge=Nu(te+y);0<y.length&&ge<=x;)te+=y,ne=ne.substr(y.length),y=pp(a,ne),ge=te+y,E&&(ge=ge.trim()),ge=Nu(ge);for(E&&(y=y.trim()),te+=y,x=Math.max(1,x-he);Nu(te)>x&&1<te.length;)te=te.substr(0,te.length-1);a.l|=16777216,te+=yg;var ye=Nu(te);a.Cb=ye,gg(a,te,ye),b!==null&&b.h(ye,se)}}else{for(he=0,ne.length===0&&(he=1,gg(a,ne,0));0<ne.length;){for(y=pp(a,ne),ne=ne.substr(y.length);Nu(y)>x;){var Ie=1;for(ge=Nu(y.substr(0,Ie)),ye=0;ge<=x;)Ie++,ye=ge,ge=Nu(y.substr(0,Ie));if(Ie===1){var Ue=ge;te=Math.max(te,ge)}else Ue=ye,te=Math.max(te,ye);if(Ie--,1>Ie&&(Ie=1),gg(a,y.substr(0,Ie),Ue),he++,y=y.substr(Ie),a.Gc+he>a.maxLines)break}for(ye=pp(a,ne),ge=Nu(y+ye);0<ye.length&&ge<=x;)y+=ye,ne=ne.substr(ye.length),ye=pp(a,ne),ge=y+ye,E&&(ge=ge.trim()),ge=Nu(ge);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ye.length===0?(Ie=ge,te=Math.max(te,ge)):(Ie=ye=Nu(y),te=Math.max(te,ye)),gg(a,y,Ie),he++,a.Gc+he>a.maxLines))break}a.Le=Math.min(a.maxLines,he),a.Cb=Math.max(a.Cb,te),b!==null&&b.h(a.Cb,se*a.Le)}}function pp(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 Nu(a){return ll===null?8*a.length:ll.measureText(a).width}function mg(a){if(a.df!==null)return a.df;var y=a.Ae;if(ll===null){var x=16;return a.df=x}return Av[y]!==void 0&&5e3>E1?x=Av[y]:(x=1.3*ll.measureText("M").width,Av[y]=x,E1++),a.df=x}function x1(a){if(ll===null)return 6;if(_m[a]!==void 0&&5e3>jv)var y=_m[a];else y=ll.measureText(yg).width,_m[a]=y,jv++;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,mg(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!==kv){a.Le=0;var he=Yn.alloc();Lv(a,te,y,he),E+=he.height,Yn.free(he),a.Gc+=a.Le}else Lv(a,te,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(se=!0)}te=ne+1}return a.Lq=E}Et.Object.defineProperties(Co.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"||(hc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Dn},set:function(a){var y=this.flip;y!==a&&(hc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Xa},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),hc(this),this.da.Yr=a,Gs(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Yn.alloc();Lv(this,this.ec,999999,a);var y=a.width;Yn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Fa(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:Nv},set:function(a){var y=this.wrap;y!==a&&(hc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Ov},set:function(a){var y=this.overflow;y!==a&&(hc(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&&Pf(a,"TextBlock.stroke"),a instanceof ao&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return mg(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&&(hc(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&&(hc(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 Oc),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 Oc),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 Oc),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 Oc),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 Oc),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&&(hc(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&&(hc(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&&(hc(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&&(hc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:vg},set:function(a){var y=this.formatting;y!==a&&(hc(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&&Wn(a,"> 0",Co,"maxLines"),hc(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 Fm=null,Bm=null,kv=new bn(Co,"None",0),b1=new bn(Co,"WrapFit",1),Nv=new bn(Co,"WrapDesiredSize",2),P1=new bn(Co,"WrapBreakAll",3),Ov=new bn(Co,"OverflowClip",0),Rm=new bn(Co,"OverflowEllipsis",1),vg=new bn(Co,"FormatTrim",0),C1=new bn(Co,"FormatNone",0),xx=/[ \u200b\u00ad]/,Av=new Sr,E1=0,_m=new Sr,jv=0,yg="...",T1="",ll=null,zm=!1;Co.className="TextBlock";function Iv(){this.nc=!1,this.Hd=null,this.Xf=Dn,this.gq=vg,this.Jq=1/0,this.$q=Ov,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Xa,this.$r=Nv}Iv.prototype.copy=function(){var a=new Iv;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},Co.getEllipsis=function(){return yg},Co.setEllipsis=function(a){yg=a,_m=new Sr,jv=0},Co.getBaseline=function(){return Fm},Co.setBaseline=function(a){Fm=a},Co.getUnderline=function(){return Bm},Co.setUnderline=function(a){Bm=a},Co.isValidFont=function(a){if(zm||(ll=ra?new vu(null).context:null,zm=!0),ll===null)return!0;var y=ll.font;if(a===y||a==="10px sans-serif")return!0;ll.font="10px sans-serif",ll.font=a;var x=ll.font;if(x!=="10px sans-serif")return ll.font=y,!0;ll.font="19px serif";var b=ll.font;return ll.font=a,x=ll.font,ll.font=y,x!==b},Co.FormatNone=C1,Co.FormatTrim=vg,Co.None=kv,Co.OverflowClip=Ov,Co.OverflowEllipsis=Rm,Co.WrapBreakAll=P1,Co.WrapDesiredSize=Nv,Co.WrapFit=b1;function Oc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Oc.prototype.copy=function(){var a=new Oc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Oc.className="GradElementSettings";function ul(a,y){Yt.call(this),this.Eg=null,this.qo="",this.Xg=so,this.Nk=Hn,this.Zg=this.Hd=null,this.Mk=Bi,this.Xf=Dn,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 gp;Jt(ul,Yt),ul.prototype.cloneProtected=function(a){Yt.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},ul.prototype.qb=function(a){a===Dn||a===gr||a===ki?this.imageStretch=a:Yt.prototype.qb.call(this,a)},ul.prototype.toString=function(){return"Picture("+this.source+")#"+Mi(this)};function mp(a){a===void 0&&(a=""),a!==""?gp[a]&&(delete gp[a],Hm--):(gp=new Sr,Hm=0)}function M1(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,he=0;he<se;he++)te=ne[he],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()||(Aa(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=yn();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);On(te)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}ul.prototype.hA=function(){if(this.source!==""){mp(this.source);var a=this.source;this.source="",this.source=a}},ul.prototype.redraw=function(){this.N(),this.Uc=!0},ul.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 Wd)){var E=a instanceof Ml;b=this.naturalBounds;var te=0,ne=0,se=this.qn,he=se?+x.width:x.naturalWidth;if(se=se?+x.height:x.naturalHeight,he===void 0&&x.videoWidth&&(he=x.videoWidth),se===void 0&&x.videoHeight&&(se=x.videoHeight),he=he||b.width,se=se||b.height,he!==0&&se!==0){var ge=he,ye=se;this.sourceRect.w()&&(te=this.Xg.x,ne=this.Xg.y,he=this.Xg.width,se=this.Xg.height);var Ie=he,Ue=se,qe=this.Nk,rt=this.Mk;switch(qe){case Dn:if(this.sourceRect.w())break;Ie>=b.width&&(te=te+rt.offsetX+(Ie*rt.x-b.width*rt.x)),Ue>=b.height&&(ne=ne+rt.offsetY+(Ue*rt.y-b.height*rt.y)),he=Math.min(b.width,Ie),se=Math.min(b.height,Ue);break;case Hn:Ie=b.width,Ue=b.height;break;case gr:case ki:qe===gr?(qe=Math.min(b.height/Ue,b.width/Ie),Ie*=qe,Ue*=qe):qe===ki&&(qe=Math.max(b.height/Ue,b.width/Ie),Ie*=qe,Ue*=qe,Ie>=b.width&&(te=(te+rt.offsetX+(Ie*rt.x-b.width*rt.x)/Ie)*he),Ue>=b.height&&(ne=(ne+rt.offsetY+(Ue*rt.y-b.height*rt.y)/Ue)*se),he*=1/(Ie/b.width),se*=1/(Ue/b.height),Ie=b.width,Ue=b.height)}qe=this.Df()*y.scale;var ut=Ie*qe*Ue*qe,At=he*se/ut,Mt=x.__goCache;qe=null;var Bt=wx;if(!E){if(x.sq&&Mt!==void 0&&4<ut&&At>Bt*Bt)for(Mt.gi===null&&(k1(Mt,4,ge,ye,x),k1(Mt,16,ge,ye,x)),E=Mt.gi,ge=E.length,ye=0;ye<ge&&E[ye].ratio*E[ye].ratio<At;ye++)qe=E[ye];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new vu(null).context;try{E.drawImage(this.Eg,0,0)}catch(_t){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(_t){this.vl=!0}}if(this.vl)return}}switch(E=Ie<b.width?rt.offsetX+(b.width*rt.x-Ie*rt.x):0,rt=Ue<b.height?rt.offsetY+(b.height*rt.y-Ue*rt.y):0,this.flip){case _i:a.translate(Math.min(b.width,Ie),0),a.scale(-1,1);break;case Si:a.translate(0,Math.min(b.height,Ue)),a.scale(1,-1);break;case mo:a.translate(Math.min(b.width,Ie),Math.min(b.height,Ue)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Mt!==void 0&&qe!==null&&qe.ratio!==1){a.save(),y=qe.ratio;try{a.drawImage(qe.source,te/y,ne/y,Math.min(qe.source.width,he/y),Math.min(qe.source.height,se/y),E,rt,Math.min(b.width,Ie),Math.min(b.height,Ue)),a instanceof Ml&&(this.bt=[te/y,ne/y,Math.min(qe.source.width,he/y),Math.min(qe.source.height,se/y),E,rt,Math.min(b.width,Ie),Math.min(b.height,Ue)])}catch(_t){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,he,se,E,rt,Math.min(b.width,Ie),Math.min(b.height,Ue)),a instanceof Ml&&(this.bt=[te,ne,he,se,E,rt,Math.min(b.width,Ie),Math.min(b.height,Ue)])}catch(_t){this.en=!1}switch(this.flip){case _i:a.scale(-1,1),a.translate(-Math.min(b.width,Ie),0);break;case Si:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ue));break;case mo:a.scale(-1,-1),a.translate(-Math.min(b.width,Ie),-Math.min(b.height,Ue))}}}}},ul.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,te=sl(this,!0),ne=this.Eg,se=this.qn,he=0,ge=0;(se||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(he=se?+ne.width:ne.naturalWidth,ge=se?+ne.height:ne.naturalHeight),isFinite(E.width)||te===Hn||te===Er?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=he)),x=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:he),isFinite(E.height)||te===Hn||te===_r?(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)),Fa(this.dc,a,y),this.Ge(0,0,a,y)},ul.prototype.eh=function(a,y,x,b){Ds(this,a,y,x,b)},Et.Object.defineProperties(ul.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||Ht("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Jp(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new xn),b!==null&&x&&Yh(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()||(Aa(this,!1),this.v())):x&&M1(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=gp;if(ra){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Hm&&(mp(),x=gp),b=Xn("img"),b.hn=!0,M1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Hm++}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}}}),ul.prototype.redraw=ul.prototype.redraw,ul.prototype.reloadSource=ul.prototype.hA;var Hm=0,wx=4;ul.className="Picture",gp=new Sr,ul.clearCache=mp;function L1(){this.gi=null}function k1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var te=new vu(null),ne=te.context,se=1/y;te.width=x/y,te.height=b/y,te.width!==0&&te.height!==0&&(y=new N1(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 N1(a,y){this.source=a,this.ratio=y}N1.className="PictureCacheInstance";function vp(){this.os=new Zn,this.mc=null}vp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Zn,this.mc=null};function yp(a,y,x,b,E,te){a.mc=new Ha,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()}vp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Gi(ma);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},vp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Gi(Po);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Eh(a,y,x,b,E,te,ne){var se;se===void 0&&(se=!1);var he=new Gi(as);he.point1X=y,he.point1Y=x,he.point2X=b,he.point2Y=E,he.endX=te,he.endY=ne,se&&he.close(),a.mc.segments.add(he)}function Gm(a,y,x,b,E){var te;te===void 0&&(te=!1);var ne=new Gi(Cl);ne.point1X=y,ne.point1Y=x,ne.endX=b,ne.endY=E,te&&ne.close(),a.mc.segments.add(ne)}vp.prototype.arcTo=function(a,y,x,b,E,te,ne){te===void 0&&(te=0),ne===void 0&&(ne=!1);var se=new Gi(ha);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 he;he===void 0&&(he=!1),y=new Gi(_l,ne,se,y,x,b,E,te),he&&y.close(),a.mc.segments.add(y)}function O1(a){var y=Wm;return y!==null?(Wm=null,y.reset(a),y):(y=new vp,y.reset(a),y)}var Wm=null;vp.className="StreamGeometryContext";function Os(a,y){var x=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[x]=a}Os("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Zn(Zn.u),b.endX=y,b.endY=x,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Os("Square",function(a,y,x){a="s"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Zn(Zn.u),b.endX=y,b.endY=x,b.defaultStretch=gr,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Os("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 Zn().add(new Ha(a,0,!0).add(new Gi(Po,y-a,0)).add(new Gi(as,y,a,y-te,0,y,te)).add(new Gi(Po,y,x-a)).add(new Gi(as,y-a,x,y,x-te,y-te,x)).add(new Gi(Po,a,x)).add(new Gi(as,0,x-a,te,x,0,x-te)).add(new Gi(Po,0,a)).add(new Gi(as,a,0,0,te,te,0).close())),1<te&&(E.spot1=new wr(0,0,te,te),E.spot2=new wr(1,1,-te,-te)),Qt.Nf<Qt.vm&&(Qt.Mf[b]=E,Qt.Nf++),E}),Os("Border","RoundedRectangle"),Os("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Zn(Zn.F),b.endX=y,b.endY=x,b.spot1=_u,b.spot2=Rl,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Os("Circle",function(a,y,x){a="c"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Zn(Zn.F),b.endX=y,b.endY=x,b.spot1=_u,b.spot2=Rl,b.defaultStretch=gr,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Os("TriangleRight",function(a,y,x){return new Zn().add(new Ha(0,0).add(new Gi(Po,y,.5*x)).add(new Gi(Po,0,x).close())).pm(0,.25,.5,.75)}),Os("TriangleDown",function(a,y,x){return new Zn().add(new Ha(0,0).add(new Gi(Po,y,0)).add(new Gi(Po,.5*y,x).close())).pm(.25,0,.75,.5)}),Os("TriangleLeft",function(a,y,x){return new Zn().add(new Ha(y,x).add(new Gi(Po,0,.5*x)).add(new Gi(Po,y,0).close())).pm(.5,.25,1,.75)}),Os("TriangleUp",function(a,y,x){return new Zn().add(new Ha(y,x).add(new Gi(Po,0,x)).add(new Gi(Po,.5*y,0).close())).pm(.25,.5,.75,1)}),Os("Triangle","TriangleUp"),Os("Diamond",function(a,y,x){return new Zn().add(new Ha(.5*y,0).add(new Gi(Po,0,.5*x)).add(new Gi(Po,.5*y,x)).add(new Gi(Po,y,.5*x).close())).pm(.25,.25,.75,.75)}),Os("LineH",function(a,y,x){return a=new Zn(Zn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Os("LineV",function(a,y,x){return a=new Zn(Zn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Os("None","Rectangle"),Os("BarH","Rectangle"),Os("BarV","Rectangle"),Os("MinusLine","LineH"),Os("PlusLine",function(a,y,x){return new Zn().add(new Ha(0,x/2,!1).add(new Gi(Po,y,x/2)).add(new Gi(ma,y/2,0)).add(new Gi(Po,y/2,x)))}),Os("XLine",function(a,y,x){return new Zn().add(new Ha(0,x,!1).add(new Gi(Po,y,0)).add(new Gi(ma,0,0)).add(new Gi(Po,y,x)))}),Os("LineRight",function(a,y,x){return new Zn().add(new Ha(.25*y,0,!1).add(new Gi(Po,.75*y,.5*x)).add(new Gi(Po,.25*y,x)))}),Os("LineDown",function(a,y,x){return new Zn().add(new Ha(0,.25*x,!1).add(new Gi(Po,.5*y,.75*x)).add(new Gi(Po,y,.25*x)))}),Os("LineLeft",function(a,y,x){return new Zn().add(new Ha(.75*y,0,!1).add(new Gi(Po,.25*y,.5*x)).add(new Gi(Po,.75*y,x)))}),Os("LineUp",function(a,y,x){return new Zn().add(new Ha(0,.75*x,!1).add(new Gi(Po,.5*y,.25*x)).add(new Gi(Po,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 Dv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=na,this.ir=null,this.jr="",this.lr=to,this.Gq="",this.Hq=$a,this.Pq=Ki,this.Kq=gi,this.Up=null,this.Cq=127,this.zr=oo,this.yr="gray",this.Vg=4}Dv.prototype.copy=function(){var a=new Dv;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 kr(a,y){a===void 0||a instanceof Wa||typeof a=="string"?Un.call(this,a):(Un.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 kt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Ln,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Jt(kr,Un),kr.prototype.cloneProtected=function(a){Un.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},ot=kr.prototype,ot.Af=function(a){Un.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},ot.toString=function(){var a=Nn(this.constructor)+"#"+Mi(this);return this.data!==null&&(a+="("+Fn(this.data)+")"),a};function cl(a){a.P===null?a.P=new Dv:a.P.nc&&(a.P=a.P.copy())}ot.th=function(){Un.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},ot.gk=function(a,y,x,b,E,te,ne){var se=this.diagram;se!==null&&(a===la&&y==="elements"?E instanceof Un?Ud(E,function(he){ly(se.partManager,he),Fd(se,he)}):Yh(se,E):a===La&&y==="elements"&&(E instanceof Un?Ud(E,function(he){uy(se.partManager,he,se)}):Jp(se,E)),se.cb(a,y,x,b,E,te,ne))},ot.La=function(a){if(Un.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 Un&&Ud(E,function(te){te.data!==null&&te.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},kr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},kr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},kr.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 fr),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)))}}},kr.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)}},kr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=yn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);On(y)}},kr.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 ti?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ui))break e;yu(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Un.Link),x.adornedObject=y)}if(x!==null){x.type===Un.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},kr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Fv(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 Um(a){if(ed(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function A1(a){if(a.G|=2097152,ed(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||D1(a,y,x),x=a.Ib;var b=Ln.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Ln.free(b),Rv(a,!1)}}kr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new pi);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),this.Lb=te,te.ws()||te.pp(E)},kr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=Bi;this.locationSpot.sb()&&(te=this.locationSpot);var ne=kt.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),kt.free(ne)}},kr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},kr.prototype.moveTo=function(a,y,x){a=kt.allocAt(a,y),this.move(a,x),kt.free(a)},kr.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())},kr.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())},kr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new fr),y.I(a)!==null)return y.I(a);var x=Un.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Th(a,y,x,b){b===void 0&&(b=new kt),x=x.Mc()?Bi: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}kr.prototype.mi=function(a){return a===void 0&&(a=new Ln),a.assign(this.actualBounds)},kr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function j1(a){var y=kt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof fi?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 Vd(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}kr.prototype.arrange=function(){if(Ws(this)===!1)A1(this);else{Mc(this,!1);var a=this.Ib,y=Ln.alloc();y.assign(a);var x=td(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),Ln.free(y),Rv(this,!1)}},ot=kr.prototype,ot.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Ln.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),Ln.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||xo(a,y)||(this instanceof rr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},ot.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 kt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),ed(this)===!1&&Ws(this)===!1&&(Um(this),A1(this)),!0};function I1(a,y,x,b,E){y===null||a instanceof Ui||(y=y.animationManager,y.zb&&Uu(y,a,new kt(b,E),x))}ot.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;ed(this)||Ws(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)}Um(this)},ot.Av=function(){this.G&=-2097153,Um(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,kt.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 Ui||Uu(x,a,new kt(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new kt(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){_v(a,!1),a instanceof rr&&Sh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?td(a)?(jo(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}ot.si=function(){return!0},ot.Zc=function(){return!0},ot.ph=function(){return!1},ot.Dd=function(){return!0};function Bv(a,y,x,b){y.constructor===a.constructor||H1||(H1=!0,lr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),lr(" Old class: "+Nn(a.constructor)+", new class: "+Nn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var te=a.isSelected,ne=a.isHighlighted,se=!0,he=!0,ge=!1;a instanceof rr&&(se=a.isTreeLeaf,he=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 rr&&(a.U=se?a.U|4:a.U&-5,a.U=he?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)}kr.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},kr.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},kr.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},kr.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},kr.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},kr.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},kr.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},kr.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},kr.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 ed(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function _v(a,y){a.G=y?a.G|65536:a.G&-65537}function td(a){return(a.G&131072)!==0}ot=kr.prototype,ot.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function $m(a,y){a.G=y?a.G|1048576:a.G&-1048577}ot.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},ot.N=function(){var a=this.diagram;a!==null&&!Ws(this)&&!ed(this)&&this.isVisible()&&this.Ib.w()&&a.N(Vd(this,this.Ib))},ot.v=function(){Un.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof rr&&this.labeledLink!==null&&Gs(this.labeledLink),a.$b(!0))},ot.Vo=function(a){a||(a=this.Ah,a!==null&&$v(a,this))},ot.Wo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},ot.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},ot.oz=function(){return zv(this,this)};function zv(a,y){var x=y.containingGroup;return x!==null?1+zv(a,x):y instanceof rr&&(y=y.labeledLink,y!==null)?zv(a,y):0}ot.sz=function(){return _1(this,this)};function _1(a,y){var x=y.containingGroup;return x!==null||y instanceof rr&&(x=y.labeledLink,x!==null)?_1(a,x):y}ot.Td=function(a){return a instanceof ti?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Hv(a,b,x)?y instanceof rr&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}ot.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof ti&&$m(y,!0),y instanceof rr){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 rr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof ti&&$m(y,!1),y instanceof rr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},kr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof rr&&this.isLinkLabel)},kr.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 rr&&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 nd(a,y,x,b,E,te){if(te===void 0&&(te=null),!(a.contains(y)||te!==null&&!te(y)||y instanceof Ui)){if(a.add(y),y instanceof rr){if(x&&y instanceof ti)for(var ne=y.memberParts;ne.next();)nd(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 he=se.fromNode,ge=se.toNode;he=he===null||a.contains(he),ge=ge===null||a.contains(ge),(E?he&&ge:he||ge)&&nd(a,se,x,b,E,te)}}if(1<b)for(y=y.Ou();y.next();)nd(a,y.value,x,b-1,E,te)}else if(y instanceof Kn)for(y=y.labelNodes;y.next();)nd(a,y.value,x,b,E,te)}}Et.Object.defineProperties(kr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?ri: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(La,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(la,"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&&(cl(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&&pu(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 Ui?this.type!==Un.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:Ki},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),cl(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:gi},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),cl(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&&(cl(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:$a},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),cl(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,Ws(this)===!1&&(Um(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 Ui)){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 Ui?this instanceof Ui&&(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&&(yu(x),x=x.copy(),x!==null&&Bv(this,x,y,a))):(te!==null&&te.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(yu(x),x=x.copy(),x===null||x instanceof Kn||(b=this.location.copy(),Bv(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){Bv(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&&(cl(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&&(cl(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&&(cl(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 Kn?(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&&(cl(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&&(cl(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&&(cl(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:na},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),cl(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&&(cl(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&&(cl(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:to},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),cl(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&&Ht("Cannot make a Group a member of itself: "+this.toString()),Ht("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Kv(y,this):this instanceof ti&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?$v(a,this):this instanceof ti&&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 ti){for(x=new xn,nd(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof rr)for(b=b.linksConnected;b.next();)Sp(b.value)}if(this instanceof rr){for(x=this.linksConnected;x.next();)Sp(x.value);x=this.labeledLink,x!==null&&Sp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&pu(y,-1,a))}}else Ht("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&&(cl(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof rr&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(cl(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&&(cl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:oo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),cl(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&&(cl(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&&(cl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),kr.prototype.invalidateLayout=kr.prototype.C,kr.prototype.findCommonContainingGroup=kr.prototype.px,kr.prototype.isMemberOf=kr.prototype.Td,kr.prototype.findTopLevelPart=kr.prototype.sz,kr.prototype.findSubGraphLevel=kr.prototype.oz,kr.prototype.ensureBounds=kr.prototype.Va,kr.prototype.getDocumentBounds=kr.prototype.mi,kr.prototype.findObject=kr.prototype.fb,kr.prototype.moveTo=kr.prototype.moveTo,kr.prototype.invalidateAdornments=kr.prototype.Wb,kr.prototype.clearAdornments=kr.prototype.Ej,kr.prototype.removeAdornment=kr.prototype.Jf,kr.prototype.addAdornment=kr.prototype.bh,kr.prototype.findAdornment=kr.prototype.Pj,kr.prototype.updateTargetBindings=kr.prototype.La;var H1=!1;kr.className="Part",kr.LayoutNone=0,kr.LayoutAdded=1,kr.LayoutRemoved=2,kr.LayoutShown=4,kr.LayoutHidden=8,kr.LayoutNodeSized=16,kr.LayoutGroupLayout=32,kr.LayoutNodeReplaced=64,kr.LayoutStandard=127,kr.LayoutAll=16777215;function Ui(a,y){a===void 0||a instanceof Wa||typeof a=="string"?kr.call(this,a):(kr.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)}Jt(Ui,kr),Ui.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ui.prototype.updateRelationshipsFromData=function(){},Ui.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Kn&&y instanceof fi){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 fi&&(E.ua=a)}}},Ui.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ws(a))},Ui.prototype.Zc=function(){return!1},Ui.prototype.gk=function(a,y,x,b,E,te,ne){if(a===la&&y==="elements"){if(E instanceof $s)this.$a===null&&(this.$a=E);else if(E instanceof Un){var se=E.Nl(function(he){return he instanceof $s});se instanceof $s&&this.$a===null&&(this.$a=se)}}else a===La&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Un&&this.$a.rg(b)&&(this.$a=null));kr.prototype.gk.call(this,a,y,x,b,E,te,ne)},Ui.prototype.updateAdornments=function(){},Ui.prototype.Lj=function(){},Et.Object.defineProperties(Ui.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}}}),Ui.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Il,this.er=Zm,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;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 rr(a,y){a===void 0||a instanceof Wa||typeof a=="string"?kr.call(this,a):(kr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new vn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Jt(rr,kr),rr.prototype.cloneProtected=function(a){kr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},ot=rr.prototype,ot.Af=function(a){kr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Mh(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}ot.th=function(){kr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function G1(a,y){y!==null&&(a.af===null&&(a.af=new xn),a.af.add(y))}function W1(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}ot.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=W1(this,a,y,x),a!==null&&a.Sl()},ot.gk=function(a,y,x,b,E,te,ne){a===la&&y==="elements"?this.wc=null:a===La&&y==="elements"&&(this.wc=null),kr.prototype.gk.call(this,a,y,x,b,E,te,ne)},ot.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Ll(x.fromPort),Ll(x.toPort),x.bb())}};function U1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Ll(x.fromPort),Ll(x.toPort),x.bb())}}function Ll(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Ll(y.port)}}ot.si=function(){return!0},rr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},rr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},rr.prototype.isVisible=function(){if(!kr.prototype.isVisible.call(this))return!1;var a=!0,y=wh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===wh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Oa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===ip&&(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},rr.prototype.Zb=function(a){kr.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)}},rr.prototype.qx=function(){var a=new xn,y=new xn;return $1(this,this,a,y),y.iterator};function $1(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)&&$1(a,E?ne.toNode:ne.fromNode,x,b):b.add(ne)})}}rr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new br(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},ot=rr.prototype,ot.Mo=function(a){a===void 0&&(a=null);var y=new br(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},ot.Sd=function(a){a===void 0&&(a=null);var y=new br(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},ot.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 xn,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 xn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Rr(x):ri},ot.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 xn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Rr(x):ri},ot.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 xn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Rr(x):ri},ot.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new br(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},ot.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new br(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 Km(a,y,x){Ll(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 Vm(a,y,x){Ll(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)):Sg(y)))}function Sg(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}}}rr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},ot=rr.prototype,ot.Vo=function(a){kr.prototype.Vo.call(this,a),a||(Sg(this),a=this.Yk,a!==null&&eS(a,this))},ot.Wo=function(a){kr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},ot.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,kr.prototype.Lj.call(this)},ot.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;K1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function K1(a){a.wc===null?a.wc=new fr:a.wc.clear(),a.qm(a,function(y,x){V1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function V1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Wv(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=yn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);On(x)}}}ot.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},ot.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}},ot.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)$m(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;)$m(y,!1),y=y.pg();return x},ot.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},ot.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof rr)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},ot.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 xn;return a(this,y),y},ot.uz=function(){return Z1(this,this)};function Z1(a,y){return y=y.pg(),y===null?0:1+Z1(a,y)}ot.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new br(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},ot.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 vn,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 vn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Rr(x):ri},ot.wz=function(a){a===void 0&&(a=1/0);var y=new xn;return nd(y,this,!1,a,!0),y},rr.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 xn;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),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 he=se.value;he.isTreeLink&&(he=he.To(a),he===null||he===a||y.contains(he)||(y.add(he),X1(he,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(),he={};se.next();){var ge=se.value;if(ge.isTreeLink&&(ge=ge.To(a),ge!==null&&ge!==a)){var ye=y.contains(ge);if(ye||y.add(ge),ne){var Ie=x?ge.Oo():ge.Po();he.uv=a,Ie.all(function(Ue){return function(qe){return qe===Ue.uv||!qe.isTreeExpanded}}(he))&&b.Aj(ge,E),ge.oh(),ge.Zb(!1)}ge.isTreeExpanded&&(ge.wasTreeExpanded=ge.isTreeExpanded,ye||Y1(ge,y,x,b,E,te))}he={uv:he.uv}}a.isTreeExpanded=!1}rr.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 xn;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function J1(a,y,x,b,E,te,ne){for(var se=te===a?!1:a.isTreeExpanded,he=x?a.Mo():a.Sd(),ge={};he.next();){var ye=he.value;if(ye.isTreeLink&&(se||ye.fd||ye.bb(),ye=ye.To(a),ye!==null&&ye!==a&&!y.contains(ye))){if(y.add(ye),!se){ye.Zb(!0),ye.oh();var Ie=x?ye.Oo():ye.Po();ge.vv=a,Ie.all(function(Ue){return function(qe){return qe===Ue.vv||!qe.isTreeExpanded}}(ge))&&E.Cj(ye,te)}(2<b||ye.wasTreeExpanded)&&(ye.wasTreeExpanded=!1,J1(ye,y,x,b-1,E,te,ne))}ge={vv:ge.vv}}a.isTreeExpanded=!0}Et.Object.defineProperties(rr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Zm},set:function(a){var y=this.portSpreading;y!==a&&(Mh(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&&Sh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Il},set:function(a){typeof a=="number"&&(a=new Lr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Mh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Sh(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&&(Mh(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&&(Mh(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&&(Mh(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),Gs(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&K1(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&&(Mh(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))}}}),rr.prototype.expandTree=rr.prototype.expandTree,rr.prototype.collapseTree=rr.prototype.collapseTree,rr.prototype.findTreeParts=rr.prototype.wz,rr.prototype.findTreeChildrenNodes=rr.prototype.Ou,rr.prototype.findTreeChildrenLinks=rr.prototype.Qo,rr.prototype.findTreeLevel=rr.prototype.uz,rr.prototype.findTreeParentChain=rr.prototype.vz,rr.prototype.findTreeParentNode=rr.prototype.pg,rr.prototype.findTreeParentLink=rr.prototype.kh,rr.prototype.findCommonTreeParent=rr.prototype.gz,rr.prototype.findTreeRoot=rr.prototype.xz,rr.prototype.isInTreeOf=rr.prototype.Nz,rr.prototype.findPort=rr.prototype.ns,rr.prototype.findLinksTo=rr.prototype.kz,rr.prototype.findLinksBetween=rr.prototype.jz,rr.prototype.findNodesInto=rr.prototype.Oo,rr.prototype.findNodesOutOf=rr.prototype.Po,rr.prototype.findNodesConnected=rr.prototype.Mu,rr.prototype.findLinksInto=rr.prototype.Sd,rr.prototype.findLinksOutOf=rr.prototype.Mo,rr.prototype.findExternalTreeLinksConnected=rr.prototype.qx,rr.prototype.invalidateConnectedLinks=rr.prototype.Bd,rr.prototype.invalidateLinkBundle=rr.prototype.Lz;var Ex=new bn(rr,"SpreadingNone",10),Zm=new bn(rr,"SpreadingEvenly",11),Uv=new bn(rr,"SpreadingPacked",12);rr.className="Node",rr.SpreadingNone=Ex,rr.SpreadingEvenly=Zm,rr.SpreadingPacked=Uv;function ti(a,y){a===void 0||a instanceof Wa||typeof a=="string"?rr.call(this,a):(rr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new xn,this.$a=null,this.Sc=new Ro,this.Sc.group=this,this.gl=new xn,this.tb=this.$p=null,y&&Object.assign(this,y)}Jt(ti,rr),ti.prototype.cloneProtected=function(a){rr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof $s});y instanceof $s?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())},ot=ti.prototype,ot.Af=function(a){rr.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 rr)x.Bd(y);else if(x instanceof Kn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},ot.gk=function(a,y,x,b,E,te,ne){if(a===la&&y==="elements"){if(E instanceof $s)this.$a===null?this.$a=E:this.$a!==E&&Ht("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Un){var se=E.Nl(function(he){return he instanceof $s});se instanceof $s&&(this.$a===null?this.$a=se:this.$a!==se&&Ht("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===La&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Un&&this.$a.rg(b)&&(this.$a=null));rr.prototype.gk.call(this,a,y,x,b,E,te,ne)},ot.Xl=function(a,y){rr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Un.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Un&&(a=a.Pb()),this.tb===null&&(this.tb=new Ln),a.mi(this.tb),a instanceof fi&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},ot.eh=function(a,y,x,b){this.nf=this.$a,rr.prototype.eh.call(this,a,y,x,b)},ot.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Kn||y.Va()}),rr.prototype.Va.call(this)},ot.si=function(){if(!rr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof rr){if(y.isVisible()&&Ws(y))return!1}else if(y instanceof Kn&&y.isVisible()&&Ws(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function $v(a,y){if(a.Gn.add(y)){y instanceof ti&&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 Kn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof ti&&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 Kn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}ot.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)}rr.prototype.Lj.call(this)},ti.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Cn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},ti.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Cn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},ti.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))},ot=ti.prototype,ot.Bd=function(a){var y=(this.U&65536)!==0;if(rr.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()?(Ll(x.fromPort),Ll(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Ll(x.fromPort),Ll(x.toPort),x.bb()))}}},ot.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 xn,b=y.iterator;b.next();){var E=b.value;if(E instanceof rr)for(E=E.linksConnected;E.next();){var te=E.value;y.contains(te)||x.add(te)}}return a&&(this.$p=x),x.iterator},ot.iz=function(){var a=this.Rj();a.add(this);for(var y=new xn,x=a.iterator;x.next();){var b=x.value;if(b instanceof rr)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},ot.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new xn;return a(this,y),y},ot.Rj=function(){var a=new xn;return nd(a,this,!0,0,!0),a.remove(this),a},ot.Zb=function(a){rr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},ti.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 ti&&te.isSubGraphExpanded&&(te.wasSubGraphExpanded=te.isSubGraphExpanded,Q1(te,y,x,b)),te instanceof rr)te.Bd(y),x.Aj(te,b);else if(te instanceof Kn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!1}ti.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 ti&&te.wasSubGraphExpanded&&(te.wasSubGraphExpanded=!1,q1(te,y,x,b)),te instanceof rr)te.Bd(y),x.Cj(te,b);else if(te instanceof Kn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!0}ti.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=kt.alloc(),rr.prototype.move.call(this,a,y),a=new xn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Kn&&(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 rr&&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 Kn&&(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(),Zv(E)&&E.bb());kt.free(te)}},Et.Object.defineProperties(ti.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&&Ht("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&&(Mh(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&&(Mh(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&&(Mh(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&&(Mh(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)}}}),ti.prototype.expandSubGraph=ti.prototype.expandSubGraph,ti.prototype.collapseSubGraph=ti.prototype.collapseSubGraph,ti.prototype.findSubGraphParts=ti.prototype.Rj,ti.prototype.findContainingGroupChain=ti.prototype.hz,ti.prototype.findExternalNodesConnected=ti.prototype.iz,ti.prototype.findExternalLinksConnected=ti.prototype.Lu,ti.prototype.ensureBounds=ti.prototype.Va,ti.className="Group";function $s(a){Yt.call(this),this.yb=Cs,this.ko=new Ln(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Jt($s,Yt),$s.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},$s.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return No(0,0,y.width,y.height,a.x,a.y)},$s.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof ti||a instanceof Ui)||Ht("Placeholder is not inside a Group or Adornment."),a instanceof ti){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Fa(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=kt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),kt.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 fi&&(ne=te.strokeWidth);var se=te.Df(),he=te.naturalBounds,ge=(he.width+ne)*se;ne=(he.height+ne)*se,a.type!==Un.Link&&(se=te.ga(a.category==="Selection"?$a:a.locationSpot,kt.alloc()),a.location=se,kt.free(se)),isNaN(ge)||isNaN(ne)?(a=te.ga($a,kt.alloc()),ge=Ln.allocAt(a.x,a.y,0,0),ge.Ye(te.ga(As,a)),ge.Ye(te.ga(Dl,a)),ge.Ye(te.ga(tl,a)),Fa(y,ge.width+b||0,ge.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),kt.free(a),Ln.free(ge)):(Fa(y,ge+b||0,ne+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},$s.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},$s.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof ti&&!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=Ln.alloc(),E=this.computeMemberBounds(x);var te=this.yb;return y instanceof ti&&!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)),Ln.free(x),b&&y instanceof ti&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},$s.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ti))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 Kn&&(!y.computesBoundsIncludingLinks||Vl(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},Et.Object.defineProperties($s.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Lr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),$s.className="Placeholder";function Kn(a){kr.call(this,Un.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ks,this.Om=0,this.Qm=Ks,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new vn().freeze(),this.Tg=this.Mg=null,this.ml=new Ln,this.ua=new Zn,this.u=this.o=this.Sf=this.Wf=null,this.su=new kt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Jt(Kn,kr),Kn.prototype.cloneProtected=function(a){kr.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())},ot=Kn.prototype,ot.Af=function(a){kr.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&&Ll(y),a=a.toPort,a!==null&&Ll(a)},ot.qb=function(a){a.classType===Kn?(a.value&2)===2?this.routing=a:a===Xl||a===kh||a===wp?this.curve=a:a===bg||a===e0||a===t0?this.adjusting=a:a!==Jv&&a!==Ks&&Ht("Unknown Link enum value for a Link property: "+a):kr.prototype.qb.call(this,a)},ot.Xc=function(){this.ba===null&&(this.ba=new lg)},ot.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ws(a)||ed(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ws(a)||ed(a)))},ot.zv=function(){return!1},ot.Av=function(){},ot.Zc=function(){return!1},Kn.prototype.computeAngle=function(a,y,x){return Kn.computeAngle(y,x)},Kn.computeAngle=function(a,y){switch(a){default:case Ks:a=0;break;case Pg:a=y;break;case Cg:a=y+90;break;case Eg:a=y-90;break;case Qv:a=y+180;break;case n0:a=Qt.bp(y),90<a&&270>a&&(a-=180);break;case Tg:a=Qt.bp(y+90),90<a&&270>a&&(a-=180);break;case Mg:a=Qt.bp(y-90),90<a&&270>a&&(a-=180);break;case r0: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 Sp(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&&Kv(x,a),a.Ah=y,y!==null&&$v(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}ot=Kn.prototype,ot.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&kr.prototype.oh.call(this)},ot.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},ot.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function eS(a,y){a.wd===null&&(a.wd=new xn),a.wd.add(y),a.v()}ot.Vo=function(a){if(kr.prototype.Vo.call(this,a),Zd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Km(x,this,b)}xg(this)}},ot.Wo=function(a){if(kr.prototype.Wo.call(this,a),Zd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Vm(x,this,b)}wg(this)}},ot.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))},Kn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Kn.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?kr.prototype.move.call(this,a,!1):(a=kt.allocAt(x.x+b,x.y+E),kr.prototype.move.call(this,a,!1),kt.free(a)),Lh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Kn.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},Kn.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},Kn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(So),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()===Xl))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()===Xl){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},Kn.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()===Xl))return this.ua.wx(.5);if(this.computeCurve()===Xl&&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)},ot=Kn.prototype,ot.i=function(a){return this.Nb.s[a]},ot.dd=function(a,y){this.Nb.cd(a,y)},ot.L=function(a,y,x){this.Nb.cd(a,new kt(y,x))},ot.Kz=function(a,y){this.Nb.Gb(a,y)},ot.m=function(a,y,x){this.Nb.Gb(a,new kt(y,x))},ot.ne=function(a){this.Nb.add(a)},ot.yf=function(a,y){this.Nb.add(new kt(a,y))},ot.pv=function(a){this.Nb.mb(a)},ot.Fj=function(){this.Nb.clear()};function Lh(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 vn,te=a.Nb.iterator;te.next();){var ne=te.value;E.add(new kt(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),Gs(a)),b?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&Lo(ne.animationManager,a,E),a.g("points",te,E)}}ot.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},ot.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 he=y.s,ge=he.length,ye=0;ye<ge;ye++){var Ie=he[ye];ne=Math.min(Ie.x,ne),se=Math.min(Ie.y,se),Ie.freeze()}if(y.freeze(),ge===te){for(te=0;te<ge;te++)if(ye=E[te],Ie=he[te],ye.x-x!==Ie.x-ne||ye.y-b!==Ie.y-se){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Lo(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},ot.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(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),qm(a,!1))}ot.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())}},ot.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()}}},Kn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Tf||(Tf=new rr,Tf.desiredSize=ci,Tf.Va()),this.defaultFromPoint&&(Tf.location=this.defaultFromPoint,Tf.Va(),y=a=Tf)):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?(Mf||(Mf=new rr,Mf.desiredSize=ci,Mf.Va()),this.defaultToPoint&&(Mf.location=this.defaultToPoint,Mf.Va(),E=b=Mf)):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=xp(ne),he=xp(x),ge=y===E&&y!==null,ye=this.isOrthogonal,Ie=this.curve===Xl;this.Wf=ge&&!ye?Ie=!0:!1;var Ue=this.computeAdjusting()===Ks||ge;if(!ye&&!ge&&se&&he){if(se=!1,!Ue&&3<=te&&(Ue=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,Ue,te-1,he))&&(Ue=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ue,te-1,he)),!se)if(this.Fj(),Ie){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,he=Ue.y-te.y,ge=this.computeCurviness(),Ie=ye=0;var qe=te.x+se/3,rt=te.y+he/3,ut=qe,At=rt;Qt.B(he,0)?At=0<se?At-ge:At+ge:(ye=-se/he,Ie=Math.sqrt(ge*ge/(ye*ye+1)),0>ge&&(Ie=-Ie),ut=(0>he?-1:1)*Ie+qe,At=ye*(ut-qe)+rt),qe=te.x+2*se/3,rt=te.y+2*he/3;var Mt=qe,Bt=rt;Qt.B(he,0)?Bt=0<se?Bt-ge:Bt+ge:(Mt=(0>he?-1:1)*Ie+qe,Bt=ye*(Mt-qe)+rt),this.Fj(),this.ne(te),this.yf(ut,At),this.yf(Mt,Bt),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=Ln.alloc(),y.mi(se),he=se.ca(E),Ue.mi(se),ge=se.ca(b),(he||ge)&&(ne=y.ga(Jm(ne),new kt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=Ue.ga(Jm(x),new kt),this.dd(1,this.getLinkPointFromPoint(te,Ue,x,b,!1,x))),Ln.free(se))}else{Ie=this.isAvoiding,Ue&&(ye&&Ie||ge)&&this.Fj();var _t=ge?this.computeCurviness():0;Ie=this.getLinkPoint(a,y,ne,!0,ye,b,E),qe=ut=rt=0,(ye||!se||ge)&&(At=this.computeEndSegmentLength(a,y,ne,!0),qe=this.getLinkDirection(a,y,Ie,ne,!0,ye,b,E),ge&&(se||ne.D(x)||!ye&&ne.x+x.x===1&&ne.y+x.y===1)&&(qe-=ye?90:30,0>_t&&(qe-=180)),0>qe?qe+=360:360<=qe&&(qe-=360),ge&&(At+=Math.abs(_t)*(ye?1:2)),qe===0?rt=At:qe===90?ut=At:qe===180?rt=-At:qe===270?ut=-At:(rt=At*Math.cos(qe*Math.PI/180),ut=At*Math.sin(qe*Math.PI/180)),ne.Mc()&&ge&&(At=y.ga(Bi,kt.alloc()),Mt=kt.allocAt(At.x+1e3*rt,At.y+1e3*ut),this.getLinkPointFromPoint(a,y,At,Mt,!0,Ie),kt.free(At),kt.free(Mt))),At=this.getLinkPoint(b,E,x,!1,ye,a,y);var Gt=Bt=Mt=0;if(ye||!he||ge){var Zt=this.computeEndSegmentLength(b,E,x,!1);Gt=this.getLinkDirection(b,E,At,x,!1,ye,a,y),ge&&(he||ne.D(x)||!ye&&ne.x+x.x===1&&ne.y+x.y===1)&&(Gt+=ye?0:30,0>_t&&(Gt+=180)),0>Gt?Gt+=360:360<=Gt&&(Gt-=360),ge&&(Zt+=Math.abs(_t)*(ye?1:2)),Gt===0?Mt=Zt:Gt===90?Bt=Zt:Gt===180?Mt=-Zt:Gt===270?Bt=-Zt:(Mt=Zt*Math.cos(Gt*Math.PI/180),Bt=Zt*Math.sin(Gt*Math.PI/180)),x.Mc()&&ge&&(x=E.ga(Bi,kt.alloc()),ne=kt.allocAt(x.x+1e3*Mt,x.y+1e3*Bt),this.getLinkPointFromPoint(b,E,x,ne,!1,At),kt.free(x),kt.free(ne))}x=Ie,(ye||!se||ge)&&(x=new kt(Ie.x+rt,Ie.y+ut)),ne=At,(ye||!he||ge)&&(ne=new kt(At.x+Mt,At.y+Bt)),!Ue&&!ye&&se&&3<te&&this.adjustPoints(0,Ie,te-2,ne)?this.dd(te-1,At):!Ue&&!ye&&he&&3<te&&this.adjustPoints(1,x,te-1,At)?this.dd(0,Ie):!Ue&&(ye?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,Ie),this.dd(te-1,At)):(this.Fj(),this.ne(Ie),(ye||!se||ge)&&this.ne(x),ye&&this.addOrthoPoints(x,qe,ne,Gt,a,b),(ye||!he||ge)&&this.ne(ne),this.ne(At))}return!0};function Vv(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}Kn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,te){if(te===void 0&&(te=new kt),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,he=-a.m21*E,ge=a.m11*E,ye=E*(a.m21*a.dy-a.m22*a.dx),Ie=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*he+ye,b=b.x*se+b.y*ge+Ie,ne=x.x*ne+x.y*he+ye,x=x.x*se+x.y*ge+Ie}return y.Sj(E,b,ne,x,te),a!==null&&te.transform(a),te};function Ym(a,y){var x=y.Zn;return x===null&&(x=new Lf,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}Kn.prototype.getLinkPoint=function(a,y,x,b,E,te,ne,se){if(se===void 0&&(se=new kt),x.sb()&&!xp(x))return y.ga(x,se),se;if(x.$c()){var he=Ym(this,y);if(he!==null){if(se.assign(he.Zo),E&&this.routing===nS){var ge=Ym(this,ne);if(ge!==null&&he.Gl<ge.Gl){he=kt.alloc(),ge=kt.alloc();var ye=new Ln(y.ga($a,he),y.ga(As,ge)),Ie=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,Ie,!b,E,a,y,ge),(x.Hf(Bu)||x.Hf(_s))&&a.y>=ye.y&&a.y<=ye.y+ye.height?se.y=a.y:(x.Hf(Cu)||x.Hf(dl))&&a.x>=ye.x&&a.x<=ye.x+ye.width&&(se.x=a.x),kt.free(he),kt.free(ge)}}return se}}return x=y.ga(Jm(x),kt.alloc()),this.pointsCount>(E?6:2)?(ne=b?this.i(1):this.i(this.pointsCount-2),E&&(ne=Vv(x,ne.copy()))):(he=this.computeSpot(!b,ne),te=kt.alloc(),ne=ne.ga(Jm(he),te),E&&(ne=Vv(x,ne)),kt.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),kt.free(x),se},Kn.prototype.getLinkDirection=function(a,y,x,b,E,te,ne,se){e:if(b.sb())var he=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()&&(he=Ym(this,y),he!==null))switch(he.Nc){case 1:he=270;break e;case 2:he=180;break e;default:case 4:he=0;break e;case 8:he=90;break e}he=y.ga(Bi,kt.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?Vv(he,se.copy()):x):(x=kt.alloc(),se=se.ga(Bi,x),kt.free(x)),x=Math.abs(se.x-he.x)>Math.abs(se.y-he.y)?se.x>=he.x?0:180:se.y>=he.y?90:270,kt.free(he),he=x}return b.Mc()&&ne.Td(a)&&(he+=180,360<=he&&(he-=360)),xp(b)||(a=y.li(),a===0)||(45<=a&&135>a?he+=90:135<=a&&225>a?he+=180:225<=a&&315>a&&(he+=270),360<=he&&(he-=360)),he},Kn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Ym(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)},Kn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Bi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===to?aa:y)):(a=y||this.toPort,a===null?a=Bi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===to?aa:y)),a};function xp(a){return a===aa||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:Bi}Kn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ks&&4<this.pointsCount?this.computeMidPoint(new kt):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(Bi))},Kn.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},Kn.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=pi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return vv(this,y,x,E),te===void 0&&pi.free(ne),!0;if(this.Yc(a,ne)){var se=!1;if(!this.isAtomic)for(var he=this.O.s,ge=he.length;ge--;){var ye=he[ge];if(ye.visible||ye===this.locationObject){var Ie=ye.actualBounds,Ue=this.naturalBounds;if(!(Ie.x>Ue.width||Ie.y>Ue.height||0>Ie.x+Ie.width||0>Ie.y+Ie.height)){if(Ie=pi.alloc(),Ie.set(ne),ye instanceof Un)se=ye.Cf(a,y,x,b,E,Ie);else if(this.path===ye){if(ye instanceof fi)if(se=a,Ue=b,ye.pickable===!1)se=!1;else if(Ie.multiply(ye.transform),Ue)e:{var qe=se,rt=Ie;if(ye.fh(qe,rt))se=!0;else{if(rt===void 0&&(rt=ye.transform,qe.Re(ye.actualBounds))){se=!0;break e}se=qe.left,Ue=qe.right;var ut=qe.top;qe=qe.bottom;var At=kt.alloc(),Mt=kt.alloc(),Bt=kt.alloc(),_t=pi.alloc();_t.set(rt),_t.bv(ye.transform),_t.Vj(),Mt.x=Ue,Mt.y=ut,Mt.transform(_t),At.x=se,At.y=ut,At.transform(_t),rt=!1,Kd(ye,At,Mt,Bt)?rt=!0:(At.x=Ue,At.y=qe,At.transform(_t),Kd(ye,At,Mt,Bt)?rt=!0:(Mt.x=se,Mt.y=qe,Mt.transform(_t),Kd(ye,At,Mt,Bt)?rt=!0:(At.x=se,At.y=ut,At.transform(_t),Kd(ye,At,Mt,Bt)&&(rt=!0)))),pi.free(_t),kt.free(At),kt.free(Mt),kt.free(Bt),se=rt}}else se=ye.fh(se,Ie)}else se=Ya(ye,a,b,Ie);se&&(Ue=ye,y!==null&&(Ue=y(ye)),Ue&&(x===null||x(Ue))&&E.add(Ue)),pi.free(Ie)}}}return te===void 0&&pi.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&pi.free(ne),!1},Kn.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?Xl:this.curve},Kn.prototype.computeCorner=function(){if(this.curve===Xl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Kn.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},Kn.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===Pg||b===n0||b===Qv?a=Math.max(a,E):b===Eg||b===Mg||b===Cg||b===Tg?a=Math.max(a,ne):(y=y.ga(Bi).ab(x.ga(Bi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*E)+1)),this.curve===Xl&&(a*=1.333)}}return a},Kn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ks&&x.bb()}},Kn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=rS;var y=this.Sf;if(y!==null){for(var x=yn(),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),On(x)}}return a},Kn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Kn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Kn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===e0)return!1;E===t0&&(E=bg)}switch(E){case e0: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,he=ne.y-te,ge=Math.sqrt(se*se+he*he);if(!Qt.$(ge,0)){if(Qt.$(se,0))var ye=0>he?-Math.PI/2:Math.PI/2;else ye=Math.atan(he/Math.abs(se)),0>se&&(ye=Math.PI-ye);ne=y.x;var Ie=y.y;se=b.x-ne;var Ue=b.y-Ie;for(he=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=he/ge,ye=Ue-ye,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),se=y.x-E,he=y.y-te,y=Math.sqrt(se*se+he*he),Qt.$(y,0)||(Qt.$(se,0)?he=0>he?-Math.PI/2:Math.PI/2:(he=Math.atan(he/Math.abs(se)),0>se&&(he=Math.PI-he)),se=he+ye,y*=ge,this.L(a,ne+y*Math.cos(se),Ie+y*Math.sin(se)));this.dd(x,b)}}return!0;case t0:if(te=this.i(a),Ie=this.i(x),!te.Xa(y)||!Ie.Xa(b)){E=te.x,te=te.y,ne=Ie.x,Ie=Ie.y,ge=(ne-E)*(ne-E)+(Ie-te)*(Ie-te),se=y.x,ye=y.y,he=b.x,Ue=b.y;var qe=1;if(he-se!==0){var rt=(Ue-ye)/(he-se);qe=Math.sqrt(1+1/(rt*rt))}else rt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ut=y.x,At=y.y,Mt=.5;ge!==0&&(Mt=((E-ut)*(E-ne)+(te-At)*(te-Ie))/ge);var Bt=E+Mt*(ne-E),_t=te+Mt*(Ie-te);y=Math.sqrt((ut-Bt)*(ut-Bt)+(At-_t)*(At-_t)),At<rt*(ut-Bt)+_t&&(y=-y),0<rt&&(y=-y),ut=se+Mt*(he-se),Mt=ye+Mt*(Ue-ye),rt!==0?(y=ut+y/qe,this.L(a,y,Mt-(y-ut)/rt)):this.L(a,ut,Mt+y)}this.dd(x,b)}return!0;case bg:e:{if(this.isOrthogonal&&(E=this.i(a),te=this.i(a+1),ne=this.i(a+2),se=te.x,ye=te.y,Ie=se,ge=ye,Qt.B(E.y,te.y)?Qt.B(te.x,ne.x)?ye=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)&&(ye=y.y)),this.L(a+1,se,ye),E=this.i(x),te=this.i(x-1),ne=this.i(x-2),se=te.x,ye=te.y,he=se,Ue=ye,Qt.B(E.y,te.y)?Qt.B(te.x,ne.x)?ye=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)&&(ye=b.y)),this.L(x-1,se,ye),Zv(this))){this.L(a+1,Ie,ge),this.L(x-1,he,Ue),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Kn.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(),he=te.actualBounds.copy();if(se.w()&&he.w()){se.Bc(Lg,Lg),he.Bc(Lg,Lg),se.Ye(a),he.Ye(x);var ge=kt.alloc(),ye=kt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&he.right>a.x||b===90&&x.y>a.y&&he.right>a.x?(ge.h(x.x,a.y),ye.h(x.x,(a.y+x.y)/2),b===180?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ye.x=ge.x,ye.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.x=a.x<he.left?this.computeMidOrthoPosition(a.x,a.y,he.left,x.y,!1):a.x<he.right&&(b===270&&a.y<he.top||b===90&&a.y>he.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):he.right,ye.x=ge.x,ye.y=x.y):b===0&&a.x<he.left&&a.y>he.top&&a.y<he.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),ye.y=ge.y)):(ge.h(a.x,x.y),ye.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===180&&(he.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,he.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),ye.x=x.x,ye.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x>=se.left&&x.x<=a.x||a.x<=he.right&&a.x>=x.x?(b===90||b===270)&&(ge.h(Math.max((a.x+x.x)/2,a.x),a.y),ye.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,he.top)):Math.max(x.y,b===0?se.bottom:Math.max(se.bottom,he.bottom)),ye.x=x.x,ye.y=ge.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&he.left<a.x||b===90&&x.y>a.y&&he.left<a.x?(ge.h(x.x,a.y),ye.h(x.x,(a.y+x.y)/2),b===0?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ye.x=ge.x,ye.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.x=a.x>he.right?this.computeMidOrthoPosition(a.x,a.y,he.right,x.y,!1):a.x>he.left&&(b===270&&a.y<he.top||b===90&&a.y>he.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):he.left,ye.x=ge.x,ye.y=x.y):b===180&&a.x>he.right&&a.y>he.top&&a.y<he.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),ye.y=ge.y)):(ge.h(a.x,x.y),ye.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===0&&(he.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,he.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),ye.x=x.x,ye.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x<=se.right&&x.x>=a.x||a.x>=he.left&&a.x<=x.x?(b===90||b===270)&&(ge.h(Math.min((a.x+x.x)/2,a.x),a.y),ye.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,he.top)):Math.max(x.y,b===180?se.bottom:Math.max(se.bottom,he.bottom)),ye.x=x.x,ye.y=ge.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&he.bottom>a.y||b===0&&x.x>a.x&&he.bottom>a.y?(ge.h(a.x,x.y),ye.h((a.x+x.x)/2,x.y),b===270?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ye.x=x.x,ye.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ge.y=a.y<he.top?this.computeMidOrthoPosition(a.x,a.y,x.x,he.top,!0):a.y<he.bottom&&(b===180&&a.x<he.left||b===0&&a.x>he.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):he.bottom,ye.x=x.x,ye.y=ge.y):b===90&&a.y<he.top&&a.x>he.left&&a.x<he.right&&(ge.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),ge.y=a.y,ye.x=ge.x)):(ge.h(x.x,a.y),ye.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===270&&(he.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,he.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),ye.x=ge.x,ye.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y>=se.top&&x.y<=a.y||a.y<=he.bottom&&a.y>=x.y?(b===0||b===180)&&(ge.h(a.x,Math.max((a.y+x.y)/2,a.y)),ye.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,he.left)):Math.max(x.x,b===90?se.right:Math.max(se.right,he.right)),ye.x=ge.x,ye.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&he.top<a.y||b===0&&x.x>a.x&&he.top<a.y?(ge.h(a.x,x.y),ye.h((a.x+x.x)/2,x.y),b===90?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ye.x=x.x,ye.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ge.y=a.y>he.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,he.bottom,!0):a.y>he.top&&(b===180&&a.x<he.left||b===0&&a.x>he.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):he.top,ye.x=x.x,ye.y=ge.y):b===270&&a.y>he.bottom&&a.x>he.left&&a.x<he.right&&(ge.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),ge.y=a.y,ye.x=ge.x)):(ge.h(x.x,a.y),ye.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===90&&(he.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,he.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),ye.x=ge.x,ye.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y<=se.bottom&&x.y>=a.y||a.y>=he.top&&a.y<=x.y?(b===0||b===180)&&(ge.h(a.x,Math.min((a.y+x.y)/2,a.y)),ye.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,he.left)):Math.max(x.x,b===270?se.right:Math.max(se.right,he.right)),ye.x=ge.x,ye.y=x.y)));var Ie=x;if(this.isAvoiding){var Ue=this.diagram;if(Ue===null||E===te||this.layer.isTemporary||!ep(Ue)||se.ca(Ie)&&!te.Td(E)||he.ca(a)&&!E.Td(te))y=!1;else{var qe=tp(Ue,!0,this.containingGroup,null);if(this.segmentIndex!==17&&qe.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))&&qe.Yj(Math.min(ge.x,ye.x),Math.min(ge.y,ye.y),Math.abs(ge.x-ye.x),Math.abs(ge.y-ye.y))&&qe.Yj(Math.min(ye.x,Ie.x),Math.min(ye.y,Ie.y),Math.abs(ye.x-Ie.x),Math.abs(ye.y-Ie.y)))y=!1;else{E=a,te=Ie;var rt=x=null;if(Ue.isVirtualized){Ue=qe.bounds.copy(),Ue.Bc(-qe.Ho,-qe.Go);var ut=kt.alloc();bp(qe,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,ut)?(x=a=ut.copy(),y=ut.ab(ge)):Qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,ge.x,ge.y,ye.x,ye.y,ut)?(x=a=ut.copy(),y=ut.ab(ye)):Qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,ye.x,ye.y,Ie.x,Ie.y,ut)&&(x=a=ut.copy(),y=ut.ab(Ie))),bp(qe,Ie.x,Ie.y)||(Qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,Ie.x,Ie.y,ye.x,ye.y,ut)?(rt=Ie=ut.copy(),b=ye.ab(ut)):Qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,ye.x,ye.y,ge.x,ge.y,ut)?(rt=Ie=ut.copy(),b=ge.ab(ut)):Qt.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,ge.x,ge.y,a.x,a.y,ut)&&(rt=Ie=ut.copy(),b=a.ab(ut))),kt.free(ut)}se=se.copy().ed(he),se.Bc(qe.Ho*qe.Os,qe.Go*qe.Os),aS(qe,a,y,Ie,b,se,!0),he=Ac(qe,Ie.x,Ie.y),!qe.abort&&he>=Pp&&(oS(qe),se.Bc(qe.Ho*qe.Hx,qe.Go*qe.Ix),aS(qe,a,y,Ie,b,se,!1),he=Ac(qe,Ie.x,Ie.y)),!qe.abort&&he<Pp&&Ac(qe,Ie.x,Ie.y)!==Nh?(Xv(this,qe,Ie.x,Ie.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=Ie.y):(se.x=Ie.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)<=qe.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)<=qe.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(ye.copy())),kt.free(ge),kt.free(ye)}},Kn.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 Zv(a){if(a.diagram===null||!a.isAvoiding||!ep(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=tp(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 Xv(a,y,x,b,E,te,ne){var se=y.Ho,he=y.Go,ge=Ac(y,x,b),ye=x,Ie=b;for(E===0?ye+=se:E===90?Ie+=he:E===180?ye-=se:Ie-=he,E!==ne&&ge>Xd&&Ac(y,ye,Ie)!==ge-1&&(Ac(y,x-se,b)===ge-1?(E=180,ye=x-se,Ie=b):Ac(y,x+se,b)===ge-1?(E=0,ye=x+se,Ie=b):Ac(y,x,b-he)===ge-1?(E=270,ye=x,Ie=b-he):Ac(y,x,b+he)===ge-1&&(E=90,ye=x,Ie=b+he));ge>Xd&&Ac(y,ye,Ie)===ge-1;)x=ye,b=Ie,E===0?ye+=se:E===90?Ie+=he:E===180?ye-=se:Ie-=he,--ge;te?ge>Xd&&(E===180||E===0?x=Math.floor(x/se)*se+se/2:(E===90||E===270)&&(b=Math.floor(b/he)*he+he/2)):(x=Math.floor(x/se)*se+se/2,b=Math.floor(b/he)*he+he/2),ge>Xd&&(te=E,ne=x,ye=b,E===0?(te=90,ye+=he):E===90?(te=180,ne-=se):E===180?(te=270,ye-=he):E===270&&(te=0,ne+=se),Ac(y,ne,ye)===ge-1?Xv(a,y,ne,ye,te,!1,te):(ne=x,ye=b,E===0?(te=270,ye-=he):E===90?(te=0,ne+=se):E===180?(te=90,ye+=he):E===270&&(te=180,ne-=se),Ac(y,ne,ye)===ge-1&&Xv(a,y,ne,ye,te,!1,te))),a.yf(x,b)}Kn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=co(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=co(y,a,b.x,b.y,x.x,x.y);b=x,se<E&&(te=ne,E=se)}return te},Kn.prototype.qc=function(){this.lk=!1,this.v()},Kn.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 fi&&(E.ua=this.ua)}}},Kn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Zd(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===Xl&&3<=y&&!Qt.$(this.smoothness,0))if(y===3){var se=this.i(1);b=Math.min(E.x,se.x);var he=Math.min(E.y,se.y);se=this.i(2),b=Math.min(b,se.x),he=Math.min(he,se.y)}else{if(this.isOrthogonal)for(he=0;he<y;he++)se=b[he],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),he=this.i(b),te.x=Math.min(he.x,te.x),te.y=Math.min(he.y,te.y);b=te.x,he=te.y}else{for(he=0;he<y;he++)se=b[he],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);b=te.x,he=te.y}if(b-=this.su.x,he-=this.su.y,E.x-=b,E.y-=he,y!==2||Zd(this)){if(a.type=Zn.o,se=O1(a),this.computeShortLength(!0)!==0&&(E=Cf(this,E,!0,te)),yp(se,E.x,E.y,!1),ne===Xl&&3<=y&&!Qt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-he,E=this.i(2).copy(),E.x-=b,E.y-=he,this.computeShortLength(!1)!==0&&(E=Cf(this,E,!1,te)),Eh(se,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=kt.allocAt(b,he),x=kt.alloc(),x.assign(this.i(1)),te=kt.allocAt(b,he),E=kt.allocAt(b,he),ne=this.i(0);for(var ge,ye=this.smoothness/3,Ie=1;Ie<this.pointsCount-1;Ie++){ge=this.i(Ie);var Ue=ne,qe=ge,rt=this.i(Yv(this,ge,Ie,!1));if((!Qt.$(Ue.x,qe.x)||!Qt.$(qe.x,rt.x))&&(!Qt.$(Ue.y,qe.y)||!Qt.$(qe.y,rt.y))){var ut=ye;isNaN(ut)&&(ut=this.smoothness/3);var At=Ue.x;Ue=Ue.y;var Mt=qe.x;qe=qe.y;var Bt=rt.x;rt=rt.y;var _t=ut*Qm(At,Ue,Mt,qe);ut*=Qm(Mt,qe,Bt,rt),Qt.$(Ue,qe)&&Qt.$(Mt,Bt)&&(Mt>At?rt>qe?(te.x=Mt-_t,te.y=qe-_t,E.x=Mt+ut,E.y=qe+ut):(te.x=Mt-_t,te.y=qe+_t,E.x=Mt+ut,E.y=qe-ut):rt>qe?(te.x=Mt+_t,te.y=qe-_t,E.x=Mt-ut,E.y=qe+ut):(te.x=Mt+_t,te.y=qe+_t,E.x=Mt-ut,E.y=qe-ut)),Qt.$(At,Mt)&&Qt.$(qe,rt)&&(qe>Ue?(Bt>Mt?(te.x=Mt-_t,te.y=qe-_t,E.x=Mt+ut):(te.x=Mt+_t,te.y=qe-_t,E.x=Mt-ut),E.y=qe+ut):(Bt>Mt?(te.x=Mt-_t,te.y=qe+_t,E.x=Mt+ut):(te.x=Mt+_t,te.y=qe+_t,E.x=Mt-ut),E.y=qe-ut)),(Qt.$(At,Mt)&&Qt.$(Mt,Bt)||Qt.$(Ue,qe)&&Qt.$(qe,rt))&&(At=.5*(At+Bt),Ue=.5*(Ue+rt),te.x=At,te.y=Ue,E.x=At,E.y=Ue),(Ie===1||Ie===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)),Eh(se,x.x-b,x.y-he,te.x-b,te.y-he,ge.x-b,ge.y-he),y.set(te),x.set(E),ne=ge}}ge=ne.x,ne=ne.y,ye=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ye=Cf(this,ye.copy(),!1,Fi)),ge=.5*(ge+ye.x),ne=.5*(ne+ye.y),Eh(se,E.x-b,E.y-he,ge-b,ne-he,ye.x-b,ye.y-he),kt.free(y),kt.free(x),kt.free(te),kt.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=Cf(this,ne.copy(),!1,Fi)),Eh(se,te.x-b,te.y-he,E.x-b,E.y-he,ne.x-b,ne.y-he);else{for(te=kt.alloc(),te.assign(this.i(0)),E=kt.alloc(),E.assign(te),ne=this.computeCorner(),Ie=1,ge=0;Ie<y;){if(Ie=Yv(this,te,Ie,1<Ie),ye=this.i(Ie),Ie>=y-1){if(!te.D(ye))this.computeShortLength(!1)!==0&&(ye=Cf(this,ye.copy(),!1,Fi)),Ef(this,se,-b,-he,te,ye,x);else if(ge===0)for(Ie=1;Ie<y;)E.assign(te),ye=this.i(Ie++),Ef(this,se,-b,-he,te,ye,x),te.assign(ye);break}if(ge=Yv(this,ye,Ie+1,Ie<y-3),Ie=-b,At=-he,Ue=ye,Mt=this.i(ge),ut=x,Qt.B(te.y,Ue.y)&&Qt.B(Ue.x,Mt.x))if(rt=Math.min(ne,Math.abs(Ue.x-E.x)/2),rt=_t=Math.min(rt,Math.abs(Mt.y-Ue.y)/2),Qt.B(rt,0))Ef(this,se,Ie,At,te,Ue,ut),te.assign(Ue);else{var Gt=Ue.x,Zt=Ue.y;qe=Gt,Bt=Zt,Ue.x>te.x?Gt=Ue.x-rt:Gt=Ue.x+rt,Mt.y>Ue.y?Bt=Ue.y+_t:Bt=Ue.y-_t,Mt=kt.allocAt(Gt,Zt),Ef(this,se,Ie,At,te,Mt,ut),kt.free(Mt),Gm(se,Ue.x+Ie,Ue.y+At,qe+Ie,Bt+At),te.h(qe,Bt)}else Qt.B(te.x,Ue.x)&&Qt.B(Ue.y,Mt.y)?(rt=Math.min(ne,Math.abs(Ue.y-E.y)/2),rt=_t=Math.min(rt,Math.abs(Mt.x-Ue.x)/2),Qt.B(_t,0)?(Ef(this,se,Ie,At,te,Ue,ut),te.assign(Ue)):(Gt=Ue.x,Zt=Ue.y,qe=Gt,Bt=Zt,Ue.y>te.y?Zt=Ue.y-rt:Zt=Ue.y+rt,Mt.x>Ue.x?qe=Ue.x+_t:qe=Ue.x-_t,Mt=kt.allocAt(Gt,Zt),Ef(this,se,Ie,At,te,Mt,ut),kt.free(Mt),Gm(se,Ue.x+Ie,Ue.y+At,qe+Ie,Bt+At),te.h(qe,Bt))):(Ef(this,se,Ie,At,te,Ue,ut),te.assign(Ue));E.assign(ye),Ie=ge}kt.free(te)}Wm=se}else se=this.i(1).copy(),se.x-=b,se.y-=he,this.computeShortLength(!0)!==0&&(E=Cf(this,E,!0,te)),this.computeShortLength(!1)!==0&&(se=Cf(this,se,!1,te)),a.type=Zn.j,a.startX=E.x,a.startY=E.y,a.endX=se.x,a.endY=se.y;return this.lk=!0,a};function Qm(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 Cf(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=Qm(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=Qm(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 Yv(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}Kn.prototype.computeJumpLength=function(){return 10};function Ef(a,y,x,b,E,te,ne){if(!ne&&Zd(a)){ne=a.computeJumpLength();var se=ne/2,he=[],ge=0;if(a.isVisible()&&(ge=Tx(a,E,te,he)),0<ge){if(Qt.B(E.y,te.y))if(E.x<te.x)for(var ye=0;ye<ge;){var Ie=Math.max(E.x,Math.min(he[ye++]-se,te.x-ne));y.lineTo(Ie+x,te.y+b);for(var Ue=Ie+x,qe=Math.min(Ie+ne,te.x);ye<ge&&(Ie=he[ye],Ie<qe+ne);)ye++,qe=Math.min(Ie+se,te.x);Ie=te.y-ne+b,qe+=x;var rt=te.y+b;a.curve===kh?yp(y,qe,rt,!1):Eh(y,Ue,Ie,qe,Ie,qe,rt)}else for(--ge;0<=ge;){for(ye=Math.min(E.x,Math.max(he[ge--]+se,te.x+ne)),y.lineTo(ye+x,te.y+b),Ue=ye+x,Ie=Math.max(ye-ne,te.x);0<=ge&&(ye=he[ge],ye>Ie-ne);)ge--,Ie=Math.max(ye-se,te.x);ye=te.y-ne+b,Ie+=x,qe=te.y+b,a.curve===kh?yp(y,Ie,qe,!1):Eh(y,Ue,ye,Ie,ye,Ie,qe)}else if(Qt.B(E.x,te.x))if(E.y<te.y)for(ye=0;ye<ge;){for(Ie=Math.max(E.y,Math.min(he[ye++]-se,te.y-ne)),y.lineTo(te.x+x,Ie+b),Ue=Ie+b,Ie=Math.min(Ie+ne,te.y);ye<ge&&(qe=he[ye],qe<Ie+ne);)ye++,Ie=Math.min(qe+se,te.y);qe=te.x-ne+x,rt=te.x+x,Ie+=b,a.curve===kh?yp(y,rt,Ie,!1):Eh(y,qe,Ue,qe,Ie,rt,Ie)}else for(--ge;0<=ge;){for(ye=Math.min(E.y,Math.max(he[ge--]+se,te.y+ne)),y.lineTo(te.x+x,ye+b),Ue=ye+b,ye=Math.max(ye-ne,te.y);0<=ge&&(Ie=he[ge],Ie>ye-ne);)ge--,ye=Math.max(Ie-se,te.y);Ie=te.x-ne+x,qe=te.x+x,ye+=b,a.curve===kh?yp(y,qe,ye,!1):Eh(y,Ie,Ue,Ie,ye,qe,ye)}}}y.lineTo(te.x+x,te.y+b)}function Tx(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 he=te[se];if(he instanceof Kn){if(he===a)return 0<b.length&&b.sort(function(ye,Ie){return ye-Ie}),b.length;if(he.isVisible()&&Zd(he)){var ge=he.routeBounds;ge.w()&&a.routeBounds.Yc(ge)&&!a.usesSamePort(he)&&(ge=he.path,ge!==null&&ge.Ed()&&Mx(y,x,b,he))}}}}}return 0<b.length&&b.sort(function(ye,Ie){return ye-Ie}),b.length}function Mx(a,y,x,b){for(var E=Qt.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=kt.alloc(),he=1;he<te;he++){var ge=b.i(he);if(he<te-1){var ye=b.i(he+1);if(ne.y===ge.y&&ge.y===ye.y){if(ge.x>ne.x&&ye.x>=ge.x||ge.x<ne.x&&ye.x<=ge.x)continue}else if(ne.x===ge.x&&ge.x===ye.x&&(ge.y>ne.y&&ye.y>=ge.y||ge.y<ne.y&&ye.y<=ge.y))continue}e:{ye=a.x;var Ie=a.y,Ue=y.x,qe=y.y,rt=ne.x;ne=ne.y;var ut=ge.x,At=ge.y;if(Qt.B(ye,Ue)){if(!Qt.B(Ie,qe)&&Qt.B(ne,At)&&Math.min(Ie,qe)<ne&&Math.max(Ie,qe)>ne&&Math.min(rt,ut)<ye&&Math.max(rt,ut)>ye&&!Qt.B(rt,ut)){se.x=ye,se.y=ne,ye=!0;break e}}else if(Qt.B(Ie,qe)&&Qt.B(rt,ut)&&Math.min(ye,Ue)<rt&&Math.max(ye,Ue)>rt&&Math.min(ne,At)<Ie&&Math.max(ne,At)>Ie&&!Qt.B(ne,At)){se.x=rt,se.y=Ie,ye=!0;break e}se.x=0,se.y=0,ye=!1}ye&&(E?x.push(se.x):x.push(se.y)),ne=ge}kt.free(se)}function Zd(a){return a=a.curve,a===wp||a===kh}function qm(a,y){(y||Zd(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()))}Kn.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 he=E[se];he instanceof Kn&&(he===this?te=!0:te&&tS(this,he,a))}}else if(b)for(te=E.Pa.s,E=te.length,ne=0;ne<E;ne++)se=te[ne],se instanceof Kn&&tS(this,se,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&Zd(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Kn.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},Kn.prototype.isVisible=function(){if(!kr.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},Kn.prototype.Zb=function(a){if(kr.prototype.Zb.call(this,a),a&&qm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Kn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?bg:this.qk};function xg(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,he=0;he<se;he++){var ge=ne[he];(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=W1(y,x,b,E),te===null&&(te=new i0(y,b,x,E),G1(y,te),G1(x,te)),te.links=a,y=0;y<a.length;y++)a[y].Sf=te;te.Sl()}}}}function wg(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(gn(y.links,a),y.Sl()))}Kn.prototype.ph=function(){return!0},Et.Object.defineProperties(Kn.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&&Vm(y,this,x),wg(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&&Km(a,this,E),xg(this),this.C(1)),this.g("fromNode",y,a),Sp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Ll(x),wg(this),this.ff=a;var b=this.fromPort;b!==null&&Ll(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))),xg(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&&Vm(y,this,x),wg(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&&Km(a,this,E),xg(this),this.C(1)),this.g("toNode",y,a),Sp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Ll(x),wg(this),this.vf=a;var b=this.toPort;b!==null&&Ll(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))),xg(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:to},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Ll(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&&Wn(a,">= 0",Kn,"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:to},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Ll(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&&Wn(a,">= 0",Kn,"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?ri: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&&Sg(this.fromNode),this.toNode!==null&&Sg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof fi?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()===Xl&&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),he=this.i(te);Qt.Dl(E.x,E.y,ne.x,ne.y,se.x,se.y,he.x,he.y,.5,a),y=Math.min(he.x,y),x=Math.min(he.y,x),E=he}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 kt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(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 vn,b=0;b<a.length/2;b++)E=new kt(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(!on(te)||typeof te.x!="number"||isNaN(te.x)||typeof te.y!="number"||isNaN(te.y)){b=!1;break}}if(b)for(x=new vn,b=0;b<a.length;b++)E=a[b],x.add(new kt(E.x,E.y).freeze())}}else if(a instanceof vn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Ht("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Lo(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||!xp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!xp(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(),qm(this,y===kh||y===wp||a===kh||a===wp),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(),qm(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)}}}),Kn.prototype.invalidateOtherJumpOvers=Kn.prototype.Xo,Kn.prototype.findClosestSegment=Kn.prototype.ez,Kn.prototype.updateRoute=Kn.prototype.vg,Kn.prototype.invalidateRoute=Kn.prototype.bb,Kn.prototype.rollbackRoute=Kn.prototype.rv,Kn.prototype.commitRoute=Kn.prototype.zf,Kn.prototype.startRoute=Kn.prototype.uh,Kn.prototype.clearPoints=Kn.prototype.Fj,Kn.prototype.removePoint=Kn.prototype.pv,Kn.prototype.addPointAt=Kn.prototype.yf,Kn.prototype.addPoint=Kn.prototype.ne,Kn.prototype.insertPointAt=Kn.prototype.m,Kn.prototype.insertPoint=Kn.prototype.Kz,Kn.prototype.setPointAt=Kn.prototype.L,Kn.prototype.setPoint=Kn.prototype.dd,Kn.prototype.getPoint=Kn.prototype.i,Kn.prototype.getOtherPort=Kn.prototype.Cz,Kn.prototype.getOtherNode=Kn.prototype.To;var Tf=null,Mf=null,Jv=new bn(Kn,"Normal",1),Lx=new bn(Kn,"Orthogonal",2),kx=new bn(Kn,"AvoidsNodes",6),nS=new bn(Kn,"AvoidsNodesStraight",7),Ks=new bn(Kn,"None",0),Xl=new bn(Kn,"Bezier",9),kh=new bn(Kn,"JumpGap",10),wp=new bn(Kn,"JumpOver",11),bg=new bn(Kn,"End",17),e0=new bn(Kn,"Scale",18),t0=new bn(Kn,"Stretch",19),Pg=new bn(Kn,"OrientAlong",21),Cg=new bn(Kn,"OrientPlus90",22),Eg=new bn(Kn,"OrientMinus90",23),Qv=new bn(Kn,"OrientOpposite",24),n0=new bn(Kn,"OrientUpright",25),Tg=new bn(Kn,"OrientPlus90Upright",26),Mg=new bn(Kn,"OrientMinus90Upright",27),r0=new bn(Kn,"OrientUpright45",28),rS=16,iS=14,Lg=8;Kn.className="Link",Kn.Normal=Jv,Kn.Orthogonal=Lx,Kn.AvoidsNodes=kx,Kn.AvoidsNodesStraight=nS,Kn.None=Ks,Kn.Bezier=Xl,Kn.JumpGap=kh,Kn.JumpOver=wp,Kn.End=bg,Kn.Scale=e0,Kn.Stretch=t0,Kn.OrientAlong=Pg,Kn.OrientPlus90=Cg,Kn.OrientMinus90=Eg,Kn.OrientOpposite=Qv,Kn.OrientUpright=n0,Kn.OrientPlus90Upright=Tg,Kn.OrientMinus90Upright=Mg,Kn.OrientUpright45=r0,Kn.EndSegmentStep=8,Kn.CurvinessStart=rS,Kn.SpacingMin=iS,Kn.OrthoShortCut=Lg;function i0(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=[]}i0.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},i0.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))}},i0.className="LinkBundle";function kg(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}kg.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=qv,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 bp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Ac(a,y,x){return bp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):qv}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]>=Xd&&(x[b]=qv)}kg.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]===Nh)return!1}return!0};function jc(a,y,x,b,E,te,ne,se,he){if(!(y<te||y>ne||x<se||x>he)){var ge=y|0,ye=x|0,Ie=a.ac[ge][ye];if(Ie>=Xd&&Ie<Pp)for(E?ye+=b:ge+=b,Ie+=1;te<=ge&&ge<=ne&&se<=ye&&ye<=he&&!(Ie>=a.ac[ge][ye]);)a.ac[ge][ye]=Ie,Ie+=1,E?ye+=b:ge+=b;if(ge=E?ye:ge,E)if(0<b)for(x+=b;x<ge;x+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else for(x+=b;x>ge;x+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else if(0<b)for(y+=b;y<ge;y+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else for(y+=b;y>ge;y+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he)}}function o0(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var ge=Nh,ye=Xd;for(a.ac[y][x]=ye;ge===Nh&&y>te&&y<ne&&x>se&&x<he;)ye+=1,a.ac[y][x]=ye,E?x+=b:y+=b,ge=a.ac[y][x]}function a0(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var ge=Nh,ye=Pp;for(a.ac[y][x]=ye;ge===Nh&&y>te&&y<ne&&x>se&&x<he;)a.ac[y][x]=ye,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,he=y.y;if(bp(a,se,he)){se-=a.Nd,se/=a.rc,he-=a.Od,he/=a.sc;var ge=b.x,ye=b.y;if(bp(a,ge,ye))if(ge-=a.Nd,ge/=a.rc,ye-=a.Od,ye/=a.sc,1>=Math.abs(se-ge)&&1>=Math.abs(he-ye))a.abort=!0;else{var Ie=te.x;b=te.y,y=te.x+te.width;var Ue=te.y+te.height;Ie-=a.Nd,Ie/=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,Ie|0)),y=Math.min(a.di,Math.max(0,y|0)),Ie=Math.max(0,Math.min(a.ei,b|0)),Ue=Math.min(a.ei,Math.max(0,Ue|0)),b=a.ac,se|=0,he|=0,ge|=0,ye|=0;var qe=x===0||x===90?1:-1;if(x=x===90||x===270,b[se][he]===Nh?(o0(a,se,he,qe,x,te,y,Ie,Ue),o0(a,se,he,1,!x,te,y,Ie,Ue),o0(a,se,he,-1,!x,te,y,Ie,Ue)):o0(a,se,he,qe,x,se,he,se,he),b[ge][ye]===Nh?(a0(a,ge,ye,E===0||E===90?1:-1,E===90||E===270,te,y,Ie,Ue),a0(a,ge,ye,1,!(E===90||E===270),te,y,Ie,Ue),a0(a,ge,ye,-1,!(E===90||E===270),te,y,Ie,Ue)):a0(a,ge,ye,qe,x,ge,ye,ge,ye),x=yn(),ne&&sS(a,ge,ye,E,se,he,x))for((x[0]!==ge||x[1]!==ye)&&(x.unshift(ye),x.unshift(ge)),(x[x.length-2]!==se||x[x.length-1]!==he)&&(x.push(se),x.push(he)),a=Xd,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 jc(a,se,he,1,!1,te,y,Ie,Ue),jc(a,se,he,-1,!1,te,y,Ie,Ue),jc(a,se,he,1,!0,te,y,Ie,Ue),jc(a,se,he,-1,!0,te,y,Ie,Ue);On(x)}}}}function sS(a,y,x,b,E,te,ne){for(var se=a.ac,he=y,ge=x;;){if(he===E&&ge===te)return!0;var ye=he,Ie=ge;if(b===0)if(ye<E)ye++;else break;else if(b===90)if(Ie<te)Ie++;else break;else if(b===180)if(ye>E)ye--;else break;else if(Ie>te)Ie--;else break;var Ue=se[ye][Ie];if(Ue===0||Ue===ey)break;he=ye,ge=Ie}for(;;){if(ye=b,Ie=he,Ue=ge,b===0?Ue<te?(ye=90,Ue++):Ue>te&&(ye=270,Ue--):b===90?Ie<E?(ye=0,Ie++):Ie>E&&(ye=180,Ie--):b===180?Ue<te?(ye=90,Ue++):Ue>te&&(ye=270,Ue--):Ie<E?(ye=0,Ie++):Ie>E&&(ye=180,Ie--),Ie=se[Ie][Ue],ye!==b&&Ie!==0&&Ie!==ey){if(ne.push(he),ne.push(ge),sS(a,he,ge,ye,E,te,ne))return!0;ne.pop(),ne.pop()}if(se[he][ge]=ey,b===0){if(he===y)return!1;he--}else if(b===90){if(ge===x)return!1;ge--}else if(b===180){if(he===y)return!1;he++}else{if(ge===x)return!1;ge++}}}Et.Object.defineProperties(kg.prototype,{bounds:{get:function(){return new Ln(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 Nh=0,Xd=1,Pp=999999,qv=Pp+1,ey=Pp+2;kg.className="PositionArray";function Lf(){zr(this),this.port=this.node=null,this.pe=[],this.ap=!1}Lf.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 Nx(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}Lf.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 ti?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($a,kt.alloc()),he=a.port.ga(As,kt.alloc());for(E=Ln.allocAt(se.x,se.y,0,0),E.Ye(he),kt.free(se),kt.free(he),se=kt.allocAt(E.x+E.width/2,E.y+E.height/2),he=a.port.li(),ne=ne.iterator;ne.next();){var ge=ne.value;if(ge.isVisible()&&ge.fromPort!==ge.toPort){var ye=ge.fromPort===a.port||ge.fromNode!==null&&ge.fromNode.Td(b),Ie=ge.computeSpot(ye,a.port);if(Ie.$c()&&(ye=ye?ge.toPort:ge.fromPort,ye!==null)){var Ue=ye.part;if(Ue!==null){var qe=Ue.findVisibleNode();qe!==null&&qe!==Ue&&(Ue=qe,ye=Ue.port),ye=ge.computeOtherPoint(Ue,ye),Ue=se.ab(ye),Ue-=he,0>Ue?Ue+=360:360<=Ue&&(Ue-=360),Ie=Nx(E,Ie,Ue,ge.isOrthogonal),Ie===0?(Ie=4,180<Ue&&(Ue-=360)):Ie===90?(Ie=8,270<Ue&&(Ue-=360)):Ie===180?Ie=2:(Ie=1,90>Ue&&(Ue+=360)),qe=a.pe[te],qe===void 0?(qe=new ty(ge,Ue,Ie),a.pe[te]=qe):(qe.link=ge,qe.angle=Ue,qe.Nc=Ie),qe.hv.set(ye),te++}}}}for(kt.free(se),a.pe.sort(Lf.prototype.j),he=a.pe.length,b=-1,te=se=0;te<he;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=he-1;0<=te;te--)he=a.pe[te],he!==void 0&&(he.Nc!==b&&(b=he.Nc,se=he.Uo+1),he.Gl=se);if(te=a.pe,Ie=a.port,b=a.node.portSpreading,se=kt.alloc(),he=kt.alloc(),ne=kt.alloc(),ge=kt.alloc(),Ie.ga($a,se),Ie.ga(Dl,he),Ie.ga(As,ne),Ie.ga(tl,ge),qe=Ue=ye=Ie=0,b===Uv)for(var rt=0;rt<te.length;rt++){var ut=te[rt];if(ut!==null){var At=ut.link.computeThickness();switch(ut.Nc){case 8:Ue+=At;break;case 2:qe+=At;break;case 1:Ie+=At;break;default:case 4:ye+=At}}}var Mt=rt=0,Bt=1,_t=ut=0;for(At=0;At<te.length;At++){var Gt=te[At];if(Gt!==null){if(rt!==Gt.Nc){switch(rt=Gt.Nc,rt){case 8:var Zt=ne;Mt=ge;break;case 2:Zt=ge,Mt=se;break;case 1:Zt=se,Mt=he;break;default:case 4:Zt=he,Mt=ne}switch(ut=Mt.x-Zt.x,_t=Mt.y-Zt.y,rt){case 8:Ue>Math.abs(ut)?(Bt=Math.abs(ut)/Ue,Ue=Math.abs(ut)):Bt=1;break;case 2:qe>Math.abs(_t)?(Bt=Math.abs(_t)/qe,qe=Math.abs(_t)):Bt=1;break;case 1:Ie>Math.abs(ut)?(Bt=Math.abs(ut)/Ie,Ie=Math.abs(ut)):Bt=1;break;default:case 4:ye>Math.abs(_t)?(Bt=Math.abs(_t)/ye,ye=Math.abs(_t)):Bt=1}Mt=0}var hn=Gt.Zo;if(b===Uv){switch(Gt=Gt.link.computeThickness(),Gt*=Bt,hn.set(Zt),rt){case 8:hn.x=Zt.x+ut/2+Ue/2-Mt-Gt/2;break;case 2:hn.y=Zt.y+_t/2+qe/2-Mt-Gt/2;break;case 1:hn.x=Zt.x+ut/2-Ie/2+Mt+Gt/2;break;default:case 4:hn.y=Zt.y+_t/2-ye/2+Mt+Gt/2}Mt+=Gt}else{var qn=.5;b===Zm&&(qn=(Gt.Uo+1)/(Gt.Gl+1)),hn.x=Zt.x+ut*qn,hn.y=Zt.y+_t*qn}}}for(kt.free(se),kt.free(he),kt.free(ne),kt.free(ge),Zt=a.pe,te=0;te<Zt.length;te++)b=Zt[te],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Ln.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}Lf.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},Lf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,aa,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)},Lf.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new kt,this.Gl=this.Uo=0,this.Zo=new kt,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 Ro(a){zr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new kt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ro.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},Ro.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ro.prototype.qb=function(){},Ro.prototype.toString=function(){var a=Nn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ro.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())}}},Ro.prototype.createNetwork=function(){return new Eo(this)},Ro.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof cn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ti?y.lg(a.memberParts):y.lg(a.iterator),y},Ro.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")}},Ro.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()}},Ro.prototype.doLayout=function(a){var y=new xn;a instanceof cn?(rd(this,y,a.nodes,!0,this.rh,!0,!1,!0),rd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ti?rd(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},Ro.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;Ng(se);var he=se.measuredBounds,ge=he.width;he=he.height,se.moveTo(b,E),se instanceof ti&&(se.rh=!1),b+=Math.max(ge,50)+20,ne=Math.max(ne,Math.max(he,50)),te>=y-1?(te=0,b=x,E+=ne+20,ne=0):te++}},Ro.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 Kn)&&(Ng(se),this.rh(se))){var he=se.measuredBounds,ge=he.width;he=he.height,se.moveTo(x,b),se instanceof ti&&(se.rh=!1),x+=Math.max(ge,50)+20,te=Math.max(te,Math.max(he,50)),E>=a-1?(E=0,x=y,b+=te+20,te=0):E++}}},Ro.prototype.rh=function(a){return!!(!a.location.w()||a instanceof ti&&a.rh)};function rd(a,y,x,b,E,te,ne,se){for(x=x.iterator;x.next();){var he=x.value;b&&!he.isTopLevel||E!==null&&!E(he)||!he.canLayout()||(te&&he instanceof rr?he.isLinkLabel||(he instanceof ti&&he.layout===null?rd(a,y,he.memberParts,!1,E,te,ne,se):(Ng(he),y.add(he))):ne&&he instanceof Kn?y.add(he):!se||!he.Zc()||he instanceof rr||(Ng(he),y.add(he)))}}function Ng(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ro.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Ln),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ro.prototype.ex=function(a){var y=new xn;return a instanceof cn?(rd(this,y,a.nodes,!0,null,!0,!0,!0),rd(this,y,a.links,!0,null,!0,!0,!0),rd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof ti?rd(this,y,a.memberParts,!1,null,!0,!0,!0):rd(this,y,a.iterator,!1,null,!0,!0,!0),y},Ro.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($a),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Et.Object.defineProperties(Ro.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())}}}),Ro.prototype.collectParts=Ro.prototype.ex,Ro.prototype.getLayoutBounds=Ro.prototype.ni,Ro.prototype.invalidateLayout=Ro.prototype.C,Ro.className="Layout";function Eo(a){zr(this),this.Sc=a,this.wf=new xn,this.ye=new xn,this.Es=new fr,this.zs=new fr}Eo.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 xn,this.ye=new xn,this.Es=new fr,this.zs=new fr},Eo.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},Eo.prototype.createVertex=function(){return new Ua(this)},Eo.prototype.createEdge=function(){return new kl(this)},Eo.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 rr)return!ne.isLinkLabel;if(ne instanceof Kn){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 rr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof ti&&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 Kn&&(!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))}}},Eo.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},ot=Eo.prototype,ot.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},ot.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},ot.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}ot.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},ot.ki=function(a){return a===null?null:this.Es.I(a)},ot.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}}ot.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},ot.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))}ot.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},ot.Lo=function(a){return a===null?null:this.zs.I(a)},ot.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},ot.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))}},ot.Ko=function(){for(var a=yn(),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]);On(a)},Eo.prototype.deleteArtificialVertexes=function(){for(var a=yn(),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=yn(),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]);On(a),On(y)};function Ox(a){for(var y=yn(),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]);On(y)}Eo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Ox(this),this.Ko()),a=new vn;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))}}Eo.prototype.dz=function(){for(var a=new xn,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},Et.Object.defineProperties(Eo.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}}}),Eo.prototype.findAllParts=Eo.prototype.dz,Eo.prototype.splitIntoSubNetworks=Eo.prototype.Zx,Eo.prototype.deleteSelfEdges=Eo.prototype.Ko,Eo.prototype.reverseEdge=Eo.prototype.gm,Eo.prototype.linkVertexes=Eo.prototype.Zj,Eo.prototype.findEdge=Eo.prototype.Lo,Eo.prototype.deleteLink=Eo.prototype.Yy,Eo.prototype.deleteEdge=Eo.prototype.Mj,Eo.prototype.addLink=Eo.prototype.Dy,Eo.prototype.addEdge=Eo.prototype.Bo,Eo.prototype.findVertex=Eo.prototype.ki,Eo.prototype.deleteNode=Eo.prototype.Zy,Eo.prototype.deleteVertex=Eo.prototype.Iu,Eo.prototype.addNode=Eo.prototype.Bl,Eo.prototype.addVertex=Eo.prototype.dh,Eo.prototype.addParts=Eo.prototype.lg,Eo.className="LayoutNetwork";function Ua(a){zr(this),this.ob=a,this.j=new Ln(0,0,10,10).freeze(),this.o=new kt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new vn,this.mg=new vn}Ua.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new vn,this.mg=new vn},Ua.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Mi(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var 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},Ua.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;on(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 ti)){x=Ln.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Bi);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),Ln.free(x);return}Ln.free(x)}a.moveTo(y.x,y.y)}},Ua.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ua.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ua.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ua.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}Et.Object.defineProperties(Ua.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=Ln.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),Ln.free(x),!(a instanceof ti)&&(a=a.locationObject.ga(Bi),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 xn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new xn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new xn,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 vn,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}}}),Ua.prototype.deleteDestinationEdge=Ua.prototype.Jl,Ua.prototype.addDestinationEdge=Ua.prototype.zl,Ua.prototype.deleteSourceEdge=Ua.prototype.Kl,Ua.prototype.addSourceEdge=Ua.prototype.Cl,Ua.className="LayoutVertex",Ua.standardComparer=oy,Ua.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 kl(a){zr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}kl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},kl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Mi(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},kl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},kl.prototype.commit=function(){},kl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Et.Object.defineProperties(kl.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)}}}),kl.prototype.getOtherVertex=kl.prototype.Ax,kl.className="LayoutEdge";function hs(a){Ro.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Yn(NaN,NaN).freeze(),this.tf=new Yn(10,10).freeze(),this.Jb=Og,this.Rb=l0,this.nd=Ag,this.hd=cS,a&&Object.assign(this,a)}Jt(hs,Ro),hs.prototype.cloneProtected=function(a){Ro.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},hs.prototype.qb=function(a){a.classType===hs?a===Ag||a===c0||a===ay||a===u0?this.sorting=a:a===l0||a===Zu?this.arrangement=a:a===Og||a===s0?this.alignment=a:Ht("Unknown enum value: "+a):Ro.prototype.qb.call(this,a)},hs.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 ti)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 u0:E.reverse();break;case Ag:E.sort(this.comparer);break;case c0: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 s0:var se=y,he=x,ge=Ln.alloc(),ye=Math.max(this.cellSize.width,1);if(!isFinite(ye))for(var Ie=ye=0;Ie<E.length;Ie++){var Ue=this.ni(E[Ie],ge);ye=Math.max(ye,Ue.width)}if(ye=Math.max(ye+se,1),Ie=Math.max(this.cellSize.height,1),!isFinite(Ie))for(Ue=Ie=0;Ue<E.length;Ue++){var qe=this.ni(E[Ue],ge);Ie=Math.max(Ie,qe.height)}Ie=Math.max(Ie+he,1),Ue=this.arrangement;for(var rt=qe=this.arrangementOrigin.x,ut=this.arrangementOrigin.y,At=0,Mt=0,Bt=0;Bt<E.length;Bt++){var _t=E[Bt],Gt=this.ni(_t,ge),Zt=Math.ceil((Gt.width+se)/ye)*ye,hn=Math.ceil((Gt.height+he)/Ie)*Ie;switch(Ue){case Zu:var qn=Math.abs(rt-Gt.width);break;default:qn=rt+Gt.width}switch((0<te&&At>te-1||0<ne&&0<At&&qn-qe>ne)&&(b.push(new Ln(0,ut,ne+se,Mt)),At=0,rt=qe,ut+=Mt,Mt=0),Mt=Math.max(Mt,hn),Ue){case Zu:Gt=-Gt.width;break;default:Gt=0}switch(_t.moveTo(rt+Gt,ut),Ue){case Zu:rt-=Zt;break;default:rt+=Zt}At++}b.push(new Ln(0,ut,ne+se,Mt)),Ln.free(ge);break;case Og:for(he=ne,ye=te,Ie=y,Ue=x,ne=Ln.alloc(),qe=Math.max(this.cellSize.width,1),te=ut=ge=0,se=kt.alloc(),rt=0;rt<E.length;rt++)Mt=E[rt],At=this.ni(Mt,ne),Mt=Th(Mt,Mt.locationObject,Mt.locationSpot,se),ge=Math.max(ge,Mt.x),ut=Math.max(ut,At.width-Mt.x),te=Math.max(te,Mt.y);switch(rt=this.arrangement,rt){case Zu:ge+=Ie;break;default:ut+=Ie}qe=isFinite(qe)?Math.max(qe+Ie,1):Math.max(ge+ut,1);var dr=Mt=this.arrangementOrigin.x;for(Bt=this.arrangementOrigin.y,ut=0,he>=ge&&(he-=ge),ge=_t=0,Zt=Math.max(this.cellSize.height,1),Gt=te=0,hn=!0,At=kt.alloc(),qn=0;qn<E.length;qn++){var hr=E[qn],$n=this.ni(hr,ne),jn=Th(hr,hr.locationObject,hr.locationSpot,se);if(0<ut)switch(rt){case Zu:dr=(dr-Mt-($n.width-jn.x))/qe,dr=Qt.$(Math.round(dr),dr)?Math.round(dr):Math.floor(dr),dr=dr*qe+Mt;break;default:dr=(dr-Mt+jn.x)/qe,dr=Qt.$(Math.round(dr),dr)?Math.round(dr):Math.ceil(dr),dr=dr*qe+Mt}else switch(rt){case Zu:_t=dr+jn.x+$n.width;break;default:_t=dr-jn.x}switch(rt){case Zu:var qr=-(dr+jn.x)+_t;break;default:qr=dr+$n.width-jn.x-_t}if(0<ye&&ut>ye-1||0<he&&0<ut&&qr>he){for(b.push(new Ln(0,hn?Bt-te:Bt,he+Ie,Gt+te+Ue)),dr=0;dr<ut&&qn!==ut;dr++){qr=E[qn-ut+dr];var Ur=Th(qr,qr.locationObject,qr.locationSpot,At);qr.moveTo(qr.position.x,qr.position.y+te-Ur.y)}Gt+=Ue,Bt=hn?Bt+Gt:Bt+(Gt+te),ut=Gt=te=0,dr=Mt,hn=!1}switch(dr===Mt&&(ge=rt===Zu?Math.max(ge,$n.width-jn.x):Math.min(ge,-jn.x)),te=Math.max(te,jn.y),Gt=Math.max(Gt,$n.height-jn.y),isFinite(Zt)&&(Gt=Math.max(Gt,Math.max($n.height,Zt)-jn.y)),hn?hr.moveTo(dr-jn.x,Bt-jn.y):hr.moveTo(dr-jn.x,Bt),rt){case Zu:dr-=jn.x+Ie;break;default:dr+=$n.width-jn.x+Ie}ut++}if(b.push(new Ln(0,Bt,he+Ie,(hn?Gt:Gt+te)+Ue)),E.length!==ut)for(he=0;he<ut;he++)ye=E[E.length-ut+he],Ie=Th(ye,ye.locationObject,ye.locationSpot,se),ye.moveTo(ye.position.x,ye.position.y+te-Ie.y);if(kt.free(se),kt.free(At),rt===Zu)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);Ln.free(ne)}for(se=te=ne=E=0;se<b.length;se++)he=b[se],E=Math.min(E,he.x),ne=Math.min(ne,he.y),te=Math.max(te,he.x+he.width);this.arrangement===Zu?this.commitLayers(b,new kt(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new kt(E-y/2,ne-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},hs.prototype.commitLayers=function(){};function cS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Et.Object.defineProperties(hs.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!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==Zu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ay&&a!==u0&&a!==Ag&&a!==c0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new bn(hs,"Position",0),Og=new bn(hs,"Location",1),l0=new bn(hs,"LeftToRight",2),Zu=new bn(hs,"RightToLeft",3),ay=new bn(hs,"Forward",4),u0=new bn(hs,"Reverse",5),Ag=new bn(hs,"Ascending",6),c0=new bn(hs,"Descending",7);hs.className="GridLayout",hs.standardComparer=cS,hs.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},hs.Position=s0,hs.Location=Og,hs.LeftToRight=l0,hs.RightToLeft=Zu,hs.Forward=ay,hs.Reverse=u0,hs.Ascending=Ag,hs.Descending=c0;function lo(){this.On=new xn,this.Dn=new xn,this.Pa=new xn,this.cf=new fr,this.bf=new fr,this.aj=new fr,this.H=null,this.tp=!1}ot=lo.prototype,ot.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},ot.Xe=function(a){this.H=a},ot.oi=function(a){if(a instanceof rr){if(this.On.add(a),a instanceof ti){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 Kn?this.Dn.add(a):a instanceof Ui||this.Pa.add(a);y=a.data,y===null||a instanceof Ui||(a instanceof Kn?this.bf.add(y,a):this.cf.add(y,a))},ot.pc=function(a){if(a.Ej(),a instanceof rr){if(this.On.remove(a),a instanceof ti){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 Kn?this.Dn.remove(a):a instanceof Ui||this.Pa.remove(a);y=a.data,y===null||a instanceof Ui||(a instanceof Kn?this.bf.remove(y):this.cf.remove(y))},ot.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 ti)&&Ht('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 ti||Ht('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 Kn||Ht('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=yn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=yn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=yn(),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]);On(y),On(x),On(a)}},lo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},lo.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&&Qf(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&&(yu(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)}}lo.prototype.insertLink=function(){return null},lo.prototype.resolveReferencesForData=function(){},lo.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,lr('No Group template found for category "'+x+'"'),lr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,lr('No Node template found for category "'+x+'"'),lr(" Using default node template")),y=a.ny))),y}lo.prototype.getLinkCategoryForData=function(){return""},lo.prototype.setLinkCategoryForData=function(){},lo.prototype.setFromNodeForLink=function(){},lo.prototype.setToNodeForLink=function(){},lo.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,lr('No Link template found for category "'+a+'"'),lr(" Using default link template")),x=y.my)),x},lo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},lo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},lo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Zh(this.diagram,a,!1),this.unresolveReferencesForPart(a))},lo.prototype.unresolveReferencesForPart=function(){},lo.prototype.removeDataForLink=function(){},lo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},lo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof rr?a:null)},lo.prototype.findLinkForKey=function(){return null},ot=lo.prototype,ot.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},ot.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof rr?a:null)},ot.Kc=function(a){return a===null?null:this.bf.I(a)},ot.ms=function(a){for(var y=0;y<arguments.length;++y);y=new xn;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(on(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator},ot.ls=function(a){for(var y=0;y<arguments.length;++y);y=new xn;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(on(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(Mn(te)){if(!Mn(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(on(y)&&on(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}lo.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===Ho){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===la){var ne=a.newValue;b==="nodeDataArray"&&on(ne)&&hS(this,ne),y.isModified=!0}else if(x===La){var se=a.oldValue;b==="nodeDataArray"&&on(se)&&this.ip(se),y.isModified=!0}else x===il&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Ho){var he=a.propertyName,ge=a.object;ge===y.model?(he==="nodeKeyProperty"||he==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ge,he),y.isModified=!0}else if(x===la||x===La){var ye=a.change===la,Ie=ye?a.newParam:a.oldParam,Ue=ye?a.newValue:a.oldValue,qe=this.aj.I(a.object);if(Array.isArray(qe))for(a=0;a<qe.length;a++){var rt=qe[a];if(ye)km(rt,Ue,Ie,!0);else if(!(0>Ie)){var ut=Ie+fg(rt);rt.pc(ut,!0),wv(rt,ut,Ie)}}y.isModified=!0}}finally{y.aa=!0}}}}},lo.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)},lo.prototype.rp=function(){for(var a=this.H.model,y=new xn,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()},lo.prototype.refreshDataBoundLinks=function(){},lo.prototype.updateRelationshipsFromData=function(){},lo.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=yn()),x.push(ne))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);On(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(Mn(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){Ud(y,function(ne){ne=ne.O.s;for(var se=ne.length,he=0;he<se;he++)Jp(x,ne[he])});var b=y.Hh;if(Mn(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}}}}lo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new fr;if(Mn(a))for(var E=0;E<a.length;E++)h0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)h0(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 xn;for(var te=new fr,ne=b.iterator;ne.next();){var se=ne.value;if(se instanceof Kn)a||se.fromNode!==null&&se.toNode!==null||E.add(se);else if(se instanceof rr&&se.data!==null&&x.Tl()){var he=se;se=ne.key;var ge=se.pg();ge!==null&&(ge=b.I(ge),ge!==null?(x.qe(he.data,x.wa(ge.data)),he=y.Kc(he.data),se=se.kh(),se!==null&&he!==null&&te.add(se,he)):x.qe(he.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 ye=new fr;b.each(function(Ie){Ie.key.data!==null&&ye.add(Ie.key.data,Ie.value.data)}),x(ye,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function h0(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 kr))return null;if(te.isSelected=!1,te.isHighlighted=!1,b.add(y,te),y instanceof rr){for(var ne=y.linksConnected;ne.next();){var se=ne.value;if(se.fromNode===y){var he=b.I(se);he!==null&&(he.fromNode=te)}se.toNode===y&&(se=b.I(se),se!==null&&(se.toNode=te))}if(y instanceof ti&&te instanceof ti)for(y=y.memberParts;y.next();)ne=h0(a,y.value,x,b,E),ne instanceof Kn||ne===null||(ne.containingGroup=te)}else if(y instanceof Kn&&te instanceof Kn)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=h0(a,y.value,x,b,E),ne!==null&&ne instanceof rr&&(ne.labeledLink=te);return te}lo.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Kn||(b=E.copyNodeData(b),on(b)&&(E.xf(b),x=y.Lc(b)))}else yu(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 Kn||(E=y.copyNodeData(b)),on(E)&&(x.data=E)));return x},Et.Object.defineProperties(lo.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}}}),lo.prototype.updateAllRelationshipsFromData=lo.prototype.rp,lo.prototype.findLinksByExample=lo.prototype.ls,lo.prototype.findNodesByExample=lo.prototype.ms,lo.prototype.findLinkForData=lo.prototype.Kc,lo.prototype.findNodeForData=lo.prototype.ii,lo.prototype.findPartForData=lo.prototype.Lc,lo.prototype.findNodeForKey=lo.prototype.Vb,lo.prototype.removeModeledPart=lo.prototype.ip,lo.prototype.removeModeledParts=lo.prototype.Gs,lo.prototype.rebuildParts=lo.prototype.Wd;var pS=!1,gS=!1,mS=!1;lo.className="PartManager";function es(a){lo.apply(this,arguments)}Jt(es,lo),es.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},es.prototype.addModeledParts=function(a){for(lo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Sp(a.value);Qf(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),Qf(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){yu(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=g0(x,y,!0);te!==""&&(E.fromPortId=te),te=Yl(x,y,!0),te!==void 0&&(te=a.Vb(te),te instanceof rr&&(E.fromNode=te)),te=g0(x,y,!1),te!==""&&(E.toPortId=te),te=Yl(x,y,!1),te!==void 0&&(te=a.Vb(te),te instanceof rr&&(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}}}}es.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)})}es.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},es.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},es.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},es.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},es.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},es.prototype.findPartForKey=function(a){var y=lo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},es.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},es.prototype.doModelChanged=function(a){var y=this;if(lo.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===Ho){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 he=this.Vb(a.newValue);se.toNode=he}}else if(E==="linkFromPortId"){var ge=this.Kc(a.object);if(ge!==null){var ye=a.newValue;typeof ye=="string"&&(ge.fromPortId=ye)}}else if(E==="linkToPortId"){var Ie=this.Kc(a.object);if(Ie!==null){var Ue=a.newValue;typeof Ue=="string"&&(Ie.toPortId=Ue)}}else if(E==="nodeGroupKey"){var qe=this.Lc(a.object);if(qe!==null){var rt=a.newValue;if(rt!==void 0){var ut=this.Vb(rt);ut instanceof ti?qe.containingGroup=ut:qe.containingGroup=null}else qe.containingGroup=null}}else if(E==="linkLabelKeys"){var At=this.Kc(a.object);if(At!==null){var Mt=a.oldValue,Bt=a.newValue;Array.isArray(Mt)&&Mt.forEach(function(jn){0<=Bt.indexOf(jn)||(jn=y.Vb(jn),jn!==null&&(jn.labeledLink=null))}),Array.isArray(Bt)&&Bt.forEach(function(jn){jn=y.Vb(jn),jn!==null&&(jn.labeledLink=At)})}}else if(E==="linkCategory"){var _t=this.Kc(a.object),Gt=a.newValue;_t!==null&&typeof Gt=="string"&&(_t.category=Gt)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===la){var Zt=a.newValue;if(E==="linkDataArray"&&typeof Zt=="object"&&Zt!==null)yS(this,Zt);else if(E==="linkLabelKeys"&&od(Zt)){var hn=this.Kc(a.object),qn=this.Vb(Zt);hn!==null&&qn!==null&&(qn.labeledLink=hn)}x.isModified=!0}else if(b===La){var dr=a.oldValue;if(E==="linkDataArray"&&typeof dr=="object"&&dr!==null)this.ip(dr);else if(E==="linkLabelKeys"&&od(dr)){var hr=this.Vb(dr);hr!==null&&(hr.labeledLink=null)}x.isModified=!0}}else if(b===Ho){var $n=a.propertyName;a.object!==x.model||$n!=="linkFromKeyProperty"&&$n!=="linkToKeyProperty"&&$n!=="linkFromPortIdProperty"&&$n!=="linkToPortIdProperty"&&$n!=="linkLabelKeysProperty"&&$n!=="nodeIsGroupProperty"&&$n!=="nodeGroupKeyProperty"&&$n!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},es.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new xn,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){OS(y,te,!1)}),b.forEach(function(te){a.Kc(te)===null&&NS(y,te,!1)})},es.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 Kn){var E=Yl(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Yl(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 xn().addAll(y);var ne=new xn;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 Ui)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof ti)&&(a.containingGroup=y)}}},es.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jg(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 ti&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=E)):(te.link=this.Kc(ne),te.link!==null&&E instanceof rr&&(Yl(y,ne,!0)===x&&(te.link.fromNode=E),Yl(y,ne,!1)===x&&(te.link.toNode=E),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(se){return function(he){return he===x?(E.labeledLink=se.link,!0):!1}}(te)))),te={link:te.link}}Yu(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof ti&&(E.containingGroup=a))}},es.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof rr){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Xu(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Xu(y,x,b.data)),a instanceof ti)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Xu(y,x,b)}}},es.prototype.copyPartData=function(a,y){var x=lo.prototype.copyPartData.call(this,a,y);if(a instanceof Kn)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},es.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 Kn){if(yu(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 rr&&(yu(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&&Ep(te,b,te.wa(a.data),!0),Tp(te,b,se,!0),x!==null&&Ep(te,b,te.wa(x.data),!1),Tp(te,b,y,!1),te.fi(b),a=ne.archetypeLabelNodeData,a===null||a instanceof rr||(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},es.prototype.findLinkForKey=es.prototype.findLinkForKey,es.prototype.findPartForKey=es.prototype.findPartForKey,es.prototype.removeAllModeledParts=es.prototype.removeAllModeledParts,es.prototype.addModeledParts=es.prototype.addModeledParts,es.prototype.addAllModeledParts=es.prototype.addAllModeledParts,es.className="GraphLinksPartManager";function uu(){lo.apply(this,arguments),this.Sg=null}Jt(uu,lo);function d0(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||!_n(b,E,te,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(yu(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}}}uu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},uu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},uu.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}},uu.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))},uu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},uu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},uu.prototype.doModelChanged=function(a){if(lo.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===Ho){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:d0(this,te,ne)}}else if(b==="parentLinkCategory"){var he=this.ii(a.object),ge=a.newValue;if(he!==null&&typeof ge=="string"){var ye=he.kh();ye!==null&&(ye.category=ge)}}y.isModified=!0}}else if(x===Ho){var Ie=a.propertyName;a.object===y.model&&Ie==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},uu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof rr&&(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:d0(this,y,a):b!==null&&Zh(x,b,!1)))}}},uu.prototype.updateDataBindings=function(a,y){lo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},uu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jg(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 rr&&y.mh(te)===x&&d0(this,E,this.ii(te))}Yu(y,x)}a=y.mh(a),a!==void 0&&E instanceof rr&&(a=this.Vb(a),d0(this,a,E))}},uu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof rr){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(La,"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)&&Xu(y,x,E)}},uu.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},uu.prototype.findLinkForKey=uu.prototype.findLinkForKey,uu.className="TreePartManager";function yr(a,y){this.kl=new xn,this.il=new xn,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 fr,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 fr,this.Lt=new vn,this.Wg=!1,this.o=null,this.undoManager=new $o,a!==void 0&&(Mn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}yr.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},yr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},yr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},yr.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)+":"+Fn(E)}}return y},yr.prototype.xA=function(a){a.change!==il&&Ht("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Va?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},yr.prototype.Qv=function(a,y){var x=this,b=!1,E=new xn,te=new xn,ne=new xn,se=this.vh;a.changes.each(function(Ie){Ie.model===x&&(Ie.modelChange==="nodeDataArray"?Ie.change===la?E.add(Ie.newValue):Ie.change===La&&ne.add(Ie.oldValue):x.lb(Ie.object)?te.add(Ie.object):Ie.change!==Ho||x.modelData!==Ie.object&&Ie.propertyName!=="modelData"?Ie.object!==null&&(se&&se.contains(Ie.object)?se.get(Ie.object).each(function(Ue){x.lb(Ue)&&te.add(Ue)}):Ie.object instanceof yr||x.ri()&&x.Jc(Ie.object)||bS(x,Ie.object).each(function(Ue){te.add(Ue)})):b=!0)});var he=this.il;he.clear(),E.each(function(Ie){he.add(x.wa(Ie)),y||te.add(Ie)});var ge=this.kl;ge.clear(),ne.each(function(Ie){ge.add(x.wa(Ie)),y&&te.add(Ie)}),a=x.cloneDeep(te.Fa());var ye=null;return b&&(ye===null&&(ye={}),ye.modelData=this.cloneDeep(this.modelData)),0<he.count&&(ye===null&&(ye={}),y?ye.removedNodeKeys=he.Fa():ye.insertedNodeKeys=he.Fa()),0<a.length&&(ye===null&&(ye={}),ye.modifiedNodeData=a),0<ge.count&&(ye===null&&(ye={}),y?ye.insertedNodeKeys=ge.Fa():ye.removedNodeKeys=ge.Fa()),ge.clear(),he.clear(),ye},yr.prototype.cloneDeep=function(a){return Cp(this,a,!0)};function Cp(a,y,x,b,E,te){function ne(Ie,Ue){se?(Ie.__gohashid===void 0&&te.push(Ie),b.set(Ie,Ue)):(Ie=yo++,b.set(Ie,Ue),E.set(Ie,y))}if(!on(y))return y;te||(te=[]);var se=Object.isExtensible(y);if(b||(b=new fr),se){var he=b.get(y);if(he)return he}else for(E||(E=new fr),he=E.iterator;he.next();){var ge=he.key;if(he.value===y&&(ge=b.get(ge)))return ge}if(Array.isArray(y)){he=[],ne(y,he);for(var ye=0;ye<y.length;ye++)he.push(Cp(a,y[ye],!1,b,E,te))}else if(y instanceof kt||y instanceof Yn||y instanceof Ln||y instanceof Lr||y instanceof wr)he=y.copy(),ne(y,he);else{if(y instanceof ao||y instanceof Zn||y instanceof bn)return y;if(y instanceof vn)he=new vn().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof xn)he=new xn().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof fr)he=new fr().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof Date)he=new Date(y.getTime()),ne(y,he);else if(y instanceof RegExp)he=new RegExp(y),ne(y,he),he.lastIndex=y.lastIndex;else if(typeof y.copy=="function")he=y.copy(),ne(y,he);else for(ye in he={},ne(y,he),y)ye!=="__gohashid"&&(he[ye]=Cp(a,y[ye],!1,b,E,te))}return x&&te.forEach(function(Ie){delete Ie.__gohashid}),he}ot=yr.prototype,ot.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},ot.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},ot.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,on(y)&&(a.dm(y),a.modelData=y)}ot.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": `+id(this,this.nodeDataArray,!0)},ot.kv=function(a){xS(this,a),a=a.nodeDataArray,Mn(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 xn,ne.add(te),b.add(E,ne)):ne.add(te)}}var b=a.vh;b===null&&(b=new fr,y.changes.each(function(E){if(E.diagram!==null){var te=E.change;te===Ho?(E=E.object.panel)&&(te=E.data)&&x(te,E):(te===la||te===La)&&(E=E.object,(te=E.itemArray)&&x(te,E))}}),a.vh=b)}function bS(a,y){for(var x=new xn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];f0(a,y,E,E,x)}return x}function f0(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(f0(a,y,ne,b,E))return!0}else if(on(x)&&Object.getPrototypeOf(x)===Object.prototype)for(te in x){if(ne=x[te],ne===y)return E.add(b),!0;if(f0(a,y,ne,b,E))return!0}return!1}ot.Pv=function(a,y){var x=this,b=!1,E=new xn,te=new xn,ne=new xn,se=this.vh;a.changes.each(function(ye){ye.model===x&&(ye.modelChange==="nodeDataArray"?ye.change===la?E.add(ye.newValue):ye.change===La&&ne.add(ye.oldValue):x.lb(ye.object)?te.add(ye.object):ye.change!==Ho||x.modelData!==ye.object&&ye.propertyName!=="modelData"?ye.object!==null&&(se&&se.contains(ye.object)?se.get(ye.object).each(function(Ie){x.lb(Ie)&&te.add(Ie)}):ye.object instanceof yr||x.ri()&&x.Jc(ye.object)||bS(x,ye.object).each(function(Ie){te.add(Ie)})):b=!0)});var he=this.il;he.clear(),E.each(function(ye){he.add(x.wa(ye)),y||te.add(ye)});var ge=this.kl;return ge.clear(),ne.each(function(ye){ge.add(x.wa(ye)),y&&te.add(ye)}),a="",b&&(a+=`,
|
|
|
"modelData": `+cy(this,this.modelData)),0<he.count&&(a+=(y?this.Yv:this.Wv)+id(this,he.Fa(),!0)),0<te.count&&(a+=this.jy+id(this,te.Fa(),!0)),0<ge.count&&(a+=(y?this.Wv:this.Yv)+id(this,ge.Fa(),!0)),ge.clear(),he.clear(),a},ot.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)&&Ht("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new fr;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 he in E)he==="__gohashid"||he===this.nodeKeyProperty||this.Wj()&&he===this.nodeIsGroupProperty||this.setDataProperty(te,he,E[he]);this.lm(E,te)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,he=0;he<x;he++)y=this.hc(a[he]),y!==null&&this.cm(y)},ot.$x=function(a,y){a.change!==il&&Ht("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Va?(y===void 0&&(y=Ig(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 }'},ot.yA=function(a,y){return this.$x(a,y)},ot.np=function(a){return a===void 0&&(a=Ig(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},ot.toJSON=function(a){return this.np(a)},ot.Zw=function(a){var y=null;if(typeof a=="string")try{y=It.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Ht("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Ht("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},ot.Ky=function(a){return this.Zw(a)},yr.constructGraphLinksModel=function(){return new yr},ot=yr.prototype,ot.dm=function(a){if(Mn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(on(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Ht("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(on(a)){for(y in a)if(x=a[y],on(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 vn,b=0;b<x.length/2;b++)E.add(new kt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Ax(a)}return a},ot.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()):Mn(a)?id(this,a):on(a)?cy(this,a):typeof a=="function"?"null":a.toString()};function id(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new sr;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 Vs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function cy(a,y){var x=y;if(x instanceof kt)y={class:"go.Point",x:Vs(x.x),y:Vs(x.y)};else if(x instanceof Yn)y={class:"go.Size",width:Vs(x.width),height:Vs(x.height)};else if(x instanceof Ln)y={class:"go.Rect",x:Vs(x.x),y:Vs(x.y),width:Vs(x.width),height:Vs(x.height)};else if(x instanceof Lr)y={class:"go.Margin",top:Vs(x.top),right:Vs(x.right),bottom:Vs(x.bottom),left:Vs(x.left)};else if(x instanceof wr)x.sb()?y={class:"go.Spot",x:Vs(x.x),y:Vs(x.y),offsetX:Vs(x.offsetX),offsetY:Vs(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof ao){if(y={class:"go.Brush",type:x.type.name},x.type===Ph?y.color=x.color:(x.type===th||x.type===su)&&(y.start=x.start,y.end=x.end,x.type===su&&(x.startRadius!==0&&(y.startRadius=Vs(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Vs(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 Zn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Vs(x.startX)),x.startY!==0&&(y.startY=Vs(x.startY)),x.endX!==0&&(y.endX=Vs(x.endX)),x.endY!==0&&(y.endY=Vs(x.endY)),x.spot1.D($a)||(y.spot1=x.spot1),x.spot2.D(As)||(y.spot2=x.spot2),x.type===Zn.o&&(y.path=Zn.ia(x))):x instanceof bn&&(y={class:"go.EnumValue",classType:Ig(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var te=pa(y,E);if(!PS(E,te))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&te instanceof vn){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 Zs(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Ax(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 kt(Zs(a.x),Zs(a.y));else if(y==="Size")x=new Yn(Zs(a.width),Zs(a.height));else if(y==="Rect")x=new Ln(Zs(a.x),Zs(a.y),Zs(a.width),Zs(a.height));else if(y==="Margin")x=new Lr(Zs(a.top),Zs(a.right),Zs(a.bottom),Zs(a.left));else if(y==="Spot")typeof a.enum=="string"?x=wd(a.enum):x=new wr(Zs(a.x),Zs(a.y),Zs(a.offsetX),Zs(a.offsetY));else if(y==="Brush"){if(x=new ao,x.type=Jn(ao,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof wr&&(x.start=a.start),a.end instanceof wr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Zs(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Zs(a.endRadius)),a=a.colorStops,on(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Zn.parse(a.path):x=new Zn,x.type=Jn(Zn,a.type),typeof a.startX=="number"&&(x.startX=Zs(a.startX)),typeof a.startY=="number"&&(x.startY=Zs(a.startY)),typeof a.endX=="number"&&(x.endX=Zs(a.endX)),typeof a.endY=="number"&&(x.endY=Zs(a.endY)),a.spot1 instanceof wr&&(x.spot1=a.spot1),a.spot2 instanceof wr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Jn(b,a.name)));return x}ot.Pe=function(a){return this.Lt.add(a),this},ot.ik=function(a){this.Lt.remove(a)},ot.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)},ot.cb=function(a,y,x,b,E,te,ne){Ia(this,"",a,y,x,b,E,te,ne)},ot.g=function(a,y,x,b,E){Ia(this,"",Ho,a,this,y,x,b,E)},ot.Fs=function(a,y,x,b,E,te){Ia(this,"",Ho,y,a,x,b,E,te)};function Ia(a,y,x,b,E,te,ne,se,he){se===void 0&&(se=null),he===void 0&&(he=null);var ge=new zo;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=he,a.ds(ge)}yr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Ho){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)),Ao(x,b,E)}else a.change===la?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,on(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&gn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&Sn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Mn(b)&&a.propertyName&&(b=pa(a.object,a.propertyName)),Mn(b)&&typeof x=="number"&&(a=a.newValue,y?gn(b,x):Sn(b,x,a))):Ht("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===La?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,on(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&Sn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&gn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Mn(b)&&a.propertyName&&(b=pa(a.object,a.propertyName)),Mn(b)&&typeof x=="number"&&(a=a.oldValue,y?Sn(b,x,a):gn(b,x))):Ht("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==il&&Ht("unknown ChangedEvent: "+a.toString())},yr.prototype.Ea=function(a){return this.undoManager.Ea(a)},yr.prototype.eb=function(a){return this.undoManager.eb(a)},yr.prototype.Kf=function(){return this.undoManager.Kf()},yr.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}},ot=yr.prototype,ot.La=function(a,y){y===void 0&&(y=""),Ia(this,"SourceChanged",il,y,a,null,null)},ot.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=pa(a,y),y!==void 0)){if(od(y))return y;Ht("Key value for node data "+a+" is not a number or a string: "+y)}}},ot.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=pa(a,x);b!==y&&this.hc(y)===null&&(Ao(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ia(this,"nodeKey",Ho,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ao(a,x,y)}};function od(a){return typeof a=="number"||typeof a=="string"}ot.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},ot.hc=function(a){return a===null&&Ht("Model.findNodeDataForKey:key must not be null"),a!==void 0&&od(a)?this.kb.I(a):null},ot.$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))){Ao(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ao(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ao(a,y,x)}}}}},ot.xf=function(a){a!==null&&($i(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&&Ht("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,Sn(a.Tc,b,y)),Ia(a,"nodeDataArray",la,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}ot.Fy=function(a){if(Mn(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)},ot.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;gn(a.Tc,b)}Ia(a,"nodeDataArray",La,"nodeDataArray",a,y,null,b,null),a.qp(y)}ot.nA=function(a){if(Mn(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)},ot.$z=function(a){if(a!==this.nodeDataArray&&Mn(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()}},ot.jp=function(a,y){y!==void 0&&(a=jg(this,a),a instanceof xn&&this.Vf.add(y,a))},ot.Lv=function(){},ot.fm=function(){},ot.em=function(){},ot.qp=function(){};function Xu(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new xn,a.Vf.add(y,b)),b.add(x)}}function Yu(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof xn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function jg(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof xn?a:null)}ot.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},yr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):p0(this,a,!0),on(a)&&zr(a),a};function p0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=p0(a,y[x],a.copiesArrayObjects);b.push(E)}return zr(b),b}if(x&&on(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=pa(y,b),ne=Ig(a,te);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||te instanceof yr||te instanceof $o||te instanceof Va||te instanceof zo||(te=p0(a,te,!1)),Ao(x,b,te)}return zr(x),x}return y instanceof kt||y instanceof Yn||y instanceof Ln||y instanceof wr||y instanceof Lr?y.copy():y}yr.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!TS&&a instanceof Yt&&(TS=!0,lr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),lr(" Is that really your intent?"));var b=pa(a,y);b!==x&&(Ao(a,y,x),this.Fs(a,y,b,x))},ot=yr.prototype,ot.set=function(a,y,x){this.setDataProperty(a,y,x)},ot.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])}},ot.Ay=function(a,y){this.ts(a,-1,y)},ot.ts=function(a,y,x){0>y&&(y=a.length),Sn(a,y,x),Ia(this,"",la,"",a,null,x,null,y)},ot.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ht("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];gn(a,y),Ia(this,"",La,"",a,x,null,y,null)},ot.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=pa(a,y),y===void 0))return"";if(typeof y=="string")return y;Ht("getCategoryForNodeData found a non-string category for "+a+": "+y)},ot.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=pa(a,x);b===void 0&&(b=""),b!==y&&(Ao(a,x,y),Ia(this,"nodeCategory",Ho,x,a,b,y))}else Ao(a,x,y)}},ot.lm=function(a,y){this.jm(y,this.Ro(a))},ot.Tl=function(){return!1},ot.Wj=function(){return!1},ot.ri=function(){return!1},ot.xs=function(){return!1},ot.Xj=function(){return!1};function hy(){return new yr}function Ig(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 Ig(a,y.constructor);return typeof y}function dy(a){return Ou[a]?Ou[a]:It.go!==void 0&&It.go[a]?It.go[a]:null}function pa(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 Ao(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){}}Et.Object.defineProperties(yr.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===""&&Ht("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ht("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];on(E)||Ht("Model.nodeDataArray must only contain Objects, not: "+E),$i(E)}for(this.Tc=a,b=new vn,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(Ia(this,"nodeDataArray",Ho,"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"}}}),yr.prototype.setCategoryForNodeData=yr.prototype.jm,yr.prototype.getCategoryForNodeData=yr.prototype.Ro,yr.prototype.removeArrayItem=yr.prototype.ov,yr.prototype.insertArrayItem=yr.prototype.ts,yr.prototype.addArrayItem=yr.prototype.Ay,yr.prototype.assignAllDataProperties=yr.prototype.Do,yr.prototype.set=yr.prototype.set,yr.prototype.clearUnresolvedReferences=yr.prototype.Qy,yr.prototype.mergeNodeDataArray=yr.prototype.$z,yr.prototype.removeNodeDataCollection=yr.prototype.nA,yr.prototype.removeNodeData=yr.prototype.cm,yr.prototype.addNodeDataCollection=yr.prototype.Fy,yr.prototype.addNodeData=yr.prototype.xf,yr.prototype.makeNodeDataKeyUnique=yr.prototype.$u,yr.prototype.findNodeDataForKey=yr.prototype.hc,yr.prototype.containsNodeData=yr.prototype.lb,yr.prototype.setKeyForNodeData=yr.prototype.km,yr.prototype.getKeyForNodeData=yr.prototype.wa,yr.prototype.updateTargetBindings=yr.prototype.La,yr.prototype.commit=yr.prototype.commit,yr.prototype.rollbackTransaction=yr.prototype.Kf,yr.prototype.commitTransaction=yr.prototype.eb,yr.prototype.startTransaction=yr.prototype.Ea,yr.prototype.raiseDataChanged=yr.prototype.Fs,yr.prototype.raiseChanged=yr.prototype.g,yr.prototype.raiseChangedEvent=yr.prototype.cb,yr.prototype.removeChangedListener=yr.prototype.ik,yr.prototype.addChangedListener=yr.prototype.Pe,yr.prototype.writeJsonValue=yr.prototype.sm,yr.prototype.replaceJsonObjects=yr.prototype.dm,yr.prototype.applyIncrementalJSON=yr.prototype.Ky,yr.prototype.applyIncrementalJson=yr.prototype.Zw,yr.prototype.toJSON=yr.prototype.toJSON,yr.prototype.toJson=yr.prototype.np,yr.prototype.toIncrementalJSON=yr.prototype.yA,yr.prototype.toIncrementalJson=yr.prototype.$x,yr.prototype.toIncrementalData=yr.prototype.xA,yr.prototype.clear=yr.prototype.clear;var TS=!1,Ou={};yr.className="Model",yr.fromJSON=yr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=It.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:Ht("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=It[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof yr?y=a:Ht("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=yr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},yr.safePropertyValue=pa,yr.safePropertySet=Ao,Ou.Brush=ao,Ou.ChangedEvent=zo,Ou.Geometry=Zn,Ou.Margin=Lr,Ou.Panel=Un,Ou.Point=kt,Ou.Rect=Ln,Ou.Size=Yn,Ou.Spot=wr,Ou.Transaction=Va,Ou.UndoManager=$o;function xa(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=Dg,this.wk=b),this.st=new xn}xa.prototype.copy=function(){var a=new xa;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},ot=xa.prototype,ot.qb=function(a){a.classType===xa&&(this.mode=a)},ot.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},ot.freeze=function(){return this._isFrozen=!0,this},ot.ka=function(){return this._isFrozen=!1,this},ot.Kx=function(a){return a===void 0&&(a=null),this.mode=Dg,this.backConverter=a,this},ot.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},ot.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function MS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}ot.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==="")lr("Binding error: target property is the empty string: "+this.toString());else{var te=y;if(b!==""&&(te=pa(y,b)),te!==void 0)if(E===null)x!==""&&Ao(a,x,te);else try{if(x!==""){var ne=E(te,a);Ao(a,x,ne)}else E(te,a)}catch(se){}}}},ot.sp=function(a,y,x,b){if(this.el===Dg){var E=this.xl;if(x===void 0||E===x){x=this.sl;var te=this.wk,ne=a;if(E!==""&&(ne=pa(a,E)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var se=b!==null?b.diagram:null,he=se!==null?se.model:null;if(te===null){if(x!=="")he!==null?he.setDataProperty(y,x,ne):Ao(y,x,ne);else if(he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ge=b.itemIndex,ye=b.panel.itemArray;he.ov(ye,ge),he.ts(ye,ge,ne)}}else try{if(x!==""){var Ie=te(ne,y,he);he!==null?he.setDataProperty(y,x,Ie):Ao(y,x,Ie)}else{var Ue=te(ne,y,he);if(Ue!==void 0&&he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var qe=b.itemIndex,rt=b.panel.itemArray;he.ov(rt,qe),he.ts(rt,qe,Ue)}}}catch(ut){}}finally{this.st.remove(a)}}}},Et.Object.defineProperties(xa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&kn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&kn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&kn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&kn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&kn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&kn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&kn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&kn(this),this.el=a}}}),xa.prototype.updateSource=xa.prototype.sp,xa.prototype.updateTarget=xa.prototype.Mv,xa.prototype.ofModel=xa.prototype.dA,xa.prototype.ofObject=xa.prototype.cp,xa.prototype.makeTwoWay=xa.prototype.Kx;var jx="Binding",LS=new bn(xa,"OneWay",1),Dg=new bn(xa,"TwoWay",2);xa.className="Binding",xa.parseEnum=function(a,y){return function(x){return x=Jn(a,x),x===null?y:x}},xa.toString=Fn,xa.OneWay=LS,xa.TwoWay=Dg;function Di(a,y,x){yr.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new xn,this.wb=new fr,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&&(Mn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Jt(Di,yr),Di.constructGraphLinksModel=yr.constructGraphLinksModel,Di.prototype.cloneProtected=function(a){yr.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},ot=Di.prototype,ot.clear=function(){yr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},ot.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)+":"+Fn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Yl(this,E,!0)+"-->"+Yl(this,E,!1)}return y},ot.Qv=function(a,y){this.linkKeyProperty===""&&Ht("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=yr.prototype.Qv.call(this,a,y),b=this,E=new xn,te=new xn,ne=new xn,se=this.vh;a.changes.each(function(ye){ye.model===b&&(ye.modelChange==="linkDataArray"?ye.change===la?E.add(ye.newValue):ye.change===La&&ne.add(ye.oldValue):b.Jc(ye.object)?te.add(ye.object):ye.object!==null&&(ye.object!==null&&se&&se.contains(ye.object)?se.get(ye.object).each(function(Ie){b.Jc(Ie)&&te.add(Ie)}):ye.object instanceof yr||b.lb(ye.object)||kS(b,ye.object).each(function(Ie){te.add(Ie)})))});var he=this.il;he.clear(),E.each(function(ye){he.add(b.Ac(ye)),y||te.add(ye)});var ge=this.kl;return ge.clear(),ne.each(function(ye){ge.add(b.Ac(ye)),y&&te.add(ye)}),a=b.cloneDeep(te.Fa()),0<he.count&&(x===null&&(x={}),y?x.removedLinkKeys=he.Fa():x.insertedLinkKeys=he.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(),he.clear(),x},ot.rm=function(){var a=yr.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},ot.gp=function(a){yr.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)},ot.Rv=function(){var a=yr.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+id(this,this.linkDataArray,!0);return a+y},ot.kv=function(a){yr.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 xn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];f0(a,y,E,E,x)}return x}ot.Pv=function(a,y){this.linkKeyProperty===""&&Ht("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=yr.prototype.Pv.call(this,a,y),b=this,E=new xn,te=new xn,ne=new xn,se=this.vh;a.changes.each(function(ye){ye.model===b&&(ye.modelChange==="linkDataArray"?ye.change===la?E.add(ye.newValue):ye.change===La&&ne.add(ye.oldValue):b.Jc(ye.object)?te.add(ye.object):ye.object!==null&&(ye.object!==null&&se&&se.contains(ye.object)?se.get(ye.object).each(function(Ie){b.Jc(Ie)&&te.add(Ie)}):ye.object instanceof yr||b.lb(ye.object)||kS(b,ye.object).each(function(Ie){te.add(Ie)})))});var he=this.il;he.clear(),E.each(function(ye){he.add(b.Ac(ye)),y||te.add(ye)});var ge=this.kl;return ge.clear(),ne.each(function(ye){ge.add(b.Ac(ye)),y&&te.add(ye)}),a=x,0<he.count&&(a+=(y?this.Xv:this.Vv)+id(this,he.Fa(),!0)),0<te.count&&(a+=this.iy+id(this,te.Fa(),!0)),0<ge.count&&(a+=(y?this.Vv:this.Xv)+id(this,ge.Fa(),!0)),ge.clear(),he.clear(),a},ot.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)&&Ht("applyIncrementalJson cannot change Model properties"),yr.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]);AS(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)},Di.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Ho){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),Ao(x,b,E);return}}else if(a.change===la){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,on(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===La){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,on(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}}yr.prototype.changeState.call(this,a,y)}},ot=Di.prototype,ot.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),Ao(x,this.nodeKeyProperty,a),this.xf(x))}return a}},ot.yx=function(a){return Yl(this,a,!0)},ot.wv=function(a,y){Ep(this,a,y,!0)},ot.Bx=function(a){return Yl(this,a,!1)},ot.Bv=function(a,y){Ep(this,a,y,!1)};function Yl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=pa(y,a),a!==void 0))){if(od(a))return a;Ht((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Ep(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=pa(y,E);te!==x&&(Yu(a,te,y),Ao(y,E,x),a.hc(x)===null&&Xu(a,x,y),Ia(a,b?"linkFromKey":"linkToKey",Ho,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Ao(y,E,x)}}ot.zx=function(a){return g0(this,a,!0)},ot.xv=function(a,y){Tp(this,a,y,!0)},ot.Cx=function(a){return g0(this,a,!1)},ot.Cv=function(a,y){Tp(this,a,y,!1)};function g0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=pa(y,a),y===void 0?"":y)}function Tp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var te=pa(y,E);te===void 0&&(te=""),te!==x&&(Ao(y,E,x),Ia(a,b?"linkFromPortId":"linkToPortId",Ho,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Ao(y,E,x)}}ot.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=pa(a,y),a===void 0?m0:a)},ot.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=pa(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)Yu(this,b[te],a);for(Ao(a,x,y),E=y.length,te=0;te<E;te++){var ne=y[te];this.hc(ne)===null&&Xu(this,ne,a)}Ia(this,"linkLabelKeys",Ho,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ao(a,x,y)}},ot.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=pa(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&&Xu(this,y,a),Ia(this,"linkLabelKeys",la,x,a,null,y,null,E)))}else Ht(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},ot.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=pa(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Yu(this,y,a),Ia(this,"linkLabelKeys",La,x,a,y,null,E,null)))}else b!==void 0&&Ht(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},ot.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=pa(a,y),y!==void 0)){if(od(y))return y;Ht("Key value for link data "+a+" is not a number or a string: "+y)}}},ot.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=pa(a,x);b!==y&&this.jh(y)===null&&(Ao(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ia(this,"linkKey",Ho,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},ot.jh=function(a){return a===null&&Ht("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&od(a)?this.wb.I(a):null},ot.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))){Ao(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ao(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ao(a,y,x)}}}}},ot.Jc=function(a){return a===null?!1:this.$f.contains(a)},ot.fi=function(a){a!==null&&($i(a),this.Jc(a)||NS(this,a,!0))};function NS(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&&Ht("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)),Ia(a,"linkDataArray",la,"linkDataArray",a,null,y,null,b),fy(a,y)}ot.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)},ot.bm=function(a){a!==null&&OS(this,a,!0)};function OS(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(Ia(a,"linkDataArray",La,"linkDataArray",a,y,null,b,null),x=Yl(a,y,!0),Yu(a,x,y),x=Yl(a,y,!1),Yu(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],Yu(a,x,y)}ot.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)},ot.Zz=function(a){if(this.linkKeyProperty===""&&Ht("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Mn(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),AS(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=Yl(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Xu(a,x,y),x=Yl(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Xu(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&&Xu(a,x,y)}ot.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):p0(this,a,!0),on(a)&&(zr(a),this.lf!==""&&Ao(a,this.lf,void 0),this.mf!==""&&Ao(a,this.mf,void 0),this.je!==""&&Ao(a,this.je,[])),a},ot.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!pa(a,y)},ot.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=pa(a,y),y!==void 0)){if(od(y))return y;Ht("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},ot.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=pa(a,x);b!==y&&(Yu(this,b,a),Ao(a,x,y),this.hc(y)===null&&Xu(this,y,a),Ia(this,"nodeGroupKey",Ho,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},Di.prototype.copyNodeData=function(a){return a===null?null:(a=yr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||pa(a,this.Je)===void 0||Ao(a,this.Je,void 0),a)},Di.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){Ep(this,a,x,!0);return}if(y===this.linkToKeyProperty){Ep(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Tp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Tp(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=pa(a,y);b!==x&&(Ao(a,y,x),this.Fs(a,y,b,x))},ot=Di.prototype,ot.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&&pa(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},ot.jp=function(a,y){yr.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(Yl(this,b,!0)===E){var ne=this.lf;Ao(b,ne,te),Ia(this,"linkFromKey",Ho,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)}if(Yl(this,b,!1)===E&&(ne=this.mf,Ao(b,ne,te),Ia(this,"linkToKey",Ho,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)),ne=this.Ef(b),Array.isArray(ne))for(var se=ne.length,he=this.je,ge=0;ge<se;ge++)ne[ge]===E&&(ne[ge]=te,Ia(this,"linkLabelKeys",la,he,b,E,te,ge,ge))}},ot.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ao(a,b,x),Ia(this,"nodeGroupKey",Ho,b,a,y,x),typeof b=="string"&&this.La(a,b)}},ot.Lv=function(){yr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},ot.fm=function(a){yr.prototype.fm.call(this,a),a=this.wa(a);var y=jg(this,a);if(y!==null){var x=yn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Ia(this,"nodeGroupKey",Ho,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Yl(this,b,!0)===a&&(E=this.lf,Ia(this,"linkFromKey",Ho,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Yl(this,b,!1)===a&&(E=this.mf,Ia(this,"linkToKey",Ho,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&&(Ia(this,"linkLabelKeys",la,ne,b,a,a,se,se),x.push(b))}for(y=0;y<x.length;y++)Yu(this,a,x[y]);On(x)}},ot.em=function(a){yr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Xu(this,y,a)},ot.qp=function(a){yr.prototype.qp.call(this,a);var y=this.lh(a);Yu(this,y,a)},ot.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=pa(a,y),y===void 0))return"";if(typeof y=="string")return y;Ht("getCategoryForLinkData found a non-string category for "+a+": "+y)},Di.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Di.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=pa(a,x);b===void 0&&(b=""),b!==y&&(Ao(a,x,y),Ia(this,"linkCategory",Ho,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},Di.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},ot=Di.prototype,ot.lm=function(a,y){yr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function AS(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))}ot.Wj=function(){return!0},ot.ri=function(){return!0},ot.xs=function(){return!0},ot.Xj=function(){return!0},Et.Object.defineProperties(Di.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];on(E)||Ht("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),$i(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new vn,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 xn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Ia(this,"linkDataArray",Ho,"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"}}}),Di.prototype.setCategoryForLinkData=Di.prototype.lp,Di.prototype.getCategoryForLinkData=Di.prototype.ps,Di.prototype.assignAllDataProperties=Di.prototype.Do,Di.prototype.setGroupKeyForNodeData=Di.prototype.mp,Di.prototype.getGroupKeyForNodeData=Di.prototype.lh,Di.prototype.isGroupForNodeData=Di.prototype.Yu,Di.prototype.copyLinkData=Di.prototype.Jo,Di.prototype.mergeLinkDataArray=Di.prototype.Zz,Di.prototype.removeLinkDataCollection=Di.prototype.lA,Di.prototype.removeLinkData=Di.prototype.bm,Di.prototype.addLinkDataCollection=Di.prototype.Ey,Di.prototype.addLinkData=Di.prototype.fi,Di.prototype.containsLinkData=Di.prototype.Jc,Di.prototype.makeLinkDataKeyUnique=Di.prototype.Bs,Di.prototype.findLinkDataForKey=Di.prototype.jh,Di.prototype.setKeyForLinkData=Di.prototype.Ks,Di.prototype.getKeyForLinkData=Di.prototype.Ac,Di.prototype.removeLabelKeyForLinkData=Di.prototype.Qx,Di.prototype.addLabelKeyForLinkData=Di.prototype.Bu,Di.prototype.setLabelKeysForLinkData=Di.prototype.Ls,Di.prototype.getLabelKeysForLinkData=Di.prototype.Ef,Di.prototype.setToPortIdForLinkData=Di.prototype.Cv,Di.prototype.getToPortIdForLinkData=Di.prototype.Cx,Di.prototype.setFromPortIdForLinkData=Di.prototype.xv,Di.prototype.getFromPortIdForLinkData=Di.prototype.zx,Di.prototype.setToKeyForLinkData=Di.prototype.Bv,Di.prototype.getToKeyForLinkData=Di.prototype.Bx,Di.prototype.setFromKeyForLinkData=Di.prototype.wv,Di.prototype.getFromKeyForLinkData=Di.prototype.yx,Di.prototype.clear=Di.prototype.clear;var m0=Object.freeze([]);Di.className="GraphLinksModel",Ou.GraphLinksModel=Di,yr.constructGraphLinksModel=yr.constructGraphLinksModel=function(){return new Di},yr.initDiagramModel=hy=function(){return new Di};function Xs(a,y){yr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Mn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Jt(Xs,yr),Xs.constructGraphLinksModel=yr.constructGraphLinksModel,Xs.prototype.cloneProtected=function(a){yr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},ot=Xs.prototype,ot.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)+":"+Fn(E)}}return y},ot.rm=function(){var a=yr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},ot.gp=function(a){yr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},ot.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ht("applyIncrementalJson cannot change Model properties"),yr.prototype.fp.call(this,a)},ot.Vl=function(a){return a},ot.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=pa(a,y),y!==void 0)){if(od(y))return y;Ht("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},ot.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=pa(a,x);b!==y&&(Yu(this,b,a),Ao(a,x,y),this.hc(y)===null&&Xu(this,y,a),Ia(this,"nodeParentKey",Ho,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},ot.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=pa(a,y),y===void 0)?"":typeof y=="string"?y:(Ht("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Xs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Xs.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=pa(a,x);b===void 0&&(b=""),b!==y&&(Ao(a,x,y),Ia(this,"parentLinkCategory",Ho,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},Xs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Xs.prototype.copyNodeData=function(a){return a===null?null:(a=yr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||pa(a,this.Ke)===void 0||Ao(a,this.Ke,void 0),a)},Xs.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=pa(a,y);b!==x&&(Ao(a,y,x),this.Fs(a,y,b,x))},ot=Xs.prototype,ot.jp=function(a,y){yr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},ot.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ao(a,b,x),Ia(this,"nodeParentKey",Ho,b,a,y,x),typeof b=="string"&&this.La(a,b)}},ot.fm=function(a){yr.prototype.fm.call(this,a),a=this.wa(a);var y=jg(this,a);if(y!==null){var x=yn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Ia(this,"nodeParentKey",Ho,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Yu(this,a,x[y]);On(x)}},ot.em=function(a){yr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Xu(this,y,a)},ot.qp=function(a){yr.prototype.qp.call(this,a);var y=this.mh(a);Yu(this,y,a)},ot.lm=function(a,y){yr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},ot.Tl=function(){return!0},ot.xs=function(){return!0},Et.Object.defineProperties(Xs.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"}}}),Xs.prototype.setParentLinkCategoryForNodeData=Xs.prototype.Ms,Xs.prototype.getParentLinkCategoryForNodeData=Xs.prototype.ss,Xs.prototype.setParentKeyForNodeData=Xs.prototype.qe,Xs.prototype.getParentKeyForNodeData=Xs.prototype.mh,Xs.className="TreeModel",Ou.TreeModel=Xs;function Yo(a){Ro.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Au,this.Ti=0,this.Zv=new kt,this.Jp=this.me=0,this.Xr=new _g,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Au,this.K=Ys,this.nd=Lp,this.hd=oy,this.tf=6,this.Nn=P0,a&&Object.assign(this,a)}Jt(Yo,Ro),Yo.prototype.cloneProtected=function(a){Ro.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},Yo.prototype.qb=function(a){a.classType===Yo?a===w0||a===b0||a===S0||a===x0||a===Lp?this.sorting=a:a===Yd||a===Mp||a===Ys||a===sd?this.direction=a:a===Oh||a===ad||a===Au||a===ju?this.arrangement=a:(a===kf||a===P0)&&(this.nodeDiameterFormula=a):Ro.prototype.qb.call(this,a)},Yo.prototype.createNetwork=function(){return new kp(this)},Yo.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 vn;y.addAll(a.iterator),a=new vn;var x=new vn,b=this.sort(y),E,te,ne=this.Jp,se=this.arrangement,he=this.nodeDiameterFormula,ge=this.radius;(!isFinite(ge)||0>=ge)&&(ge=NaN);var ye=this.aspectRatio;(!isFinite(ye)||0>=ye)&&(ye=1);var Ie=this.startAngle;isFinite(Ie)||(Ie=0);var Ue=this.sweepAngle;if((!isFinite(Ue)||360<Ue||1>Ue)&&(Ue=360),y=this.spacing,isFinite(y)||(y=NaN),se===ju&&he===kf?se=Au:se===ju&&he!==kf&&(se=this.arrangement),(this.direction===Yd||this.direction===Mp)&&this.sorting!==Lp){for(he=0;!(he>=b.length)&&(a.add(b.M(he)),!(he+1>=b.length));he+=2)x.add(b.M(he+1));this.direction===Yd?(this.arrangement===ju&&a.reverse(),b=new vn,b.addAll(a),b.addAll(x)):(this.arrangement===ju&&x.reverse(),b=new vn,b.addAll(x),b.addAll(a))}he=b.length;for(var qe=te=E=0;qe<b.length;qe++){var rt=Ie+Ue*te*(this.direction===Ys?1:-1)/he,ut=b.M(qe).diameter;isNaN(ut)&&(ut=ld(b.M(qe),rt)),360>Ue&&(qe===0||qe===b.length-1)&&(ut/=2),E+=ut,te++}if(isNaN(ge)||se===ju){if(isNaN(y)&&(y=6),se!==Au&&se!==ju){for(te=-1/0,ne=0;ne<he;ne++)qe=b.M(ne),E=b.M(ne===he-1?0:ne+1),isNaN(qe.diameter)&&ld(qe,0),isNaN(E.diameter)&&ld(E,0),te=Math.max(te,(qe.diameter+E.diameter)/2);ne=te+y,se===Oh?ge=(te+y)/(2*Math.PI/he):ge=v0(this,ne*(360<=Ue?he:he-1),ye,Ie*Math.PI/180,Ue*Math.PI/180)}else ge=v0(this,E+(360<=Ue?he:he-1)*(se!==ju?y:1.6*y),ye,Ie*Math.PI/180,Ue*Math.PI/180);te=ge*ye}else if(te=ge*ye,qe=py(this,ge,te,Ie*Math.PI/180,Ue*Math.PI/180),isNaN(y))(se===Au||se===ju)&&(y=(qe-E)/(360<=Ue?he:he-1));else if(se===Au||se===ju)qe=(qe-E)/(360<=Ue?he:he-1),qe<y?(ge=v0(this,E+y*(360<=Ue?he:he-1),ye,Ie*Math.PI/180,Ue*Math.PI/180),te=ge*ye):y=qe;else{for(ne=-1/0,E=0;E<he;E++)rt=b.M(E),ut=b.M(E===he-1?0:E+1),isNaN(rt.diameter)&&ld(rt,0),isNaN(ut.diameter)&&ld(ut,0),ne=Math.max(ne,(rt.diameter+ut.diameter)/2);ne+=y,E=v0(this,ne*(360<=Ue?he:he-1),ye,Ie*Math.PI/180,Ue*Math.PI/180),E>ge?(ge=E,te=ge*ye):ne=qe/(360<=Ue?he:he-1)}if(this.kw=se,this.lc=ge,this.Zm=ye,this.lw=Ie,this.Wp=Ue,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,ge=this.lw,ye=this.Wp,Ie=this.Ti,Ue=this.me,he=this.Jp,this.direction!==Yd&&this.direction!==Mp||b!==ju)if(this.direction===Yd||this.direction===Mp){switch(ne=0,b){case ad:ne=180*y0(this,se,Ue,ge,he)/Math.PI;break;case Au:he=y=0,ne=a.first(),ne!==null&&(y=ld(ne,Math.PI/2)),ne=x.first(),ne!==null&&(he=ld(ne,Math.PI/2)),ne=180*y0(this,se,Ue,ge,Ie+(y+he)/2)/Math.PI;break;case Oh:ne=ye/y.length}if(this.direction===Yd){switch(b){case ad:Rg(this,a,ge,sd);break;case Au:Bg(this,a,ge,sd);break;case Oh:Fg(this,a,ye/2,ge,sd)}switch(b){case ad:Rg(this,x,ge+ne,Ys);break;case Au:Bg(this,x,ge+ne,Ys);break;case Oh:Fg(this,x,ye/2,ge+ne,Ys)}}else{switch(b){case ad:Rg(this,x,ge,sd);break;case Au:Bg(this,x,ge,sd);break;case Oh:Fg(this,x,ye/2,ge,sd)}switch(b){case ad:Rg(this,a,ge+ne,Ys);break;case Au:Bg(this,a,ge+ne,Ys);break;case Oh:Fg(this,a,ye/2,ge+ne,Ys)}}}else switch(b){case ad:Rg(this,y,ge,this.direction);break;case Au:Bg(this,y,ge,this.direction);break;case Oh:Fg(this,y,ye,ge,this.direction);break;case ju:jS(this,y,ye,ge,this.direction)}else jS(this,y,ye,ge-ye/2,Ys)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Fg(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,he=0;he<se;he++){var ge=b+(E===Ys?he*x/(360<=te?se:se-1):-(he*x)/se),ye=y.M(he),Ie=ne*Math.tan(ge)/a;Ie=Math.sqrt((ne*ne+a*a*Ie*Ie)/(1+Ie*Ie)),ye.centerX=Ie*Math.cos(ge),ye.centerY=Ie*Math.sin(ge),ye.actualAngle=180*ge/Math.PI}}function Bg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Ti;x=x*Math.PI/180;for(var se=y.length,he=0;he<se;he++){var ge=y.M(he),ye=y.M(he===se-1?0:he+1),Ie=te*Math.sin(x);ge.centerX=E*Math.cos(x),ge.centerY=Ie,ge.actualAngle=180*x/Math.PI,isNaN(ge.diameter)&&ld(ge,0),isNaN(ye.diameter)&&ld(ye,0),ge=y0(a,E,te,b===Ys?x:-x,(ge.diameter+ye.diameter)/2+ne),x+=b===Ys?ge:-ge}}function Rg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Jp;x=x*Math.PI/180;for(var se=y.length,he=0;he<se;he++){var ge=y.M(he);ge.centerX=E*Math.cos(x),ge.centerY=te*Math.sin(x),ge.actualAngle=180*x/Math.PI,ge=y0(a,E,te,b===Ys?x:-x,ne),x+=b===Ys?ge:-ge}}function jS(a,y,x,b,E){var te=a.Wp;if(a.mj=0,a.Xr=new _g,360>x){for(te=b+(E===Ys?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,he=te*Math.cos(b*Math.PI/180),ge=a.me*Math.sin(b*Math.PI/180),ye=y.Fa();if(ye.length===3)ye[0].centerX=te,ye[0].centerY=0,ye[1].centerX=ye[0].centerX-ye[0].width/2-ye[1].width/2-ne,ye[1].y=ye[0].y,ye[2].centerX=(ye[0].centerX+ye[1].centerX)/2,ye[2].y=ye[0].y-ye[2].height-ne;else if(ye.length===4)ye[0].centerX=te,ye[0].centerY=0,ye[2].centerX=-ye[0].centerX,ye[2].centerY=ye[0].centerY,ye[1].centerX=0,ye[1].y=Math.min(ye[0].y,ye[2].y)-ye[1].height-ne,ye[3].centerX=0,ye[3].y=Math.max(ye[0].y+ye[0].height+ne,ye[2].y+ye[2].height+ne);else{te=kt.alloc();for(var Ie=0;Ie<ye.length&&(ye[Ie].centerX=he,ye[Ie].centerY=ge,!(Ie>=ye.length-1));Ie++)FS(a,he,ge,ye,Ie,E,te)||BS(a,he,ge,ye,Ie,E,te),he=te.x,ge=te.y;if(kt.free(te),a.mj++,!(23<a.mj)){he=ye[0].centerX,ge=ye[0].centerY,te=ye[ye.length-1].centerX,Ie=ye[ye.length-1].centerY;var Ue=Math.abs(he-te)-((ye[0].width+ye[ye.length-1].width)/2+ne),qe=Math.abs(ge-Ie)-((ye[0].height+ye[ye.length-1].height)/2+ne);ne=0,1>Math.abs(qe)?Math.abs(he-te)<(ye[0].width+ye[ye.length-1].width)/2&&(ne=0):ne=0<qe?qe:1>Math.abs(Ue)?0:Ue,he=Math.abs(te)>Math.abs(Ie)?0<te!=ge>Ie:0<Ie!=he<te,(he=E===Ys?he:!he)&&(ne=-Math.abs(ne),ne=Math.min(ne,-ye[ye.length-1].width),ne=Math.min(ne,-ye[ye.length-1].height)),a.Xr.compare(ne,ye),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>ye.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,he=te*Math.cos(b*Math.PI/180),ge=ne*Math.sin(b*Math.PI/180),ye=kt.alloc(),Ie=y.Fa(),Ue=0;Ue<Ie.length&&(Ie[Ue].centerX=he,Ie[Ue].centerY=ge,!(Ue>=Ie.length-1));Ue++)FS(a,he,ge,Ie,Ue,E,ye)||BS(a,he,ge,Ie,Ue,E,ye),he=ye.x,ge=ye.y;if(kt.free(ye),a.mj++,!(23<a.mj)){if(he=Math.atan2(ge,he),he=E===Ys?a.gt-he:he-a.gt,he=Math.abs(he)<Math.abs(he-2*Math.PI)?he:he-2*Math.PI,te=he*(te+ne)/2,ne=a.Xr,Math.abs(te)<Math.abs(ne.Pl))for(ne.Pl=te,ne.mk=[],ne.tm=[],he=0;he<Ie.length;he++)ne.mk[he]=Ie[he].bounds.x,ne.tm[he]=Ie[he].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,he=a.me,ge=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ye=!1;if(0<=x!=(te===Ys)){if(te=y+a,te>se){if(te=y-a,te<-se)return ne.x=te,ne.y=ge,!1;ye=!0}}else if(te=y-a,te<-se){if(te=y+a,te>se)return ne.x=te,ne.y=ge,!1;ye=!0}return ge=Math.sqrt(1-Math.min(1,te*te/(se*se)))*he,0>x!==ye&&(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,he=a.me,ge=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(te===Ys)){if(te=x-a,te<-he){if(te=x+a,te>he){ne.x=ge,ne.y=te;return}b=!0}}else if(te=x+a,te>he){if(te=x-a,te<-he){ne.x=ge,ne.y=te;return}b=!0}ge=Math.sqrt(1-Math.min(1,te*te/(he*he)))*se,0>y!==b&&(ge=-ge),ne.x=ge,ne.y=te}Yo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Yo.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 kt(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))},Yo.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)),he=0,ge=0;ge<=te;ge++){b!==void 0&&E!==void 0?he=b+ge*E/te:he=ge*Math.PI/(2*te);var ye=Math.sin(he);ne+=Math.sqrt(1-a*a*ye*ye)*se}return b!==void 0&&E!==void 0?(y>x?y:x)*ne:4*(y>x?y:x)*ne}function v0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?py(a,1,x,b,E):py(a,1,x))}function y0(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 he=Math.sin(b+se*a);if(ne+=(y>x?y:x)*Math.sqrt(1-te*te*he*he)*a,ne>=E)return se*a}}Yo.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case b0:a.sort(this.comparer),a.reverse();break;case Lp:return this.ak(Ix(a));default:Ht("Invalid sorting type.")}return a};function Ix(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new vn;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}Yo.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 vn;for(var he=0,ge=0;ge<y.length;ge++){var ye=y[ge].length;if(ye===1)b.push(ge);else if(ye===0)E.add(a.M(ge));else{if(he===0)x.push(ge);else{for(var Ie=ye=1/0,Ue=-1,qe=[],rt=0;rt<x.length;rt++)0>y[x[rt]].indexOf(x[rt===x.length-1?0:rt+1])&&qe.push(rt===x.length-1?0:rt+1);if(qe.length===0)for(rt=0;rt<x.length;rt++)qe.push(rt);for(rt=0;rt<qe.length;rt++){for(var ut=qe[rt],At=y[ge],Mt=0,Bt=0;Bt<ne.length;Bt++){var _t=te[ne[Bt]],Gt=te[se[Bt]];if(_t<Gt){var Zt=_t;_t=Gt}else Zt=Gt;if(Zt<ut&&ut<=_t)for(Gt=0;Gt<At.length;Gt++){var hn=At[Gt];0>x.indexOf(hn)||Zt<te[hn]&&te[hn]<_t||Zt===te[hn]||_t===te[hn]||Mt++}else for(Gt=0;Gt<At.length;Gt++)hn=At[Gt],0>x.indexOf(hn)||Zt<te[hn]&&te[hn]<_t&&Zt!==te[hn]&&_t!==te[hn]&&Mt++}for(At=Mt,Bt=Mt=0;Bt<y[ge].length;Bt++)Zt=x.indexOf(y[ge][Bt]),0<=Zt&&(Zt=Math.abs(ut-(Zt>=ut?Zt+1:Zt)),Mt+=Zt<x.length+1-Zt?Zt:x.length+1-Zt);for(Bt=0;Bt<ne.length;Bt++)Zt=te[ne[Bt]],_t=te[se[Bt]],Zt>=ut&&Zt++,_t>=ut&&_t++,Zt>_t&&(Gt=_t,_t=Zt,Zt=Gt),_t-Zt<(x.length+2)/2==(Zt<ut&&ut<=_t)&&Mt++;(At<ye||At===ye&&Mt<Ie)&&(ye=At,Ie=Mt,Ue=ut)}for(x.splice(Ue,0,ge),ye=0;ye<x.length;ye++)te[x[ye]]=ye;for(ye=0;ye<y[ge].length;ye++)Ie=y[ge][ye],0<=x.indexOf(Ie)&&(ne.push(ge),se.push(Ie))}he++}}for(ne=x.length;;){for(te=!0,se=0;se<b.length;se++)if(he=b[se],ge=y[he][0],ye=x.indexOf(ge),0<=ye){for(Ue=Ie=0;Ue<y[ge].length;Ue++)qe=x.indexOf(y[ge][Ue]),0>qe||qe===ye||(rt=qe>ye?qe-ye:ye-qe,Ie+=qe<ye!=rt>ne-rt?1:-1);x.splice(0>Ie?ye:ye+1,0,he),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},Et.Object.defineProperties(Yo.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!==ju&&a!==Au&&a!==ad&&a!==Oh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ys&&a!==sd&&a!==Yd&&a!==Mp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!b0&&a!==Lp||(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!==P0&&a!==kf||(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 Au=new bn(Yo,"ConstantSpacing",0),ad=new bn(Yo,"ConstantDistance",1),Oh=new bn(Yo,"ConstantAngle",2),ju=new bn(Yo,"Packed",3),Ys=new bn(Yo,"Clockwise",4),sd=new bn(Yo,"Counterclockwise",5),Yd=new bn(Yo,"BidirectionalLeft",6),Mp=new bn(Yo,"BidirectionalRight",7),S0=new bn(Yo,"Forwards",8),x0=new bn(Yo,"Reverse",9),w0=new bn(Yo,"Ascending",10),b0=new bn(Yo,"Descending",11),Lp=new bn(Yo,"Optimized",12),P0=new bn(Yo,"Pythagorean",13),kf=new bn(Yo,"Circular",14);Yo.className="CircularLayout",Yo.ConstantSpacing=Au,Yo.ConstantDistance=ad,Yo.ConstantAngle=Oh,Yo.Packed=ju,Yo.Clockwise=Ys,Yo.Counterclockwise=sd,Yo.BidirectionalLeft=Yd,Yo.BidirectionalRight=Mp,Yo.Forwards=S0,Yo.Reverse=x0,Yo.Ascending=w0,Yo.Descending=b0,Yo.Optimized=Lp,Yo.Pythagorean=P0,Yo.Circular=kf;function _g(){this.Pl=-1/0,this.tm=this.mk=null}_g.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},_g.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]}},_g.className="VertexArrangement";function kp(a){Eo.call(this,a)}Jt(kp,Eo),kp.prototype.createVertex=function(){return new zg(this)},kp.prototype.createEdge=function(){return new C0(this)},kp.className="CircularNetwork";function zg(a){Ua.call(this,a),this.u=this.Si=NaN}Jt(zg,Ua);function ld(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===ju)if(x.nodeDiameterFormula===kf)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===kf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Et.Object.defineProperties(zg.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)}}}),zg.className="CircularVertex";function C0(a){kl.call(this,a)}Jt(C0,kl),C0.className="CircularEdge";function Ss(a){Ro.call(this),this.ah=null,this.An=0,this.$d=new Yn(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)}Jt(Ss,Ro),Ss.prototype.cloneProtected=function(a){Ro.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},Ss.prototype.createNetwork=function(){return new Nf(this)},Ss.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,he=!0;te=E=0;for(var ge=yn(),ye=0;ye<se+y.vertexes.count+2;ye++)ge[ye]=null;se=0,ne.reset();for(var Ie=Ln.alloc();ne.next();)if(ye=ne.value,this.computeBounds(ye,Ie),he)he=!1,E=Ie.x+Ie.width/2,te=Ie.y+Ie.height/2,ge[0]=new kt(Ie.x+Ie.width+b.width,Ie.y),ge[1]=new kt(Ie.x,Ie.y+Ie.height+b.height),se=2;else{var Ue=_S(ge,se,E,te,Ie.width,Ie.height,b),qe=ge[Ue],rt=new kt(qe.x+Ie.width+b.width,qe.y),ut=new kt(qe.x,qe.y+Ie.height+b.height);for(Ue+1<se&&ge.splice(Ue+1,0,null),ge[Ue]=rt,ge[Ue+1]=ut,se++,Ue=qe.x-Ie.x,qe=qe.y-Ie.y,ye=ye.vertexes.iterator;ye.next();)rt=ye.value,rt.centerX+=Ue,rt.centerY+=qe}for(Ln.free(Ie),ye=y.vertexes.iterator;ye.next();)ne=ye.value,Ue=ne.bounds,2>se?(E=Ue.x+Ue.width/2,te=Ue.y+Ue.height/2,ge[0]=new kt(Ue.x+Ue.width+b.width,Ue.y),ge[1]=new kt(Ue.x,Ue.y+Ue.height+b.height),se=2):(he=_S(ge,se,E,te,Ue.width,Ue.height,b),Ie=ge[he],qe=new kt(Ie.x+Ue.width+b.width,Ie.y),Ue=new kt(Ie.x,Ie.y+Ue.height+b.height),he+1<se&&ge.splice(he+1,0,null),ge[he]=qe,ge[he+1]=Ue,se++,ne.centerX=Ie.x+ne.width/2,ne.centerY=Ie.y+ne.height/2);for(On(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)}}HS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Ss.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},Ss.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),HS(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 Nf(a),E=0;E<a.ah.length;E++){var te=a.ah[E];if(1<te.Vd){b.dh(te);var ne=new GS;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 vn),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 vn,E.Hj=se),se.add(ne),E.Vd--,E.sh+=ne.sh):ne.network===b&&(se=ne.Hj,se===null&&(se=new vn,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 he=E.Hj;if(he!==null&&0<he.count&&(ne=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ne))){for(var ge=se=0,ye=he.count-ne;ye<he.count;ye++){var Ie=he.M(ye),Ue=null;for(te=Ie.edges.iterator;te.next();){var qe=te.value;if(qe.Ax(Ie)===E){Ue=qe;break}}Ue!==null&&(ge+=Ue.length,se+=Ie.width*Ie.height)}te=E.centerX,he=E.centerY,ye=E.width,Ie=E.height,Ue=E.focus,qe=ye*Ie,1>qe&&(qe=1),se=Qt.sqrt((se+qe+ge*ge*4/(ne*ne))/qe),ne=(se-1)*ye/2,se=(se-1)*Ie/2,E.bounds=new Ln(te-Ue.x-ne,he-Ue.y-se,ye+2*ne,Ie+2*se),E.focus=new kt(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 Ln(b.centerX-te,b.centerY-ne,E.Ss,E.Qs),b.focus=new kt(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,he=ne=0,ge=0,ye=y.vertexes.iterator;ye.next();){var Ie=ye.value;1>=Ie.Vd?he++:(se=!0,ge++,ne+=Math.atan2(y.centerY-Ie.centerY,y.centerX-Ie.centerX))}if(he!==0){for(0<ge&&(ne/=ge),ge=y=0,y=se?2*Math.PI/(he+1):2*Math.PI/he,he%2===0&&(ge=y/2),1<x.count&&x.sort(function(qe,rt){return qe===null||rt===null||qe===rt?0:rt.width*rt.height-qe.width*qe.height}),se=he%2===0?0:1,x=x.iterator;x.next();)if(he=x.value,!(1<he.Vd||a.isFixed(he))){for(ye=null,Ie=he.edges.iterator;Ie.next();){ye=Ie.value;break}Ie=he.width;var Ue=he.height;Ie=Qt.sqrt(Ie*Ie+Ue*Ue)/2,ye=te+ye.length+Ie,Ie=ne+(y*(se/2>>1)+ge)*(se%2===0?1:-1),he.centerX=b+ye*Math.cos(Ie),he.centerY=E+ye*Math.sin(Ie),se++}}}}function _S(a,y,x,b,E,te,ne){var se=9e19,he=-1,ge=0;e:for(;ge<y;ge++){var ye=a[ge],Ie=ye.x-x,Ue=ye.y-b;if(Ie=Ie*Ie+Ue*Ue,Ie<se){for(Ue=ge-1;0<=Ue;Ue--)if(a[Ue].y>ye.y&&a[Ue].x-ye.x<E+ne.width)continue e;for(Ue=ge+1;Ue<y;Ue++)if(a[Ue].x>ye.x&&a[Ue].y-ye.y<te+ne.height)continue e;he=ge,se=Ie}}return he}Ss.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ss.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 HS(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 he=se.centerX;se=se.centerY,b=Math.min(b,he),E=Math.max(E,he),x=Math.min(x,se),te=Math.max(te,se)}(E=E-b>te-x)?y.sort(function(ut,At){return ut===null||At===null||ut===At?0:ut.centerX-At.centerX}):y.sort(function(ut,At){return ut===null||At===null||ut===At?0:ut.centerY-At.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,he=b.x+se.x;var ye=b.y+se.y;b=ne.charge*a.electricalFieldX(he,ye),ge=ne.charge*a.electricalFieldY(he,ye),b+=ne.mass*a.gravitationalFieldX(he,ye),ge+=ne.mass*a.gravitationalFieldY(he,ye),ne.forceX+=b,ne.forceY+=ge;for(var Ie=te+1;Ie<y.length;Ie++){var Ue=y[Ie];if(Ue!==ne){b=Ue.bounds,se=Ue.focus,ge=b.x+se.x;var qe=b.y+se.y;if(he-ge>x||ge-he>x){if(E)break}else if(ye-qe>x||qe-ye>x){if(!E)break}else{var rt=zS(ne,Ue);1>rt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new E0),rt=b.random(),se=b.random(),he>ge?(b=Math.abs(Ue.bounds.right-ne.bounds.x),b=(1+b)*rt):he<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),ye>qe?(ge=Math.abs(Ue.bounds.bottom-ne.bounds.y),ge=(1+ge)*se):he<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-he)/rt*se,ge=(qe-ye)/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,he=x.focus,b=ne.x+he.x,ne=ne.y+he.y,ye=te.bounds,Ie=te.focus,he=ye.x+Ie.x,ye=ye.y+Ie.y,Ie=zS(x,te),1>Ie?(Ie=a.randomNumberGenerator,Ie===null&&(a.randomNumberGenerator=Ie=new E0),se=Ie.random(),Ie=Ie.random(),b=(b>he?1:-1)*(1+(te.width>x.width?te.width:x.width))*se,ge=(ne>ye?1:-1)*(1+(te.height>x.height?te.height:x.height))*Ie):(se=se.stiffness*(Ie-se.length),b=(he-b)/Ie*se,ge=(ye-ne)/Ie*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}Ss.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},Ss.prototype.moveFixedVertex=function(){},Ss.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ss.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=to,y.toSpot=to)}},Ss.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Ln.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Ln.free(x)}x=Ln.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()}Ln.free(x)},Ss.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ss.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Ss.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Ss.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Ss.prototype.electricalFieldX=function(){return 0},Ss.prototype.electricalFieldY=function(){return 0},Ss.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Ss.prototype.gravitationalFieldX=function(){return 0},Ss.prototype.gravitationalFieldY=function(){return 0},Ss.prototype.isFixed=function(a){return a.isFixed},Et.Object.defineProperties(Ss.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"&&Ht('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())}}}),Ss.className="ForceDirectedLayout";function GS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}GS.className="ForceDirectedSubnet";function Nf(a){Eo.call(this,a)}Jt(Nf,Eo),Nf.prototype.createVertex=function(){return new Hg(this)},Nf.prototype.createEdge=function(){return new Gg(this)},Nf.className="ForceDirectedNetwork";function Hg(a){Ua.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}Jt(Hg,Ua),Et.Object.defineProperties(Hg.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)}}}),Hg.className="ForceDirectedVertex";function Gg(a){kl.call(this,a),this.j=this.o=NaN}Jt(Gg,kl),Et.Object.defineProperties(Gg.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)}}}),Gg.className="ForceDirectedEdge";function E0(){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()}E0.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},E0.className="RandomNumberGenerator";function uo(a){Ro.call(this),this.kc=this.ie=25,this.K=0,this.Dk=N0,this.Zk=O0,this.Qk=A0,this.bj=4,this.rk=j0,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 kt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Jt(uo,Ro),uo.prototype.cloneProtected=function(a){Ro.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},uo.prototype.qb=function(a){a.classType===uo?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:Ht("Unknown enum value: "+a):Ro.prototype.qb.call(this,a)},uo.prototype.createNetwork=function(){return new Op(this)},uo.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!==Ug&&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===Ug&&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,he=0,ge=0;if(b.link!==null){if(se=b.link,se===null)continue;var ye=E.node;if(ne=te.node,ye===null||ne===null)continue;var Ie=se.fromNode;he=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=Ie;var qe=Ue;Ie=he,Ue=se,he=ge,se=qe}var rt=E.focus;ge=te.focus;var ut=b.rev?te.bounds:E.bounds;qe=kt.alloc(),ye!==Ie?ut.w()&&Ie.isVisible()?Ie.actualBounds.w()?(Th(Ie,Ue,Bi,qe),qe.x+=Ie.actualBounds.x-ut.x,qe.y+=Ie.actualBounds.y-ut.y):(Th(Ie,Ue,Bi,qe),qe.w()||qe.assign(rt)):qe.assign(rt):ut.w()?(Th(Ie,Ue,Bi,qe),qe.w()||qe.assign(rt)):qe.assign(rt),Ie=b.rev?E.bounds:te.bounds,ye=kt.alloc(),ne!==he?Ie.w()&&he.isVisible()?he.actualBounds.w()?(Th(he,se,Bi,ye),ye.x+=he.actualBounds.x-Ie.x,ye.y+=he.actualBounds.y-Ie.y):(Th(he,se,Bi,ye),ye.w()||ye.assign(ge)):ye.assign(ge):Ie.w()?(Th(he,se,Bi,ye),ye.w()||ye.assign(ge)):ye.assign(ge),this.K===90||this.K===270?(ne=Math.round((qe.x-rt.x)/this.kc),he=qe.x,se=Math.round((ye.x-ge.x)/this.kc),ge=ye.x):(ne=Math.round((qe.y-rt.y)/this.kc),he=qe.y,se=Math.round((ye.y-ge.y)/this.kc),ge=ye.y),kt.free(qe),kt.free(ye),b.portFromColOffset=ne,b.portFromPos=he,b.portToColOffset=se,b.portToPos=ge}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(qe=E.layer,ye=te.layer,Ie=0,ut=b.link,ut!==null){var At=ut.fromPort,Mt=ut.toPort;if(At!==null&&Mt!==null){var Bt=ut.fromNode;if(Ue=ut.toNode,Bt!==null&&Ue!==null){var _t=k0(this,!0),Gt=k0(this,!1),Zt=this.setsPortSpots?_t:ut.computeSpot(!0,At);rt=this.setsPortSpots?Gt:ut.computeSpot(!1,Mt);var hn=ut.isOrthogonal;Zt.$c()&&Zt.Hf(Gt)&&rt.$c()&&rt.Hf(_t)?Ie=0:(_t=ut.getLinkPoint(Bt,At,Zt,!0,hn,Ue,Mt,kt.alloc()),Gt=ut.getLinkDirection(Bt,At,_t,Zt,!0,hn,Ue,Mt),kt.free(_t),Zt.ys()||Gt!==JS(this,b,!0)?this.setsPortSpots&&Bt!==null&&Bt.ports.count===1&&b.rev&&(Ie+=1):Ie+=1,Zt=ut.getLinkPoint(Ue,Mt,rt,!1,hn,Bt,At,kt.alloc()),ut=ut.getLinkDirection(Ue,Mt,Zt,rt,!1,hn,Bt,At),kt.free(Zt),rt.ys()||ut!==JS(this,b,!1)?this.setsPortSpots&&Ue!==null&&Ue.ports.count===1&&b.rev&&(Ie+=2):Ie+=2)}}}if(Ue=Ie,Ie=Ue===1||Ue===3,(Ue=Ue===2||Ue===3)&&(rt=a.createVertex(),rt.node=null,rt.Dj=1,rt.layer=qe,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=he,E.portToPos=0,E=rt),ut=1,Ie&&ut--,qe-ye>ut&&0<qe){for(b.valid=!1,rt=a.createVertex(),rt.node=null,rt.Dj=2,rt.layer=qe-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:he,E.portToPos=0,E=rt,qe--;qe-ye>ut&&0<qe;)rt=a.createVertex(),rt.node=null,rt.Dj=3,rt.layer=qe-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,qe--;E=a.Zj(rt,te,b.link),E.valid=!Ie,Ie&&(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=ud(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),cd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},uo.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}uo.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},uo.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 hl(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 cu(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 WS(a,y,x){var b=ud(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,he=b[ne],ge=he.near;if(ge!==null&&ge.layer===he.layer)if(he=ge.index,he>ne)for(var ye=ne+1;ye<he;ye++){var Ie=b[ye];Ie.near===ge&&Ie.Dj===ge.Dj||se++}else for(ye=ne-1;ye>he;ye--)Ie=b[ye],Ie.near===ge&&Ie.Dj===ge.Dj||se++;var Ue;if(0<=x)for(he=b[ne].sourceEdgesArrayAccess,ge=0;ge<he.length;ge++){var qe=he[ge];if(qe.valid&&qe.fromVertex.layer!==y)for(Ie=qe.fromVertex.index,ye=qe.portToPos,qe=qe.portFromPos,Ue=ge+1;Ue<he.length;Ue++){var rt=he[Ue];if(rt.valid&&rt.fromVertex.layer!==y){var ut=rt.fromVertex.index,At=rt.portToPos;rt=rt.portFromPos,ye<At&&(Ie>ut||Ie===ut&&qe>rt)&&se++,At<ye&&(ut>Ie||ut===Ie&&rt>qe)&&se++}}}if(0>=x){for(he=b[ne].destinationEdgesArrayAccess,ge=0;ge<he.length;ge++)if(qe=he[ge],qe.valid&&qe.toVertex.layer!==y)for(Ie=qe.toVertex.index,ye=qe.portToPos,qe=qe.portFromPos,Ue=ge+1;Ue<he.length;Ue++)rt=he[Ue],rt.valid&&rt.toVertex.layer!==y&&(ut=rt.toVertex.index,At=rt.portToPos,rt=rt.portFromPos,qe<rt&&(Ie>ut||Ie===ut&&ye>At)&&se++,rt<qe&&(ut>Ie||ut===Ie&&At>ye)&&se++)}for(te[ne*E+ne]=se,he=ne+1;he<E;he++){var Mt=0,Bt=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var _t=b[he].sourceEdgesArrayAccess;for(ge=0;ge<se.length;ge++)if(qe=se[ge],qe.valid&&qe.fromVertex.layer!==y)for(Ie=qe.fromVertex.index,qe=qe.portFromPos,Ue=0;Ue<_t.length;Ue++)rt=_t[Ue],rt.valid&&rt.fromVertex.layer!==y&&(ut=rt.fromVertex.index,rt=rt.portFromPos,(Ie<ut||Ie===ut&&qe<rt)&&Bt++,(ut<Ie||ut===Ie&&rt<qe)&&Mt++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,_t=b[he].destinationEdgesArrayAccess,ge=0;ge<se.length;ge++)if(qe=se[ge],qe.valid&&qe.toVertex.layer!==y)for(Ie=qe.toVertex.index,ye=qe.portToPos,Ue=0;Ue<_t.length;Ue++)rt=_t[Ue],rt.valid&&rt.toVertex.layer!==y&&(ut=rt.toVertex.index,At=rt.portToPos,(Ie<ut||Ie===ut&&ye<At)&&Bt++,(ut<Ie||ut===Ie&&At<ye)&&Mt++)}te[ne*E+he]=Mt,te[he*E+ne]=Bt}}return cd(a,y,b),te}uo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=WS(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 T0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,te=ud(b,E),ne=b.tc[E],se=0,he=0;he<ne;he++){var ge=te[he].destinationEdgesArrayAccess;if(ge!==null)for(var ye=0;ye<ge.length;ye++){var Ie=ge[ye];if(Ie.valid&&Ie.toVertex.layer!==E){var Ue=Ie.fromVertex.column+Ie.portFromColOffset,qe=Ie.toVertex.column+Ie.portToColOffset;se+=(Math.abs(Ue-qe)+1)*gy(Ie)}}}cd(b,E,te),y+=se}return y}uo.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=ud(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],he=null;0>=x&&(he=se.sourceEdgesArrayAccess);var ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var ye=0,Ie=0,Ue=se.near;if(Ue!==null&&Ue.layer===se.layer&&(ye+=Ue.column-1,Ie++),he!==null)for(Ue=0;Ue<he.length;Ue++){se=he[Ue];var qe=se.fromVertex;se.valid&&!se.rev&&qe.layer!==y&&(ye+=qe.column,Ie++)}if(ge!==null)for(he=0;he<ge.length;he++)se=ge[he],Ue=se.toVertex,se.valid&&!se.rev&&Ue.layer!==y&&(ye+=Ue.column,Ie++);te[ne]=Ie===0?-1:ye/Ie}return cd(a,y,b),te}function US(a,y,x){for(var b=ud(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],he=null;0>=x&&(he=se.sourceEdgesArrayAccess);var ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var ye=0,Ie=[],Ue=se.near;if(Ue!==null&&Ue.layer===se.layer&&(Ie[ye]=Ue.column-1,ye++),se=void 0,he!==null)for(Ue=0;Ue<he.length;Ue++){se=he[Ue];var qe=se.fromVertex;se.valid&&!se.rev&&qe.layer!==y&&(Ie[ye]=qe.column+se.portFromColOffset,ye++)}if(ge!==null)for(he=0;he<ge.length;he++)se=ge[he],Ue=se.toVertex,se.valid&&!se.rev&&Ue.layer!==y&&(Ie[ye]=Ue.column+se.portToColOffset,ye++);ye===0?te[ne]=-1:(Ie.sort(function(rt,ut){return rt-ut}),ge=ye>>1,te[ne]=ye&1?Ie[ge]:Ie[ge-1]+Ie[ge]>>1)}return cd(a,y,b),te}function Wg(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,he=se.toVertex,ge=y.layer-he.layer;se=a.linkMinLength(se),ge===se&&Wg(a,he,x,b,E,te)}if(te)for(ne=y.sourceEdges;ne.next();)se=ne.value,he=se.fromVertex,ge=he.layer-y.layer,se=a.linkMinLength(se),ge===se&&Wg(a,he,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)}}uo.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=$S(a);E!==null;)b[x]=E,x--,E.valid=!1,E=$S(a);for(E=KS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=KS(a);E=null;for(var te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value;if(se.valid){for(var he=0,ge=se.destinationEdges;ge.next();)ge.value.toVertex.valid&&he++;ge=0;for(var ye=se.sourceEdges;ye.next();)ye.value.fromVertex.valid&&ge++;(E===null||te<he-ge)&&(E=se,te=he-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 N0: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 Ug: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 $S(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 KS(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++}uo.prototype.assignLayers=function(){switch(this.Zk){case wy:VS(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 O0:for(VS(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 VS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=ZS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function ZS(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,ZS(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,he=ne.toVertex;ne=a.linkMinLength(ne),se.layer-he.layer>ne&&Wg(a,se,0,-1,!0,!1)}for(Wg(a,y,1,-1,!0,!0);y.component!==0;){for(te=0,b=1/0,se=0,he=null,ne=a.network.vertexes.iterator;ne.next();){var ge=ne.value;if(ge.component===1){var ye=0,Ie=!1,Ue=ge.sourceEdgesArrayAccess;E=Ue.length;for(var qe=0;qe<E;qe++){var rt=Ue[qe],ut=rt.fromVertex;ye+=1,ut.component!==1&&(te+=1,ut=ut.layer-ge.layer,rt=a.linkMinLength(rt),b=Math.min(b,ut-rt))}for(Ue=ge.destinationEdgesArrayAccess,E=Ue.length,qe=0;qe<E;qe++)rt=Ue[qe].toVertex,--ye,rt.component!==1?--te:Ie=!0;(he===null||ye<se)&&!Ie&&(he=ge,se=ye)}}if(0<te){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else he.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Wg(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,te=0,se=null,he=a.network.vertexes.iterator;he.next();)if(ne=he.value,ne.component===1){for(ge=0,ye=!1,Ue=ne.sourceEdgesArrayAccess,Ie=Ue.length,qe=0;qe<Ie;qe++)rt=Ue[qe].fromVertex,ge+=1,rt.component!==1?b+=1:ye=!0;for(Ue=ne.destinationEdgesArrayAccess,Ie=Ue.length,qe=0;qe<Ie;qe++)rt=Ue[qe],ut=rt.toVertex,--ge,ut.component!==1&&(--b,ut=ne.layer-ut.layer,rt=a.linkMinLength(rt),E=Math.min(E,ut-rt));(se===null||ge>te)&&!ye&&(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}uo.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 A0: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))}uo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=hl(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,1),Su(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=hl(this)),b=this.Ia;0<=b;b--)M0(this,b,-1),Su(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=hl(this))}for(cu(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,0),Su(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=hl(this)),b=this.Ia;0<=b;b--)M0(this,b,0),Su(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=hl(this))}cu(this,y);var te,ne,se;switch(this.rk){case Ey:break;case Ty: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=Su(this,b,-1)||te;for(E=this.countCrossings(),E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Su(this,b,1)||te;for(E=this.countCrossings(),E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Su(this,b,1)||te;for(E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Su(this,b,-1)||te;for(E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Su(this,b,0)||te;for(E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Su(this,b,0)||te;E>=a?cu(this,y):(a=E,y=hl(this))}break;default:case j0: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=Su(this,b,-1)||te;for(E=this.countCrossings(),E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Su(this,b,1)||te;for(E=this.countCrossings(),E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Su(this,b,1)||te;for(E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Su(this,b,-1)||te;for(E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Su(this,b,0)||te;for(E>=a?cu(this,y):(a=E,y=hl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Su(this,b,0)||te;E>=a?cu(this,y):(a=E,y=hl(this))}}cu(this,y)};function M0(a,y,x){var b=ud(a,y),E=a.tc[y],te=US(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,he;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,he=te[x],te[x]=te[x+1],te[x+1]=he,he=ne[x],ne[x]=ne[x+1],ne[x+1]=he,he=b[x],b[x]=b[x+1],b[x+1]=he);for(x=te=0;x<E;x++)he=b[x],he.index=x,te+=a.nodeMinColumnSpace(he,!0),he.column=te,te+=1,te+=a.nodeMinColumnSpace(he,!1);cd(a,y,b)}function Su(a,y,x){var b=ud(a,y),E=a.tc[y];x=WS(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 he=!1,ge=!0;ge;)for(ge=!1,te=0;te<E-1;te++){var ye=x[b[te].index*E+b[te+1].index],Ie=x[b[te+1].index*E+b[te].index],Ue=0,qe=0,rt=b[te].column,ut=b[te+1].column,At=a.nodeMinColumnSpace(b[te],!0),Mt=a.nodeMinColumnSpace(b[te],!1),Bt=a.nodeMinColumnSpace(b[te+1],!0),_t=a.nodeMinColumnSpace(b[te+1],!1);At=rt-At+Bt,Mt=ut-Mt+_t;var Gt=b[te].sourceEdges.iterator;for(Gt.reset();Gt.next();)if(Bt=Gt.value,_t=Bt.fromVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt<te&&(Ue+=2*(te-Bt),qe+=2*(te+1-Bt)),Bt===te+1&&(Ue+=1),Bt>te+1&&(Ue+=4*(Bt-te),qe+=4*(Bt-(te+1)))}for(Gt=b[te].destinationEdges.iterator,Gt.reset();Gt.next();)if(Bt=Gt.value,_t=Bt.toVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt===te+1&&(qe+=1)}for(Gt=b[te+1].sourceEdges.iterator,Gt.reset();Gt.next();)if(Bt=Gt.value,_t=Bt.fromVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt<te&&(Ue+=2*(te+1-Bt),qe+=2*(te-Bt)),Bt===te&&(qe+=1),Bt>te+1&&(Ue+=4*(Bt-(te+1)),qe+=4*(Bt-te))}for(Gt=b[te+1].destinationEdges.iterator,Gt.reset();Gt.next();)if(Bt=Gt.value,_t=Bt.toVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt===te&&(Ue+=1)}Bt=_t=0,Gt=ne[b[te].index];var Zt=se[b[te].index],hn=ne[b[te+1].index],qn=se[b[te+1].index];Gt!==-1&&(_t+=Math.abs(Gt-rt),Bt+=Math.abs(Gt-Mt)),Zt!==-1&&(_t+=Math.abs(Zt-rt),Bt+=Math.abs(Zt-Mt)),hn!==-1&&(_t+=Math.abs(hn-ut),Bt+=Math.abs(hn-At)),qn!==-1&&(_t+=Math.abs(qn-ut),Bt+=Math.abs(qn-At)),(qe<Ue-.5||qe===Ue&&Ie<ye-.5||qe===Ue&&Ie===ye&&Bt<_t-.5)&&(ge=he=!0,b[te].column=Mt,b[te+1].column=At,ye=b[te],b[te]=b[te+1],b[te+1]=ye)}for(te=0;te<E;te++)b[te].index=te;return cd(a,y,b),he}uo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Zx)!==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=Np(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Np(this,y,-1)||x;x=Np(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=Np(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Np(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Np(this,y,0)||x}}else Ux(this)};function Np(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=ud(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 he=!1,ge=!0;ge;)for(ge=!1,b=0;b<te;b++){var ye=E[b].column,Ie=a.nodeMinColumnSpace(E[b],!0),Ue=a.nodeMinColumnSpace(E[b],!1),qe=0;0>b-1||ye-E[b-1].column-1>Ie+a.nodeMinColumnSpace(E[b-1],!1)?qe=ye-1:qe=ye,Ie=b+1>=te||E[b+1].column-ye-1>Ue+a.nodeMinColumnSpace(E[b+1],!0)?ye+1:ye;var rt=Ue=0,ut=0;if(0>=x)for(var At=E[b].sourceEdges.iterator;At.next();){var Mt=At.value,Bt=Mt.fromVertex;if(Mt.valid&&Bt.layer!==y){var _t=gy(Mt),Gt=Mt.portFromColOffset;Mt=Mt.portToColOffset,Bt=Bt.column,Ue+=(Math.abs(ye+Mt-(Bt+Gt))+1)*_t,rt+=(Math.abs(qe+Mt-(Bt+Gt))+1)*_t,ut+=(Math.abs(Ie+Mt-(Bt+Gt))+1)*_t}}if(0<=x)for(At=E[b].destinationEdges.iterator;At.next();)Mt=At.value,Bt=Mt.toVertex,Mt.valid&&Bt.layer!==y&&(_t=gy(Mt),Gt=Mt.portFromColOffset,Mt=Mt.portToColOffset,Bt=Bt.column,Ue+=(Math.abs(ye+Gt-(Bt+Mt))+1)*_t,rt+=(Math.abs(qe+Gt-(Bt+Mt))+1)*_t,ut+=(Math.abs(Ie+Gt-(Bt+Mt))+1)*_t);Mt=Gt=_t=0,At=ne[E[b].index],Bt=se[E[b].index],At!==-1&&(_t+=Math.abs(At-ye),Gt+=Math.abs(At-qe),Mt+=Math.abs(At-Ie)),Bt!==-1&&(_t+=Math.abs(Bt-ye),Gt+=Math.abs(Bt-qe),Mt+=Math.abs(Bt-Ie)),rt<Ue||rt===Ue&&Gt<_t?(ge=he=!0,E[b].column=qe):(ut<Ue||ut===Ue&&Mt<_t)&&(ge=he=!0,E[b].column=Ie)}return cd(a,y,E),a.normalize(),he}function Sy(a,y,x){var b=ud(a,y),E=a.tc[y],te=US(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,he=a.nodeMinColumnSpace(b[x],!0),ge=a.nodeMinColumnSpace(b[x],!1),ye=0;if(ne[x]===-1)if(x===0&&x===E-1)ye=se;else if(x===0){var Ie=b[x+1].column;Ie-se===ge+a.nodeMinColumnSpace(b[x+1],!0)?ye=se-1:ye=se}else x===E-1?(Ie=b[x-1].column,ye=se-Ie===he+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(Ie=b[x-1].column,he=Ie+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Ie=b[x+1].column,ge=Ie-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,ye=(he+ge)/2|0);else x===0&&x===E-1?ye=ne[x]:x===0?(Ie=b[x+1].column,ge=Ie-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,ye=Math.min(ne[x],ge)):x===E-1?(Ie=b[x-1].column,he=Ie+a.nodeMinColumnSpace(b[x-1],!1)+he+1,ye=Math.max(ne[x],he)):(Ie=b[x-1].column,he=Ie+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Ie=b[x+1].column,ge=Ie-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,he<ne[x]&&ne[x]<ge?ye=ne[x]:he>=ne[x]?ye=he:ge<=ne[x]&&(ye=ge));ye!==se&&(te=!0,b[x].column=ye)}cd(a,y,b),a.normalize()}function Gx(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 Wx(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),he=b.column+a.nodeMinColumnSpace(b,!1);se<=y&&he>=y&&(E[b.layer]=!0),se<=x&&he>=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(;Gx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Wx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=hl(a),te=T0(a);for(b=te+1;te<b;){b=te,tx(a,x,1);var ne=T0(a);ne>te?cu(a,E):ne<te&&(te=ne,E=hl(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=hl(a),te=T0(a),b=te+1;te<b;)b=te,tx(a,x,-1),ne=T0(a),ne>te?cu(a,E):ne<te&&(te=ne,E=hl(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)),he=Math.min(a.Ra,te.column+a.nodeMinColumnSpace(te,!1));se<=he;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(he=ne[ne.length-1],ne.pop(),E[he])for(E[he]=!1,te=0;te<a.le;te++)y[he*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 Ux(a){for(var y=yn(),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 xn,$x(y,x);var te=null,ne=null,se=null,he=null,ge=(a.ve&1)!==0,ye=(a.ve&2)!==0,Ie=(a.ve&4)!==0,Ue=(a.ve&8)!==0;for(ge&&(a.verticalAlignment(y,x,!0),te=L0(a,y,!0,!1)),y.reverse(),Ie&&(a.verticalAlignment(y,x,!1),se=L0(a,y,!1,!1)),b=xi(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ue&&(a.verticalAlignment(y,x,!1),he=L0(a,y,!1,!0)),y.reverse(),ye&&(a.verticalAlignment(y,x,!0),ne=L0(a,y,!0,!0)),On(y),a.u(te,ne,se,he),a.network.vertexes.each(function(qe){var rt=yn();ge&&rt.push(te.get(qe)),ye&&rt.push(ne.get(qe)),Ie&&rt.push(se.get(qe)),Ue&&rt.push(he.get(qe)),rt.sort(function(At,Mt){return At-Mt});var ut=rt.length;ut=(rt[Math.floor((ut-1)/2)]+rt[Math.ceil((ut-1)/2)])/2,On(rt),qe.zc=ut})}function $x(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],he=0;te<se.length;he++){var ge=se[he];e:{if(ge.node===null){var ye=My(ge);if(0<ye.length){ye=ye[0].node===null;break e}}ye=!1}var Ie=ye;if(he===se.length-1||Ie){for(ye=ne.length-1,Ie&&(ye=My(ge)[0].index);te<=he;){if(ge=se[te],!ge.bo){Ie=[];for(var Ue=xi(ge.sourceEdgesArrayAccess),qe=Ue.next();!qe.done;qe=Ue.next())qe=qe.value,qe.valid&&Ie.push(qe);ge.bo=Ie}for(ge=xi(ge.bo),Ie=ge.next();!Ie.done;Ie=ge.next())Ie=Ie.value,Ue=Ie.fromVertex.index,(Ue<E||Ue>ye)&&y.add(Ie);te++}E=ye}}}uo.prototype.verticalAlignment=function(a,y,x){Kx(a),a=xi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=xi(b.value);for(var te=b.next();!te.done;te=b.next()){te=te.value;var ne=x?My(te):Xx(te),se=ne.length;if(0<se){ne.sort(function(Ie,Ue){return Ie.vi-Ue.vi});var he=(se-1)/2;for(se=Math.floor(he),he=Math.ceil(he);se<=he;se++)if(te.align===te){var ge=ne[se],ye=void 0;ye=x?I0(ge,te):I0(te,ge),!y.contains(ye)&&E<ge.vi&&(ge.align=te,te.root=ge.root,te.align=ge.root,E=ge.vi)}}}}};function Kx(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 L0(a,y,x,b){for(var E=a.K===90||a.K===270,te=xi(y),ne=te.next();!ne.done;ne=te.next()){var se=xi(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=xi(y),se=te.next();!se.done;se=te.next()){se=xi(se.value);for(var he=se.next();!he.done;he=se.next())if(he=he.value,he.root===he){for(var ge=0,ye=he;ye.align!==he;){var Ie=ye.align,Ue=ne?ye.width:ye.height,qe=ne?Ie.width:Ie.height;if(x){var rt=I0(ye,Ie),ut=rt.portFromPos,At=rt.portToPos;rt.link!==null&&(ye.node&&ye.node!==rt.link.fromNode&&(ut=ne?ye.focusX:ye.focusY),Ie.node&&Ie.node!==rt.link.toNode&&(At=ne?Ie.focusX:Ie.focusY))}else rt=I0(Ie,ye),ut=rt.portToPos,At=rt.portFromPos,rt.link!==null&&(ye.node&&ye.node!==rt.link.toNode&&(ut=ne?ye.focusX:ye.focusY),Ie.node&&Ie.node!==rt.link.fromNode&&(At=ne?Ie.focusX:Ie.focusY));Ue=b?ye.qg+(Ue-ut)-(qe-At):ye.qg+ut-At,Ie.qg=Ue,ge=Math.min(ge,Ue),ye=ye.align}ye=he;do ye.qg=ye.qg-ge,ye=ye.align;while(ye!==he)}}for(x=xi(y),ne=x.next();!ne.done;ne=x.next())for(te=xi(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 fr,y=xi(y),ne=y.next();!ne.done;ne=y.next())for(x=xi(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&&Ht("Could not determine previous vertex in layer"),y[x][a-1]}uo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=yn(),E=yn(),te=1/0,ne=0;4>ne;ne++)if(y[ne]){var se=Vx(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(he){return function(ge){ge.value+=he.delta}}(te)));On(b),On(E)};function Vx(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 he=se.key;se=se.value,he=a.K===90||a.K===270?he.width:he.height,se<te&&(te=se),se+he>ne&&(ne=se+he)}),x[E]=te,b[E]=ne,ne-te}uo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(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 k0(a,y){return a.K===270?y?ca:za:a.K===90?y?za:ca:a.K===180?y?Ca:Ka:y?Ka:Ca}uo.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 he=a.value,ge=he.layer,ye=he.column|0;b?(ne=y.x+this.kc*ye,ge=this.Kd[ge]):(ne=this.Kd[ge],ge=y.y+this.kc*ye),he.centerX=ne,he.centerY=ge,x&&isFinite(he.zc)&&(b?he.node?he.x=y.x+he.zc:he.centerX=y.x+he.zc:he.node?he.y=y.y+he.zc:he.centerY=y.y+he.zc),te=Math.min(he.x,te),E=Math.min(he.y,E),b?(ne=te,se=Math.max(se,he.bounds.right)):(ne=E,se=Math.max(se,he.bounds.bottom))}for(this.xw=se-ne,te=y.x-te,y=y.y-E,this.Rf=new kt(x&&b?0:te,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=te,x.y+=y,x.commit()},uo.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 Ln(0,0,x,Math.abs(this.Ta[0]))):y.push(new Ln(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Ln(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Ln(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Ln(0,0,Math.abs(this.Ta[0]),x)):y.push(new Ln(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Ln(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Ln(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},uo.prototype.commitLayers=function(){},uo.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 he=E.findVisibleNode();he!==null&&he!==E&&(E=he,ne=he.port)}te!==null&&(he=te.findVisibleNode(),he!==null&&he!==te&&(te=he,se=he.port));var ge=y.computeSpot(!0,ne);he=y.computeSpot(!1,se);var ye=x.fromVertex,Ie=x.toVertex;if(x.valid)y.curve===Xl&&y.pointsCount===4&&(ye.column===Ie.column&&this.alignOption===0?(x=y.getLinkPoint(E,ne,ge,!0,!1,te,se),se=y.getLinkPoint(te,se,he,!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===aa&&(b=!0),se!==null&&he===aa&&(x=!0),(b||x)&&(he=null,b&&(he=y.getLinkPointFromPoint(E,ne,ne.ga(Bi),y.i(3),!0),he.w()||he.set(E.actualBounds.center),y.L(0,he.x,he.y)),E=null,x&&(E=y.getLinkPointFromPoint(te,se,se.ga(Bi),y.i(0),!1),E.w()||E.set(te.actualBounds.center),y.L(3,E.x,E.y)),he&&(te=y.i(2),y.L(1,(2*he.x+te.x)/3,(2*he.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(ye.layer===Ie.layer)y.zf();else{var Ue=!1,qe=!1,rt=this.ie,ut=y.firstPickIndex+1;if(y.isOrthogonal){qe=!0;var At=y.pointsCount;4<At&&y.points.removeRange(2,At-3)}else if(y.curve===Xl)Ue=!0,At=y.pointsCount,4<At&&y.points.removeRange(2,At-3),At===4&&(ut=2);else{At=y.pointsCount;var Mt=ge===aa,Bt=he===aa;2<At&&Mt&&Bt?y.points.removeRange(1,At-2):3<At&&Mt&&!Bt?y.points.removeRange(1,At-3):3<At&&!Mt&&Bt?y.points.removeRange(2,At-2):4<At&&!Mt&&!Bt&&y.points.removeRange(2,At-3)}if(x.rev){for(;Ie!==null&&ye!==Ie;){var _t=At=null;for(Mt=Ie.sourceEdges.iterator;Mt.next()&&(Bt=Mt.value,Bt.link!==x.link||(At=Bt.fromVertex,_t=Bt.toVertex,At.node!==null)););if(At===null)break;if(At!==ye){Mt=y.i(ut-1).x,Bt=y.i(ut-1).y;var Gt=At.centerX,Zt=At.centerY;if(qe)this.K===180||this.K===0?ut===y.firstPickIndex+1?(y.m(ut++,Mt,Bt),y.m(ut++,Mt,Zt)):(_t!==null?_t.centerY:Bt)!==Zt&&(_t=this.Ta[At.layer-1]+this.Rf.x,y.m(ut++,_t,Bt),y.m(ut++,_t,Zt)):ut===y.firstPickIndex+1?(y.m(ut++,Mt,Bt),y.m(ut++,Gt,Bt)):(_t!==null?_t.centerX:Mt)!==Gt&&(_t=this.Ta[At.layer-1]+this.Rf.y,y.m(ut++,Mt,_t),y.m(ut++,Gt,_t));else if(ut===y.firstPickIndex+1){_t=Math.max(10,this.he[Ie.layer]);var hn=Math.max(10,this.Ld[Ie.layer]);if(Ue)this.K===180?Gt<=Ie.bounds.x?(Ie=Ie.bounds.x,y.m(ut++,Ie-_t,Zt),y.m(ut++,Ie,Zt),y.m(ut++,Ie+hn,Zt)):(y.m(ut++,Gt-_t,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt+hn,Zt)):this.K===90?Zt>=Ie.bounds.bottom?(Ie=Ie.bounds.y+Ie.bounds.height,y.m(ut++,Gt,Ie+hn),y.m(ut++,Gt,Ie),y.m(ut++,Gt,Ie-_t)):(y.m(ut++,Gt,Zt+hn),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt-_t)):this.K===270?Zt<=Ie.bounds.y?(Ie=Ie.bounds.y,y.m(ut++,Gt,Ie-_t),y.m(ut++,Gt,Ie),y.m(ut++,Gt,Ie+hn)):(y.m(ut++,Gt,Zt-_t),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt+hn)):this.K===0&&(Gt>=Ie.bounds.right?(Ie=Ie.bounds.x+Ie.bounds.width,y.m(ut++,Ie+hn,Zt),y.m(ut++,Ie,Zt),y.m(ut++,Ie-_t,Zt)):(y.m(ut++,Gt+hn,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt-_t,Zt)));else{y.m(ut++,Mt,Bt);var qn=0;this.K===180||this.K===0?((this.K===180?Gt>=Ie.bounds.right:Gt<=Ie.bounds.x)&&(qn=(this.K===0?-_t:hn)/2),y.m(ut++,Mt+qn,Zt)):((this.K===270?Zt>=Ie.bounds.bottom:Zt<=Ie.bounds.y)&&(qn=(this.K===90?-_t:hn)/2),y.m(ut++,Gt,Bt+qn)),y.m(ut++,Gt,Zt)}}else _t=Math.max(10,this.he[At.layer]),hn=Math.max(10,this.Ld[At.layer]),Ue?this.K===180?(y.m(ut++,Gt-_t-rt,Zt),y.m(ut++,Math.min(Gt-_t+rt/2,Gt),Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Math.max(Gt+hn-rt/2,Gt),Zt),y.m(ut++,Gt+hn+rt,Zt)):this.K===90?(y.m(ut++,Gt,Zt+hn+rt),y.m(ut++,Gt,Math.max(Zt+hn-rt/2,Zt)),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Math.min(Zt-_t+rt/2,Zt)),y.m(ut++,Gt,Zt-_t-rt)):this.K===270?(y.m(ut++,Gt,Zt-_t-rt),y.m(ut++,Gt,Math.min(Zt-_t+rt/2,Zt)),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Math.max(Zt+hn-rt/2,Zt)),y.m(ut++,Gt,Zt+hn+rt)):(y.m(ut++,Gt+hn+rt,Zt),y.m(ut++,Math.max(Gt+hn-rt/2,Gt),Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Math.min(Gt-_t+rt/2,Gt),Zt),y.m(ut++,Gt-_t-rt,Zt)):y.m(ut++,Gt,Zt)}Ie=At}(se===null||ge!==aa||qe)&&(Mt=y.i(ut-1).x,Bt=y.i(ut-1).y,Gt=y.i(ut).x,Zt=y.i(ut).y,qe?(rt=this.Ld[ye.layer],this.K===180||this.K===0?(qe=Bt,qe>=ye.bounds.y&&qe<=ye.bounds.bottom&&(this.K===180?Gt>=ye.bounds.x:Gt<=ye.bounds.right)&&(Ie=ye.centerX+(this.K===180?-rt:rt),qe<ye.bounds.y+ye.bounds.height/2?qe=ye.bounds.y-this.kc/2:qe=ye.bounds.bottom+this.kc/2,y.m(ut++,Ie,Bt),y.m(ut++,Ie,qe)),y.m(ut++,Gt,qe)):(qe=Mt,qe>=ye.bounds.x&&qe<=ye.bounds.right&&(this.K===270?Zt>=ye.bounds.y:Zt<=ye.bounds.bottom)&&(Ie=ye.centerY+(this.K===270?-rt:rt),qe<ye.bounds.x+ye.bounds.width/2?qe=ye.bounds.x-this.kc/2:qe=ye.bounds.right+this.kc/2,y.m(ut++,Mt,Ie),y.m(ut++,qe,Ie)),y.m(ut++,qe,Zt)),y.m(ut++,Gt,Zt)):Ue?(_t=Math.max(10,this.he[ye.layer]),hn=Math.max(10,this.Ld[ye.layer]),this.K===180&&Gt>=ye.bounds.x?(Ie=ye.bounds.x+ye.bounds.width,y.L(ut-2,Ie,Bt),y.L(ut-1,Ie+hn,Bt)):this.K===90&&Zt<=ye.bounds.bottom?(Ie=ye.bounds.y,y.L(ut-2,Mt,Ie),y.L(ut-1,Mt,Ie-_t)):this.K===270&&Zt>=ye.bounds.y?(Ie=ye.bounds.y+ye.bounds.height,y.L(ut-2,Mt,Ie),y.L(ut-1,Mt,Ie+hn)):this.K===0&&Gt<=ye.bounds.right&&(Ie=ye.bounds.x,y.L(ut-2,Ie,Bt),y.L(ut-1,Ie-_t,Bt))):(_t=Math.max(10,this.he[ye.layer]),hn=Math.max(10,this.Ld[ye.layer]),qe=0,this.K===180||this.K===0?((this.K===180?Gt<=ye.bounds.x:Gt>=ye.bounds.right)&&(qe=(this.K===0?hn:-_t)/2),y.m(ut++,Gt+qe,Bt)):((this.K===270?Zt<=ye.bounds.y:Zt>=ye.bounds.bottom)&&(qe=(this.K===90?hn:-_t)/2),y.m(ut++,Mt,Zt+qe)),y.m(ut++,Gt,Zt)))}else{for(;ye!==null&&ye!==Ie;){for(_t=At=null,ye=ye.destinationEdges.iterator;ye.next()&&(Mt=ye.value,Mt.link!==x.link||(At=Mt.toVertex,_t=Mt.fromVertex,_t.node!==null&&(_t=null),At.node!==null)););if(At===null)break;At!==Ie&&(Mt=y.i(ut-1).x,Bt=y.i(ut-1).y,Gt=At.centerX,Zt=At.centerY,qe?this.K===180||this.K===0?(_t!==null?_t.centerY:Bt)!==Zt&&(_t=this.Ta[At.layer]+this.Rf.x,ut===y.firstPickIndex+1&&(_t=this.K===0?Math.max(_t,Mt):Math.min(_t,Mt)),y.m(ut++,_t,Bt),y.m(ut++,_t,Zt)):(_t!==null?_t.centerX:Mt)!==Gt&&(_t=this.Ta[At.layer]+this.Rf.y,ut===y.firstPickIndex+1&&(_t=this.K===90?Math.max(_t,Bt):Math.min(_t,Bt)),y.m(ut++,Mt,_t),y.m(ut++,Gt,_t)):(_t=Math.max(10,this.he[At.layer]),hn=Math.max(10,this.Ld[At.layer]),Ue?this.K===180?(y.m(ut++,Gt+hn+rt,Zt),y.m(ut++,Math.max(Gt+hn-rt/2,Gt),Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Math.min(Gt-_t+rt/2,Gt),Zt),y.m(ut++,Gt-_t-rt,Zt)):this.K===90?(y.m(ut++,Gt,Zt-_t-rt),y.m(ut++,Gt,Math.min(Zt-_t+rt/2,Zt)),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Math.max(Zt+hn-rt/2,Zt)),y.m(ut++,Gt,Zt+hn+rt)):this.K===270?(y.m(ut++,Gt,Zt+hn+rt),y.m(ut++,Gt,Math.max(Zt+hn-rt/2,Zt)),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Math.min(Zt-_t+rt/2,Zt)),y.m(ut++,Gt,Zt-_t-rt)):(y.m(ut++,Gt-_t-rt,Zt),y.m(ut++,Math.min(Gt-_t+rt/2,Gt),Zt),y.m(ut++,Gt,Zt),y.m(ut++,Gt,Zt),y.m(ut++,Math.max(Gt+hn-rt/2,Gt),Zt),y.m(ut++,Gt+hn+rt,Zt)):this.K===180?(y.m(ut++,Gt+hn,Zt),y.m(ut++,Gt-_t,Zt)):this.K===90?(y.m(ut++,Gt,Zt-_t),y.m(ut++,Gt,Zt+hn)):this.K===270?(y.m(ut++,Gt,Zt+hn),y.m(ut++,Gt,Zt-_t)):(y.m(ut++,Gt-_t,Zt),y.m(ut++,Gt+hn,Zt)))),ye=At}qe&&(Mt=y.i(ut-1).x,Bt=y.i(ut-1).y,Gt=y.i(ut).x,Zt=y.i(ut).y,this.K===180||this.K===0?Bt!==Zt&&(_t=this.K===0?Math.min(Math.max((Gt+Mt)/2,this.Ta[Ie.layer]+this.Rf.x),Gt):Math.max(Math.min((Gt+Mt)/2,this.Ta[Ie.layer]+this.Rf.x),Gt),y.m(ut++,_t,Bt),y.m(ut++,_t,Zt)):Mt!==Gt&&(_t=this.K===90?Math.min(Math.max((Zt+Bt)/2,this.Ta[Ie.layer]+this.Rf.y),Zt):Math.max(Math.min((Zt+Bt)/2,this.Ta[Ie.layer]+this.Rf.y),Zt),y.m(ut++,Mt,_t),y.m(ut++,Gt,_t)))}b!==null&&Ue&&4<=y.pointsCount&&(ne!==null&&(ne=ge===aa?y.getLinkPointFromPoint(E,ne,ne.ga(Bi),y.i(3),!0):y.i(0),ge===aa&&(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=he===aa?y.getLinkPointFromPoint(te,se,se.ga(Bi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),he===aa&&(se=y.i(y.pointsCount-3),he=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,he.x,(se.y+he.y)/2)):(y.L(y.pointsCount-2,se.x,(E.y+se.y)/2),y.L(y.pointsCount-3,(se.x+he.x)/2,he.y))),E.w()||E.set(te.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},uo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new vn,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 hd;se.layer=Math.floor(te.y/2);var he=b.i(0),ge=b.i(b.pointsCount-1);if(se.first=he.x*he.x+he.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){he=b.i(E-1),ge=b.i(E+2);var ye=0;he.y<te.y?ye=ge.y<te.y?3:te.x<ne.x?2:1:he.y>te.y&&(ye=ge.y>te.y?0:ne.x<te.x?2:1),se.j=ye}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),ye=1,se=x[te].jc,he=te;he<E;he++)ge=x[he],ge.jc!==se&&(ye++,se=ge.jc);this.zi(x,this.Ux,te,te+ne);var Ie=1;for(se=x[te].first,he=te;he<E;he++)ge=x[he],ge.first!==se&&(Ie++,se=ge.first);for(he=!0,ge=Ie,ye<Ie?(he=!1,ge=ye,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,ye=0,Ie=te;Ie<E;Ie++){var Ue=x[Ie];(he?Ue.first:Ue.jc)!==se&&(ye++,se=he?Ue.first:Ue.jc);var qe=Ue.link;te=qe.i(Ue.index),ne=qe.i(Ue.index+1);var rt=this.linkSpacing*(ye-(ge-1)/2);y++,qe.uh(),qe.L(Ue.index,te.x,te.y+rt),qe.L(Ue.index+1,ne.x,ne.y+rt),qe.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 hd,se.layer=Math.floor(te.x/2),he=b.i(0),ge=b.i(b.pointsCount-1),se.first=he.x+he.y*he.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&&(he=b.i(E-1),ge=b.i(E+2),ye=0,he.x<te.x?ye=ge.x<te.x?3:te.y<ne.y?2:1:he.x>te.x&&(ye=ge.x>te.x?0:ne.y<te.y?2:1),se.j=ye),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),ye=1,se=x[te].jc,he=te;he<E;he++)ge=x[he],ge.jc!==se&&(ye++,se=ge.jc);for(this.zi(x,this.Ux,te,te+ne),Ie=1,se=x[te].first,he=te;he<E;he++)ge=x[he],ge.first!==se&&(Ie++,se=ge.first);for(he=!0,ge=Ie,ye<Ie?(he=!1,ge=ye,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,ye=0,Ie=te;Ie<E;Ie++)Ue=x[Ie],(he?Ue.first:Ue.jc)!==se&&(ye++,se=he?Ue.first:Ue.jc),qe=Ue.link,te=qe.i(Ue.index),ne=qe.i(Ue.index+1),rt=this.linkSpacing*(ye-(ge-1)/2),y++,qe.uh(),qe.L(Ue.index,te.x+rt,te.y),qe.L(Ue.index+1,ne.x+rt,ne.y),qe.zf()}te=E}a=b}}}},ot=uo.prototype,ot.Vx=function(a,y){return a instanceof hd&&y instanceof hd&&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},ot.Ux=function(a,y){return a instanceof hd&&y instanceof hd&&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},ot.Js=function(a,y){return a instanceof hd&&y instanceof hd&&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},ot.B=function(a,y){return a-=y,-1<a&&1>a},ot.zi=function(a,y,x,b){var E=a.length,te=b-x;if(!(1>=te))if((0>x||x>=E-1)&&Ht("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 ud(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 cd(a,y,x){a.He[a.tc[y]]=x}Et.Object.defineProperties(uo.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()):Ht("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==N0&&a!==Ug||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==O0&&a!==wy&&a!==by||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==A0&&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!==j0&&a!==Ty||(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 N0=new bn(uo,"CycleDepthFirst",0),xy=new bn(uo,"CycleGreedy",1),Ug=new bn(uo,"CycleFromLayers",2),O0=new bn(uo,"LayerOptimalLinkLength",0),wy=new bn(uo,"LayerLongestPathSink",1),by=new bn(uo,"LayerLongestPathSource",2),A0=new bn(uo,"InitDepthFirstOut",0),Py=new bn(uo,"InitDepthFirstIn",1),Cy=new bn(uo,"InitNaive",2),Ey=new bn(uo,"AggressiveNone",0),j0=new bn(uo,"AggressiveLess",1),Ty=new bn(uo,"AggressiveMore",2),Zx=8;uo.className="LayeredDigraphLayout",uo.CycleDepthFirst=N0,uo.CycleGreedy=xy,uo.CycleFromLayers=Ug,uo.LayerOptimalLinkLength=O0,uo.LayerLongestPathSink=wy,uo.LayerLongestPathSource=by,uo.InitDepthFirstOut=A0,uo.InitDepthFirstIn=Py,uo.InitNaive=Cy,uo.AggressiveNone=Ey,uo.AggressiveLess=j0,uo.AggressiveMore=Ty,uo.PackNone=0,uo.PackExpand=1,uo.PackStraighten=2,uo.PackMedian=4,uo.PackAll=15,uo.AlignNone=0,uo.AlignUpperLeft=1,uo.AlignUpperRight=2,uo.AlignLowerLeft=4,uo.AlignLowerRight=8,uo.AlignAll=15;function hd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}hd.className="SegInfo";function Op(a){Eo.call(this,a)}Jt(Op,Eo),Op.prototype.createVertex=function(){return new hu(this)},Op.prototype.createEdge=function(){return new $g(this)},Op.className="LayeredDigraphNetwork";function hu(a){Ua.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}Jt(hu,Ua);function ix(a,y){return a.index-y.index}function I0(a,y){if(!a.$n){for(var x=[],b=xi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=xi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Ht("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=xi(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=xi(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}hu.prototype.Cl=function(a){Ua.prototype.Cl.call(this,a),this.bo=this.co=null},hu.prototype.Kl=function(a){Ua.prototype.Kl.call(this,a),this.bo=this.co=null},hu.prototype.zl=function(a){Ua.prototype.zl.call(this,a),this.$n=this.ao=null},hu.prototype.Jl=function(a){Ua.prototype.Jl.call(this,a),this.$n=this.ao=null},Et.Object.defineProperties(hu.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)}}}),hu.prototype.deleteDestinationEdge=hu.prototype.Jl,hu.prototype.addDestinationEdge=hu.prototype.zl,hu.prototype.deleteSourceEdge=hu.prototype.Kl,hu.prototype.addSourceEdge=hu.prototype.Cl,hu.className="LayeredDigraphVertex";function $g(a){kl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Jt($g,kl),Et.Object.defineProperties($g.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)}}}),$g.className="LayeredDigraphEdge";function Ti(a){Ro.call(this),this.Ub=new xn,this.Wn=R0,this.ud=Ic,this.vo=z0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=H0,this.$d=new Yn(10,10).freeze();var y=new If(this);this.W=new xu(y),this.Y=new xu(y),this.ru=[],a&&Object.assign(this,a)}Jt(Ti,Ro),Ti.prototype.cloneProtected=function(a){Ro.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)},Ti.prototype.qb=function(a){a.classType===Ti?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:Ht("Unknown enum value: "+a):Ro.prototype.qb.call(this,a)},Ti.prototype.createNetwork=function(){return new If(this)},Ti.prototype.makeNetwork=function(a){function y(b){if(b instanceof rr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Kn){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 cn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof ti?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Ti.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==G0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof cn&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?Ic:Af:this.ud=this.path===R0?Ic: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 xn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof rr?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof xu&&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 xu&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&ux(this,y);if(this.Cu(),this.layerStyle===W0){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 xu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new xn,this.isValidLayout=!0};function Yx(a){var y=new xn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Ti.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Ic:x.sourceEdges.count===0&&this.Ub.add(x);break;case Af:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Ht("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 Ic:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Af:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Ht("Unhandled path value "+a.ud.toString())}}return b}function Ly(a,y){if(y!==null){switch(a.ud){case Ic:if(0<y.destinationEdges.count){for(var x=new vn,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 Af:if(0<y.sourceEdges.count){for(x=new vn,b=y.sourceVertexes;b.next();)E=b.value,ax(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Ht("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}Ti.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===Bc&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,te=y.children,ne=te.length,se=0;se<ne;se++){var he=te[se];sx(a,he),x+=he.descendantCount+1,b=Math.max(b,he.maxChildrenCount),E=Math.max(E,he.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Jx(a,y){switch(a.vo){default:case z0: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}}Ti.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Jx(this,a)),a.parent!==null&&a.parent.alignment===Bc){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])}}Ti.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==Bc&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}Ti.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Ap:break;case Vg:a.children.reverse();break;case Zg:a.children.sort(a.comparer);break;case Xg:a.children.sort(a.comparer),a.children.reverse();break;default:Ht("Unhandled sorting value "+a.sorting.toString())}},Ti.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ti.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=dd(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var te=0,ne=0,se=0,he=a.commentSpacing;if(a.node!==null)for(var ge=a.node.Mu();ge.next();){var ye=ge.value;ye.category==="Comment"&&ye.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ye),ye.Va(),ye=ye.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(te=Math.max(te,ye.width),ne+=ye.height+Math.abs(se)):(te+=ye.width+Math.abs(se),ne=Math.max(ne,ye.height)),se=he)}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=Ln.allocAt(0,0,a.bounds.width+te,a.bounds.height+ne),a.bounds=E,Ln.free(E))};function dd(a){return a===Ah||a===Bc||a===jh||a===ih}function Kg(a){return a===Ah||a===Bc}function ky(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dd(x)){if(Kg(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===jh)return!0}}return!1}Ti.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=dd(te)),b=b===90||b===270,x=E===90||E===270;for(var ne=a.childrenCount===0,se=ky(a),he=0,ge=a.comments,ye=ge.length,Ie=kt.alloc(),Ue=0;Ue<ye;Ue++){var qe=ge[Ue],rt=qe.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(Ie.h(a.bounds.x-a.commentMargin-rt.width,a.bounds.y+he),qe.move(Ie),qe=qe.Sd();qe.next();){var ut=qe.value;ut.fromSpot=Ca,ut.toSpot=Ka}else for(Ie.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+he),qe.move(Ie),qe=qe.Sd();qe.next();)ut=qe.value,ut.fromSpot=Ka,ut.toSpot=Ca;else if(0<=a.commentMargin)for(Ie.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+he),qe.move(Ie),qe=qe.Sd();qe.next();)ut=qe.value,ut.fromSpot=Ka,ut.toSpot=Ca;else for(Ie.h(a.bounds.x+a.commentMargin-rt.width,a.bounds.y+he),qe.move(Ie),qe=qe.Sd();qe.next();)ut=qe.value,ut.fromSpot=Ca,ut.toSpot=Ka;he=0<=a.commentSpacing?he+(rt.height+a.commentSpacing):he+(a.commentSpacing-rt.height)}else{if(135<E&&!te||!x&&se)if(0<=a.commentMargin)for(Ie.h(a.bounds.x+he,a.bounds.y-a.commentMargin-rt.height),qe.move(Ie),qe=qe.Sd();qe.next();)ut=qe.value,ut.fromSpot=ca,ut.toSpot=za;else for(Ie.h(a.bounds.x+he,a.bounds.y+2*a.focus.y-a.commentMargin),qe.move(Ie),qe=qe.Sd();qe.next();)ut=qe.value,ut.fromSpot=za,ut.toSpot=ca;else if(0<=a.commentMargin)for(Ie.h(a.bounds.x+he,a.bounds.y+2*a.focus.y+a.commentMargin),qe.move(Ie),qe=qe.Sd();qe.next();)ut=qe.value,ut.fromSpot=za,ut.toSpot=ca;else for(Ie.h(a.bounds.x+he,a.bounds.y+a.commentMargin-rt.height),qe.move(Ie),qe=qe.Sd();qe.next();)ut=qe.value,ut.fromSpot=ca,ut.toSpot=za;he=0<=a.commentSpacing?he+(rt.width+a.commentSpacing):he+(a.commentSpacing-rt.width)}}if(kt.free(Ie),y=he-a.commentSpacing-(b?y.height:y.width),this.ud===Ic)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)}},Ti.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 _0:cx(this,a);break;case Yg:if(a.alignment===Bc)cx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=dd(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=Iu(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 he=a.alignment;b=he===Dc;var ge=he===Fc,ye=dd(he),Ie=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ue=a.nodeSpacing,qe=this.computeNodeIndent(a),rt=a.rowSpacing,ut=0;(b||ge||a.hm||a.im&&a.maxGenerationCount===1)&&(ut=Math.max(0,a.rowIndent)),b=a.width;var At=a.height,Mt=0,Bt=0,_t=0,Gt=null,Zt=null,hn=0,qn=0,dr=0,hr=0,$n=0,jn=0,qr=0,Ur=0;if(ye&&!Kg(he)&&135<E&&ne.reverse(),Kg(he))if(1<se)for(var Zi=0;Zi<se;Zi++)Zi%2===0&&Zi!==se-1&&(Ur=Math.max(Ur,y?ne[Zi].Da.width:ne[Zi].Da.height));else se===1&&(Ur=y?ne[0].Da.width:ne[0].Da.height);if(ye){switch(he){case Ah:Bt=135>E?hx(this,a,ne,Ur,Mt,Bt):dx(this,a,ne,Ur,Mt,Bt),Ur=Bt.x,Mt=Bt.width,Bt=Bt.height;break;case jh:for(Gt=0;Gt<se;Gt++)Zt=ne[Gt],Ie=Zt.Da,_t=jn===0?0:rt,y?(Zt.S.h(te-Ie.width,hr+_t),Mt=Math.max(Mt,Ie.width),Bt=Math.max(Bt,hr+_t+Ie.height),hr+=_t+Ie.height):(Zt.S.h(dr+_t,te-Ie.height),Mt=Math.max(Mt,dr+_t+Ie.width),Bt=Math.max(Bt,Ie.height),dr+=_t+Ie.width),jn++;break;case ih:for(Gt=0;Gt<se;Gt++)Zt=ne[Gt],te=Zt.Da,Ie=jn===0?0:rt,y?(Zt.S.h(Ue/2+a.focus.x,hr+Ie),Mt=Math.max(Mt,te.width),Bt=Math.max(Bt,hr+Ie+te.height),hr+=Ie+te.height):(Zt.S.h(dr+Ie,Ue/2+a.focus.y),Mt=Math.max(Mt,dr+Ie+te.width),Bt=Math.max(Bt,te.height),dr+=Ie+te.width),jn++}Gt=yl(this,2),Zt=yl(this,2),y?(Gt[0].h(0,0),Gt[1].h(0,Bt),Zt[0].h(Mt,0)):(Gt[0].h(0,0),Gt[1].h(Mt,0),Zt[0].h(0,Bt)),Zt[1].h(Mt,Bt)}else for(Zi=0;Zi<se;Zi++){var bo=ne[Zi],Ja=bo.Da;if(y){0<Ie&&0<jn&&dr+Ue+Ja.width>Ie&&(dr<te&&Jd(a,he,te-dr,0,qr,Zi-1),$n++,jn=0,qr=Zi,_t=Bt,dr=0,hr=135<E?-Bt-rt:Bt+rt),F0(this,bo,0,hr);var ts=0;if(jn===0)Gt=bo.Yo,Zt=bo.kp,hn=Ja.width,qn=Ja.height,(Gt===null||Zt===null||E!==Iu(bo))&&(Gt=yl(this,2),Zt=yl(this,2),Gt[0].h(0,0),Gt[1].h(0,qn),Zt[0].h(hn,0),Zt[1].h(hn,qn));else{var Fs=yn();qn=fx(this,a,bo,Gt,Zt,hn,qn,Fs),ts=qn.x,Gt=Fs[0],Zt=Fs[1],hn=qn.width,qn=qn.height,On(Fs),dr<Ja.width&&0>ts&&(Of(a,-ts,0,qr,Zi-1),B0(Gt,-ts,0),B0(Zt,-ts,0),ts=0)}bo.S.h(ts,hr),Mt=Math.max(Mt,hn),Bt=Math.max(Bt,_t+($n===0?0:rt)+Ja.height),dr=hn}else 0<Ie&&0<jn&&hr+Ue+Ja.height>Ie&&(hr<te&&Jd(a,he,0,te-hr,qr,Zi-1),$n++,jn=0,qr=Zi,_t=Mt,hr=0,dr=135<E?-Mt-rt:Mt+rt),F0(this,bo,dr,0),ts=0,jn===0?(Gt=bo.Yo,Zt=bo.kp,hn=Ja.width,qn=Ja.height,(Gt===null||Zt===null||E!==Iu(bo))&&(Gt=yl(this,2),Zt=yl(this,2),Gt[0].h(0,0),Gt[1].h(hn,0),Zt[0].h(0,qn),Zt[1].h(hn,qn))):(Fs=yn(),qn=fx(this,a,bo,Gt,Zt,hn,qn,Fs),ts=qn.x,Gt=Fs[0],Zt=Fs[1],hn=qn.width,qn=qn.height,On(Fs),hr<Ja.height&&0>ts&&(Of(a,0,-ts,qr,Zi-1),B0(Gt,0,-ts),B0(Zt,0,-ts),ts=0)),bo.S.h(dr,ts),Bt=Math.max(Bt,qn),Mt=Math.max(Mt,_t+($n===0?0:rt)+Ja.width),hr=qn;jn++}switch(0<$n&&(y?(Bt+=Math.max(0,x),dr<Mt&&Jd(a,he,Mt-dr,0,qr,se-1),0<ut&&(ge||Of(a,ut,0,0,se-1),Mt+=ut)):(Mt+=Math.max(0,x),hr<Bt&&Jd(a,he,0,Bt-hr,qr,se-1),0<ut&&(ge||Of(a,0,ut,0,se-1),Bt+=ut))),ut=ge=0,he){case jp:y?ge+=Mt/2-a.focus.x-qe/2:ut+=Bt/2-a.focus.y-qe/2;break;case jf:0<$n?y?ge+=Mt/2-a.focus.x-qe/2:ut+=Bt/2-a.focus.y-qe/2:y?(Ur=ne[0].S.x+ne[0].la.x,ge+=Ur+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-Ur)/2-a.focus.x-qe/2):(Ur=ne[0].S.y+ne[0].la.y,ut+=Ur+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-Ur)/2-a.focus.y-qe/2);break;case Dc:y?(ge-=qe,Mt+=qe):(ut-=qe,Bt+=qe);break;case Fc:y?(ge+=Mt-a.width+qe,Mt+=qe):(ut+=Bt-a.height+qe,Bt+=qe);break;case Ah:y?1<se?ge+=Ur+Ue/2-a.focus.x:ge+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?ut+=Ur+Ue/2-a.focus.y:ut+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case jh:y?ge+=Mt+Ue/2-a.focus.x:ut+=Bt+Ue/2-a.focus.y;break;case ih:break;default:Bt=this.customAlignment(a,ge,ut,Mt,Bt),ge=Bt[0],ut=Bt[1],Mt=Bt[2],Bt=Bt[3]}for(qe=0;qe<se;qe++)Ur=ne[qe],y?Ur.S.h(Ur.S.x+Ur.la.x-ge,Ur.S.y+(135<E?(ye?-Bt:-Ur.Da.height)+Ur.la.y-x:At+x+Ur.la.y)):Ur.S.h(Ur.S.x+(135<E?(ye?-Mt:-Ur.Da.width)+Ur.la.x-x:b+x+Ur.la.x),Ur.S.y+Ur.la.y-ut);if(se=ne=0,ye?y?(Mt=Ny(a,Mt,ge),0>ge&&(ge=0),135<E&&(ut+=Bt+x),Bt+=At+x,he===ih&&(ne+=Ue/2+a.focus.x),se+=At+x):(135<E&&(ge+=Mt+x),Mt+=b+x,Bt=Oy(a,Bt,ut),0>ut&&(ut=0),he===ih&&(se+=Ue/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>Mt&&(Mt=Ay(he,b-Mt,0),ne=Mt.x,se=Mt.y,Mt=b,ge=0):Mt=Ny(a,Mt,ge),0>ge&&(ne-=ge,ge=0),135<E&&(ut+=Bt+x),Bt=Math.max(Math.max(Bt,At),Bt+At+x),se+=At+x):(135<E&&(ge+=Mt+x),Mt=Math.max(Math.max(Mt,b),Mt+b+x),a.comments===null?At>Bt&&(Bt=Ay(he,0,At-Bt),ne=Bt.x,se=Bt.y,Bt=At,ut=0):Bt=Oy(a,Bt,ut),0>ut&&(se-=ut,ut=0),ne+=b+x),0<$n)E=yl(this,4),$n=yl(this,4),y?(E[2].h(0,At+x),E[3].h(E[2].x,Bt),$n[2].h(Mt,E[2].y),$n[3].h($n[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Mt,E[2].y),$n[2].h(E[2].x,Bt),$n[3].h(E[3].x,$n[2].y));else{for(E=yl(this,Gt.length+2),$n=yl(this,Zt.length+2),he=0;he<Gt.length;he++)ye=Gt[he],E[he+2].h(ye.x+ne,ye.y+se);for(he=0;he<Zt.length;he++)ye=Zt[he],$n[he+2].h(ye.x+ne,ye.y+se)}y?(E[0].h(ge,0),E[1].h(E[0].x,At),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])),$n[0].h(ge+b,0),$n[1].h($n[0].x,At),$n[2].y<$n[1].y&&($n[2].x<$n[0].x?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].y<$n[2].y&&($n[3].x<$n[0].x?$n[3].assign($n[2]):$n[2].assign($n[3])),E[2].y-=x/2,$n[2].y-=x/2):(E[0].h(0,ut),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])),$n[0].h(0,ut+At),$n[1].h(b,$n[0].y),$n[2].x<$n[1].x&&($n[2].y<$n[0].y?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].x<$n[2].x&&($n[3].y<$n[0].y?$n[3].assign($n[2]):$n[2].assign($n[3])),E[2].x-=x/2,$n[2].x-=x/2),Ju(this,Gt),Ju(this,Zt),a.Yo=E,a.kp=$n,a.la.h(ge,ut),a.Da.h(Mt,Bt)}break;default:Ht("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=dd(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=Iu(y),x=b===90||b===270;var te=0;E=y.children;for(var ne=E.length,se=0;se<ne;se++){var he=E[se];te=Math.max(te,x?he.Da.width:he.Da.height)}var ge=y.alignment,ye=ge===Dc,Ie=ge===Fc;se=dd(ge);var Ue=Math.max(0,y.breadthLimit);he=a.computeLayerSpacing(y);var qe=y.nodeSpacing,rt=a.computeNodeIndent(y),ut=ye||Ie?0:rt/2,At=y.rowSpacing,Mt=0;(ye||Ie||y.hm||y.im&&y.maxGenerationCount===1)&&(Mt=Math.max(0,y.rowIndent)),ye=y.width;var Bt=y.height,_t=0,Gt=0,Zt=0,hn=0,qn=0,dr=0,hr=0,$n=0,jn=0,qr=0;if(se&&!Kg(ge)&&135<b&&E.reverse(),Kg(ge))if(1<ne)for(var Ur=0;Ur<ne;Ur++){var Zi=E[Ur],bo=Zi.Da;Ur%2===0&&Ur!==ne-1?jn=Math.max(jn,(x?bo.width:bo.height)+a.computeBusNodeSpacing(Zi)-qe):Ur%2!==0&&(qr=Math.max(qr,(x?bo.width:bo.height)+a.computeBusNodeSpacing(Zi)-qe))}else ne===1&&(jn=x?E[0].Da.width:E[0].Da.height);if(se)switch(ge){case Ah:case Bc:Gt=135>b?hx(a,y,E,jn,_t,Gt):dx(a,y,E,jn,_t,Gt),jn=Gt.x,_t=Gt.width,Gt=Gt.height;break;case jh:for(Ue=0;Ue<ne;Ue++)ut=E[Ue],Zt=ut.Da,qr=hr===0?0:At,x?(ut.S.h(te-Zt.width,qn+qr),_t=Math.max(_t,Zt.width),Gt=Math.max(Gt,qn+qr+Zt.height),qn+=qr+Zt.height):(ut.S.h(hn+qr,te-Zt.height),_t=Math.max(_t,hn+qr+Zt.width),Gt=Math.max(Gt,Zt.height),hn+=qr+Zt.width),hr++;break;case ih:for(te=0;te<ne;te++)Ue=E[te],ut=Ue.Da,Zt=hr===0?0:At,x?(Ue.S.h(qe/2+y.focus.x,qn+Zt),_t=Math.max(_t,ut.width),Gt=Math.max(Gt,qn+Zt+ut.height),qn+=Zt+ut.height):(Ue.S.h(hn+Zt,qe/2+y.focus.y),_t=Math.max(_t,hn+Zt+ut.width),Gt=Math.max(Gt,ut.height),hn+=Zt+ut.width),hr++}else for(qr=0;qr<ne;qr++)Ur=E[qr],Zi=Ur.Da,x?(0<Ue&&0<hr&&hn+qe+Zi.width>Ue&&(hn<te&&Jd(y,ge,te-hn,0,$n,qr-1),dr++,hr=0,$n=qr,Zt=Gt,hn=0,qn=135<b?-Gt-At:Gt+At),bo=hr===0?ut:qe,F0(a,Ur,0,qn),Ur.S.h(hn+bo,qn),_t=Math.max(_t,hn+bo+Zi.width),Gt=Math.max(Gt,Zt+(dr===0?0:At)+Zi.height),hn+=bo+Zi.width):(0<Ue&&0<hr&&qn+qe+Zi.height>Ue&&(qn<te&&Jd(y,ge,0,te-qn,$n,qr-1),dr++,hr=0,$n=qr,Zt=_t,qn=0,hn=135<b?-_t-At:_t+At),bo=hr===0?ut:qe,F0(a,Ur,hn,0),Ur.S.h(hn,qn+bo),Gt=Math.max(Gt,qn+bo+Zi.height),_t=Math.max(_t,Zt+(dr===0?0:At)+Zi.width),qn+=bo+Zi.height),hr++;switch(0<dr&&(x?(Gt+=Math.max(0,he),hn<_t&&Jd(y,ge,_t-hn,0,$n,ne-1),0<Mt&&(Ie||Of(y,Mt,0,0,ne-1),_t+=Mt)):(_t+=Math.max(0,he),qn<Gt&&Jd(y,ge,0,Gt-qn,$n,ne-1),0<Mt&&(Ie||Of(y,0,Mt,0,ne-1),Gt+=Mt))),Mt=Ie=0,ge){case jp:x?Ie+=_t/2-y.focus.x-rt/2:Mt+=Gt/2-y.focus.y-rt/2;break;case jf:0<dr?x?Ie+=_t/2-y.focus.x-rt/2:Mt+=Gt/2-y.focus.y-rt/2:x?(a=E[0].S.x+E[0].la.x,Ie+=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,Mt+=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 Dc:x?(Ie-=rt,_t+=rt):(Mt-=rt,Gt+=rt);break;case Fc:x?(Ie+=_t-y.width+rt,_t+=rt):(Mt+=Gt-y.height+rt,Gt+=rt);break;case Ah:case Bc:x?1<ne?Ie+=jn+qe/2-y.focus.x:Ie+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?Mt+=jn+qe/2-y.focus.y:Mt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case jh:x?Ie+=_t+qe/2-y.focus.x:Mt+=Gt+qe/2-y.focus.y;break;case ih:break;default:a=a.customAlignment(y,Ie,Mt,_t,Gt),Ie=a[0],Mt=a[1],_t=a[2],Gt=a[3]}for(a=0;a<ne;a++)rt=E[a],x?rt.S.h(rt.S.x+rt.la.x-Ie,rt.S.y+(135<b?(se?-Gt:-rt.Da.height)+rt.la.y-he:Bt+he+rt.la.y)):rt.S.h(rt.S.x+(135<b?(se?-_t:-rt.Da.width)+rt.la.x-he:ye+he+rt.la.x),rt.S.y+rt.la.y-Mt);x?(_t=Ny(y,_t,Ie),0>Ie&&(Ie=0),135<b&&(Mt+=Gt+he),Gt=Math.max(Math.max(Gt,Bt),Gt+Bt+he)):(135<b&&(Ie+=_t+he),_t=Math.max(Math.max(_t,ye),_t+ye+he),Gt=Oy(y,Gt,Mt),0>Mt&&(Mt=0)),y.la.h(Ie,Mt),y.Da.h(_t,Gt)}}Ti.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 Ln(b,0,E,te);if(ne===1)return y=x[0],E=y.Da.width,te=y.Da.height,new Ln(b,0,E,te);for(var se=y.nodeSpacing,he=y.rowSpacing,ge=Iu(y)===90,ye=0,Ie=0,Ue=0,qe=0;qe<ne;qe++)if(!(qe%2!==0||1<ne&&qe===ne-1)){var rt=x[qe],ut=rt.Da,At=ye===0?0:he;if(ge){var Mt=a.computeBusNodeSpacing(rt)-se;rt.S.h(b-(ut.width+Mt),Ue+At),E=Math.max(E,ut.width+Mt),te=Math.max(te,Ue+At+ut.height),Ue+=At+ut.height}else Mt=a.computeBusNodeSpacing(rt)-se,rt.S.h(Ie+At,b-(ut.height+Mt)),te=Math.max(te,ut.height+Mt),E=Math.max(E,Ie+At+ut.width),Ie+=At+ut.width;ye++}for(ye=0,rt=Ie,qe=Ue,ge?(Ie=b+se,Ue=0):(Ie=0,Ue=b+se),ut=0;ut<ne;ut++)if(ut%2!==0){At=x[ut],Mt=At.Da;var Bt=ye===0?0:he;if(ge){var _t=a.computeBusNodeSpacing(At)-se;At.S.h(Ie+_t,Ue+Bt),E=Math.max(E,Ie+Mt.width+_t),te=Math.max(te,Ue+Bt+Mt.height),Ue+=Bt+Mt.height}else _t=a.computeBusNodeSpacing(At)-se,At.S.h(Ie+Bt,Ue+_t),E=Math.max(E,Ie+Bt+Mt.width),te=Math.max(te,Ue+Mt.height+_t),Ie+=Bt+Mt.width;ye++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,ge?Math.max(Math.abs(qe),Math.abs(Ue)):Math.max(Math.abs(rt),Math.abs(Ie))),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(qe,Ue)+a+ne.height),0>x.S.x&&(b=D0(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,Ie)+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=D0(y,x.S.y,!0,b,se)))),new Ln(b,0,E,te)}function dx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new Ln(b,0,E,te);if(ne===1)return x=x[0],E=x.Da.width,te=x.Da.height,new Ln(b,0,E,te);for(var se=y.nodeSpacing,he=y.rowSpacing,ge=Iu(y)===270,ye=0,Ie=0,Ue=0,qe=0;qe<ne;qe++)if(!(qe%2!==0||1<ne&&qe===ne-1)){var rt=x[qe],ut=rt.Da,At=ye===0?0:he;if(ge){var Mt=a.computeBusNodeSpacing(rt)-se;Ue-=At+ut.height,rt.S.h(b-(ut.width+Mt),Ue),E=Math.max(E,ut.width+Mt),te=Math.max(te,Math.abs(Ue))}else Mt=a.computeBusNodeSpacing(rt)-se,Ie-=At+ut.width,rt.S.h(Ie,b-(ut.height+Mt)),te=Math.max(te,ut.height+Mt),E=Math.max(E,Math.abs(Ie));ye++}for(ye=0,rt=Ie,qe=Ue,ge?(Ie=b+se,Ue=0):(Ie=0,Ue=b+se),ut=0;ut<ne;ut++)if(ut%2!==0){At=x[ut],Mt=At.Da;var Bt=ye===0?0:he;if(ge){var _t=a.computeBusNodeSpacing(At)-se;Ue-=Bt+Mt.height,At.S.h(Ie+_t,Ue),E=Math.max(E,Ie+Mt.width+_t),te=Math.max(te,Math.abs(Ue))}else _t=a.computeBusNodeSpacing(At)-se,Ie-=Bt+Mt.width,At.S.h(Ie,Ue+_t),te=Math.max(te,Ue+Mt.height+_t),E=Math.max(E,Math.abs(Ie));ye++}for(1<ne&&ne%2===1&&(he=x[ne-1],ye=he.Da,a=a.computeBusLastRowSpacing(he,ge?Math.max(Math.abs(qe),Math.abs(Ue)):Math.max(Math.abs(rt),Math.abs(Ie))),ge?(he.S.h(b+se/2-he.focus.x-he.la.x,-te-ye.height-a),Ie=b+se/2-he.focus.x-he.la.x,E=Math.max(E,Ie+ye.width),0>Ie&&(E-=Ie),te=Math.max(te,Math.abs(Math.min(qe,Ue))+a+ye.height),0>he.S.x&&(b=D0(y,he.S.x,!1,b,se))):(he.S.h(-E-ye.width-a,b+se/2-he.focus.y-he.la.y),E=Math.max(E,Math.abs(Math.min(rt,Ie))+a+ye.width),Ue=b+se/2-he.focus.y-he.la.y,te=Math.max(te,Ue+ye.height),0>Ue&&(te-=Ue),0>he.S.y&&(b=D0(y,he.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 Ln(b,0,E,te)}Ti.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Ti.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function D0(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 Ny(a,y,x){switch(a.alignment){case jf:case jp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Dc:return a.width>y?a.width:y;case Fc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Ah:case Bc:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case jh:return a.width-a.focus.x+a.nodeSpacing/2+y;case ih:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a.alignment){case jf:case jp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Dc:return a.height>y?a.height:y;case Fc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Ah:case Bc:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case jh:return a.height-a.focus.y+a.nodeSpacing/2+y;case ih:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ay(a,y,x){switch(a){case jp:y/=2,x/=2;break;case jf:y/=2,x/=2;break;case Dc:x=y=0;break;case Fc:break;default:Ht("Unhandled alignment value "+a.toString())}return new kt(y,x)}function Jd(a,y,x,b,E,te){y=Ay(y,x,b),Of(a,y.x,y.y,E,te)}function Of(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 F0(a,y,x,b){var E=y.parent;switch(a.ud){case Ic:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Af:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Ht("Unhandled path value "+a.ud.toString())}}function B0(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 he=Iu(y),ge=he===90||he===270,ye=y.nodeSpacing;y=b;var Ie=E;b=te;var Ue=ne,qe=x.Yo,rt=x.kp;ne=x.Da;var ut=ge?Math.max(Ue,ne.height):Math.max(b,ne.width);if((qe===null||he!==Iu(x))&&(qe=yl(a,2),rt=yl(a,2),ge?(qe[0].h(0,0),qe[1].h(0,ne.height),rt[0].h(ne.width,0),rt[1].h(rt[0].x,qe[1].y)):(qe[0].h(0,0),qe[1].h(ne.width,0),rt[0].h(0,ne.height),rt[1].h(qe[1].x,rt[0].y))),ge){if(Ue=9999999,!(Ie===null||2>Ie.length||qe===null||2>qe.length))for(E=x=0;x<Ie.length&&E<qe.length;){te=Ie[x];var At=qe[E];he=At.x,ge=At.y,he+=b;var Mt=te;x+1<Ie.length&&(Mt=Ie[x+1]);var Bt=At;At=Bt.x,Bt=Bt.y,E+1<qe.length&&(Bt=qe[E+1],At=Bt.x,Bt=Bt.y,At+=b);var _t=Ue;te.y===ge?_t=he-te.x:te.y>ge&&te.y<Bt?_t=he+(te.y-ge)/(Bt-ge)*(At-he)-te.x:ge>te.y&&ge<Mt.y&&(_t=he-(te.x+(ge-te.y)/(Mt.y-te.y)*(Mt.x-te.x))),_t<Ue&&(Ue=_t),Mt.y<=te.y?x++:Bt<=ge?E++:(Mt.y<=Bt&&x++,Bt<=Mt.y&&E++)}if(Ue=b-Ue,Ue+=ye,x=qe,E=Ue,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ye=yl(a,y.length+x.length),b=te=he=0;te<x.length&&x[te].y<y[0].y;)ge=x[te++],ye[b++].h(ge.x+E,ge.y);for(;he<y.length;)ge=y[he++],ye[b++].h(ge.x,ge.y);for(he=y[y.length-1].y;te<x.length&&x[te].y<=he;)te++;for(;te<x.length&&x[te].y>he;)ge=x[te++],ye[b++].h(ge.x+E,ge.y);for(x=yl(a,b),he=0;he<b;he++)x[he].assign(ye[he]);Ju(a,ye),b=x}if(te=rt,he=Ue,Ie===null||2>Ie.length||te===null||2>te.length)E=null;else{for(ye=yl(a,Ie.length+te.length),E=ge=x=0;x<Ie.length&&Ie[x].y<te[0].y;)Mt=Ie[x++],ye[E++].h(Mt.x,Mt.y);for(;ge<te.length;)Mt=te[ge++],ye[E++].h(Mt.x+he,Mt.y);for(te=te[te.length-1].y;x<Ie.length&&Ie[x].y<=te;)x++;for(;x<Ie.length&&Ie[x].y>te;)he=Ie[x++],ye[E++].h(he.x,he.y);for(te=yl(a,E),x=0;x<E;x++)te[x].assign(ye[x]);Ju(a,ye),E=te}return te=Math.max(0,Ue)+ne.width,ne=ut,Ju(a,y),Ju(a,qe),Ju(a,Ie),Ju(a,rt),se[0]=b,se[1]=E,new Ln(Ue,0,te,ne)}if(b=9999999,!(Ie===null||2>Ie.length||qe===null||2>qe.length))for(E=x=0;x<Ie.length&&E<qe.length;)te=Ie[x],At=qe[E],he=At.x,ge=At.y,ge+=Ue,Mt=te,x+1<Ie.length&&(Mt=Ie[x+1]),Bt=At,At=Bt.x,Bt=Bt.y,E+1<qe.length&&(Bt=qe[E+1],At=Bt.x,Bt=Bt.y,Bt+=Ue),_t=b,te.x===he?_t=ge-te.y:te.x>he&&te.x<At?_t=ge+(te.x-he)/(At-he)*(Bt-ge)-te.y:he>te.x&&he<Mt.x&&(_t=ge-(te.y+(he-te.x)/(Mt.x-te.x)*(Mt.y-te.y))),_t<b&&(b=_t),Mt.x<=te.x?x++:At<=he?E++:(Mt.x<=At&&x++,At<=Mt.x&&E++);if(Ue-=b,Ue+=ye,x=qe,E=Ue,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ye=yl(a,y.length+x.length),b=te=he=0;te<x.length&&x[te].x<y[0].x;)ge=x[te++],ye[b++].h(ge.x,ge.y+E);for(;he<y.length;)ge=y[he++],ye[b++].h(ge.x,ge.y);for(he=y[y.length-1].x;te<x.length&&x[te].x<=he;)te++;for(;te<x.length&&x[te].x>he;)ge=x[te++],ye[b++].h(ge.x,ge.y+E);for(x=yl(a,b),he=0;he<b;he++)x[he].assign(ye[he]);Ju(a,ye),b=x}if(te=rt,he=Ue,Ie===null||2>Ie.length||te===null||2>te.length)E=null;else{for(ye=yl(a,Ie.length+te.length),E=ge=x=0;x<Ie.length&&Ie[x].x<te[0].x;)Mt=Ie[x++],ye[E++].h(Mt.x,Mt.y);for(;ge<te.length;)Mt=te[ge++],ye[E++].h(Mt.x,Mt.y+he);for(te=te[te.length-1].x;x<Ie.length&&Ie[x].x<=te;)x++;for(;x<Ie.length&&Ie[x].x>te;)he=Ie[x++],ye[E++].h(he.x,he.y);for(te=yl(a,E),x=0;x<E;x++)te[x].assign(ye[x]);Ju(a,ye),E=te}return te=ut,ne=Math.max(0,Ue)+ne.height,Ju(a,y),Ju(a,qe),Ju(a,Ie),Ju(a,rt),se[0]=b,se[1]=E,new Ln(Ue,0,te,ne)}function yl(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 kt;return a}function Ju(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Ti.prototype.arrangeTrees=function(){if(this.Rb===G0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof xu){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 xu&&a.push(x);switch(this.sorting){case Ap:break;case Vg:a.reverse();break;case Zg:a.sort(this.comparer);break;case Xg:a.sort(this.comparer),a.reverse();break;default:Ht("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 H0:x+=E.Da.height+this.$d.height;break;case By:y+=E.Da.width+this.$d.width;break;default:Ht("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)}}}Ti.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Ti.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Ti.prototype.Gu=function(){if(this.layerStyle===W0){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 kt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new kt(-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 Ln(0,te,x,se))):this.angle===90?(E.push(new Ln(0,te,x,se)),te+=se):this.angle===180?(te-=se,E.push(new Ln(te,0,se,x))):(E.push(new Ln(te,0,se,x)),te+=se)}this.commitLayers(E,b)}},Ti.prototype.commitLayers=function(){},Ti.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ti.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof xu&&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])}}Ti.prototype.setPortSpots=function(a){var y=a.alignment;if(dd(y)){var x=this.ud===Ic,b=Iu(a);switch(b){case 0:var E=Ka;break;case 90:E=za;break;case 180:E=Ca;break;default:E=ca}var te=a.children,ne=te.length;switch(y){case Ah:case Bc: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 he=b===90||b===270?Ca:ca;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:he=Ca;break;case 90:he=ca;break;case 180:he=Ka;break;default:he=za}else y%2===0&&(he=b===90||b===270?Ka:za);x?(a.setsPortSpot&&(se.fromSpot=E),a.setsChildPortSpot&&(se.toSpot=he)):(a.setsPortSpot&&(se.fromSpot=he),a.setsChildPortSpot&&(se.toSpot=E))}}break;case jh:for(b=b===90||b===270?Ka:za,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 ih:for(b=b===90||b===270?Ca:ca,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=Iu(a),this.ud===Ic){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=Ka;break;case 90:b.fromSpot=za;break;case 180:b.fromSpot=Ca;break;default:b.fromSpot=ca}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Ca;break;case 90:b.toSpot=ca;break;case 180:b.toSpot=Ka;break;default:b.toSpot=za}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=Ka;break;case 90:b.toSpot=za;break;case 180:b.toSpot=Ca;break;default:b.toSpot=ca}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Ca;break;case 90:b.fromSpot=ca;break;case 180:b.fromSpot=Ka;break;default:b.fromSpot=za}else b.fromSpot=a.childPortSpot}};function Iu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Ti.prototype.computeLayerSpacing=function(a){var y=Iu(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},Ti.prototype.computeNodeIndent=function(a){var y=Iu(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)},Et.Object.defineProperties(Ti.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!==z0&&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!==W0||(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!==H0&&a!==By&&a!==G0||(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!==Ap&&a!==Vg&&a!==Zg&&!Xg||(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()):Ht("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!==_0&&a!==Yg||(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!==Ap&&a!==Vg&&a!==Zg&&!Xg||(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!==_0&&a!==Yg||(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 R0=new bn(Ti,"PathDefault",-1),Ic=new bn(Ti,"PathDestination",0),Af=new bn(Ti,"PathSource",1),Ap=new bn(Ti,"SortingForwards",10),Vg=new bn(Ti,"SortingReverse",11),Zg=new bn(Ti,"SortingAscending",12),Xg=new bn(Ti,"SortingDescending",13),jp=new bn(Ti,"AlignmentCenterSubtrees",20),jf=new bn(Ti,"AlignmentCenterChildren",21),Dc=new bn(Ti,"AlignmentStart",22),Fc=new bn(Ti,"AlignmentEnd",23),Ah=new bn(Ti,"AlignmentBus",24),Bc=new bn(Ti,"AlignmentBusBranching",25),jh=new bn(Ti,"AlignmentTopLeftBus",26),ih=new bn(Ti,"AlignmentBottomRightBus",27),_0=new bn(Ti,"CompactionNone",30),Yg=new bn(Ti,"CompactionBlock",31),z0=new bn(Ti,"StyleLayered",40),Iy=new bn(Ti,"StyleLastParents",41),Dy=new bn(Ti,"StyleAlternating",42),Fy=new bn(Ti,"StyleRootOnly",43),H0=new bn(Ti,"ArrangementVertical",50),By=new bn(Ti,"ArrangementHorizontal",51),G0=new bn(Ti,"ArrangementFixedRoots",52),Ry=new bn(Ti,"LayerIndividual",60),_y=new bn(Ti,"LayerSiblings",61),W0=new bn(Ti,"LayerUniform",62);Ti.className="TreeLayout",Ti.PathDefault=R0,Ti.PathDestination=Ic,Ti.PathSource=Af,Ti.SortingForwards=Ap,Ti.SortingReverse=Vg,Ti.SortingAscending=Zg,Ti.SortingDescending=Xg,Ti.AlignmentCenterSubtrees=jp,Ti.AlignmentCenterChildren=jf,Ti.AlignmentStart=Dc,Ti.AlignmentEnd=Fc,Ti.AlignmentBus=Ah,Ti.AlignmentBusBranching=Bc,Ti.AlignmentTopLeftBus=jh,Ti.AlignmentBottomRightBus=ih,Ti.CompactionNone=_0,Ti.CompactionBlock=Yg,Ti.StyleLayered=z0,Ti.StyleLastParents=Iy,Ti.StyleAlternating=Dy,Ti.StyleRootOnly=Fy,Ti.ArrangementVertical=H0,Ti.ArrangementHorizontal=By,Ti.ArrangementFixedRoots=G0,Ti.LayerIndividual=Ry,Ti.LayerSiblings=_y,Ti.LayerUniform=W0;function If(a){Eo.call(this,a)}Jt(If,Eo),If.prototype.createVertex=function(){return new xu(this)},If.prototype.createEdge=function(){return new Ip(this)},If.className="TreeNetwork";function xu(a){Ua.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 kt(0,0),this.Da=new Yn(0,0),this.la=new kt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Ap,this.hd=oy,this.Kb=0,this.Jb=jf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Yg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=to,this.wr=!0,this.Dp=to}Jt(xu,Ua),xu.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)},Et.Object.defineProperties(xu.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)}}}),xu.className="TreeVertex";function Ip(a){kl.call(this,a),this.$t=new kt(0,0)}Jt(Ip,kl),Ip.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 Ic:x=this.fromVertex,b=this.toVertex;break;case Af:x=this.toVertex,b=this.fromVertex;break;default:Ht("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=Iu(x),ne=y.computeLayerSpacing(x),se=x.rowSpacing;a.vg();var he=a.curve===Xl,ge=a.isOrthogonal,ye;if(a.uh(),ge||he){for(ye=2;4<a.pointsCount;)a.pv(2);var Ie=a.i(1),Ue=a.i(2)}else{for(ye=1;3<a.pointsCount;)a.pv(1);Ie=a.i(0),Ue=a.i(a.pointsCount-1)}var qe=a.i(a.pointsCount-1);te===0?(x.alignment===Fc?(te=b.bottom+E.y,E.y===0&&Ie.y>qe.y+x.rowIndent&&(te=Math.min(te,Math.max(Ie.y,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.top+E.y,E.y===0&&Ie.y<qe.y-x.rowIndent&&(te=Math.max(te,Math.min(Ie.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,he?(a.m(ye,Ie.x,te),ye++,a.m(ye,b.right+ne,te),ye++,a.m(ye,b.right+ne+(E.x-se)/3,te),ye++,a.m(ye,b.right+ne+2*(E.x-se)/3,te),ye++,a.m(ye,b.right+ne+(E.x-se),te),ye++,a.m(ye,Ue.x,te)):(ge&&(a.m(ye,b.right+ne/2,Ie.y),ye++),a.m(ye,b.right+ne/2,te),ye++,a.m(ye,b.right+ne+E.x-(ge?se/2:se),te),ye++,ge&&a.m(ye,a.i(ye-1).x,Ue.y))):te===90?(x.alignment===Fc?(te=b.right+E.x,E.x===0&&Ie.x>qe.x+x.rowIndent&&(te=Math.min(te,Math.max(Ie.x,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.left+E.x,E.x===0&&Ie.x<qe.x-x.rowIndent&&(te=Math.max(te,Math.min(Ie.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,he?(a.m(ye,te,Ie.y),ye++,a.m(ye,te,b.bottom+ne),ye++,a.m(ye,te,b.bottom+ne+(E.y-se)/3),ye++,a.m(ye,te,b.bottom+ne+2*(E.y-se)/3),ye++,a.m(ye,te,b.bottom+ne+(E.y-se)),ye++,a.m(ye,te,Ue.y)):(ge&&(a.m(ye,Ie.x,b.bottom+ne/2),ye++),a.m(ye,te,b.bottom+ne/2),ye++,a.m(ye,te,b.bottom+ne+E.y-(ge?se/2:se)),ye++,ge&&a.m(ye,Ue.x,a.i(ye-1).y))):te===180?(x.alignment===Fc?(te=b.bottom+E.y,E.y===0&&Ie.y>qe.y+x.rowIndent&&(te=Math.min(te,Math.max(Ie.y,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.top+E.y,E.y===0&&Ie.y<qe.y-x.rowIndent&&(te=Math.max(te,Math.min(Ie.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,he?(a.m(ye,Ie.x,te),ye++,a.m(ye,b.left-ne,te),ye++,a.m(ye,b.left-ne+(E.x+se)/3,te),ye++,a.m(ye,b.left-ne+2*(E.x+se)/3,te),ye++,a.m(ye,b.left-ne+(E.x+se),te),ye++,a.m(ye,Ue.x,te)):(ge&&(a.m(ye,b.left-ne/2,Ie.y),ye++),a.m(ye,b.left-ne/2,te),ye++,a.m(ye,b.left-ne+E.x+(ge?se/2:se),te),ye++,ge&&a.m(ye,a.i(ye-1).x,Ue.y))):te===270?(x.alignment===Fc?(te=b.right+E.x,E.x===0&&Ie.x>qe.x+x.rowIndent&&(te=Math.min(te,Math.max(Ie.x,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.left+E.x,E.x===0&&Ie.x<qe.x-x.rowIndent&&(te=Math.max(te,Math.min(Ie.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,he?(a.m(ye,te,Ie.y),ye++,a.m(ye,te,b.top-ne),ye++,a.m(ye,te,b.top-ne+(E.y+se)/3),ye++,a.m(ye,te,b.top-ne+2*(E.y+se)/3),ye++,a.m(ye,te,b.top-ne+(E.y+se)),ye++,a.m(ye,te,Ue.y)):(ge&&(a.m(ye,Ie.x,b.top-ne/2),ye++),a.m(ye,te,b.top-ne/2),ye++,a.m(ye,te,b.top-ne+E.y+(ge?se/2:se)),ye++,ge&&a.m(ye,Ue.x,a.i(ye-1).y))):Ht("Invalid angle "+te),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Iu(x),y!==Iu(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===Xl,E=a.isOrthogonal,b=dd(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()))}}},Et.Object.defineProperties(Ip.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)}}}),Ip.className="TreeEdge",Do.prototype.initializeStandardTools=function(){this.gb("Action",new ui,this.mouseDownTools),this.gb("Relinking",new vr,this.mouseDownTools),this.gb("LinkReshaping",new Cr,this.mouseDownTools),this.gb("Rotating",new Ni,this.mouseDownTools),this.gb("Resizing",new oi,this.mouseDownTools),this.gb("Linking",new ir,this.mouseMoveTools),this.gb("Dragging",new Ko,this.mouseMoveTools),this.gb("DragSelecting",new li,this.mouseMoveTools),this.gb("Panning",new Gr,this.mouseMoveTools),this.gb("ContextMenu",new Xi,this.mouseUpTools),this.gb("TextEditing",new Hi,this.mouseUpTools),this.gb("ClickCreating",new Ei,this.mouseUpTools),this.gb("ClickSelecting",new ho,this.mouseUpTools)},cc("Horizontal",new ym),cc("Spot",new xm),cc("Table",new bm),cc("Viewbox",new Em),cc("TableRow",new Pm),cc("TableColumn",new Cm),cc("Graduated",new dg),cc("Grid",new hg),rp.add("GraphLinksModel",es),rp.add("TreeModel",uu);var U0=It.go,zy={get licenseKey(){return cn.licenseKey},set licenseKey(a){cn.licenseKey=a},get version(){return cn.version},Group:ti,EnumValue:bn,List:vn,Set:xn,Map:fr,Point:kt,Size:Yn,Rect:Ln,Margin:Lr,Spot:wr,Geometry:Zn,PathFigure:Ha,PathSegment:Gi,InputEvent:ws,DiagramEvent:Kc,ChangedEvent:zo,Model:yr,GraphLinksModel:Di,TreeModel:Xs,Binding:xa,Transaction:Va,UndoManager:$o,CommandHandler:Ot,Tool:zi,DraggingTool:Ko,DraggingInfo:Qc,DraggingOptions:de,LinkingBaseTool:pn,LinkingTool:ir,RelinkingTool:vr,LinkReshapingTool:Cr,ResizingTool:oi,RotatingTool:Ni,ClickSelectingTool:ho,ActionTool:ui,ClickCreatingTool:Ei,HTMLInfo:yi,ContextMenuTool:Xi,DragSelectingTool:li,PanningTool:Gr,TextEditingTool:Hi,ToolManager:Do,Animation:ta,AnimationManager:Qo,AnimationTrigger:Tl,Layer:Go,Diagram:cn,Palette:Ne,Overview:Re,Brush:ao,GraphObject:Yt,Panel:Un,RowColumnDefinition:ja,Shape:fi,TextBlock:Co,Picture:ul,Part:kr,Adornment:Ui,Node:rr,Link:Kn,Placeholder:$s,Layout:Ro,LayoutNetwork:Eo,LayoutVertex:Ua,LayoutEdge:kl,GridLayout:hs,PanelLayout:Wa,CircularLayout:Yo,CircularNetwork:kp,CircularVertex:zg,CircularEdge:C0,ForceDirectedLayout:Ss,ForceDirectedNetwork:Nf,ForceDirectedVertex:Hg,ForceDirectedEdge:Gg,LayeredDigraphLayout:uo,LayeredDigraphNetwork:Op,LayeredDigraphVertex:hu,LayeredDigraphEdge:$g,TreeLayout:Ti,TreeNetwork:If,TreeVertex:xu,TreeEdge:Ip};typeof U0=="object"&&U0.version&&lr("WARNING: a `go` object on the root object is already defined. "+("Debug"in U0?"debug ":"")+"version: "+U0.version+", replaced with version: "+zy.version),cn.prototype.go=zy,It.go=zy,typeof Rn.exports=="object"&&(Rn.exports=typeof $e.g!="undefined"?$e.g.go:self.go)}();var tt=typeof $e.g!="undefined"?$e.g.go:self.go;const Pt=typeof $e.g!="undefined"?$e.g.go:self.go,oe=Pt.Group,Ge=Pt.EnumValue,De=Pt.List,me=Pt.Set,ce=Pt.Map,we=Pt.Point,Le=Pt.Size,Se=Pt.Rect,Oe=Pt.Margin,ve=Pt.Spot,xe=Pt.Geometry,fe=Pt.PathFigure,z=Pt.PathSegment,ee=Pt.InputEvent,ae=Pt.DiagramEvent,re=Pt.ChangedEvent,le=Pt.Model,ue=Pt.GraphLinksModel,pe=Pt.TreeModel,be=Pt.Binding,Ce=Pt.Transaction,Fe=Pt.UndoManager,je=Pt.CommandHandler,ke=Pt.Tool,Ae=Pt.DraggingTool,Be=Pt.DraggingInfo,_e=Pt.LinkingBaseTool,et=Pt.LinkingTool,ze=Pt.RelinkingTool,Xe=Pt.LinkReshapingTool,Qe=Pt.ResizingTool,lt=Pt.RotatingTool,ct=Pt.ClickSelectingTool,vt=Pt.ActionTool,nt=Pt.ClickCreatingTool,it=Pt.HTMLInfo,pt=Pt.ContextMenuTool,xt=Pt.DragSelectingTool,yt=Pt.PanningTool,ft=Pt.TextEditingTool,gt=Pt.ToolManager,mt=Pt.Animation,Nt=Pt.AnimationManager,Tt=Pt.AnimationTrigger,zt=Pt.Layer,St=Pt.Diagram,wt=Pt.Palette,at=Pt.Overview,Ye=Pt.Brush,Pe=Pt.GraphObject,Te=Pt.Panel,Ve=Pt.RowColumnDefinition,Ze=Pt.Shape,Ee=Pt.TextBlock,He=Pt.TextBlockMetrics,We=Pt.Picture,Ke=Pt.Part,Je=Pt.Adornment,dt=Pt.Node,Ct=Pt.Link,ht=Pt.Placeholder,Lt=Pt.Layout,en=Pt.LayoutNetwork,Vt=Pt.LayoutVertex,Kt=Pt.LayoutEdge,Ut=Pt.GridLayout,rn=Pt.PanelLayout,Ft=Pt.CircularLayout,Xt=Pt.CircularNetwork,tn=Pt.CircularVertex,dn=Pt.CircularEdge,En=Pt.ForceDirectedLayout,An=Pt.ForceDirectedNetwork,ar=Pt.ForceDirectedVertex,tr=Pt.ForceDirectedEdge,Tr=Pt.LayeredDigraphLayout,Vn=Pt.LayeredDigraphNetwork,Or=Pt.LayeredDigraphVertex,Dr=Pt.LayeredDigraphEdge,Jr=Pt.TreeLayout,ni=Pt.TreeNetwork,Nr=Pt.TreeVertex,di=Pt.TreeEdge,Ir=Pt.version},2859:function(Rn,wn,$e){"use strict";$e.d(wn,{hP:function(){return at}});var tt=function(Ye,Pe){return(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Te,Ve){Te.__proto__=Ve}||function(Te,Ve){for(var Ze in Ve)Object.prototype.hasOwnProperty.call(Ve,Ze)&&(Te[Ze]=Ve[Ze])})(Ye,Pe)};function Pt(Ye,Pe){function Te(){this.constructor=Ye}tt(Ye,Pe),Ye.prototype=Pe===null?Object.create(Pe):(Te.prototype=Pe.prototype,new Te)}function oe(Ye,Pe,Te,Ve){return new(Te||(Te=Promise))(function(Ze,Ee){function He(Je){try{Ke(Ve.next(Je))}catch(dt){Ee(dt)}}function We(Je){try{Ke(Ve.throw(Je))}catch(dt){Ee(dt)}}function Ke(Je){var dt;Je.done?Ze(Je.value):(dt=Je.value,dt instanceof Te?dt:new Te(function(Ct){Ct(dt)})).then(He,We)}Ke((Ve=Ve.apply(Ye,Pe||[])).next())})}function Ge(Ye,Pe){var Te,Ve,Ze,Ee,He={label:0,sent:function(){if(1&Ze[0])throw Ze[1];return Ze[1]},trys:[],ops:[]};return Ee={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function We(Ke){return function(Je){return function(dt){if(Te)throw new TypeError("Generator is already executing.");for(;He;)try{if(Te=1,Ve&&(Ze=2&dt[0]?Ve.return:dt[0]?Ve.throw||((Ze=Ve.return)&&Ze.call(Ve),0):Ve.next)&&!(Ze=Ze.call(Ve,dt[1])).done)return Ze;switch(Ve=0,Ze&&(dt=[2&dt[0],Ze.value]),dt[0]){case 0:case 1:Ze=dt;break;case 4:return He.label++,{value:dt[1],done:!1};case 5:He.label++,Ve=dt[1],dt=[0];continue;case 7:dt=He.ops.pop(),He.trys.pop();continue;default:if(Ze=He.trys,!((Ze=Ze.length>0&&Ze[Ze.length-1])||dt[0]!==6&&dt[0]!==2)){He=0;continue}if(dt[0]===3&&(!Ze||dt[1]>Ze[0]&&dt[1]<Ze[3])){He.label=dt[1];break}if(dt[0]===6&&He.label<Ze[1]){He.label=Ze[1],Ze=dt;break}if(Ze&&He.label<Ze[2]){He.label=Ze[2],He.ops.push(dt);break}Ze[2]&&He.ops.pop(),He.trys.pop();continue}dt=Pe.call(Ye,He)}catch(Ct){dt=[6,Ct],Ve=0}finally{Te=Ze=0}if(5&dt[0])throw dt[1];return{value:dt[0]?dt[1]:void 0,done:!0}}([Ke,Je])}}}function De(){for(var Ye=0,Pe=0,Te=arguments.length;Pe<Te;Pe++)Ye+=arguments[Pe].length;var Ve=Array(Ye),Ze=0;for(Pe=0;Pe<Te;Pe++)for(var Ee=arguments[Pe],He=0,We=Ee.length;He<We;He++,Ze++)Ve[Ze]=Ee[He];return Ve}var me=function(){function Ye(){}return Ye.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ye.setAttributes=function(Pe,Te){for(var Ve=0,Ze=Te;Ve<Ze.length;Ve++){var Ee=Ze[Ve],He=Ee[0],We=Ee[1];Pe.setAttribute(He,We)}},Ye.createRect=function(Pe,Te,Ve){var Ze=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ze.setAttribute("width",Pe.toString()),Ze.setAttribute("height",Te.toString()),Ve&&Ye.setAttributes(Ze,Ve),Ze},Ye.createLine=function(Pe,Te,Ve,Ze,Ee){var He=document.createElementNS("http://www.w3.org/2000/svg","line");return He.setAttribute("x1",Pe.toString()),He.setAttribute("y1",Te.toString()),He.setAttribute("x2",Ve.toString()),He.setAttribute("y2",Ze.toString()),Ee&&Ye.setAttributes(He,Ee),He},Ye.createPolygon=function(Pe,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ve.setAttribute("points",Pe),Te&&Ye.setAttributes(Ve,Te),Ve},Ye.createCircle=function(Pe,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ve.setAttribute("cx",(Pe/2).toString()),Ve.setAttribute("cy",(Pe/2).toString()),Ve.setAttribute("r",Pe.toString()),Te&&Ye.setAttributes(Ve,Te),Ve},Ye.createEllipse=function(Pe,Te,Ve){var Ze=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ze.setAttribute("cx",(Pe/2).toString()),Ze.setAttribute("cy",(Te/2).toString()),Ze.setAttribute("rx",(Pe/2).toString()),Ze.setAttribute("ry",(Te/2).toString()),Ve&&Ye.setAttributes(Ze,Ve),Ze},Ye.createGroup=function(Pe){var Te=document.createElementNS("http://www.w3.org/2000/svg","g");return Pe&&Ye.setAttributes(Te,Pe),Te},Ye.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ye.createMarker=function(Pe,Te,Ve,Ze,Ee,He,We){var Ke=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ye.setAttributes(Ke,[["id",Pe],["orient",Te],["markerWidth",Ve.toString()],["markerHeight",Ze.toString()],["refX",Ee.toString()],["refY",He.toString()]]),Ke.appendChild(We),Ke},Ye.createText=function(Pe){var Te=document.createElementNS("http://www.w3.org/2000/svg","text");return Te.setAttribute("x","0"),Te.setAttribute("y","0"),Pe&&Ye.setAttributes(Te,Pe),Te},Ye.createTSpan=function(Pe,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ve.textContent=Pe,Te&&Ye.setAttributes(Ve,Te),Ve},Ye.createImage=function(Pe){var Te=document.createElementNS("http://www.w3.org/2000/svg","image");return Pe&&Ye.setAttributes(Te,Pe),Te},Ye.createPoint=function(Pe,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ve.x=Pe,Ve.y=Te,Ve},Ye.createPath=function(Pe,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","path");return Ve.setAttribute("d",Pe),Te&&Ye.setAttributes(Ve,Te),Ve},Ye}(),ce=function(){function Ye(){}return Ye.addKey=function(Pe){Ye.key=Pe},Object.defineProperty(Ye,"isLicensed",{get:function(){return!!Ye.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ye.key)},enumerable:!1,configurable:!0}),Ye}(),we=function(){function Ye(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ye.prototype.rasterize=function(Pe,Te,Ve){var Ze=this;return new Promise(function(Ee){var He=Ve!==void 0?Ve:document.createElement("canvas");Pe===null&&(Ze.markersOnly=!0,Ze.naturalSize=!1);var We=document.createElementNS("http://www.w3.org/2000/svg","svg");We.setAttribute("xmlns","http://www.w3.org/2000/svg"),We.setAttribute("width",Te.width.baseVal.valueAsString),We.setAttribute("height",Te.height.baseVal.valueAsString),We.setAttribute("viewBox","0 0 "+Te.viewBox.baseVal.width.toString()+" "+Te.viewBox.baseVal.height.toString()),We.innerHTML=Te.innerHTML,Ze.naturalSize===!0?(We.width.baseVal.value=Pe.naturalWidth,We.height.baseVal.value=Pe.naturalHeight):Ze.width!==void 0&&Ze.height!==void 0&&(We.width.baseVal.value=Ze.width,We.height.baseVal.value=Ze.height),He.width=We.width.baseVal.value,He.height=We.height.baseVal.value;var Ke=We.outerHTML,Je=He.getContext("2d");Ze.markersOnly!==!0&&Je.drawImage(Pe,0,0,He.width,He.height);var dt=window.URL,Ct=new Image(He.width,He.height);Ct.setAttribute("crossOrigin","anonymous");var ht=new Blob([Ke],{type:"image/svg+xml"}),Lt=dt.createObjectURL(ht);Ct.onload=function(){Je.drawImage(Ct,0,0),dt.revokeObjectURL(Lt);var en=He.toDataURL(Ze.imageType,Ze.imageQuality);Ee(en)},Ct.src=Lt})},Ye}(),Le=function(){},Se=function(){function Ye(Pe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Pe+"_"}return Object.defineProperty(Ye.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.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(Ye.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ye.prototype.addClass=function(Pe){return this.styleSheet===void 0&&this.addStyleSheet(),Pe.name=""+this.classNamePrefix+Pe.localName,this.classes.push(Pe),this.styleSheet.sheet.insertRule("."+Pe.name+" {"+Pe.style+"}",this.styleSheet.sheet.cssRules.length),Pe},Ye.prototype.addRule=function(Pe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Pe),this.styleSheet.sheet.insertRule(Pe.selector+" {"+Pe.style+"}",this.styleSheet.sheet.cssRules.length)},Ye.prototype.addStyleSheet=function(){var Pe;this.styleSheet=document.createElement("style"),((Pe=this.styleSheetRoot)!==null&&Pe!==void 0?Pe:document.head).appendChild(this.styleSheet),this.addRule(new Oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ve("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ve("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Ye.prototype.removeStyleSheet=function(){var Pe;this.styleSheet&&(((Pe=this.styleSheetRoot)!==null&&Pe!==void 0?Pe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ye}(),Oe=function(Ye,Pe){this.selector=Ye,this.style=Pe},ve=function(Ye,Pe){this.localName=Ye,this.style=Pe},xe=function(){function Ye(Pe,Te,Ve,Ze,Ee){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Pe,this.displayMode=Te,this.markerItems=Ve,this.uiStyleSettings=Ze,this.styles=Ee,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ye.prototype.show=function(Pe){var Te=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ve=document.createElement("div");Ve.className=this.toolbarBlockStyleClass.name,Ve.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ve),this.addActionButton(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ee){var He=document.createElement("div");He.className=""+Te.toolbarButtonStyleClass.name,He.setAttribute("data-type-name",Ee.typeName),He.innerHTML=Ee.icon,He.addEventListener("click",function(){Te.markerToolbarButtonClicked(He,Ee)}),Te.buttons.push(He),Te.markerButtons.push(He)}),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 Ze=document.createElement("div");Ze.className=this.toolbarBlockStyleClass.name,Ze.style.whiteSpace="nowrap",Ze.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ze),this.addActionButton(Ze,'<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(Ze,'<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()},Ye.prototype.addButtonClickListener=function(Pe){this.buttonClickListeners.push(Pe)},Ye.prototype.removeButtonClickListener=function(Pe){this.buttonClickListeners.indexOf(Pe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Pe),1)},Ye.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ye.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Pe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Te=0;Te<this.markerButtons.length;Te++)Te<Pe||Te===Pe&&this.markerButtons.length-1===Pe?this.markerButtonBlock.appendChild(this.markerButtons[Te]):(Te===Pe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Te]))}},Ye.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")},Ye.prototype.resetButtonStyles=function(){var Pe=this;this.buttons.forEach(function(Te){Te.className=Te.className.replace(Pe.uiStyleSettings.toolbarButtonStyleColorsClassName?Pe.uiStyleSettings.toolbarButtonStyleColorsClassName:Pe.toolbarButtonStyleColorsClass.name,"").trim(),Te.className=Te.className.replace(Pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Pe.toolbarActiveButtonStyleColorsClass.name,"").trim(),Te.className+=" "+(Pe.uiStyleSettings.toolbarButtonStyleColorsClassName?Pe.uiStyleSettings.toolbarButtonStyleColorsClassName:Pe.toolbarButtonStyleColorsClass.name)})},Ye.prototype.addActionButton=function(Pe,Te,Ve){var Ze=this,Ee=document.createElement("div");switch(Ee.className=""+this.toolbarButtonStyleClass.name,Ee.innerHTML=Te,Ee.setAttribute("data-action",Ve),Ee.addEventListener("click",function(){Ze.actionToolbarButtonClicked(Ee,Ve)}),Ve){case"select":Ee.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ee.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ee.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ee.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ee.style.fill=this.uiStyleSettings.closeButtonColor}Pe.appendChild(Ee),this.buttons.push(Ee)},Ye.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("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 ve("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("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 ve("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Pe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px;
|
|
|
padding: `+Pe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Ye.prototype.markerToolbarButtonClicked=function(Pe,Te){this.setActiveButton(Pe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ve){return Ve("marker",Te)}),this.markerButtonOverflowBlock.style.display="none"},Ye.prototype.actionToolbarButtonClicked=function(Pe,Te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ve){return Ve("action",Te)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ye.prototype.setActiveButton=function(Pe){this.resetButtonStyles(),Pe.className=Pe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Pe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ye.prototype.setActiveMarkerButton=function(Pe){var Te=this.markerButtons.find(function(Ve){return Ve.getAttribute("data-type-name")===Pe});Te&&this.setActiveButton(Te)},Ye.prototype.setCurrentMarker=function(Pe){var Te=this;this.currentMarker=Pe,this.buttons.filter(function(Ve){return/delete|notes/.test(Ve.getAttribute("data-action"))}).forEach(function(Ve){Te.currentMarker===void 0?(Ve.style.fillOpacity="0.4",Ve.style.pointerEvents="none"):(Ve.style.fillOpacity="1",Ve.style.pointerEvents="all")})},Ye}(),fe=function(){function Ye(Pe,Te,Ve,Ze){this.panels=[],this.panelButtons=[],this.markerjsContainer=Pe,this.displayMode=Te,this.uiStyleSettings=Ve,this.styles=Ze,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ye.prototype.addStyles=function(){var Pe;this.toolboxStyleClass=this.styles.addClass(new ve("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 ve("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("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 ve("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Pe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Pe!==void 0?Pe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Te)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Te)+`px;
|
|
|
padding: `+Te+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Ye.prototype.show=function(Pe){var Te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Te=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Te!==void 0?Te:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ye.prototype.setPanelButtons=function(Pe){var Te,Ve,Ze=this;this.panels=Pe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Te=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Te!==void 0?Te:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ve=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ve!==void 0?Ve:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ee){var He;Ee.uiStyleSettings=Ze.uiStyleSettings;var We=document.createElement("div");We.className=Ze.toolboxButtonStyleClass.name+" "+((He=Ze.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&He!==void 0?He:Ze.toolboxButtonStyleColorsClass.name),We.innerHTML=Ee.icon,We.title=Ee.title,We.addEventListener("click",function(){Ze.panelButtonClick(Ee)}),Ze.panelButtons.push(We),Ze.buttonRow.appendChild(We)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ye.prototype.panelButtonClick=function(Pe){var Te=this,Ve=-1;if(Pe!==this.activePanel){Ve=this.panels.indexOf(Pe),this.panelRow.innerHTML="";var Ze=Pe.getUi();Ze.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ze),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=Pe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Te.displayMode==="inline"?Te.panelRow.style.display="none":Te.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ee,He){var We,Ke;Ee.className=Te.toolboxButtonStyleClass.name+" "+(He===Ve?""+((We=Te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&We!==void 0?We:Te.toolboxActiveButtonStyleColorsClass.name):""+((Ke=Te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:Te.toolboxButtonStyleColorsClass.name))})},Ye}(),z=function(Ye,Pe){this.title=Ye,this.icon=Pe},ee=function(Ye){function Pe(Te,Ve,Ze,Ee){var He=Ye.call(this,Te,Ee||'<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 He.colors=[],He.addTransparent=!1,He.colorBoxes=[],He.colors=Ve,He.currentColor=Ze,He.setCurrentColor=He.setCurrentColor.bind(He),He.getColorBox=He.getColorBox.bind(He),He}return Pt(Pe,Ye),Pe.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.overflow="hidden",Ve.style.whiteSpace="nowrap",this.colors.forEach(function(Ze){var Ee=Te.getColorBox(Ze);Ve.appendChild(Ee),Te.colorBoxes.push(Ee)}),Ve},Pe.prototype.getColorBox=function(Te){var Ve=this,Ze=this.uiStyleSettings.toolbarHeight/4,Ee=this.uiStyleSettings.toolbarHeight-Ze,He=document.createElement("div");He.style.display="inline-block",He.style.boxSizing="content-box",He.style.width=Ee-2+"px",He.style.height=Ee-2+"px",He.style.padding="1px",He.style.marginRight="2px",He.style.marginBottom="2px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.borderRadius=(Ee+2)/2+"px",He.style.borderColor=Te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Ve.setCurrentColor(Te,He)});var We=document.createElement("div");return We.style.display="inline-block",We.style.width=Ee-2+"px",We.style.height=Ee-2+"px",We.style.backgroundColor=Te,We.style.borderRadius=Ee/2+"px",Te==="transparent"&&(We.style.fill=this.uiStyleSettings.toolboxAccentColor,We.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>`),He.appendChild(We),He},Pe.prototype.setCurrentColor=function(Te,Ve){var Ze=this;this.currentColor=Te,this.colorBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Te)},Pe}(z),ae=function(){function Ye(Pe,Te,Ve){this._state="new",this._isSelected=!1,this._container=Pe,this._overlayContainer=Te,this.globalSettings=Ve,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ye.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ye.prototype.ownsTarget=function(Pe){return!1},Object.defineProperty(Ye.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ye.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ye.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ye.prototype.pointerDown=function(Pe,Te){},Ye.prototype.dblClick=function(Pe,Te){},Ye.prototype.manipulate=function(Pe){},Ye.prototype.pointerUp=function(Pe){this.stateChanged()},Ye.prototype.dispose=function(){},Ye.prototype.addMarkerVisualToContainer=function(Pe){this.container.childNodes.length>0?this.container.insertBefore(Pe,this.container.childNodes[0]):this.container.appendChild(Pe)},Ye.prototype.getState=function(){return{typeName:Ye.typeName,state:this.state,notes:this.notes}},Ye.prototype.restoreState=function(Pe){this._state=Pe.state,this.notes=Pe.notes},Ye.prototype.scale=function(Pe,Te){},Ye.prototype.colorChanged=function(Pe){this.onColorChanged&&this.onColorChanged(Pe),this.stateChanged()},Ye.prototype.fillColorChanged=function(Pe){this.onFillColorChanged&&this.onFillColorChanged(Pe),this.stateChanged()},Ye.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Pe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Pe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Pe)&&this.onStateChanged(this)}},Ye.typeName="MarkerBase",Ye}(),re=function(){function Ye(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ye.prototype.findGripByVisual=function(Pe){return this.topLeft.ownsTarget(Pe)?this.topLeft:this.topCenter.ownsTarget(Pe)?this.topCenter:this.topRight.ownsTarget(Pe)?this.topRight:this.centerLeft.ownsTarget(Pe)?this.centerLeft:this.centerRight.ownsTarget(Pe)?this.centerRight:this.bottomLeft.ownsTarget(Pe)?this.bottomLeft:this.bottomCenter.ownsTarget(Pe)?this.bottomCenter:this.bottomRight.ownsTarget(Pe)?this.bottomRight:void 0},Ye}(),le=function(){function Ye(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ye.prototype.ownsTarget=function(Pe){return Pe===this.visual||Pe===this.visual.childNodes[0]||Pe===this.visual.childNodes[1]},Ye}(),ue=function(){function Ye(){}return Ye.toITransformMatrix=function(Pe){return{a:Pe.a,b:Pe.b,c:Pe.c,d:Pe.d,e:Pe.e,f:Pe.f}},Ye.toSVGMatrix=function(Pe,Te){return Pe.a=Te.a,Pe.b=Te.b,Pe.c=Te.c,Pe.d=Te.d,Pe.e=Te.e,Pe.f=Te.f,Pe},Ye}(),pe=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.left=0,Ee.top=0,Ee.width=0,Ee.height=0,Ee.defaultSize={x:50,y:20},Ee.offsetX=0,Ee.offsetY=0,Ee.rotationAngle=0,Ee.CB_DISTANCE=10,Ee._suppressMarkerCreateEvent=!1,Ee.container.transform.baseVal.appendItem(me.createTransform()),Ee.setupControlBox(),Ee}return Pt(Pe,Ye),Object.defineProperty(Pe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"visual",{get:function(){return this._visual},set:function(Te){this._visual=Te;var Ve=me.createTransform();this._visual.transform.baseVal.appendItem(Ve)},enumerable:!1,configurable:!0}),Pe.prototype.ownsTarget=function(Te){return!!Ye.prototype.ownsTarget.call(this,Te)||!!(this.controlGrips.findGripByVisual(Te)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Te))},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.state==="new"&&(this.left=Te.x,this.top=Te.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ze=this.unrotatePoint(Te);if(this.manipulationStartX=Ze.x,this.manipulationStartY=Ze.y,this.offsetX=Ze.x-this.left,this.offsetY=Ze.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ve),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ve)){this.activeGrip=this.rotatorGrip;var Ee=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ee.x-this.width/2,this.top=Ee.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var He=this.container.transform.baseVal.getItem(0);He.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(He,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Pe.prototype.pointerUp=function(Te){var Ve=this.state;Ye.prototype.pointerUp.call(this,Te),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Te),this._state="select",Ve==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Pe.prototype.moveVisual=function(Te){this.visual.style.transform="translate("+Te.x+"px, "+Te.y+"px)"},Pe.prototype.manipulate=function(Te){var Ve=this.unrotatePoint(Te);this.state==="creating"?this.resize(Te):this.state==="move"?(this.left=this.manipulationStartLeft+(Ve.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ve.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ve):this.state==="rotate"&&this.rotate(Te)},Pe.prototype.resize=function(Te){var Ve=this.manipulationStartLeft,Ze=this.manipulationStartWidth,Ee=this.manipulationStartTop,He=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ve=this.manipulationStartLeft+Te.x-this.manipulationStartX,Ze=this.manipulationStartWidth+this.manipulationStartLeft-Ve;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ze=this.manipulationStartWidth+Te.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ee=this.manipulationStartTop+Te.y-this.manipulationStartY,He=this.manipulationStartHeight+this.manipulationStartTop-Ee;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:He=this.manipulationStartHeight+Te.y-this.manipulationStartY}Ze>=0?(this.left=Ve,this.width=Ze):(this.left=Ve+Ze,this.width=-Ze),He>=0?(this.top=Ee,this.height=He):(this.top=Ee+He,this.height=-He),this.setSize()},Pe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Pe.prototype.rotate=function(Te){if(Math.abs(Te.x-this.centerX)>.1){var Ve=Math.sign(Te.x-this.centerX);this.rotationAngle=180*Math.atan((Te.y-this.centerY)/(Te.x-this.centerX))/Math.PI+90*Ve,this.applyRotation()}},Pe.prototype.applyRotation=function(){var Te=this.container.transform.baseVal.getItem(0);Te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Te,0)},Pe.prototype.rotatePoint=function(Te){if(this.rotationAngle===0)return Te;var Ve=this.container.getCTM(),Ze=me.createPoint(Te.x,Te.y);return{x:(Ze=Ze.matrixTransform(Ve)).x,y:Ze.y}},Pe.prototype.unrotatePoint=function(Te){if(this.rotationAngle===0)return Te;var Ve=this.container.getCTM();Ve=Ve.inverse();var Ze=me.createPoint(Te.x,Te.y);return{x:(Ze=Ze.matrixTransform(Ve)).x,y:Ze.y}},Pe.prototype.select=function(){Ye.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pe.prototype.deselect=function(){Ye.prototype.deselect.call(this),this.controlBox.style.display="none"},Pe.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var Te=me.createTransform();Te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Te),this.container.appendChild(this.controlBox),this.controlRect=me.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=me.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new re,this.addControlGrips(),this.controlBox.style.display="none"},Pe.prototype.adjustControlBox=function(){var Te=this.controlBox.transform.baseVal.getItem(0);Te.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Te,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()},Pe.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()},Pe.prototype.createGrip=function(){var Te=new le;return Te.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(Te.visual),Te},Pe.prototype.positionGrips=function(){var Te=this.controlGrips.topLeft.GRIP_SIZE,Ve=-Te/2,Ze=Ve,Ee=(this.width+this.CB_DISTANCE)/2-Te/2,He=(this.height+this.CB_DISTANCE)/2-Te/2,We=this.height+this.CB_DISTANCE-Te/2,Ke=this.width+this.CB_DISTANCE-Te/2;this.positionGrip(this.controlGrips.topLeft.visual,Ve,Ze),this.positionGrip(this.controlGrips.topCenter.visual,Ee,Ze),this.positionGrip(this.controlGrips.topRight.visual,Ke,Ze),this.positionGrip(this.controlGrips.centerLeft.visual,Ve,He),this.positionGrip(this.controlGrips.centerRight.visual,Ke,He),this.positionGrip(this.controlGrips.bottomLeft.visual,Ve,We),this.positionGrip(this.controlGrips.bottomCenter.visual,Ee,We),this.positionGrip(this.controlGrips.bottomRight.visual,Ke,We),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ee,Ze-3*this.CB_DISTANCE)},Pe.prototype.positionGrip=function(Te,Ve,Ze){var Ee=Te.transform.baseVal.getItem(0);Ee.setTranslate(Ve,Ze),Te.transform.baseVal.replaceItem(Ee,0)},Pe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Pe.prototype.showControlBox=function(){this.controlBox.style.display=""},Pe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ue.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ue.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ye.prototype.getState.call(this))},Pe.prototype.restoreState=function(Te){Ye.prototype.restoreState.call(this,Te);var Ve=Te;this.left=Ve.left,this.top=Ve.top,this.width=Ve.width,this.height=Ve.height,this.rotationAngle=Ve.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ve.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ve.containerTransformMatrix))},Pe.prototype.scale=function(Te,Ve){Ye.prototype.scale.call(this,Te,Ve);var Ze=this.rotatePoint({x:this.left,y:this.top}),Ee=this.unrotatePoint({x:Ze.x*Te,y:Ze.y*Ve});this.left=Ee.x,this.top=Ee.y,this.width=this.width*Te,this.height=this.height*Ve,this.adjustControlBox()},Pe}(ae),be=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.opacity=1,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return!(!Ye.prototype.ownsTarget.call(this,Te)&&Te!==this.visual)},Pe.prototype.createVisual=function(){this.visual=me.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},Pe.prototype.manipulate=function(Te){Ye.prototype.manipulate.call(this,Te)},Pe.prototype.resize=function(Te){Ye.prototype.resize.call(this,Te),this.setSize()},Pe.prototype.setSize=function(){Ye.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Pe.prototype.pointerUp=function(Te){Ye.prototype.pointerUp.call(this,Te),this.setSize()},Pe.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},Pe.prototype.setFillColor=function(Te){this.fillColor=Te,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Pe.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pe.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ye.prototype.getState.call(this))},Pe.prototype.restoreState=function(Te){var Ve=Te;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.opacity=Ve.opacity,this.createVisual(),Ye.prototype.restoreState.call(this,Te),this.setSize()},Pe.prototype.scale=function(Te,Ve){Ye.prototype.scale.call(this,Te,Ve),this.setSize()},Pe.title="Rectangle marker",Pe}(pe),Ce=function(Ye){function Pe(Te,Ve,Ze,Ee){var He=Ye.call(this,Te,Ee||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return He.widths=[],He.widthBoxes=[],He.widths=Ve,He.currentWidth=Ze,He.setCurrentWidth=He.setCurrentWidth.bind(He),He}return Pt(Pe,Ye),Pe.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.widths.forEach(function(Ze){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.flexGrow="2",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=Ze===Te.currentWidth?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Te.setCurrentWidth(Ze,Ee)}),Ve.appendChild(Ee);var He=document.createElement("div");He.innerText=Ze.toString(),He.style.marginRight="5px",Ee.appendChild(He);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.display="flex",We.style.alignItems="center";var Ke=document.createElement("hr");Ke.style.minWidth="20px",Ke.style.border="0px",Ke.style.borderTop=Ze+"px solid "+Te.uiStyleSettings.toolboxColor,Ke.style.flexGrow="2",We.appendChild(Ke),Ee.appendChild(We),Te.widthBoxes.push(Ee)}),Ve},Pe.prototype.setCurrentWidth=function(Te,Ve){var Ze=this;this.currentWidth=Te,this.widthBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Pe}(z),Fe=function(Ye){function Pe(Te,Ve,Ze,Ee){var He=Ye.call(this,Te,Ee||'<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 He.styles=[],He.styleBoxes=[],He.styles=Ve,He.currentStyle=Ze,He.setCurrentStyle=He.setCurrentStyle.bind(He),He}return Pt(Pe,Ye),Pe.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.styles.forEach(function(Ze){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.overflow="hidden",Ee.style.maxWidth=100/Te.styles.length-5+"%",Ee.style.borderColor=Ze===Te.currentStyle?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Te.setCurrentStyle(Ze,Ee)}),Ve.appendChild(Ee);var He=document.createElement("div");He.style.minHeight="20px",He.style.flexGrow="2",He.style.overflow="hidden";var We=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ze!==""?'stroke-dasharray="'+Ze+'"':"")+` />
|
|
|
</svg>`;He.innerHTML=We,Ee.appendChild(He),Te.styleBoxes.push(Ee)}),Ve},Pe.prototype.setCurrentStyle=function(Te,Ve){var Ze=this;this.currentStyle=Te,this.styleBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Pe}(z),je=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return Pt(Pe,Ye),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Ye.prototype.getState.call(this);return Te.typeName=Pe.typeName,Te},Pe.typeName="FrameMarker",Pe.title="Frame marker",Pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Pe}(be),ke=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"},Ae=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.x1=0,Ee.y1=0,Ee.x2=0,Ee.y2=0,Ee.defaultLength=50,Ee.manipulationStartX=0,Ee.manipulationStartY=0,Ee.manipulationStartX1=0,Ee.manipulationStartY1=0,Ee.manipulationStartX2=0,Ee.manipulationStartY2=0,Ee.setupControlBox(),Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return!!Ye.prototype.ownsTarget.call(this,Te)||!(!this.grip1.ownsTarget(Te)&&!this.grip2.ownsTarget(Te))},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.manipulationStartX=Te.x,this.manipulationStartY=Te.y,this.state==="new"&&(this.x1=Te.x,this.y1=Te.y,this.x2=Te.x,this.y2=Te.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(Ve)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ve)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Pe.prototype.pointerUp=function(Te){var Ve=this.state;Ye.prototype.pointerUp.call(this,Te),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(Te),this._state="select",Ve==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Pe.prototype.adjustVisual=function(){},Pe.prototype.manipulate=function(Te){this.state==="creating"?this.resize(Te):this.state==="move"?(this.x1=this.manipulationStartX1+Te.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Te.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Te.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Te.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Te)},Pe.prototype.resize=function(Te){switch(this.activeGrip){case this.grip1:this.x1=Te.x,this.y1=Te.y;break;case this.grip2:case void 0:this.x2=Te.x,this.y2=Te.y}this.adjustVisual(),this.adjustControlBox()},Pe.prototype.select=function(){Ye.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pe.prototype.deselect=function(){Ye.prototype.deselect.call(this),this.controlBox.style.display="none"},Pe.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Pe.prototype.adjustControlBox=function(){this.positionGrips()},Pe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Pe.prototype.createGrip=function(){var Te=new le;return Te.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(Te.visual),Te},Pe.prototype.positionGrips=function(){var Te=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Te/2,this.y1-Te/2),this.positionGrip(this.grip2.visual,this.x2-Te/2,this.y2-Te/2)},Pe.prototype.positionGrip=function(Te,Ve,Ze){var Ee=Te.transform.baseVal.getItem(0);Ee.setTranslate(Ve,Ze),Te.transform.baseVal.replaceItem(Ee,0)},Pe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ye.prototype.getState.call(this))},Pe.prototype.restoreState=function(Te){Ye.prototype.restoreState.call(this,Te);var Ve=Te;this.x1=Ve.x1,this.y1=Ve.y1,this.x2=Ve.x2,this.y2=Ve.y2},Pe.prototype.scale=function(Te,Ve){Ye.prototype.scale.call(this,Te,Ve),this.x1=this.x1*Te,this.y1=this.y1*Ve,this.x2=this.x2*Te,this.y2=this.y2*Ve,this.adjustVisual(),this.adjustControlBox()},Pe}(ae),Be=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return!(!Ye.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.selectorLine&&Te!==this.visibleLine)},Pe.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Pe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pe.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.adjustVisual(),this.colorChanged(Te)},Pe.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.adjustVisual()},Pe.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ye.prototype.getState.call(this));return Te.typeName=Pe.typeName,Te},Pe.prototype.restoreState=function(Te){Ye.prototype.restoreState.call(this,Te);var Ve=Te;this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.createVisual(),this.adjustVisual()},Pe.typeName="LineMarker",Pe.title="Line marker",Pe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Pe}(Ae),_e=function(Ye){function Pe(Te,Ve,Ze,Ee){var He=Ye.call(this,Te,Ee||'<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 He.fonts=[],He.fontBoxes=[],He.fonts=Ve,He.currentFont=Ze,He.setCurrentFont=He.setCurrentFont.bind(He),He}return Pt(Pe,Ye),Pe.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.fonts.forEach(function(Ze){var Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.overflow="hidden",Ee.style.maxWidth=100/Te.fonts.length-5+"%",Ee.style.borderColor=Ze===Te.currentFont?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Te.setCurrentFont(Ze,Ee)}),Ve.appendChild(Ee);var He=document.createElement("div");He.style.display="flex",He.style.minHeight="20px",He.style.flexGrow="2",He.style.fontFamily=Ze,He.style.overflow="hidden";var We=document.createElement("div");We.style.whiteSpace="nowrap",We.style.overflow="hidden",We.style.textOverflow="ellipsis",We.innerHTML="The quick brown fox jumps over the lazy dog",He.appendChild(We),Ee.appendChild(He),Te.fontBoxes.push(Ee)}),Ve},Pe.prototype.setCurrentFont=function(Te,Ve){var Ze=this;this.currentFont=Te,this.fontBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Pe}(z),et=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.color="transparent",Ee.padding=5,Ee.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ee.text=Ee.DEFAULT_TEXT,Ee.isMoved=!1,Ee.color=Ze.defaultColor,Ee.fontFamily=Ze.defaultFontFamily,Ee.defaultSize={x:100,y:30},Ee.setColor=Ee.setColor.bind(Ee),Ee.setFont=Ee.setFont.bind(Ee),Ee.renderText=Ee.renderText.bind(Ee),Ee.sizeText=Ee.sizeText.bind(Ee),Ee.textEditDivClicked=Ee.textEditDivClicked.bind(Ee),Ee.showTextEditor=Ee.showTextEditor.bind(Ee),Ee.setSize=Ee.setSize.bind(Ee),Ee.positionTextEditor=Ee.positionTextEditor.bind(Ee),Ee.colorPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultColor),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){if(Ye.prototype.ownsTarget.call(this,Te)||Te===this.visual||Te===this.textElement||Te===this.bgRectangle)return!0;var Ve=!1;return this.textElement.childNodes.forEach(function(Ze){Ze===Te&&(Ve=!0)}),Ve},Pe.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.isMoved=!1,this.pointerDownPoint=Te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},Pe.prototype.renderText=function(){var Te=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(Ve){Te.textElement.appendChild(me.createTSpan(Ve.trim()===""?" ":Ve.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Pe.prototype.getTextScale=function(){var Te=this.textElement.getBBox(),Ve=1;if(Te.width>0&&Te.height>0){var Ze=(1*this.width-this.width*this.padding*2/100)/Te.width,Ee=(1*this.height-this.height*this.padding*2/100)/Te.height;Ve=Math.min(Ze,Ee)}return Ve},Pe.prototype.getTextPosition=function(Te){var Ve=this.textElement.getBBox(),Ze=0,Ee=0;return Ve.width>0&&Ve.height>0&&(Ze=(this.width-Ve.width*Te)/2,Ee=this.height/2-Ve.height*Te/2),{x:Ze,y:Ee}},Pe.prototype.sizeText=function(){var Te=this.textElement.getBBox(),Ve=this.getTextScale(),Ze=this.getTextPosition(Ve);Ze.y-=Te.y*Ve,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ze.x+"px, "+Ze.y+"px) scale("+Ve+", "+Ve+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ze.x,Ze.y),this.textElement.transform.baseVal.getItem(1).setScale(Ve,Ve))},Pe.prototype.manipulate=function(Te){Ye.prototype.manipulate.call(this,Te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Te.x-this.pointerDownPoint.x)>5||Math.abs(Te.y-this.pointerDownPoint.y)>5)},Pe.prototype.resize=function(Te){Ye.prototype.resize.call(this,Te),this.isMoved=!0,this.setSize(),this.sizeText()},Pe.prototype.setSize=function(){Ye.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Pe.prototype.pointerUp=function(Te){var Ve=this.state;Ve==="creating"&&(this._suppressMarkerCreateEvent=!0),Ye.prototype.pointerUp.call(this,Te),this.setSize(),(Ve==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Pe.prototype.showTextEditor=function(){var Te=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(Ve){Ve.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ve=Number.parseFloat(Te.textEditor.style.fontSize);Te.textEditor.clientWidth>=Number.parseInt(Te.textEditor.style.maxWidth)&&Ve>.9;)Ve-=.1,Te.textEditor.style.fontSize=Math.max(Ve,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ve){Ve.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ve){if(Ve.clipboardData){var Ze=Ve.clipboardData.getData("text"),Ee=window.getSelection();if(!Ee.rangeCount)return!1;Ee.deleteFromDocument(),Ee.getRangeAt(0).insertNode(document.createTextNode(Ze)),Ve.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Te.textEditDivClicked(Te.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Pe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Te=this.getTextScale(),Ve=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ze=this.textElement.getBBox(),Ee={x:Ze.width*Te,y:Ze.height*Te};Ve.x-=Ee.x/2,Ve.y-=Ee.y/2,this.textEditor.style.top=Ve.y+"px",this.textEditor.style.left=Ve.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ve.x+"px",this.textEditor.style.fontSize=Math.max(16*Te,12)+"px",this.textElement.style.display="none"}},Pe.prototype.textEditDivClicked=function(Te){this.text=Te.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Pe.prototype.select=function(){Ye.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Pe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ye.prototype.deselect.call(this)},Pe.prototype.dblClick=function(Te,Ve){Ye.prototype.dblClick.call(this,Te,Ve),this.showTextEditor()},Pe.prototype.setColor=function(Te){this.textElement&&me.setAttributes(this.textElement,[["fill",Te]]),this.color=Te,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Te)},Pe.prototype.setFont=function(Te){this.textElement&&me.setAttributes(this.textElement,[["font-family",Te]]),this.fontFamily=Te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Pe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Pe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ye.prototype.getState.call(this));return Te.typeName=Pe.typeName,Te},Pe.prototype.restoreState=function(Te){var Ve=Te;this.color=Ve.color,this.fontFamily=Ve.fontFamily,this.padding=Ve.padding,this.text=Ve.text,this.createVisual(),Ye.prototype.restoreState.call(this,Te),this.setSize()},Pe.prototype.scale=function(Te,Ve){Ye.prototype.scale.call(this,Te,Ve),this.setSize(),this.sizeText(),this.positionTextEditor()},Pe.typeName="TextMarker",Pe.title="Text marker",Pe.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>',Pe}(pe),ze=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.color="transparent",Ee.lineWidth=3,Ee.drawing=!1,Ee.pixelRatio=1,Ee.color=Ze.defaultColor,Ee.lineWidth=Ze.defaultStrokeWidth,Ee.pixelRatio=Ze.freehandPixelRatio,Ee.setColor=Ee.setColor.bind(Ee),Ee.addCanvas=Ee.addCanvas.bind(Ee),Ee.finishCreation=Ee.finishCreation.bind(Ee),Ee.setLineWidth=Ee.setLineWidth.bind(Ee),Ee.colorPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultColor),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.lineWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.lineWidthPanel.onWidthChanged=Ee.setLineWidth,Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return!(!Ye.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.drawingImage)},Pe.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var Te=me.createTransform();this.visual.transform.baseVal.appendItem(Te),this.addMarkerVisualToContainer(this.visual)},Pe.prototype.pointerDown=function(Te,Ve){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(Te.x,Te.y),this.drawing=!0):Ye.prototype.pointerDown.call(this,Te,Ve)},Pe.prototype.manipulate=function(Te){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Te.x,Te.y),this.canvasContext.stroke()):Ye.prototype.manipulate.call(this,Te)},Pe.prototype.resize=function(Te){Ye.prototype.resize.call(this,Te),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Pe.prototype.pointerUp=function(Te){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ye.prototype.pointerUp.call(this,Te)},Pe.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)},Pe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ye.prototype.select.call(this)},Pe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ye.prototype.deselect.call(this)},Pe.prototype.finishCreation=function(){for(var Te=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ve=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ze=Ve[0],Ee=Ve[1],He=Ve[2],We=Ve[3],Ke=!1,Je=0;Je<this.canvasElement.height;Je++)for(var dt=0;dt<this.canvasElement.width;dt++)Te.data[Je*this.canvasElement.width*4+4*dt+3]>0&&(Ke=!0,Je<Ee&&(Ee=Je),dt<Ze&&(Ze=dt),Je>We&&(We=Je),dt>He&&(He=dt));if(Ke){this.left=Ze/this.pixelRatio,this.top=Ee/this.pixelRatio,this.width=(He-Ze)/this.pixelRatio,this.height=(We-Ee)/this.pixelRatio;var Ct=document.createElement("canvas");Ct.width=He-Ze,Ct.height=We-Ee,Ct.getContext("2d").putImageData(this.canvasContext.getImageData(Ze,Ee,He-Ze,We-Ee),0,0),this.drawingImgUrl=Ct.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Pe.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Pe.prototype.setColor=function(Te){this.color=Te,this.colorChanged(Te)},Pe.prototype.setLineWidth=function(Te){this.lineWidth=Te},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Object.assign({drawingImgUrl:this.drawingImgUrl},Ye.prototype.getState.call(this));return Te.typeName=Pe.typeName,Te},Pe.prototype.restoreState=function(Te){this.createVisual(),Ye.prototype.restoreState.call(this,Te),this.drawingImgUrl=Te.drawingImgUrl,this.setDrawingImage()},Pe.prototype.scale=function(Te,Ve){Ye.prototype.scale.call(this,Te,Ve),this.setDrawingImage()},Pe.typeName="FreehandMarker",Pe.title="Freehand marker",Pe.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>',Pe}(pe),Xe=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ze||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ee.typeBoxes=[],Ee.currentType=Ve,Ee.setCurrentType=Ee.setCurrentType.bind(Ee),Ee}return Pt(Pe,Ye),Pe.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2";for(var Ze=function(We){var Ke="both";switch(We){case 0:Ke="both";break;case 1:Ke="start";break;case 2:Ke="end";break;case 3:Ke="none"}var Je=document.createElement("div");if(Je.style.display="flex",Je.style.flexGrow="2",Je.style.alignItems="center",Je.style.justifyContent="space-between",Je.style.padding="5px",Je.style.borderWidth="2px",Je.style.borderStyle="solid",Je.style.borderColor=Ke===Ee.currentType?Ee.uiStyleSettings.toolboxAccentColor:"transparent",Je.addEventListener("click",function(){Te.setCurrentType(Ke,Je)}),Ve.appendChild(Je),Ke==="both"||Ke==="start"){var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,dt.style.marginLeft="5px",Je.appendChild(dt)}var Ct=document.createElement("div");Ct.style.display="flex",Ct.style.alignItems="center",Ct.style.minHeight="20px",Ct.style.flexGrow="2";var ht=document.createElement("hr");if(ht.style.minWidth="20px",ht.style.border="0px",ht.style.borderTop="3px solid "+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee"),ht.style.flexGrow="2",Ct.appendChild(ht),Je.appendChild(Ct),Ke==="both"||Ke==="end"){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.minHeight="20px",Lt.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="`+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Lt.style.marginRight="5px",Je.appendChild(Lt)}Ee.typeBoxes.push(Je)},Ee=this,He=0;He<4;He++)Ze(He);return Ve},Pe.prototype.setCurrentType=function(Te,Ve){var Ze=this;this.currentType=Te,this.typeBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings!==void 0?Ze.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Pe}(z),Qe=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.arrowType="end",Ee.arrowBaseHeight=10,Ee.arrowBaseWidth=10,Ee.getArrowPoints=Ee.getArrowPoints.bind(Ee),Ee.setArrowType=Ee.setArrowType.bind(Ee),Ee.arrowTypePanel=new Xe("Arrow type","end"),Ee.arrowTypePanel.onArrowTypeChanged=Ee.setArrowType,Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return!(!Ye.prototype.ownsTarget.call(this,Te)&&Te!==this.arrow1&&Te!==this.arrow2)},Pe.prototype.getArrowPoints=function(Te,Ve){var Ze=this.arrowBaseWidth+2*this.strokeWidth,Ee=this.arrowBaseHeight+2*this.strokeWidth;return Te-Ze/2+","+(Ve+Ee/2)+" "+Te+","+(Ve-Ee/2)+" "+(Te+Ze/2)+","+(Ve+Ee/2)},Pe.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.state==="creating"&&this.createTips()},Pe.prototype.adjustVisual=function(){if(Ye.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Te=0;Math.abs(this.x1-this.x2)>.1&&(Te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ve=this.arrow1.transform.baseVal.getItem(0);Ve.setRotate(Te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ve,0);var Ze=this.arrow2.transform.baseVal.getItem(0);Ze.setRotate(Te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ze,0)}},Pe.prototype.setArrowType=function(Te){this.arrowType=Te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Object.assign({arrowType:this.arrowType},Ye.prototype.getState.call(this));return Te.typeName=Pe.typeName,Te},Pe.prototype.restoreState=function(Te){Ye.prototype.restoreState.call(this,Te);var Ve=Te;this.arrowType=Ve.arrowType,this.createTips(),this.adjustVisual()},Pe.typeName="ArrowMarker",Pe.title="Arrow marker",Pe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Pe}(Be),lt=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.fillColor=Ze.defaultFillColor,Ee.strokeWidth=0,Ee.fillPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultFillColor),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee}return Pt(Pe,Ye),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Ye.prototype.getState.call(this);return Te.typeName=Pe.typeName,Te},Pe.typeName="CoverMarker",Pe.title="Cover marker",Pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Pe}(be),ct=function(Ye){function Pe(Te,Ve,Ze,Ee){var He=Ye.call(this,Te,Ee||'<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 He.opacities=[],He.opacityBoxes=[],He.opacities=Ve,He.currentOpacity=Ze,He.setCurrentOpacity=He.setCurrentOpacity.bind(He),He}return Pt(Pe,Ye),Pe.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",Ve.style.justifyContent="space-between",this.opacities.forEach(function(Ze){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.alignItems="center",Ee.style.justifyContent="center",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=Ze===Te.currentOpacity?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Te.setCurrentOpacity(Ze,Ee)}),Ve.appendChild(Ee);var He=document.createElement("div");He.innerText=100*Ze+"%",Ee.appendChild(He),Te.opacityBoxes.push(Ee)}),Ve},Pe.prototype.setCurrentOpacity=function(Te,Ve){var Ze=this;this.currentOpacity=Te,this.opacityBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Pe}(z),vt=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.setOpacity=Ee.setOpacity.bind(Ee),Ee.fillColor=Ze.defaultHighlightColor,Ee.strokeWidth=0,Ee.opacity=Ze.defaultHighlightOpacity,Ee.fillPanel=new ee("Color",Ze.defaultColorSet,Ee.fillColor),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.opacityPanel=new ct("Opacity",Ze.defaultOpacitySteps,Ee.opacity),Ee.opacityPanel.onOpacityChanged=Ee.setOpacity,Ee}return Pt(Pe,Ye),Pe.prototype.setOpacity=function(Te){this.opacity=Te,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Ye.prototype.getState.call(this);return Te.typeName=Pe.typeName,Te},Pe.typeName="HighlightMarker",Pe.title="Highlight marker",Pe.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>',Pe}(lt),nt='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',it='<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>',pt=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.bgColor="transparent",Ee.tipPosition={x:0,y:0},Ee.tipBase1Position={x:0,y:0},Ee.tipBase2Position={x:0,y:0},Ee.tipMoving=!1,Ee.color=Ze.defaultStrokeColor,Ee.bgColor=Ze.defaultFillColor,Ee.fontFamily=Ze.defaultFontFamily,Ee.defaultSize={x:100,y:30},Ee.setBgColor=Ee.setBgColor.bind(Ee),Ee.getTipPoints=Ee.getTipPoints.bind(Ee),Ee.positionTip=Ee.positionTip.bind(Ee),Ee.setTipPoints=Ee.setTipPoints.bind(Ee),Ee.colorPanel=new ee("Text color",Ze.defaultColorSet,Ee.color,nt),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.bgColorPanel=new ee("Fill color",Ze.defaultColorSet,Ee.bgColor,it),Ee.bgColorPanel.onColorChanged=Ee.setBgColor,Ee.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee.tipGrip=new le,Ee.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),Ee.controlBox.appendChild(Ee.tipGrip.visual),Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return Ye.prototype.ownsTarget.call(this,Te)||this.tipGrip.ownsTarget(Te)||this.tip===Te},Pe.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Pe.prototype.pointerDown=function(Te,Ve){this.state==="new"&&Ye.prototype.pointerDown.call(this,Te,Ve),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ve)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ye.prototype.pointerDown.call(this,Te,Ve)},Pe.prototype.pointerUp=function(Te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ye.prototype.pointerUp.call(this,Te);else{var Ve=this.state==="creating";Ye.prototype.pointerUp.call(this,Te),this.setTipPoints(Ve),this.positionTip()}},Pe.prototype.manipulate=function(Te){if(this.tipMoving){var Ve=this.unrotatePoint(Te);this.tipPosition={x:Ve.x-this.manipulationStartLeft,y:Ve.y-this.manipulationStartTop},this.positionTip()}else Ye.prototype.manipulate.call(this,Te)},Pe.prototype.setBgColor=function(Te){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",Te]]),me.setAttributes(this.tip,[["fill",Te]])),this.bgColor=Te,this.fillColorChanged(Te)},Pe.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},Pe.prototype.setTipPoints=function(Te){Te===void 0&&(Te=!1);var Ve=Math.min(this.height/2,15),Ze=this.height/5;Te&&(this.tipPosition={x:Ve+Ze/2,y:this.height+20});var Ee=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ee<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:Ve,y:0},this.tipBase2Position={x:Ve+Ze,y:0}):(this.tipBase1Position={x:0,y:Ve},this.tipBase2Position={x:0,y:Ve+Ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ee<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ve-Ze,y:0},this.tipBase2Position={x:this.width-Ve,y:0}):(this.tipBase1Position={x:this.width,y:Ve},this.tipBase2Position={x:this.width,y:Ve+Ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ee<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ve-Ze,y:this.height},this.tipBase2Position={x:this.width-Ve,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ve-Ze},this.tipBase2Position={x:this.width,y:this.height-Ve}):Ee<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:Ve,y:this.height},this.tipBase2Position={x:Ve+Ze,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ve},this.tipBase2Position={x:0,y:this.height-Ve-Ze})},Pe.prototype.resize=function(Te){Ye.prototype.resize.call(this,Te),this.positionTip()},Pe.prototype.positionTip=function(){me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Te=this.tipGrip.visual.transform.baseVal.getItem(0);Te.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Te,0)},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Pe.prototype.select=function(){this.positionTip(),Ye.prototype.select.call(this)},Pe.prototype.getState=function(){var Te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ye.prototype.getState.call(this));return Te.typeName=Pe.typeName,Te},Pe.prototype.restoreState=function(Te){var Ve=Te;this.bgColor=Ve.bgColor,this.tipPosition=Ve.tipPosition,Ye.prototype.restoreState.call(this,Te),this.createTip(),this.setTipPoints()},Pe.prototype.scale=function(Te,Ve){Ye.prototype.scale.call(this,Te,Ve),this.tipPosition={x:this.tipPosition.x*Te,y:this.tipPosition.y*Ve},this.positionTip()},Pe.typeName="CalloutMarker",Pe.title="Callout marker",Pe.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>',Pe}(et),xt=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.opacity=1,Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.fillColor=Ze.defaultFillColor,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.setOpacity=Ee.setOpacity.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee.strokePanel=new ee("Line color",De(Ze.defaultColorSet,["transparent"]),Ze.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.fillPanel=new ee("Fill color",De(Ze.defaultColorSet,["transparent"]),Ee.fillColor,it),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee.opacityPanel=new ct("Opacity",Ze.defaultOpacitySteps,Ee.opacity),Ee.opacityPanel.onOpacityChanged=Ee.setOpacity,Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return!(!Ye.prototype.ownsTarget.call(this,Te)&&Te!==this.visual)},Pe.prototype.createVisual=function(){this.visual=me.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},Pe.prototype.manipulate=function(Te){Ye.prototype.manipulate.call(this,Te)},Pe.prototype.resize=function(Te){Ye.prototype.resize.call(this,Te),this.setSize()},Pe.prototype.setSize=function(){Ye.prototype.setSize.call(this),me.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Pe.prototype.pointerUp=function(Te){Ye.prototype.pointerUp.call(this,Te),this.setSize()},Pe.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},Pe.prototype.setFillColor=function(Te){this.fillColor=Te,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Te),this.stateChanged()},Pe.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pe.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pe.prototype.setOpacity=function(Te){this.opacity=Te,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ye.prototype.getState.call(this));return Te.typeName=Pe.typeName,Te},Pe.prototype.restoreState=function(Te){var Ve=Te;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.opacity=Ve.opacity,this.createVisual(),Ye.prototype.restoreState.call(this,Te),this.setSize()},Pe.prototype.scale=function(Te,Ve){Ye.prototype.scale.call(this,Te,Ve),this.setSize()},Pe.typeName="EllipseMarker",Pe.title="Ellipse marker",Pe.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>',Pe}(pe),yt=function(Ye){function Pe(Te,Ve,Ze){return Ye.call(this,Te,Ve,Ze)||this}return Pt(Pe,Ye),Object.defineProperty(Pe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Pe.prototype.ownsTarget=function(Te){return!(!Ye.prototype.ownsTarget.call(this,Te)&&Te!==this.tip1&&Te!==this.tip2)},Pe.prototype.createTips=function(){this.tip1=me.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.tip1),this.tip2=me.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.tip2)},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.state==="creating"&&this.createTips()},Pe.prototype.adjustVisual=function(){if(Ye.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(me.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ve=this.tip1.transform.baseVal.getItem(0);Ve.setRotate(Te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ve,0);var Ze=this.tip2.transform.baseVal.getItem(0);Ze.setRotate(Te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ze,0)}},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Ye.prototype.getState.call(this);return Te.typeName=Pe.typeName,Te},Pe.prototype.restoreState=function(Te){Ye.prototype.restoreState.call(this,Te),this.createTips(),this.adjustVisual()},Pe.typeName="MeasurementMarker",Pe.title="Measurement marker",Pe.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>',Pe}(Be),ft=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.strokePanel.colors=Ze.defaultColorSet,Ee.fillColor="transparent",Ee}return Pt(Pe,Ye),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Ye.prototype.getState.call(this);return Te.typeName=Pe.typeName,Te},Pe.typeName="EllipseFrameMarker",Pe.title="Ellipse frame marker",Pe.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>',Pe}(xt),gt=function(){function Ye(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ye.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ye.prototype.addUndoStep=function(Pe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Pe)||(this.undoStack.push(Pe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Pe)&&this.redoStack.splice(0,this.redoStack.length))},Ye.prototype.replaceLastUndoStep=function(Pe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Pe)},Ye.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ye.prototype.undo=function(){if(this.undoStack.length>1){var Pe=this.undoStack.pop();return Pe!==void 0&&this.redoStack.push(Pe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ye.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ye}(),mt=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.curveX=0,Ee.curveY=0,Ee.manipulationStartCurveX=0,Ee.manipulationStartCurveY=0,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.positionGrips=Ee.positionGrips.bind(Ee),Ee.addControlGrips=Ee.addControlGrips.bind(Ee),Ee.adjustVisual=Ee.adjustVisual.bind(Ee),Ee.setupControlBox=Ee.setupControlBox.bind(Ee),Ee.resize=Ee.resize.bind(Ee),Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return!(!Ye.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.selectorCurve&&Te!==this.visibleCurve&&!this.curveGrip.ownsTarget(Te))},Pe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Pe.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Te.x,this.curveY=Te.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ve)&&(this.activeGrip=this.curveGrip,this._state="resize")},Pe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pe.prototype.setupControlBox=function(){Ye.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Pe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ye.prototype.addControlGrips.call(this)},Pe.prototype.positionGrips=function(){Ye.prototype.positionGrips.call(this);var Te=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Te/2,this.curveY-Te/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()))},Pe.prototype.manipulate=function(Te){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Te.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Te.y-this.manipulationStartY),Ye.prototype.manipulate.call(this,Te)},Pe.prototype.resize=function(Te){this.activeGrip===this.curveGrip&&(this.curveX=Te.x,this.curveY=Te.y),Ye.prototype.resize.call(this,Te),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Pe.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.adjustVisual(),this.colorChanged(Te)},Pe.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.adjustVisual()},Pe.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.adjustVisual()},Pe.prototype.scale=function(Te,Ve){this.curveX=this.curveX*Te,this.curveY=this.curveY*Ve,Ye.prototype.scale.call(this,Te,Ve)},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ye.prototype.getState.call(this));return Te.typeName=Pe.typeName,Te},Pe.prototype.restoreState=function(Te){Ye.prototype.restoreState.call(this,Te);var Ve=Te;this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.curveX=Ve.curveX,this.curveY=Ve.curveY,this.createVisual(),this.adjustVisual()},Pe.typeName="CurveMarker",Pe.title="Curve marker",Pe.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>',Pe}(Ae),Nt=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,Ve,Ze)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.textColor="transparent",Ee.fontSize="1rem",Ee.isMoved=!1,Ee.captionText="Caption",Ee.PADDING=5,Ee.captionBoxWidth=0,Ee.captionBoxHeight=0,Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.fillColor=Ze.defaultFillColor,Ee.textColor=Ze.defaultStrokeColor,Ee.fontFamily=Ze.defaultFontFamily,Ee.fontSize=Ze.defaultCaptionFontSize,Ee.captionText=Ze.defaultCaptionText,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee.sizeCaption=Ee.sizeCaption.bind(Ee),Ee.setCaptionText=Ee.setCaptionText.bind(Ee),Ee.showTextEditor=Ee.showTextEditor.bind(Ee),Ee.positionTextEditor=Ee.positionTextEditor.bind(Ee),Ee.finishTextEditing=Ee.finishTextEditing.bind(Ee),Ee.setFont=Ee.setFont.bind(Ee),Ee.setTextColor=Ee.setTextColor.bind(Ee),Ee.strokePanel=new ee("Line color",De(Ze.defaultColorSet,["transparent"]),Ee.strokeColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.fillPanel=new ee("Fill color",De(Ze.defaultColorSet,["transparent"]),Ee.fillColor,it),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee.textColorPanel=new ee("Text color",Ze.defaultColorSet,Ee.textColor,nt),Ee.textColorPanel.onColorChanged=Ee.setTextColor,Ee}return Pt(Pe,Ye),Pe.prototype.ownsTarget=function(Te){return!(!Ye.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.frame&&Te!==this.captionBg&&Te!==this.captionElement)},Pe.prototype.createVisual=function(){this.visual=me.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=me.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=me.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=me.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Pe.prototype.setCaptionText=function(Te){this.captionText=Te,this.captionElement.textContent=this.captionText,this.sizeCaption()},Pe.prototype.pointerDown=function(Te,Ve){Ye.prototype.pointerDown.call(this,Te,Ve),this.isMoved=!1,this.pointerDownPoint=Te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},Pe.prototype.manipulate=function(Te){Ye.prototype.manipulate.call(this,Te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Te.x-this.pointerDownPoint.x)>5||Math.abs(Te.y-this.pointerDownPoint.y)>5)},Pe.prototype.resize=function(Te){Ye.prototype.resize.call(this,Te),this.setSize()},Pe.prototype.sizeCaption=function(){var Te=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Te.width+2*this.PADDING,this.captionBoxHeight=Te.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),me.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),me.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Pe.prototype.showTextEditor=function(){var Te=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(Ve){Ve.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ve){Ve.key==="Enter"&&Te.finishTextEditing(Te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ve){Ve.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Te.finishTextEditing(Te.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Te.finishTextEditing(Te.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Pe.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"))},Pe.prototype.finishTextEditing=function(Te){this.setCaptionText(Te.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Pe.prototype.setFont=function(Te){this.captionElement&&me.setAttributes(this.captionElement,[["font-family",Te]]),this.fontFamily=Te,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Pe.prototype.setTextColor=function(Te){this.captionElement&&me.setAttributes(this.captionElement,[["fill",Te]]),this.textColor=Te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Pe.prototype.setSize=function(){Ye.prototype.setSize.call(this),me.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Pe.prototype.pointerUp=function(Te){Ye.prototype.pointerUp.call(this,Te),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Pe.prototype.dblClick=function(Te,Ve){Ye.prototype.dblClick.call(this,Te,Ve),this.showTextEditor()},Pe.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.frame&&me.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},Pe.prototype.setFillColor=function(Te){this.fillColor=Te,this.captionBg&&me.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Te),this.stateChanged()},Pe.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.frame&&me.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pe.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.frame&&me.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Pe.prototype.getState=function(){var Te=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},Ye.prototype.getState.call(this));return Te.typeName=this.typeName,Te},Pe.prototype.restoreState=function(Te){var Ve=Te;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.textColor=Ve.textColor,this.fontFamily=Ve.fontFamily,this.captionText=Ve.captionText,this.fontSize=Ve.fontSize,this.createVisual(),Ye.prototype.restoreState.call(this,Te),this.setSize()},Pe.prototype.scale=function(Te,Ve){Ye.prototype.scale.call(this,Te,Ve),this.setSize()},Pe.typeName="CaptionFrameMarker",Pe.title="Caption frame marker",Pe.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>',Pe}(pe),Tt=function(){function Ye(Pe,Te){Te===void 0&&(Te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Pe,this.cancelable=Te}return Object.defineProperty(Ye.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ye.prototype.preventDefault=function(){this._defaultPrevented=!0},Ye}(),zt=function(Ye){function Pe(Te,Ve,Ze){var Ee=Ye.call(this,Te,!1)||this;return Ee.dataUrl=Ve,Ee.state=Ze,Ee}return Pt(Pe,Ye),Pe}(Tt),St=function(Ye){function Pe(Te,Ve,Ze){Ze===void 0&&(Ze=!1);var Ee=Ye.call(this,Te,Ze)||this;return Ee.marker=Ve,Ee}return Pt(Pe,Ye),Pe}(Tt),wt=function(){function Ye(){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 Ye.prototype.addEventListener=function(Pe,Te){this[Pe].push(Te)},Ye.prototype.removeEventListener=function(Pe,Te){var Ve=this[Pe].indexOf(Te);Ve>-1&&this[Pe].splice(Ve,1)},Ye}(),at=function(){function Ye(Pe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ke,this._isOpen=!1,this.undoRedoManager=new gt,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 wt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ye.instanceCounter++,this.styles=new Se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Pe,this.targetRoot=document.body,this.width=Pe.clientWidth,this.height=Pe.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(Ye.prototype,"ALL_MARKER_TYPES",{get:function(){return[je,ze,Qe,et,ft,xt,vt,pt,yt,lt,Be,mt,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[je,ze,Qe,et,xt,vt,pt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"BASIC_MARKER_TYPES",{get:function(){return[je,ze,Qe,et,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Pe){var Te=this;this._availableMarkerTypes.splice(0),Pe.forEach(function(Ve){if(typeof Ve=="string"){var Ze=Te.ALL_MARKER_TYPES.find(function(Ee){return Ee.typeName===Ve});Ze!==void 0&&Te._availableMarkerTypes.push(Ze)}else Te._availableMarkerTypes.push(Ve)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Pe){this._zoomLevel=Pe,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(Ye.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ye.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ye.prototype.show=function(){var Pe=this;this.styles.styleSheetRoot===void 0&&Le.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Le.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Te){return Te(new Tt(Pe))})},Ye.prototype.render=function(){return oe(this,void 0,void 0,function(){var Pe;return Ge(this,function(Te){switch(Te.label){case 0:return this.setCurrentMarker(),(Pe=new we).naturalSize=this.renderAtNaturalSize,Pe.imageType=this.renderImageType,Pe.imageQuality=this.renderImageQuality,Pe.markersOnly=this.renderMarkersOnly,Pe.width=this.renderWidth,Pe.height=this.renderHeight,[4,Pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Te.sent(),[4,Pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Te.sent()]}})})},Ye.prototype.close=function(Pe){var Te=this;if(Pe===void 0&&(Pe=!1),this.isOpen){var Ve=!1;Pe||this.eventListeners.beforeclose.forEach(function(Ze){var Ee=new Tt(Te,!0);Ze(Ee),Ee.defaultPrevented&&(Ve=!0)}),Ve||(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(Ze){return Ze(new Tt(Te))}),this.detachEvents(),this._isOpen=!1)}},Ye.prototype.addMarkersToToolbar=function(){for(var Pe,Te=[],Ve=0;Ve<arguments.length;Ve++)Te[Ve]=arguments[Ve];(Pe=this._availableMarkerTypes).push.apply(Pe,Te)},Ye.prototype.addRenderEventListener=function(Pe){this.addEventListener("render",function(Te){Pe(Te.dataUrl,Te.state)})},Ye.prototype.removeRenderEventListener=function(Pe){},Ye.prototype.addCloseEventListener=function(Pe){this.addEventListener("close",function(){Pe()})},Ye.prototype.removeCloseEventListener=function(Pe){},Ye.prototype.setupResizeObserver=function(){var Pe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Pe.resize(Pe.target.clientWidth,Pe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Pe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ye.prototype.onPopupTargetResize=function(){var Pe=1*this.target.clientWidth/this.target.clientHeight,Te=this.editorCanvas.clientWidth/Pe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Pe:this.editorCanvas.clientWidth,Ve=Te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Pe;this.resize(Te,Ve)},Ye.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ye.prototype.resize=function(Pe,Te){this._isResizing=!0;var Ve=Pe/this.imageWidth,Ze=Te/this.imageHeight;this.imageWidth=Math.round(Pe),this.imageHeight=Math.round(Te),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(Ve,Ze),this._isResizing=!1},Ye.prototype.scaleMarkers=function(Pe,Te){var Ve,Ze=this;this._currentMarker&&this._currentMarker instanceof et?this._currentMarker.scale(Pe,Te):(Ve=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ee){Ee!==Ze._currentMarker&&Ee.scale(Pe,Te)}),Ve!==void 0&&this.setCurrentMarker(Ve)},Ye.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"},Ye.prototype.setTopLeft=function(){var Pe=this.editingTarget.getBoundingClientRect(),Te=this.editorCanvas.getBoundingClientRect();this.left=Pe.left-Te.left,this.top=Pe.top-Te.top},Ye.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)},Ye.prototype.addDefs=function(){for(var Pe,Te=[],Ve=0;Ve<arguments.length;Ve++)Te[Ve]=arguments[Ve];this.defs=me.createDefs(),this.addDefsToImage(),(Pe=this.defs).append.apply(Pe,Te)},Ye.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ye.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)},Ye.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ye.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ye.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)},Ye.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ye.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)},Ye.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 Pe=document.createElement("a");Pe.href="https://markerjs.com/",Pe.target="_blank",Pe.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>',Pe.title="Powered by marker.js",Pe.style.display="grid",Pe.style.alignItems="center",Pe.style.justifyItems="center",Pe.style.padding="3px",Pe.style.width="20px",Pe.style.height="20px",this.logoUI.appendChild(Pe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ye.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")},Ye.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"},Ye.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ye.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 Pe=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=Pe+"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 xe(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ye.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ye.prototype.removeMarker=function(Pe){this.markerImage.removeChild(Pe.container),this.markers.indexOf(Pe)>-1&&this.markers.splice(this.markers.indexOf(Pe),1),Pe.dispose()},Ye.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())},Ye.prototype.toolbarButtonClicked=function(Pe,Te){if(Pe==="marker"&&Te!==void 0)this.createNewMarker(Te);else if(Pe==="action")switch(Te){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()}},Ye.prototype.deleteSelectedMarker=function(){var Pe=this;if(this._currentMarker!==void 0){var Te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ze){var Ee=new St(Pe,Pe._currentMarker,!0);Ze(Ee),Ee.defaultPrevented&&(Te=!0)}),!Te){var Ve=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(Ze){return Ze(new St(Pe,Ve))})}}},Ye.prototype.clear=function(){var Pe=this,Te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(He){var We=new St(Pe,void 0,!0);He(We),We.defaultPrevented&&(Te=!0)}),!Te)){this.setCurrentMarker();for(var Ve=function(He){var We=Ze.markers[He];Ze.setCurrentMarker(Ze.markers[He]),Ze._currentMarker.dispose(),Ze.markerImage.removeChild(Ze._currentMarker.container),Ze.markers.splice(Ze.markers.indexOf(Ze._currentMarker),1),Ze.eventListeners.markerdelete.forEach(function(Ke){return Ke(new St(Pe,We))})},Ze=this,Ee=this.markers.length-1;Ee>=0;Ee--)Ve(Ee);this.addUndoStep()}},Object.defineProperty(Ye.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ye.prototype.showNotesEditor=function(){var Pe;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=(Pe=this._currentMarker.notes)!==null&&Pe!==void 0?Pe:"",this.overlayContainer.appendChild(this.notesArea))},Ye.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)},Ye.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ye.prototype.addUndoStep=function(){var Pe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Te=this.getState(),Ve=this.undoRedoManager.getLastUndoStep();if(!Ve||Ve.width===Te.width&&Ve.height===Te.height){var Ze=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Te),Ze<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ee){return Ee(new Tt(Pe))})}else this.undoRedoManager.replaceLastUndoStep(Te),this.eventListeners.statechange.forEach(function(Ee){return Ee(new Tt(Pe))})}},Ye.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ye.prototype.undoStep=function(){var Pe=this,Te=this.undoRedoManager.undo();Te!==void 0&&(this.restoreState(Te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ve){return Ve(new Tt(Pe))}))},Ye.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ye.prototype.redoStep=function(){var Pe=this,Te=this.undoRedoManager.redo();Te!==void 0&&(this.restoreState(Te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ve){return Ve(new Tt(Pe))}))},Ye.prototype.stepZoom=function(){var Pe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Pe<this.zoomSteps.length-1?this.zoomSteps[Pe+1]:this.zoomSteps[0]},Ye.prototype.panTo=function(Pe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Pe.x,top:this.prevPanPoint.y-Pe.y}),this.prevPanPoint=Pe},Ye.prototype.startRenderAndClose=function(){return oe(this,void 0,void 0,function(){var Pe,Te,Ve=this;return Ge(this,function(Ze){switch(Ze.label){case 0:return[4,this.render()];case 1:return Pe=Ze.sent(),Te=this.getState(),this.eventListeners.render.forEach(function(Ee){return Ee(new zt(Ve,Pe,Te))}),this.close(!0),[2]}})})},Ye.prototype.getState=function(Pe){Pe===!0&&this.setCurrentMarker();var Te={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ve){return Te.markers.push(Ve.getState())}),Te},Ye.prototype.restoreState=function(Pe){var Te=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Pe.markers.forEach(function(Ve){var Ze=Te._availableMarkerTypes.find(function(He){return He.typeName===Ve.typeName});if(Ze!==void 0){var Ee=Te.addNewMarker(Ze);Ee.restoreState(Ve),Te.markers.push(Ee)}}),Pe.width&&Pe.height&&(Pe.width!==this.imageWidth||Pe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Pe.width,this.imageHeight/Pe.height),this.eventListeners.restorestate.forEach(function(Ve){return Ve(new Tt(Te))})},Ye.prototype.addNewMarker=function(Pe){var Te=me.createGroup();return this.markerImage.appendChild(Te),new Pe(Te,this.overlayContainer,this.settings)},Ye.prototype.createNewMarker=function(Pe){var Te,Ve=this;(Te=typeof Pe=="string"?this._availableMarkerTypes.find(function(Ze){return Ze.typeName===Pe}):Pe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Te),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(Te.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ze){return Ze(new St(Ve,Ve._currentMarker))}))},Ye.prototype.markerCreated=function(Pe){var Te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Pe),this.setCurrentMarker(Pe),Pe instanceof ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ve){return Ve(new St(Te,Te._currentMarker))})},Ye.prototype.colorChanged=function(Pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Pe,this.settings.defaultStrokeColor=Pe)},Ye.prototype.fillColorChanged=function(Pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Pe)},Ye.prototype.markerStateChanged=function(Pe){var Te=this;this.eventListeners.markerchange.forEach(function(Ve){return Ve(new St(Te,Pe))})},Ye.prototype.setCurrentMarker=function(Pe){var Te=this;this._currentMarker!==Pe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ve){return Ve(new St(Te,Te._currentMarker))})),this._currentMarker=Pe,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(Ve){return Ve(new St(Te,Te._currentMarker))}))},Ye.prototype.onPointerDown=function(Pe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Pe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Te=this.markers.find(function(Ve){return Ve.ownsTarget(Pe.target)});Te!==void 0?(this.setCurrentMarker(Te),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY),Pe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Pe.clientX,y:Pe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY))},Ye.prototype.onDblClick=function(Pe){if(this._isFocused||this.focus(),this.mode==="select"){var Te=this.markers.find(function(Ve){return Ve.ownsTarget(Pe.target)});Te!==void 0&&Te!==this._currentMarker&&this.setCurrentMarker(Te),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY),Pe.target):this.setCurrentMarker()}},Ye.prototype.onPointerMove=function(Pe){this.touchPoints!==1&&Pe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Pe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY)):this.zoomLevel>1&&this.panTo({x:Pe.clientX,y:Pe.clientY}))},Ye.prototype.onPointerUp=function(Pe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Pe.clientX,Pe.clientY)),this.isDragging=!1,this.addUndoStep()},Ye.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ye.prototype.onKeyUp=function(Pe){this._currentMarker===void 0||this.notesArea!==void 0||Pe.key!=="Delete"&&Pe.key!=="Backspace"||this.deleteSelectedMarker()},Ye.prototype.clientToLocalCoordinates=function(Pe,Te){var Ve=this.markerImage.getBoundingClientRect();return{x:(Pe-Ve.left)/this.zoomLevel,y:(Te-Ve.top)/this.zoomLevel}},Ye.prototype.onWindowResize=function(){this.positionUI()},Ye.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Pe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Pe+"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()},Ye.prototype.addLicenseKey=function(Pe){ce.addKey(Pe)},Ye.prototype.addEventListener=function(Pe,Te){this.eventListeners.addEventListener(Pe,Te)},Ye.prototype.removeEventListener=function(Pe,Te){this.eventListeners.removeEventListener(Pe,Te)},Ye.prototype.renderState=function(Pe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Pe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ye.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ye.prototype.focus=function(){var Pe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Te){return Te(new Tt(Pe))}))},Ye.prototype.blur=function(){var Pe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Te){return Te(new Tt(Pe))}))},Ye.instanceCounter=0,Ye}()},17115:function(Rn,wn,$e){"use strict";$e.d(wn,{ZP:function(){return ce}});var tt=$e(72071),Pt=$e(59301),oe=$e(47273),Ge=0,De=(0,oe.Z)();function me(){var we;return De?(we=Ge,Ge+=1):we="TEST_OR_SSR",we}function ce(we){var Le=Pt.useState(),Se=(0,tt.Z)(Le,2),Oe=Se[0],ve=Se[1];return Pt.useEffect(function(){ve("rc_select_".concat(me()))},[]),we||Oe}},77861:function(Rn,wn,$e){"use strict";$e.d(wn,{Ac:function(){return Lt},Xo:function(){return tr},Wx:function(){return Vn},ZP:function(){return Pn},lk:function(){return pe}});var tt=$e(96663),Pt=$e(19127),oe=$e(90493),Ge=$e(44127),De=$e(72071),me=$e(6620),ce=$e(20135),we=$e(18929),Le=$e(48736),Se=$e(59301),Oe=$e(92310),ve=$e.n(Oe),xe=$e(34280),fe=$e(49658),z=$e(10228),ee=$e(8654),ae=function(It){var fn=It.className,un=It.customizeIcon,Gn=It.customizeIconProps,Xn=It.onMouseDown,Ht=It.onClick,kn=It.children,Wn;return typeof un=="function"?Wn=un(Gn):Wn=un,Se.createElement("span",{className:fn,onMouseDown:function(on){on.preventDefault(),Xn&&Xn(on)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ht,"aria-hidden":!0},Wn!==void 0?Wn:Se.createElement("span",{className:ve()(fn.split(/\s+/).map(function(lr){return"".concat(lr,"-icon")}))},kn))},re=ae;function le($t,It,fn,un,Gn){var Xn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ht=arguments.length>6?arguments[6]:void 0,kn=arguments.length>7?arguments[7]:void 0,Wn=Se.useMemo(function(){if((0,ce.Z)(un)==="object")return un.clearIcon;if(Gn)return Gn},[un,Gn]),lr=Se.useMemo(function(){return!!(!Xn&&un&&(fn.length||Ht)&&!(kn==="combobox"&&Ht===""))},[un,Xn,fn.length,Ht,kn]);return{allowClear:lr,clearIcon:Se.createElement(re,{className:"".concat($t,"-clear"),onMouseDown:It,customizeIcon:Wn},"\xD7")}}var ue=Se.createContext(null);function pe(){return Se.useContext(ue)}function be(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,It=Se.useState(!1),fn=(0,De.Z)(It,2),un=fn[0],Gn=fn[1],Xn=Se.useRef(null),Ht=function(){window.clearTimeout(Xn.current)};Se.useEffect(function(){return Ht},[]);var kn=function(lr,on){Ht(),Xn.current=window.setTimeout(function(){Gn(lr),on&&on()},$t)};return[un,kn,Ht]}function Ce(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,It=Se.useRef(null),fn=Se.useRef(null);Se.useEffect(function(){return function(){window.clearTimeout(fn.current)}},[]);function un(Gn){(Gn||It.current===null)&&(It.current=Gn),window.clearTimeout(fn.current),fn.current=window.setTimeout(function(){It.current=null},$t)}return[function(){return It.current},un]}function Fe($t,It,fn,un){var Gn=Se.useRef(null);Gn.current={open:It,triggerOpen:fn,customizedTrigger:un},Se.useEffect(function(){function Xn(Ht){var kn;if(!((kn=Gn.current)!==null&&kn!==void 0&&kn.customizedTrigger)){var Wn=Ht.target;Wn.shadowRoot&&Ht.composed&&(Wn=Ht.composedPath()[0]||Wn),Gn.current.open&&$t().filter(function(lr){return lr}).every(function(lr){return!lr.contains(Wn)&&lr!==Wn})&&Gn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Xn),function(){return window.removeEventListener("mousedown",Xn)}},[])}var je=$e(26112),ke=$e(11780),Ae=function(It,fn){var un,Gn,Xn=It.prefixCls,Ht=It.id,kn=It.inputElement,Wn=It.disabled,lr=It.tabIndex,on=It.autoFocus,Mn=It.autoComplete,an=It.editable,Sn=It.activeDescendantId,gn=It.value,yn=It.maxLength,On=It.onKeyDown,Nn=It.onMouseDown,Fn=It.onChange,zn=It.onPaste,xr=It.onCompositionStart,mn=It.onCompositionEnd,Fr=It.open,Yr=It.attrs,Br=kn||Se.createElement("input",null),bn=Br,Jn=bn.ref,sr=bn.props,Sr=sr.onKeyDown,mr=sr.onChange,$r=sr.onMouseDown,ri=sr.onCompositionStart,Rr=sr.onCompositionEnd,br=sr.style;return(0,Le.Kp)(!("maxLength"in Br.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Br=Se.cloneElement(Br,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({type:"search"},sr),{},{id:Ht,ref:(0,ee.sQ)(fn,Jn),disabled:Wn,tabIndex:lr,autoComplete:Mn||"off",autoFocus:on,className:ve()("".concat(Xn,"-selection-search-input"),(un=Br)===null||un===void 0||(Gn=un.props)===null||Gn===void 0?void 0:Gn.className),role:"combobox","aria-label":"Search","aria-expanded":Fr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ht,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ht,"_list"),"aria-activedescendant":Fr?Sn:void 0},Yr),{},{value:an?gn:"",maxLength:yn,readOnly:!an,unselectable:an?null:"on",style:(0,Ge.Z)((0,Ge.Z)({},br),{},{opacity:an?null:0}),onKeyDown:function(vn){On(vn),Sr&&Sr(vn)},onMouseDown:function(vn){Nn(vn),$r&&$r(vn)},onChange:function(vn){Fn(vn),mr&&mr(vn)},onCompositionStart:function(vn){xr(vn),ri&&ri(vn)},onCompositionEnd:function(vn){mn(vn),Rr&&Rr(vn)},onPaste:zn})),Br},Be=Se.forwardRef(Ae);Be.displayName="Input";var _e=Be;function et($t){return Array.isArray($t)?$t:$t!==void 0?[$t]:[]}var ze=typeof window!="undefined"&&window.document&&window.document.documentElement,Xe=ze;function Qe($t){return $t!=null}function lt($t){return!$t&&$t!==0}function ct($t){return["string","number"].includes((0,ce.Z)($t))}function vt($t){var It=void 0;return $t&&(ct($t.title)?It=$t.title.toString():ct($t.label)&&(It=$t.label.toString())),It}function nt($t,It){Xe?Se.useLayoutEffect($t,It):Se.useEffect($t,It)}function it($t){var It;return(It=$t.key)!==null&&It!==void 0?It:$t.value}var pt=function(It){It.preventDefault(),It.stopPropagation()},xt=function(It){var fn=It.id,un=It.prefixCls,Gn=It.values,Xn=It.open,Ht=It.searchValue,kn=It.autoClearSearchValue,Wn=It.inputRef,lr=It.placeholder,on=It.disabled,Mn=It.mode,an=It.showSearch,Sn=It.autoFocus,gn=It.autoComplete,yn=It.activeDescendantId,On=It.tabIndex,Nn=It.removeIcon,Fn=It.maxTagCount,zn=It.maxTagTextLength,xr=It.maxTagPlaceholder,mn=xr===void 0?function(Fi){return"+ ".concat(Fi.length," ...")}:xr,Fr=It.tagRender,Yr=It.onToggleOpen,Br=It.onRemove,bn=It.onInputChange,Jn=It.onInputPaste,sr=It.onInputKeyDown,Sr=It.onInputMouseDown,mr=It.onInputCompositionStart,$r=It.onInputCompositionEnd,ri=Se.useRef(null),Rr=(0,Se.useState)(0),br=(0,De.Z)(Rr,2),ur=br[0],vn=br[1],cr=(0,Se.useState)(!1),xn=(0,De.Z)(cr,2),zr=xn[0],$i=xn[1],Mi="".concat(un,"-selection"),yo=Xn||Mn==="multiple"&&kn===!1||Mn==="tags"?Ht:"",no=Mn==="tags"||Mn==="multiple"&&kn===!1||an&&(Xn||zr);nt(function(){vn(ri.current.scrollWidth)},[yo]);function Wr(Fi,Ki,gi,oo,So){return Se.createElement("span",{className:ve()("".concat(Mi,"-item"),(0,oe.Z)({},"".concat(Mi,"-item-disabled"),gi)),title:vt(Fi)},Se.createElement("span",{className:"".concat(Mi,"-item-content")},Ki),oo&&Se.createElement(re,{className:"".concat(Mi,"-item-remove"),onMouseDown:pt,onClick:So,customizeIcon:Nn},"\xD7"))}function Hr(Fi,Ki,gi,oo,So){var Qr=function(Oi){pt(Oi),Yr(!Xn)};return Se.createElement("span",{onMouseDown:Qr},Fr({label:Ki,value:Fi,disabled:gi,closable:oo,onClose:So}))}function wi(Fi){var Ki=Fi.disabled,gi=Fi.label,oo=Fi.value,So=!on&&!Ki,Qr=gi;if(typeof zn=="number"&&(typeof gi=="string"||typeof gi=="number")){var ii=String(Qr);ii.length>zn&&(Qr="".concat(ii.slice(0,zn),"..."))}var Oi=function(co){co&&co.stopPropagation(),Br(Fi)};return typeof Fr=="function"?Hr(oo,Qr,Ki,So,Oi):Wr(Fi,Qr,Ki,So,Oi)}function vi(Fi){var Ki=typeof mn=="function"?mn(Fi):mn;return Wr({title:Ki},Ki,!1)}var fr=Se.createElement("div",{className:"".concat(Mi,"-search"),style:{width:ur},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},Se.createElement(_e,{ref:Wn,open:Xn,prefixCls:un,id:fn,inputElement:null,disabled:on,autoFocus:Sn,autoComplete:gn,editable:no,activeDescendantId:yn,value:yo,onKeyDown:sr,onMouseDown:Sr,onChange:bn,onPaste:Jn,onCompositionStart:mr,onCompositionEnd:$r,tabIndex:On,attrs:(0,je.Z)(It,!0)}),Se.createElement("span",{ref:ri,className:"".concat(Mi,"-search-mirror"),"aria-hidden":!0},yo,"\xA0")),kt=Se.createElement(ke.Z,{prefixCls:"".concat(Mi,"-overflow"),data:Gn,renderItem:wi,renderRest:vi,suffix:fr,itemKey:it,maxCount:Fn});return Se.createElement(Se.Fragment,null,kt,!Gn.length&&!yo&&Se.createElement("span",{className:"".concat(Mi,"-placeholder")},lr))},yt=xt,ft=function(It){var fn=It.inputElement,un=It.prefixCls,Gn=It.id,Xn=It.inputRef,Ht=It.disabled,kn=It.autoFocus,Wn=It.autoComplete,lr=It.activeDescendantId,on=It.mode,Mn=It.open,an=It.values,Sn=It.placeholder,gn=It.tabIndex,yn=It.showSearch,On=It.searchValue,Nn=It.activeValue,Fn=It.maxLength,zn=It.onInputKeyDown,xr=It.onInputMouseDown,mn=It.onInputChange,Fr=It.onInputPaste,Yr=It.onInputCompositionStart,Br=It.onInputCompositionEnd,bn=It.title,Jn=Se.useState(!1),sr=(0,De.Z)(Jn,2),Sr=sr[0],mr=sr[1],$r=on==="combobox",ri=$r||yn,Rr=an[0],br=On||"";$r&&Nn&&!Sr&&(br=Nn),Se.useEffect(function(){$r&&mr(!1)},[$r,Nn]);var ur=on!=="combobox"&&!Mn&&!yn?!1:!!br,vn=bn===void 0?vt(Rr):bn,cr=function(){if(Rr)return null;var zr=ur?{visibility:"hidden"}:void 0;return Se.createElement("span",{className:"".concat(un,"-selection-placeholder"),style:zr},Sn)};return Se.createElement(Se.Fragment,null,Se.createElement("span",{className:"".concat(un,"-selection-search")},Se.createElement(_e,{ref:Xn,prefixCls:un,id:Gn,open:Mn,inputElement:fn,disabled:Ht,autoFocus:kn,autoComplete:Wn,editable:ri,activeDescendantId:lr,value:br,onKeyDown:zn,onMouseDown:xr,onChange:function(zr){mr(!0),mn(zr)},onPaste:Fr,onCompositionStart:Yr,onCompositionEnd:Br,tabIndex:gn,attrs:(0,je.Z)(It,!0),maxLength:$r?Fn:void 0})),!$r&&Rr?Se.createElement("span",{className:"".concat(un,"-selection-item"),title:vn,style:ur?{visibility:"hidden"}:void 0},Rr.label):null,cr())},gt=ft;function mt($t){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($t)}var Nt=function(It,fn){var un=(0,Se.useRef)(null),Gn=(0,Se.useRef)(!1),Xn=It.prefixCls,Ht=It.open,kn=It.mode,Wn=It.showSearch,lr=It.tokenWithEnter,on=It.autoClearSearchValue,Mn=It.onSearch,an=It.onSearchSubmit,Sn=It.onToggleOpen,gn=It.onInputKeyDown,yn=It.domRef;Se.useImperativeHandle(fn,function(){return{focus:function(){un.current.focus()},blur:function(){un.current.blur()}}});var On=Ce(0),Nn=(0,De.Z)(On,2),Fn=Nn[0],zn=Nn[1],xr=function(br){var ur=br.which;(ur===z.Z.UP||ur===z.Z.DOWN)&&br.preventDefault(),gn&&gn(br),ur===z.Z.ENTER&&kn==="tags"&&!Gn.current&&!Ht&&(an==null||an(br.target.value)),mt(ur)&&Sn(!0)},mn=function(){zn(!0)},Fr=(0,Se.useRef)(null),Yr=function(br){Mn(br,!0,Gn.current)!==!1&&Sn(!0)},Br=function(){Gn.current=!0},bn=function(br){Gn.current=!1,kn!=="combobox"&&Yr(br.target.value)},Jn=function(br){var ur=br.target.value;if(lr&&Fr.current&&/[\r\n]/.test(Fr.current)){var vn=Fr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ur=ur.replace(vn,Fr.current)}Fr.current=null,Yr(ur)},sr=function(br){var ur=br.clipboardData,vn=ur.getData("text");Fr.current=vn},Sr=function(br){var ur=br.target;if(ur!==un.current){var vn=document.body.style.msTouchAction!==void 0;vn?setTimeout(function(){un.current.focus()}):un.current.focus()}},mr=function(br){var ur=Fn();br.target!==un.current&&!ur&&kn!=="combobox"&&br.preventDefault(),(kn!=="combobox"&&(!Wn||!ur)||!Ht)&&(Ht&&on!==!1&&Mn("",!0,!1),Sn())},$r={inputRef:un,onInputKeyDown:xr,onInputMouseDown:mn,onInputChange:Jn,onInputPaste:sr,onInputCompositionStart:Br,onInputCompositionEnd:bn},ri=kn==="multiple"||kn==="tags"?Se.createElement(yt,(0,tt.Z)({},It,$r)):Se.createElement(gt,(0,tt.Z)({},It,$r));return Se.createElement("div",{ref:yn,className:"".concat(Xn,"-selector"),onClick:Sr,onMouseDown:mr},ri)},Tt=Se.forwardRef(Nt);Tt.displayName="Selector";var zt=Tt,St=$e(35593),wt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],at=function(It){var fn=It===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"}}},Ye=function(It,fn){var un=It.prefixCls,Gn=It.disabled,Xn=It.visible,Ht=It.children,kn=It.popupElement,Wn=It.animation,lr=It.transitionName,on=It.dropdownStyle,Mn=It.dropdownClassName,an=It.direction,Sn=an===void 0?"ltr":an,gn=It.placement,yn=It.builtinPlacements,On=It.dropdownMatchSelectWidth,Nn=It.dropdownRender,Fn=It.dropdownAlign,zn=It.getPopupContainer,xr=It.empty,mn=It.getTriggerDOMNode,Fr=It.onPopupVisibleChange,Yr=It.onPopupMouseEnter,Br=(0,me.Z)(It,wt),bn="".concat(un,"-dropdown"),Jn=kn;Nn&&(Jn=Nn(kn));var sr=Se.useMemo(function(){return yn||at(On)},[yn,On]),Sr=Wn?"".concat(bn,"-").concat(Wn):lr,mr=typeof On=="number",$r=Se.useMemo(function(){return mr?null:On===!1?"minWidth":"width"},[On,mr]),ri=on;mr&&(ri=(0,Ge.Z)((0,Ge.Z)({},ri),{},{width:On}));var Rr=Se.useRef(null);return Se.useImperativeHandle(fn,function(){return{getPopupElement:function(){return Rr.current}}}),Se.createElement(St.Z,(0,tt.Z)({},Br,{showAction:Fr?["click"]:[],hideAction:Fr?["click"]:[],popupPlacement:gn||(Sn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:sr,prefixCls:bn,popupTransitionName:Sr,popup:Se.createElement("div",{ref:Rr,onMouseEnter:Yr},Jn),stretch:$r,popupAlign:Fn,popupVisible:Xn,getPopupContainer:zn,popupClassName:ve()(Mn,(0,oe.Z)({},"".concat(bn,"-empty"),xr)),popupStyle:ri,getTriggerDOMNode:mn,onPopupVisibleChange:Fr}),Ht)},Pe=Se.forwardRef(Ye);Pe.displayName="SelectTrigger";var Te=Pe,Ve=$e(4537);function Ze($t,It){var fn=$t.key,un;return"value"in $t&&(un=$t.value),fn!=null?fn:un!==void 0?un:"rc-index-key-".concat(It)}function Ee($t,It){var fn=$t||{},un=fn.label,Gn=fn.value,Xn=fn.options,Ht=fn.groupLabel,kn=un||(It?"children":"label");return{label:kn,value:Gn||"value",options:Xn||"options",groupLabel:Ht||kn}}function He($t){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=It.fieldNames,un=It.childrenAsData,Gn=[],Xn=Ee(fn,!1),Ht=Xn.label,kn=Xn.value,Wn=Xn.options,lr=Xn.groupLabel;function on(Mn,an){Mn.forEach(function(Sn){if(an||!(Wn in Sn)){var gn=Sn[kn];Gn.push({key:Ze(Sn,Gn.length),groupOption:an,data:Sn,label:Sn[Ht],value:gn})}else{var yn=Sn[lr];yn===void 0&&un&&(yn=Sn.label),Gn.push({key:Ze(Sn,Gn.length),group:!0,data:Sn,label:yn}),on(Sn[Wn],!0)}})}return on($t,!1),Gn}function We($t){var It=(0,Ge.Z)({},$t);return"props"in It||Object.defineProperty(It,"props",{get:function(){return(0,Le.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),It}}),It}function Ke($t,It){if(!It||!It.length)return null;var fn=!1;function un(Xn,Ht){var kn=(0,Ve.Z)(Ht),Wn=kn[0],lr=kn.slice(1);if(!Wn)return[Xn];var on=Xn.split(Wn);return fn=fn||on.length>1,on.reduce(function(Mn,an){return[].concat((0,Pt.Z)(Mn),(0,Pt.Z)(un(an,lr)))},[]).filter(function(Mn){return Mn})}var Gn=un($t,It);return fn?Gn:null}var Je=["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"],dt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ct($t){return $t==="tags"||$t==="multiple"}var ht=Se.forwardRef(function($t,It){var fn,un,Gn=$t.id,Xn=$t.prefixCls,Ht=$t.className,kn=$t.showSearch,Wn=$t.tagRender,lr=$t.direction,on=$t.omitDomProps,Mn=$t.displayValues,an=$t.onDisplayValuesChange,Sn=$t.emptyOptions,gn=$t.notFoundContent,yn=gn===void 0?"Not Found":gn,On=$t.onClear,Nn=$t.mode,Fn=$t.disabled,zn=$t.loading,xr=$t.getInputElement,mn=$t.getRawInputElement,Fr=$t.open,Yr=$t.defaultOpen,Br=$t.onDropdownVisibleChange,bn=$t.activeValue,Jn=$t.onActiveValueChange,sr=$t.activeDescendantId,Sr=$t.searchValue,mr=$t.autoClearSearchValue,$r=$t.onSearch,ri=$t.onSearchSplit,Rr=$t.tokenSeparators,br=$t.allowClear,ur=$t.suffixIcon,vn=$t.clearIcon,cr=$t.OptionList,xn=$t.animation,zr=$t.transitionName,$i=$t.dropdownStyle,Mi=$t.dropdownClassName,yo=$t.dropdownMatchSelectWidth,no=$t.dropdownRender,Wr=$t.dropdownAlign,Hr=$t.placement,wi=$t.builtinPlacements,vi=$t.getPopupContainer,fr=$t.showAction,kt=fr===void 0?[]:fr,Fi=$t.onFocus,Ki=$t.onBlur,gi=$t.onKeyUp,oo=$t.onKeyDown,So=$t.onMouseDown,Qr=(0,me.Z)($t,Je),ii=Ct(Nn),Oi=(kn!==void 0?kn:ii)||Nn==="combobox",Pi=(0,Ge.Z)({},Qr);dt.forEach(function(to){delete Pi[to]}),on==null||on.forEach(function(to){delete Pi[to]});var co=Se.useState(!1),To=(0,De.Z)(co,2),Kr=To[0],Vr=To[1];Se.useEffect(function(){Vr((0,fe.Z)())},[]);var Yn=Se.useRef(null),ci=Se.useRef(null),ro=Se.useRef(null),Wo=Se.useRef(null),_o=Se.useRef(null),Xo=be(),Pa=(0,De.Z)(Xo,3),na=Pa[0],os=Pa[1],Da=Pa[2];Se.useImperativeHandle(It,function(){var to,Io;return{focus:(to=Wo.current)===null||to===void 0?void 0:to.focus,blur:(Io=Wo.current)===null||Io===void 0?void 0:Io.blur,scrollTo:function(Xa){var _a;return(_a=_o.current)===null||_a===void 0?void 0:_a.scrollTo(Xa)}}});var fs=Se.useMemo(function(){var to;if(Nn!=="combobox")return Sr;var Io=(to=Mn[0])===null||to===void 0?void 0:to.value;return typeof Io=="string"||typeof Io=="number"?String(Io):""},[Sr,Nn,Mn]),Ln=Nn==="combobox"&&typeof xr=="function"&&xr()||null,Fa=typeof mn=="function"&&mn(),rc=(0,ee.x1)(ci,Fa==null||(fn=Fa.props)===null||fn===void 0?void 0:fn.ref),el=Se.useState(!1),xo=(0,De.Z)(el,2),eo=xo[0],ga=xo[1];(0,xe.Z)(function(){ga(!0)},[]);var jo=(0,we.Z)(!1,{defaultValue:Yr,value:Fr}),Yi=(0,De.Z)(jo,2),No=Yi[0],xs=Yi[1],bi=eo?No:!1,so=!yn&&Sn;(Fn||so&&bi&&Nn==="combobox")&&(bi=!1);var io=so?!1:bi,Lr=Se.useCallback(function(to){var Io=to!==void 0?to:!bi;Fn||(xs(Io),bi!==Io&&(Br==null||Br(Io)))},[Fn,bi,xs,Br]),Ba=Se.useMemo(function(){return(Rr||[]).some(function(to){return[`
|
|
|
`,`\r
|
|
|
`].includes(to)})},[Rr]),Ra=function(Io,Es,Xa){var _a=!0,ca=Io;Jn==null||Jn(null);var Ca=Xa?null:Ke(Io,Rr);return Nn!=="combobox"&&Ca&&(ca="",ri==null||ri(Ca),Lr(!1),_a=!1),$r&&fs!==ca&&$r(ca,{source:Es?"typing":"effect"}),_a},Cs=function(Io){!Io||!Io.trim()||$r(Io,{source:"submit"})};Se.useEffect(function(){!bi&&!ii&&Nn!=="combobox"&&Ra("",!1,!1)},[bi]),Se.useEffect(function(){No&&Fn&&xs(!1),Fn&&os(!1)},[Fn]);var Il=Ce(),Ql=(0,De.Z)(Il,2),wr=Ql[0],aa=Ql[1],$a=function(Io){var Es=wr(),Xa=Io.which;if(Xa===z.Z.ENTER&&(Nn!=="combobox"&&Io.preventDefault(),bi||Lr(!0)),aa(!!fs),Xa===z.Z.BACKSPACE&&!Es&&ii&&!fs&&Mn.length){for(var _a=(0,Pt.Z)(Mn),ca=null,Ca=_a.length-1;Ca>=0;Ca-=1){var Ka=_a[Ca];if(!Ka.disabled){_a.splice(Ca,1),ca=Ka;break}}ca&&an(_a,{type:"remove",values:[ca]})}for(var za=arguments.length,_u=new Array(za>1?za-1:0),Rl=1;Rl<za;Rl++)_u[Rl-1]=arguments[Rl];if(bi&&_o.current){var Ma;(Ma=_o.current).onKeyDown.apply(Ma,[Io].concat(_u))}oo==null||oo.apply(void 0,[Io].concat(_u))},Pl=function(Io){for(var Es=arguments.length,Xa=new Array(Es>1?Es-1:0),_a=1;_a<Es;_a++)Xa[_a-1]=arguments[_a];if(bi&&_o.current){var ca;(ca=_o.current).onKeyUp.apply(ca,[Io].concat(Xa))}gi==null||gi.apply(void 0,[Io].concat(Xa))},Dl=function(Io){var Es=Mn.filter(function(Xa){return Xa!==Io});an(Es,{type:"remove",values:[Io]})},Fl=Se.useRef(!1),Bi=function(){os(!0),Fn||(Fi&&!Fl.current&&Fi.apply(void 0,arguments),kt.includes("focus")&&Lr(!0)),Fl.current=!0},mc=function(){os(!1,function(){Fl.current=!1,Lr(!1)}),!Fn&&(fs&&(Nn==="tags"?$r(fs,{source:"submit"}):Nn==="multiple"&&$r("",{source:"blur"})),Ki&&Ki.apply(void 0,arguments))},tl=[];Se.useEffect(function(){return function(){tl.forEach(function(to){return clearTimeout(to)}),tl.splice(0,tl.length)}},[]);var nl=function(Io){var Es,Xa=Io.target,_a=(Es=ro.current)===null||Es===void 0?void 0:Es.getPopupElement();if(_a&&_a.contains(Xa)){var ca=setTimeout(function(){var _u=tl.indexOf(ca);if(_u!==-1&&tl.splice(_u,1),Da(),!Kr&&!_a.contains(document.activeElement)){var Rl;(Rl=Wo.current)===null||Rl===void 0||Rl.focus()}});tl.push(ca)}for(var Ca=arguments.length,Ka=new Array(Ca>1?Ca-1:0),za=1;za<Ca;za++)Ka[za-1]=arguments[za];So==null||So.apply(void 0,[Io].concat(Ka))},As=Se.useState({}),Cu=(0,De.Z)(As,2),Bu=Cu[1];function _s(){Bu({})}var dl;Fa&&(dl=function(Io){Lr(Io)}),Fe(function(){var to;return[Yn.current,(to=ro.current)===null||to===void 0?void 0:to.getPopupElement()]},io,Lr,!!Fa);var Hc=Se.useMemo(function(){return(0,Ge.Z)((0,Ge.Z)({},$t),{},{notFoundContent:yn,open:bi,triggerOpen:io,id:Gn,showSearch:Oi,multiple:ii,toggleOpen:Lr})},[$t,yn,io,bi,Gn,Oi,ii,Lr]),hh=!!ur||zn,Gc;hh&&(Gc=Se.createElement(re,{className:ve()("".concat(Xn,"-arrow"),(0,oe.Z)({},"".concat(Xn,"-arrow-loading"),zn)),customizeIcon:ur,customizeIconProps:{loading:zn,searchValue:fs,open:bi,focused:na,showSearch:Oi}}));var Wh=function(){var Io;On==null||On(),(Io=Wo.current)===null||Io===void 0||Io.focus(),an([],{type:"clear",values:Mn}),Ra("",!1,!1)},Wc=le(Xn,Wh,Mn,br,vn,Fn,fs,Nn),vc=Wc.allowClear,Ru=Wc.clearIcon,Bl=Se.createElement(cr,{ref:_o}),dh=ve()(Xn,Ht,(un={},(0,oe.Z)(un,"".concat(Xn,"-focused"),na),(0,oe.Z)(un,"".concat(Xn,"-multiple"),ii),(0,oe.Z)(un,"".concat(Xn,"-single"),!ii),(0,oe.Z)(un,"".concat(Xn,"-allow-clear"),br),(0,oe.Z)(un,"".concat(Xn,"-show-arrow"),hh),(0,oe.Z)(un,"".concat(Xn,"-disabled"),Fn),(0,oe.Z)(un,"".concat(Xn,"-loading"),zn),(0,oe.Z)(un,"".concat(Xn,"-open"),bi),(0,oe.Z)(un,"".concat(Xn,"-customize-input"),Ln),(0,oe.Z)(un,"".concat(Xn,"-show-search"),Oi),un)),Uc=Se.createElement(Te,{ref:ro,disabled:Fn,prefixCls:Xn,visible:io,popupElement:Bl,animation:xn,transitionName:zr,dropdownStyle:$i,dropdownClassName:Mi,direction:lr,dropdownMatchSelectWidth:yo,dropdownRender:no,dropdownAlign:Wr,placement:Hr,builtinPlacements:wi,getPopupContainer:vi,empty:Sn,getTriggerDOMNode:function(){return ci.current},onPopupVisibleChange:dl,onPopupMouseEnter:_s},Fa?Se.cloneElement(Fa,{ref:rc}):Se.createElement(zt,(0,tt.Z)({},$t,{domRef:ci,prefixCls:Xn,inputElement:Ln,ref:Wo,id:Gn,showSearch:Oi,autoClearSearchValue:mr,mode:Nn,activeDescendantId:sr,tagRender:Wn,values:Mn,open:bi,onToggleOpen:Lr,activeValue:bn,searchValue:fs,onSearch:Ra,onSearchSubmit:Cs,onRemove:Dl,tokenWithEnter:Ba}))),yc;return Fa?yc=Uc:yc=Se.createElement("div",(0,tt.Z)({className:dh},Pi,{ref:Yn,onMouseDown:nl,onKeyDown:$a,onKeyUp:Pl,onFocus:Bi,onBlur:mc}),na&&!bi&&Se.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Mn.map(function(to){var Io=to.label,Es=to.value;return["number","string"].includes((0,ce.Z)(Io))?Io:Es}).join(", "))),Uc,Gc,vc&&Ru),Se.createElement(ue.Provider,{value:Hc},yc)}),Lt=ht,en=function($t,It){var fn=Se.useRef({values:new Map,options:new Map}),un=Se.useMemo(function(){var Xn=fn.current,Ht=Xn.values,kn=Xn.options,Wn=$t.map(function(Mn){if(Mn.label===void 0){var an;return(0,Ge.Z)((0,Ge.Z)({},Mn),{},{label:(an=Ht.get(Mn.value))===null||an===void 0?void 0:an.label})}return Mn}),lr=new Map,on=new Map;return Wn.forEach(function(Mn){lr.set(Mn.value,Mn),on.set(Mn.value,It.get(Mn.value)||kn.get(Mn.value))}),fn.current.values=lr,fn.current.options=on,Wn},[$t,It]),Gn=Se.useCallback(function(Xn){return It.get(Xn)||fn.current.options.get(Xn)},[It]);return[un,Gn]};function Vt($t,It){return et($t).join("").toUpperCase().includes(It)}var Kt=function($t,It,fn,un,Gn){return Se.useMemo(function(){if(!fn||un===!1)return $t;var Xn=It.options,Ht=It.label,kn=It.value,Wn=[],lr=typeof un=="function",on=fn.toUpperCase(),Mn=lr?un:function(Sn,gn){return Gn?Vt(gn[Gn],on):gn[Xn]?Vt(gn[Ht!=="children"?Ht:"label"],on):Vt(gn[kn],on)},an=lr?function(Sn){return We(Sn)}:function(Sn){return Sn};return $t.forEach(function(Sn){if(Sn[Xn]){var gn=Mn(fn,an(Sn));if(gn)Wn.push(Sn);else{var yn=Sn[Xn].filter(function(On){return Mn(fn,an(On))});yn.length&&Wn.push((0,Ge.Z)((0,Ge.Z)({},Sn),{},(0,oe.Z)({},Xn,yn)))}return}Mn(fn,an(Sn))&&Wn.push(Sn)}),Wn},[$t,un,Gn,fn,It])},Ut=$e(17115),rn=$e(11592),Ft=["children","value"],Xt=["children"];function tn($t){var It=$t,fn=It.key,un=It.props,Gn=un.children,Xn=un.value,Ht=(0,me.Z)(un,Ft);return(0,Ge.Z)({key:fn,value:Xn!==void 0?Xn:fn,children:Gn},Ht)}function dn($t){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,rn.Z)($t).map(function(fn,un){if(!Se.isValidElement(fn)||!fn.type)return null;var Gn=fn,Xn=Gn.type.isSelectOptGroup,Ht=Gn.key,kn=Gn.props,Wn=kn.children,lr=(0,me.Z)(kn,Xt);return It||!Xn?tn(fn):(0,Ge.Z)((0,Ge.Z)({key:"__RC_SELECT_GRP__".concat(Ht===null?un:Ht,"__"),label:Ht},lr),{},{options:dn(Wn)})}).filter(function(fn){return fn})}function En($t,It,fn,un,Gn){return Se.useMemo(function(){var Xn=$t,Ht=!$t;Ht&&(Xn=dn(It));var kn=new Map,Wn=new Map,lr=function(an,Sn,gn){gn&&typeof gn=="string"&&an.set(Sn[gn],Sn)};function on(Mn){for(var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sn=0;Sn<Mn.length;Sn+=1){var gn=Mn[Sn];!gn[fn.options]||an?(kn.set(gn[fn.value],gn),lr(Wn,gn,fn.label),lr(Wn,gn,un),lr(Wn,gn,Gn)):on(gn[fn.options],!0)}}return on(Xn),{options:Xn,valueOptions:kn,labelOptions:Wn}},[$t,It,fn,un,Gn])}function An($t){var It=Se.useRef();It.current=$t;var fn=Se.useCallback(function(){return It.current.apply(It,arguments)},[]);return fn}var ar=function(){return null};ar.isSelectOptGroup=!0;var tr=ar,Tr=function(){return null};Tr.isSelectOption=!0;var Vn=Tr,Or=$e(80547),Dr=$e(2738),Jr=$e(24916),ni=Se.createContext(null),Nr=ni;function di(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ir=["disabled","title","children","style","className"];function ot($t){return typeof $t=="string"||typeof $t=="number"}var Ci=function(It,fn){var un=pe(),Gn=un.prefixCls,Xn=un.id,Ht=un.open,kn=un.multiple,Wn=un.mode,lr=un.searchValue,on=un.toggleOpen,Mn=un.notFoundContent,an=un.onPopupScroll,Sn=Se.useContext(Nr),gn=Sn.flattenOptions,yn=Sn.onActiveValue,On=Sn.defaultActiveFirstOption,Nn=Sn.onSelect,Fn=Sn.menuItemSelectedIcon,zn=Sn.rawValues,xr=Sn.fieldNames,mn=Sn.virtual,Fr=Sn.direction,Yr=Sn.listHeight,Br=Sn.listItemHeight,bn="".concat(Gn,"-item"),Jn=(0,Or.Z)(function(){return gn},[Ht,gn],function(Wr,Hr){return Hr[0]&&Wr[1]!==Hr[1]}),sr=Se.useRef(null),Sr=function(Hr){Hr.preventDefault()},mr=function(Hr){sr.current&&sr.current.scrollTo(typeof Hr=="number"?{index:Hr}:Hr)},$r=function(Hr){for(var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,vi=Jn.length,fr=0;fr<vi;fr+=1){var kt=(Hr+fr*wi+vi)%vi,Fi=Jn[kt],Ki=Fi.group,gi=Fi.data;if(!Ki&&!gi.disabled)return kt}return-1},ri=Se.useState(function(){return $r(0)}),Rr=(0,De.Z)(ri,2),br=Rr[0],ur=Rr[1],vn=function(Hr){var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ur(Hr);var vi={source:wi?"keyboard":"mouse"},fr=Jn[Hr];if(!fr){yn(null,-1,vi);return}yn(fr.value,Hr,vi)};(0,Se.useEffect)(function(){vn(On!==!1?$r(0):-1)},[Jn.length,lr]);var cr=Se.useCallback(function(Wr){return zn.has(Wr)&&Wn!=="combobox"},[Wn,(0,Pt.Z)(zn).toString(),zn.size]);(0,Se.useEffect)(function(){var Wr=setTimeout(function(){if(!kn&&Ht&&zn.size===1){var wi=Array.from(zn)[0],vi=Jn.findIndex(function(fr){var kt=fr.data;return kt.value===wi});vi!==-1&&(vn(vi),mr(vi))}});if(Ht){var Hr;(Hr=sr.current)===null||Hr===void 0||Hr.scrollTo(void 0)}return function(){return clearTimeout(Wr)}},[Ht,lr,gn.length]);var xn=function(Hr){Hr!==void 0&&Nn(Hr,{selected:!zn.has(Hr)}),kn||on(!1)};if(Se.useImperativeHandle(fn,function(){return{onKeyDown:function(Hr){var wi=Hr.which,vi=Hr.ctrlKey;switch(wi){case z.Z.N:case z.Z.P:case z.Z.UP:case z.Z.DOWN:{var fr=0;if(wi===z.Z.UP?fr=-1:wi===z.Z.DOWN?fr=1:di()&&vi&&(wi===z.Z.N?fr=1:wi===z.Z.P&&(fr=-1)),fr!==0){var kt=$r(br+fr,fr);mr(kt),vn(kt,!0)}break}case z.Z.ENTER:{var Fi=Jn[br];Fi&&!Fi.data.disabled?xn(Fi.value):xn(void 0),Ht&&Hr.preventDefault();break}case z.Z.ESC:on(!1),Ht&&Hr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Hr){mr(Hr)}}}),Jn.length===0)return Se.createElement("div",{role:"listbox",id:"".concat(Xn,"_list"),className:"".concat(bn,"-empty"),onMouseDown:Sr},Mn);var zr=Object.keys(xr).map(function(Wr){return xr[Wr]}),$i=function(Hr){return Hr.label};function Mi(Wr,Hr){var wi=Wr.group;return{role:wi?"presentation":"option",id:"".concat(Xn,"_list_").concat(Hr)}}var yo=function(Hr){var wi=Jn[Hr];if(!wi)return null;var vi=wi.data||{},fr=vi.value,kt=wi.group,Fi=(0,je.Z)(vi,!0),Ki=$i(wi);return wi?Se.createElement("div",(0,tt.Z)({"aria-label":typeof Ki=="string"&&!kt?Ki:null},Fi,{key:Hr},Mi(wi,Hr),{"aria-selected":cr(fr)}),fr):null},no={role:"listbox",id:"".concat(Xn,"_list")};return Se.createElement(Se.Fragment,null,mn&&Se.createElement("div",(0,tt.Z)({},no,{style:{height:0,width:0,overflow:"hidden"}}),yo(br-1),yo(br),yo(br+1)),Se.createElement(Jr.Z,{itemKey:"key",ref:sr,data:Jn,height:Yr,itemHeight:Br,fullHeight:!1,onMouseDown:Sr,onScroll:an,virtual:mn,direction:Fr,innerProps:mn?null:no},function(Wr,Hr){var wi,vi=Wr.group,fr=Wr.groupOption,kt=Wr.data,Fi=Wr.label,Ki=Wr.value,gi=kt.key;if(vi){var oo,So=(oo=kt.title)!==null&&oo!==void 0?oo:ot(Fi)?Fi.toString():void 0;return Se.createElement("div",{className:ve()(bn,"".concat(bn,"-group")),title:So},Fi!==void 0?Fi:gi)}var Qr=kt.disabled,ii=kt.title,Oi=kt.children,Pi=kt.style,co=kt.className,To=(0,me.Z)(kt,Ir),Kr=(0,Dr.Z)(To,zr),Vr=cr(Ki),Yn="".concat(bn,"-option"),ci=ve()(bn,Yn,co,(wi={},(0,oe.Z)(wi,"".concat(Yn,"-grouped"),fr),(0,oe.Z)(wi,"".concat(Yn,"-active"),br===Hr&&!Qr),(0,oe.Z)(wi,"".concat(Yn,"-disabled"),Qr),(0,oe.Z)(wi,"".concat(Yn,"-selected"),Vr),wi)),ro=$i(Wr),Wo=!Fn||typeof Fn=="function"||Vr,_o=typeof ro=="number"?ro:ro||Ki,Xo=ot(_o)?_o.toString():void 0;return ii!==void 0&&(Xo=ii),Se.createElement("div",(0,tt.Z)({},(0,je.Z)(Kr),mn?{}:Mi(Wr,Hr),{"aria-selected":Vr,className:ci,title:Xo,onMouseMove:function(){br===Hr||Qr||vn(Hr)},onClick:function(){Qr||xn(Ki)},style:Pi}),Se.createElement("div",{className:"".concat(Yn,"-content")},_o),Se.isValidElement(Fn)||Vr,Wo&&Se.createElement(re,{className:"".concat(bn,"-option-state"),customizeIcon:Fn,customizeIconProps:{isSelected:Vr}},Vr?"\u2713":null))}))},xi=Se.forwardRef(Ci);xi.displayName="OptionList";var pr=xi;function Pr($t){var It=$t.mode,fn=$t.options,un=$t.children,Gn=$t.backfill,Xn=$t.allowClear,Ht=$t.placeholder,kn=$t.getInputElement,Wn=$t.showSearch,lr=$t.onSearch,on=$t.defaultOpen,Mn=$t.autoFocus,an=$t.labelInValue,Sn=$t.value,gn=$t.inputValue,yn=$t.optionLabelProp,On=isMultiple(It),Nn=Wn!==void 0?Wn:On||It==="combobox",Fn=fn||convertChildrenToData(un);if(warning(It!=="tags"||Fn.every(function(Fr){return!Fr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),It==="tags"||It==="combobox"){var zn=Fn.some(function(Fr){return Fr.options?Fr.options.some(function(Yr){return typeof("value"in Yr?Yr.value:Yr.key)=="number"}):typeof("value"in Fr?Fr.value:Fr.key)=="number"});warning(!zn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(It!=="combobox"||!yn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(It==="combobox"||!Gn,"`backfill` only works with `combobox` mode."),warning(It==="combobox"||!kn,"`getInputElement` only work with `combobox` mode."),noteOnce(It!=="combobox"||!kn||!Xn||!Ht,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),lr&&!Nn&&It!=="combobox"&&It!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!on||Mn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Sn!=null){var xr=toArray(Sn);warning(!an||xr.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(!On||Array.isArray(Sn),"`value` should be array when `mode` is `multiple` or `tags`")}if(un){var mn=null;toNodeArray(un).some(function(Fr){if(!React.isValidElement(Fr)||!Fr.type)return!1;var Yr=Fr,Br=Yr.type;if(Br.isSelectOption)return!1;if(Br.isSelectOptGroup){var bn=toNodeArray(Fr.props.children).every(function(Jn){return!React.isValidElement(Jn)||!Fr.type||Jn.type.isSelectOption?!0:(mn=Jn.type,!1)});return!bn}return mn=Br,!0}),mn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(mn.displayName||mn.name||mn,"`.")),warning(gn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ar($t,It){if($t){var fn=function un(Gn){for(var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=0;Ht<Gn.length;Ht++){var kn=Gn[Ht];if(kn[It==null?void 0:It.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Xn&&Array.isArray(kn[It==null?void 0:It.options])&&un(kn[It==null?void 0:It.options],!0))break}};fn($t)}}var Li=null,nr=["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"],or=["inputValue"];function qt($t){return!$t||(0,ce.Z)($t)!=="object"}var Jt=Se.forwardRef(function($t,It){var fn=$t.id,un=$t.mode,Gn=$t.prefixCls,Xn=Gn===void 0?"rc-select":Gn,Ht=$t.backfill,kn=$t.fieldNames,Wn=$t.inputValue,lr=$t.searchValue,on=$t.onSearch,Mn=$t.autoClearSearchValue,an=Mn===void 0?!0:Mn,Sn=$t.onSelect,gn=$t.onDeselect,yn=$t.dropdownMatchSelectWidth,On=yn===void 0?!0:yn,Nn=$t.filterOption,Fn=$t.filterSort,zn=$t.optionFilterProp,xr=$t.optionLabelProp,mn=$t.options,Fr=$t.children,Yr=$t.defaultActiveFirstOption,Br=$t.menuItemSelectedIcon,bn=$t.virtual,Jn=$t.direction,sr=$t.listHeight,Sr=sr===void 0?200:sr,mr=$t.listItemHeight,$r=mr===void 0?20:mr,ri=$t.value,Rr=$t.defaultValue,br=$t.labelInValue,ur=$t.onChange,vn=(0,me.Z)($t,nr),cr=(0,Ut.ZP)(fn),xn=Ct(un),zr=!!(!mn&&Fr),$i=Se.useMemo(function(){return Nn===void 0&&un==="combobox"?!1:Nn},[Nn,un]),Mi=Se.useMemo(function(){return Ee(kn,zr)},[JSON.stringify(kn),zr]),yo=(0,we.Z)("",{value:lr!==void 0?lr:Wn,postState:function(so){return so||""}}),no=(0,De.Z)(yo,2),Wr=no[0],Hr=no[1],wi=En(mn,Fr,Mi,zn,xr),vi=wi.valueOptions,fr=wi.labelOptions,kt=wi.options,Fi=Se.useCallback(function(bi){var so=et(bi);return so.map(function(io){var Lr,Ba,Ra,Cs,Il;if(qt(io))Lr=io;else{var Ql;Ra=io.key,Ba=io.label,Lr=(Ql=io.value)!==null&&Ql!==void 0?Ql:Ra}var wr=vi.get(Lr);if(wr){var aa;if(Ba===void 0&&(Ba=wr==null?void 0:wr[xr||Mi.label]),Ra===void 0&&(Ra=(aa=wr==null?void 0:wr.key)!==null&&aa!==void 0?aa:Lr),Cs=wr==null?void 0:wr.disabled,Il=wr==null?void 0:wr.title,0)var $a}return{label:Ba,value:Lr,key:Ra,disabled:Cs,title:Il}})},[Mi,xr,vi]),Ki=(0,we.Z)(Rr,{value:ri}),gi=(0,De.Z)(Ki,2),oo=gi[0],So=gi[1],Qr=Se.useMemo(function(){var bi,so=Fi(oo);return un==="combobox"&<((bi=so[0])===null||bi===void 0?void 0:bi.value)?[]:so},[oo,Fi,un]),ii=en(Qr,vi),Oi=(0,De.Z)(ii,2),Pi=Oi[0],co=Oi[1],To=Se.useMemo(function(){if(!un&&Pi.length===1){var bi=Pi[0];if(bi.value===null&&(bi.label===null||bi.label===void 0))return[]}return Pi.map(function(so){var io;return(0,Ge.Z)((0,Ge.Z)({},so),{},{label:(io=so.label)!==null&&io!==void 0?io:so.value})})},[un,Pi]),Kr=Se.useMemo(function(){return new Set(Pi.map(function(bi){return bi.value}))},[Pi]);Se.useEffect(function(){if(un==="combobox"){var bi,so=(bi=Pi[0])===null||bi===void 0?void 0:bi.value;Hr(Qe(so)?String(so):"")}},[Pi]);var Vr=An(function(bi,so){var io,Lr=so!=null?so:bi;return io={},(0,oe.Z)(io,Mi.value,bi),(0,oe.Z)(io,Mi.label,Lr),io}),Yn=Se.useMemo(function(){if(un!=="tags")return kt;var bi=(0,Pt.Z)(kt),so=function(Lr){return vi.has(Lr)};return(0,Pt.Z)(Pi).sort(function(io,Lr){return io.value<Lr.value?-1:1}).forEach(function(io){var Lr=io.value;so(Lr)||bi.push(Vr(Lr,io.label))}),bi},[Vr,kt,vi,Pi,un]),ci=Kt(Yn,Mi,Wr,$i,zn),ro=Se.useMemo(function(){return un!=="tags"||!Wr||ci.some(function(bi){return bi[zn||"value"]===Wr})||ci.some(function(bi){return bi[Mi.value]===Wr})?ci:[Vr(Wr)].concat((0,Pt.Z)(ci))},[Vr,zn,un,ci,Wr,Mi]),Wo=Se.useMemo(function(){return Fn?(0,Pt.Z)(ro).sort(function(bi,so){return Fn(bi,so)}):ro},[ro,Fn]),_o=Se.useMemo(function(){return He(Wo,{fieldNames:Mi,childrenAsData:zr})},[Wo,Mi,zr]),Xo=function(so){var io=Fi(so);if(So(io),ur&&(io.length!==Pi.length||io.some(function(Ra,Cs){var Il;return((Il=Pi[Cs])===null||Il===void 0?void 0:Il.value)!==(Ra==null?void 0:Ra.value)}))){var Lr=br?io:io.map(function(Ra){return Ra.value}),Ba=io.map(function(Ra){return We(co(Ra.value))});ur(xn?Lr:Lr[0],xn?Ba:Ba[0])}},Pa=Se.useState(null),na=(0,De.Z)(Pa,2),os=na[0],Da=na[1],fs=Se.useState(0),Ln=(0,De.Z)(fs,2),Fa=Ln[0],rc=Ln[1],el=Yr!==void 0?Yr:un!=="combobox",xo=Se.useCallback(function(bi,so){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lr=io.source,Ba=Lr===void 0?"keyboard":Lr;rc(so),Ht&&un==="combobox"&&bi!==null&&Ba==="keyboard"&&Da(String(bi))},[Ht,un]),eo=function(so,io,Lr){var Ba=function(){var Fl,Bi=co(so);return[br?{label:Bi==null?void 0:Bi[Mi.label],value:so,key:(Fl=Bi==null?void 0:Bi.key)!==null&&Fl!==void 0?Fl:so}:so,We(Bi)]};if(io&&Sn){var Ra=Ba(),Cs=(0,De.Z)(Ra,2),Il=Cs[0],Ql=Cs[1];Sn(Il,Ql)}else if(!io&&gn&&Lr!=="clear"){var wr=Ba(),aa=(0,De.Z)(wr,2),$a=aa[0],Pl=aa[1];gn($a,Pl)}},ga=An(function(bi,so){var io,Lr=xn?so.selected:!0;Lr?io=xn?[].concat((0,Pt.Z)(Pi),[bi]):[bi]:io=Pi.filter(function(Ba){return Ba.value!==bi}),Xo(io),eo(bi,Lr),un==="combobox"?Da(""):(!Ct||an)&&(Hr(""),Da(""))}),jo=function(so,io){Xo(so);var Lr=io.type,Ba=io.values;(Lr==="remove"||Lr==="clear")&&Ba.forEach(function(Ra){eo(Ra.value,!1,Lr)})},Yi=function(so,io){if(Hr(so),Da(null),io.source==="submit"){var Lr=(so||"").trim();if(Lr){var Ba=Array.from(new Set([].concat((0,Pt.Z)(Kr),[Lr])));Xo(Ba),eo(Lr,!0),Hr("")}return}io.source!=="blur"&&(un==="combobox"&&Xo(so),on==null||on(so))},No=function(so){var io=so;un!=="tags"&&(io=so.map(function(Ba){var Ra=fr.get(Ba);return Ra==null?void 0:Ra.value}).filter(function(Ba){return Ba!==void 0}));var Lr=Array.from(new Set([].concat((0,Pt.Z)(Kr),(0,Pt.Z)(io))));Xo(Lr),Lr.forEach(function(Ba){eo(Ba,!0)})},xs=Se.useMemo(function(){var bi=bn!==!1&&On!==!1;return(0,Ge.Z)((0,Ge.Z)({},wi),{},{flattenOptions:_o,onActiveValue:xo,defaultActiveFirstOption:el,onSelect:ga,menuItemSelectedIcon:Br,rawValues:Kr,fieldNames:Mi,virtual:bi,direction:Jn,listHeight:Sr,listItemHeight:$r,childrenAsData:zr})},[wi,_o,xo,el,ga,Br,Kr,Mi,bn,On,Sr,$r,zr]);return Se.createElement(Nr.Provider,{value:xs},Se.createElement(Lt,(0,tt.Z)({},vn,{id:cr,prefixCls:Xn,ref:It,omitDomProps:or,mode:un,displayValues:To,onDisplayValuesChange:jo,direction:Jn,searchValue:Wr,onSearch:Yi,autoClearSearchValue:an,onSearchSplit:No,dropdownMatchSelectWidth:On,OptionList:pr,emptyOptions:!_o.length,activeValue:os,activeDescendantId:"".concat(cr,"_list_").concat(Fa)})))}),Et=Jt;Et.Option=Vn,Et.OptGroup=tr;var ln=Et,Pn=ln},9296:function(Rn,wn,$e){"use strict";$e.r(wn),$e.d(wn,{ResizableTextArea:function(){return Be},default:function(){return lt}});var tt=$e(96663),Pt=$e(44127),oe=$e(90493),Ge=$e(20135),De=$e(72071),me=$e(6620),ce=$e(19127),we=$e(92310),Le=$e.n(we),Se=$e(93681),Oe=$e(5643),ve=$e(18929),xe=$e(59301),fe=$e(29301),z=$e(34280),ee=$e(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(ct){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=ct.getAttribute("id")||ct.getAttribute("data-reactid")||ct.getAttribute("name");if(vt&&le[nt])return le[nt];var it=window.getComputedStyle(ct),pt=it.getPropertyValue("box-sizing")||it.getPropertyValue("-moz-box-sizing")||it.getPropertyValue("-webkit-box-sizing"),xt=parseFloat(it.getPropertyValue("padding-bottom"))+parseFloat(it.getPropertyValue("padding-top")),yt=parseFloat(it.getPropertyValue("border-bottom-width"))+parseFloat(it.getPropertyValue("border-top-width")),ft=re.map(function(mt){return"".concat(mt,":").concat(it.getPropertyValue(mt))}).join(";"),gt={sizingStyle:ft,paddingSize:xt,borderSize:yt,boxSizing:pt};return vt&&nt&&(le[nt]=gt),gt}function be(ct){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,it=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)),ct.getAttribute("wrap")?ue.setAttribute("wrap",ct.getAttribute("wrap")):ue.removeAttribute("wrap");var pt=pe(ct,vt),xt=pt.paddingSize,yt=pt.borderSize,ft=pt.boxSizing,gt=pt.sizingStyle;ue.setAttribute("style","".concat(gt,";").concat(ae)),ue.value=ct.value||ct.placeholder||"";var mt=void 0,Nt=void 0,Tt,zt=ue.scrollHeight;if(ft==="border-box"?zt+=yt:ft==="content-box"&&(zt-=xt),nt!==null||it!==null){ue.value=" ";var St=ue.scrollHeight-xt;nt!==null&&(mt=St*nt,ft==="border-box"&&(mt=mt+xt+yt),zt=Math.max(mt,zt)),it!==null&&(Nt=St*it,ft==="border-box"&&(Nt=Nt+xt+yt),Tt=zt>Nt?"":"hidden",zt=Math.min(Nt,zt))}var wt={height:zt,overflowY:Tt,resize:"none"};return mt&&(wt.minHeight=mt),Nt&&(wt.maxHeight=Nt),wt}var Ce=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fe=0,je=1,ke=2,Ae=xe.forwardRef(function(ct,vt){var nt=ct,it=nt.prefixCls,pt=nt.onPressEnter,xt=nt.defaultValue,yt=nt.value,ft=nt.autoSize,gt=nt.onResize,mt=nt.className,Nt=nt.style,Tt=nt.disabled,zt=nt.onChange,St=nt.onInternalAutoSize,wt=(0,me.Z)(nt,Ce),at=(0,ve.Z)(xt,{value:yt,postState:function(tr){return tr!=null?tr:""}}),Ye=(0,De.Z)(at,2),Pe=Ye[0],Te=Ye[1],Ve=function(tr){Te(tr.target.value),zt==null||zt(tr)},Ze=xe.useRef();xe.useImperativeHandle(vt,function(){return{textArea:Ze.current}});var Ee=xe.useMemo(function(){return ft&&(0,Ge.Z)(ft)==="object"?[ft.minRows,ft.maxRows]:[]},[ft]),He=(0,De.Z)(Ee,2),We=He[0],Ke=He[1],Je=!!ft,dt=function(){try{if(document.activeElement===Ze.current){var tr=Ze.current,Tr=tr.selectionStart,Vn=tr.selectionEnd,Or=tr.scrollTop;Ze.current.setSelectionRange(Tr,Vn),Ze.current.scrollTop=Or}}catch(Dr){}},Ct=xe.useState(ke),ht=(0,De.Z)(Ct,2),Lt=ht[0],en=ht[1],Vt=xe.useState(),Kt=(0,De.Z)(Vt,2),Ut=Kt[0],rn=Kt[1],Ft=function(){en(Fe)};(0,z.Z)(function(){Je&&Ft()},[yt,We,Ke,Je]),(0,z.Z)(function(){if(Lt===Fe)en(je);else if(Lt===je){var ar=be(Ze.current,!1,We,Ke);en(ke),rn(ar)}else dt()},[Lt]);var Xt=xe.useRef(),tn=function(){ee.Z.cancel(Xt.current)},dn=function(tr){Lt===ke&&(gt==null||gt(tr),ft&&(tn(),Xt.current=(0,ee.Z)(function(){Ft()})))};xe.useEffect(function(){return tn},[]);var En=Je?Ut:null,An=(0,Pt.Z)((0,Pt.Z)({},Nt),En);return(Lt===Fe||Lt===je)&&(An.overflowY="hidden",An.overflowX="hidden"),xe.createElement(fe.Z,{onResize:dn,disabled:!(ft||gt)},xe.createElement("textarea",(0,tt.Z)({},wt,{ref:Ze,style:An,className:Le()(it,mt,(0,oe.Z)({},"".concat(it,"-disabled"),Tt)),disabled:Tt,value:Pe,onChange:Ve})))}),Be=Ae,_e=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function et(ct,vt){return(0,ce.Z)(ct||"").slice(0,vt).join("")}function ze(ct,vt,nt,it){var pt=nt;return ct?pt=et(nt,it):(0,ce.Z)(vt||"").length<nt.length&&(0,ce.Z)(nt||"").length>it&&(pt=vt),pt}var Xe=xe.forwardRef(function(ct,vt){var nt,it=ct.defaultValue,pt=ct.value,xt=ct.onFocus,yt=ct.onBlur,ft=ct.onChange,gt=ct.allowClear,mt=ct.maxLength,Nt=ct.onCompositionStart,Tt=ct.onCompositionEnd,zt=ct.suffix,St=ct.prefixCls,wt=St===void 0?"rc-textarea":St,at=ct.classes,Ye=ct.showCount,Pe=ct.className,Te=ct.style,Ve=ct.disabled,Ze=ct.hidden,Ee=ct.classNames,He=ct.styles,We=ct.onResize,Ke=(0,me.Z)(ct,_e),Je=(0,ve.Z)(it,{value:pt,defaultValue:it}),dt=(0,De.Z)(Je,2),Ct=dt[0],ht=dt[1],Lt=(0,xe.useRef)(null),en=xe.useState(!1),Vt=(0,De.Z)(en,2),Kt=Vt[0],Ut=Vt[1],rn=xe.useState(!1),Ft=(0,De.Z)(rn,2),Xt=Ft[0],tn=Ft[1],dn=xe.useRef(),En=xe.useRef(0),An=xe.useState(null),ar=(0,De.Z)(An,2),tr=ar[0],Tr=ar[1],Vn=function(){var qt;(qt=Lt.current)===null||qt===void 0||qt.textArea.focus()};(0,xe.useImperativeHandle)(vt,function(){return{resizableTextArea:Lt.current,focus:Vn,blur:function(){var qt;(qt=Lt.current)===null||qt===void 0||qt.textArea.blur()}}}),(0,xe.useEffect)(function(){Ut(function(or){return!Ve&&or})},[Ve]);var Or=Number(mt)>0,Dr=function(qt){tn(!0),dn.current=Ct,En.current=qt.currentTarget.selectionStart,Nt==null||Nt(qt)},Jr=function(qt){tn(!1);var Jt=qt.currentTarget.value;if(Or){var Et,ln=En.current>=mt+1||En.current===((Et=dn.current)===null||Et===void 0?void 0:Et.length);Jt=ze(ln,dn.current,Jt,mt)}Jt!==Ct&&(ht(Jt),(0,Oe.rJ)(qt.currentTarget,qt,ft,Jt)),Tt==null||Tt(qt)},ni=function(qt){var Jt=qt.target.value;if(!Xt&&Or){var Et=qt.target.selectionStart>=mt+1||qt.target.selectionStart===Jt.length||!qt.target.selectionStart;Jt=ze(Et,Ct,Jt,mt)}ht(Jt),(0,Oe.rJ)(qt.currentTarget,qt,ft,Jt)},Nr=function(qt){var Jt=Ke.onPressEnter,Et=Ke.onKeyDown;qt.key==="Enter"&&Jt&&Jt(qt),Et==null||Et(qt)},di=function(qt){Ut(!0),xt==null||xt(qt)},Ir=function(qt){Ut(!1),yt==null||yt(qt)},ot=function(qt){var Jt;ht(""),Vn(),(0,Oe.rJ)((Jt=Lt.current)===null||Jt===void 0?void 0:Jt.textArea,qt,ft)},Ci=(0,Oe.D7)(Ct);!Xt&&Or&&pt==null&&(Ci=et(Ci,mt));var xi=zt,pr;if(Ye){var Pr=(0,ce.Z)(Ci).length;(0,Ge.Z)(Ye)==="object"?pr=Ye.formatter({value:Ci,count:Pr,maxLength:mt}):pr="".concat(Pr).concat(Or?" / ".concat(mt):""),xi=xe.createElement(xe.Fragment,null,xi,xe.createElement("span",{className:Le()("".concat(wt,"-data-count"),Ee==null?void 0:Ee.count),style:He==null?void 0:He.count},pr))}var Ar=function(qt){var Jt;We==null||We(qt),(Jt=Lt.current)!==null&&Jt!==void 0&&Jt.textArea.style.height&&Tr(!0)},Li=!Ke.autoSize&&!Ye&&!gt,nr=xe.createElement(Se.BaseInput,{value:Ci,allowClear:gt,handleReset:ot,suffix:xi,prefixCls:wt,classes:{affixWrapper:Le()(at==null?void 0:at.affixWrapper,(nt={},(0,oe.Z)(nt,"".concat(wt,"-show-count"),Ye),(0,oe.Z)(nt,"".concat(wt,"-textarea-allow-clear"),gt),nt))},disabled:Ve,focused:Kt,className:Pe,style:(0,Pt.Z)((0,Pt.Z)({},Te),tr&&!Li?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pr=="string"?pr:void 0}},hidden:Ze,inputElement:xe.createElement(Be,(0,tt.Z)({},Ke,{onKeyDown:Nr,onChange:ni,onFocus:di,onBlur:Ir,onCompositionStart:Dr,onCompositionEnd:Jr,className:Ee==null?void 0:Ee.textarea,style:(0,Pt.Z)((0,Pt.Z)({},He==null?void 0:He.textarea),{},{resize:Te==null?void 0:Te.resize}),disabled:Ve,prefixCls:wt,onResize:Ar,ref:Lt}))});return nr}),Qe=Xe,lt=Qe},39417:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return je}});var tt=$e(96663),Pt=$e(90493),oe=$e(6620),Ge=$e(44127),De=$e(52884),me=$e(95727),ce=$e(89866),we=$e(65711),Le=$e(85745),Se=$e(92310),Oe=$e.n(Se),ve=$e(26112),xe=$e(59301),fe=$e(39378),z=function(Ae){for(var Be=Ae.prefixCls,_e=Ae.level,et=Ae.isStart,ze=Ae.isEnd,Xe="".concat(Be,"-indent-unit"),Qe=[],lt=0;lt<_e;lt+=1){var ct;Qe.push(xe.createElement("span",{key:lt,className:Oe()(Xe,(ct={},(0,Pt.Z)(ct,"".concat(Xe,"-start"),et[lt]),(0,Pt.Z)(ct,"".concat(Xe,"-end"),ze[lt]),ct))}))}return xe.createElement("span",{"aria-hidden":"true",className:"".concat(Be,"-indent")},Qe)},ee=xe.memo(z),ae=$e(67841),re=$e(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",be="---",Ce=function(ke){(0,we.Z)(Be,ke);var Ae=(0,Le.Z)(Be);function Be(){var _e;(0,De.Z)(this,Be);for(var et=arguments.length,ze=new Array(et),Xe=0;Xe<et;Xe++)ze[Xe]=arguments[Xe];return _e=Ae.call.apply(Ae,[this].concat(ze)),_e.state={dragNodeHighlight:!1},_e.selectHandle=void 0,_e.cacheIndent=void 0,_e.onSelectorClick=function(Qe){var lt=_e.props.context.onNodeClick;lt(Qe,(0,re.F)(_e.props)),_e.isSelectable()?_e.onSelect(Qe):_e.onCheck(Qe)},_e.onSelectorDoubleClick=function(Qe){var lt=_e.props.context.onNodeDoubleClick;lt(Qe,(0,re.F)(_e.props))},_e.onSelect=function(Qe){if(!_e.isDisabled()){var lt=_e.props.context.onNodeSelect;lt(Qe,(0,re.F)(_e.props))}},_e.onCheck=function(Qe){if(!_e.isDisabled()){var lt=_e.props,ct=lt.disableCheckbox,vt=lt.checked,nt=_e.props.context.onNodeCheck;if(!(!_e.isCheckable()||ct)){var it=!vt;nt(Qe,(0,re.F)(_e.props),it)}}},_e.onMouseEnter=function(Qe){var lt=_e.props.context.onNodeMouseEnter;lt(Qe,(0,re.F)(_e.props))},_e.onMouseLeave=function(Qe){var lt=_e.props.context.onNodeMouseLeave;lt(Qe,(0,re.F)(_e.props))},_e.onContextMenu=function(Qe){var lt=_e.props.context.onNodeContextMenu;lt(Qe,(0,re.F)(_e.props))},_e.onDragStart=function(Qe){var lt=_e.props.context.onNodeDragStart;Qe.stopPropagation(),_e.setState({dragNodeHighlight:!0}),lt(Qe,(0,ce.Z)(_e));try{Qe.dataTransfer.setData("text/plain","")}catch(ct){}},_e.onDragEnter=function(Qe){var lt=_e.props.context.onNodeDragEnter;Qe.preventDefault(),Qe.stopPropagation(),lt(Qe,(0,ce.Z)(_e))},_e.onDragOver=function(Qe){var lt=_e.props.context.onNodeDragOver;Qe.preventDefault(),Qe.stopPropagation(),lt(Qe,(0,ce.Z)(_e))},_e.onDragLeave=function(Qe){var lt=_e.props.context.onNodeDragLeave;Qe.stopPropagation(),lt(Qe,(0,ce.Z)(_e))},_e.onDragEnd=function(Qe){var lt=_e.props.context.onNodeDragEnd;Qe.stopPropagation(),_e.setState({dragNodeHighlight:!1}),lt(Qe,(0,ce.Z)(_e))},_e.onDrop=function(Qe){var lt=_e.props.context.onNodeDrop;Qe.preventDefault(),Qe.stopPropagation(),_e.setState({dragNodeHighlight:!1}),lt(Qe,(0,ce.Z)(_e))},_e.onExpand=function(Qe){var lt=_e.props,ct=lt.loading,vt=lt.context.onNodeExpand;ct||vt(Qe,(0,re.F)(_e.props))},_e.setSelectHandle=function(Qe){_e.selectHandle=Qe},_e.getNodeState=function(){var Qe=_e.props.expanded;return _e.isLeaf()?null:Qe?ue:pe},_e.hasChildren=function(){var Qe=_e.props.eventKey,lt=_e.props.context.keyEntities,ct=(0,ae.Z)(lt,Qe)||{},vt=ct.children;return!!(vt||[]).length},_e.isLeaf=function(){var Qe=_e.props,lt=Qe.isLeaf,ct=Qe.loaded,vt=_e.props.context.loadData,nt=_e.hasChildren();return lt===!1?!1:lt||!vt&&!nt||vt&&ct&&!nt},_e.isDisabled=function(){var Qe=_e.props.disabled,lt=_e.props.context.disabled;return!!(lt||Qe)},_e.isCheckable=function(){var Qe=_e.props.checkable,lt=_e.props.context.checkable;return!lt||Qe===!1?!1:lt},_e.syncLoadData=function(Qe){var lt=Qe.expanded,ct=Qe.loading,vt=Qe.loaded,nt=_e.props.context,it=nt.loadData,pt=nt.onNodeLoad;ct||it&<&&!_e.isLeaf()&&!_e.hasChildren()&&!vt&&pt((0,re.F)(_e.props))},_e.isDraggable=function(){var Qe=_e.props,lt=Qe.data,ct=Qe.context.draggable;return!!(ct&&(!ct.nodeDraggable||ct.nodeDraggable(lt)))},_e.renderDragHandler=function(){var Qe=_e.props.context,lt=Qe.draggable,ct=Qe.prefixCls;return lt!=null&<.icon?xe.createElement("span",{className:"".concat(ct,"-draggable-icon")},lt.icon):null},_e.renderSwitcherIconDom=function(Qe){var lt=_e.props.switcherIcon,ct=_e.props.context.switcherIcon,vt=lt||ct;return typeof vt=="function"?vt((0,Ge.Z)((0,Ge.Z)({},_e.props),{},{isLeaf:Qe})):vt},_e.renderSwitcher=function(){var Qe=_e.props.expanded,lt=_e.props.context.prefixCls;if(_e.isLeaf()){var ct=_e.renderSwitcherIconDom(!0);return ct!==!1?xe.createElement("span",{className:Oe()("".concat(lt,"-switcher"),"".concat(lt,"-switcher-noop"))},ct):null}var vt=Oe()("".concat(lt,"-switcher"),"".concat(lt,"-switcher_").concat(Qe?ue:pe)),nt=_e.renderSwitcherIconDom(!1);return nt!==!1?xe.createElement("span",{onClick:_e.onExpand,className:vt},nt):null},_e.renderCheckbox=function(){var Qe=_e.props,lt=Qe.checked,ct=Qe.halfChecked,vt=Qe.disableCheckbox,nt=_e.props.context.prefixCls,it=_e.isDisabled(),pt=_e.isCheckable();if(!pt)return null;var xt=typeof pt!="boolean"?pt:null;return xe.createElement("span",{className:Oe()("".concat(nt,"-checkbox"),lt&&"".concat(nt,"-checkbox-checked"),!lt&&ct&&"".concat(nt,"-checkbox-indeterminate"),(it||vt)&&"".concat(nt,"-checkbox-disabled")),onClick:_e.onCheck},xt)},_e.renderIcon=function(){var Qe=_e.props.loading,lt=_e.props.context.prefixCls;return xe.createElement("span",{className:Oe()("".concat(lt,"-iconEle"),"".concat(lt,"-icon__").concat(_e.getNodeState()||"docu"),Qe&&"".concat(lt,"-icon_loading"))})},_e.renderSelector=function(){var Qe=_e.state.dragNodeHighlight,lt=_e.props,ct=lt.title,vt=ct===void 0?be:ct,nt=lt.selected,it=lt.icon,pt=lt.loading,xt=lt.data,yt=_e.props.context,ft=yt.prefixCls,gt=yt.showIcon,mt=yt.icon,Nt=yt.loadData,Tt=yt.titleRender,zt=_e.isDisabled(),St="".concat(ft,"-node-content-wrapper"),wt;if(gt){var at=it||mt;wt=at?xe.createElement("span",{className:Oe()("".concat(ft,"-iconEle"),"".concat(ft,"-icon__customize"))},typeof at=="function"?at(_e.props):at):_e.renderIcon()}else Nt&&pt&&(wt=_e.renderIcon());var Ye;typeof vt=="function"?Ye=vt(xt):Tt?Ye=Tt(xt):Ye=vt;var Pe=xe.createElement("span",{className:"".concat(ft,"-title")},Ye);return xe.createElement("span",{ref:_e.setSelectHandle,title:typeof vt=="string"?vt:"",className:Oe()("".concat(St),"".concat(St,"-").concat(_e.getNodeState()||"normal"),!zt&&(nt||Qe)&&"".concat(ft,"-node-selected")),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onContextMenu:_e.onContextMenu,onClick:_e.onSelectorClick,onDoubleClick:_e.onSelectorDoubleClick},wt,Pe,_e.renderDropIndicator())},_e.renderDropIndicator=function(){var Qe=_e.props,lt=Qe.disabled,ct=Qe.eventKey,vt=_e.props.context,nt=vt.draggable,it=vt.dropLevelOffset,pt=vt.dropPosition,xt=vt.prefixCls,yt=vt.indent,ft=vt.dropIndicatorRender,gt=vt.dragOverNodeKey,mt=vt.direction,Nt=!!nt,Tt=!lt&&Nt&>===ct,zt=yt!=null?yt:_e.cacheIndent;return _e.cacheIndent=yt,Tt?ft({dropPosition:pt,dropLevelOffset:it,indent:zt,prefixCls:xt,direction:mt}):null},_e}return(0,me.Z)(Be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var et=this.props.selectable,ze=this.props.context.selectable;return typeof et=="boolean"?et:ze}},{key:"render",value:function(){var et,ze=this.props,Xe=ze.eventKey,Qe=ze.className,lt=ze.style,ct=ze.dragOver,vt=ze.dragOverGapTop,nt=ze.dragOverGapBottom,it=ze.isLeaf,pt=ze.isStart,xt=ze.isEnd,yt=ze.expanded,ft=ze.selected,gt=ze.checked,mt=ze.halfChecked,Nt=ze.loading,Tt=ze.domRef,zt=ze.active,St=ze.data,wt=ze.onMouseMove,at=ze.selectable,Ye=(0,oe.Z)(ze,le),Pe=this.props.context,Te=Pe.prefixCls,Ve=Pe.filterTreeNode,Ze=Pe.keyEntities,Ee=Pe.dropContainerKey,He=Pe.dropTargetKey,We=Pe.draggingNodeKey,Ke=this.isDisabled(),Je=(0,ve.Z)(Ye,{aria:!0,data:!0}),dt=(0,ae.Z)(Ze,Xe)||{},Ct=dt.level,ht=xt[xt.length-1],Lt=this.isDraggable(),en=!Ke&&Lt,Vt=We===Xe,Kt=at!==void 0?{"aria-selected":!!at}:void 0;return xe.createElement("div",(0,tt.Z)({ref:Tt,className:Oe()(Qe,"".concat(Te,"-treenode"),(et={},(0,Pt.Z)(et,"".concat(Te,"-treenode-disabled"),Ke),(0,Pt.Z)(et,"".concat(Te,"-treenode-switcher-").concat(yt?"open":"close"),!it),(0,Pt.Z)(et,"".concat(Te,"-treenode-checkbox-checked"),gt),(0,Pt.Z)(et,"".concat(Te,"-treenode-checkbox-indeterminate"),mt),(0,Pt.Z)(et,"".concat(Te,"-treenode-selected"),ft),(0,Pt.Z)(et,"".concat(Te,"-treenode-loading"),Nt),(0,Pt.Z)(et,"".concat(Te,"-treenode-active"),zt),(0,Pt.Z)(et,"".concat(Te,"-treenode-leaf-last"),ht),(0,Pt.Z)(et,"".concat(Te,"-treenode-draggable"),Lt),(0,Pt.Z)(et,"dragging",Vt),(0,Pt.Z)(et,"drop-target",He===Xe),(0,Pt.Z)(et,"drop-container",Ee===Xe),(0,Pt.Z)(et,"drag-over",!Ke&&ct),(0,Pt.Z)(et,"drag-over-gap-top",!Ke&&vt),(0,Pt.Z)(et,"drag-over-gap-bottom",!Ke&&nt),(0,Pt.Z)(et,"filter-node",Ve&&Ve((0,re.F)(this.props))),et)),style:lt,draggable:en,"aria-grabbed":Vt,onDragStart:en?this.onDragStart:void 0,onDragEnter:Lt?this.onDragEnter:void 0,onDragOver:Lt?this.onDragOver:void 0,onDragLeave:Lt?this.onDragLeave:void 0,onDrop:Lt?this.onDrop:void 0,onDragEnd:Lt?this.onDragEnd:void 0,onMouseMove:wt},Kt,Je),xe.createElement(ee,{prefixCls:Te,level:Ct,isStart:pt,isEnd:xt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Be}(xe.Component),Fe=function(Ae){return xe.createElement(fe.k.Consumer,null,function(Be){return xe.createElement(Ce,(0,tt.Z)({},Ae,{context:Be}))})};Fe.displayName="TreeNode",Fe.isTreeNode=1;var je=Fe},39378:function(Rn,wn,$e){"use strict";$e.d(wn,{k:function(){return Pt}});var tt=$e(59301),Pt=tt.createContext(null)},43858:function(Rn,wn,$e){"use strict";$e.d(wn,{O:function(){return je.Z},Z:function(){return Pe}});var tt=$e(96663),Pt=$e(90493),oe=$e(20135),Ge=$e(44127),De=$e(19127),me=$e(52884),ce=$e(95727),we=$e(89866),Le=$e(65711),Se=$e(85745),Oe=$e(92310),ve=$e.n(Oe),xe=$e(10228),fe=$e(26112),z=$e(48736),ee=$e(59301),ae=$e(39378);function re(Te){var Ve=Te.dropPosition,Ze=Te.dropLevelOffset,Ee=Te.indent,He={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ve){case-1:He.top=0,He.left=-Ze*Ee;break;case 1:He.bottom=0,He.left=-Ze*Ee;break;case 0:He.bottom=0,He.left=Ee;break}return ee.createElement("div",{style:He})}function le(Te){if(Te==null)throw new TypeError("Cannot destructure "+Te)}var ue=$e(72071),pe=$e(6620),be=$e(34280),Ce=$e(24916),Fe=$e(77900),je=$e(39417);function ke(Te,Ve){var Ze=ee.useState(!1),Ee=(0,ue.Z)(Ze,2),He=Ee[0],We=Ee[1];ee.useLayoutEffect(function(){if(He)return Te(),function(){Ve()}},[He]),ee.useLayoutEffect(function(){return We(!0),function(){We(!1)}},[])}var Ae=$e(71430),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_e=function(Ve,Ze){var Ee=Ve.className,He=Ve.style,We=Ve.motion,Ke=Ve.motionNodes,Je=Ve.motionType,dt=Ve.onMotionStart,Ct=Ve.onMotionEnd,ht=Ve.active,Lt=Ve.treeNodeRequiredProps,en=(0,pe.Z)(Ve,Be),Vt=ee.useState(!0),Kt=(0,ue.Z)(Vt,2),Ut=Kt[0],rn=Kt[1],Ft=ee.useContext(ae.k),Xt=Ft.prefixCls,tn=Ke&&Je!=="hide";(0,be.Z)(function(){Ke&&tn!==Ut&&rn(tn)},[Ke]);var dn=function(){Ke&&dt()},En=ee.useRef(!1),An=function(){Ke&&!En.current&&(En.current=!0,Ct())};ke(dn,An);var ar=function(Tr){tn===Tr&&An()};return Ke?ee.createElement(Fe.default,(0,tt.Z)({ref:Ze,visible:Ut},We,{motionAppear:Je==="show",onVisibleChanged:ar}),function(tr,Tr){var Vn=tr.className,Or=tr.style;return ee.createElement("div",{ref:Tr,className:ve()("".concat(Xt,"-treenode-motion"),Vn),style:Or},Ke.map(function(Dr){var Jr=(0,tt.Z)({},(le(Dr.data),Dr.data)),ni=Dr.title,Nr=Dr.key,di=Dr.isStart,Ir=Dr.isEnd;delete Jr.children;var ot=(0,Ae.H8)(Nr,Lt);return ee.createElement(je.Z,(0,tt.Z)({},Jr,ot,{title:ni,active:ht,data:Dr.data,key:Nr,isStart:di,isEnd:Ir}))}))}):ee.createElement(je.Z,(0,tt.Z)({domRef:Ze,className:Ee,style:He},en,{active:ht}))};_e.displayName="MotionTreeNode";var et=ee.forwardRef(_e),ze=et;function Xe(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ze=Te.length,Ee=Ve.length;if(Math.abs(Ze-Ee)!==1)return{add:!1,key:null};function He(We,Ke){var Je=new Map;We.forEach(function(Ct){Je.set(Ct,!0)});var dt=Ke.filter(function(Ct){return!Je.has(Ct)});return dt.length===1?dt[0]:null}return Ze<Ee?{add:!0,key:He(Te,Ve)}:{add:!1,key:He(Ve,Te)}}function Qe(Te,Ve,Ze){var Ee=Te.findIndex(function(Je){return Je.key===Ze}),He=Te[Ee+1],We=Ve.findIndex(function(Je){return Je.key===Ze});if(He){var Ke=Ve.findIndex(function(Je){return Je.key===He.key});return Ve.slice(We+1,Ke)}return Ve.slice(We+1)}var lt=["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"],ct={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},vt=function(){},nt="RC_TREE_MOTION_".concat(Math.random()),it={key:nt},pt={key:nt,level:0,index:0,pos:"0",node:it,nodes:[it]},xt={parent:null,children:[],pos:pt.pos,data:it,title:null,key:nt,isStart:[],isEnd:[]};function yt(Te,Ve,Ze,Ee){return Ve===!1||!Ze?Te:Te.slice(0,Math.ceil(Ze/Ee)+1)}function ft(Te){var Ve=Te.key,Ze=Te.pos;return(0,Ae.km)(Ve,Ze)}function gt(Te){for(var Ve=String(Te.data.key),Ze=Te;Ze.parent;)Ze=Ze.parent,Ve="".concat(Ze.data.key," > ").concat(Ve);return Ve}var mt=ee.forwardRef(function(Te,Ve){var Ze=Te.prefixCls,Ee=Te.data,He=Te.selectable,We=Te.checkable,Ke=Te.expandedKeys,Je=Te.selectedKeys,dt=Te.checkedKeys,Ct=Te.loadedKeys,ht=Te.loadingKeys,Lt=Te.halfCheckedKeys,en=Te.keyEntities,Vt=Te.disabled,Kt=Te.dragging,Ut=Te.dragOverNodeKey,rn=Te.dropPosition,Ft=Te.motion,Xt=Te.height,tn=Te.itemHeight,dn=Te.virtual,En=Te.focusable,An=Te.activeItem,ar=Te.focused,tr=Te.tabIndex,Tr=Te.onKeyDown,Vn=Te.onFocus,Or=Te.onBlur,Dr=Te.onActiveChange,Jr=Te.onListChangeStart,ni=Te.onListChangeEnd,Nr=(0,pe.Z)(Te,lt),di=ee.useRef(null),Ir=ee.useRef(null);ee.useImperativeHandle(Ve,function(){return{scrollTo:function(Mn){di.current.scrollTo(Mn)},getIndentWidth:function(){return Ir.current.offsetWidth}}});var ot=ee.useState(Ke),Ci=(0,ue.Z)(ot,2),xi=Ci[0],pr=Ci[1],Pr=ee.useState(Ee),Ar=(0,ue.Z)(Pr,2),Li=Ar[0],nr=Ar[1],or=ee.useState(Ee),qt=(0,ue.Z)(or,2),Jt=qt[0],Et=qt[1],ln=ee.useState([]),Pn=(0,ue.Z)(ln,2),$t=Pn[0],It=Pn[1],fn=ee.useState(null),un=(0,ue.Z)(fn,2),Gn=un[0],Xn=un[1],Ht=ee.useRef(Ee);Ht.current=Ee;function kn(){var on=Ht.current;nr(on),Et(on),It([]),Xn(null),ni()}(0,be.Z)(function(){pr(Ke);var on=Xe(xi,Ke);if(on.key!==null)if(on.add){var Mn=Li.findIndex(function(Nn){var Fn=Nn.key;return Fn===on.key}),an=yt(Qe(Li,Ee,on.key),dn,Xt,tn),Sn=Li.slice();Sn.splice(Mn+1,0,xt),Et(Sn),It(an),Xn("show")}else{var gn=Ee.findIndex(function(Nn){var Fn=Nn.key;return Fn===on.key}),yn=yt(Qe(Ee,Li,on.key),dn,Xt,tn),On=Ee.slice();On.splice(gn+1,0,xt),Et(On),It(yn),Xn("hide")}else Li!==Ee&&(nr(Ee),Et(Ee))},[Ke,Ee]),ee.useEffect(function(){Kt||kn()},[Kt]);var Wn=Ft?Jt:Ee,lr={expandedKeys:Ke,selectedKeys:Je,loadedKeys:Ct,loadingKeys:ht,checkedKeys:dt,halfCheckedKeys:Lt,dragOverNodeKey:Ut,dropPosition:rn,keyEntities:en};return ee.createElement(ee.Fragment,null,ar&&An&&ee.createElement("span",{style:ct,"aria-live":"assertive"},gt(An)),ee.createElement("div",null,ee.createElement("input",{style:ct,disabled:En===!1||Vt,tabIndex:En!==!1?tr:null,onKeyDown:Tr,onFocus:Vn,onBlur:Or,value:"",onChange:vt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Ze,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Ze,"-indent")},ee.createElement("div",{ref:Ir,className:"".concat(Ze,"-indent-unit")}))),ee.createElement(Ce.Z,(0,tt.Z)({},Nr,{data:Wn,itemKey:ft,height:Xt,fullHeight:!1,virtual:dn,itemHeight:tn,prefixCls:"".concat(Ze,"-list"),ref:di,onVisibleChange:function(Mn,an){var Sn=new Set(Mn),gn=an.filter(function(yn){return!Sn.has(yn)});gn.some(function(yn){return ft(yn)===nt})&&kn()}}),function(on){var Mn=on.pos,an=(0,tt.Z)({},(le(on.data),on.data)),Sn=on.title,gn=on.key,yn=on.isStart,On=on.isEnd,Nn=(0,Ae.km)(gn,Mn);delete an.key,delete an.children;var Fn=(0,Ae.H8)(Nn,lr);return ee.createElement(ze,(0,tt.Z)({},an,Fn,{title:Sn,active:!!An&&gn===An.key,pos:Mn,data:on.data,isStart:yn,isEnd:On,motion:Ft,motionNodes:gn===nt?$t:null,motionType:Gn,onMotionStart:Jr,onMotionEnd:kn,treeNodeRequiredProps:lr,onMouseMove:function(){Dr(null)}}))}))});mt.displayName="NodeList";var Nt=mt,Tt=$e(35654),zt=$e(90782),St=$e(67841),wt=10,at=function(Te){(0,Le.Z)(Ze,Te);var Ve=(0,Se.Z)(Ze);function Ze(){var Ee;(0,me.Z)(this,Ze);for(var He=arguments.length,We=new Array(He),Ke=0;Ke<He;Ke++)We[Ke]=arguments[Ke];return Ee=Ve.call.apply(Ve,[this].concat(We)),Ee.destroyed=!1,Ee.delayedDragEnterLogic=void 0,Ee.loadingRetryTimes={},Ee.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,Ae.w$)()},Ee.dragStartMousePosition=null,Ee.dragNode=void 0,Ee.currentMouseOverDroppableNodeKey=null,Ee.listRef=ee.createRef(),Ee.onNodeDragStart=function(Je,dt){var Ct=Ee.state,ht=Ct.expandedKeys,Lt=Ct.keyEntities,en=Ee.props.onDragStart,Vt=dt.props.eventKey;Ee.dragNode=dt,Ee.dragStartMousePosition={x:Je.clientX,y:Je.clientY};var Kt=(0,Tt._5)(ht,Vt);Ee.setState({draggingNodeKey:Vt,dragChildrenKeys:(0,Tt.wA)(Vt,Lt),indent:Ee.listRef.current.getIndentWidth()}),Ee.setExpandedKeys(Kt),window.addEventListener("dragend",Ee.onWindowDragEnd),en==null||en({event:Je,node:(0,Ae.F)(dt.props)})},Ee.onNodeDragEnter=function(Je,dt){var Ct=Ee.state,ht=Ct.expandedKeys,Lt=Ct.keyEntities,en=Ct.dragChildrenKeys,Vt=Ct.flattenNodes,Kt=Ct.indent,Ut=Ee.props,rn=Ut.onDragEnter,Ft=Ut.onExpand,Xt=Ut.allowDrop,tn=Ut.direction,dn=dt.props,En=dn.pos,An=dn.eventKey,ar=(0,we.Z)(Ee),tr=ar.dragNode;if(Ee.currentMouseOverDroppableNodeKey!==An&&(Ee.currentMouseOverDroppableNodeKey=An),!tr){Ee.resetDragState();return}var Tr=(0,Tt.OM)(Je,tr,dt,Kt,Ee.dragStartMousePosition,Xt,Vt,Lt,ht,tn),Vn=Tr.dropPosition,Or=Tr.dropLevelOffset,Dr=Tr.dropTargetKey,Jr=Tr.dropContainerKey,ni=Tr.dropTargetPos,Nr=Tr.dropAllowed,di=Tr.dragOverNodeKey;if(en.indexOf(Dr)!==-1||!Nr){Ee.resetDragState();return}if(Ee.delayedDragEnterLogic||(Ee.delayedDragEnterLogic={}),Object.keys(Ee.delayedDragEnterLogic).forEach(function(Ir){clearTimeout(Ee.delayedDragEnterLogic[Ir])}),tr.props.eventKey!==dt.props.eventKey&&(Je.persist(),Ee.delayedDragEnterLogic[En]=window.setTimeout(function(){if(Ee.state.draggingNodeKey!==null){var Ir=(0,De.Z)(ht),ot=(0,St.Z)(Lt,dt.props.eventKey);ot&&(ot.children||[]).length&&(Ir=(0,Tt.L0)(ht,dt.props.eventKey)),"expandedKeys"in Ee.props||Ee.setExpandedKeys(Ir),Ft==null||Ft(Ir,{node:(0,Ae.F)(dt.props),expanded:!0,nativeEvent:Je.nativeEvent})}},800)),tr.props.eventKey===Dr&&Or===0){Ee.resetDragState();return}Ee.setState({dragOverNodeKey:di,dropPosition:Vn,dropLevelOffset:Or,dropTargetKey:Dr,dropContainerKey:Jr,dropTargetPos:ni,dropAllowed:Nr}),rn==null||rn({event:Je,node:(0,Ae.F)(dt.props),expandedKeys:ht})},Ee.onNodeDragOver=function(Je,dt){var Ct=Ee.state,ht=Ct.dragChildrenKeys,Lt=Ct.flattenNodes,en=Ct.keyEntities,Vt=Ct.expandedKeys,Kt=Ct.indent,Ut=Ee.props,rn=Ut.onDragOver,Ft=Ut.allowDrop,Xt=Ut.direction,tn=(0,we.Z)(Ee),dn=tn.dragNode;if(dn){var En=(0,Tt.OM)(Je,dn,dt,Kt,Ee.dragStartMousePosition,Ft,Lt,en,Vt,Xt),An=En.dropPosition,ar=En.dropLevelOffset,tr=En.dropTargetKey,Tr=En.dropContainerKey,Vn=En.dropAllowed,Or=En.dropTargetPos,Dr=En.dragOverNodeKey;ht.indexOf(tr)!==-1||!Vn||(dn.props.eventKey===tr&&ar===0?Ee.state.dropPosition===null&&Ee.state.dropLevelOffset===null&&Ee.state.dropTargetKey===null&&Ee.state.dropContainerKey===null&&Ee.state.dropTargetPos===null&&Ee.state.dropAllowed===!1&&Ee.state.dragOverNodeKey===null||Ee.resetDragState():An===Ee.state.dropPosition&&ar===Ee.state.dropLevelOffset&&tr===Ee.state.dropTargetKey&&Tr===Ee.state.dropContainerKey&&Or===Ee.state.dropTargetPos&&Vn===Ee.state.dropAllowed&&Dr===Ee.state.dragOverNodeKey||Ee.setState({dropPosition:An,dropLevelOffset:ar,dropTargetKey:tr,dropContainerKey:Tr,dropTargetPos:Or,dropAllowed:Vn,dragOverNodeKey:Dr}),rn==null||rn({event:Je,node:(0,Ae.F)(dt.props)}))}},Ee.onNodeDragLeave=function(Je,dt){Ee.currentMouseOverDroppableNodeKey===dt.props.eventKey&&!Je.currentTarget.contains(Je.relatedTarget)&&(Ee.resetDragState(),Ee.currentMouseOverDroppableNodeKey=null);var Ct=Ee.props.onDragLeave;Ct==null||Ct({event:Je,node:(0,Ae.F)(dt.props)})},Ee.onWindowDragEnd=function(Je){Ee.onNodeDragEnd(Je,null,!0),window.removeEventListener("dragend",Ee.onWindowDragEnd)},Ee.onNodeDragEnd=function(Je,dt){var Ct=Ee.props.onDragEnd;Ee.setState({dragOverNodeKey:null}),Ee.cleanDragState(),Ct==null||Ct({event:Je,node:(0,Ae.F)(dt.props)}),Ee.dragNode=null,window.removeEventListener("dragend",Ee.onWindowDragEnd)},Ee.onNodeDrop=function(Je,dt){var Ct,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Lt=Ee.state,en=Lt.dragChildrenKeys,Vt=Lt.dropPosition,Kt=Lt.dropTargetKey,Ut=Lt.dropTargetPos,rn=Lt.dropAllowed;if(rn){var Ft=Ee.props.onDrop;if(Ee.setState({dragOverNodeKey:null}),Ee.cleanDragState(),Kt!==null){var Xt=(0,Ge.Z)((0,Ge.Z)({},(0,Ae.H8)(Kt,Ee.getTreeNodeRequiredProps())),{},{active:((Ct=Ee.getActiveItem())===null||Ct===void 0?void 0:Ct.key)===Kt,data:(0,St.Z)(Ee.state.keyEntities,Kt).node}),tn=en.indexOf(Kt)!==-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 dn=(0,Tt.yx)(Ut),En={event:Je,node:(0,Ae.F)(Xt),dragNode:Ee.dragNode?(0,Ae.F)(Ee.dragNode.props):null,dragNodesKeys:[Ee.dragNode.props.eventKey].concat(en),dropToGap:Vt!==0,dropPosition:Vt+Number(dn[dn.length-1])};ht||Ft==null||Ft(En),Ee.dragNode=null}}},Ee.cleanDragState=function(){var Je=Ee.state.draggingNodeKey;Je!==null&&Ee.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ee.dragStartMousePosition=null,Ee.currentMouseOverDroppableNodeKey=null},Ee.triggerExpandActionExpand=function(Je,dt){var Ct=Ee.state,ht=Ct.expandedKeys,Lt=Ct.flattenNodes,en=dt.expanded,Vt=dt.key,Kt=dt.isLeaf;if(!(Kt||Je.shiftKey||Je.metaKey||Je.ctrlKey)){var Ut=Lt.filter(function(Ft){return Ft.key===Vt})[0],rn=(0,Ae.F)((0,Ge.Z)((0,Ge.Z)({},(0,Ae.H8)(Vt,Ee.getTreeNodeRequiredProps())),{},{data:Ut.data}));Ee.setExpandedKeys(en?(0,Tt._5)(ht,Vt):(0,Tt.L0)(ht,Vt)),Ee.onNodeExpand(Je,rn)}},Ee.onNodeClick=function(Je,dt){var Ct=Ee.props,ht=Ct.onClick,Lt=Ct.expandAction;Lt==="click"&&Ee.triggerExpandActionExpand(Je,dt),ht==null||ht(Je,dt)},Ee.onNodeDoubleClick=function(Je,dt){var Ct=Ee.props,ht=Ct.onDoubleClick,Lt=Ct.expandAction;Lt==="doubleClick"&&Ee.triggerExpandActionExpand(Je,dt),ht==null||ht(Je,dt)},Ee.onNodeSelect=function(Je,dt){var Ct=Ee.state.selectedKeys,ht=Ee.state,Lt=ht.keyEntities,en=ht.fieldNames,Vt=Ee.props,Kt=Vt.onSelect,Ut=Vt.multiple,rn=dt.selected,Ft=dt[en.key],Xt=!rn;Xt?Ut?Ct=(0,Tt.L0)(Ct,Ft):Ct=[Ft]:Ct=(0,Tt._5)(Ct,Ft);var tn=Ct.map(function(dn){var En=(0,St.Z)(Lt,dn);return En?En.node:null}).filter(function(dn){return dn});Ee.setUncontrolledState({selectedKeys:Ct}),Kt==null||Kt(Ct,{event:"select",selected:Xt,node:dt,selectedNodes:tn,nativeEvent:Je.nativeEvent})},Ee.onNodeCheck=function(Je,dt,Ct){var ht=Ee.state,Lt=ht.keyEntities,en=ht.checkedKeys,Vt=ht.halfCheckedKeys,Kt=Ee.props,Ut=Kt.checkStrictly,rn=Kt.onCheck,Ft=dt.key,Xt,tn={event:"check",node:dt,checked:Ct,nativeEvent:Je.nativeEvent};if(Ut){var dn=Ct?(0,Tt.L0)(en,Ft):(0,Tt._5)(en,Ft),En=(0,Tt._5)(Vt,Ft);Xt={checked:dn,halfChecked:En},tn.checkedNodes=dn.map(function(Or){return(0,St.Z)(Lt,Or)}).filter(function(Or){return Or}).map(function(Or){return Or.node}),Ee.setUncontrolledState({checkedKeys:dn})}else{var An=(0,zt.S)([].concat((0,De.Z)(en),[Ft]),!0,Lt),ar=An.checkedKeys,tr=An.halfCheckedKeys;if(!Ct){var Tr=new Set(ar);Tr.delete(Ft);var Vn=(0,zt.S)(Array.from(Tr),{checked:!1,halfCheckedKeys:tr},Lt);ar=Vn.checkedKeys,tr=Vn.halfCheckedKeys}Xt=ar,tn.checkedNodes=[],tn.checkedNodesPositions=[],tn.halfCheckedKeys=tr,ar.forEach(function(Or){var Dr=(0,St.Z)(Lt,Or);if(Dr){var Jr=Dr.node,ni=Dr.pos;tn.checkedNodes.push(Jr),tn.checkedNodesPositions.push({node:Jr,pos:ni})}}),Ee.setUncontrolledState({checkedKeys:ar},!1,{halfCheckedKeys:tr})}rn==null||rn(Xt,tn)},Ee.onNodeLoad=function(Je){var dt=Je.key,Ct=new Promise(function(ht,Lt){Ee.setState(function(en){var Vt=en.loadedKeys,Kt=Vt===void 0?[]:Vt,Ut=en.loadingKeys,rn=Ut===void 0?[]:Ut,Ft=Ee.props,Xt=Ft.loadData,tn=Ft.onLoad;if(!Xt||Kt.indexOf(dt)!==-1||rn.indexOf(dt)!==-1)return null;var dn=Xt(Je);return dn.then(function(){var En=Ee.state.loadedKeys,An=(0,Tt.L0)(En,dt);tn==null||tn(An,{event:"load",node:Je}),Ee.setUncontrolledState({loadedKeys:An}),Ee.setState(function(ar){return{loadingKeys:(0,Tt._5)(ar.loadingKeys,dt)}}),ht()}).catch(function(En){if(Ee.setState(function(ar){return{loadingKeys:(0,Tt._5)(ar.loadingKeys,dt)}}),Ee.loadingRetryTimes[dt]=(Ee.loadingRetryTimes[dt]||0)+1,Ee.loadingRetryTimes[dt]>=wt){var An=Ee.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ee.setUncontrolledState({loadedKeys:(0,Tt.L0)(An,dt)}),ht()}Lt(En)}),{loadingKeys:(0,Tt.L0)(rn,dt)}})});return Ct.catch(function(){}),Ct},Ee.onNodeMouseEnter=function(Je,dt){var Ct=Ee.props.onMouseEnter;Ct==null||Ct({event:Je,node:dt})},Ee.onNodeMouseLeave=function(Je,dt){var Ct=Ee.props.onMouseLeave;Ct==null||Ct({event:Je,node:dt})},Ee.onNodeContextMenu=function(Je,dt){var Ct=Ee.props.onRightClick;Ct&&(Je.preventDefault(),Ct({event:Je,node:dt}))},Ee.onFocus=function(){var Je=Ee.props.onFocus;Ee.setState({focused:!0});for(var dt=arguments.length,Ct=new Array(dt),ht=0;ht<dt;ht++)Ct[ht]=arguments[ht];Je==null||Je.apply(void 0,Ct)},Ee.onBlur=function(){var Je=Ee.props.onBlur;Ee.setState({focused:!1}),Ee.onActiveChange(null);for(var dt=arguments.length,Ct=new Array(dt),ht=0;ht<dt;ht++)Ct[ht]=arguments[ht];Je==null||Je.apply(void 0,Ct)},Ee.getTreeNodeRequiredProps=function(){var Je=Ee.state,dt=Je.expandedKeys,Ct=Je.selectedKeys,ht=Je.loadedKeys,Lt=Je.loadingKeys,en=Je.checkedKeys,Vt=Je.halfCheckedKeys,Kt=Je.dragOverNodeKey,Ut=Je.dropPosition,rn=Je.keyEntities;return{expandedKeys:dt||[],selectedKeys:Ct||[],loadedKeys:ht||[],loadingKeys:Lt||[],checkedKeys:en||[],halfCheckedKeys:Vt||[],dragOverNodeKey:Kt,dropPosition:Ut,keyEntities:rn}},Ee.setExpandedKeys=function(Je){var dt=Ee.state,Ct=dt.treeData,ht=dt.fieldNames,Lt=(0,Ae.oH)(Ct,Je,ht);Ee.setUncontrolledState({expandedKeys:Je,flattenNodes:Lt},!0)},Ee.onNodeExpand=function(Je,dt){var Ct=Ee.state.expandedKeys,ht=Ee.state,Lt=ht.listChanging,en=ht.fieldNames,Vt=Ee.props,Kt=Vt.onExpand,Ut=Vt.loadData,rn=dt.expanded,Ft=dt[en.key];if(!Lt){var Xt=Ct.indexOf(Ft),tn=!rn;if((0,z.ZP)(rn&&Xt!==-1||!rn&&Xt===-1,"Expand state not sync with index check"),tn?Ct=(0,Tt.L0)(Ct,Ft):Ct=(0,Tt._5)(Ct,Ft),Ee.setExpandedKeys(Ct),Kt==null||Kt(Ct,{node:dt,expanded:tn,nativeEvent:Je.nativeEvent}),tn&&Ut){var dn=Ee.onNodeLoad(dt);dn&&dn.then(function(){var En=(0,Ae.oH)(Ee.state.treeData,Ct,en);Ee.setUncontrolledState({flattenNodes:En})}).catch(function(){var En=Ee.state.expandedKeys,An=(0,Tt._5)(En,Ft);Ee.setExpandedKeys(An)})}}},Ee.onListChangeStart=function(){Ee.setUncontrolledState({listChanging:!0})},Ee.onListChangeEnd=function(){setTimeout(function(){Ee.setUncontrolledState({listChanging:!1})})},Ee.onActiveChange=function(Je){var dt=Ee.state.activeKey,Ct=Ee.props.onActiveChange;dt!==Je&&(Ee.setState({activeKey:Je}),Je!==null&&Ee.scrollTo({key:Je}),Ct==null||Ct(Je))},Ee.getActiveItem=function(){var Je=Ee.state,dt=Je.activeKey,Ct=Je.flattenNodes;return dt===null?null:Ct.find(function(ht){var Lt=ht.key;return Lt===dt})||null},Ee.offsetActiveKey=function(Je){var dt=Ee.state,Ct=dt.flattenNodes,ht=dt.activeKey,Lt=Ct.findIndex(function(Kt){var Ut=Kt.key;return Ut===ht});Lt===-1&&Je<0&&(Lt=Ct.length),Lt=(Lt+Je+Ct.length)%Ct.length;var en=Ct[Lt];if(en){var Vt=en.key;Ee.onActiveChange(Vt)}else Ee.onActiveChange(null)},Ee.onKeyDown=function(Je){var dt=Ee.state,Ct=dt.activeKey,ht=dt.expandedKeys,Lt=dt.checkedKeys,en=dt.fieldNames,Vt=Ee.props,Kt=Vt.onKeyDown,Ut=Vt.checkable,rn=Vt.selectable;switch(Je.which){case xe.Z.UP:{Ee.offsetActiveKey(-1),Je.preventDefault();break}case xe.Z.DOWN:{Ee.offsetActiveKey(1),Je.preventDefault();break}}var Ft=Ee.getActiveItem();if(Ft&&Ft.data){var Xt=Ee.getTreeNodeRequiredProps(),tn=Ft.data.isLeaf===!1||!!(Ft.data[en.children]||[]).length,dn=(0,Ae.F)((0,Ge.Z)((0,Ge.Z)({},(0,Ae.H8)(Ct,Xt)),{},{data:Ft.data,active:!0}));switch(Je.which){case xe.Z.LEFT:{tn&&ht.includes(Ct)?Ee.onNodeExpand({},dn):Ft.parent&&Ee.onActiveChange(Ft.parent.key),Je.preventDefault();break}case xe.Z.RIGHT:{tn&&!ht.includes(Ct)?Ee.onNodeExpand({},dn):Ft.children&&Ft.children.length&&Ee.onActiveChange(Ft.children[0].key),Je.preventDefault();break}case xe.Z.ENTER:case xe.Z.SPACE:{Ut&&!dn.disabled&&dn.checkable!==!1&&!dn.disableCheckbox?Ee.onNodeCheck({},dn,!Lt.includes(Ct)):!Ut&&rn&&!dn.disabled&&dn.selectable!==!1&&Ee.onNodeSelect({},dn);break}}}Kt==null||Kt(Je)},Ee.setUncontrolledState=function(Je){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ee.destroyed){var ht=!1,Lt=!0,en={};Object.keys(Je).forEach(function(Vt){if(Vt in Ee.props){Lt=!1;return}ht=!0,en[Vt]=Je[Vt]}),ht&&(!dt||Lt)&&Ee.setState((0,Ge.Z)((0,Ge.Z)({},en),Ct))}},Ee.scrollTo=function(Je){Ee.listRef.current.scrollTo(Je)},Ee}return(0,ce.Z)(Ze,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var He=this.props.activeKey;He!==void 0&&He!==this.state.activeKey&&(this.setState({activeKey:He}),He!==null&&this.scrollTo({key:He}))}},{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 He,We=this.state,Ke=We.focused,Je=We.flattenNodes,dt=We.keyEntities,Ct=We.draggingNodeKey,ht=We.activeKey,Lt=We.dropLevelOffset,en=We.dropContainerKey,Vt=We.dropTargetKey,Kt=We.dropPosition,Ut=We.dragOverNodeKey,rn=We.indent,Ft=this.props,Xt=Ft.prefixCls,tn=Ft.className,dn=Ft.style,En=Ft.showLine,An=Ft.focusable,ar=Ft.tabIndex,tr=ar===void 0?0:ar,Tr=Ft.selectable,Vn=Ft.showIcon,Or=Ft.icon,Dr=Ft.switcherIcon,Jr=Ft.draggable,ni=Ft.checkable,Nr=Ft.checkStrictly,di=Ft.disabled,Ir=Ft.motion,ot=Ft.loadData,Ci=Ft.filterTreeNode,xi=Ft.height,pr=Ft.itemHeight,Pr=Ft.virtual,Ar=Ft.titleRender,Li=Ft.dropIndicatorRender,nr=Ft.onContextMenu,or=Ft.onScroll,qt=Ft.direction,Jt=Ft.rootClassName,Et=Ft.rootStyle,ln=(0,fe.Z)(this.props,{aria:!0,data:!0}),Pn;return Jr&&((0,oe.Z)(Jr)==="object"?Pn=Jr:typeof Jr=="function"?Pn={nodeDraggable:Jr}:Pn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Xt,selectable:Tr,showIcon:Vn,icon:Or,switcherIcon:Dr,draggable:Pn,draggingNodeKey:Ct,checkable:ni,checkStrictly:Nr,disabled:di,keyEntities:dt,dropLevelOffset:Lt,dropContainerKey:en,dropTargetKey:Vt,dropPosition:Kt,dragOverNodeKey:Ut,indent:rn,direction:qt,dropIndicatorRender:Li,loadData:ot,filterTreeNode:Ci,titleRender:Ar,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:ve()(Xt,tn,Jt,(He={},(0,Pt.Z)(He,"".concat(Xt,"-show-line"),En),(0,Pt.Z)(He,"".concat(Xt,"-focused"),Ke),(0,Pt.Z)(He,"".concat(Xt,"-active-focused"),ht!==null),He)),style:Et},ee.createElement(Nt,(0,tt.Z)({ref:this.listRef,prefixCls:Xt,style:dn,data:Je,disabled:di,selectable:Tr,checkable:!!ni,motion:Ir,dragging:Ct!==null,height:xi,itemHeight:pr,virtual:Pr,focusable:An,focused:Ke,tabIndex:tr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:nr,onScroll:or},this.getTreeNodeRequiredProps(),ln))))}}],[{key:"getDerivedStateFromProps",value:function(He,We){var Ke=We.prevProps,Je={prevProps:He};function dt(An){return!Ke&&An in He||Ke&&Ke[An]!==He[An]}var Ct,ht=We.fieldNames;if(dt("fieldNames")&&(ht=(0,Ae.w$)(He.fieldNames),Je.fieldNames=ht),dt("treeData")?Ct=He.treeData:dt("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ct=(0,Ae.zn)(He.children)),Ct){Je.treeData=Ct;var Lt=(0,Ae.I8)(Ct,{fieldNames:ht});Je.keyEntities=(0,Ge.Z)((0,Pt.Z)({},nt,pt),Lt.keyEntities)}var en=Je.keyEntities||We.keyEntities;if(dt("expandedKeys")||Ke&&dt("autoExpandParent"))Je.expandedKeys=He.autoExpandParent||!Ke&&He.defaultExpandParent?(0,Tt.r7)(He.expandedKeys,en):He.expandedKeys;else if(!Ke&&He.defaultExpandAll){var Vt=(0,Ge.Z)({},en);delete Vt[nt],Je.expandedKeys=Object.keys(Vt).map(function(An){return Vt[An].key})}else!Ke&&He.defaultExpandedKeys&&(Je.expandedKeys=He.autoExpandParent||He.defaultExpandParent?(0,Tt.r7)(He.defaultExpandedKeys,en):He.defaultExpandedKeys);if(Je.expandedKeys||delete Je.expandedKeys,Ct||Je.expandedKeys){var Kt=(0,Ae.oH)(Ct||We.treeData,Je.expandedKeys||We.expandedKeys,ht);Je.flattenNodes=Kt}if(He.selectable&&(dt("selectedKeys")?Je.selectedKeys=(0,Tt.BT)(He.selectedKeys,He):!Ke&&He.defaultSelectedKeys&&(Je.selectedKeys=(0,Tt.BT)(He.defaultSelectedKeys,He))),He.checkable){var Ut;if(dt("checkedKeys")?Ut=(0,Tt.E6)(He.checkedKeys)||{}:!Ke&&He.defaultCheckedKeys?Ut=(0,Tt.E6)(He.defaultCheckedKeys)||{}:Ct&&(Ut=(0,Tt.E6)(He.checkedKeys)||{checkedKeys:We.checkedKeys,halfCheckedKeys:We.halfCheckedKeys}),Ut){var rn=Ut,Ft=rn.checkedKeys,Xt=Ft===void 0?[]:Ft,tn=rn.halfCheckedKeys,dn=tn===void 0?[]:tn;if(!He.checkStrictly){var En=(0,zt.S)(Xt,!0,en);Xt=En.checkedKeys,dn=En.halfCheckedKeys}Je.checkedKeys=Xt,Je.halfCheckedKeys=dn}}return dt("loadedKeys")&&(Je.loadedKeys=He.loadedKeys),Je}}]),Ze}(ee.Component);at.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:re,allowDrop:function(){return!0},expandAction:!1},at.TreeNode=je.Z;var Ye=at,Pe=Ye},35654:function(Rn,wn,$e){"use strict";$e.d(wn,{BT:function(){return ee},E6:function(){return le},L0:function(){return Se},OM:function(){return z},_5:function(){return Le},r7:function(){return ue},wA:function(){return ve},yx:function(){return Oe}});var tt=$e(19127),Pt=$e(20135),oe=$e(48736),Ge=$e(59301),De=$e(39417),me=$e(67841),ce=$e(71430),we=null;function Le(pe,be){if(!pe)return[];var Ce=pe.slice(),Fe=Ce.indexOf(be);return Fe>=0&&Ce.splice(Fe,1),Ce}function Se(pe,be){var Ce=(pe||[]).slice();return Ce.indexOf(be)===-1&&Ce.push(be),Ce}function Oe(pe){return pe.split("-")}function ve(pe,be){var Ce=[],Fe=(0,me.Z)(be,pe);function je(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ke.forEach(function(Ae){var Be=Ae.key,_e=Ae.children;Ce.push(Be),je(_e)})}return je(Fe.children),Ce}function xe(pe){if(pe.parent){var be=Oe(pe.pos);return Number(be[be.length-1])===pe.parent.children.length-1}return!1}function fe(pe){var be=Oe(pe.pos);return Number(be[be.length-1])===0}function z(pe,be,Ce,Fe,je,ke,Ae,Be,_e,et){var ze,Xe=pe.clientX,Qe=pe.clientY,lt=pe.target.getBoundingClientRect(),ct=lt.top,vt=lt.height,nt=(et==="rtl"?-1:1)*(((je==null?void 0:je.x)||0)-Xe),it=(nt-12)/Fe,pt=(0,me.Z)(Be,Ce.props.eventKey);if(Qe<ct+vt/2){var xt=Ae.findIndex(function(Pe){return Pe.key===pt.key}),yt=xt<=0?0:xt-1,ft=Ae[yt].key;pt=(0,me.Z)(Be,ft)}var gt=pt.key,mt=pt,Nt=pt.key,Tt=0,zt=0;if(!_e.includes(gt))for(var St=0;St<it&&xe(pt);St+=1)pt=pt.parent,zt+=1;var wt=be.props.data,at=pt.node,Ye=!0;return fe(pt)&&pt.level===0&&Qe<ct+vt/2&&ke({dragNode:wt,dropNode:at,dropPosition:-1})&&pt.key===Ce.props.eventKey?Tt=-1:(mt.children||[]).length&&_e.includes(Nt)?ke({dragNode:wt,dropNode:at,dropPosition:0})?Tt=0:Ye=!1:zt===0?it>-1.5?ke({dragNode:wt,dropNode:at,dropPosition:1})?Tt=1:Ye=!1:ke({dragNode:wt,dropNode:at,dropPosition:0})?Tt=0:ke({dragNode:wt,dropNode:at,dropPosition:1})?Tt=1:Ye=!1:ke({dragNode:wt,dropNode:at,dropPosition:1})?Tt=1:Ye=!1,{dropPosition:Tt,dropLevelOffset:zt,dropTargetKey:pt.key,dropTargetPos:pt.pos,dragOverNodeKey:Nt,dropContainerKey:Tt===0?null:((ze=pt.parent)===null||ze===void 0?void 0:ze.key)||null,dropAllowed:Ye}}function ee(pe,be){if(pe){var Ce=be.multiple;return Ce?pe.slice():pe.length?[pe[0]]:pe}}var ae=function(be){return be};function re(pe,be){if(!pe)return[];var Ce=be||{},Fe=Ce.processProps,je=Fe===void 0?ae:Fe,ke=Array.isArray(pe)?pe:[pe];return ke.map(function(Ae){var Be=Ae.children,_e=_objectWithoutProperties(Ae,we),et=re(Be,be);return React.createElement(TreeNode,_extends({key:_e.key},je(_e)),et)})}function le(pe){if(!pe)return null;var be;if(Array.isArray(pe))be={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,Pt.Z)(pe)==="object")be={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 be}function ue(pe,be){var Ce=new Set;function Fe(je){if(!Ce.has(je)){var ke=(0,me.Z)(be,je);if(ke){Ce.add(je);var Ae=ke.parent,Be=ke.node;Be.disabled||Ae&&Fe(Ae.key)}}}return(pe||[]).forEach(function(je){Fe(je)}),(0,tt.Z)(Ce)}},90782:function(Rn,wn,$e){"use strict";$e.d(wn,{S:function(){return ce}});var tt=$e(48736),Pt=$e(67841);function oe(we,Le){var Se=new Set;return we.forEach(function(Oe){Le.has(Oe)||Se.add(Oe)}),Se}function Ge(we){var Le=we||{},Se=Le.disabled,Oe=Le.disableCheckbox,ve=Le.checkable;return!!(Se||Oe)||ve===!1}function De(we,Le,Se,Oe){for(var ve=new Set(we),xe=new Set,fe=0;fe<=Se;fe+=1){var z=Le.get(fe)||new Set;z.forEach(function(le){var ue=le.key,pe=le.node,be=le.children,Ce=be===void 0?[]:be;ve.has(ue)&&!Oe(pe)&&Ce.filter(function(Fe){return!Oe(Fe.node)}).forEach(function(Fe){ve.add(Fe.key)})})}for(var ee=new Set,ae=Se;ae>=0;ae-=1){var re=Le.get(ae)||new Set;re.forEach(function(le){var ue=le.parent,pe=le.node;if(!(Oe(pe)||!le.parent||ee.has(le.parent.key))){if(Oe(le.parent.node)){ee.add(ue.key);return}var be=!0,Ce=!1;(ue.children||[]).filter(function(Fe){return!Oe(Fe.node)}).forEach(function(Fe){var je=Fe.key,ke=ve.has(je);be&&!ke&&(be=!1),!Ce&&(ke||xe.has(je))&&(Ce=!0)}),be&&ve.add(ue.key),Ce&&xe.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(oe(xe,ve))}}function me(we,Le,Se,Oe,ve){for(var xe=new Set(we),fe=new Set(Le),z=0;z<=Oe;z+=1){var ee=Se.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,be=ue.node,Ce=ue.children,Fe=Ce===void 0?[]:Ce;!xe.has(pe)&&!fe.has(pe)&&!ve(be)&&Fe.filter(function(je){return!ve(je.node)}).forEach(function(je){xe.delete(je.key)})})}fe=new Set;for(var ae=new Set,re=Oe;re>=0;re-=1){var le=Se.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,be=ue.node;if(!(ve(be)||!ue.parent||ae.has(ue.parent.key))){if(ve(ue.parent.node)){ae.add(pe.key);return}var Ce=!0,Fe=!1;(pe.children||[]).filter(function(je){return!ve(je.node)}).forEach(function(je){var ke=je.key,Ae=xe.has(ke);Ce&&!Ae&&(Ce=!1),!Fe&&(Ae||fe.has(ke))&&(Fe=!0)}),Ce||xe.delete(pe.key),Fe&&fe.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(oe(fe,xe))}}function ce(we,Le,Se,Oe){var ve=[],xe;Oe?xe=Oe:xe=Ge;var fe=new Set(we.filter(function(re){var le=!!(0,Pt.Z)(Se,re);return le||ve.push(re),le})),z=new Map,ee=0;Object.keys(Se).forEach(function(re){var le=Se[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,tt.ZP)(!ve.length,"Tree missing follow keys: ".concat(ve.slice(0,100).map(function(re){return"'".concat(re,"'")}).join(", ")));var ae;return Le===!0?ae=De(fe,z,ee,xe):ae=me(fe,Le.halfCheckedKeys,z,ee,xe),ae}},67841:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return tt}});function tt(Pt,oe){return Pt[oe]}},71430:function(Rn,wn,$e){"use strict";$e.d(wn,{F:function(){return ue},H8:function(){return le},I8:function(){return re},km:function(){return ve},oH:function(){return ee},w$:function(){return xe},zn:function(){return z}});var tt=$e(20135),Pt=$e(19127),oe=$e(44127),Ge=$e(6620),De=$e(11592),me=$e(2738),ce=$e(48736),we=$e(67841),Le=["children"];function Se(pe,be){return"".concat(pe,"-").concat(be)}function Oe(pe){return pe&&pe.type&&pe.type.isTreeNode}function ve(pe,be){return pe!=null?pe:be}function xe(pe){var be=pe||{},Ce=be.title,Fe=be._title,je=be.key,ke=be.children,Ae=Ce||"title";return{title:Ae,_title:Fe||[Ae],key:je||"key",children:ke||"children"}}function fe(pe,be){var Ce=new Map;function Fe(je){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(je||[]).forEach(function(Ae){var Be=Ae[be.key],_e=Ae[be.children];warning(Be!=null,"Tree node must have a certain key: [".concat(ke).concat(Be,"]"));var et=String(Be);warning(!Ce.has(et)||Be===null||Be===void 0,"Same 'key' exist in the Tree: ".concat(et)),Ce.set(et,!0),Fe(_e,"".concat(ke).concat(et," > "))})}Fe(pe)}function z(pe){function be(Ce){var Fe=(0,De.Z)(Ce);return Fe.map(function(je){if(!Oe(je))return(0,ce.ZP)(!je,"Tree/TreeNode can only accept TreeNode as children."),null;var ke=je.key,Ae=je.props,Be=Ae.children,_e=(0,Ge.Z)(Ae,Le),et=(0,oe.Z)({key:ke},_e),ze=be(Be);return ze.length&&(et.children=ze),et}).filter(function(je){return je})}return be(pe)}function ee(pe,be,Ce){var Fe=xe(Ce),je=Fe._title,ke=Fe.key,Ae=Fe.children,Be=new Set(be===!0?[]:be),_e=[];function et(ze){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ze.map(function(Qe,lt){for(var ct=Se(Xe?Xe.pos:"0",lt),vt=ve(Qe[ke],ct),nt,it=0;it<je.length;it+=1){var pt=je[it];if(Qe[pt]!==void 0){nt=Qe[pt];break}}var xt=(0,oe.Z)((0,oe.Z)({},(0,me.Z)(Qe,[].concat((0,Pt.Z)(je),[ke,Ae]))),{},{title:nt,key:vt,parent:Xe,pos:ct,children:null,data:Qe,isStart:[].concat((0,Pt.Z)(Xe?Xe.isStart:[]),[lt===0]),isEnd:[].concat((0,Pt.Z)(Xe?Xe.isEnd:[]),[lt===ze.length-1])});return _e.push(xt),be===!0||Be.has(vt)?xt.children=et(Qe[Ae]||[],xt):xt.children=[],xt})}return et(pe),_e}function ae(pe,be,Ce){var Fe={};(0,tt.Z)(Ce)==="object"?Fe=Ce:Fe={externalGetKey:Ce},Fe=Fe||{};var je=Fe,ke=je.childrenPropName,Ae=je.externalGetKey,Be=je.fieldNames,_e=xe(Be),et=_e.key,ze=_e.children,Xe=ke||ze,Qe;Ae?typeof Ae=="string"?Qe=function(vt){return vt[Ae]}:typeof Ae=="function"&&(Qe=function(vt){return Ae(vt)}):Qe=function(vt,nt){return ve(vt[et],nt)};function lt(ct,vt,nt,it){var pt=ct?ct[Xe]:pe,xt=ct?Se(nt.pos,vt):"0",yt=ct?[].concat((0,Pt.Z)(it),[ct]):[];if(ct){var ft=Qe(ct,xt),gt={node:ct,index:vt,pos:xt,key:ft,parentPos:nt.node?nt.pos:null,level:nt.level+1,nodes:yt};be(gt)}pt&&pt.forEach(function(mt,Nt){lt(mt,Nt,{node:ct,pos:xt,level:nt?nt.level+1:-1},yt)})}lt(null)}function re(pe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=be.initWrapper,Fe=be.processEntity,je=be.onProcessFinished,ke=be.externalGetKey,Ae=be.childrenPropName,Be=be.fieldNames,_e=arguments.length>2?arguments[2]:void 0,et=ke||_e,ze={},Xe={},Qe={posEntities:ze,keyEntities:Xe};return Ce&&(Qe=Ce(Qe)||Qe),ae(pe,function(lt){var ct=lt.node,vt=lt.index,nt=lt.pos,it=lt.key,pt=lt.parentPos,xt=lt.level,yt=lt.nodes,ft={node:ct,nodes:yt,index:vt,key:it,pos:nt,level:xt},gt=ve(it,nt);ze[nt]=ft,Xe[gt]=ft,ft.parent=ze[pt],ft.parent&&(ft.parent.children=ft.parent.children||[],ft.parent.children.push(ft)),Fe&&Fe(ft,Qe)},{externalGetKey:et,childrenPropName:Ae,fieldNames:Be}),je&&je(Qe),Qe}function le(pe,be){var Ce=be.expandedKeys,Fe=be.selectedKeys,je=be.loadedKeys,ke=be.loadingKeys,Ae=be.checkedKeys,Be=be.halfCheckedKeys,_e=be.dragOverNodeKey,et=be.dropPosition,ze=be.keyEntities,Xe=(0,we.Z)(ze,pe),Qe={eventKey:pe,expanded:Ce.indexOf(pe)!==-1,selected:Fe.indexOf(pe)!==-1,loaded:je.indexOf(pe)!==-1,loading:ke.indexOf(pe)!==-1,checked:Ae.indexOf(pe)!==-1,halfChecked:Be.indexOf(pe)!==-1,pos:String(Xe?Xe.pos:""),dragOver:_e===pe&&et===0,dragOverGapTop:_e===pe&&et===-1,dragOverGapBottom:_e===pe&&et===1};return Qe}function ue(pe){var be=pe.data,Ce=pe.expanded,Fe=pe.selected,je=pe.checked,ke=pe.loaded,Ae=pe.loading,Be=pe.halfChecked,_e=pe.dragOver,et=pe.dragOverGapTop,ze=pe.dragOverGapBottom,Xe=pe.pos,Qe=pe.active,lt=pe.eventKey,ct=(0,oe.Z)((0,oe.Z)({},be),{},{expanded:Ce,selected:Fe,checked:je,loaded:ke,loading:Ae,halfChecked:Be,dragOver:_e,dragOverGapTop:et,dragOverGapBottom:ze,pos:Xe,active:Qe,key:lt});return"props"in ct||Object.defineProperty(ct,"props",{get:function(){return(0,ce.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pe}}),ct}},8224:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return Pt}});var tt=$e(4676);function Pt(oe,Ge,De,me){var ce=tt.unstable_batchedUpdates?function(Le){tt.unstable_batchedUpdates(De,Le)}:De;return oe!=null&&oe.addEventListener&&oe.addEventListener(Ge,ce,me),{remove:function(){oe!=null&&oe.removeEventListener&&oe.removeEventListener(Ge,ce,me)}}}},55468:function(Rn,wn,$e){"use strict";$e.d(wn,{g1:function(){return Oe},os:function(){return xe}});var tt=/margin|padding|width|height|max|min|offset/,Pt={left:!0,top:!0},oe={cssFloat:1,styleFloat:1,float:1};function Ge(fe){return fe.nodeType===1?fe.ownerDocument.defaultView.getComputedStyle(fe,null):{}}function De(fe,z,ee){if(z=z.toLowerCase(),ee==="auto"){if(z==="height")return fe.offsetHeight;if(z==="width")return fe.offsetWidth}return z in Pt||(Pt[z]=tt.test(z)),Pt[z]?parseFloat(ee)||0:ee}function me(fe,z){var ee=arguments.length,ae=Ge(fe);return z=oe[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ee===1?ae:De(fe,z,ae[z]||fe.style[z])}function ce(fe,z,ee){var ae=arguments.length;if(z=oe[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ae===3)return typeof ee=="number"&&tt.test(z)&&(ee="".concat(ee,"px")),fe.style[z]=ee,ee;for(var re in z)z.hasOwnProperty(re)&&ce(fe,re,z[re]);return Ge(fe)}function we(fe){return fe===document.body?document.documentElement.clientWidth:fe.offsetWidth}function Le(fe){return fe===document.body?window.innerHeight||document.documentElement.clientHeight:fe.offsetHeight}function Se(){var fe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),z=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:fe,height:z}}function Oe(){var fe=document.documentElement.clientWidth,z=window.innerHeight||document.documentElement.clientHeight;return{width:fe,height:z}}function ve(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function xe(fe){var z=fe.getBoundingClientRect(),ee=document.documentElement;return{left:z.left+(window.pageXOffset||ee.scrollLeft)-(ee.clientLeft||document.body.clientLeft||0),top:z.top+(window.pageYOffset||ee.scrollTop)-(ee.clientTop||document.body.clientTop||0)}}},24514:function(Rn,wn,$e){"use strict";$e.d(wn,{G:function(){return Ge}});var tt=$e(47273),Pt=function(me){if((0,tt.Z)()&&window.document.documentElement){var ce=Array.isArray(me)?me:[me],we=window.document.documentElement;return ce.some(function(Le){return Le in we.style})}return!1},oe=function(me,ce){if(!Pt(me))return!1;var we=document.createElement("div"),Le=we.style[me];return we.style[me]=ce,we.style[me]!==Le};function Ge(De,me){return!Array.isArray(De)&&me!==void 0?oe(De,me):Pt(De)}},24916:function(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return at}});var tt=$e(96663),Pt=$e(20135),oe=$e(44127),Ge=$e(90493),De=$e(72071),me=$e(6620),ce=$e(92310),we=$e.n(ce),Le=$e(29301),Se=$e(70425),Oe=$e(34280),ve=$e(59301),xe=$e(4676),fe=ve.forwardRef(function(Ye,Pe){var Te=Ye.height,Ve=Ye.offsetY,Ze=Ye.offsetX,Ee=Ye.children,He=Ye.prefixCls,We=Ye.onInnerResize,Ke=Ye.innerProps,Je=Ye.rtl,dt=Ye.extra,Ct={},ht={display:"flex",flexDirection:"column"};return Ve!==void 0&&(Ct={height:Te,position:"relative",overflow:"hidden"},ht=(0,oe.Z)((0,oe.Z)({},ht),{},(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({transform:"translateY(".concat(Ve,"px)")},Je?"marginRight":"marginLeft",-Ze),"position","absolute"),"left",0),"right",0),"top",0))),ve.createElement("div",{style:Ct},ve.createElement(Le.Z,{onResize:function(en){var Vt=en.offsetHeight;Vt&&We&&We()}},ve.createElement("div",(0,tt.Z)({style:ht,className:we()((0,Ge.Z)({},"".concat(He,"-holder-inner"),He)),ref:Pe},Ke),Ee,dt)))});fe.displayName="Filler";var z=fe;function ee(Ye){var Pe=Ye.children,Te=Ye.setRef,Ve=ve.useCallback(function(Ze){Te(Ze)},[]);return ve.cloneElement(Pe,{ref:Ve})}function ae(Ye,Pe,Te,Ve,Ze,Ee,He,We){var Ke=We.getKey;return Ye.slice(Pe,Te+1).map(function(Je,dt){var Ct=Pe+dt,ht=He(Je,Ct,{style:{width:Ve},offsetX:Ze}),Lt=Ke(Je);return ve.createElement(ee,{key:Lt,setRef:function(Vt){return Ee(Je,Vt)}},ht)})}function re(Ye,Pe,Te,Ve){var Ze=Te-Ye,Ee=Pe-Te,He=Math.min(Ze,Ee)*2;if(Ve<=He){var We=Math.floor(Ve/2);return Ve%2?Te+We+1:Te-We}return Ze>Ee?Te-(Ve-Ee):Te+(Ve-Ze)}function le(Ye,Pe,Te){var Ve=Ye.length,Ze=Pe.length,Ee,He;if(Ve===0&&Ze===0)return null;Ve<Ze?(Ee=Ye,He=Pe):(Ee=Pe,He=Ye);var We={__EMPTY_ITEM__:!0};function Ke(en){return en!==void 0?Te(en):We}for(var Je=null,dt=Math.abs(Ve-Ze)!==1,Ct=0;Ct<He.length;Ct+=1){var ht=Ke(Ee[Ct]),Lt=Ke(He[Ct]);if(ht!==Lt){Je=Ct,dt=dt||ht!==Ke(He[Ct+1]);break}}return Je===null?null:{index:Je,multiple:dt}}function ue(Ye,Pe,Te){var Ve=ve.useState(Ye),Ze=(0,De.Z)(Ve,2),Ee=Ze[0],He=Ze[1],We=ve.useState(null),Ke=(0,De.Z)(We,2),Je=Ke[0],dt=Ke[1];return ve.useEffect(function(){var Ct=le(Ee||[],Ye||[],Pe);(Ct==null?void 0:Ct.index)!==void 0&&(Te==null||Te(Ct.index),dt(Ye[Ct.index])),He(Ye)},[Ye]),[Je]}var pe=$e(16089),be=(typeof navigator=="undefined"?"undefined":(0,Pt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=be,Fe=function(Ye,Pe,Te,Ve){var Ze=(0,ve.useRef)(!1),Ee=(0,ve.useRef)(null);function He(){clearTimeout(Ee.current),Ze.current=!0,Ee.current=setTimeout(function(){Ze.current=!1},50)}var We=(0,ve.useRef)({top:Ye,bottom:Pe,left:Te,right:Ve});return We.current.top=Ye,We.current.bottom=Pe,We.current.left=Te,We.current.right=Ve,function(Ke,Je){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ct=Ke?Je<0&&We.current.left||Je>0&&We.current.right:Je<0&&We.current.top||Je>0&&We.current.bottom;return dt&&Ct?(clearTimeout(Ee.current),Ze.current=!1):(!Ct||Ze.current)&&He(),!Ze.current&&Ct}};function je(Ye,Pe,Te,Ve,Ze,Ee,He){var We=(0,ve.useRef)(0),Ke=(0,ve.useRef)(null),Je=(0,ve.useRef)(null),dt=(0,ve.useRef)(!1),Ct=Fe(Pe,Te,Ve,Ze);function ht(rn,Ft){if(pe.Z.cancel(Ke.current),!Ct(!1,Ft)){var Xt=rn;if(!Xt._virtualHandled)Xt._virtualHandled=!0;else return;We.current+=Ft,Je.current=Ft,Ce||Xt.preventDefault(),Ke.current=(0,pe.Z)(function(){var tn=dt.current?10:1;He(We.current*tn,!1),We.current=0})}}function Lt(rn,Ft){He(Ft,!0),Ce||rn.preventDefault()}var en=(0,ve.useRef)(null),Vt=(0,ve.useRef)(null);function Kt(rn){if(Ye){pe.Z.cancel(Vt.current),Vt.current=(0,pe.Z)(function(){en.current=null},2);var Ft=rn.deltaX,Xt=rn.deltaY,tn=rn.shiftKey,dn=Ft,En=Xt;(en.current==="sx"||!en.current&&tn&&Xt&&!Ft)&&(dn=Xt,En=0,en.current="sx");var An=Math.abs(dn),ar=Math.abs(En);en.current===null&&(en.current=Ee&&An>ar?"x":"y"),en.current==="y"?ht(rn,En):Lt(rn,dn)}}function Ut(rn){Ye&&(dt.current=rn.detail===Je.current)}return[Kt,Ut]}function ke(Ye,Pe,Te,Ve){var Ze=ve.useMemo(function(){return[new Map,[]]},[Ye,Te.id,Ve]),Ee=(0,De.Z)(Ze,2),He=Ee[0],We=Ee[1],Ke=function(dt){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt,ht=He.get(dt),Lt=He.get(Ct);if(ht===void 0||Lt===void 0)for(var en=Ye.length,Vt=We.length;Vt<en;Vt+=1){var Kt,Ut=Ye[Vt],rn=Pe(Ut);He.set(rn,Vt);var Ft=(Kt=Te.get(rn))!==null&&Kt!==void 0?Kt:Ve;if(We[Vt]=(We[Vt-1]||0)+Ft,rn===dt&&(ht=Vt),rn===Ct&&(Lt=Vt),ht!==void 0&&Lt!==void 0)break}return{top:We[ht-1]||0,bottom:We[Lt]}};return Ke}var Ae=$e(52884),Be=$e(95727),_e=function(){function Ye(){(0,Ae.Z)(this,Ye),(0,Ge.Z)(this,"maps",void 0),(0,Ge.Z)(this,"id",0),(0,Ge.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Be.Z)(Ye,[{key:"set",value:function(Te,Ve){this.maps[Te]=Ve,this.id+=1,this.diffKeys.add(Te)}},{key:"get",value:function(Te){return this.maps[Te]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ye}(),et=_e;function ze(Ye){var Pe=parseFloat(Ye);return isNaN(Pe)?0:Pe}function Xe(Ye,Pe,Te){var Ve=ve.useState(0),Ze=(0,De.Z)(Ve,2),Ee=Ze[0],He=Ze[1],We=(0,ve.useRef)(new Map),Ke=(0,ve.useRef)(new et),Je=(0,ve.useRef)(0);function dt(){Je.current+=1}function Ct(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;dt();var en=function(){var Ut=!1;We.current.forEach(function(rn,Ft){if(rn&&rn.offsetParent){var Xt=rn.offsetHeight,tn=getComputedStyle(rn),dn=tn.marginTop,En=tn.marginBottom,An=ze(dn),ar=ze(En),tr=Xt+An+ar;Ke.current.get(Ft)!==tr&&(Ke.current.set(Ft,tr),Ut=!0)}}),Ut&&He(function(rn){return rn+1})};if(Lt)en();else{Je.current+=1;var Vt=Je.current;Promise.resolve().then(function(){Vt===Je.current&&en()})}}function ht(Lt,en){var Vt=Ye(Lt),Kt=We.current.get(Vt);en?(We.current.set(Vt,en),Ct()):We.current.delete(Vt),!Kt!=!en&&(en?Pe==null||Pe(Lt):Te==null||Te(Lt))}return(0,ve.useEffect)(function(){return dt},[]),[ht,Ct,Ke.current,Ee]}var Qe=14/15;function lt(Ye,Pe,Te){var Ve=(0,ve.useRef)(!1),Ze=(0,ve.useRef)(0),Ee=(0,ve.useRef)(0),He=(0,ve.useRef)(null),We=(0,ve.useRef)(null),Ke,Je=function(Lt){if(Ve.current){var en=Math.ceil(Lt.touches[0].pageX),Vt=Math.ceil(Lt.touches[0].pageY),Kt=Ze.current-en,Ut=Ee.current-Vt,rn=Math.abs(Kt)>Math.abs(Ut);rn?Ze.current=en:Ee.current=Vt;var Ft=Te(rn,rn?Kt:Ut,!1,Lt);Ft&&Lt.preventDefault(),clearInterval(We.current),Ft&&(We.current=setInterval(function(){rn?Kt*=Qe:Ut*=Qe;var Xt=Math.floor(rn?Kt:Ut);(!Te(rn,Xt,!0)||Math.abs(Xt)<=.1)&&clearInterval(We.current)},16))}},dt=function(){Ve.current=!1,Ke()},Ct=function(Lt){Ke(),Lt.touches.length===1&&!Ve.current&&(Ve.current=!0,Ze.current=Math.ceil(Lt.touches[0].pageX),Ee.current=Math.ceil(Lt.touches[0].pageY),He.current=Lt.target,He.current.addEventListener("touchmove",Je,{passive:!1}),He.current.addEventListener("touchend",dt,{passive:!0}))};Ke=function(){He.current&&(He.current.removeEventListener("touchmove",Je),He.current.removeEventListener("touchend",dt))},(0,Oe.Z)(function(){return Ye&&Pe.current.addEventListener("touchstart",Ct,{passive:!0}),function(){var ht;(ht=Pe.current)===null||ht===void 0||ht.removeEventListener("touchstart",Ct),Ke(),clearInterval(We.current)}},[Ye])}function ct(Ye){return Math.floor(Math.pow(Ye,.5))}function vt(Ye,Pe){var Te="touches"in Ye?Ye.touches[0]:Ye;return Te[Pe?"pageX":"pageY"]-window[Pe?"scrollX":"scrollY"]}function nt(Ye,Pe,Te){ve.useEffect(function(){var Ve=Pe.current;if(Ye&&Ve){var Ze=!1,Ee,He,We=function(){pe.Z.cancel(Ee)},Ke=function ht(){We(),Ee=(0,pe.Z)(function(){Te(He),ht()})},Je=function(Lt){if(!Lt.target.draggable){var en=Lt;en._virtualHandled||(en._virtualHandled=!0,Ze=!0)}},dt=function(){Ze=!1,We()},Ct=function(Lt){if(Ze){var en=vt(Lt,!1),Vt=Ve.getBoundingClientRect(),Kt=Vt.top,Ut=Vt.bottom;if(en<=Kt){var rn=Kt-en;He=-ct(rn),Ke()}else if(en>=Ut){var Ft=en-Ut;He=ct(Ft),Ke()}else We()}};return Ve.addEventListener("mousedown",Je),Ve.ownerDocument.addEventListener("mouseup",dt),Ve.ownerDocument.addEventListener("mousemove",Ct),function(){Ve.removeEventListener("mousedown",Je),Ve.ownerDocument.removeEventListener("mouseup",dt),Ve.ownerDocument.removeEventListener("mousemove",Ct),We()}}},[Ye])}var it=10;function pt(Ye,Pe,Te,Ve,Ze,Ee,He,We){var Ke=ve.useRef(),Je=ve.useState(null),dt=(0,De.Z)(Je,2),Ct=dt[0],ht=dt[1];return(0,Oe.Z)(function(){if(Ct&&Ct.times<it){if(!Ye.current){ht(function(Ir){return(0,oe.Z)({},Ir)});return}Ee();var Lt=Ct.targetAlign,en=Ct.originAlign,Vt=Ct.index,Kt=Ct.offset,Ut=Ye.current.clientHeight,rn=!1,Ft=Lt,Xt=null;if(Ut){for(var tn=Lt||en,dn=0,En=0,An=0,ar=Math.min(Pe.length-1,Vt),tr=0;tr<=ar;tr+=1){var Tr=Ze(Pe[tr]);En=dn;var Vn=Te.get(Tr);An=En+(Vn===void 0?Ve:Vn),dn=An}for(var Or=tn==="top"?Kt:Ut-Kt,Dr=ar;Dr>=0;Dr-=1){var Jr=Ze(Pe[Dr]),ni=Te.get(Jr);if(ni===void 0){rn=!0;break}if(Or-=ni,Or<=0)break}switch(tn){case"top":Xt=En-Kt;break;case"bottom":Xt=An-Ut+Kt;break;default:{var Nr=Ye.current.scrollTop,di=Nr+Ut;En<Nr?Ft="top":An>di&&(Ft="bottom")}}Xt!==null&&He(Xt),Xt!==Ct.lastTop&&(rn=!0)}rn&&ht((0,oe.Z)((0,oe.Z)({},Ct),{},{times:Ct.times+1,targetAlign:Ft,lastTop:Xt}))}},[Ct,Ye.current]),function(Lt){if(Lt==null){We();return}if(pe.Z.cancel(Ke.current),typeof Lt=="number")He(Lt);else if(Lt&&(0,Pt.Z)(Lt)==="object"){var en,Vt=Lt.align;"index"in Lt?en=Lt.index:en=Pe.findIndex(function(rn){return Ze(rn)===Lt.key});var Kt=Lt.offset,Ut=Kt===void 0?0:Kt;ht({times:0,index:en,offset:Ut,originAlign:Vt})}}}var xt=ve.forwardRef(function(Ye,Pe){var Te=Ye.prefixCls,Ve=Ye.rtl,Ze=Ye.scrollOffset,Ee=Ye.scrollRange,He=Ye.onStartMove,We=Ye.onStopMove,Ke=Ye.onScroll,Je=Ye.horizontal,dt=Ye.spinSize,Ct=Ye.containerSize,ht=Ye.style,Lt=Ye.thumbStyle,en=Ye.showScrollBar,Vt=ve.useState(!1),Kt=(0,De.Z)(Vt,2),Ut=Kt[0],rn=Kt[1],Ft=ve.useState(null),Xt=(0,De.Z)(Ft,2),tn=Xt[0],dn=Xt[1],En=ve.useState(null),An=(0,De.Z)(En,2),ar=An[0],tr=An[1],Tr=!Ve,Vn=ve.useRef(),Or=ve.useRef(),Dr=ve.useState(en),Jr=(0,De.Z)(Dr,2),ni=Jr[0],Nr=Jr[1],di=ve.useRef(),Ir=function(){en===!0||en===!1||(clearTimeout(di.current),Nr(!0),di.current=setTimeout(function(){Nr(!1)},3e3))},ot=Ee-Ct||0,Ci=Ct-dt||0,xi=ve.useMemo(function(){if(Ze===0||ot===0)return 0;var Et=Ze/ot;return Et*Ci},[Ze,ot,Ci]),pr=function(ln){ln.stopPropagation(),ln.preventDefault()},Pr=ve.useRef({top:xi,dragging:Ut,pageY:tn,startTop:ar});Pr.current={top:xi,dragging:Ut,pageY:tn,startTop:ar};var Ar=function(ln){rn(!0),dn(vt(ln,Je)),tr(Pr.current.top),He(),ln.stopPropagation(),ln.preventDefault()};ve.useEffect(function(){var Et=function(It){It.preventDefault()},ln=Vn.current,Pn=Or.current;return ln.addEventListener("touchstart",Et,{passive:!1}),Pn.addEventListener("touchstart",Ar,{passive:!1}),function(){ln.removeEventListener("touchstart",Et),Pn.removeEventListener("touchstart",Ar)}},[]);var Li=ve.useRef();Li.current=ot;var nr=ve.useRef();nr.current=Ci,ve.useEffect(function(){if(Ut){var Et,ln=function(It){var fn=Pr.current,un=fn.dragging,Gn=fn.pageY,Xn=fn.startTop;pe.Z.cancel(Et);var Ht=Vn.current.getBoundingClientRect(),kn=Ct/(Je?Ht.width:Ht.height);if(un){var Wn=(vt(It,Je)-Gn)*kn,lr=Xn;!Tr&&Je?lr-=Wn:lr+=Wn;var on=Li.current,Mn=nr.current,an=Mn?lr/Mn:0,Sn=Math.ceil(an*on);Sn=Math.max(Sn,0),Sn=Math.min(Sn,on),Et=(0,pe.Z)(function(){Ke(Sn,Je)})}},Pn=function(){rn(!1),We()};return window.addEventListener("mousemove",ln,{passive:!0}),window.addEventListener("touchmove",ln,{passive:!0}),window.addEventListener("mouseup",Pn,{passive:!0}),window.addEventListener("touchend",Pn,{passive:!0}),function(){window.removeEventListener("mousemove",ln),window.removeEventListener("touchmove",ln),window.removeEventListener("mouseup",Pn),window.removeEventListener("touchend",Pn),pe.Z.cancel(Et)}}},[Ut]),ve.useEffect(function(){return Ir(),function(){clearTimeout(di.current)}},[Ze]),ve.useImperativeHandle(Pe,function(){return{delayHidden:Ir}});var or="".concat(Te,"-scrollbar"),qt={position:"absolute",visibility:ni?null:"hidden"},Jt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Je?(qt.height=8,qt.left=0,qt.right=0,qt.bottom=0,Jt.height="100%",Jt.width=dt,Tr?Jt.left=xi:Jt.right=xi):(qt.width=8,qt.top=0,qt.bottom=0,Tr?qt.right=0:qt.left=0,Jt.width="100%",Jt.height=dt,Jt.top=xi),ve.createElement("div",{ref:Vn,className:we()(or,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},"".concat(or,"-horizontal"),Je),"".concat(or,"-vertical"),!Je),"".concat(or,"-visible"),ni)),style:(0,oe.Z)((0,oe.Z)({},qt),ht),onMouseDown:pr,onMouseMove:Ir},ve.createElement("div",{ref:Or,className:we()("".concat(or,"-thumb"),(0,Ge.Z)({},"".concat(or,"-thumb-moving"),Ut)),style:(0,oe.Z)((0,oe.Z)({},Jt),Lt),onMouseDown:Ar}))}),yt=xt,ft=20;function gt(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Te=Ye/Pe*Ye;return isNaN(Te)&&(Te=0),Te=Math.max(Te,ft),Math.floor(Te)}var mt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nt=[],Tt={overflowY:"auto",overflowAnchor:"none"};function zt(Ye,Pe){var Te=Ye.prefixCls,Ve=Te===void 0?"rc-virtual-list":Te,Ze=Ye.className,Ee=Ye.height,He=Ye.itemHeight,We=Ye.fullHeight,Ke=We===void 0?!0:We,Je=Ye.style,dt=Ye.data,Ct=Ye.children,ht=Ye.itemKey,Lt=Ye.virtual,en=Ye.direction,Vt=Ye.scrollWidth,Kt=Ye.component,Ut=Kt===void 0?"div":Kt,rn=Ye.onScroll,Ft=Ye.onVirtualScroll,Xt=Ye.onVisibleChange,tn=Ye.innerProps,dn=Ye.extraRender,En=Ye.styles,An=Ye.showScrollBar,ar=An===void 0?"optional":An,tr=(0,me.Z)(Ye,mt),Tr=ve.useCallback(function(Qr){return typeof ht=="function"?ht(Qr):Qr==null?void 0:Qr[ht]},[ht]),Vn=Xe(Tr,null,null),Or=(0,De.Z)(Vn,4),Dr=Or[0],Jr=Or[1],ni=Or[2],Nr=Or[3],di=!!(Lt!==!1&&Ee&&He),Ir=ve.useMemo(function(){return Object.values(ni.maps).reduce(function(Qr,ii){return Qr+ii},0)},[ni.id,ni.maps]),ot=di&&dt&&(Math.max(He*dt.length,Ir)>Ee||!!Vt),Ci=en==="rtl",xi=we()(Ve,(0,Ge.Z)({},"".concat(Ve,"-rtl"),Ci),Ze),pr=dt||Nt,Pr=(0,ve.useRef)(),Ar=(0,ve.useRef)(),Li=(0,ve.useRef)(),nr=(0,ve.useState)(0),or=(0,De.Z)(nr,2),qt=or[0],Jt=or[1],Et=(0,ve.useState)(0),ln=(0,De.Z)(Et,2),Pn=ln[0],$t=ln[1],It=(0,ve.useState)(!1),fn=(0,De.Z)(It,2),un=fn[0],Gn=fn[1],Xn=function(){Gn(!0)},Ht=function(){Gn(!1)},kn={getKey:Tr};function Wn(Qr){Jt(function(ii){var Oi;typeof Qr=="function"?Oi=Qr(ii):Oi=Qr;var Pi=$r(Oi);return Pr.current.scrollTop=Pi,Pi})}var lr=(0,ve.useRef)({start:0,end:pr.length}),on=(0,ve.useRef)(),Mn=ue(pr,Tr),an=(0,De.Z)(Mn,1),Sn=an[0];on.current=Sn;var gn=ve.useMemo(function(){if(!di)return{scrollHeight:void 0,start:0,end:pr.length-1,offset:void 0};if(!ot){var Qr;return{scrollHeight:((Qr=Ar.current)===null||Qr===void 0?void 0:Qr.offsetHeight)||0,start:0,end:pr.length-1,offset:void 0}}for(var ii=0,Oi,Pi,co,To=pr.length,Kr=0;Kr<To;Kr+=1){var Vr=pr[Kr],Yn=Tr(Vr),ci=ni.get(Yn),ro=ii+(ci===void 0?He:ci);ro>=qt&&Oi===void 0&&(Oi=Kr,Pi=ii),ro>qt+Ee&&co===void 0&&(co=Kr),ii=ro}return Oi===void 0&&(Oi=0,Pi=0,co=Math.ceil(Ee/He)),co===void 0&&(co=pr.length-1),co=Math.min(co+1,pr.length-1),{scrollHeight:ii,start:Oi,end:co,offset:Pi}},[ot,di,qt,pr,Nr,Ee]),yn=gn.scrollHeight,On=gn.start,Nn=gn.end,Fn=gn.offset;lr.current.start=On,lr.current.end=Nn,ve.useLayoutEffect(function(){var Qr=ni.getRecord();if(Qr.size===1){var ii=Array.from(Qr)[0],Oi=pr[On];if(Oi){var Pi=Tr(Oi);if(Pi===ii){var co=ni.get(ii),To=co-He;Wn(function(Kr){return Kr+To})}}}ni.resetRecord()},[yn]);var zn=ve.useState({width:0,height:Ee}),xr=(0,De.Z)(zn,2),mn=xr[0],Fr=xr[1],Yr=function(ii){Fr({width:ii.offsetWidth,height:ii.offsetHeight})},Br=(0,ve.useRef)(),bn=(0,ve.useRef)(),Jn=ve.useMemo(function(){return gt(mn.width,Vt)},[mn.width,Vt]),sr=ve.useMemo(function(){return gt(mn.height,yn)},[mn.height,yn]),Sr=yn-Ee,mr=(0,ve.useRef)(Sr);mr.current=Sr;function $r(Qr){var ii=Qr;return Number.isNaN(mr.current)||(ii=Math.min(ii,mr.current)),ii=Math.max(ii,0),ii}var ri=qt<=0,Rr=qt>=Sr,br=Pn<=0,ur=Pn>=Vt,vn=Fe(ri,Rr,br,ur),cr=function(){return{x:Ci?-Pn:Pn,y:qt}},xn=(0,ve.useRef)(cr()),zr=(0,Se.useEvent)(function(Qr){if(Ft){var ii=(0,oe.Z)((0,oe.Z)({},cr()),Qr);(xn.current.x!==ii.x||xn.current.y!==ii.y)&&(Ft(ii),xn.current=ii)}});function $i(Qr,ii){var Oi=Qr;ii?((0,xe.flushSync)(function(){$t(Oi)}),zr()):Wn(Oi)}function Mi(Qr){var ii=Qr.currentTarget.scrollTop;ii!==qt&&Wn(ii),rn==null||rn(Qr),zr()}var yo=function(ii){var Oi=ii,Pi=Vt?Vt-mn.width:0;return Oi=Math.max(Oi,0),Oi=Math.min(Oi,Pi),Oi},no=(0,Se.useEvent)(function(Qr,ii){ii?((0,xe.flushSync)(function(){$t(function(Oi){var Pi=Oi+(Ci?-Qr:Qr);return yo(Pi)})}),zr()):Wn(function(Oi){var Pi=Oi+Qr;return Pi})}),Wr=je(di,ri,Rr,br,ur,!!Vt,no),Hr=(0,De.Z)(Wr,2),wi=Hr[0],vi=Hr[1];lt(di,Pr,function(Qr,ii,Oi,Pi){var co=Pi;return vn(Qr,ii,Oi)?!1:!co||!co._virtualHandled?(co&&(co._virtualHandled=!0),wi({preventDefault:function(){},deltaX:Qr?ii:0,deltaY:Qr?0:ii}),!0):!1}),nt(ot,Pr,function(Qr){Wn(function(ii){return ii+Qr})}),(0,Oe.Z)(function(){function Qr(Oi){var Pi=ri&&Oi.detail<0,co=Rr&&Oi.detail>0;di&&!Pi&&!co&&Oi.preventDefault()}var ii=Pr.current;return ii.addEventListener("wheel",wi,{passive:!1}),ii.addEventListener("DOMMouseScroll",vi,{passive:!0}),ii.addEventListener("MozMousePixelScroll",Qr,{passive:!1}),function(){ii.removeEventListener("wheel",wi),ii.removeEventListener("DOMMouseScroll",vi),ii.removeEventListener("MozMousePixelScroll",Qr)}},[di,ri,Rr]),(0,Oe.Z)(function(){if(Vt){var Qr=yo(Pn);$t(Qr),zr({x:Qr})}},[mn.width,Vt]);var fr=function(){var ii,Oi;(ii=Br.current)===null||ii===void 0||ii.delayHidden(),(Oi=bn.current)===null||Oi===void 0||Oi.delayHidden()},kt=pt(Pr,pr,ni,He,Tr,function(){return Jr(!0)},Wn,fr);ve.useImperativeHandle(Pe,function(){return{nativeElement:Li.current,getScrollInfo:cr,scrollTo:function(ii){function Oi(Pi){return Pi&&(0,Pt.Z)(Pi)==="object"&&("left"in Pi||"top"in Pi)}Oi(ii)?(ii.left!==void 0&&$t(yo(ii.left)),kt(ii.top)):kt(ii)}}}),(0,Oe.Z)(function(){if(Xt){var Qr=pr.slice(On,Nn+1);Xt(Qr,pr)}},[On,Nn,pr]);var Fi=ke(pr,Tr,ni,He),Ki=dn==null?void 0:dn({start:On,end:Nn,virtual:ot,offsetX:Pn,offsetY:Fn,rtl:Ci,getSize:Fi}),gi=ae(pr,On,Nn,Vt,Pn,Dr,Ct,kn),oo=null;Ee&&(oo=(0,oe.Z)((0,Ge.Z)({},Ke?"height":"maxHeight",Ee),Tt),di&&(oo.overflowY="hidden",Vt&&(oo.overflowX="hidden"),un&&(oo.pointerEvents="none")));var So={};return Ci&&(So.dir="rtl"),ve.createElement("div",(0,tt.Z)({ref:Li,style:(0,oe.Z)((0,oe.Z)({},Je),{},{position:"relative"}),className:xi},So,tr),ve.createElement(Le.Z,{onResize:Yr},ve.createElement(Ut,{className:"".concat(Ve,"-holder"),style:oo,ref:Pr,onScroll:Mi,onMouseEnter:fr},ve.createElement(z,{prefixCls:Ve,height:yn,offsetX:Pn,offsetY:Fn,scrollWidth:Vt,onInnerResize:Jr,ref:Ar,innerProps:tn,rtl:Ci,extra:Ki},gi))),ot&&yn>Ee&&ve.createElement(yt,{ref:Br,prefixCls:Ve,scrollOffset:qt,scrollRange:yn,rtl:Ci,onScroll:$i,onStartMove:Xn,onStopMove:Ht,spinSize:sr,containerSize:mn.height,style:En==null?void 0:En.verticalScrollBar,thumbStyle:En==null?void 0:En.verticalScrollBarThumb,showScrollBar:ar}),ot&&Vt>mn.width&&ve.createElement(yt,{ref:bn,prefixCls:Ve,scrollOffset:Pn,scrollRange:Vt,rtl:Ci,onScroll:$i,onStartMove:Xn,onStopMove:Ht,spinSize:Jn,containerSize:mn.width,horizontal:!0,style:En==null?void 0:En.horizontalScrollBar,thumbStyle:En==null?void 0:En.horizontalScrollBarThumb,showScrollBar:ar}))}var St=ve.forwardRef(zt);St.displayName="List";var wt=St,at=wt},93314:function(Rn){"use strict";Rn.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(Rn){"use strict";Rn.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(Rn){"use strict";Rn.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(Rn){"use strict";Rn.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(Rn,wn,$e){"use strict";$e.d(wn,{Z:function(){return we}});const tt=Le=>typeof Le=="object"&&Le!=null&&Le.nodeType===1,Pt=(Le,Se)=>(!Se||Le!=="hidden")&&Le!=="visible"&&Le!=="clip",oe=(Le,Se)=>{if(Le.clientHeight<Le.scrollHeight||Le.clientWidth<Le.scrollWidth){const Oe=getComputedStyle(Le,null);return Pt(Oe.overflowY,Se)||Pt(Oe.overflowX,Se)||(ve=>{const xe=(fe=>{if(!fe.ownerDocument||!fe.ownerDocument.defaultView)return null;try{return fe.ownerDocument.defaultView.frameElement}catch(z){return null}})(ve);return!!xe&&(xe.clientHeight<ve.scrollHeight||xe.clientWidth<ve.scrollWidth)})(Le)}return!1},Ge=(Le,Se,Oe,ve,xe,fe,z,ee)=>fe<Le&&z>Se||fe>Le&&z<Se?0:fe<=Le&&ee<=Oe||z>=Se&&ee>=Oe?fe-Le-ve:z>Se&&ee<Oe||fe<Le&&ee>Oe?z-Se+xe:0,De=Le=>{const Se=Le.parentElement;return Se==null?Le.getRootNode().host||null:Se},me=(Le,Se)=>{var Oe,ve,xe,fe;if(typeof document=="undefined")return[];const{scrollMode:z,block:ee,inline:ae,boundary:re,skipOverflowHiddenElements:le}=Se,ue=typeof re=="function"?re:yt=>yt!==re;if(!tt(Le))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,be=[];let Ce=Le;for(;tt(Ce)&&ue(Ce);){if(Ce=De(Ce),Ce===pe){be.push(Ce);break}Ce!=null&&Ce===document.body&&oe(Ce)&&!oe(document.documentElement)||Ce!=null&&oe(Ce,le)&&be.push(Ce)}const Fe=(ve=(Oe=window.visualViewport)==null?void 0:Oe.width)!=null?ve:innerWidth,je=(fe=(xe=window.visualViewport)==null?void 0:xe.height)!=null?fe:innerHeight,{scrollX:ke,scrollY:Ae}=window,{height:Be,width:_e,top:et,right:ze,bottom:Xe,left:Qe}=Le.getBoundingClientRect(),{top:lt,right:ct,bottom:vt,left:nt}=(yt=>{const ft=window.getComputedStyle(yt);return{top:parseFloat(ft.scrollMarginTop)||0,right:parseFloat(ft.scrollMarginRight)||0,bottom:parseFloat(ft.scrollMarginBottom)||0,left:parseFloat(ft.scrollMarginLeft)||0}})(Le);let it=ee==="start"||ee==="nearest"?et-lt:ee==="end"?Xe+vt:et+Be/2-lt+vt,pt=ae==="center"?Qe+_e/2-nt+ct:ae==="end"?ze+ct:Qe-nt;const xt=[];for(let yt=0;yt<be.length;yt++){const ft=be[yt],{height:gt,width:mt,top:Nt,right:Tt,bottom:zt,left:St}=ft.getBoundingClientRect();if(z==="if-needed"&&et>=0&&Qe>=0&&Xe<=je&&ze<=Fe&&(ft===pe&&!oe(ft)||et>=Nt&&Xe<=zt&&Qe>=St&&ze<=Tt))return xt;const wt=getComputedStyle(ft),at=parseInt(wt.borderLeftWidth,10),Ye=parseInt(wt.borderTopWidth,10),Pe=parseInt(wt.borderRightWidth,10),Te=parseInt(wt.borderBottomWidth,10);let Ve=0,Ze=0;const Ee="offsetWidth"in ft?ft.offsetWidth-ft.clientWidth-at-Pe:0,He="offsetHeight"in ft?ft.offsetHeight-ft.clientHeight-Ye-Te:0,We="offsetWidth"in ft?ft.offsetWidth===0?0:mt/ft.offsetWidth:0,Ke="offsetHeight"in ft?ft.offsetHeight===0?0:gt/ft.offsetHeight:0;if(pe===ft)Ve=ee==="start"?it:ee==="end"?it-je:ee==="nearest"?Ge(Ae,Ae+je,je,Ye,Te,Ae+it,Ae+it+Be,Be):it-je/2,Ze=ae==="start"?pt:ae==="center"?pt-Fe/2:ae==="end"?pt-Fe:Ge(ke,ke+Fe,Fe,at,Pe,ke+pt,ke+pt+_e,_e),Ve=Math.max(0,Ve+Ae),Ze=Math.max(0,Ze+ke);else{Ve=ee==="start"?it-Nt-Ye:ee==="end"?it-zt+Te+He:ee==="nearest"?Ge(Nt,zt,gt,Ye,Te+He,it,it+Be,Be):it-(Nt+gt/2)+He/2,Ze=ae==="start"?pt-St-at:ae==="center"?pt-(St+mt/2)+Ee/2:ae==="end"?pt-Tt+Pe+Ee:Ge(St,Tt,mt,at,Pe+Ee,pt,pt+_e,_e);const{scrollLeft:Je,scrollTop:dt}=ft;Ve=Ke===0?0:Math.max(0,Math.min(dt+Ve/Ke,ft.scrollHeight-gt/Ke+He)),Ze=We===0?0:Math.max(0,Math.min(Je+Ze/We,ft.scrollWidth-mt/We+Ee)),it+=dt-Ve,pt+=Je-Ze}xt.push({el:ft,top:Ve,left:Ze})}return xt},ce=Le=>Le===!1?{block:"end",inline:"nearest"}:(Se=>Se===Object(Se)&&Object.keys(Se).length!==0)(Le)?Le:{block:"start",inline:"nearest"};function we(Le,Se){if(!Le.isConnected||!(xe=>{let fe=xe;for(;fe&&fe.parentNode;){if(fe.parentNode===document)return!0;fe=fe.parentNode instanceof ShadowRoot?fe.parentNode.host:fe.parentNode}return!1})(Le))return;const Oe=(xe=>{const fe=window.getComputedStyle(xe);return{top:parseFloat(fe.scrollMarginTop)||0,right:parseFloat(fe.scrollMarginRight)||0,bottom:parseFloat(fe.scrollMarginBottom)||0,left:parseFloat(fe.scrollMarginLeft)||0}})(Le);if((xe=>typeof xe=="object"&&typeof xe.behavior=="function")(Se))return Se.behavior(me(Le,Se));const ve=typeof Se=="boolean"||Se==null?void 0:Se.behavior;for(const{el:xe,top:fe,left:z}of me(Le,ce(Se))){const ee=fe-Oe.top+Oe.bottom,ae=z-Oe.left+Oe.right;xe.scroll({top:ee,left:ae,behavior:ve})}}}}]);
|