|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5382],{89489:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},59477:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(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"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},40001:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},26227:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},49198:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(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"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},41464:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},73331:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},15277:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},52671:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},8657:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},56082:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},33853:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},15075:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},43531:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},61485:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},38819:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},47472:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Se,Pe){return Mt.createElement(je.Z,(0,et.Z)({},Se,{ref:Pe,icon:ze}))},ce=Mt.forwardRef(ve),we=ce},37036:function(){"use strict"},88010:function(_n,Pn){"use strict";Pn.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 _n(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(_n.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(_n.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(_n.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(_n.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 _n))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 Pn=[];function Ge(fe,z){var ee=Pn.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function et(){var fe=Pn.pop();return fe===void 0?new go.Point:fe}function Mt(fe){Pn.push(fe)}function oe(fe,z,ee,ae,re,le,ue,pe,be){be||(be=new go.Point);var Ce=fe-ee,Ie=re-ue,Oe=NaN,Le=NaN;if(Ce===0)if(Ie===0)fe===ee&&(Oe=fe,Le=z);else{var Ne=(le-pe)/Ie,De=le-Ne*re;Oe=fe,Le=Ne*Oe+De}else if(Ie===0){var Re=(z-ae)/Ce,Je=z-Re*fe;Oe=re,Le=Re*Oe+Je}else{var Re=(z-ae)/Ce,Ne=(le-pe)/Ie,Je=z-Re*fe,De=le-Ne*re;Oe=(De-Je)/(Re-Ne),Le=Re*Oe+Je}return be.x=Oe,be.y=Le,be}function ze(fe,z,ee,ae,re,le,ue,pe,be,Ce,Ie,Oe,Le,Ne){var De=1-be,Re=be,Je=fe*De+ee*Re,_e=z*De+ae*Re,Ve=ee*De+re*Re,Qe=ae*De+le*Re,ut=re*De+ue*Re,dt=le*De+pe*Re,St=Je*De+Ve*Re,qe=_e*De+Qe*Re,it=Ve*De+ut*Re,pt=Qe*De+dt*Re,wt=St*De+it*Re,xt=qe*De+pt*Re;Ce.x=Je,Ce.y=_e,Ie.x=St,Ie.y=qe,Oe.x=wt,Oe.y=xt,Le.x=it,Le.y=pt,Ne.x=ut,Ne.y=dt}var je=new go.Spot(.156,.156),ve=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _n("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=je,re.spot2=ve,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 _n("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 _n("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 _n("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 _n("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 _n("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 Me(){var fe=we.pop();return fe===void 0?[]:fe}function Se(fe){fe.length=0,we.push(fe)}function Pe(fe){for(var z=Me(),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 me(fe){var z=xe(fe),ee=Me();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=Pe(fe),ee=Me(),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],Ie=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,Ie.x,Ie.y,new go.Point)}return ee[ee.length]=ee[0],Se(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(fe,z,ee){var ae=Pe(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=Pe(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=Pe(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=Pe(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=Pe(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=Pe(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=Pe(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=me(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),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=me(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),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=me(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),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=me(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),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=me(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),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=me(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.setFigureParameter("FramedRectangle",0,new _n("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new _n("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 _n("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=je,le.spot2=ve,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 _n("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _n("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 _n("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 _n("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 _n("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,Ie=new go.PathFigure(be,0,!0);return re.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,z-be,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,z,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,z,ee-Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,z-be,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,be,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new _n("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 _n("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 _n("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=et(),Ie=et(),Oe=et(),Le=et();ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,Ce,Ie,Oe,Le,Le);var Ne=et(),De=et(),Re=et();ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,Le,Le,Re,Ne,De);var Je=et(),_e=et(),Ve=et();ze(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,Je,_e,Ve,Le,Le);var Qe=et(),ut=et(),dt=et();return ze(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,Le,Le,dt,Qe,ut),be.add(new go.PathSegment(go.PathSegment.Move,dt.x*z,dt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Qe.x*z,Qe.y*ee,ut.x*z,ut.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,Oe.x*z,Oe.y*ee,Ce.x*z,Ce.y*ee,Ie.x*z,Ie.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,dt.x*z,dt.y*ee).close()),be.add(new go.PathSegment(go.PathSegment.Move,Ve.x*z,Ve.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,Re.x*z,Re.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ne.x*z,Ne.y*ee,De.x*z,De.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,Ve.x*z,Ve.y*ee,Je.x*z,Je.y*ee,_e.x*z,_e.y*ee).close()),Mt(Ce),Mt(Ie),Mt(Oe),Mt(Le),Mt(Ne),Mt(De),Mt(Re),Mt(Je),Mt(_e),Mt(Ve),Mt(Qe),Mt(ut),Mt(dt),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 _n("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=et(),Ce=et(),Ie=et(),Oe=et(),Le=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Ie,Oe,Ce,be,be),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Ie.x*z,Ie.y*ee,Oe.x*z,Oe.y*ee));var Ne=Ge(Ce.x,Ce.y);ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,be,be,Ce,Ie,Oe);var De=Ge(Ce.x,Ce.y);Le.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.95*.9)*z,Ne.y*.1*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*z,Ne.y*.1*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),Le.add(new go.PathSegment(go.PathSegment.Line,z,0)),Le.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*z,.15*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*z,(De.y*.1+.05*.9)*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,De.x*z,De.y*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ie.x*z,Ie.y*ee,Oe.x*z,Oe.y*ee)),Le.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.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 Re=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee));var Je=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Je),Mt(be),Mt(Ce),Mt(Ie),Mt(Oe),Mt(Ne),Mt(De),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 _n("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _n("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 Ie=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,et());return be.spot2=new go.Spot(Ie.x,Ie.y),Mt(Ie),be}),go.Shape.setFigureParameter("Arrow2",0,new _n("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _n("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 Ie=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,et());return be.spot2=new go.Spot(Ie.x,Ie.y),Mt(Ie),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 _n("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,et());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),Mt(be),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _n("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _n("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,Ie=new go.PathFigure(z,.5*ee,!0);Ce.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Oe=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,et());return Ce.spot1=new go.Spot(Oe.x,Oe.y),Oe=oe(.7,be/ee,1,.5,0,ue/ee,1,ue/ee,Oe),Ce.spot2=new go.Spot(Oe.x,Oe.y),Mt(Oe),Ce}),go.Shape.setFigureParameter("IBeamArrow",0,new _n("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,et());return ue.spot2=new go.Spot(be.x,be.y),Mt(be),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new _n("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _n("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,Ie=new go.PathFigure(z,.5*ee,!0);Ce.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Ce.spot1=new go.Spot(0,le/ee);var Oe=oe(.7,be/ee,1,.5,0,ue/ee,1,ue/ee,et());return Ce.spot2=new go.Spot(Oe.x,Oe.y),Mt(Oe),Ce}),go.Shape.setFigureParameter("Pointer",0,new _n("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,et());return re.spot2=new go.Spot(ue.x,ue.y),Mt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new _n("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,et());return re.spot2=new go.Spot(ue.x,ue.y),Mt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new _n("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,et());return ue.spot2=new go.Spot(be.x,be.y),Mt(be),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _n("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,et());return ue.spot2=new go.Spot(be.x,be.y),Mt(be),ue}),go.Shape.setFigureParameter("SquareArrow",0,new _n("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,Ie=new go.PathFigure(be*z,(Ce+le)*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(be-re)*z,Ce*ee,(be-ue)*z,(Ce+le)*ee,(be-re)*z,(Ce+pe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-le)*ee,(be-re)*z,(Ce-pe)*ee,(be-ue)*z,(Ce-le)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(be+re)*z,Ce*ee,(be+ue)*z,(Ce-le)*ee,(be+re)*z,(Ce-pe)*ee)),Ie.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 Oe=.05,Le=ce*Oe;be=.05,Ce=.25;var Ne=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),be=.95,Ce=.25,Ne.add(new go.PathSegment(go.PathSegment.Bezier,(be+Oe)*z,Ce*ee,(be+Le)*z,(Ce-Oe)*ee,(be+Oe)*z,(Ce-Le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Oe=.025,Le=ce*Oe,be=.825,Ce=.35,Ne.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-Oe)*ee,(be+Oe)*z,(Ce-Le)*ee,(be+Le)*z,(Ce-Oe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(be-Oe)*z,Ce*ee,(be-Le)*z,(Ce-Oe)*ee,(be-Oe)*z,(Ce-Le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Oe=.05,Le=ce*Oe,be=.5,Ce=.7,Ne.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-Oe)*ee,(be+Oe)*z,(Ce-Le)*ee,(be+Le)*z,(Ce-Oe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(be-Oe)*z,Ce*ee,(be-Le)*z,(Ce-Oe)*ee,(be-Oe)*z,(Ce-Le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Oe=.025,Le=ce*Oe,be=.175,Ce=.35,Ne.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-Oe)*ee,(be+Oe)*z,(Ce-Le)*ee,(be+Le)*z,(Ce-Oe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(be-Oe)*z,Ce*ee,(be-Le)*z,(Ce-Oe)*ee,(be-Oe)*z,(Ce-Le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Oe=.05,Le=ce*Oe,be=.05,Ce=.25,Ne.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-Oe)*ee,(be-Oe)*z,(Ce-Le)*ee,(be-Le)*z,(Ce-Oe)*ee)),Ne.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 _n("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,Ie=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var Oe=new go.PathFigure((be+pe)*z,Ce*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z,Ce*ee,(be-ue)*z,(Ce+pe)*ee,(be-pe)*z,(Ce+ue)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee)),Oe.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 Ie=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ie.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,Ie=(re-z)/2,Oe=(le-ee)/2,Le=new go.PathFigure(be*z+Ie,(Ce+pe)*ee+Oe,!0);ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Ie,Ce*ee+Oe,(be-ue)*z+Ie,(Ce+pe)*ee+Oe,(be-pe)*z+Ie,(Ce+ue)*ee+Oe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce-pe)*ee+Oe,(be-pe)*z+Ie,(Ce-ue)*ee+Oe,(be-ue)*z+Ie,(Ce-pe)*ee+Oe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe+ue*.5)*z+Ie,Ce*ee+Oe,be*z+Ie,(Ce-pe)*ee+Oe,(be-pe+ue*.5)*z+Ie,(Ce-ue)*ee+Oe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce+pe)*ee+Oe,(be-pe+ue*.5)*z+Ie,(Ce+ue)*ee+Oe,be*z+Ie,(Ce+pe)*ee+Oe).close()),ue=ce*.4,pe=.4,be=.2,Ce=.5;var Ne=new go.PathFigure(be*z+Ie,(Ce+pe)*ee+Oe,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Ie,Ce*ee+Oe,(be-ue)*z+Ie,(Ce+pe)*ee+Oe,(be-pe)*z+Ie,(Ce+ue)*ee+Oe)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce-pe)*ee+Oe,(be-pe)*z+Ie,(Ce-ue)*ee+Oe,(be-ue)*z+Ie,(Ce-pe)*ee+Oe)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe+ue*.5)*z+Ie,Ce*ee+Oe,be*z+Ie,(Ce-pe)*ee+Oe,(be-pe+ue*.5)*z+Ie,(Ce-ue)*ee+Oe)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce+pe)*ee+Oe,(be-pe+ue*.5)*z+Ie,(Ce+ue)*ee+Oe,be*z+Ie,(Ce+pe)*ee+Oe).close()),ue=ce*.2,pe=.2,be=.5,Ce=.5;var De=new go.PathFigure((be-pe)*z+Ie,Ce*ee+Oe,!0);ae.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce-pe)*ee+Oe,(be-pe)*z+Ie,(Ce-ue)*ee+Oe,(be-ue)*z+Ie,(Ce-pe)*ee+Oe)),De.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Ie,Ce*ee+Oe,(be+ue)*z+Ie,(Ce-pe)*ee+Oe,(be+pe)*z+Ie,(Ce-ue)*ee+Oe)),De.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce+pe)*ee+Oe,(be+pe)*z+Ie,(Ce+ue)*ee+Oe,(be+ue)*z+Ie,(Ce+pe)*ee+Oe)),De.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z+Ie,Ce*ee+Oe,(be-ue)*z+Ie,(Ce+pe)*ee+Oe,(be-pe)*z+Ie,(Ce+ue)*ee+Oe)),ue=ce*.4,pe=.4,be=.8,Ce=.5;var Re=new go.PathFigure(be*z+Ie,(Ce-pe)*ee+Oe,!0);ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Ie,Ce*ee+Oe,(be+ue)*z+Ie,(Ce-pe)*ee+Oe,(be+pe)*z+Ie,(Ce-ue)*ee+Oe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce+pe)*ee+Oe,(be+pe)*z+Ie,(Ce+ue)*ee+Oe,(be+ue)*z+Ie,(Ce+pe)*ee+Oe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe-ue*.5)*z+Ie,Ce*ee+Oe,be*z+Ie,(Ce+pe)*ee+Oe,(be+pe-ue*.5)*z+Ie,(Ce+ue)*ee+Oe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce-pe)*ee+Oe,(be+pe-ue*.5)*z+Ie,(Ce-ue)*ee+Oe,be*z+Ie,(Ce-pe)*ee+Oe).close()),ue=ce*.8,pe=.8,be=1,Ce=.5;var Je=new go.PathFigure(be*z+Ie,(Ce-pe)*ee+Oe,!0);return ae.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z+Ie,Ce*ee+Oe,(be+ue)*z+Ie,(Ce-pe)*ee+Oe,(be+pe)*z+Ie,(Ce-ue)*ee+Oe)),Je.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce+pe)*ee+Oe,(be+pe)*z+Ie,(Ce+ue)*ee+Oe,(be+ue)*z+Ie,(Ce+pe)*ee+Oe)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe-ue*.5)*z+Ie,Ce*ee+Oe,be*z+Ie,(Ce+pe)*ee+Oe,(be+pe-ue*.5)*z+Ie,(Ce+ue)*ee+Oe)),Je.add(new go.PathSegment(go.PathSegment.Bezier,be*z+Ie,(Ce-pe)*ee+Oe,(be+pe-ue*.5)*z+Ie,(Ce-ue)*ee+Oe,be*z+Ie,(Ce-pe)*ee+Oe).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=et(),Ce=et(),Ie=et(),Oe=et();ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,be,be,Ce,Ie,Oe);var Le=Ge(Ce.x,Ce.y),Ne=new go.PathFigure(Ce.x*z,Ce.y*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ie.x*z,Ie.y*ee,Oe.x*z,Oe.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),ze(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ie,Oe,Ce,be,be),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Ie.x*z,Ie.y*ee,Oe.x*z,Oe.y*ee)),re=ce*.3,le=.3,ze(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ie,Oe,Ce,be,be),Ne.add(new go.PathSegment(go.PathSegment.Line,Ce.x*z,Ce.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Oe.x*z,Oe.y*ee,Ie.x*z,Ie.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,be,be,Ce,Ie,Oe),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Oe.x*z,Oe.y*ee,Ie.x*z,Ie.y*ee).close());var Ne=new go.PathFigure(.45*z,0,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),Mt(be),Mt(Ce),Mt(Ie),Mt(Oe),Mt(Le),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,Ie=1,Oe=.5,Le=.5,Ne=0,De=new go.PathFigure(be*z,(1-Ce)*ee,!1);return ae.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,Oe*ee,Ie*z,.7*ee,Ie*z,Oe*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Le+le)*z,(Ne+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),De.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)),De.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)),De.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),De.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),De.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,Ie=4*(1-Math.cos(Ce))/(3*Math.sin(Ce)),Oe=Ie*.5,Le=ue,Ne=ue,De=Ie*Le,Re=Ie*Ne;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-Le)*z,be*ee,(pe-(De+Le)/2)*z,(be+(Ne+Re)/2)*ee,(pe-Le)*z,(be+Re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(be-Ne)*ee,(pe-Le)*z,(be-Re)*ee,(pe-De)*z,(be-Ne)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+Le)*z,be*ee,(pe+De)*z,(be-Ne)*ee,(pe+Le)*z,(be-Re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+Le)*z,(be+Re)*ee,(pe+(De+Le)/2)*z,(be+(Ne+Re)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var Je=new go.PathFigure(.2*z,ee,!1);ae.add(Je),Je.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var _e=new go.PathFigure(.8*z,ee,!1);return ae.add(_e),_e.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,Ie=new go.PathFigure((be-ue)*z,Ce*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(be+ue)*z,Ce*ee,(be+pe)*z,(Ce-ue)*ee,(be+ue)*z,(Ce-pe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee)),Ie.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 Oe=new go.PathFigure((be-ue)*z,Ce*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce-ue)*ee,(be-ue)*z,(Ce-pe)*ee,(be-pe)*z,(Ce-ue)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(be+ue)*z,Ce*ee,(be+pe)*z,(Ce-ue)*ee,(be+ue)*z,(Ce-pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ce+ue)*ee,(be+ue)*z,(Ce+pe)*ee,(be+pe)*z,(Ce+ue)*ee)),Oe.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,Ie=.1,Oe=.9,Le=new go.PathFigure((Ie-be)*z,Oe*ee,!0);ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Oe-be)*ee,(Ie-be)*z,(Oe-Ce)*ee,(Ie-Ce)*z,(Oe-be)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+be)*z,Oe*ee,(Ie+Ce)*z,(Oe-be)*ee,(Ie+be)*z,(Oe-Ce)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Oe+be)*ee,(Ie+be)*z,(Oe+Ce)*ee,(Ie+Ce)*z,(Oe+be)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-be)*z,Oe*ee,(Ie-Ce)*z,(Oe+be)*ee,(Ie-be)*z,(Oe+Ce)*ee)),be=.1,Ce=ce*.1,Ie=.4,Oe=.9;var Ne=new go.PathFigure((Ie-be)*z,Oe*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Oe-be)*ee,(Ie-be)*z,(Oe-Ce)*ee,(Ie-Ce)*z,(Oe-be)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+be)*z,Oe*ee,(Ie+Ce)*z,(Oe-be)*ee,(Ie+be)*z,(Oe-Ce)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Oe+be)*ee,(Ie+be)*z,(Oe+Ce)*ee,(Ie+Ce)*z,(Oe+be)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-be)*z,Oe*ee,(Ie-Ce)*z,(Oe+be)*ee,(Ie-be)*z,(Oe+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 Ie=.05,Oe=ce*.05,Le=.175,Ne=.95,pe=new go.PathFigure((Le-Ie)*z,Ne*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(Ne-Ie)*ee,(Le-Ie)*z,(Ne-Oe)*ee,(Le-Oe)*z,(Ne-Ie)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Ie)*z,Ne*ee,(Le+Oe)*z,(Ne-Ie)*ee,(Le+Ie)*z,(Ne-Oe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(Ne+Ie)*ee,(Le+Ie)*z,(Ne+Oe)*ee,(Le+Oe)*z,(Ne+Ie)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Ie)*z,Ne*ee,(Le-Oe)*z,(Ne+Ie)*ee,(Le-Ie)*z,(Ne+Oe)*ee));var Ie=.05,Oe=ce*.05,Le=.375,Ne=.95,be=new go.PathFigure((Le-Ie)*z,Ne*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(Ne-Ie)*ee,(Le-Ie)*z,(Ne-Oe)*ee,(Le-Oe)*z,(Ne-Ie)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Ie)*z,Ne*ee,(Le+Oe)*z,(Ne-Ie)*ee,(Le+Ie)*z,(Ne-Oe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(Ne+Ie)*ee,(Le+Ie)*z,(Ne+Oe)*ee,(Le+Oe)*z,(Ne+Ie)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Ie)*z,Ne*ee,(Le-Oe)*z,(Ne+Ie)*ee,(Le-Ie)*z,(Ne+Oe)*ee));var Ie=.05,Oe=ce*.05,Le=.625,Ne=.95,Ce=new go.PathFigure((Le-Ie)*z,Ne*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(Ne-Ie)*ee,(Le-Ie)*z,(Ne-Oe)*ee,(Le-Oe)*z,(Ne-Ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Ie)*z,Ne*ee,(Le+Oe)*z,(Ne-Ie)*ee,(Le+Ie)*z,(Ne-Oe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(Ne+Ie)*ee,(Le+Ie)*z,(Ne+Oe)*ee,(Le+Oe)*z,(Ne+Ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Ie)*z,Ne*ee,(Le-Oe)*z,(Ne+Ie)*ee,(Le-Ie)*z,(Ne+Oe)*ee));var Ie=.05,Oe=ce*.05,Le=.825,Ne=.95,De=new go.PathFigure((Le-Ie)*z,Ne*ee,!0);ae.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(Ne-Ie)*ee,(Le-Ie)*z,(Ne-Oe)*ee,(Le-Oe)*z,(Ne-Ie)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Ie)*z,Ne*ee,(Le+Oe)*z,(Ne-Ie)*ee,(Le+Ie)*z,(Ne-Oe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(Ne+Ie)*ee,(Le+Ie)*z,(Ne+Oe)*ee,(Le+Oe)*z,(Ne+Ie)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Ie)*z,Ne*ee,(Le-Oe)*z,(Ne+Ie)*ee,(Le-Ie)*z,(Ne+Oe)*ee).close());var Re=new go.PathFigure(0,ee,!1);return ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(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,Ie=.775,Oe=new go.PathFigure((Ce-pe)*z,Ie*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Ie-pe)*ee,(Ce-pe)*z,(Ie-be)*ee,(Ce-be)*z,(Ie-pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z,Ie*ee,(Ce+be)*z,(Ie-pe)*ee,(Ce+pe)*z,(Ie-be)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Ie+pe)*ee,(Ce+pe)*z,(Ie+be)*ee,(Ce+be)*z,(Ie+pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z,Ie*ee,(Ce-be)*z,(Ie+pe)*ee,(Ce-pe)*z,(Ie+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 _n={},Pn="5.0",Ge={},et=null,Mt=!1,oe=!1,ze=null,je=!1,ve=null,ce=null,we=0;we<arguments.length;we++){var Me=arguments[we];if(Me!==null)switch(typeof Me){case"number":Pn=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?Pn=Me:ze=Me;break;case"object":typeof Me.is3D!="undefined"?et=Me:Ge=Me;break;case"boolean":Mt=Me,oe=!0;break}}et===null&&(et={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ge.material_id!==void 0&&!oe&&(Mt=!0)),ze!==null&&Ge.id===void 0&&(Ge.id=ze);var Se="",Pe="",me=!1,xe=null,fe=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;Ge.height!==void 0&&(Ge.height=Math.round(Ge.height)),Ge.width!==void 0&&(Ge.width=Math.round(Ge.width));var be=function(ft){return parseFloat(ft)>4?parseFloat(ft):5};_n.setHTML5Codebase=function(ft,mt){ce=ft,pt(ft,mt)},_n.setJavaCodebase=_n.setJavaCodebaseVersion=_n.isCompiledInstalled=_n.setPreCompiledScriptPath=_n.setPreCompiledResourcePath=function(){},_n.setHTML5CodebaseVersion=function(ft,mt){var yt=parseFloat(ft);if(yt!==NaN&&yt<5){console.log("The GeoGebra HTML5 codebase version "+yt+" is deprecated. Using version latest instead.");return}ve=ft,it(ft,mt)},_n.getHTML5CodebaseVersion=function(){return fe},_n.getParameters=function(){return Ge},_n.setFontsCSSURL=function(ft){ue=ft},_n.setGiacJSURL=function(ft){},_n.setJNLPFile=function(ft){Se=ft},_n.setJNLPBaseDir=function(ft){},_n.inject=function(){function ft(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var mt="auto",yt=Ge.id,It,kt=!1,Ut=0;Ut<arguments.length;Ut++){var Pt=arguments[Ut];typeof Pt=="string"?(Pt=Pt.toLowerCase(),Pt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?mt=Pt:yt=arguments[Ut]):typeof Pt=="boolean"?kt=Pt:Pt instanceof HTMLElement&&(It=Pt)}Ct();function Ct(){if(!je){setTimeout(Ct,200);return}mt=St(mt);var st=It||document.getElementById(yt);if(!st){console.log("possibly bug on ajax loading? ");return}if(_n.removeExistingApplet(st,!1),Ge.width===void 0&&st.clientWidth&&(Ge.width=st.clientWidth),Ge.height===void 0&&st.clientHeight&&(Ge.height=st.clientHeight),!(Ge.width&&Ge.height)&&mt==="html5"&&(delete Ge.width,delete Ge.height),xe=mt,mt==="screenshot")_e(st,Ge);else{var bt=!1;Ge.hasOwnProperty("playButton")&&Ge.playButton||Ge.hasOwnProperty("clickToLoad")&&Ge.clickToLoad?bt=!0:Ge.hasOwnProperty("playButtonAutoDecide")&&Ge.playButtonAutoDecide&&(bt=(!Ce()||ft())&&Ie()),bt?(xe="screenshot",Qe(st,Ge,kt,mt)):Je(st,Ge,kt)}}};function Ce(){try{return window.self!==window.top}catch(ft){return!0}}function Ie(){return Ge.hasOwnProperty("screenshotGenerator")&&Ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}_n.getViews=function(){return et},_n.isJavaInstalled=function(){return!1};var Oe=function(ft){var mt=function(Ut){var Pt=JSON.parse(Ut),Ct=function(at){return at.type=="G"||at.type=="E"},st=Pt.elements?Pt.elements.filter(Ct)[0]:Pt;if(!st||!st.url){yt();return}Ge.fileName=st.url,Le(st.settings||{}),et.is3D=!0;var bt="https://www.geogebra.org/images/";_n.setPreviewImage(ae||st.previewUrl,bt+"GeoGebra_loading.png",bt+"applet_play.png"),ft()},yt=function(){Ge.onError&&Ge.onError(),wt("Error: Fetching material (id "+Ge.material_id+") failed.",Ge)},It=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",kt="/materials/"+Ge.material_id+"?scope=basic";Ne("https://"+It+"/api/proxy.php?path="+encodeURIComponent(kt),mt,yt)};function Le(ft){var mt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(yt){ft[yt]=!!ft[yt]}),mt.forEach(function(yt){Ge[yt]===void 0&&ft[yt]!==void 0&&(Ge[yt]=ft[yt])}),Ge.showToolBarHelp===void 0&&(Ge.showToolBarHelp=Ge.showToolBar)}function Ne(ft,mt,yt){var It=new XMLHttpRequest;It.open("GET",ft),It.onload=function(){mt(It.responseText)},It.onerror=yt,It.send()}_n.isHTML5Installed=function(){return!0},_n.getLoadedAppletType=function(){return xe},_n.setPreviewImage=function(ft,mt,yt){ae=ft,re=mt,le=yt},_n.removeExistingApplet=function(ft,mt){var yt;typeof ft=="string"&&(ft=document.getElementById(ft)),xe=null;var It=null;for(yt=0;yt<ft.childNodes.length;yt++){var kt=ft.childNodes[yt],Ut=kt.className;Ut==="applet_screenshot"?mt?(kt.style.display="block",xe="screenshot"):kt.style.display="none":Ut!=="applet_scaler prerender"&&(ft.removeChild(kt),It=Ut&&Ut.indexOf("appletParameters")!=-1?kt.id:null,yt--)}var Pt=Ge.id!==void 0?Ge.id:It,Ct=window[Pt];Ct&&typeof Ct.getBase64=="function"&&(Ct.remove(),window[Pt]=null)},_n.refreshHitPoints=function(){if(be(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ft=_n.getAppletObject();return ft&&typeof ft.recalculateEnvironments=="function"?(ft.recalculateEnvironments(),!0):!1},_n.startAnimation=function(){var ft=_n.getAppletObject();return ft&&typeof ft.startAnimation=="function"?(ft.startAnimation(),!0):!1},_n.stopAnimation=function(){var ft=_n.getAppletObject();return ft&&typeof ft.stopAnimation=="function"?(ft.stopAnimation(),!0):!1},_n.getAppletObject=function(){var ft=Ge.id!==void 0?Ge.id:"ggbApplet";return window[ft]},_n.resize=function(){};var De=function(ft,mt,yt){var It=document.createElement("param");It.setAttribute("name",mt),It.setAttribute("value",yt),ft.appendChild(It)},Re=function(ft){return ft&&ft!=="false"},Je=function(ft,mt,yt){be(fe)<=4.2&&(yt=!0);var It=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(It=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var Ut=mt.width,Pt=mt.height;if(mt.disableAutoScale=mt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():mt.disableAutoScale,mt.width!==void 0)if(be(fe)<=4.4)Re(mt.showToolBar)&&(mt.height-=7),Re(mt.showAlgebraInput)&&(mt.height-=37),mt.width<605&&Re(mt.showToolBar)&&(mt.width=605,Ut=605);else{var Ct=100;(Re(mt.showToolBar)||Re(mt.showMenuBar))&&(mt.hasOwnProperty("customToolBar")&&(mt.customToolbar=mt.customToolBar),Ct=Re(mt.showMenuBar)?245:155),Ut<Ct&&(mt.width=Ct,Ut=Ct)}kt.style.border="none",kt.style.display="inline-block";for(var st in mt)mt.hasOwnProperty(st)&&st!=="appletOnLoad"&&kt.setAttribute("data-param-"+st,mt[st]);ue&&kt.setAttribute("data-param-fontscssurl",ue),_n.resize=function(){GGBAppletUtils.responsiveResize(ft,mt)},window.addEventListener("resize",function(Te){_n.resize()});var bt=typeof mt.appletOnLoad=="function"?mt.appletOnLoad:function(){};if(!yt&&mt.width!==void 0){mt.hasOwnProperty("showSplash")||kt.setAttribute("data-param-showSplash","false");var at=ft.querySelector(".applet_scaler.prerender"),ct=at!==null;if(ct)var Lt=at.querySelector(".ggb_preview");else{var Lt=dt(Ut,Pt,mt.borderColor,!1);at=document.createElement("div"),at.className="applet_scaler",at.style.position="relative",at.style.display="block",at.style.width=Ut+"px",at.style.height=Pt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(at,"66%"),be(fe)>=5?(mt.appletOnLoad=function(Te){var Ke=ft.querySelector(".ggb_preview");Ke&&Ke.parentNode.removeChild(Ke),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(at),window.GGBT_wsf_view&&$(window).trigger("resize"),bt(Te)},ct||at.appendChild(Lt)):kt.appendChild(Lt),at.appendChild(kt),ct||ft.appendChild(at),setTimeout(function(){_n.resize()},1)}else{var vt=document.createElement("div");vt.className="applet_scaler",vt.style.position="relative",vt.style.display="block",vt.appendChild(kt),ft.appendChild(vt),mt.appletOnLoad=function(Te){_n.resize(),bt(Te)}}function nt(Te,Ke){Ke&&typeof Ke.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Te,Ke.appletOnLoad):renderGGBElement(Te),wt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ke)}function Xe(Te,Ke){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Te,params:Ke}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(gt){nt(gt.article,gt.params)}),html5AppletsToProcess=null)},be(fe)<5&&(Te.className+=" geogebraweb")):nt(Te,Ke)}if(It){scriptLoadStarted=!0;for(var Ue=0;Ue<kt.childNodes.length;Ue++){var $e=kt.childNodes[Ue].tagName;$e==="TABLE"&&(kt.removeChild(kt.childNodes[Ue]),Ue--)}if(ggbHTML5LoadedScript!==null){var tt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');tt!=null&&tt.parentNode.removeChild(tt)}var We=document.createElement("script"),Be=function(){Xe(kt,mt)};We.src=Pe+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=fe,ggbHTML5LoadedScript=We.src,wt("GeoGebra HTML5 codebase loaded: '"+Pe+"'.",mt),!ce&&(!ve||ve=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Be()):Pe.requirejs?__webpack_require__.e(4184).then(function(){var Te=[__webpack_require__(74620)];Be.apply(null,Te)}.bind(this)).catch(__webpack_require__.oe):(We.onload=Be,ft.appendChild(We))}else Xe(kt,mt);mt.height=Pt,mt.width=Ut},_e=function(ft,mt,yt){var It=dt(mt.width,mt.height,mt.borderColor,yt),kt=document.createElement("div");kt.style.position="relative",kt.style.display="block",kt.style.width=mt.width+"px",kt.style.height=mt.height+"px",kt.className="applet_screenshot applet_scaler"+(yt?" applet_screenshot_play":""),kt.appendChild(It);var Ut=GGBAppletUtils.getScale(mt,ft,yt);yt?(ft.appendChild(ut()),window.GGBT_wsf_view||(ft.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),ft.appendChild(kt),Ut!==1&&!isNaN(Ut)&&(GGBAppletUtils.scaleElement(kt,Ut),kt.style.width=mt.width+"px",kt.style.height=mt.height+"px",kt.parentNode.style.width=mt.width*Ut+"px",kt.parentNode.style.height=mt.height*Ut+"px"),_n.resize=function(){Ve(ft,It,kt,yt)},window.addEventListener("resize",function(Pt){_n.resize()}),_n.resize()};function Ve(ft,mt,yt,It){if(ft.contains(mt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ft.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ft)}var kt=GGBAppletUtils.getScale(Ge,ft,It);yt.parentNode!==null&&(!isNaN(kt)&&kt!==1?(GGBAppletUtils.scaleElement(yt,kt),yt.parentNode.style.width=Ge.width*kt+"px",yt.parentNode.style.height=Ge.height*kt+"px"):(GGBAppletUtils.scaleElement(yt,1),yt.parentNode.style.width=Ge.width+"px",yt.parentNode.style.height=Ge.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()}}_n.onExitFullscreen=function(ft,mt){mt.appendChild(ft)};var Qe=function(ft,mt,yt,It){_e(ft,mt,!0);for(var kt=function(){var Ct=[];for(Pt=0;Pt<ft.childNodes.length;Pt++)Ct.push(ft.childNodes[Pt]);if(window.GGBT_wsf_view){var st=window.GGBT_wsf_view.renderFullScreen(ft,mt.id),bt=document.getElementById("fullscreencontainer"),at=jQuery(ft).find(".fullscreencontent");at.length>0?(st.remove(),at.attr("id","fullscreencontent").show(),jQuery(bt).append(at),window.dispatchEvent(new Event("resize"))):Je(st,mt,!1),window.GGBT_wsf_view.launchFullScreen(bt)}else xe=It,Je(ft,mt,!1);if(!window.GGBT_wsf_view)for(Pt=0;Pt<Ct.length;Pt++)ft.removeChild(Ct[Pt])},Ut=ft.getElementsByClassName("ggb_preview_play"),Pt=0;Pt<Ut.length;Pt++)Ut[Pt].addEventListener("click",kt,!1),Ut[Pt].addEventListener("ontouchstart",kt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ft),Ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ut=function(){var ft=document.createElement("div");if(ft.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var mt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',yt=document.createElement("style");yt.styleSheet?yt.styleSheet.cssText=mt:yt.appendChild(document.createTextNode(mt)),document.getElementsByTagName("head")[0].appendChild(yt)}return ft},dt=function(ft,mt,yt,It){var kt=document.createElement("div");kt.className="ggb_preview",kt.style.position="absolute",kt.style.zIndex="90",kt.style.width=ft-2+"px",kt.style.height=mt-2+"px",kt.style.top="0px",kt.style.left="0px",kt.style.overflow="hidden",kt.style.backgroundColor="white";var Ut="lightgrey";yt!==void 0&&(yt==="none"?Ut="transparent":Ut=yt),kt.style.border="1px solid "+Ut;var Pt=document.createElement("img");if(Pt.style.position="relative",Pt.style.zIndex="1000",Pt.style.top="-1px",Pt.style.left="-1px",ae!==null&&Pt.setAttribute("src",ae),Pt.style.opacity=.7,re!==null){var Ct,st,bt;if(!It){Ct=document.createElement("img"),Ct.style.position="absolute",Ct.style.zIndex="1001",Ct.style.opacity=1,Pt.style.opacity=.3,st=360,st>ft/4*3&&(st=ft/4*3),bt=st/5.8,Ct.setAttribute("src",re),Ct.setAttribute("width",st),Ct.setAttribute("height",bt);var at=(ft-st)/2,ct=(mt-bt)/2;Ct.style.left=at+"px",Ct.style.top=ct+"px",kt.appendChild(Ct)}}return kt.appendChild(Pt),kt},St=function(ft){return ft=ft.toLowerCase(),ft==="html5"||ft==="screenshot"?ft:"html5"},qe=["web","webSimple","web3d","tablet","tablet3d","phone"],it=function(ft,mt){if(fe=ft,mt){pt(fe,!0);return}var yt=!Mt;if(yt){var It=be(fe);!isNaN(It)&&It<4.4&&(yt=!1)}var kt,Ut;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var Pt=fe.indexOf("//");Pt>0?Ut=fe:Pt===0?Ut=kt+fe:Ut="https://www.geogebra.org/apps/5.2.814.0/";for(var Ct in qe)if(fe.slice(qe[Ct].length*-1)===qe[Ct]||fe.slice((qe[Ct].length+1)*-1)===qe[Ct]+"/"){pt(Ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&yt&&!et.is3D&&!et.AV&&!et.SV&&!et.CV&&!et.EV2&&!et.CP&&!et.PC&&!et.DA&&!et.FI&&!et.PV&&!Re(Ge.showToolBar)&&!Re(Ge.showMenuBar)&&!Re(Ge.showAlgebraInput)&&!Re(Ge.enableRightClick)&&(!Ge.appName||Ge.appName=="classic")?Ut+="webSimple/":Ut+="web3d/",pt(Ut,!1)},pt=function(ft,mt){if(ft.requirejs){Pe=ft;return}ft.slice(-1)!=="/"&&(ft+="/"),Pe=ft,mt===null&&(mt=ft.indexOf("http")===-1),me=mt,z="web.nocache.js",ee=!1;var yt=Pe.split("/");yt.length>1&&(!mt&&yt[yt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):qe.indexOf(yt[yt.length-2])>=0&&(z=yt[yt.length-2]+".nocache.js")),yt=ft.split("/"),fe=yt[yt.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 It=parseFloat(fe);It!==NaN&&It<5&&ft.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+It+" is deprecated. Using version latest instead."),it("5.0",mt))},wt=function(ft,mt){window.console&&window.console.log&&(!mt||typeof mt.showLogging=="undefined"||mt.showLogging&&mt.showLogging!=="false")&&console.log(ft)};Ge.material_id!==void 0?Oe(xt):xt();function xt(){var ft=Pn;ve!==null?ft=ve:parseFloat(ft)<5&&(ft="5.0"),it(ft,!1),ce!==null&&pt(ce,me),je=!0}return _n},GGBAppletUtils=function(){"use strict";function _n(){return window.GGBT_wsf_edit!==void 0}function Pn(je,ve){ve!=1?(je.style.transformOrigin="0% 0% 0px",je.style.webkitTransformOrigin="0% 0% 0px",je.style.transform="scale("+ve+","+ve+")",je.style.webkitTransform="scale("+ve+","+ve+")",je.style.maxWidth="initial",je.querySelector(".ggb_preview")!==null&&(je.querySelector(".ggb_preview").style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[0]!==void 0&&(je.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[1]!==void 0&&(je.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(je.style.transform="none",je.style.webkitTransform="none")}function Ge(je,ve,ce,we,Me,Se){var Pe=null;if(Se!=null&&Se!="")for(var me=je.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+Se+" ")>-1){Pe=me;break}else me=me.parentNode;var xe=0,fe=0,z=0,ee=0,ae=0,re=0,le=0;if(Pe)xe=Pe.offsetWidth,fe=Math.max(we?Pe.offsetWidth:0,Pe.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),je){var ue=je.getBoundingClientRect();ue.left>0&&ue.left<=xe&&(Me===void 0||!Me)&&(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(je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=je.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return je&&((ce===void 0||!ce)&&ve>0&&ve+ee<xe?xe=ve:xe-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(fe-=le)),{width:xe,height:fe}}function et(je,ve,ce,we,Me){if(je.isScreenshoGenerator)return 1;var Se=we!==void 0&&we,Pe=je.noScaleMargin!=null&&je.noScaleMargin,me=function(pe){return pe&&pe!=="false"},xe=me(je.autoHeight),fe=Ge(ve,je.width,ce,xe,Se&&window.GGBT_wsf_view||Pe,Me),z=parseInt(fe.width),ee=je.width,ae=je.height;if(ee===void 0){var re=ve.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 Mt(je,ve,ce){var we=1,Me,Se=!1;if(je.hasOwnProperty("allowUpscale")&&(Se=je.allowUpscale),je.hasOwnProperty("scale")&&(we=parseFloat(je.scale),(isNaN(we)||we===null||we===0)&&(we=1),we>1&&(Se=!0)),ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se=!0),!(je.hasOwnProperty("disableAutoScale")&&je.disableAutoScale))Me=et(je,ve,Se,ce,je.scaleContainerClass);else return we;return Se&&(!je.hasOwnProperty("scale")||we===1)?Me:Math.min(we,Me)}function oe(je){var ve=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),we=je.getBoundingClientRect(),Me=(ve-we.width)/2,Se=(ce-we.height)/2;Se<0&&(Se=0),je.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?je.style.left="40px":je.style.left=Me+"px",je.style.top=Se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Se<40?je.style.top="40px":je.style.top=Se+"px",je.style.left=Me+"px")}function ze(je,ve){var ce=je.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(je)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var we=Mt(ve,je);_n()&&ce.setAttribute("data-param-scale",we);for(var Me=null,Se=0;Se<je.childNodes.length;Se++)if(je.childNodes[Se].className!==void 0&&je.childNodes[Se].className.match(/^applet_scaler/)){Me=je.childNodes[Se];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var Pe=ve.id!==void 0?ve.id:"ggbApplet",me=window[Pe];(me==null||!me.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(we)&&we!==1?(Me.parentNode.style.width=ve.width*we+"px",Me.parentNode.style.height=ve.height*we+"px",Pn(Me,we)):(Pn(Me,1),Me.parentNode.style.width=ve.width+"px",Me.parentNode.style.height=ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(je),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:ze,isFlexibleWorksheetEditor:_n,positionCenter:oe,getScale:Mt,scaleElement:Pn}}();__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 _n=n.location.search;return _n.indexOf(J)!=-1||_n.indexOf(K)!=-1}function q(_n,Pn){}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(_n){var Pn=s[L].bindings;s[L].bindings=function(){for(var Ge=Pn?Pn():{},et=_n[webModule.__softPermutationId],Mt=O;Mt<et.length;Mt++){var oe=et[Mt];Ge[oe[O]]=oe[P]}return Ge}};var t;function u(){return v(),t}function v(){if(!t){var _n=o.createElement(Q);if(_n.id=L,_n.style.cssText=R+S,_n.tabIndex=-1,o.body.appendChild(_n),t=_n.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Pn=document.compatMode==U?V:W;t.write(Pn+X),t.close()}}}function w(_n){function Pn(et){function Mt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=Mt();if(oe){et();return}function ze(){if(!oe){if(!Mt())return;oe=!0,et(),o.removeEventListener&&o.removeEventListener(Z,ze,!1),je&&clearInterval(je)}}o.addEventListener&&o.addEventListener(Z,ze,!1);var je=setInterval(function(){ze()},$)}function Ge(et){var Mt=u(),oe=Mt.body,ze=Mt.createElement(_);ze.language=ab,ze.crossOrigin=W,ze.src=et,webModule.__errFn&&(ze.onerror=function(){webModule.__errFn(L,new Error(bb+et))}),oe.appendChild(ze)}Pn(function(){Ge(_n)})}webModule.__startLoadingFragment=function(_n){return C(_n)},webModule.__installRunAsyncCode=function(_n){var Pn=u(),Ge=Pn.body,et=Pn.createElement(_);et.language=ab,et.text=_n,Ge.appendChild(et),Ge.removeChild(et)};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(_n){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_n){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_n){var Pn=c[_n];return Pn==null?null:Pn},r=d,webModule.__errFn=e}function B(){function _n(je){var ve=je.lastIndexOf(rb);ve==-1&&(ve=je.length);var ce=je.indexOf(sb);ce==-1&&(ce=je.length);var we=je.lastIndexOf(tb,Math.min(ce,ve));return we>=O?je.substring(O,we+P):W}function Pn(je){if(!je.match(/^\w+:\/\//)){var ve=o.createElement(ub);ve.src=je+vb,je=_n(ve.src)}return je}function Ge(){var je=__gwt_getMetaProperty(wb);return je!=null?je:W}function et(){for(var je=o.getElementsByTagName(_),ve=O;ve<je.length;++ve)if(je[ve].src.indexOf(xb)!=-1)return _n(je[ve].src);return W}function Mt(){var je=o.getElementsByTagName(yb);return je.length>O?je[je.length-P].href:W}function oe(){var je=o.location;return je.href==je.protocol+zb+je.host+je.pathname+je.search+je.hash}var ze=Ge();return ze==W&&(ze=et()),ze==W&&(ze=Mt()),ze==W&&oe()&&(ze=_n(o.location.href)),ze=Pn(ze),ze}function C(_n){return _n.match(/^\//)||_n.match(/^[a-zA-Z]+:\/\//)?_n:webModule.__moduleBase+_n}function D(){var _n=[],Pn=O,Ge=[],et=[];function Mt(je){var ve=et[je](),ce=Ge[je];if(ve in ce)return ve;var we=[];for(var Me in ce)we[ce[Me]]=Me;throw r&&r(je,we,ve),null}if(__gwt_isKnownPropertyValue=function(je,ve){return ve in Ge[je]},webModule.__getPropMap=function(){var je={};for(var ve in Ge)Ge.hasOwnProperty(ve)&&(je[ve]=Mt(ve));return je},webModule.__computePropValue=Mt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var ze=oe.indexOf(Db);ze!=-1&&(Pn=parseInt(oe.substring(ze+P),$),oe=oe.substring(O,ze))}catch(je){}return webModule.__softPermutationId=Pn,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(_n,Pn,Ge){"use strict";Ge.d(Pn,{Ax:function(){return ze},Ds:function(){return je},KI:function(){return ce},SI:function(){return oe},f1:function(){return Mt}});var et=Ge(3294);function Mt(we){let Me=!0;if(we.length>0){for(let Se=0;Se<we.length;Se++)if(we[Se].compile_success==0||!we[Se].compile_success){Me=!1;break}}else Me=!1;return Me}function oe(we,Me=""){let Se=[];for(let Pe=0;Pe<we.length;Pe++){let me=we[Pe],xe=Me?`${Me}/${me.name}`:`${me.name}`;Se.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:xe})}return Se}function ze(we,Me,Se){for(let Pe=0;Pe<we.length;Pe++){let me=we[Pe];if(me.key===Me){me.children=Se;break}me.children&&ze(me.children,Me,Se)}return we}function je(we,Me,Se){let Pe;return function(){let me=this,xe=arguments,fe=function(){Pe=null,Se||we.apply(me,xe)},z=Se&&!Pe;clearTimeout(Pe),Pe=setTimeout(fe,Me),z&&we.apply(me,xe)}}const ve=!0,ce=et.Z.API_SERVER},16406:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return tt}});var et=Ge(59301),Mt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=Ge(92310),ze=Ge.n(oe),je=Ge(71418);var ve=function(We,Be){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Te,Ke){Te.__proto__=Ke}||function(Te,Ke){for(var gt in Ke)Object.prototype.hasOwnProperty.call(Ke,gt)&&(Te[gt]=Ke[gt])})(We,Be)};function ce(We,Be){function Te(){this.constructor=We}ve(We,Be),We.prototype=Be===null?Object.create(Be):(Te.prototype=Be.prototype,new Te)}function we(We,Be,Te,Ke){return new(Te||(Te=Promise))(function(gt,Ze){function Ot(jt){try{Yt(Ke.next(jt))}catch(Kt){Ze(Kt)}}function zt(jt){try{Yt(Ke.throw(jt))}catch(Kt){Ze(Kt)}}function Yt(jt){var Kt;jt.done?gt(jt.value):(Kt=jt.value,Kt instanceof Te?Kt:new Te(function(en){en(Kt)})).then(Ot,zt)}Yt((Ke=Ke.apply(We,Be||[])).next())})}function Me(We,Be){var Te,Ke,gt,Ze,Ot={label:0,sent:function(){if(1>[0])throw gt[1];return gt[1]},trys:[],ops:[]};return Ze={next:zt(0),throw:zt(1),return:zt(2)},typeof Symbol=="function"&&(Ze[Symbol.iterator]=function(){return this}),Ze;function zt(Yt){return function(jt){return function(Kt){if(Te)throw new TypeError("Generator is already executing.");for(;Ot;)try{if(Te=1,Ke&&(gt=2&Kt[0]?Ke.return:Kt[0]?Ke.throw||((gt=Ke.return)&>.call(Ke),0):Ke.next)&&!(gt=gt.call(Ke,Kt[1])).done)return gt;switch(Ke=0,gt&&(Kt=[2&Kt[0],gt.value]),Kt[0]){case 0:case 1:gt=Kt;break;case 4:return Ot.label++,{value:Kt[1],done:!1};case 5:Ot.label++,Ke=Kt[1],Kt=[0];continue;case 7:Kt=Ot.ops.pop(),Ot.trys.pop();continue;default:if(gt=Ot.trys,!((gt=gt.length>0&>[gt.length-1])||Kt[0]!==6&&Kt[0]!==2)){Ot=0;continue}if(Kt[0]===3&&(!gt||Kt[1]>gt[0]&&Kt[1]<gt[3])){Ot.label=Kt[1];break}if(Kt[0]===6&&Ot.label<gt[1]){Ot.label=gt[1],gt=Kt;break}if(gt&&Ot.label<gt[2]){Ot.label=gt[2],Ot.ops.push(Kt);break}gt[2]&&Ot.ops.pop(),Ot.trys.pop();continue}Kt=Be.call(We,Ot)}catch(en){Kt=[6,en],Ke=0}finally{Te=gt=0}if(5&Kt[0])throw Kt[1];return{value:Kt[0]?Kt[1]:void 0,done:!0}}([Yt,jt])}}}function Se(){for(var We=0,Be=0,Te=arguments.length;Be<Te;Be++)We+=arguments[Be].length;var Ke=Array(We),gt=0;for(Be=0;Be<Te;Be++)for(var Ze=arguments[Be],Ot=0,zt=Ze.length;Ot<zt;Ot++,gt++)Ke[gt]=Ze[Ot];return Ke}var Pe=function(){function We(){}return We.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},We.setAttributes=function(Be,Te){for(var Ke=0,gt=Te;Ke<gt.length;Ke++){var Ze=gt[Ke],Ot=Ze[0],zt=Ze[1];Be.setAttribute(Ot,zt)}},We.createRect=function(Be,Te,Ke){var gt=document.createElementNS("http://www.w3.org/2000/svg","rect");return gt.setAttribute("width",Be.toString()),gt.setAttribute("height",Te.toString()),Ke&&We.setAttributes(gt,Ke),gt},We.createLine=function(Be,Te,Ke,gt,Ze){var Ot=document.createElementNS("http://www.w3.org/2000/svg","line");return Ot.setAttribute("x1",Be.toString()),Ot.setAttribute("y1",Te.toString()),Ot.setAttribute("x2",Ke.toString()),Ot.setAttribute("y2",gt.toString()),Ze&&We.setAttributes(Ot,Ze),Ot},We.createPolygon=function(Be,Te){var Ke=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ke.setAttribute("points",Be),Te&&We.setAttributes(Ke,Te),Ke},We.createCircle=function(Be,Te){var Ke=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ke.setAttribute("cx",(Be/2).toString()),Ke.setAttribute("cy",(Be/2).toString()),Ke.setAttribute("r",Be.toString()),Te&&We.setAttributes(Ke,Te),Ke},We.createEllipse=function(Be,Te,Ke){var gt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return gt.setAttribute("cx",(Be/2).toString()),gt.setAttribute("cy",(Te/2).toString()),gt.setAttribute("rx",(Be/2).toString()),gt.setAttribute("ry",(Te/2).toString()),Ke&&We.setAttributes(gt,Ke),gt},We.createGroup=function(Be){var Te=document.createElementNS("http://www.w3.org/2000/svg","g");return Be&&We.setAttributes(Te,Be),Te},We.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},We.createMarker=function(Be,Te,Ke,gt,Ze,Ot,zt){var Yt=document.createElementNS("http://www.w3.org/2000/svg","marker");return We.setAttributes(Yt,[["id",Be],["orient",Te],["markerWidth",Ke.toString()],["markerHeight",gt.toString()],["refX",Ze.toString()],["refY",Ot.toString()]]),Yt.appendChild(zt),Yt},We.createText=function(Be){var Te=document.createElementNS("http://www.w3.org/2000/svg","text");return Te.setAttribute("x","0"),Te.setAttribute("y","0"),Be&&We.setAttributes(Te,Be),Te},We.createTSpan=function(Be,Te){var Ke=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ke.textContent=Be,Te&&We.setAttributes(Ke,Te),Ke},We.createImage=function(Be){var Te=document.createElementNS("http://www.w3.org/2000/svg","image");return Be&&We.setAttributes(Te,Be),Te},We.createPoint=function(Be,Te){var Ke=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ke.x=Be,Ke.y=Te,Ke},We.createPath=function(Be,Te){var Ke=document.createElementNS("http://www.w3.org/2000/svg","path");return Ke.setAttribute("d",Be),Te&&We.setAttributes(Ke,Te),Ke},We}(),me=function(){function We(){}return We.addKey=function(Be){We.key=Be},Object.defineProperty(We,"isLicensed",{get:function(){return!!We.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(We.key)},enumerable:!1,configurable:!0}),We}(),xe=function(){function We(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return We.prototype.rasterize=function(Be,Te,Ke){var gt=this;return new Promise(function(Ze){var Ot=Ke!==void 0?Ke:document.createElement("canvas");Be===null&&(gt.markersOnly=!0,gt.naturalSize=!1);var zt=document.createElementNS("http://www.w3.org/2000/svg","svg");zt.setAttribute("xmlns","http://www.w3.org/2000/svg"),zt.setAttribute("width",Te.width.baseVal.valueAsString),zt.setAttribute("height",Te.height.baseVal.valueAsString),zt.setAttribute("viewBox","0 0 "+Te.viewBox.baseVal.width.toString()+" "+Te.viewBox.baseVal.height.toString()),zt.innerHTML=Te.innerHTML,gt.naturalSize===!0?(zt.width.baseVal.value=Be.naturalWidth,zt.height.baseVal.value=Be.naturalHeight):gt.width!==void 0&>.height!==void 0&&(zt.width.baseVal.value=gt.width,zt.height.baseVal.value=gt.height),Ot.width=zt.width.baseVal.value,Ot.height=zt.height.baseVal.value;var Yt=zt.outerHTML,jt=Ot.getContext("2d");gt.markersOnly!==!0&&jt.drawImage(Be,0,0,Ot.width,Ot.height);var Kt=window.URL,en=new Image(Ot.width,Ot.height);en.setAttribute("crossOrigin","anonymous");var cn=new Blob([Yt],{type:"image/svg+xml"}),yn=Kt.createObjectURL(cn);en.onload=function(){jt.drawImage(en,0,0),Kt.revokeObjectURL(yn);var On=Ot.toDataURL(gt.imageType,gt.imageQuality);Ze(On)},en.src=yn})},We}(),fe=function(){},z=function(){function We(Be){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Be+"_"}return Object.defineProperty(We.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),We.prototype.addClass=function(Be){return this.styleSheet===void 0&&this.addStyleSheet(),Be.name=""+this.classNamePrefix+Be.localName,this.classes.push(Be),this.styleSheet.sheet.insertRule("."+Be.name+" {"+Be.style+"}",this.styleSheet.sheet.cssRules.length),Be},We.prototype.addRule=function(Be){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Be),this.styleSheet.sheet.insertRule(Be.selector+" {"+Be.style+"}",this.styleSheet.sheet.cssRules.length)},We.prototype.addStyleSheet=function(){var Be;this.styleSheet=document.createElement("style"),((Be=this.styleSheetRoot)!==null&&Be!==void 0?Be:document.head).appendChild(this.styleSheet),this.addRule(new ee("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ee("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ee("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ae("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ae("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},We.prototype.removeStyleSheet=function(){var Be;this.styleSheet&&(((Be=this.styleSheetRoot)!==null&&Be!==void 0?Be:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},We}(),ee=function(We,Be){this.selector=We,this.style=Be},ae=function(We,Be){this.localName=We,this.style=Be},re=function(){function We(Be,Te,Ke,gt,Ze){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Be,this.displayMode=Te,this.markerItems=Ke,this.uiStyleSettings=gt,this.styles=Ze,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return We.prototype.show=function(Be){var Te=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Be,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ke=document.createElement("div");Ke.className=this.toolbarBlockStyleClass.name,Ke.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ke),this.addActionButton(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ke,'<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(Ze){var Ot=document.createElement("div");Ot.className=""+Te.toolbarButtonStyleClass.name,Ot.setAttribute("data-type-name",Ze.typeName),Ot.innerHTML=Ze.icon,Ot.addEventListener("click",function(){Te.markerToolbarButtonClicked(Ot,Ze)}),Te.buttons.push(Ot),Te.markerButtons.push(Ot)}),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 gt=document.createElement("div");gt.className=this.toolbarBlockStyleClass.name,gt.style.whiteSpace="nowrap",gt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(gt),this.addActionButton(gt,'<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(gt,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},We.prototype.addButtonClickListener=function(Be){this.buttonClickListeners.push(Be)},We.prototype.removeButtonClickListener=function(Be){this.buttonClickListeners.indexOf(Be)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Be),1)},We.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},We.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Be=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Te=0;Te<this.markerButtons.length;Te++)Te<Be||Te===Be&&this.markerButtons.length-1===Be?this.markerButtonBlock.appendChild(this.markerButtons[Te]):(Te===Be&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Te]))}},We.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},We.prototype.resetButtonStyles=function(){var Be=this;this.buttons.forEach(function(Te){Te.className=Te.className.replace(Be.uiStyleSettings.toolbarButtonStyleColorsClassName?Be.uiStyleSettings.toolbarButtonStyleColorsClassName:Be.toolbarButtonStyleColorsClass.name,"").trim(),Te.className=Te.className.replace(Be.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Be.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Be.toolbarActiveButtonStyleColorsClass.name,"").trim(),Te.className+=" "+(Be.uiStyleSettings.toolbarButtonStyleColorsClassName?Be.uiStyleSettings.toolbarButtonStyleColorsClassName:Be.toolbarButtonStyleColorsClass.name)})},We.prototype.addActionButton=function(Be,Te,Ke){var gt=this,Ze=document.createElement("div");switch(Ze.className=""+this.toolbarButtonStyleClass.name,Ze.innerHTML=Te,Ze.setAttribute("data-action",Ke),Ze.addEventListener("click",function(){gt.actionToolbarButtonClicked(Ze,Ke)}),Ke){case"select":Ze.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ze.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ze.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ze.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ze.style.fill=this.uiStyleSettings.closeButtonColor}Be.appendChild(Ze),this.buttons.push(Ze)},We.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ae("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ae("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ae("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ae("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ae("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Be=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ae("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Be)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Be)+`px;
|
|
|
padding: `+Be+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ae("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ae("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},We.prototype.markerToolbarButtonClicked=function(Be,Te){this.setActiveButton(Be),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ke){return Ke("marker",Te)}),this.markerButtonOverflowBlock.style.display="none"},We.prototype.actionToolbarButtonClicked=function(Be,Te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ke){return Ke("action",Te)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},We.prototype.setActiveButton=function(Be){this.resetButtonStyles(),Be.className=Be.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Be.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},We.prototype.setActiveMarkerButton=function(Be){var Te=this.markerButtons.find(function(Ke){return Ke.getAttribute("data-type-name")===Be});Te&&this.setActiveButton(Te)},We.prototype.setCurrentMarker=function(Be){var Te=this;this.currentMarker=Be,this.buttons.filter(function(Ke){return/delete|notes/.test(Ke.getAttribute("data-action"))}).forEach(function(Ke){Te.currentMarker===void 0?(Ke.style.fillOpacity="0.4",Ke.style.pointerEvents="none"):(Ke.style.fillOpacity="1",Ke.style.pointerEvents="all")})},We}(),le=function(){function We(Be,Te,Ke,gt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Be,this.displayMode=Te,this.uiStyleSettings=Ke,this.styles=gt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return We.prototype.addStyles=function(){var Be;this.toolboxStyleClass=this.styles.addClass(new ae("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ae("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ae("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ae("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ae("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ae("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Be=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Be!==void 0?Be:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ae("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 ae("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ae("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ee("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ee("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},We.prototype.show=function(Be){var Te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Be,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Te=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Te!==void 0?Te:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},We.prototype.setPanelButtons=function(Be){var Te,Ke,gt=this;this.panels=Be,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+" "+((Ke=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ke!==void 0?Ke:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ze){var Ot;Ze.uiStyleSettings=gt.uiStyleSettings;var zt=document.createElement("div");zt.className=gt.toolboxButtonStyleClass.name+" "+((Ot=gt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ot!==void 0?Ot:gt.toolboxButtonStyleColorsClass.name),zt.innerHTML=Ze.icon,zt.title=Ze.title,zt.addEventListener("click",function(){gt.panelButtonClick(Ze)}),gt.panelButtons.push(zt),gt.buttonRow.appendChild(zt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},We.prototype.panelButtonClick=function(Be){var Te=this,Ke=-1;if(Be!==this.activePanel){Ke=this.panels.indexOf(Be),this.panelRow.innerHTML="";var gt=Be.getUi();gt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(gt),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Be}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Te.displayMode==="inline"?Te.panelRow.style.display="none":Te.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ze,Ot){var zt,Yt;Ze.className=Te.toolboxButtonStyleClass.name+" "+(Ot===Ke?""+((zt=Te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&zt!==void 0?zt:Te.toolboxActiveButtonStyleColorsClass.name):""+((Yt=Te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Yt!==void 0?Yt:Te.toolboxButtonStyleColorsClass.name))})},We}(),ue=function(We,Be){this.title=We,this.icon=Be},pe=function(We){function Be(Te,Ke,gt,Ze){var Ot=We.call(this,Te,Ze||'<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 Ot.colors=[],Ot.addTransparent=!1,Ot.colorBoxes=[],Ot.colors=Ke,Ot.currentColor=gt,Ot.setCurrentColor=Ot.setCurrentColor.bind(Ot),Ot.getColorBox=Ot.getColorBox.bind(Ot),Ot}return ce(Be,We),Be.prototype.getUi=function(){var Te=this,Ke=document.createElement("div");return Ke.style.overflow="hidden",Ke.style.whiteSpace="nowrap",this.colors.forEach(function(gt){var Ze=Te.getColorBox(gt);Ke.appendChild(Ze),Te.colorBoxes.push(Ze)}),Ke},Be.prototype.getColorBox=function(Te){var Ke=this,gt=this.uiStyleSettings.toolbarHeight/4,Ze=this.uiStyleSettings.toolbarHeight-gt,Ot=document.createElement("div");Ot.style.display="inline-block",Ot.style.boxSizing="content-box",Ot.style.width=Ze-2+"px",Ot.style.height=Ze-2+"px",Ot.style.padding="1px",Ot.style.marginRight="2px",Ot.style.marginBottom="2px",Ot.style.borderWidth="2px",Ot.style.borderStyle="solid",Ot.style.borderRadius=(Ze+2)/2+"px",Ot.style.borderColor=Te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ot.addEventListener("click",function(){Ke.setCurrentColor(Te,Ot)});var zt=document.createElement("div");return zt.style.display="inline-block",zt.style.width=Ze-2+"px",zt.style.height=Ze-2+"px",zt.style.backgroundColor=Te,zt.style.borderRadius=Ze/2+"px",Te==="transparent"&&(zt.style.fill=this.uiStyleSettings.toolboxAccentColor,zt.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>`),Ot.appendChild(zt),Ot},Be.prototype.setCurrentColor=function(Te,Ke){var gt=this;this.currentColor=Te,this.colorBoxes.forEach(function(Ze){Ze.style.borderColor=Ze===Ke?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Te)},Be}(ue),be=function(){function We(Be,Te,Ke){this._state="new",this._isSelected=!1,this._container=Be,this._overlayContainer=Te,this.globalSettings=Ke,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(We.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),We.prototype.ownsTarget=function(Be){return!1},Object.defineProperty(We.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),We.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},We.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},We.prototype.pointerDown=function(Be,Te){},We.prototype.dblClick=function(Be,Te){},We.prototype.manipulate=function(Be){},We.prototype.pointerUp=function(Be){this.stateChanged()},We.prototype.dispose=function(){},We.prototype.addMarkerVisualToContainer=function(Be){this.container.childNodes.length>0?this.container.insertBefore(Be,this.container.childNodes[0]):this.container.appendChild(Be)},We.prototype.getState=function(){return{typeName:We.typeName,state:this.state,notes:this.notes}},We.prototype.restoreState=function(Be){this._state=Be.state,this.notes=Be.notes},We.prototype.scale=function(Be,Te){},We.prototype.colorChanged=function(Be){this.onColorChanged&&this.onColorChanged(Be),this.stateChanged()},We.prototype.fillColorChanged=function(Be){this.onFillColorChanged&&this.onFillColorChanged(Be),this.stateChanged()},We.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Be=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Be.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Be)&&this.onStateChanged(this)}},We.typeName="MarkerBase",We}(),Ce=function(){function We(){this.findGripByVisual=this.findGripByVisual.bind(this)}return We.prototype.findGripByVisual=function(Be){return this.topLeft.ownsTarget(Be)?this.topLeft:this.topCenter.ownsTarget(Be)?this.topCenter:this.topRight.ownsTarget(Be)?this.topRight:this.centerLeft.ownsTarget(Be)?this.centerLeft:this.centerRight.ownsTarget(Be)?this.centerRight:this.bottomLeft.ownsTarget(Be)?this.bottomLeft:this.bottomCenter.ownsTarget(Be)?this.bottomCenter:this.bottomRight.ownsTarget(Be)?this.bottomRight:void 0},We}(),Ie=function(){function We(){this.GRIP_SIZE=10,this.visual=Pe.createGroup(),this.visual.appendChild(Pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return We.prototype.ownsTarget=function(Be){return Be===this.visual||Be===this.visual.childNodes[0]||Be===this.visual.childNodes[1]},We}(),Oe=function(){function We(){}return We.toITransformMatrix=function(Be){return{a:Be.a,b:Be.b,c:Be.c,d:Be.d,e:Be.e,f:Be.f}},We.toSVGMatrix=function(Be,Te){return Be.a=Te.a,Be.b=Te.b,Be.c=Te.c,Be.d=Te.d,Be.e=Te.e,Be.f=Te.f,Be},We}(),Le=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.left=0,Ze.top=0,Ze.width=0,Ze.height=0,Ze.defaultSize={x:50,y:20},Ze.offsetX=0,Ze.offsetY=0,Ze.rotationAngle=0,Ze.CB_DISTANCE=10,Ze._suppressMarkerCreateEvent=!1,Ze.container.transform.baseVal.appendItem(Pe.createTransform()),Ze.setupControlBox(),Ze}return ce(Be,We),Object.defineProperty(Be.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"visual",{get:function(){return this._visual},set:function(Te){this._visual=Te;var Ke=Pe.createTransform();this._visual.transform.baseVal.appendItem(Ke)},enumerable:!1,configurable:!0}),Be.prototype.ownsTarget=function(Te){return!!We.prototype.ownsTarget.call(this,Te)||!!(this.controlGrips.findGripByVisual(Te)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Te))},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),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 gt=this.unrotatePoint(Te);if(this.manipulationStartX=gt.x,this.manipulationStartY=gt.y,this.offsetX=gt.x-this.left,this.offsetY=gt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ke),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ke)){this.activeGrip=this.rotatorGrip;var Ze=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ze.x-this.width/2,this.top=Ze.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ot=this.container.transform.baseVal.getItem(0);Ot.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ot,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Be.prototype.pointerUp=function(Te){var Ke=this.state;We.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",Ke==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Be.prototype.moveVisual=function(Te){this.visual.style.transform="translate("+Te.x+"px, "+Te.y+"px)"},Be.prototype.manipulate=function(Te){var Ke=this.unrotatePoint(Te);this.state==="creating"?this.resize(Te):this.state==="move"?(this.left=this.manipulationStartLeft+(Ke.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ke.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ke):this.state==="rotate"&&this.rotate(Te)},Be.prototype.resize=function(Te){var Ke=this.manipulationStartLeft,gt=this.manipulationStartWidth,Ze=this.manipulationStartTop,Ot=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ke=this.manipulationStartLeft+Te.x-this.manipulationStartX,gt=this.manipulationStartWidth+this.manipulationStartLeft-Ke;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:gt=this.manipulationStartWidth+Te.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ze=this.manipulationStartTop+Te.y-this.manipulationStartY,Ot=this.manipulationStartHeight+this.manipulationStartTop-Ze;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ot=this.manipulationStartHeight+Te.y-this.manipulationStartY}gt>=0?(this.left=Ke,this.width=gt):(this.left=Ke+gt,this.width=-gt),Ot>=0?(this.top=Ze,this.height=Ot):(this.top=Ze+Ot,this.height=-Ot),this.setSize()},Be.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Be.prototype.rotate=function(Te){if(Math.abs(Te.x-this.centerX)>.1){var Ke=Math.sign(Te.x-this.centerX);this.rotationAngle=180*Math.atan((Te.y-this.centerY)/(Te.x-this.centerX))/Math.PI+90*Ke,this.applyRotation()}},Be.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)},Be.prototype.rotatePoint=function(Te){if(this.rotationAngle===0)return Te;var Ke=this.container.getCTM(),gt=Pe.createPoint(Te.x,Te.y);return{x:(gt=gt.matrixTransform(Ke)).x,y:gt.y}},Be.prototype.unrotatePoint=function(Te){if(this.rotationAngle===0)return Te;var Ke=this.container.getCTM();Ke=Ke.inverse();var gt=Pe.createPoint(Te.x,Te.y);return{x:(gt=gt.matrixTransform(Ke)).x,y:gt.y}},Be.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Be.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Be.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup();var Te=Pe.createTransform();Te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Te),this.container.appendChild(this.controlBox),this.controlRect=Pe.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=Pe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ce,this.addControlGrips(),this.controlBox.style.display="none"},Be.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()},Be.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Be.prototype.createGrip=function(){var Te=new Ie;return Te.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(Te.visual),Te},Be.prototype.positionGrips=function(){var Te=this.controlGrips.topLeft.GRIP_SIZE,Ke=-Te/2,gt=Ke,Ze=(this.width+this.CB_DISTANCE)/2-Te/2,Ot=(this.height+this.CB_DISTANCE)/2-Te/2,zt=this.height+this.CB_DISTANCE-Te/2,Yt=this.width+this.CB_DISTANCE-Te/2;this.positionGrip(this.controlGrips.topLeft.visual,Ke,gt),this.positionGrip(this.controlGrips.topCenter.visual,Ze,gt),this.positionGrip(this.controlGrips.topRight.visual,Yt,gt),this.positionGrip(this.controlGrips.centerLeft.visual,Ke,Ot),this.positionGrip(this.controlGrips.centerRight.visual,Yt,Ot),this.positionGrip(this.controlGrips.bottomLeft.visual,Ke,zt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ze,zt),this.positionGrip(this.controlGrips.bottomRight.visual,Yt,zt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ze,gt-3*this.CB_DISTANCE)},Be.prototype.positionGrip=function(Te,Ke,gt){var Ze=Te.transform.baseVal.getItem(0);Ze.setTranslate(Ke,gt),Te.transform.baseVal.replaceItem(Ze,0)},Be.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Be.prototype.showControlBox=function(){this.controlBox.style.display=""},Be.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Oe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Oe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},We.prototype.getState.call(this))},Be.prototype.restoreState=function(Te){We.prototype.restoreState.call(this,Te);var Ke=Te;this.left=Ke.left,this.top=Ke.top,this.width=Ke.width,this.height=Ke.height,this.rotationAngle=Ke.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Oe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ke.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Oe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ke.containerTransformMatrix))},Be.prototype.scale=function(Te,Ke){We.prototype.scale.call(this,Te,Ke);var gt=this.rotatePoint({x:this.left,y:this.top}),Ze=this.unrotatePoint({x:gt.x*Te,y:gt.y*Ke});this.left=Ze.x,this.top=Ze.y,this.width=this.width*Te,this.height=this.height*Ke,this.adjustControlBox()},Be}(be),Ne=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.fillColor="transparent",Ze.strokeColor="transparent",Ze.strokeWidth=0,Ze.strokeDasharray="",Ze.opacity=1,Ze.setStrokeColor=Ze.setStrokeColor.bind(Ze),Ze.setFillColor=Ze.setFillColor.bind(Ze),Ze.setStrokeWidth=Ze.setStrokeWidth.bind(Ze),Ze.setStrokeDasharray=Ze.setStrokeDasharray.bind(Ze),Ze.createVisual=Ze.createVisual.bind(Ze),Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return!(!We.prototype.ownsTarget.call(this,Te)&&Te!==this.visual)},Be.prototype.createVisual=function(){this.visual=Pe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},Be.prototype.manipulate=function(Te){We.prototype.manipulate.call(this,Te)},Be.prototype.resize=function(Te){We.prototype.resize.call(this,Te),this.setSize()},Be.prototype.setSize=function(){We.prototype.setSize.call(this),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Be.prototype.pointerUp=function(Te){We.prototype.pointerUp.call(this,Te),this.setSize()},Be.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.visual&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},Be.prototype.setFillColor=function(Te){this.fillColor=Te,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Be.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Be.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.visual&&Pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Be.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this))},Be.prototype.restoreState=function(Te){var Ke=Te;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.opacity=Ke.opacity,this.createVisual(),We.prototype.restoreState.call(this,Te),this.setSize()},Be.prototype.scale=function(Te,Ke){We.prototype.scale.call(this,Te,Ke),this.setSize()},Be.title="Rectangle marker",Be}(Le),De=function(We){function Be(Te,Ke,gt,Ze){var Ot=We.call(this,Te,Ze||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ot.widths=[],Ot.widthBoxes=[],Ot.widths=Ke,Ot.currentWidth=gt,Ot.setCurrentWidth=Ot.setCurrentWidth.bind(Ot),Ot}return ce(Be,We),Be.prototype.getUi=function(){var Te=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.widths.forEach(function(gt){var Ze=document.createElement("div");Ze.style.display="flex",Ze.style.flexGrow="2",Ze.style.alignItems="center",Ze.style.justifyContent="space-between",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.borderColor=gt===Te.currentWidth?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){Te.setCurrentWidth(gt,Ze)}),Ke.appendChild(Ze);var Ot=document.createElement("div");Ot.innerText=gt.toString(),Ot.style.marginRight="5px",Ze.appendChild(Ot);var zt=document.createElement("div");zt.style.minHeight="20px",zt.style.flexGrow="2",zt.style.display="flex",zt.style.alignItems="center";var Yt=document.createElement("hr");Yt.style.minWidth="20px",Yt.style.border="0px",Yt.style.borderTop=gt+"px solid "+Te.uiStyleSettings.toolboxColor,Yt.style.flexGrow="2",zt.appendChild(Yt),Ze.appendChild(zt),Te.widthBoxes.push(Ze)}),Ke},Be.prototype.setCurrentWidth=function(Te,Ke){var gt=this;this.currentWidth=Te,this.widthBoxes.forEach(function(Ze){Ze.style.borderColor=Ze===Ke?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Be}(ue),Re=function(We){function Be(Te,Ke,gt,Ze){var Ot=We.call(this,Te,Ze||'<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 Ot.styles=[],Ot.styleBoxes=[],Ot.styles=Ke,Ot.currentStyle=gt,Ot.setCurrentStyle=Ot.setCurrentStyle.bind(Ot),Ot}return ce(Be,We),Be.prototype.getUi=function(){var Te=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.styles.forEach(function(gt){var Ze=document.createElement("div");Ze.style.display="flex",Ze.style.alignItems="center",Ze.style.justifyContent="space-between",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.overflow="hidden",Ze.style.maxWidth=100/Te.styles.length-5+"%",Ze.style.borderColor=gt===Te.currentStyle?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){Te.setCurrentStyle(gt,Ze)}),Ke.appendChild(Ze);var Ot=document.createElement("div");Ot.style.minHeight="20px",Ot.style.flexGrow="2",Ot.style.overflow="hidden";var zt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(gt!==""?'stroke-dasharray="'+gt+'"':"")+` />
|
|
|
</svg>`;Ot.innerHTML=zt,Ze.appendChild(Ot),Te.styleBoxes.push(Ze)}),Ke},Be.prototype.setCurrentStyle=function(Te,Ke){var gt=this;this.currentStyle=Te,this.styleBoxes.forEach(function(Ze){Ze.style.borderColor=Ze===Ke?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Be}(ue),Je=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.strokeColor=gt.defaultColor,Ze.strokeWidth=gt.defaultStrokeWidth,Ze.strokeDasharray=gt.defaultStrokeDasharray,Ze.strokePanel=new pe("Line color",gt.defaultColorSet,gt.defaultColor),Ze.strokePanel.onColorChanged=Ze.setStrokeColor,Ze.strokeWidthPanel=new De("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),Ze.strokeWidthPanel.onWidthChanged=Ze.setStrokeWidth,Ze.strokeStylePanel=new Re("Line style",gt.defaultStrokeDasharrays,gt.defaultStrokeDasharray),Ze.strokeStylePanel.onStyleChanged=Ze.setStrokeDasharray,Ze}return ce(Be,We),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=We.prototype.getState.call(this);return Te.typeName=Be.typeName,Te},Be.typeName="FrameMarker",Be.title="Frame marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Be}(Ne),_e=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Ve=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.x1=0,Ze.y1=0,Ze.x2=0,Ze.y2=0,Ze.defaultLength=50,Ze.manipulationStartX=0,Ze.manipulationStartY=0,Ze.manipulationStartX1=0,Ze.manipulationStartY1=0,Ze.manipulationStartX2=0,Ze.manipulationStartY2=0,Ze.setupControlBox(),Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return!!We.prototype.ownsTarget.call(this,Te)||!(!this.grip1.ownsTarget(Te)&&!this.grip2.ownsTarget(Te))},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),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(Ke)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ke)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Be.prototype.pointerUp=function(Te){var Ke=this.state;We.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",Ke==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Be.prototype.adjustVisual=function(){},Be.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)},Be.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()},Be.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Be.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Be.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Be.prototype.adjustControlBox=function(){this.positionGrips()},Be.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Be.prototype.createGrip=function(){var Te=new Ie;return Te.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(Te.visual),Te},Be.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)},Be.prototype.positionGrip=function(Te,Ke,gt){var Ze=Te.transform.baseVal.getItem(0);Ze.setTranslate(Ke,gt),Te.transform.baseVal.replaceItem(Ze,0)},Be.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},We.prototype.getState.call(this))},Be.prototype.restoreState=function(Te){We.prototype.restoreState.call(this,Te);var Ke=Te;this.x1=Ke.x1,this.y1=Ke.y1,this.x2=Ke.x2,this.y2=Ke.y2},Be.prototype.scale=function(Te,Ke){We.prototype.scale.call(this,Te,Ke),this.x1=this.x1*Te,this.y1=this.y1*Ke,this.x2=this.x2*Te,this.y2=this.y2*Ke,this.adjustVisual(),this.adjustControlBox()},Be}(be),Qe=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.strokeColor="transparent",Ze.strokeWidth=0,Ze.strokeDasharray="",Ze.setStrokeColor=Ze.setStrokeColor.bind(Ze),Ze.setStrokeWidth=Ze.setStrokeWidth.bind(Ze),Ze.setStrokeDasharray=Ze.setStrokeDasharray.bind(Ze),Ze.strokeColor=gt.defaultColor,Ze.strokeWidth=gt.defaultStrokeWidth,Ze.strokeDasharray=gt.defaultStrokeDasharray,Ze.strokePanel=new pe("Line color",gt.defaultColorSet,gt.defaultColor),Ze.strokePanel.onColorChanged=Ze.setStrokeColor,Ze.strokeWidthPanel=new De("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),Ze.strokeWidthPanel.onWidthChanged=Ze.setStrokeWidth,Ze.strokeStylePanel=new Re("Line style",gt.defaultStrokeDasharrays,gt.defaultStrokeDasharray),Ze.strokeStylePanel.onStyleChanged=Ze.setStrokeDasharray,Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return!(!We.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.selectorLine&&Te!==this.visibleLine)},Be.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Be.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Be.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.adjustVisual(),this.colorChanged(Te)},Be.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.adjustVisual()},Be.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},We.prototype.getState.call(this));return Te.typeName=Be.typeName,Te},Be.prototype.restoreState=function(Te){We.prototype.restoreState.call(this,Te);var Ke=Te;this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.createVisual(),this.adjustVisual()},Be.typeName="LineMarker",Be.title="Line marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Be}(Ve),ut=function(We){function Be(Te,Ke,gt,Ze){var Ot=We.call(this,Te,Ze||'<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 Ot.fonts=[],Ot.fontBoxes=[],Ot.fonts=Ke,Ot.currentFont=gt,Ot.setCurrentFont=Ot.setCurrentFont.bind(Ot),Ot}return ce(Be,We),Be.prototype.getUi=function(){var Te=this,Ke=document.createElement("div");return Ke.style.overflow="hidden",Ke.style.flexGrow="2",this.fonts.forEach(function(gt){var Ze=document.createElement("div");Ze.style.display="inline-block",Ze.style.alignItems="center",Ze.style.justifyContent="space-between",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.overflow="hidden",Ze.style.maxWidth=100/Te.fonts.length-5+"%",Ze.style.borderColor=gt===Te.currentFont?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){Te.setCurrentFont(gt,Ze)}),Ke.appendChild(Ze);var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.minHeight="20px",Ot.style.flexGrow="2",Ot.style.fontFamily=gt,Ot.style.overflow="hidden";var zt=document.createElement("div");zt.style.whiteSpace="nowrap",zt.style.overflow="hidden",zt.style.textOverflow="ellipsis",zt.innerHTML="The quick brown fox jumps over the lazy dog",Ot.appendChild(zt),Ze.appendChild(Ot),Te.fontBoxes.push(Ze)}),Ke},Be.prototype.setCurrentFont=function(Te,Ke){var gt=this;this.currentFont=Te,this.fontBoxes.forEach(function(Ze){Ze.style.borderColor=Ze===Ke?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Be}(ue),dt=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.color="transparent",Ze.padding=5,Ze.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ze.text=Ze.DEFAULT_TEXT,Ze.isMoved=!1,Ze.color=gt.defaultColor,Ze.fontFamily=gt.defaultFontFamily,Ze.defaultSize={x:100,y:30},Ze.setColor=Ze.setColor.bind(Ze),Ze.setFont=Ze.setFont.bind(Ze),Ze.renderText=Ze.renderText.bind(Ze),Ze.sizeText=Ze.sizeText.bind(Ze),Ze.textEditDivClicked=Ze.textEditDivClicked.bind(Ze),Ze.showTextEditor=Ze.showTextEditor.bind(Ze),Ze.setSize=Ze.setSize.bind(Ze),Ze.positionTextEditor=Ze.positionTextEditor.bind(Ze),Ze.colorPanel=new pe("Color",gt.defaultColorSet,gt.defaultColor),Ze.colorPanel.onColorChanged=Ze.setColor,Ze.fontFamilyPanel=new ut("Font",gt.defaultFontFamilies,gt.defaultFontFamily),Ze.fontFamilyPanel.onFontChanged=Ze.setFont,Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){if(We.prototype.ownsTarget.call(this,Te)||Te===this.visual||Te===this.textElement||Te===this.bgRectangle)return!0;var Ke=!1;return this.textElement.childNodes.forEach(function(gt){gt===Te&&(Ke=!0)}),Ke},Be.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.bgRectangle=Pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),this.isMoved=!1,this.pointerDownPoint=Te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},Be.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(Ke){Te.textElement.appendChild(Pe.createTSpan(Ke.trim()===""?" ":Ke.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Be.prototype.getTextScale=function(){var Te=this.textElement.getBBox(),Ke=1;if(Te.width>0&&Te.height>0){var gt=(1*this.width-this.width*this.padding*2/100)/Te.width,Ze=(1*this.height-this.height*this.padding*2/100)/Te.height;Ke=Math.min(gt,Ze)}return Ke},Be.prototype.getTextPosition=function(Te){var Ke=this.textElement.getBBox(),gt=0,Ze=0;return Ke.width>0&&Ke.height>0&&(gt=(this.width-Ke.width*Te)/2,Ze=this.height/2-Ke.height*Te/2),{x:gt,y:Ze}},Be.prototype.sizeText=function(){var Te=this.textElement.getBBox(),Ke=this.getTextScale(),gt=this.getTextPosition(Ke);gt.y-=Te.y*Ke,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+gt.x+"px, "+gt.y+"px) scale("+Ke+", "+Ke+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(gt.x,gt.y),this.textElement.transform.baseVal.getItem(1).setScale(Ke,Ke))},Be.prototype.manipulate=function(Te){We.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)},Be.prototype.resize=function(Te){We.prototype.resize.call(this,Te),this.isMoved=!0,this.setSize(),this.sizeText()},Be.prototype.setSize=function(){We.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Be.prototype.pointerUp=function(Te){var Ke=this.state;Ke==="creating"&&(this._suppressMarkerCreateEvent=!0),We.prototype.pointerUp.call(this,Te),this.setSize(),(Ke==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Be.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(Ke){Ke.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ke=Number.parseFloat(Te.textEditor.style.fontSize);Te.textEditor.clientWidth>=Number.parseInt(Te.textEditor.style.maxWidth)&&Ke>.9;)Ke-=.1,Te.textEditor.style.fontSize=Math.max(Ke,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ke){Ke.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ke){if(Ke.clipboardData){var gt=Ke.clipboardData.getData("text"),Ze=window.getSelection();if(!Ze.rangeCount)return!1;Ze.deleteFromDocument(),Ze.getRangeAt(0).insertNode(document.createTextNode(gt)),Ke.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")},Be.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Te=this.getTextScale(),Ke=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),gt=this.textElement.getBBox(),Ze={x:gt.width*Te,y:gt.height*Te};Ke.x-=Ze.x/2,Ke.y-=Ze.y/2,this.textEditor.style.top=Ke.y+"px",this.textEditor.style.left=Ke.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ke.x+"px",this.textEditor.style.fontSize=Math.max(16*Te,12)+"px",this.textElement.style.display="none"}},Be.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()},Be.prototype.select=function(){We.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Be.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),We.prototype.deselect.call(this)},Be.prototype.dblClick=function(Te,Ke){We.prototype.dblClick.call(this,Te,Ke),this.showTextEditor()},Be.prototype.setColor=function(Te){this.textElement&&Pe.setAttributes(this.textElement,[["fill",Te]]),this.color=Te,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Te)},Be.prototype.setFont=function(Te){this.textElement&&Pe.setAttributes(this.textElement,[["font-family",Te]]),this.fontFamily=Te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Be.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Be.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},We.prototype.getState.call(this));return Te.typeName=Be.typeName,Te},Be.prototype.restoreState=function(Te){var Ke=Te;this.color=Ke.color,this.fontFamily=Ke.fontFamily,this.padding=Ke.padding,this.text=Ke.text,this.createVisual(),We.prototype.restoreState.call(this,Te),this.setSize()},Be.prototype.scale=function(Te,Ke){We.prototype.scale.call(this,Te,Ke),this.setSize(),this.sizeText(),this.positionTextEditor()},Be.typeName="TextMarker",Be.title="Text marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Be}(Le),St=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.color="transparent",Ze.lineWidth=3,Ze.drawing=!1,Ze.pixelRatio=1,Ze.color=gt.defaultColor,Ze.lineWidth=gt.defaultStrokeWidth,Ze.pixelRatio=gt.freehandPixelRatio,Ze.setColor=Ze.setColor.bind(Ze),Ze.addCanvas=Ze.addCanvas.bind(Ze),Ze.finishCreation=Ze.finishCreation.bind(Ze),Ze.setLineWidth=Ze.setLineWidth.bind(Ze),Ze.colorPanel=new pe("Color",gt.defaultColorSet,gt.defaultColor),Ze.colorPanel.onColorChanged=Ze.setColor,Ze.lineWidthPanel=new De("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),Ze.lineWidthPanel.onWidthChanged=Ze.setLineWidth,Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return!(!We.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.drawingImage)},Be.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.drawingImage=Pe.createImage(),this.visual.appendChild(this.drawingImage);var Te=Pe.createTransform();this.visual.transform.baseVal.appendItem(Te),this.addMarkerVisualToContainer(this.visual)},Be.prototype.pointerDown=function(Te,Ke){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):We.prototype.pointerDown.call(this,Te,Ke)},Be.prototype.manipulate=function(Te){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Te.x,Te.y),this.canvasContext.stroke()):We.prototype.manipulate.call(this,Te)},Be.prototype.resize=function(Te){We.prototype.resize.call(this,Te),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Be.prototype.pointerUp=function(Te){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):We.prototype.pointerUp.call(this,Te)},Be.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Be.prototype.select=function(){this.state==="creating"&&this.finishCreation(),We.prototype.select.call(this)},Be.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),We.prototype.deselect.call(this)},Be.prototype.finishCreation=function(){for(var Te=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ke=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],gt=Ke[0],Ze=Ke[1],Ot=Ke[2],zt=Ke[3],Yt=!1,jt=0;jt<this.canvasElement.height;jt++)for(var Kt=0;Kt<this.canvasElement.width;Kt++)Te.data[jt*this.canvasElement.width*4+4*Kt+3]>0&&(Yt=!0,jt<Ze&&(Ze=jt),Kt<gt&&(gt=Kt),jt>zt&&(zt=jt),Kt>Ot&&(Ot=Kt));if(Yt){this.left=gt/this.pixelRatio,this.top=Ze/this.pixelRatio,this.width=(Ot-gt)/this.pixelRatio,this.height=(zt-Ze)/this.pixelRatio;var en=document.createElement("canvas");en.width=Ot-gt,en.height=zt-Ze,en.getContext("2d").putImageData(this.canvasContext.getImageData(gt,Ze,Ot-gt,zt-Ze),0,0),this.drawingImgUrl=en.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Be.prototype.setDrawingImage=function(){Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Be.prototype.setColor=function(Te){this.color=Te,this.colorChanged(Te)},Be.prototype.setLineWidth=function(Te){this.lineWidth=Te},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=Object.assign({drawingImgUrl:this.drawingImgUrl},We.prototype.getState.call(this));return Te.typeName=Be.typeName,Te},Be.prototype.restoreState=function(Te){this.createVisual(),We.prototype.restoreState.call(this,Te),this.drawingImgUrl=Te.drawingImgUrl,this.setDrawingImage()},Be.prototype.scale=function(Te,Ke){We.prototype.scale.call(this,Te,Ke),this.setDrawingImage()},Be.typeName="FreehandMarker",Be.title="Freehand marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Be}(Le),qe=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,gt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ze.typeBoxes=[],Ze.currentType=Ke,Ze.setCurrentType=Ze.setCurrentType.bind(Ze),Ze}return ce(Be,We),Be.prototype.getUi=function(){var Te=this,Ke=document.createElement("div");Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2";for(var gt=function(zt){var Yt="both";switch(zt){case 0:Yt="both";break;case 1:Yt="start";break;case 2:Yt="end";break;case 3:Yt="none"}var jt=document.createElement("div");if(jt.style.display="flex",jt.style.flexGrow="2",jt.style.alignItems="center",jt.style.justifyContent="space-between",jt.style.padding="5px",jt.style.borderWidth="2px",jt.style.borderStyle="solid",jt.style.borderColor=Yt===Ze.currentType?Ze.uiStyleSettings.toolboxAccentColor:"transparent",jt.addEventListener("click",function(){Te.setCurrentType(Yt,jt)}),Ke.appendChild(jt),Yt==="both"||Yt==="start"){var Kt=document.createElement("div");Kt.style.display="flex",Kt.style.alignItems="center",Kt.style.minHeight="20px",Kt.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="`+(Ze.uiStyleSettings!==void 0?Ze.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Kt.style.marginLeft="5px",jt.appendChild(Kt)}var en=document.createElement("div");en.style.display="flex",en.style.alignItems="center",en.style.minHeight="20px",en.style.flexGrow="2";var cn=document.createElement("hr");if(cn.style.minWidth="20px",cn.style.border="0px",cn.style.borderTop="3px solid "+(Ze.uiStyleSettings!==void 0?Ze.uiStyleSettings.toolboxColor:"#eeeeee"),cn.style.flexGrow="2",en.appendChild(cn),jt.appendChild(en),Yt==="both"||Yt==="end"){var yn=document.createElement("div");yn.style.display="flex",yn.style.alignItems="center",yn.style.minHeight="20px",yn.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="`+(Ze.uiStyleSettings!==void 0?Ze.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,yn.style.marginRight="5px",jt.appendChild(yn)}Ze.typeBoxes.push(jt)},Ze=this,Ot=0;Ot<4;Ot++)gt(Ot);return Ke},Be.prototype.setCurrentType=function(Te,Ke){var gt=this;this.currentType=Te,this.typeBoxes.forEach(function(Ze){Ze.style.borderColor=Ze===Ke?gt.uiStyleSettings!==void 0?gt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Be}(ue),it=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.arrowType="end",Ze.arrowBaseHeight=10,Ze.arrowBaseWidth=10,Ze.getArrowPoints=Ze.getArrowPoints.bind(Ze),Ze.setArrowType=Ze.setArrowType.bind(Ze),Ze.arrowTypePanel=new qe("Arrow type","end"),Ze.arrowTypePanel.onArrowTypeChanged=Ze.setArrowType,Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return!(!We.prototype.ownsTarget.call(this,Te)&&Te!==this.arrow1&&Te!==this.arrow2)},Be.prototype.getArrowPoints=function(Te,Ke){var gt=this.arrowBaseWidth+2*this.strokeWidth,Ze=this.arrowBaseHeight+2*this.strokeWidth;return Te-gt/2+","+(Ke+Ze/2)+" "+Te+","+(Ke-Ze/2)+" "+(Te+gt/2)+","+(Ke+Ze/2)},Be.prototype.createTips=function(){this.arrow1=Pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow2)},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),this.state==="creating"&&this.createTips()},Be.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Pe.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 Ke=this.arrow1.transform.baseVal.getItem(0);Ke.setRotate(Te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ke,0);var gt=this.arrow2.transform.baseVal.getItem(0);gt.setRotate(Te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(gt,0)}},Be.prototype.setArrowType=function(Te){this.arrowType=Te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=Object.assign({arrowType:this.arrowType},We.prototype.getState.call(this));return Te.typeName=Be.typeName,Te},Be.prototype.restoreState=function(Te){We.prototype.restoreState.call(this,Te);var Ke=Te;this.arrowType=Ke.arrowType,this.createTips(),this.adjustVisual()},Be.typeName="ArrowMarker",Be.title="Arrow marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Be}(Qe),pt=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.fillColor=gt.defaultFillColor,Ze.strokeWidth=0,Ze.fillPanel=new pe("Color",gt.defaultColorSet,gt.defaultFillColor),Ze.fillPanel.onColorChanged=Ze.setFillColor,Ze}return ce(Be,We),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=We.prototype.getState.call(this);return Te.typeName=Be.typeName,Te},Be.typeName="CoverMarker",Be.title="Cover marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Be}(Ne),wt=function(We){function Be(Te,Ke,gt,Ze){var Ot=We.call(this,Te,Ze||'<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 Ot.opacities=[],Ot.opacityBoxes=[],Ot.opacities=Ke,Ot.currentOpacity=gt,Ot.setCurrentOpacity=Ot.setCurrentOpacity.bind(Ot),Ot}return ce(Be,We),Be.prototype.getUi=function(){var Te=this,Ke=document.createElement("div");return Ke.style.display="flex",Ke.style.overflow="hidden",Ke.style.flexGrow="2",Ke.style.justifyContent="space-between",this.opacities.forEach(function(gt){var Ze=document.createElement("div");Ze.style.display="flex",Ze.style.alignItems="center",Ze.style.justifyContent="center",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.borderColor=gt===Te.currentOpacity?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){Te.setCurrentOpacity(gt,Ze)}),Ke.appendChild(Ze);var Ot=document.createElement("div");Ot.innerText=100*gt+"%",Ze.appendChild(Ot),Te.opacityBoxes.push(Ze)}),Ke},Be.prototype.setCurrentOpacity=function(Te,Ke){var gt=this;this.currentOpacity=Te,this.opacityBoxes.forEach(function(Ze){Ze.style.borderColor=Ze===Ke?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Be}(ue),xt=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.setOpacity=Ze.setOpacity.bind(Ze),Ze.fillColor=gt.defaultHighlightColor,Ze.strokeWidth=0,Ze.opacity=gt.defaultHighlightOpacity,Ze.fillPanel=new pe("Color",gt.defaultColorSet,Ze.fillColor),Ze.fillPanel.onColorChanged=Ze.setFillColor,Ze.opacityPanel=new wt("Opacity",gt.defaultOpacitySteps,Ze.opacity),Ze.opacityPanel.onOpacityChanged=Ze.setOpacity,Ze}return ce(Be,We),Be.prototype.setOpacity=function(Te){this.opacity=Te,this.visual&&Pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=We.prototype.getState.call(this);return Te.typeName=Be.typeName,Te},Be.typeName="HighlightMarker",Be.title="Highlight marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Be}(pt),ft='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',mt='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',yt=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.bgColor="transparent",Ze.tipPosition={x:0,y:0},Ze.tipBase1Position={x:0,y:0},Ze.tipBase2Position={x:0,y:0},Ze.tipMoving=!1,Ze.color=gt.defaultStrokeColor,Ze.bgColor=gt.defaultFillColor,Ze.fontFamily=gt.defaultFontFamily,Ze.defaultSize={x:100,y:30},Ze.setBgColor=Ze.setBgColor.bind(Ze),Ze.getTipPoints=Ze.getTipPoints.bind(Ze),Ze.positionTip=Ze.positionTip.bind(Ze),Ze.setTipPoints=Ze.setTipPoints.bind(Ze),Ze.colorPanel=new pe("Text color",gt.defaultColorSet,Ze.color,ft),Ze.colorPanel.onColorChanged=Ze.setColor,Ze.bgColorPanel=new pe("Fill color",gt.defaultColorSet,Ze.bgColor,mt),Ze.bgColorPanel.onColorChanged=Ze.setBgColor,Ze.fontFamilyPanel=new ut("Font",gt.defaultFontFamilies,gt.defaultFontFamily),Ze.fontFamilyPanel.onFontChanged=Ze.setFont,Ze.tipGrip=new Ie,Ze.tipGrip.visual.transform.baseVal.appendItem(Pe.createTransform()),Ze.controlBox.appendChild(Ze.tipGrip.visual),Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return We.prototype.ownsTarget.call(this,Te)||this.tipGrip.ownsTarget(Te)||this.tip===Te},Be.prototype.createTip=function(){Pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Be.prototype.pointerDown=function(Te,Ke){this.state==="new"&&We.prototype.pointerDown.call(this,Te,Ke),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ke)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):We.prototype.pointerDown.call(this,Te,Ke)},Be.prototype.pointerUp=function(Te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,We.prototype.pointerUp.call(this,Te);else{var Ke=this.state==="creating";We.prototype.pointerUp.call(this,Te),this.setTipPoints(Ke),this.positionTip()}},Be.prototype.manipulate=function(Te){if(this.tipMoving){var Ke=this.unrotatePoint(Te);this.tipPosition={x:Ke.x-this.manipulationStartLeft,y:Ke.y-this.manipulationStartTop},this.positionTip()}else We.prototype.manipulate.call(this,Te)},Be.prototype.setBgColor=function(Te){this.bgRectangle&&this.tip&&(Pe.setAttributes(this.bgRectangle,[["fill",Te]]),Pe.setAttributes(this.tip,[["fill",Te]])),this.bgColor=Te,this.fillColorChanged(Te)},Be.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Be.prototype.setTipPoints=function(Te){Te===void 0&&(Te=!1);var Ke=Math.min(this.height/2,15),gt=this.height/5;Te&&(this.tipPosition={x:Ke+gt/2,y:this.height+20});var Ze=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ze<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(gt=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:Ke,y:0},this.tipBase2Position={x:Ke+gt,y:0}):(this.tipBase1Position={x:0,y:Ke},this.tipBase2Position={x:0,y:Ke+gt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ze<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(gt=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ke-gt,y:0},this.tipBase2Position={x:this.width-Ke,y:0}):(this.tipBase1Position={x:this.width,y:Ke},this.tipBase2Position={x:this.width,y:Ke+gt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ze<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(gt=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ke-gt,y:this.height},this.tipBase2Position={x:this.width-Ke,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ke-gt},this.tipBase2Position={x:this.width,y:this.height-Ke}):Ze<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(gt=this.width/5,Ke=Math.min(this.width/2,15),this.tipBase1Position={x:Ke,y:this.height},this.tipBase2Position={x:Ke+gt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ke},this.tipBase2Position={x:0,y:this.height-Ke-gt})},Be.prototype.resize=function(Te){We.prototype.resize.call(this,Te),this.positionTip()},Be.prototype.positionTip=function(){Pe.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(Be.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Be.prototype.select=function(){this.positionTip(),We.prototype.select.call(this)},Be.prototype.getState=function(){var Te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},We.prototype.getState.call(this));return Te.typeName=Be.typeName,Te},Be.prototype.restoreState=function(Te){var Ke=Te;this.bgColor=Ke.bgColor,this.tipPosition=Ke.tipPosition,We.prototype.restoreState.call(this,Te),this.createTip(),this.setTipPoints()},Be.prototype.scale=function(Te,Ke){We.prototype.scale.call(this,Te,Ke),this.tipPosition={x:this.tipPosition.x*Te,y:this.tipPosition.y*Ke},this.positionTip()},Be.typeName="CalloutMarker",Be.title="Callout marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Be}(dt),It=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.fillColor="transparent",Ze.strokeColor="transparent",Ze.strokeWidth=0,Ze.strokeDasharray="",Ze.opacity=1,Ze.strokeColor=gt.defaultColor,Ze.strokeWidth=gt.defaultStrokeWidth,Ze.strokeDasharray=gt.defaultStrokeDasharray,Ze.fillColor=gt.defaultFillColor,Ze.setStrokeColor=Ze.setStrokeColor.bind(Ze),Ze.setFillColor=Ze.setFillColor.bind(Ze),Ze.setStrokeWidth=Ze.setStrokeWidth.bind(Ze),Ze.setStrokeDasharray=Ze.setStrokeDasharray.bind(Ze),Ze.setOpacity=Ze.setOpacity.bind(Ze),Ze.createVisual=Ze.createVisual.bind(Ze),Ze.strokePanel=new pe("Line color",Se(gt.defaultColorSet,["transparent"]),gt.defaultColor),Ze.strokePanel.onColorChanged=Ze.setStrokeColor,Ze.fillPanel=new pe("Fill color",Se(gt.defaultColorSet,["transparent"]),Ze.fillColor,mt),Ze.fillPanel.onColorChanged=Ze.setFillColor,Ze.strokeWidthPanel=new De("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),Ze.strokeWidthPanel.onWidthChanged=Ze.setStrokeWidth,Ze.strokeStylePanel=new Re("Line style",gt.defaultStrokeDasharrays,gt.defaultStrokeDasharray),Ze.strokeStylePanel.onStyleChanged=Ze.setStrokeDasharray,Ze.opacityPanel=new wt("Opacity",gt.defaultOpacitySteps,Ze.opacity),Ze.opacityPanel.onOpacityChanged=Ze.setOpacity,Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return!(!We.prototype.ownsTarget.call(this,Te)&&Te!==this.visual)},Be.prototype.createVisual=function(){this.visual=Pe.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},Be.prototype.manipulate=function(Te){We.prototype.manipulate.call(this,Te)},Be.prototype.resize=function(Te){We.prototype.resize.call(this,Te),this.setSize()},Be.prototype.setSize=function(){We.prototype.setSize.call(this),Pe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Be.prototype.pointerUp=function(Te){We.prototype.pointerUp.call(this,Te),this.setSize()},Be.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.visual&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},Be.prototype.setFillColor=function(Te){this.fillColor=Te,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Te),this.stateChanged()},Be.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Be.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.visual&&Pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Be.prototype.setOpacity=function(Te){this.opacity=Te,this.visual&&Pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this));return Te.typeName=Be.typeName,Te},Be.prototype.restoreState=function(Te){var Ke=Te;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.opacity=Ke.opacity,this.createVisual(),We.prototype.restoreState.call(this,Te),this.setSize()},Be.prototype.scale=function(Te,Ke){We.prototype.scale.call(this,Te,Ke),this.setSize()},Be.typeName="EllipseMarker",Be.title="Ellipse marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Be}(Le),kt=function(We){function Be(Te,Ke,gt){return We.call(this,Te,Ke,gt)||this}return ce(Be,We),Object.defineProperty(Be.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Be.prototype.ownsTarget=function(Te){return!(!We.prototype.ownsTarget.call(this,Te)&&Te!==this.tip1&&Te!==this.tip2)},Be.prototype.createTips=function(){this.tip1=Pe.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(Pe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Pe.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(Pe.createTransform()),this.visual.appendChild(this.tip2)},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),this.state==="creating"&&this.createTips()},Be.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Pe.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()]]),Pe.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),Ke=this.tip1.transform.baseVal.getItem(0);Ke.setRotate(Te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ke,0);var gt=this.tip2.transform.baseVal.getItem(0);gt.setRotate(Te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(gt,0)}},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=We.prototype.getState.call(this);return Te.typeName=Be.typeName,Te},Be.prototype.restoreState=function(Te){We.prototype.restoreState.call(this,Te),this.createTips(),this.adjustVisual()},Be.typeName="MeasurementMarker",Be.title="Measurement marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Be}(Qe),Ut=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.strokePanel.colors=gt.defaultColorSet,Ze.fillColor="transparent",Ze}return ce(Be,We),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=We.prototype.getState.call(this);return Te.typeName=Be.typeName,Te},Be.typeName="EllipseFrameMarker",Be.title="Ellipse frame marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Be}(It),Pt=function(){function We(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),We.prototype.addUndoStep=function(Be){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Be)||(this.undoStack.push(Be),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Be)&&this.redoStack.splice(0,this.redoStack.length))},We.prototype.replaceLastUndoStep=function(Be){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Be)},We.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},We.prototype.undo=function(){if(this.undoStack.length>1){var Be=this.undoStack.pop();return Be!==void 0&&this.redoStack.push(Be),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},We.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},We}(),Ct=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.strokeColor="transparent",Ze.strokeWidth=0,Ze.strokeDasharray="",Ze.curveX=0,Ze.curveY=0,Ze.manipulationStartCurveX=0,Ze.manipulationStartCurveY=0,Ze.setStrokeColor=Ze.setStrokeColor.bind(Ze),Ze.setStrokeWidth=Ze.setStrokeWidth.bind(Ze),Ze.setStrokeDasharray=Ze.setStrokeDasharray.bind(Ze),Ze.positionGrips=Ze.positionGrips.bind(Ze),Ze.addControlGrips=Ze.addControlGrips.bind(Ze),Ze.adjustVisual=Ze.adjustVisual.bind(Ze),Ze.setupControlBox=Ze.setupControlBox.bind(Ze),Ze.resize=Ze.resize.bind(Ze),Ze.strokeColor=gt.defaultColor,Ze.strokeWidth=gt.defaultStrokeWidth,Ze.strokeDasharray=gt.defaultStrokeDasharray,Ze.strokePanel=new pe("Line color",gt.defaultColorSet,gt.defaultColor),Ze.strokePanel.onColorChanged=Ze.setStrokeColor,Ze.strokeWidthPanel=new De("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),Ze.strokeWidthPanel.onWidthChanged=Ze.setStrokeWidth,Ze.strokeStylePanel=new Re("Line style",gt.defaultStrokeDasharrays,gt.defaultStrokeDasharray),Ze.strokeStylePanel.onStyleChanged=Ze.setStrokeDasharray,Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return!(!We.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.selectorCurve&&Te!==this.visibleCurve&&!this.curveGrip.ownsTarget(Te))},Be.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Be.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorCurve=Pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Pe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),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(Ke)&&(this.activeGrip=this.curveGrip,this._state="resize")},Be.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Be.prototype.setupControlBox=function(){We.prototype.setupControlBox.call(this),this.curveControlLine1=Pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Pe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Be.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,We.prototype.addControlGrips.call(this)},Be.prototype.positionGrips=function(){We.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()))},Be.prototype.manipulate=function(Te){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Te.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Te.y-this.manipulationStartY),We.prototype.manipulate.call(this,Te)},Be.prototype.resize=function(Te){this.activeGrip===this.curveGrip&&(this.curveX=Te.x,this.curveY=Te.y),We.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)},Be.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.adjustVisual(),this.colorChanged(Te)},Be.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.adjustVisual()},Be.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.adjustVisual()},Be.prototype.scale=function(Te,Ke){this.curveX=this.curveX*Te,this.curveY=this.curveY*Ke,We.prototype.scale.call(this,Te,Ke)},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var Te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},We.prototype.getState.call(this));return Te.typeName=Be.typeName,Te},Be.prototype.restoreState=function(Te){We.prototype.restoreState.call(this,Te);var Ke=Te;this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.curveX=Ke.curveX,this.curveY=Ke.curveY,this.createVisual(),this.adjustVisual()},Be.typeName="CurveMarker",Be.title="Curve marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Be}(Ve),st=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,Ke,gt)||this;return Ze.fillColor="transparent",Ze.strokeColor="transparent",Ze.strokeWidth=0,Ze.strokeDasharray="",Ze.textColor="transparent",Ze.fontSize="1rem",Ze.isMoved=!1,Ze.captionText="Caption",Ze.PADDING=5,Ze.captionBoxWidth=0,Ze.captionBoxHeight=0,Ze.strokeColor=gt.defaultColor,Ze.strokeWidth=gt.defaultStrokeWidth,Ze.strokeDasharray=gt.defaultStrokeDasharray,Ze.fillColor=gt.defaultFillColor,Ze.textColor=gt.defaultStrokeColor,Ze.fontFamily=gt.defaultFontFamily,Ze.fontSize=gt.defaultCaptionFontSize,Ze.captionText=gt.defaultCaptionText,Ze.setStrokeColor=Ze.setStrokeColor.bind(Ze),Ze.setFillColor=Ze.setFillColor.bind(Ze),Ze.setStrokeWidth=Ze.setStrokeWidth.bind(Ze),Ze.setStrokeDasharray=Ze.setStrokeDasharray.bind(Ze),Ze.createVisual=Ze.createVisual.bind(Ze),Ze.sizeCaption=Ze.sizeCaption.bind(Ze),Ze.setCaptionText=Ze.setCaptionText.bind(Ze),Ze.showTextEditor=Ze.showTextEditor.bind(Ze),Ze.positionTextEditor=Ze.positionTextEditor.bind(Ze),Ze.finishTextEditing=Ze.finishTextEditing.bind(Ze),Ze.setFont=Ze.setFont.bind(Ze),Ze.setTextColor=Ze.setTextColor.bind(Ze),Ze.strokePanel=new pe("Line color",Se(gt.defaultColorSet,["transparent"]),Ze.strokeColor),Ze.strokePanel.onColorChanged=Ze.setStrokeColor,Ze.fillPanel=new pe("Fill color",Se(gt.defaultColorSet,["transparent"]),Ze.fillColor,mt),Ze.fillPanel.onColorChanged=Ze.setFillColor,Ze.strokeWidthPanel=new De("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),Ze.strokeWidthPanel.onWidthChanged=Ze.setStrokeWidth,Ze.strokeStylePanel=new Re("Line style",gt.defaultStrokeDasharrays,gt.defaultStrokeDasharray),Ze.strokeStylePanel.onStyleChanged=Ze.setStrokeDasharray,Ze.fontFamilyPanel=new ut("Font",gt.defaultFontFamilies,gt.defaultFontFamily),Ze.fontFamilyPanel.onFontChanged=Ze.setFont,Ze.textColorPanel=new pe("Text color",gt.defaultColorSet,Ze.textColor,ft),Ze.textColorPanel.onColorChanged=Ze.setTextColor,Ze}return ce(Be,We),Be.prototype.ownsTarget=function(Te){return!(!We.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.frame&&Te!==this.captionBg&&Te!==this.captionElement)},Be.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Pe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Pe.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=Pe.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Be.prototype.setCaptionText=function(Te){this.captionText=Te,this.captionElement.textContent=this.captionText,this.sizeCaption()},Be.prototype.pointerDown=function(Te,Ke){We.prototype.pointerDown.call(this,Te,Ke),this.isMoved=!1,this.pointerDownPoint=Te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},Be.prototype.manipulate=function(Te){We.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)},Be.prototype.resize=function(Te){We.prototype.resize.call(this,Te),this.setSize()},Be.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),Pe.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')"]]),Pe.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Be.prototype.showTextEditor=function(){var 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(Ke){Ke.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ke){Ke.key==="Enter"&&Te.finishTextEditing(Te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ke){Ke.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()},Be.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Be.prototype.finishTextEditing=function(Te){this.setCaptionText(Te.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Be.prototype.setFont=function(Te){this.captionElement&&Pe.setAttributes(this.captionElement,[["font-family",Te]]),this.fontFamily=Te,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Be.prototype.setTextColor=function(Te){this.captionElement&&Pe.setAttributes(this.captionElement,[["fill",Te]]),this.textColor=Te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Be.prototype.setSize=function(){We.prototype.setSize.call(this),Pe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Be.prototype.pointerUp=function(Te){We.prototype.pointerUp.call(this,Te),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Be.prototype.dblClick=function(Te,Ke){We.prototype.dblClick.call(this,Te,Ke),this.showTextEditor()},Be.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.frame&&Pe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},Be.prototype.setFillColor=function(Te){this.fillColor=Te,this.captionBg&&Pe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Te),this.stateChanged()},Be.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.frame&&Pe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Be.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.frame&&Pe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Be.prototype.getState=function(){var 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},We.prototype.getState.call(this));return Te.typeName=this.typeName,Te},Be.prototype.restoreState=function(Te){var Ke=Te;this.fillColor=Ke.fillColor,this.strokeColor=Ke.strokeColor,this.strokeWidth=Ke.strokeWidth,this.strokeDasharray=Ke.strokeDasharray,this.textColor=Ke.textColor,this.fontFamily=Ke.fontFamily,this.captionText=Ke.captionText,this.fontSize=Ke.fontSize,this.createVisual(),We.prototype.restoreState.call(this,Te),this.setSize()},Be.prototype.scale=function(Te,Ke){We.prototype.scale.call(this,Te,Ke),this.setSize()},Be.typeName="CaptionFrameMarker",Be.title="Caption frame marker",Be.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Be}(Le),bt=function(){function We(Be,Te){Te===void 0&&(Te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Be,this.cancelable=Te}return Object.defineProperty(We.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),We.prototype.preventDefault=function(){this._defaultPrevented=!0},We}(),at=function(We){function Be(Te,Ke,gt){var Ze=We.call(this,Te,!1)||this;return Ze.dataUrl=Ke,Ze.state=gt,Ze}return ce(Be,We),Be}(bt),ct=function(We){function Be(Te,Ke,gt){gt===void 0&&(gt=!1);var Ze=We.call(this,Te,gt)||this;return Ze.marker=Ke,Ze}return ce(Be,We),Be}(bt),Lt=function(){function We(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return We.prototype.addEventListener=function(Be,Te){this[Be].push(Te)},We.prototype.removeEventListener=function(Be,Te){var Ke=this[Be].indexOf(Te);Ke>-1&&this[Be].splice(Ke,1)},We}(),vt=function(){function We(Be){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new _e,this._isOpen=!1,this.undoRedoManager=new Pt,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 Lt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=We.instanceCounter++,this.styles=new z(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Be,this.targetRoot=document.body,this.width=Be.clientWidth,this.height=Be.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(We.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,St,it,dt,Ut,It,xt,yt,kt,pt,Qe,Ct,st]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,St,it,dt,It,xt,yt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,St,it,dt,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Be){var Te=this;this._availableMarkerTypes.splice(0),Be.forEach(function(Ke){if(typeof Ke=="string"){var gt=Te.ALL_MARKER_TYPES.find(function(Ze){return Ze.typeName===Ke});gt!==void 0&&Te._availableMarkerTypes.push(gt)}else Te._availableMarkerTypes.push(Ke)})},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Be){this._zoomLevel=Be,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),We.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),me.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},We.prototype.show=function(){var Be=this;this.styles.styleSheetRoot===void 0&&fe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=fe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Te){return Te(new bt(Be))})},We.prototype.render=function(){return we(this,void 0,void 0,function(){var Be;return Me(this,function(Te){switch(Te.label){case 0:return this.setCurrentMarker(),(Be=new xe).naturalSize=this.renderAtNaturalSize,Be.imageType=this.renderImageType,Be.imageQuality=this.renderImageQuality,Be.markersOnly=this.renderMarkersOnly,Be.width=this.renderWidth,Be.height=this.renderHeight,[4,Be.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Te.sent(),[4,Be.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Te.sent()]}})})},We.prototype.close=function(Be){var Te=this;if(Be===void 0&&(Be=!1),this.isOpen){var Ke=!1;Be||this.eventListeners.beforeclose.forEach(function(gt){var Ze=new bt(Te,!0);gt(Ze),Ze.defaultPrevented&&(Ke=!0)}),Ke||(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(gt){return gt(new bt(Te))}),this.detachEvents(),this._isOpen=!1)}},We.prototype.addMarkersToToolbar=function(){for(var Be,Te=[],Ke=0;Ke<arguments.length;Ke++)Te[Ke]=arguments[Ke];(Be=this._availableMarkerTypes).push.apply(Be,Te)},We.prototype.addRenderEventListener=function(Be){this.addEventListener("render",function(Te){Be(Te.dataUrl,Te.state)})},We.prototype.removeRenderEventListener=function(Be){},We.prototype.addCloseEventListener=function(Be){this.addEventListener("close",function(){Be()})},We.prototype.removeCloseEventListener=function(Be){},We.prototype.setupResizeObserver=function(){var Be=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Be.resize(Be.target.clientWidth,Be.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Be.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},We.prototype.onPopupTargetResize=function(){var Be=1*this.target.clientWidth/this.target.clientHeight,Te=this.editorCanvas.clientWidth/Be>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Be:this.editorCanvas.clientWidth,Ke=Te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Be;this.resize(Te,Ke)},We.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},We.prototype.resize=function(Be,Te){this._isResizing=!0;var Ke=Be/this.imageWidth,gt=Te/this.imageHeight;this.imageWidth=Math.round(Be),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(Ke,gt),this._isResizing=!1},We.prototype.scaleMarkers=function(Be,Te){var Ke,gt=this;this._currentMarker&&this._currentMarker instanceof dt?this._currentMarker.scale(Be,Te):(Ke=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ze){Ze!==gt._currentMarker&&Ze.scale(Be,Te)}),Ke!==void 0&&this.setCurrentMarker(Ke)},We.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},We.prototype.setTopLeft=function(){var Be=this.editingTarget.getBoundingClientRect(),Te=this.editorCanvas.getBoundingClientRect();this.left=Be.left-Te.left,this.top=Be.top-Te.top},We.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},We.prototype.addDefs=function(){for(var Be,Te=[],Ke=0;Ke<arguments.length;Ke++)Te[Ke]=arguments[Ke];this.defs=Pe.createDefs(),this.addDefsToImage(),(Be=this.defs).append.apply(Be,Te)},We.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},We.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},We.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},We.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},We.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},We.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},We.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},We.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Be=document.createElement("a");Be.href="https://markerjs.com/",Be.target="_blank",Be.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Be.title="Powered by marker.js",Be.style.display="grid",Be.style.alignItems="center",Be.style.justifyItems="center",Be.style.padding="3px",Be.style.width="20px",Be.style.height="20px",this.logoUI.appendChild(Be),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},We.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},We.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},We.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},We.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Be=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Be+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new re(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new le(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},We.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},We.prototype.removeMarker=function(Be){this.markerImage.removeChild(Be.container),this.markers.indexOf(Be)>-1&&this.markers.splice(this.markers.indexOf(Be),1),Be.dispose()},We.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},We.prototype.toolbarButtonClicked=function(Be,Te){if(Be==="marker"&&Te!==void 0)this.createNewMarker(Te);else if(Be==="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()}},We.prototype.deleteSelectedMarker=function(){var Be=this;if(this._currentMarker!==void 0){var Te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(gt){var Ze=new ct(Be,Be._currentMarker,!0);gt(Ze),Ze.defaultPrevented&&(Te=!0)}),!Te){var Ke=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(gt){return gt(new ct(Be,Ke))})}}},We.prototype.clear=function(){var Be=this,Te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ot){var zt=new ct(Be,void 0,!0);Ot(zt),zt.defaultPrevented&&(Te=!0)}),!Te)){this.setCurrentMarker();for(var Ke=function(Ot){var zt=gt.markers[Ot];gt.setCurrentMarker(gt.markers[Ot]),gt._currentMarker.dispose(),gt.markerImage.removeChild(gt._currentMarker.container),gt.markers.splice(gt.markers.indexOf(gt._currentMarker),1),gt.eventListeners.markerdelete.forEach(function(Yt){return Yt(new ct(Be,zt))})},gt=this,Ze=this.markers.length-1;Ze>=0;Ze--)Ke(Ze);this.addUndoStep()}},Object.defineProperty(We.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),We.prototype.showNotesEditor=function(){var Be;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Be=this._currentMarker.notes)!==null&&Be!==void 0?Be:"",this.overlayContainer.appendChild(this.notesArea))},We.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},We.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},We.prototype.addUndoStep=function(){var Be=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Te=this.getState(),Ke=this.undoRedoManager.getLastUndoStep();if(!Ke||Ke.width===Te.width&&Ke.height===Te.height){var gt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Te),gt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ze){return Ze(new bt(Be))})}else this.undoRedoManager.replaceLastUndoStep(Te),this.eventListeners.statechange.forEach(function(Ze){return Ze(new bt(Be))})}},We.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},We.prototype.undoStep=function(){var Be=this,Te=this.undoRedoManager.undo();Te!==void 0&&(this.restoreState(Te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ke){return Ke(new bt(Be))}))},We.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},We.prototype.redoStep=function(){var Be=this,Te=this.undoRedoManager.redo();Te!==void 0&&(this.restoreState(Te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ke){return Ke(new bt(Be))}))},We.prototype.stepZoom=function(){var Be=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Be<this.zoomSteps.length-1?this.zoomSteps[Be+1]:this.zoomSteps[0]},We.prototype.panTo=function(Be){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Be.x,top:this.prevPanPoint.y-Be.y}),this.prevPanPoint=Be},We.prototype.startRenderAndClose=function(){return we(this,void 0,void 0,function(){var Be,Te,Ke=this;return Me(this,function(gt){switch(gt.label){case 0:return[4,this.render()];case 1:return Be=gt.sent(),Te=this.getState(),this.eventListeners.render.forEach(function(Ze){return Ze(new at(Ke,Be,Te))}),this.close(!0),[2]}})})},We.prototype.getState=function(Be){Be===!0&&this.setCurrentMarker();var Te={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ke){return Te.markers.push(Ke.getState())}),Te},We.prototype.restoreState=function(Be){var Te=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Be.markers.forEach(function(Ke){var gt=Te._availableMarkerTypes.find(function(Ot){return Ot.typeName===Ke.typeName});if(gt!==void 0){var Ze=Te.addNewMarker(gt);Ze.restoreState(Ke),Te.markers.push(Ze)}}),Be.width&&Be.height&&(Be.width!==this.imageWidth||Be.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Be.width,this.imageHeight/Be.height),this.eventListeners.restorestate.forEach(function(Ke){return Ke(new bt(Te))})},We.prototype.addNewMarker=function(Be){var Te=Pe.createGroup();return this.markerImage.appendChild(Te),new Be(Te,this.overlayContainer,this.settings)},We.prototype.createNewMarker=function(Be){var Te,Ke=this;(Te=typeof Be=="string"?this._availableMarkerTypes.find(function(gt){return gt.typeName===Be}):Be)&&(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(gt){return gt(new ct(Ke,Ke._currentMarker))}))},We.prototype.markerCreated=function(Be){var Te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Be),this.setCurrentMarker(Be),Be instanceof St&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(St):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ke){return Ke(new ct(Te,Te._currentMarker))})},We.prototype.colorChanged=function(Be){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Be,this.settings.defaultStrokeColor=Be)},We.prototype.fillColorChanged=function(Be){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Be)},We.prototype.markerStateChanged=function(Be){var Te=this;this.eventListeners.markerchange.forEach(function(Ke){return Ke(new ct(Te,Be))})},We.prototype.setCurrentMarker=function(Be){var Te=this;this._currentMarker!==Be&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ke){return Ke(new ct(Te,Te._currentMarker))})),this._currentMarker=Be,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Ke){return Ke(new ct(Te,Te._currentMarker))}))},We.prototype.onPointerDown=function(Be){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Be.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Te=this.markers.find(function(Ke){return Ke.ownsTarget(Be.target)});Te!==void 0?(this.setCurrentMarker(Te),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Be.clientX,Be.clientY),Be.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Be.clientX,y:Be.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Be.clientX,Be.clientY))},We.prototype.onDblClick=function(Be){if(this._isFocused||this.focus(),this.mode==="select"){var Te=this.markers.find(function(Ke){return Ke.ownsTarget(Be.target)});Te!==void 0&&Te!==this._currentMarker&&this.setCurrentMarker(Te),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Be.clientX,Be.clientY),Be.target):this.setCurrentMarker()}},We.prototype.onPointerMove=function(Be){this.touchPoints!==1&&Be.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Be.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Be.clientX,Be.clientY)):this.zoomLevel>1&&this.panTo({x:Be.clientX,y:Be.clientY}))},We.prototype.onPointerUp=function(Be){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Be.clientX,Be.clientY)),this.isDragging=!1,this.addUndoStep()},We.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},We.prototype.onKeyUp=function(Be){this._currentMarker===void 0||this.notesArea!==void 0||Be.key!=="Delete"&&Be.key!=="Backspace"||this.deleteSelectedMarker()},We.prototype.clientToLocalCoordinates=function(Be,Te){var Ke=this.markerImage.getBoundingClientRect();return{x:(Be-Ke.left)/this.zoomLevel,y:(Te-Ke.top)/this.zoomLevel}},We.prototype.onWindowResize=function(){this.positionUI()},We.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Be=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Be+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},We.prototype.addLicenseKey=function(Be){me.addKey(Be)},We.prototype.addEventListener=function(Be,Te){this.eventListeners.addEventListener(Be,Te)},We.prototype.removeEventListener=function(Be,Te){this.eventListeners.removeEventListener(Be,Te)},We.prototype.renderState=function(Be){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Be),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(We.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),We.prototype.focus=function(){var Be=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Te){return Te(new bt(Be))}))},We.prototype.blur=function(){var Be=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Te){return Te(new bt(Be))}))},We.instanceCounter=0,We}(),nt=Ge(99064),Xe=Ge(955),Ue=(We,Be,Te)=>new Promise((Ke,gt)=>{var Ze=Yt=>{try{zt(Te.next(Yt))}catch(jt){gt(jt)}},Ot=Yt=>{try{zt(Te.throw(Yt))}catch(jt){gt(jt)}},zt=Yt=>Yt.done?Ke(Yt.value):Promise.resolve(Yt.value).then(Ze,Ot);zt((Te=Te.apply(We,Be)).next())}),tt=({data:We,className:Be,fullWidth:Te,style:Ke={},onClose:gt,onOk:Ze,showFullTools:Ot,noAssociationId:zt})=>{const Yt=(0,et.useRef)(null),jt=(0,et.useRef)(null),Kt=(0,et.useRef)(null),en=(0,et.useRef)(null),[cn,yn]=(0,et.useState)(!1),[On,or]=(0,et.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,et.useEffect)(()=>(Kt.current||(Kt.current=document.createElement("style"),document.head.appendChild(Kt.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),Kt.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&&er()):(document.body.removeAttribute("data-custom"),Kt.current&&(document.head.removeChild(Kt.current),Kt.current=null)),()=>{document.body.removeAttribute("data-custom"),Kt.current&&(document.head.removeChild(Kt.current),Kt.current=null)}),[We==null?void 0:We.visible]);const er=()=>Ue(void 0,null,function*(){yn(!0),or("\u6B63\u5728\u52A0\u8F7D\u4E2D");const kr=yield(0,Xe.ZJ)(We==null?void 0:We.src);Yt.current.src="",Yt.current.src=kr,Yt.current.onload=function(){Nr()},yn(!1),or("")}),Tr=kr=>Ue(void 0,null,function*(){yn(!0),or("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ur=yield(0,nt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:kr.dataUrl}});Ur!=null&&Ur.id&&!zt?(yield(0,nt.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ur==null?void 0:Ur.id,settings:JSON.stringify(kr.state)}})).status===0&&Ze():Ur!=null&&Ur.id&&Ze(Ur),yn(!1),or("")}),Kn=()=>{const kr=document.querySelector('a[href="https://markerjs.com/"]');kr&&kr.parentNode&&(kr.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(Jr=>{const Mr=document.querySelector(Jr.name);Mr&&Mr.setAttribute("title",Jr.title)})},Nr=()=>{jt.current=new vt(Yt.current),jt.current.targetRoot=en.current,jt.current.addEventListener("render",Tr),jt.current.addEventListener("beforeclose",gt),Ot&&(jt.current.availableMarkerTypes=jt.current.ALL_MARKER_TYPES,jt.current.uiStyleSettings.redoButtonVisible=!0,jt.current.uiStyleSettings.notesButtonVisible=!0,jt.current.uiStyleSettings.zoomButtonVisible=!0,jt.current.uiStyleSettings.zoomOutButtonVisible=!0,jt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=jt.current.uiStyleSettings,jt.current.show(),We!=null&&We.snapshotData&&jt.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Kn()},300)};return et.createElement(et.Fragment,null,(We==null?void 0:We.visible)&&et.createElement(je.Z,{spinning:cn,tip:On,style:{position:"absolute",width:"100vw"}},et.createElement("div",{ref:en,className:ze()(Mt.imageDimensions,Be,Te?Mt.fullWidth:""),style:Ke},et.createElement("img",{className:Mt.img,ref:Yt}))))}},41588:function(_n,Pn,Ge){"use strict";var et=Ge(59301),Mt=Ge(95237),oe=Ge(43604),ze=Ge(99313),je=Ge(3113),ve=Ge(85149),ce=Ge(88010),we=Ge(48136),Me=Ge(59301);const Se=(0,et.forwardRef)(({callback:Pe,showSaveButton:me,value:xe=""},fe)=>{const z=(0,et.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:Me.createElement(Mt.Z,{className:ce.Z.lists,gutter:[10,10]},ee.map((pe,be)=>Me.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(ve.Z,{value:`$$${pe.value}$$`}),pe.name),Me.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Ie)=>Me.createElement("div",{key:Ie},Me.createElement("h1",null,Ce.name),Me.createElement(Mt.Z,{gutter:[10,10]},Ce.data.map((Oe,Le)=>Me.createElement(oe.Z,{key:Le,onClick:()=>re(Oe),className:ce.Z.diamond},Me.createElement(ve.Z,{value:"`$$"+Oe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Mt.Z,{className:ce.Z.lists,gutter:[10,10]},ae.map((pe,be)=>Me.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(ve.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Me.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Ie)=>Me.createElement("div",{key:Ie},Ce.name&&Me.createElement("h1",null,Ce.name),Me.createElement(Mt.Z,{gutter:[10,10]},Ce.data.map((Oe,Le)=>Me.createElement(oe.Z,{key:Le,onClick:()=>re(Oe),className:ce.Z.diamond},Me.createElement(ve.Z,{value:"`$$"+Oe.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var be=pe.innerText;return Pe&&Pe(be),be};return(0,et.useImperativeHandle)(fe,()=>({getData:ue})),Me.createElement("div",{className:ce.Z.mathWrap},Me.createElement(ze.default,{defaultActiveKey:"1",items:le}),Me.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||""),me&&Me.createElement("div",{className:ce.Z.button},Me.createElement(je.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Pn.Z=Se},8797:function(_n,Pn,Ge){"use strict";var et=Ge(59301),Mt=Ge(93314),oe=Ge(3113),ze=Object.defineProperty,je=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Se=(fe,z,ee)=>z in fe?ze(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,Pe=(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))Me.call(z,ee)&&Se(fe,ee,z[ee]);return fe},me=(fe,z)=>je(fe,ve(z));const xe=({img:fe,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:be,loading:Ce=!1,className:Ie=""})=>et.createElement("section",{className:`tc animated fadeIn ${Ie}`,style:Pe({color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"},ee)},et.createElement("img",{src:fe||Mt,style:me(Pe({},be),{pointerEvents:"none",userSelect:"none"})}),et.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&et.createElement(oe.ZP,Pe({className:ue,onClick:le},z),re),pe&&pe);Pn.Z=xe},23210:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return ue}});var et=Ge(59301),Mt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=Ge(3113),ze=Ge(70557),je=Ge(23954),ve=Ge(6848),ce=Ge(955),we=Ge(94941),Me=Ge(8797),Se=Ge(3294),Pe=Ge(19381),me=Ge(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((Ie,Oe)=>{var Le=Re=>{try{De(Ce.next(Re))}catch(Je){Oe(Je)}},Ne=Re=>{try{De(Ce.throw(Re))}catch(Je){Oe(Je)}},De=Re=>Re.done?Ie(Re.value):Promise.resolve(Re.value).then(Le,Ne);De((Ce=Ce.apply(pe,be)).next())}),ue=({editOffice:pe="view",data:be,theme:Ce,type:Ie,filename:Oe,monacoEditor:Le,className:Ne,style:De,close:Re,onClose:Je,hasMask:_e,disabledDownload:Ve,onImgDimensions:Qe,showNodata:ut,recordInfo:dt})=>{const[St,qe]=(0,et.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,et.useState)(""),[wt,xt]=(0,et.useState)(),ft=window.ENV==="build"?"/react/build":"",mt=location.host.startsWith("localhost")?Se.Z.PROXY_SERVER:Se.Z.API_SERVER,It=10*(1024*1024),kt=(0,et.useRef)();be!=null&&be.startsWith("/api")&&Ie!=="txt"&&(be=Se.Z.API_SERVER+be);const Ut=bt=>bt.substring(bt.lastIndexOf("/")+1).split(".").pop();Oe&&Le&&(Le.filename=Oe),(0,et.useEffect)(()=>{var bt,at;const ct=(at=(bt=document.cookie)==null?void 0:bt.replace(/\s/g,""))==null?void 0:at.split(";");ct==null||ct.map(Lt=>{let vt=Lt.split("=");vt[0]==="_educoder_session"&&pt(vt[1])})},[]),(0,et.useEffect)(()=>{Ie==="office"&&(be.indexOf("bigfilescdn.")>-1||be.indexOf("bigfiles1")>-1?xt({url:be,fileType:Ut(be),model:be.indexOf("model=edit")?"edit":"view"}):Pt())},[Ie,be]);const Pt=()=>le(void 0,null,function*(){console.log("data:",be);let bt=be;be.startsWith("http")||(bt=location.origin+bt);let at=new URL(bt).pathname.split("/").pop();const ct=yield(0,we.gJ)({attachment_id:at});ct.url=mt+ct.url,xt(ct)}),Ct=()=>{if(be.startsWith("http")||be.startsWith("blob:")){st();return}(0,ce.Sv)(Oe||"educoder",be,Oe)},st=()=>{dt&&(0,Pe.fc)({id:dt==null?void 0:dt.id,watch_type:1,course_id:dt==null?void 0:dt.course_id}),(0,ce.Nd)(Oe||"educoder",decodeURIComponent(be))};return me.createElement("div",{style:re({},De||{}),className:`${_e&&Mt.bgBlack} ${Ie?Mt.wrp:"hide"}`},Re&&me.createElement("div",{className:Mt.close,ref:kt},!!Qe&&me.createElement(ve.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>kt.current},me.createElement("span",{onClick:()=>{Je(),Qe()}},me.createElement("i",{className:"icon-yulanpizhu"}))),!Ve&&me.createElement(ve.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>kt.current},me.createElement("span",{onClick:st},me.createElement("i",{className:"icon-quxiaozhiding"}))),me.createElement(ve.Z,{title:"\u5173\u95ED",getPopupContainer:()=>kt.current},me.createElement("span",{className:"",onClick:Je},me.createElement("i",{className:"icon-guanbi1"})))),me.createElement("div",{className:`${Mt[Ne]} ${Ne} ${Mt.monaco} ${Ie==="txt"?"show":"hide"}`},Ie==="txt"&&me.createElement(me.Fragment,null,me.createElement(je.ZP,re({},Le)))),Ie==="audio"&&me.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}),Ie==="video"&&me.createElement(me.Fragment,null,(be==null?void 0:be.indexOf("http"))>-1?me.createElement("video",{controls:!0,src:`${be}`,autoPlay:!0}):me.createElement("video",{controls:!0,src:`data:video/mp4;base64,${be}`,autoPlay:!0})),Ie==="office"&&wt&&me.createElement("iframe",{src:`${ft}/office.html?key=${wt.key}&url=${btoa(wt.url)}&callbackUrl=${mt+(wt.callbackUrl||"")}&fileType=${wt.fileType}&title=${wt.title||""}&model=${pe}&officeServer=${Se.Z.ONLYOFFICE}&disabledDownload=${!!Ve}`}),Ie==="html"&&me.createElement("iframe",{src:be+"&disposition=inline"}),Ie==="pdf"&&me.createElement("iframe",{src:`${ft}/js/pdfview/index.html?filename=${Oe||"educoder.pdf"}&url=${encodeURIComponent(be)}&disabledDownload=${!!Ve}`}),Ie==="image"&&me.createElement("img",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${be}`}),(Ie==="other"||Ie==="download")&&me.createElement(me.Fragment,null,ut?me.createElement(Me.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:me.createElement(oe.ZP,{icon:me.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ct,disabled:Ve},"\u4E0B\u8F7D")}):me.createElement(oe.ZP,{type:"primary",size:"middle",onClick:Ct,disabled:Ve},me.createElement(ze.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{z:function(){return Ie},Z:function(){return Oe}});var et=Ge(59301),Mt=Ge(50304),oe=Ge(24768),ze=Ge(64018),je=Ge(40846),ve=Ge(3294),ce=Ge(955),we=Ge(15342),Me=Ge(1012),Se=Ge(23210),Pe=Ge(59301),xe=({html:Le})=>{const Ne=(0,et.useRef)(null),De=(0,et.useRef)(null),Re=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,et.useEffect)(()=>{const Je=Ne.current.attachShadow({mode:"open"});De.current=document.createElement("div"),De.current.className="markdown-body",De.current.innerHTML=Le,Je.appendChild(De.current);const _e=document.createElement("style");return _e.textContent=Re,Je.appendChild(_e),()=>{Je.innerHTML=""}},[]),(0,et.useEffect)(()=>{De.current&&(De.current.innerHTML=Le)},[Le]),Pe.createElement("div",{ref:Ne})},fe=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(Le,Ne,De)=>Ne in Le?fe(Le,Ne,{enumerable:!0,configurable:!0,writable:!0,value:De}):Le[Ne]=De,le=(Le,Ne)=>{for(var De in Ne||(Ne={}))ee.call(Ne,De)&&re(Le,De,Ne[De]);if(z)for(var De of z(Ne))ae.call(Ne,De)&&re(Le,De,Ne[De]);return Le};const ue="@\u2581\u2581@",pe="@\u2581@",be=/<pre[^>]*>/g;function Ce(Le){let Ne=document.createElement("div");return Ne.innerHTML=Le,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const Ie=(Le,Ne)=>{Le=Le||"";const De=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Re=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Je=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?Le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(De,(Ve,Qe,ut,dt,St,qe,it)=>{const pt=Qe||dt||qe,wt=ut||St||it||"?";return ve.Z.API_SERVER+"/api/attachments/"+pt+wt+"&t="+(0,ce.Jn)(pt,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(_e,(Ve,Qe,ut,dt,St,qe,it)=>{const pt=Qe||dt||qe,wt=ut||St||it||"?";return ve.Z.API_SERVER+"/attachments/download/"+pt+wt+"&t="+(0,ce.Jn)(pt,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replace(De,(Ve,Qe,ut,dt,St,qe,it)=>{const pt=Qe||dt||qe,wt=ut||St||it||"?";return ve.Z.API_SERVER+"/api/attachments/"+pt+wt+"&t="+(0,ce.Jn)(pt,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replace(Re,(Ve,Qe,ut,dt,St)=>{const qe=Qe||dt,it=ut||St||"";return'"'+ve.Z.API_SERVER+"/api/attachments/"+qe+it+qe+it+"&t="+(0,ce.Jn)(qe,Date.now())}).replace(Je,(Ve,Qe,ut,dt,St)=>{const qe=Qe||dt,it=ut||St||"";return"("+ve.Z.API_SERVER+"/files/uploads/"+qe+it+qe+it+"&t="+(0,ce.Jn)(qe,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Le)};var Oe=({value:Le="",className:Ne,showTextOnly:De,showLines:Re,style:Je={},stylesPrev:_e={},highlightKeywords:Ve,showProgramFill:Qe,isProgramFill:ut,disabledFill:dt=!1,programFillValue:St,onFillChange:qe=wt=>{},onFillBlur:it=()=>{},onFillFocus:pt=()=>{}})=>{let wt=String(Le);const[xt,ft]=(0,et.useState)(""),[mt,yt]=(0,et.useState)("office"),[It,kt]=(0,et.useState)([]),Ut=(0,et.useRef)("a"+(0,Me.Z)()),Pt={},Ct=(We,Be,Te)=>{const Ke=document.createElement(We===pe?"input":"textarea");Ke.style.width="100%",Ke.style.height=We===pe?"40px":"151px",Ke.rows=5,Ke.spellcheck=!1,Ke.name="edu-program-fill",Ke.placeholder="\u8BF7\u8F93\u5165",Ke.dataset.id=Be;const gt=Object.keys(Pt).length;return Pt[gt]=Ke,`<span class="edu-program-fill-wrap ${We===pe?"":"show"}" style="width:${We===pe?"400px":"100%"}" title=${Te||""}><span>${Ke.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function st(We){return We=We.replace(/!\[.*?\]\(.*?\)/g,""),We=We.replace(/\[.*?\]\(.*?\)/g,""),We=We.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),We=We.replace(/<embed.*?>/g,""),We=We.replace(/<img.*?>/g,""),We=We.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),We=We.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),We=We.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),We=We.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),We}const bt=We=>We.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Be,Te){let Ke=Te.replace(/(\n|\r)/g,"").split("}"),gt=[];return Ke.map(Ze=>{Ze!=""&>.push(`.${Ut.current} ${Ze}`)}),`<style>${gt.join("}")}</style>`}),at=(0,et.useMemo)(()=>{try{const Ke=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,gt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ze=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ot=/\(\/attachments\/download\//g;wt=wt.replace(Ot,"("+ve.Z.API_SERVER+"/attachments/download/").replace(Ke,"("+ve.Z.API_SERVER+"/api/attachments/").replace(gt,'"'+ve.Z.API_SERVER+"/api/attachments/").replace(Ze,'"'+ve.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(Ke){}if(Qe){let Ke=-1;return wt=wt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(gt,Ze,Ot){var zt;return++Ke,Ct(gt,Ke,(zt=St==null?void 0:St[Ke])==null?void 0:zt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${bt(wt||"")}</pre>`}let We=bt(wt);We=(0,oe.ZP)(We);const Be=(0,oe.ez)();wt.match(/\[TOC\]/)&&(We=We.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),We=We.replace(/(__special_katext_id_\d+__)/g,(Ke,gt)=>{const{type:Ze,expression:Ot}=Be[gt];return(0,we.renderToString)(Ce(Ot)||"",{displayMode:Ze==="block",throwOnError:!1,output:"html"})}),We=We.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const Te=document.createElement("div");if(Te.innerHTML=We,De)return Te.innerText;if(Ve){const Ke=Ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return nt(Te,Ke),Te.innerHTML}return setTimeout(()=>$e(),500),Te.innerHTML},[wt,Ve]);(0,et.useEffect)(()=>{Xe.current&&Xe.current.querySelectorAll(["input","textarea"]).forEach(Be=>{Be.oninput=ct,Be.onblur=Lt,Be.onfocus=vt})},[It]),(0,et.useEffect)(()=>{var We,Be,Te,Ke,gt;if(St!=null&&St.length)try{const Ze=Xe.current.querySelectorAll(".edu-program-fill-score"),Ot=Xe.current.querySelectorAll('[name="edu-program-fill"]');for(const[zt,Yt]of Ot.entries())Yt.value=((We=St==null?void 0:St[zt])==null?void 0:We.value)||"",((Be=St==null?void 0:St[zt])==null?void 0:Be.type)==="warning"?Yt.className="program-fill-warning":((Te=St==null?void 0:St[zt])==null?void 0:Te.type)==="success"?Yt.className="program-fill-success":Yt.className="";for(const[zt,Yt]of Ze.entries())Yt.innerHTML=(Ke=St==null?void 0:St[zt])!=null&&Ke.score?`${(gt=St==null?void 0:St[zt])==null?void 0:gt.score}\u5206`:"";kt(St)}catch(Ze){console.log(Ze,"error")}},[St]);const ct=We=>{It[We.target.dataset.id]=It[We.target.dataset.id]||{},It[We.target.dataset.id].value=We.target.value,kt([...It]),qe(It,We.target.dataset.id)},Lt=We=>{It[We.target.dataset.id]=It[We.target.dataset.id]||{},It[We.target.dataset.id].value=We.target.value,kt([...It]),it(It,We.target.dataset.id)},vt=We=>{It[We.target.dataset.id]=It[We.target.dataset.id]||{},It[We.target.dataset.id].value=We.target.value,kt([...It]),pt(It,We.target.dataset.id)};function nt(We,Be){return We.childNodes.forEach(Te=>{var Ke;if(Te.childNodes.length>0)nt(Te,Be);else if(Te.nodeName!=="IMG")if(Te.innerHTML)Te.innerHTML=(Ke=Te.innerHTML)==null?void 0:Ke.replace(new RegExp(Be,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const gt=document.createElement("span");gt.innerHTML=Te.textContent.replace(new RegExp(Be,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Te.replaceWith(gt)}})}const Xe=(0,et.useRef)();oe.jb.WebkitLineClamp=Re,Re&&(Je=le(le({},Je),oe.jb));function Ue(We){let Be=We.target;if(Be.tagName.toUpperCase()==="A"){let Te=Be.getAttribute("href");if(Te.indexOf("office")>-1)We.preventDefault(),ft(Te),yt("office");else if(Te.indexOf("application/pdf")>-1)We.preventDefault(),ft(Te),yt("pdf");else if(Te.indexOf("text/html")>-1)We.preventDefault(),ft(Te),yt("html");else if(Te.startsWith("#")){We.preventDefault();let Ke=document.getElementById(Te.replace("#",""));Ke&&Ke.scrollIntoView(!0)}}}const $e=()=>{var We;const Be=(We=Xe.current)==null?void 0:We.querySelectorAll("video");Be==null||Be.forEach(Te=>{if(Te.oncontextmenu=()=>!1,Te.src.indexOf(".m3u8")>-1&&!Te.canPlayType("application/vnd.apple.mpegurl")){if(je.ZP.isSupported()){var Ke=new je.ZP;Ke.loadSource(Te.src),Ke.attachMedia(Te)}}})};(0,et.useEffect)(()=>{if(Xe.current&&at&&at.match(be)&&window.PR.prettyPrint(),Xe.current)return Xe.current.addEventListener("click",Ue),()=>{var We;(We=Xe.current)==null||We.removeEventListener("click",Ue),(0,oe.AL)(),(0,oe.Iy)()}},[at,Xe.current,Ue]),(0,et.useEffect)(()=>{var We;const Be=Te=>{Te.preventDefault(),Te.clipboardData.setData("text",window.getSelection().toString())};return(We=Xe.current)==null||We.addEventListener("copy",Be),()=>{var Te;(Te=Xe.current)==null||Te.removeEventListener("copy",Be)}},[Xe.current]);const tt=We=>/<style[\s\S]*?>/i.test(We||"");return et.createElement(et.Fragment,null,De&&et.createElement("div",{ref:Xe},at),!De&&!tt(at)&&et.createElement("div",{ref:Xe,style:le({},Je),className:`${Ne||""} ${dt?"disabled-fill":""} markdown-body ${Ut.current}`,dangerouslySetInnerHTML:{__html:at}}),!De&&tt(at)&&et.createElement(xe,{html:at}),et.createElement(Se.Z,{close:!0,data:xt,type:xt!=null&&xt.length?mt:"",style:le({},_e),onClose:()=>ft("")}))}},81939:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{cT:function(){return Le},pe:function(){return Ce}});var et=Ge(59301),Mt=Ge(54580),oe=Ge(8591),ze=Ge(99064),je=Ge(28209),ve=Ge.n(je),ce=Ge(1012),we=Ge(89070),Me=Ge(47257),Se=Ge.n(Me),Pe=Object.defineProperty,me=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(De,Re,Je)=>Re in De?Pe(De,Re,{enumerable:!0,configurable:!0,writable:!0,value:Je}):De[Re]=Je,re=(De,Re)=>{for(var Je in Re||(Re={}))z.call(Re,Je)&&ae(De,Je,Re[Je]);if(fe)for(var Je of fe(Re))ee.call(Re,Je)&&ae(De,Je,Re[Je]);return De},le=(De,Re)=>me(De,xe(Re)),ue=(De,Re)=>{var Je={};for(var _e in De)z.call(De,_e)&&Re.indexOf(_e)<0&&(Je[_e]=De[_e]);if(De!=null&&fe)for(var _e of fe(De))Re.indexOf(_e)<0&&ee.call(De,_e)&&(Je[_e]=De[_e]);return Je},pe=(De,Re,Je)=>new Promise((_e,Ve)=>{var Qe=St=>{try{dt(Je.next(St))}catch(qe){Ve(qe)}},ut=St=>{try{dt(Je.throw(St))}catch(qe){Ve(qe)}},dt=St=>St.done?_e(St.value):Promise.resolve(St.value).then(Qe,ut);dt((Je=Je.apply(De,Re)).next())});const{Dragger:be}=Mt.default,Ce=De=>{const Re="bf3c199c2470cb477d907b1e0917c17b",Je="5183666c72eec9e4";var _e=ve().enc.Utf8.parse(Re);let Ve=ve().enc.Utf8.parse(Je);var Qe=ve().AES.decrypt(De,_e,{iv:Ve,mode:ve().mode.CBC});return Qe.toString(ve().enc.Utf8)};let Ie;const Oe=De=>pe(void 0,[De],function*({identifier:Re,oldFilename:Je,newFilename:_e}){var Ve,Qe,ut,dt,St,qe;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:(Ve=it==null?void 0:it.data)==null?void 0:Ve.end_point,region:(Qe=it==null?void 0:it.data)==null?void 0:Qe.region,accessKeyId:(ut=it==null?void 0:it.data)==null?void 0:ut.access_key_id,accessKeySecret:(dt=it==null?void 0:it.data)==null?void 0:dt.access_key_secret,bucket:(St=it==null?void 0:it.data)==null?void 0:St.bucket,stsToken:(qe=it==null?void 0:it.data)==null?void 0:qe.security_token});return new Promise((wt,xt)=>{console.log(11111,`${Re}/${Je}`,`${Re}/${_e}`,it.data),pt.copy(`/${Re}/${Je}`,`/${Re}/${_e}`).then(ft=>{console.log("\u62F7\u8D1D\u6210\u529F",ft)}).catch(ft=>{console.log(ft)})})}),Le=(De,Re,Je)=>pe(void 0,null,function*(){var _e,Ve,Qe,ut,dt,St;Re.file_name=De.name;const qe=yield(0,ze.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ce(qe.data)),qe.data=JSON.parse(Ce(qe.data));const it=De.name.split(".");it.pop();const pt=Re.realFileName?it.join(""):(0,ce.Z)(),wt=new(Se())({endpoint:(_e=qe==null?void 0:qe.data)==null?void 0:_e.end_point,region:(Ve=qe==null?void 0:qe.data)==null?void 0:Ve.region,accessKeyId:(Qe=qe==null?void 0:qe.data)==null?void 0:Qe.access_key_id,accessKeySecret:(ut=qe==null?void 0:qe.data)==null?void 0:ut.access_key_secret,bucket:(dt=qe==null?void 0:qe.data)==null?void 0:dt.bucket,stsToken:(St=qe==null?void 0:qe.data)==null?void 0:St.security_token});return new Promise((xt,ft)=>{var mt;wt.multipartUpload(`${pt}`,new Blob([De],{type:De.type}),le(re({timeout:200*1e3,partSize:102400},Je),{callback:{url:(mt=qe==null?void 0:qe.data)==null?void 0:mt.callback_url,host:qe==null?void 0:qe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ze.rz)(Re)}})).then(function(yt){var It;De.response=(It=yt.data)==null?void 0:It.data,xt(yt==null?void 0:yt.data)}).catch(function(yt){ft(yt),console.log("err:",yt)})})}),Ne=De=>{var Re=De,{user:Je,cancelUpload:_e}=Re,Ve=ue(Re,["user","cancelUpload"]);const[Qe,ut]=(0,et.useState)([]);let[dt,St]=(0,et.useState)();const qe={onRemove:pt=>{ut([...Qe.filter(wt=>wt.name!==pt.name)]),Ve.onChange(Qe.filter(wt=>wt.name!==pt.name))},disabled:Ve.disabled,multiple:!0,fileList:Qe==null?void 0:Qe.map(pt=>pt.file),customRequest:()=>{},beforeUpload:pt=>pe(void 0,null,function*(){let wt=Ve.maxSize||1073741824;if(Qe.filter(xt=>xt.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)>wt?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${wt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Qe.push({name:pt.name,file:pt}),ut([...Qe]),Ve.onChange(Qe),!1)})},it=(pt,wt)=>pe(void 0,null,function*(){var xt,ft,mt,yt,It,kt;wt.file_name=pt.name;const Ut=pt.name,Pt=yield(0,ze.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Pt.data=JSON.parse(Ce(Pt.data)),(Pt==null?void 0:Pt.status)!==0){Qe[Qe.findIndex(bt=>bt.name===Ut)].status="error",Qe[Qe.findIndex(bt=>bt.name===Ut)].file.status="error",Ve.onChange(Qe),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}dt=new(Se())({endpoint:(xt=Pt==null?void 0:Pt.data)==null?void 0:xt.end_point,region:(ft=Pt==null?void 0:Pt.data)==null?void 0:ft.region,accessKeyId:(mt=Pt==null?void 0:Pt.data)==null?void 0:mt.access_key_id,accessKeySecret:(yt=Pt==null?void 0:Pt.data)==null?void 0:yt.access_key_secret,bucket:(It=Pt==null?void 0:Pt.data)==null?void 0:It.bucket,stsToken:(kt=Pt==null?void 0:Pt.data)==null?void 0:kt.security_token}),console.log(pt,"file"),St(dt);const Ct=pt.name.split(".");Ct.pop();const st=Ut.indexOf(".")>-1?wt.realFileName?Ct.join("."):(0,ce.Z)():Ut;return new Promise((bt,at)=>{var ct;try{dt.multipartUpload(`${Ve.identifier}/${st}${Ut.indexOf(".")>-1?"."+Ut.split(".").pop():""}`,new Blob([pt.file],{type:pt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Lt,vt,nt)=>{try{console.log("\u8FDB\u5EA6",Lt,vt,nt);const Xe=Qe.findIndex(Ue=>Ue.name===Ut);Qe[Xe].file.percent=Lt*100,Qe[Xe].tempCheckpoint=vt,ut([...Qe])}catch(Xe){}},checkpoint:Qe[Qe.findIndex(Lt=>Lt.name===Ut)].tempCheckpoint,callback:{customValue:{id:Ut+""},url:(ct=Pt==null?void 0:Pt.data)==null?void 0:ct.callback_url,host:Pt==null?void 0:Pt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ze.rz)(wt)}}).then(function(Lt){var vt,nt,Xe;const Ue=Qe.findIndex(tt=>tt.name===Ut);let $e="done";if(((vt=Lt.data)==null?void 0:vt.status)===0){pt.response=(nt=Lt.data)==null?void 0:nt.data;const tt=Qe.findIndex(We=>We.name===Ut);Qe[tt].status="done",Qe[tt].file.status="done"}else oe.ZP.warning((Xe=Lt.data)==null?void 0:Xe.message),$e="error";Qe[Ue].status=$e,Qe[Ue].file.status=$e,Ve.onChange(Qe),bt(Lt==null?void 0:Lt.data)}).catch(function(Lt){Qe[Qe.findIndex(vt=>vt.name===Ut)].status="error",Qe[Qe.findIndex(vt=>vt.name===Ut)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ut([...Qe]),Ve.onChange(Qe),at(Lt),console.log("err:",Lt)})}catch(Lt){}})});return(0,et.useEffect)(()=>{Qe.every(pt=>pt==="done"||pt==="error")&&Ve.onComplete(Qe)},[Qe]),(0,et.useEffect)(()=>{_e&&(dt==null||dt.cancel())},[_e]),(0,et.useEffect)(()=>{Ve.uploading&&Qe.map(pt=>pe(void 0,null,function*(){var wt;if((!pt.status||pt.status==="error")&&!_e){pt.status="uploading",pt.file.status="uploading";const xt=yield it(pt,{login:(wt=Je==null?void 0:Je.userInfo)==null?void 0:wt.login,container_type:Ve.container_type,container_id:Ve.container_id,description:Ve.description,realFileName:Ve.realFileName})}}))},[Ve.uploading]),et.createElement(be,le(re({},qe),{height:Ve.height,className:Ve.className}),et.createElement("p",{className:"ant-upload-hint"},Ve.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Pn.ZP=(0,we.connect)(({loading:De,globalSetting:Re,user:Je})=>({globalSetting:Re,loading:De.models.competitions,user:Je}))(Ne)},53932:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{h:function(){return pe},Z:function(){return ue}});var et=Ge(59301),Mt=Ge(57809),oe=Ge(78241),ze=Ge(3113),je=Ge(89780),ve=Ge.n(je),ce=Ge(37036),we=Object.defineProperty,Me=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,fe=(be,Ce,Ie)=>Ce in be?we(be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):be[Ce]=Ie,z=(be,Ce)=>{for(var Ie in Ce||(Ce={}))me.call(Ce,Ie)&&fe(be,Ie,Ce[Ie]);if(Pe)for(var Ie of Pe(Ce))xe.call(Ce,Ie)&&fe(be,Ie,Ce[Ie]);return be},ee=(be,Ce)=>Me(be,Se(Ce));const ae=Mt.default.Option,re={labelCol:{span:4},wrapperCol:{span:20}},le={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var ue=({callback:be,onCancel:Ce})=>{const[Ie,Oe]=(0,et.useState)("python");function Le(De){Oe(le[De][1])}function Ne(De){be(De)}return et.createElement(oe.default,ee(z({},re),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ne,style:{width:500}}),et.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},et.createElement(Mt.default,{getPopupContainer:De=>De.parentNode,onChange:Le},Object.keys(le).map(De=>et.createElement(ae,{key:De,value:De},le[De][0])))),et.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},et.createElement(pe,{mode:Ie})),et.createElement("div",{className:"flex-container flex-end"},et.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),et.createElement(ze.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function pe({value:be,onChange:Ce,mode:Ie,options:Oe={}}){const Le=(0,et.useRef)(),[Ne,De]=(0,et.useState)();return(0,et.useEffect)(()=>{if(Ne){let Re=function(Je){const _e=Je.getValue();Ce&&Ce(_e)};return Ne.on("change",Re),()=>{Ne.off("change",Re)}}},[Ne,Ce]),(0,et.useEffect)(()=>{Ne&&Ne.setOption("mode",Ie)},[Ne,Ie]),(0,et.useEffect)(()=>{Ne&&(be!==Ne.getValue()||be==="")&&setTimeout(()=>{Ne.setValue(be||"")},300)},[Ne,be]),(0,et.useEffect)(()=>{if(Le.current&&!Ne){const Re=ve().fromTextArea(Le.current,z({mode:Ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Oe));De(Re)}},[Le.current,Ne]),et.createElement("div",{className:"my-codemirror-container"},et.createElement("textarea",{ref:Le}))}},12290:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return ar}});var et=Ge(59301),Mt=Ge(89780),oe=Ge.n(Mt),ze=Ge(76374),je=Ge(37036),ve=Ge(6313),ce=Ge(25717),we=Ge(99498),Me=Ge(25419),Se=Ge(67549),Pe=Ge(85149),me=({value:nn="",className:qt,showTextOnly:Tt,showLines:ln,style:Cn={}})=>{const Xt=(0,et.useMemo)(()=>"",[nn]);return et.createElement(et.Fragment,null,et.createElement("div",{dangerouslySetInnerHTML:{__html:Xt}}))},xe=Ge(59301),fe=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(nn,qt,Tt)=>qt in nn?fe(nn,qt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):nn[qt]=Tt,pe=(nn,qt)=>{for(var Tt in qt||(qt={}))re.call(qt,Tt)&&ue(nn,Tt,qt[Tt]);if(ae)for(var Tt of ae(qt))le.call(qt,Tt)&&ue(nn,Tt,qt[Tt]);return nn},be=(nn,qt)=>z(nn,ee(qt));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 Ie({onActionCallback:nn,title:qt,icon:Tt,actionName:ln,className:Cn="",children:Xt}){function Rt(){nn(ln)}return xe.createElement("a",{title:qt,className:Cn,onClick:Rt},xe.createElement("i",{className:`${Tt}`}),Xt)}var Oe=({watch:nn,showNullButton:qt,showNullProgramButton:Tt,onActionCallback:ln,fullScreen:Cn,insertTemp:Xt,hidetoolBar:Rt,extraUse:fn})=>{const un=[...Ce,{title:`${nn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${nn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!Rt&&un.map((Gn,Xn)=>xe.createElement("li",{key:Xn},Gn.actionName?xe.createElement(Ie,be(pe({},Gn),{onActionCallback:ln})):xe.createElement("span",{className:"v-line"}))),qt?xe.createElement("li",null,xe.createElement(Ie,{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,Tt?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(Ie,{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(Ie,{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,Xt&&xe.createElement("li",null,xe.createElement(Ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Xt}`,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(Ie,{icon:`${Cn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Cn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ln})))},Le=Ge(79346),Ne=Ge(78241),De=Ge(92832),Re=Ge(3113),Je=Object.defineProperty,_e=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,St=(nn,qt,Tt)=>qt in nn?Je(nn,qt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):nn[qt]=Tt,qe=(nn,qt)=>{for(var Tt in qt||(qt={}))ut.call(qt,Tt)&&St(nn,Tt,qt[Tt]);if(Qe)for(var Tt of Qe(qt))dt.call(qt,Tt)&&St(nn,Tt,qt[Tt]);return nn},it=(nn,qt)=>_e(nn,Ve(qt));const pt={labelCol:{span:4},wrapperCol:{span:20}};var wt=({callback:nn,onCancel:qt})=>{function Tt(ln){nn(ln)}return et.createElement(Ne.default,it(qe({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Tt,style:{width:500}}),et.createElement(Ne.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},et.createElement(De.default,null)),et.createElement(Ne.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},et.createElement(De.default,null)),et.createElement("div",{className:"flex-container flex-end"},et.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),et.createElement(Re.ZP,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},xt=Ge(53932),ft=Ge(28451),mt=Ge(43418),yt=Ge(95237),It=Ge(16406),kt=Ge(59301),Ut=({callback:nn,onCancel:qt})=>{const Tt=document.createElement("canvas"),ln=Tt.getContext("2d");Tt.width=1e3,Tt.height=800,ln.fillStyle="#ffffff",ln.fillRect(0,0,Tt.width,Tt.height);const Cn=Tt.toDataURL("image/png");return kt.createElement(mt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kt.createElement(yt.Z,{style:{height:"100vh"}},kt.createElement(It.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Cn,visible:!0,title:String(Date.now())},onOk:Xt=>{nn({src:Xt.url})},onClose:qt})))},Pt=Ge(12378);function Ct(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ct,go.CommandHandler),Ct.prototype.canAlignSelection=function(){var nn=this.diagram;return!(nn===null||nn.isReadOnly||nn.isModelReadOnly||nn.selection.count<2)},Ct.prototype.alignLeft=function(){var nn=this.diagram;nn.startTransaction("aligning left");var qt=1/0;nn.selection.each(function(Tt){Tt instanceof go.Link||(qt=Math.min(Tt.position.x,qt))}),nn.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(qt,Tt.position.y))}),nn.commitTransaction("aligning left")},Ct.prototype.alignRight=function(){var nn=this.diagram;nn.startTransaction("aligning right");var qt=-1/0;nn.selection.each(function(Tt){if(!(Tt instanceof go.Link)){var ln=Tt.actualBounds.x+Tt.actualBounds.width;qt=Math.max(ln,qt)}}),nn.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(qt-Tt.actualBounds.width,Tt.position.y))}),nn.commitTransaction("aligning right")},Ct.prototype.alignTop=function(){var nn=this.diagram;nn.startTransaction("alignTop");var qt=1/0;nn.selection.each(function(Tt){Tt instanceof go.Link||(qt=Math.min(Tt.position.y,qt))}),nn.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Tt.position.x,qt))}),nn.commitTransaction("alignTop")},Ct.prototype.alignBottom=function(){var nn=this.diagram;nn.startTransaction("aligning bottom");var qt=-1/0;nn.selection.each(function(Tt){if(!(Tt instanceof go.Link)){var ln=Tt.actualBounds.y+Tt.actualBounds.height;qt=Math.max(ln,qt)}}),nn.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Tt.actualBounds.x,qt-Tt.actualBounds.height))}),nn.commitTransaction("aligning bottom")},Ct.prototype.alignCenterX=function(){var nn=this.diagram,qt=nn.selection.first();if(qt){nn.startTransaction("aligning Center X");var Tt=qt.actualBounds.x+qt.actualBounds.width/2;nn.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(Tt-ln.actualBounds.width/2,ln.actualBounds.y))}),nn.commitTransaction("aligning Center X")}},Ct.prototype.alignCenterY=function(){var nn=this.diagram,qt=nn.selection.first();if(qt){nn.startTransaction("aligning Center Y");var Tt=qt.actualBounds.y+qt.actualBounds.height/2;nn.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(ln.actualBounds.x,Tt-ln.actualBounds.height/2))}),nn.commitTransaction("aligning Center Y")}},Ct.prototype.alignColumn=function(nn){var qt=this.diagram;qt.startTransaction("align Column"),nn===void 0&&(nn=0),nn=parseFloat(nn);var Tt=new Array;qt.selection.each(function(fn){fn instanceof go.Link||Tt.push(fn)});for(var ln=0;ln<Tt.length-1;ln++){var Cn=Tt[ln],Xt=Cn.actualBounds.y+Cn.actualBounds.height+nn,Rt=Tt[ln+1];Rt.move(new go.Point(Cn.actualBounds.x,Xt))}qt.commitTransaction("align Column")},Ct.prototype.alignRow=function(nn){nn===void 0&&(nn=0),nn=parseFloat(nn);var qt=this.diagram;qt.startTransaction("align Row");var Tt=new Array;qt.selection.each(function(fn){fn instanceof go.Link||Tt.push(fn)});for(var ln=0;ln<Tt.length-1;ln++){var Cn=Tt[ln],Xt=Cn.actualBounds.x+Cn.actualBounds.width+nn,Rt=Tt[ln+1];Rt.move(new go.Point(Xt,Cn.actualBounds.y))}qt.commitTransaction("align Row")},Ct.prototype.canRotate=function(nn){var qt=this.diagram;return!(qt===null||qt.isReadOnly||qt.isModelReadOnly||qt.selection.count<1)},Ct.prototype.rotate=function(nn){nn===void 0&&(nn=90);var qt=this.diagram;qt.startTransaction("rotate "+nn.toString());var qt=this.diagram;qt.selection.each(function(Tt){Tt instanceof go.Link||Tt instanceof go.Group||(Tt.angle+=nn)}),qt.commitTransaction("rotate "+nn.toString())},Ct.prototype.pullToFront=function(){var nn=this.diagram;nn.startTransaction("pullToFront");var qt=new go.Map;nn.selection.each(function(Tt){qt.set(Tt.layer,0)}),qt.iteratorKeys.each(function(Tt){var ln=0;Tt.parts.each(function(Cn){if(!Cn.isSelected){var Xt=Cn.zOrder;isNaN(Xt)?Cn.zOrder=0:ln=Math.max(ln,Xt)}}),qt.set(Tt,ln)}),nn.selection.each(function(Tt){Ct._assignZOrder(Tt,qt.get(Tt.layer)+1)}),nn.commitTransaction("pullToFront")},Ct.prototype.pushToBack=function(){var nn=this.diagram;nn.startTransaction("pushToBack");var qt=new go.Map;nn.selection.each(function(Tt){qt.set(Tt.layer,0)}),qt.iteratorKeys.each(function(Tt){var ln=0;Tt.parts.each(function(Cn){if(!Cn.isSelected){var Xt=Cn.zOrder;isNaN(Xt)?Cn.zOrder=0:ln=Math.min(ln,Xt)}}),qt.set(Tt,ln)}),nn.selection.each(function(Tt){Ct._assignZOrder(Tt,qt.get(Tt.layer)-1-Ct._findGroupDepth(Tt))}),nn.commitTransaction("pushToBack")},Ct._assignZOrder=function(nn,qt,Tt){Tt===void 0&&(Tt=nn),nn.layer===Tt.layer&&(nn.zOrder=qt),nn instanceof go.Group&&nn.memberParts.each(function(ln){Ct._assignZOrder(ln,qt+1,Tt)})},Ct._findGroupDepth=function(nn){if(nn instanceof go.Group){var qt=0;return nn.memberParts.each(function(Tt){qt=Math.max(qt,Ct._findGroupDepth(Tt))}),qt+1}else return 0},Ct.prototype.doKeyDown=function(){var nn=this.diagram;if(nn!==null){var qt=nn.lastInput;if(qt.key==="Up"||qt.key==="Down"||qt.key==="Left"||qt.key==="Right"){var Tt=this.arrowKeyBehavior;if(Tt==="none")return;if(Tt==="select"){this._arrowKeySelect();return}else if(Tt==="move"){this._arrowKeyMove();return}else if(Tt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ct.prototype._getAllParts=function(){var nn=new Array;return this.diagram.nodes.each(function(qt){nn.push(qt)}),this.diagram.parts.each(function(qt){nn.push(qt)}),nn},Ct.prototype._arrowKeyMove=function(){var nn=this.diagram,qt=nn.lastInput,Tt=0,ln=0;if(qt.control||qt.meta)Tt=1,ln=1;else if(nn.grid!==null){var Cn=nn.grid.gridCellSize;ln=Cn.width,Tt=Cn.height}nn.startTransaction("arrowKeyMove"),nn.selection.each(function(Xt){qt.key==="Up"?Xt.move(new go.Point(Xt.actualBounds.x,Xt.actualBounds.y-Tt)):qt.key==="Down"?Xt.move(new go.Point(Xt.actualBounds.x,Xt.actualBounds.y+Tt)):qt.key==="Left"?Xt.move(new go.Point(Xt.actualBounds.x-ln,Xt.actualBounds.y)):qt.key==="Right"&&Xt.move(new go.Point(Xt.actualBounds.x+ln,Xt.actualBounds.y))}),nn.commitTransaction("arrowKeyMove")},Ct.prototype._arrowKeySelect=function(){var nn=this.diagram,qt=nn.lastInput,Tt=null;qt.key==="Up"?Tt=this._findNearestPartTowards(270):qt.key==="Down"?Tt=this._findNearestPartTowards(90):qt.key==="Left"?Tt=this._findNearestPartTowards(180):qt.key==="Right"&&(Tt=this._findNearestPartTowards(0)),Tt!==null&&(qt.shift?Tt.isSelected=!0:qt.control||qt.meta?Tt.isSelected=!Tt.isSelected:nn.select(Tt))},Ct.prototype._findNearestPartTowards=function(nn){var qt=this.diagram.selection.first();if(qt===null)return null;for(var Tt=qt.actualBounds.center,ln=this._getAllParts(),Cn=1/0,Xt=qt,Rt=0;Rt<ln.length;Rt++){var fn=ln[Rt];if(fn!==qt&&fn.canSelect()){var un=fn.actualBounds.center,Gn=Tt.directionPoint(un),Xn=this._angleCloseness(Gn,nn);if(Xn<=45){var $t=Tt.distanceSquaredPoint(un);$t*=1+Math.sin(Xn*Math.PI/180),$t<Cn&&(Cn=$t,Xt=fn)}}}return Xt},Ct.prototype._angleCloseness=function(nn,qt){return Math.min(Math.abs(qt-nn),Math.min(Math.abs(qt+360-nn),Math.abs(qt-360-nn)))},Ct.prototype._arrowKeyTree=function(){var nn=this.diagram,qt=nn.selection.first();if(qt instanceof go.Node){var Tt=nn.lastInput;if(Tt.key==="Right"){if(!qt.isTreeLeaf)if(!qt.isTreeExpanded)nn.commandHandler.canExpandTree(qt)&&nn.commandHandler.expandTree(qt);else{var ln=this._sortTreeChildrenByY(qt).first();ln!==null&&nn.select(ln)}}else if(Tt.key==="Left")if(!qt.isTreeLeaf&&qt.isTreeExpanded)nn.commandHandler.canCollapseTree(qt)&&nn.commandHandler.collapseTree(qt);else{var Cn=qt.findTreeParentNode();Cn!==null&&nn.select(Cn)}else if(Tt.key==="Up"){var Cn=qt.findTreeParentNode();if(Cn!==null){var Xt=this._sortTreeChildrenByY(Cn),Rt=Xt.indexOf(qt);if(Rt>0){for(var fn=Xt.elt(Rt-1);fn!==null&&fn.isTreeExpanded&&!fn.isTreeLeaf;){var un=this._sortTreeChildrenByY(fn);fn=un.last()}fn!==null&&nn.select(fn)}else nn.select(Cn)}}else if(Tt.key==="Down")if(qt.isTreeExpanded&&!qt.isTreeLeaf){var ln=this._sortTreeChildrenByY(qt).first();ln!==null&&nn.select(ln)}else for(;qt!==null;){var Cn=qt.findTreeParentNode();if(Cn===null)break;var Xt=this._sortTreeChildrenByY(Cn),Rt=Xt.indexOf(qt);if(Rt<Xt.length-1){nn.select(Xt.elt(Rt+1));break}else qt=Cn}var Gn=nn.selection.first();Gn!==null&&nn.scrollToRect(Gn.actualBounds)}},Ct.prototype._sortTreeChildrenByY=function(nn){var qt=new go.List().addAll(nn.findTreeChildrenNodes());return qt.sort(function(Tt,ln){var Cn=Tt.location,Xt=ln.location;return Cn.y<Xt.y?-1:Cn.y>Xt.y?1:Cn.x<Xt.x?-1:Cn.x>Xt.x?1:0}),qt},Ct.prototype.copyToClipboard=function(nn){go.CommandHandler.prototype.copyToClipboard.call(this,nn),this._lastPasteOffset.set(this.pasteOffset)},Ct.prototype.pasteFromClipboard=function(){var nn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(nn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),nn},Object.defineProperty(Ct.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(nn){if(nn!=="move"&&nn!=="select"&&nn!=="scroll"&&nn!=="tree"&&nn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+nn);this._arrowKeyBehavior=nn}}),Object.defineProperty(Ct.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(nn){if(!(nn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+nn);this._pasteOffset.set(nn)}});var st=Ct,bt=Ge(74413),at=Ge(43604),ct=Ge(99064),Lt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},vt=Ge(24065),nt=Ge(59301),Xe=(nn,qt,Tt)=>new Promise((ln,Cn)=>{var Xt=un=>{try{fn(Tt.next(un))}catch(Gn){Cn(Gn)}},Rt=un=>{try{fn(Tt.throw(un))}catch(Gn){Cn(Gn)}},fn=un=>un.done?ln(un.value):Promise.resolve(un.value).then(Xt,Rt);fn((Tt=Tt.apply(nn,qt)).next())});function Ue({onCancel:nn,callback:qt}){let Tt=(0,et.useRef)(),ln=(0,et.useRef)(),Cn=(0,et.useRef)(),Xt=(0,et.useRef)(!1);const Rt=(0,et.useRef)(!1),[fn,un]=(0,et.useState)(0);function Gn(){const $t=Pt.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"};Tt.current=new Pt.S0(ln.current,{padding:20,grid:$t(Pt.s_,"Grid",$t(Pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$t(Pt.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:$t(st),"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}),Tt.current.nodeTemplate=$t(Pt.NB,"Auto",{locationSpot:Pt.z6.Center,locationObjectName:"SHAPE",desiredSize:new Pt.$u(120,60),minSize:new Pt.$u(40,40),resizable:!0,resizeCellSize:new Pt.$u(10,10),rotatable:!0},new Pt.KX("location","loc",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),new Pt.KX("desiredSize","size",Pt.$u.parse).makeTwoWay(Pt.$u.stringify),$t(Pt.bn,{name:"SHAPE",fill:kn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pt.z6.AllSides,toSpot:Pt.z6.AllSides},new Pt.KX("figure"),new Pt.KX("fill"),new Pt.KX("stroke","borderColor"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),$t(Pt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),$t(Pt.al,{margin:1,textAlign:"center",overflow:Pt.al.OverflowEllipsis,editable:!0},new Pt.KX("text").makeTwoWay(),new Pt.KX("stroke","color"))),Tt.current.nodeTemplate.toolTip=$t("ToolTip",$t(Pt.s_,"Vertical",{maxSize:new Pt.$u(200,NaN)},$t(Pt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Pt.KX("text")),$t(Pt.al,{font:"10pt sans-serif",textAlign:"center"},new Pt.KX("text","details"))));function Wn(Jn,sr){var Sr=(mr,Kr)=>{mr.handled=!0,mr.diagram.model.commit(ri=>{var Rr=Kr.part.adornedPart,br=new Pt.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 $t(Pt.bn,{figure:sr,alignment:Jn,alignmentFocus:Jn.opposite(),width:Jn.equals(Pt.z6.Top)||Jn.equals(Pt.z6.Bottom)?25:18,height:Jn.equals(Pt.z6.Top)||Jn.equals(Pt.z6.Bottom)?18:25,fill:"orange",stroke:kn.white,strokeWidth:4,mouseEnter:(mr,Kr)=>Kr.fill="dodgerblue",mouseLeave:(mr,Kr)=>Kr.fill="orange",isActionable:!0,click:Sr,contextClick:Sr})}function lr(Jn){return $t(Pt.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||{})}Tt.current.nodeTemplate.selectionAdornmentTemplate=$t(Pt.uz,"Spot",$t(Pt.Vm,{padding:10}),Wn(Pt.z6.Top,"TriangleUp"),Wn(Pt.z6.Left,"TriangleLeft"),Wn(Pt.z6.Right,"TriangleRight"),Wn(Pt.z6.Bottom,"TriangleDown"),lr({alignment:new Pt.z6(.75,0)}));function on(Jn,sr){return(Sr,mr)=>{Sr.handled=!0,Sr.diagram.model.commit(Kr=>{Kr.set(mr.part.adornedPart.data,Jn,sr)})}}function Mn(Jn,sr){return sr||(sr="color"),$t(Pt.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[$t("ContextMenuButton",$t(Pt.s_,"Horizontal",Mn(kn.white,"fill"),Mn(kn.beige,"fill"),Mn(kn.extralightblue,"fill"),Mn(kn.extralightred,"fill"))),$t("ContextMenuButton",$t(Pt.s_,"Horizontal",Mn(kn.lightgray,"fill"),Mn(kn.lightgreen,"fill"),Mn(kn.lightblue,"fill"),Mn(kn.lightred,"fill")))]}function xn(){return[$t("ContextMenuButton",$t(Pt.s_,"Horizontal",Mn(kn.black),Mn(kn.green),Mn(kn.blue),Mn(kn.red))),$t("ContextMenuButton",$t(Pt.s_,"Horizontal",Mn(kn.white),Mn(kn.magenta),Mn(kn.purple),Mn(kn.orange)))]}function gn(Jn,sr){return sr||(sr="thickness"),$t(Pt.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 Sn(Jn,sr){return sr||(sr="dash"),$t(Pt.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 An(){return[$t("ContextMenuButton",$t(Pt.s_,"Horizontal",gn(1),gn(2),gn(3),gn(4))),$t("ContextMenuButton",$t(Pt.s_,"Horizontal",Sn(null),Sn([2,4]),Sn([4,4])))]}function Nn(Jn,sr){return sr||(sr="figure"),$t(Pt.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)})}Tt.current.nodeTemplate.contextMenu=$t("ContextMenu",$t("ContextMenuButton",$t(Pt.s_,"Horizontal",Nn("Rectangle"),Nn("RoundedRectangle"),Nn("Ellipse"),Nn("Diamond"))),$t("ContextMenuButton",$t(Pt.s_,"Horizontal",Nn("Parallelogram2"),Nn("ManualOperation"),Nn("Procedure"),Nn("Cylinder1"))),$t("ContextMenuButton",$t(Pt.s_,"Horizontal",Nn("Terminator"),Nn("CreateRequest"),Nn("Document"),Nn("TriangleDown"))),an(),xn(),An()),Tt.current.groupTemplate=$t(Pt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Pt.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 Pt.KX("location","loc",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),$t(Pt.s_,"Auto",{name:"BODY"},$t(Pt.bn,{parameter1:10,fill:kn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pt.z6.AllSides,toSpot:Pt.z6.AllSides},new Pt.KX("fill"),new Pt.KX("stroke","color"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),$t(Pt.Vm,{background:"transparent",margin:20})),$t(Pt.al,{alignment:Pt.z6.Top,alignmentFocus:Pt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Pt.KX("text"),new Pt.KX("stroke","color"))),Tt.current.groupTemplate.selectionAdornmentTemplate=$t(Pt.uz,"Spot",$t(Pt.s_,"Auto",$t(Pt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),$t(Pt.Vm,{margin:1.5})),lr({alignment:Pt.z6.TopRight,alignmentFocus:Pt.z6.BottomRight})),Tt.current.groupTemplate.contextMenu=$t("ContextMenu",an(),xn(),An()),Tt.current.linkTemplate=$t(Pt.rU,{layerName:"Foreground",routing:Pt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Pt.KX("fromSpot","fromSpot",Pt.z6.parse),new Pt.KX("toSpot","toSpot",Pt.z6.parse),new Pt.KX("fromShortLength","dir",Jn=>Jn>=1?10:0),new Pt.KX("toShortLength","dir",Jn=>Jn>=1?10:0),new Pt.KX("points").makeTwoWay(),$t(Pt.bn,{strokeWidth:2},new Pt.KX("stroke","color"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),$t(Pt.bn,{segmentIndex:0,segmentOffset:new Pt.E9(15,0),segmentOrientation:Pt.rU.OrientAlong,alignmentFocus:Pt.z6.Right,figure:"circle",width:10,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Jn=>Jn===1)),$t(Pt.bn,{segmentIndex:-1,segmentOffset:new Pt.E9(-10,6),segmentOrientation:Pt.rU.OrientPlus90,alignmentFocus:Pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Jn=>Jn>=1),new Pt.KX("width","thickness",Jn=>7+3*Jn),new Pt.KX("height","thickness",Jn=>7+3*Jn),new Pt.KX("segmentOffset","thickness",Jn=>new Pt.E9(-15,4+1.5*Jn))),$t(Pt.bn,{segmentIndex:0,segmentOffset:new Pt.E9(15,-6),segmentOrientation:Pt.rU.OrientMinus90,alignmentFocus:Pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",Jn=>Jn===2),new Pt.KX("width","thickness",Jn=>7+3*Jn),new Pt.KX("height","thickness",Jn=>7+3*Jn),new Pt.KX("segmentOffset","thickness",Jn=>new Pt.E9(-15,4+1.5*Jn))),$t(Pt.al,{alignmentFocus:new Pt.z6(0,1,-4,0),editable:!0},new Pt.KX("text").makeTwoWay(),new Pt.KX("stroke","color"))),Tt.current.linkTemplate.selectionAdornmentTemplate=$t(Pt.uz,$t(Pt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Fn(2)},new Pt.KX("pathPattern","thickness",Fn)),lr({alignmentFocus:new Pt.z6(0,0,-6,-4)}));function Fn(Jn){return $t(Pt.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"),$t(Pt.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(Kr=>{var ri=mr.part.adornedPart;Kr.set(ri.data,Jn?"toSpot":"fromSpot",Pt.z6.stringify(Pt.z6.AllSides)),(Jn?ri.toNode:ri.fromNode).invalidateConnectedLinks()})};return $t(Pt.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=Pt.z6.RightSide;Jn.equals(Pt.z6.Top)?(Sr=270,mr=Pt.z6.TopSide):Jn.equals(Pt.z6.Left)?(Sr=180,mr=Pt.z6.LeftSide):Jn.equals(Pt.z6.Bottom)&&(Sr=90,mr=Pt.z6.BottomSide),sr||(Sr-=180);var Kr=(ri,Rr)=>{ri.handled=!0,ri.diagram.model.commit(br=>{var ur=Rr.part.adornedPart;br.set(ur.data,sr?"toSpot":"fromSpot",Pt.z6.stringify(mr)),(sr?ur.toNode:ur.fromNode).invalidateConnectedLinks()})};return $t(Pt.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:Kr,contextClick:Kr})}Tt.current.linkTemplate.contextMenu=$t("ContextMenu",xn(),An(),$t("ContextMenuButton",$t(Pt.s_,"Horizontal",zn(0),zn(1),zn(2))),$t("ContextMenuButton",$t(Pt.s_,"Horizontal",$t(Pt.s_,"Spot",xr(!1),mn(Pt.z6.Top,!1),mn(Pt.z6.Left,!1),mn(Pt.z6.Right,!1),mn(Pt.z6.Bottom,!1)),$t(Pt.s_,"Spot",{margin:new Pt.Zt(0,0,0,2)},xr(!0),mn(Pt.z6.Top,!0),mn(Pt.z6.Left,!0),mn(Pt.z6.Right,!0),mn(Pt.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 Qr=["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),Qr.indexOf(Jn)>=0}var bn=new Pt.YI(Cn.current,{maxSelectionCount:1,linkTemplate:$t(Pt.rU,{locationSpot:Pt.z6.Center,selectionAdornmentTemplate:$t(Pt.uz,"Link",{locationSpot:Pt.z6.Center},$t(Pt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),$t(Pt.bn,{toArrow:"Standard",stroke:null}))},{routing:Pt.rU.AvoidsNodes,curve:Pt.rU.JumpOver,corner:5,toShortLength:4},new Pt.KX("points"),$t(Pt.bn,{isPanelMain:!0,strokeWidth:2}),$t(Pt.bn,{toArrow:"Standard",stroke:null})),model:new Pt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Pt.bn.getFigureGenerators().toArray().map(Jn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Jn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Tt.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()===""&&Tt.current.model.commit(function(Kr){Kr.set(Sr.data,"text","\u672A\u547D\u540D"),Tt.current.commandHandler.stopCommand()},"increment")}),bn.nodeTemplate=$t(Pt.NB,"Auto",{locationSpot:Pt.z6.Center},new Pt.KX("location","location",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),$t(Pt.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 Pt.KX("stroke").makeTwoWay(),new Pt.KX("fill").makeTwoWay(),new Pt.KX("figure")),$t(Pt.al,{margin:new Pt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Pt.$u(16,16),maxSize:new Pt.$u(10,NaN),textAlign:"center",editable:!0},new Pt.KX("key").makeTwoWay())),setTimeout(()=>{Tt.current.grid=$t(Pt.s_,"Grid",$t(Pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$t(Pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Tt.current.grid.visible=!0,Tt.current.grid.gridCellStroke="darkgray",Tt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Tt.current,Tt.current}const Xn=()=>Xe(this,null,function*(){var $t,kn=Tt.current.makeImage();const Wn=yield(0,ct.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:kn.src,file_data:JSON.stringify({login:($t=(0,vt.eY)())==null?void 0:$t.login,data:JSON.parse(Tt.current.model.toJson())})}});qt({src:Wn.url})});return(0,et.useEffect)(()=>(setTimeout(()=>{Gn()},500),un(fn+1),()=>{Tt.current=null}),[]),nt.createElement("div",{ref:Rt,className:Xt.current?`${Lt.maxH60} body-overflow-initial`:"body-overflow-initial"},nt.createElement(mt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!fn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:nt.createElement(yt.Z,null,nt.createElement(at.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),nt.createElement(at.Z,{onClick:()=>{var $t,kn,Wn=Tt.current.selection.first();if(Xt.current=!Xt.current,document.activeElement&&Wn){let lr=(kn=($t=document.activeElement)==null?void 0:$t.value)==null?void 0:kn.trim();typeof lr=="string"&&Tt.current.model.commit(function(on){on.set(Wn.data,"text",lr||"\u672A\u547D\u540D"),Tt.current.commandHandler.stopCommand()},"increment")}un(fn+1)}},nt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:nn},nt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Lt.flowChartWrp},nt.createElement("div",{style:{display:"flex",height:"100%"}},nt.createElement("div",{style:{width:"300px",height:"100%"}},nt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),nt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Lt.myPaletteDiv,ref:Cn})),nt.createElement("div",{style:{flex:1,position:"relative"}},nt.createElement("div",{ref:ln,style:{height:"80vh"}}))),nt.createElement("div",{className:"tr"},nt.createElement(Re.ZP,{size:"large",onClick:Xn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var $e=Ue,tt=Ge(5112),We=Ge(5871);const Be=tt.ZP.Group,Te={margin:"0 8px"};var Ke=({callback:nn,onCancel:qt})=>{function Tt(ln){nn(ln)}return et.createElement(Ne.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Tt},et.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},et.createElement("span",{style:Te},"\u5355\u5143\u683C\u6570\uFF1A"),et.createElement("span",{style:Te},"\u884C\u6570"),et.createElement(Ne.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},et.createElement(We.Z,null)),et.createElement("span",{style:Te},"\u5217\u6570"),et.createElement(Ne.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},et.createElement(We.Z,null))),et.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},et.createElement("span",{style:Te},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),et.createElement(Ne.default.Item,{name:"align"},et.createElement(Be,null,et.createElement(tt.ZP,{value:"default"},et.createElement("i",{className:"fa fa-align-justify"})),et.createElement(tt.ZP,{value:"left"},et.createElement("i",{className:"fa fa-align-left"})),et.createElement(tt.ZP,{value:"center"},et.createElement("i",{className:"fa fa-align-center"})),et.createElement(tt.ZP,{value:"right"},et.createElement("i",{className:"fa fa-align-right"}))))),et.createElement("div",{className:"flex-container flex-end"},et.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),et.createElement(Re.ZP,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},gt=Ge(78673),Ze=Ge(80727),Ot=Ge.n(Ze),Yt=(0,et.forwardRef)(({use3d:nn,width:qt,height:Tt,callback:ln,showSaveButton:Cn},Xt)=>{const Rt=(0,et.useRef)(),fn=(0,et.useRef)(),[un,Gn]=(0,et.useState)(!1),Xn=(0,et.useRef)({id:Rt,appName:"graphing",width:qt||1e3,height:Tt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,et.useEffect)(()=>{fn.current=new(Ot())(Xn.current,!0),window.onload=function(){fn.current.inject("applet_container")}},[]);const $t=()=>{var kn=window.ggbApplet.getPNGBase64(1,!0,72);return ln&&ln(kn),kn};return(0,et.useEffect)(()=>{Xn.current.appName=un?"3D":"graphing",fn.current.inject("applet_container")},[un]),(0,et.useEffect)(()=>{Gn(nn)},[nn]),(0,et.useImperativeHandle)(Xt,()=>({getImgData:$t})),et.createElement(et.Fragment,null,et.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rt}),et.createElement(yt.Z,{align:"middle"},et.createElement(at.Z,{flex:1},et.createElement(gt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:un,onChange:kn=>Gn(kn)})),et.createElement(at.Z,null,et.createElement(Re.ZP,{size:"large",onClick:$t,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),jt=Ge(41588),Kt=Ge(8591);const en="link",cn="upload-image",yn="add-flowchart",On="draw-image",or="add-flowchart",er="code-block",Tr="add-table",Kn="------------",Nr={default:Kn,left:`:${Kn}`,center:`:${Kn}:`,right:`${Kn}:`};var kr=Ge(58856);function Ur(){}let Jr=0;const Mr=1e4,di="\u2581",Dr="@\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(nn){return/^\d+$/.test(nn)?`${nn}px`:nn}const jr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Li={[jr+"-B"]:"bold",[jr+"-I"]:"italic"},nr={[en]:"\u6DFB\u52A0\u94FE\u63A5",[er]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[cn]:"\u6DFB\u52A0\u56FE\u7247",[On]:"\u6DFB\u52A0\u753B\u56FE",[yn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Tr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ar=({defaultValue:nn="",onChange:qt,width:Tt="100%",height:ln=400,miniToolbar:Cn=!1,isFocus:Xt=!1,watch:Rt,insertTemp:fn,mode:un="markdown",id:Gn="markdown-editor-id",showResizeBar:Xn=!1,noStorage:$t=!1,showNullButton:kn=!1,showNullProgramButton:Wn=!1,hidetoolBar:lr=!1,fullScreen:on=!1,onBlur:Mn,onCMBeforeChange:an,onFullScreen:xn,className:gn="",disablePaste:Sn=!1,disabled:An=!1,disabledFill:Nn=!1,placeholder:Fn="",values:zn="",extraUse:xr})=>{const[mn,Fr]=(0,et.useState)(null),[Qr,Br]=(0,et.useState)(nn),[bn,Jn]=(0,et.useState)(Rt),[sr,Sr]=(0,et.useState)(on),[mr,Kr]=(0,et.useState)(""),[ri,Rr]=(0,et.useState)(0),[br,ur]=(0,et.useState)(ln),[vn,cr]=(0,et.useState)(!1),[wn,zr]=(0,et.useState)(0),[$i,Mi]=(0,et.useState)(0),yo=(0,et.useRef)(),no=(0,et.useRef)(),Wr=(0,et.useRef)(),Hr=(0,et.useRef)();(0,et.useEffect)(()=>{const Vr=window.scrollY||window.pageYOffset;Br(zn),mn==null||mn.setValue(zn),window.scrollTo(0,Vr)},[zn]),(0,et.useEffect)(()=>{xn==null||xn(sr)},[sr]),(0,et.useEffect)(()=>{if(yo.current){let Vr=function(Yn,ci){var ro;if(Sn){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?Zr.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?Zr.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?Zr.replaceSelection(`<a href="/api/attachments/${Da.id}?type=${na.type}&disposition=inline" target="_blank">${na.name}</a>`):xi.includes(os)?Zr.replaceSelection(`<a href="/api/attachments/${Da.id}?type=office&disposition=inline" target="_blank">${na.name}</a>`):Zr.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){Kt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Zr=oe().fromTextArea(yo.current,{mode:un,lineNumbers:!Cn,lineWrapping:!0,value:nn,autoCloseTags:!0,autoCloseBrackets:!0});return Zr.on("keyup",function(Yn,ci){ci.keyCode===8&&(Yn.getValue()==""?Zr.setOption("placeholder",Fn):Zr.setOption("placeholder",null))}),Zr.on("keydown",function(Yn,ci){if(ci.keyCode===8){var ro=vi(Yn);ro&&ci.preventDefault()}}),Xt&&Zr.focus(),Zr.on("paste",Vr),An&&Zr.on("beforeChange",function(Yn,ci){(ci.origin==="paste"||ci.origin==="+input")&&ci.cancel()}),Fr(Zr),()=>{Zr.off("paste",Vr)}}},[]);const wi=(0,et.useCallback)(()=>{if(no.current)try{}catch(Vr){console.log(Vr,"---- to set md editor body height")}},[br,no,sr]);(0,et.useEffect)(()=>{function Vr(){let Zr=new ze.Z(Yn=>{for(let ci of Yn)(ci.target.offsetHeight>0||ci.target.offsetWidth>0)&&(wi(),mn.setSize("100%","100%"),mn.refresh())});return Zr.observe(yo.current.parentElement),Zr}if(mn){const Zr=Vr();return()=>{var Yn,ci;(Yn=yo.current)!=null&&Yn.parentElement&&Zr.unobserve((ci=yo.current)==null?void 0:ci.parentElement)}}},[mn,wi]),(0,et.useEffect)(()=>{if(mn){let Vr=[];for(const[Zr,Yn]of Object.entries(Li)){let ci={[Zr]:()=>{fr(Yn)}};Vr.push(ci),mn.addKeyMap(ci)}return()=>{for(let Zr of Vr)mn.removeKeyMap(Zr)}}},[mn]),(0,et.useEffect)(()=>{on!==sr&&Sr(on)},[on]),(0,kr.Z)(()=>{if(!$t&&ri>0){let Vr=new Date().getTime(),Zr=window.sessionStorage.getItem(Gn);Vr>=ri+Mr&&(!Zr||Zr!==Qr)&&(window.sessionStorage.setItem(Gn,Qr),cr(!0))}},Mr),(0,et.useEffect)(()=>{Jn(Rt)},[mn,Rt]),(0,et.useEffect)(()=>{mn&&Xt&&mn.focus()},[mn,Xt]),(0,et.useEffect)(()=>{if(bn&&mn){let Vr=function(Yn){let ci=Yn.target;if(Hr.current){let ro=ci.scrollTop/ci.scrollHeight;Hr.current.scrollTop=Hr.current.scrollHeight*ro}};const Zr=mn.getScrollerElement();return Zr.addEventListener("scroll",Vr),()=>{Zr.removeEventListener("scroll",Vr)}}},[mn,bn]),(0,et.useEffect)(()=>{if(mn&&an){let Vr=function(Zr,Yn){an(Zr,Yn)};return mn.on("beforeChange",Vr),()=>{mn.off("beforeChange",Vr)}}},[mn,an]),(0,et.useEffect)(()=>{if(mn&&Mn){let Vr=function(){Mn(mn.getValue())};return mn.on("blur",Vr),()=>{mn.off("blur",Vr)}}},[mn,Mn]);function vi(Vr,Zr){var Yn=Vr.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(Dr.indexOf(Wo)===-1)return null;if(console.log("change1:",Zr,Vr,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,et.useEffect)(()=>{if(mn){let Vr=function(Zr,Yn){const ci=Zr.getValue();Br(ci),Rr(new Date().getTime()),Zr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qt&&(Wn?qt(ci,ii(ci)):qt(ci))};return mn.on("change",Vr),()=>{mn.off("change",Vr)}}},[mn,qt]),(0,et.useEffect)(()=>{if(mn)if(nn==null)mn.setValue(""),Br("");else{const Vr=window.scrollY||window.pageYOffset;nn!==mn.getValue()&&(mn.setValue(nn),Br(nn),mn.setCursor(An?1:mn.lineCount(),0),window.scrollTo(0,Vr))}},[mn,nn]);const fr=(0,et.useCallback)(Vr=>{const Zr=mn.getCursor(),Yn=mn.getSelection();let ci=Yn.split(`
|
|
|
`);switch(Vr){case"bold":return mn.replaceSelection("**"+Yn+"**"),Yn===""&&mn.setCursor(Zr.line,Zr.ch+2),mn.focus();case"italic":return mn.replaceSelection("*"+Yn+"*"),Yn===""&&mn.setCursor(Zr.line,Zr.ch+1),mn.focus();case"code":return mn.replaceSelection("`"+Yn+"`"),Yn===""&&mn.setCursor(Zr.line,Zr.ch+1),mn.focus();case"inline-latex":return Kr("inline-latex"),mn.focus();case"latex":return mn.replaceSelection("```latex\n"+Yn+"\n```"),mn.setCursor(Zr.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(Zr.line,Zr.ch),mn.replaceSelection(di),mn.focus();case"add-signal":return Yn===""&&mn.setCursor(Zr.line,Zr.ch),mn.replaceSelection(ot),mn.focus();case"add-multiple":return Yn===""&&mn.setCursor(Zr.line,Zr.ch),mn.replaceSelection(Dr),mn.focus();case"inster-template-1":return Yn===""&&mn.setCursor(Zr.line,Zr.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 en:Kr(en);return;case er:Kr(er);return;case cn:Kr(cn);return;case On:Kr(On);return;case"maths-latex":Kr("maths-latex");return;case yn:Kr(yn);return;case Tr:Kr(Tr);return;default:throw new Error}},[mn,bn,sr]),At=(0,et.useCallback)((Vr,Zr)=>{var Yn,ci,ro,Wo,_o,Xo;switch(Kr(""),mr){case en:const{title:fs,link:Ln}=Vr;return mn.replaceSelection(`[${fs}](${Ln})`),mn.focus();case er:const{language:Fa,content:rc}=Vr;return mn.replaceSelection(["```"+Fa,rc,"```"].join(`
|
|
|
`)),mn.focus();case"maths-latex":for(var Pa=atob(Vr),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("`$$"+Vr+"$$`");break;case cn:case On:case or:const{src:el,alt:xo}=Vr,eo=Zr,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}=Vr;let xs=`
|
|
|
`;for(let bi=0;bi<jo;bi++){let so=[],io=[];for(let Or=0;Or<Yi;Or++)bi===1&&io.push(Nr[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,et.useMemo)(()=>{switch(mr){case en:return et.createElement(wt,{callback:At,onCancel:Ki});case er:return et.createElement(xt.Z,{callback:At,onCancel:Ki});case cn:return et.createElement(ft.Z,{callback:At,onCancel:Ki});case yn:return et.createElement($e,{callback:At,onCancel:Ki});case Tr:return et.createElement(Ke,{callback:At,onCancel:Ki});case"maths-latex":return et.createElement(Yt,{showSaveButton:!0,callback:At});case"inline-latex":return et.createElement(jt.Z,{showSaveButton:!0,callback:At});default:return null}},[mr]);function Ki(){Kr("")}(0,et.useEffect)(()=>{if(Wr.current){let Vr=function(_o){ro=!0,Wo=_o.pageY},Zr=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",Vr),document.addEventListener("mousemove",Yn),document.addEventListener("mouseup",Zr),()=>{ci.removeEventListener("mousedown",Vr),document.removeEventListener("mousemove",Yn),document.removeEventListener("mouseup",Zr)}}},[mn,Wr]),(0,et.useEffect)(()=>{ur(ln)},[ln]);const gi=pr(Tt),oo=pr(br),So={width:gi,height:oo},qr=(0,et.useMemo)(()=>{if(ri){let Vr=new Date(ri),Zr=Vr.getHours(),Yn=Vr.getMinutes(),ci=Vr.getSeconds();return Zr=Zr<10?"0"+Zr:Zr,Yn=Yn<10?"0"+Yn:Yn,ci=ci<10?"0"+ci:ci,`${Zr}:${Yn}:${ci}`}return 0},[ri]),ii=Vr=>{const Zr=[];if(Wn){let Yn=-1;Vr=Vr.replace(/(@▁▁@|@▁@)/g,function(ci,ro,Wo){Zr.push({multiLine:ci!==ot})})}return Zr};function Oi(){window.sessionStorage.removeItem(Gn),cr(!1),Rr(0)}function Pi(){cr(!1),Rr(0),mn.setValue(window.sessionStorage.getItem(Gn))}(0,et.useEffect)(()=>{nr[mr]&&mr!==On&&mr!==yn&&setTimeout(()=>{const Vr=document.getElementsByClassName("markdown-popup-form")[0],Zr=window.innerWidth/2-Vr.offsetWidth/2,Yn=window.innerHeight/2-Vr.offsetHeight/2;zr(Zr),Mi(Yn)},0)},[mr]);const co=Vr=>{Vr.preventDefault();const Zr=Vr.clientX-wn,Yn=Vr.clientY-$i;document.body.onmousemove=ci=>{let ro=ci.clientX-Zr,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,Zr,Yn)&&(zr(ro),Mi(Wo))},document.body.onmouseup=function(){document.body.onmousemove=null}},To=(Vr,Zr,Yn,ci)=>{const ro=document.body.clientHeight,Wo=document.body.clientWidth;return Vr<20&&Yn>Vr||Vr>Wo-20&&Yn<Vr||Zr<20&&ci>Zr||Zr>ro-20&&ci<Zr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return et.createElement(et.Fragment,null,et.createElement("div",{className:"markdown-editor-wrapper",ref:no},et.createElement("div",{className:`markdown-editor-container ${gn} ${bn?"on-preview":""} ${Cn?"mini":""} ${sr?"full-screen":""}`,style:So},et.createElement(Oe,{insertTemp:fn,watch:bn,fullScreen:sr,showNullButton:kn,showNullProgramButton:Wn,onActionCallback:fr,hidetoolBar:lr,extraUse:xr}),et.createElement("div",{className:"markdown-editor-body"},et.createElement("div",{className:"codemirror-container"},et.createElement("textarea",{ref:yo,placeholder:Fn})),bn?et.createElement("div",{ref:Hr,className:"preview-container"},un==="stex"&&et.createElement(me,{value:Qr}),un!=="stex"&&et.createElement(Pe.Z,{disabledFill:Nn,showProgramFill:Wn,value:Qr})):null))),Xn?et.createElement("a",{ref:Wr,className:"editor-resize"}):null,mr===On&&et.createElement(Ut,{callback:At,onCancel:Ki}),mr===yn&&et.createElement($e,{callback:At,onCancel:Ki}),et.createElement(Le.Z,null,nr[mr]&&mr!==On&&mr!==yn?et.createElement(mt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:wn,top:$i},title:et.createElement("div",{style:{cursor:"move"},onMouseDown:co},nr[mr]),open:!0,onCancel:Ki,footer:null,destroyOnClose:!0,width:mr===yn?"1200px":null,height:mr===yn?"80vh":null,className:"markdown-popup-form"},Fi):null))}},28451:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Ce},I:function(){return Oe}});var et=Ge(78241),Mt=Ge(8591),oe=Ge(92832),ze=Ge(81327),je=Ge(5871),ve=Ge(5112),ce=Ge(3113),we=Ge(77903),Me=Ge(59301),Se=Ge(59301),Pe=Object.defineProperty,me=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Le,Ne,De)=>Ne in Le?Pe(Le,Ne,{enumerable:!0,configurable:!0,writable:!0,value:De}):Le[Ne]=De,re=(Le,Ne)=>{for(var De in Ne||(Ne={}))z.call(Ne,De)&&ae(Le,De,Ne[De]);if(fe)for(var De of fe(Ne))ee.call(Ne,De)&&ae(Le,De,Ne[De]);return Le},le=(Le,Ne)=>me(Le,xe(Ne));const{useForm:ue}=et.default,pe={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:Le,onCancel:Ne})=>{const[De]=ue();let Re=(0,Me.useRef)();function Je(Qe){Re.current.width=De.getFieldValue("width"),Re.current.align=De.getFieldValue("align"),Le(Qe,Re.current)}function _e(Qe,ut){if(Qe.status===-1){Mt.ZP.error(Qe.message);return}De.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:ut.type})}function Ve(Qe){let ut=Qe.target.files[0];Re.current=ut,Oe(ut,_e)}return Se.createElement(et.default,le(re({form:De},be),{className:"upload-image-panel",onFinish:Je,style:{width:470,overflow:"hidden"}}),Se.createElement(et.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Se.createElement("div",{className:"flex-container"},Se.createElement(et.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(Ie,{onFileChange:Ve}))),Se.createElement(et.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Se.createElement(oe.default,{style:{width:264}})),Se.createElement(et.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Se.createElement(ze.Z,null,Se.createElement(et.default.Item,{name:"width",style:{margin:0}},Se.createElement(je.Z,{style:{width:264}})),Se.createElement("span",{className:"ml8"},"%"))),Se.createElement(et.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Se.createElement(ve.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Se.createElement("aside",null,Se.createElement(et.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:Ne},"\u53D6\u6D88"))))};function Ie({onFileChange:Le}){return Se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Se.createElement("input",{type:"file",onChange:Le}))}function Oe(Le,Ne){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");let De=new FormData;De.append("editormd-image-file",Le),De.append("file_param_name","editormd-image-file"),De.append("byxhr","true");var Re=new window.XMLHttpRequest;Re.withCredentials=!0,Re.addEventListener("load",function(Je){Ne(JSON.parse(Je.target.responseText),Le)},!1),Re.addEventListener("error",function(Je){console.error(Je)},!1),Re.open("POST",`${we.KI}/api/attachments.json`),Re.send(De)}},79346:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return oe}});var et=Ge(59301),Mt=Ge(4676);class oe extends et.Component{constructor(je){super(je);const ve=window.document;this.node=ve.createElement("div"),ve.body.appendChild(this.node)}render(){const{children:je}=this.props;return(0,Mt.createPortal)(je,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{SV:function(){return Xe},ZP:function(){return nt}});var et=Ge(59301),Mt=Ge(76374);const oe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},ze={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},je={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},ve={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},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=Ge(53184),Me=Ge.n(we),Se=Object.defineProperty,Pe=Object.defineProperties,me=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Ue,$e,tt)=>$e in Ue?Se(Ue,$e,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ue[$e]=tt,ae=(Ue,$e)=>{for(var tt in $e||($e={}))fe.call($e,tt)&&ee(Ue,tt,$e[tt]);if(xe)for(var tt of xe($e))z.call($e,tt)&&ee(Ue,tt,$e[tt]);return Ue},re=(Ue,$e)=>Pe(Ue,me($e)),le=(Ue,$e,tt)=>new Promise((We,Be)=>{var Te=Ze=>{try{gt(tt.next(Ze))}catch(Ot){Be(Ot)}},Ke=Ze=>{try{gt(tt.throw(Ze))}catch(Ot){Be(Ot)}},gt=Ze=>Ze.done?We(Ze.value):Promise.resolve(Ze.value).then(Te,Ke);gt((tt=tt.apply(Ue,$e)).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=(Ue,$e)=>$e.map(tt=>({label:tt,kind:Ue.languages.CompletionItemKind.Keyword,insertText:tt})),be=Ue=>Object.keys(ue.tables).map($e=>({label:$e,kind:Ue.languages.CompletionItemKind.Variable,insertText:$e})),Ce=(Ue,$e)=>{const tt=ue.tables[Ue];return tt?tt.map(We=>({label:We,kind:$e.languages.CompletionItemKind.Field,insertText:We})):[]};function Ie(Ue,$e,tt,We,Be){let Te=$e.getWordUntilPosition(tt),Ke={startLineNumber:tt.lineNumber,endLineNumber:tt.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},gt=We.map(Ze=>({label:Ze,kind:Ue.languages.CompletionItemKind.Keyword,insertText:Ze,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}));return Be.map(Ze=>{gt.push(re(ae({},Ze),{range:Ke}))}),gt}var Oe=Ue=>{ue.languages.map(Be=>(Ue.languages.registerDocumentFormattingEditProvider(Be,{provideDocumentFormattingEdits(Te,Ke,gt){return le(this,null,function*(){const Ze=Me()(Te.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:Te.getFullModelRange(),text:Ze}]})}}),Be));const $e=je.quickKey.map(Be=>({label:Be.label,kind:Ue.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet})),tt=ve.quickKey.map(Be=>({label:Be.label,kind:Ue.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet})),We=ze.quickKey.map(Be=>({label:Be.label,kind:Ue.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ue.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Be,Te){var Ke=Be.getWordUntilPosition(Te),gt={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},Ze=Be.getLineContent(Te.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...je.keywords.map(Ot=>({label:Ot,kind:Ue.languages.CompletionItemKind.Function,documentation:Ot,insertText:Ot,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt})),...je.quickKey.map(Ot=>({label:Ot.label,kind:Ue.languages.CompletionItemKind.Function,documentation:Ot.content,insertText:Ze.startsWith("#")?Ot.content.replace(/#/,""):Ot.content,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}}),Ue.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Be,Te){var Ke=Be.getWordUntilPosition(Te),gt={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn};return{suggestions:[...oe.keywords.map(Ze=>({label:Ze,kind:Ue.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}}),Ue.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Be,Te){var Ke=Be.getWordUntilPosition(Te),gt={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},Ze=Be.getLineContent(Te.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...ze.keywords.map(Ot=>({label:Ot,kind:Ue.languages.CompletionItemKind.Function,documentation:Ot,insertText:Ot,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt})),...ze.quickKey.map(Ot=>({label:Ot.label,kind:Ue.languages.CompletionItemKind.Function,documentation:Ot.content,insertText:Ze.startsWith("#")?Ot.content.replace(/#/,""):Ot.content,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}}),Ue.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Be,Te){var Ke=Be.getWordUntilPosition(Te),gt={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},Ze=Be.getLineContent(Te.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...ce.keywords.map(Ot=>({label:Ot,kind:Ue.languages.CompletionItemKind.Function,documentation:Ot,insertText:Ot,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt})),...ce.quickKey.map(Ot=>({label:Ot.label,kind:Ue.languages.CompletionItemKind.Function,documentation:Ot.content,insertText:Ze.startsWith("#")?Ot.content.replace(/#/,""):Ot.content,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}}),Ue.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Be,Te){var Ke=Be.getWordUntilPosition(Te),gt={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},Ze=Be.getLineContent(Te.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...ve.keywords.map(Ot=>({label:Ot,kind:Ue.languages.CompletionItemKind.Function,documentation:Ot,insertText:Ot,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt})),...ve.quickKey.map(Ot=>({label:Ot.label,kind:Ue.languages.CompletionItemKind.Function,documentation:Ot.content,insertText:Ze.startsWith("#")?Ot.content.replace(/#/,""):Ot.content,insertTextRules:Ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}})};const Le="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ne=Object.defineProperty,De=(Ue,$e,tt)=>$e in Ue?Ne(Ue,$e,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ue[$e]=tt,Re=(Ue,$e,tt)=>De(Ue,typeof $e!="symbol"?$e+"":$e,tt);const Je=class mx{constructor($e,tt,We){this.placeholder=$e,this.editor=tt,this.monaco=We,tt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Re(Je,"ID","editor.widget.placeholderHint");var Ve=Je,Qe=Ge(96236),ut=Ge(8591),dt=Ge(6848),St=Ge(89392),qe=Ge(34604),it=Ge(56102),pt=Object.defineProperty,wt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,It=(Ue,$e,tt)=>$e in Ue?pt(Ue,$e,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ue[$e]=tt,kt=(Ue,$e)=>{for(var tt in $e||($e={}))mt.call($e,tt)&&It(Ue,tt,$e[tt]);if(ft)for(var tt of ft($e))yt.call($e,tt)&&It(Ue,tt,$e[tt]);return Ue},Ut=(Ue,$e)=>wt(Ue,xt($e)),Pt=(Ue,$e)=>{var tt={};for(var We in Ue)mt.call(Ue,We)&&$e.indexOf(We)<0&&(tt[We]=Ue[We]);if(Ue!=null&&ft)for(var We of ft(Ue))$e.indexOf(We)<0&&yt.call(Ue,We)&&(tt[We]=Ue[We]);return tt},Ct=(Ue,$e,tt)=>new Promise((We,Be)=>{var Te=Ze=>{try{gt(tt.next(Ze))}catch(Ot){Be(Ot)}},Ke=Ze=>{try{gt(tt.throw(Ze))}catch(Ot){Be(Ot)}},gt=Ze=>Ze.done?We(Ze.value):Promise.resolve(Ze.value).then(Te,Ke);gt((tt=tt.apply(Ue,$e)).next())});function st(Ue){return/^\d+$/.test(Ue)?`${Ue}px`:Ue}function bt(){}let at=!1;const ct={"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 Lt(Ue=[]){let $e=Ue;if(Array.isArray(Ue)){for(let tt=0;tt<Ue.length;tt++){let We=ct[Ue[tt]];if(We)return We}return $e[0]}return ct[$e]||$e}let vt=null;var nt=Ue=>{var $e=Ue,{width:tt="100%",height:We="100%",value:Be,language:Te="javascript",style:Ke={},options:gt={},overrideServices:Ze={},theme:Ot="vs-dark",onEditBlur:zt,isCopy:Yt=!1,onSave:jt,autoHeight:Kt=!1,forbidCopy:en=!1,onChange:cn=bt,editorDidMount:yn=bt,onFocus:On=bt,onBreakPoint:or=bt,breakPointValue:er=[],filename:Tr="educoder.txt",errorLine:Kn,errorContent:Nr="",highlightLine:kr,openBreakPoint:Ur=!1,placeholder:Jr=""}=$e,Mr=Pt($e,["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,et.useRef)(),Dr=(0,et.useRef)({}),ot=(0,et.useRef)(),Ci=(0,et.useRef)(),xi=(0,et.useRef)([]),pr=(0,et.useRef)(!1),Pr=(0,et.useRef)(),jr=(0,et.useRef)(),Li=(0,et.useRef)(!1),[nr,ar]=(0,et.useState)(!1);function nn(){let on;return di.current&&(on=new Mt.Z(Mn=>{for(let an of Mn)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&Dr.current.instance.layout()}),on.observe(di.current)),on}function qt(){ut.ZP.warning({content:decodeURIComponent(Le),key:"monaco-editor-tip"})}const Tt=()=>{let on=Dr.current.instance;if(Be!=null&&on&&nr){const Mn=on.getModel();Mn&&Be!==Mn.getValue()&&(at=!0,Mn.setValue(Be),on.layout(),at=!1)}};(0,et.useEffect)(()=>{const on=qe.Z.subscribe("formatDocument",Mn=>{var an;let xn=Dr.current.instance;(an=xn==null?void 0:xn.getAction)==null||an.call(xn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Mn=>{cn(Mn)},on},[]),(0,et.useEffect)(()=>{var on;let Mn=Dr.current.instance;Ci.current&&clearTimeout(Ci.current),Ci.current=setTimeout(()=>{Tt()},500),Be&&(Be!=null&&Be.length)&&((on=Mn==null?void 0:Mn.updateOptions)==null||on.call(Mn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Be.split(/\r\n|\r|\n/g).length))+3,5)}))},[Be,nr,Dr.current]),(0,et.useEffect)(()=>{if(Kn&&Dr.current&&Dr.current.instance){let Mn=Dr.current.instance;Mn.changeViewZones(function(an){var xn=document.createElement("div");xn.style.padding="10px 20px",xn.style.width="calc(100% - 20px)",xn.className="my-error-line-wrp",xn.innerHTML=Nr,an.addZone({afterLineNumber:Kn||11,heightInLines:3,domNode:xn})});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})}},[Kn,Dr.current,nr]);const ln=(on="",Mn)=>{if(!on||on.trim()==="")return!0;const xn=Dr.current.instance.getModel().getLineTokens(Mn);let gn=!1;for(let Sn=0;Sn<2;Sn++)xn.getStandardTokenType(Sn)===1&&(gn=!0);return gn};(0,et.useEffect)(()=>{var on;const Mn=(on=Dr.current)==null?void 0:on.instance;if(Mn&&nr&&en){const an=Mn.onDidBlurEditorWidget(()=>{Li.current=!1}),xn=Mn.onDidFocusEditorText(()=>{Li.current=!0});return()=>{an.dispose(),xn.dispose()}}},[Dr.current,nr,en]),(0,et.useEffect)(()=>{var on;if((on=Dr.current)!=null&&on.instance&&nr&&Ur){let Mn=Dr.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(kr===bn[0])return;an.deltaDecorations(Jn,[]);const Sr=an.getLineCount();kr&&kr<=Sr&&(Mn.deltaDecorations([],[{range:new vt.Range(kr,1,kr,an.getLineMaxColumn(kr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Mn.revealLineInCenter(kr))})();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};or(Jn)},Sn=Br=>Ct(void 0,null,function*(){let bn={range:new vt.Range(Br,1,Br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield an.deltaDecorations([],[bn]),gn()}),An=Br=>Ct(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,St.isEqual)(er,gn(!0).lines)){an.deltaDecorations(gn(!0).ids,[]);const Br=er.map(bn=>({range:new vt.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(jr.current),jr.current=setTimeout(()=>{ln(an.getLineContent(Jn),Jn)?An(Jn):Nn(Jn)?(An(Jn),Sn(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)?An(Sr):Sn(Sr)}}),xr=Br=>{let bn={range:new vt.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)}}),Qr=Mn.onMouseLeave(()=>{mn()});return()=>{Fn.dispose(),zn.dispose(),Fr.dispose(),Qr.dispose()}}},[Dr.current,nr,er,kr,Ur,Te]),(0,et.useEffect)(()=>{var on;(on=Dr.current)!=null&&on.instance&&Ur&&Dr.current.instance.setPosition({lineNumber:0,column:0})},[kr]);function Cn(){let on=Dr.current.instance;if(on){const Mn=on.getSelection(),an=Dr.current.pastePos||{},xn=new vt.Range(an.startLineNumber||Mn.endLineNumber,an.startColumn||Mn.endColumn,an.endLineNumber||Mn.endLineNumber,an.endColumn||Mn.endColumn);setTimeout(()=>{on.executeEdits("",[{range:xn,text:""}])},300)}}function Xt(on){(window.navigator.platform.match("Mac")?on.metaKey:on.ctrlKey)&&on.keyCode==83&&(on.preventDefault(),jt())}const Rt=()=>{if(Kt&&Dr.current.instance){const on=Dr.current.instance.getContentHeight();Wn(on<We?We:on)}else Wn(We)};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:xn,target:gn,type:Sn}=on;return(Sn==="paste"||(Mn===67||Mn===86)&&(xn||an))&&gn.nodeName==="TEXTAREA"&&(qt(),on.preventDefault()),!1};function Gn(on,Mn){var an=window.URL||window.webkitURL||window,xn=new Blob([Mn]),gn=document.createElementNS("http://www.w3.org/1999/xhtml","a");gn.href=an.createObjectURL(xn),gn.download=on,fn(gn)}(0,et.useEffect)(()=>{Rt()},[Rt]),(0,et.useEffect)(()=>{di.current&&!nr&&Promise.all([Ge.e(8909),Ge.e(3267)]).then(Ge.bind(Ge,71448)).then(on=>{try{vt=on,Dr.current.instance=vt.editor.create(di.current,{value:Be,language:Lt(Te),theme:Ot,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ze);const Mn=Dr.current.instance;let gn=[...Qe.BH._menuItems].find(Fn=>Fn[0]._debugName=="EditorContext")[1],Sn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],An=(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(yn(Mn,vt),setTimeout(()=>{Rt(),Dr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Gn(Tr||"educoder.txt",Mn.getValue())}})},500),Dr.current.subscription=Mn.onDidChangeModelContent(Fn=>{pr.current?clearTimeout(Pr.current):(Rt(),cn(Mn.getValue(),Fn)),Pr.current=setTimeout(()=>{pr.current=!1},500)}),window.Monaco||Oe(vt,Lt(Te)),en&&(An(gn,Sn),di.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",un),window.removeEventListener("paste",un),window.addEventListener("keydown",un),window.addEventListener("paste",un)),window.Monaco=vt,zt&&Mn.onDidBlurEditorWidget(()=>{zt(Mn.getValue())}),On&&Mn.onDidFocusEditorText(()=>{On(Mn.getValue())}),en)try{Mn.onDidPaste(Fn=>{const zn=Mn.getSelection(),xr=Dr.current.pastePos||{},mn=new vt.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=nn();return Jr&&typeof Jr=="string"&&new Ve(Jr,Mn,vt),ar(!0),()=>{const Fn=Dr.current.instance;Fn.dispose();const zn=Fn.getModel();zn&&zn.dispose(),Dr.current.subscription&&Dr.current.subscription.dispose(),Nn.unobserve(di.current)}}catch(Mn){}})},[]),(0,et.useEffect)(()=>{if(Dr.current.instance&&nr)return document.addEventListener("keydown",Xt,!1),()=>{document.removeEventListener("keydown",Xt)}},[jt,nr]),(0,et.useEffect)(()=>{let on=Dr.current.instance;if(on&&nr){let Mn=Lt(Te);vt.editor.setModelLanguage(on.getModel(),Mn)}},[Te,nr]),(0,et.useEffect)(()=>{Dr.current.instance&&nr&&vt.editor.setTheme(Ot)},[Ot,nr]),(0,et.useEffect)(()=>{let on=Dr.current.instance;ot.current=gt,on&&nr&&(on.updateOptions(kt({},gt)),setTimeout(()=>{on.getModel().updateOptions(kt({},gt))},200))},[JSON.stringify(gt),nr]),(0,et.useEffect)(()=>{let on=Dr.current.instance;on&&nr&&on.layout()},[tt,We,nr]);const[Xn,$t]=(0,et.useState)(st(tt)),[kn,Wn]=(0,et.useState)(st(We)),lr=Ut(kt({},Ke),{width:Xn,height:kn,position:"relative"});return et.createElement("div",{className:"my-monaco-editor",ref:di,style:lr},Yt&&et.createElement(it.CopyToClipboard,{text:Be,onCopy:()=>ut.ZP.success("\u590D\u5236\u6210\u529F")},et.createElement(dt.Z,{title:"\u590D\u5236\u4EE3\u7801"},et.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},et.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Xe({width:Ue="100%",height:$e="100%",original:tt,modified:We,language:Be,options:Te={}}){const Ke=(0,et.useRef)(),[gt,Ze]=(0,et.useState)(null);function Ot(Kt){let en;return Ke.current&&(en=new Mt.Z(cn=>{for(let yn of cn)(yn.target.offsetHeight>0||yn.target.offsetWidth>0)&&Kt.layout()}),en.observe(Ke.current)),en}(0,et.useEffect)(()=>(Ke.current&&Promise.all([Ge.e(8909),Ge.e(9404)]).then(Ge.bind(Ge,2550)).then(Kt=>{vt=Kt;const en=vt.editor.createDiffEditor(Ke.current,Ut(kt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Te),{wordWrap:!0}));Ze(en);let cn=Ot(en);return()=>{en.dispose();const yn=en.getModel();yn&&yn.dispose(),cn.unobserve(Ke.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,et.useEffect)(()=>{gt&>.setModel({original:vt.editor.createModel(tt,Be),modified:vt.editor.createModel(We,Be)})},[tt,We,Be,gt]);const zt=st(Ue),Yt=st($e),jt={width:zt,height:Yt};return et.createElement("div",{className:"my-diff-editor",ref:Ke,style:jt})}},85057:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{jL:function(){return je},w9:function(){return mt},QD:function(){return cn},cQ:function(){return it},op:function(){return Ot},O5:function(){return Li},_b:function(){return Kn},t7:function(){return re},Gi:function(){return Ct},YG:function(){return Ut},qp:function(){return Pe},vr:function(){return or},qE:function(){return jt},Je:function(){return pe},wb:function(){return Qe},cq:function(){return vt},tp:function(){return fe}});var et=Ge(59301),Mt={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==",je=({dataSource:nr=[],img:ar,imgWidth:nn=346,title:qt,sunTitle:Tt,bannerExtraContent:ln})=>et.createElement("div",{className:Mt.banner},et.createElement("div",{className:Mt.content},et.createElement("aside",null,et.createElement("p",null,et.createElement("b",null,qt),et.createElement("span",null,Tt)),nr.length>0&&et.createElement("div",{className:Mt.btns},nr.map((Cn,Xt)=>et.createElement("div",{key:Xt,onClick:Cn.click},Cn.name,Cn.sign?et.createElement("img",{src:oe,width:39}):null))),ln),ar&&et.createElement("img",{style:{marginTop:33,marginRight:38},src:ar,width:nn}))),ve={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ce=Ge(92310),we=Ge.n(ce),Me=Ge(89392),Pe=({dataSource:nr=[],value:ar,onChange:nn,onTitleChange:qt,className:Tt,title:ln,titleWidth:Cn=41,style:Xt={},fontColor:Rt="#6A7283",showCount:fn})=>{const[un,Gn]=(0,et.useState)(0),[Xn,$t]=(0,et.useState)(!1),kn=(0,et.useRef)(null),Wn=(0,et.useRef)(null);return(0,et.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),$t(!1)},[nr]),et.createElement("div",{className:we()(ve.row,Tt),style:Xt},et.createElement("div",{onClick:(0,Me.throttle)(()=>qt==null?void 0:qt(),2e3),style:{width:Cn,marginTop:Xn?12:4},className:`${ve.title} ${qt?"current":""}`},ln),et.createElement("div",{className:Xn?`${ve.tagsWrap} ${ve.tagsBorderWrap}`:ve.tagsWrap},et.createElement("div",{className:ve.bar,ref:Wn,style:un>0?{height:un===1?97:"auto",overflow:un===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},et.createElement("div",{className:ve.tag,ref:kn},nr==null?void 0:nr.map(lr=>et.createElement("span",{onClick:()=>nn(lr.id),key:lr.id,style:{color:Rt},className:ar===lr.id?ve.active:""},et.createElement("span",{title:lr.name,className:ve.name},lr.name),!!fn&&et.createElement("span",{className:ve.num},lr.count))))),!!un&&et.createElement(et.Fragment,null,un===1?et.createElement("div",{onClick:()=>{var lr;Gn(2),((lr=kn==null?void 0:kn.current)==null?void 0:lr.clientHeight)>245?$t(!0):$t(!1)},className:ve.action},"\u5C55\u5F00",et.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):et.createElement("div",{onClick:()=>{Wn.current.scrollTop=0,Gn(1),$t(!1)},className:ve.action},"\u6536\u8D77",et.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},me={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},fe=({dataSource:nr=[],value:ar,onChange:nn,className:qt,style:Tt={}})=>et.createElement("div",{style:Tt,className:we()(me.tabs,qt)},nr.map(ln=>et.createElement("span",{onClick:()=>nn(ln.id),className:ar===ln.id?me.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=Ge(92832),re=({dataSource:nr=[],value:ar="",onChange:nn,onInputChange:qt=()=>{},className:Tt,style:ln={},placeholder:Cn,allowClear:Xt=!1})=>{var Rt;const[fn,un]=(0,et.useState)(""),[Gn,Xn]=(0,et.useState)("");(0,et.useEffect)(()=>{var Wn;let lr=ar;(Wn=JSON.stringify(ar))!=null&&Wn.includes("{")&&(un(ar.id),lr=ar.value||"");try{Xn(decodeURIComponent(lr||""))}catch(on){Xn(decodeURIComponent(lr||""))}},[ar]);const $t=()=>{nn(encodeURIComponent(Gn),fn||null)},kn=Wn=>{Wn!==fn&&(un(Wn),nn(encodeURIComponent(Gn),Wn))};return et.createElement("div",{className:we()(z.input,Tt),style:ln},!!nr.length&&et.createElement("div",{className:z.dropdown},et.createElement("div",{className:z.text},(Rt=nr.find(Wn=>Wn.id===fn))==null?void 0:Rt.name,et.createElement("i",{className:"iconfont icon-zhankai4"}),et.createElement("b",{className:z.b1}),et.createElement("b",{className:z.b2})),et.createElement("div",{className:z.menu},nr.map((Wn,lr)=>et.createElement("div",{key:lr,onClick:()=>kn(Wn.id)},Wn.name)))),et.createElement(ee.default,{onPressEnter:$t,value:Gn,onChange:Wn=>{Xn(Wn.target.value),qt(encodeURIComponent(Wn.target.value),fn||null)},bordered:!1,placeholder:Cn}),et.createElement("i",{onClick:$t,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:ar,className:nn,total:qt,pageSize:Tt,style:ln={}})=>{const Cn=nr<2,Xt=nr>=Math.ceil(qt/Tt);return qt<=Tt?et.createElement(et.Fragment,null):et.createElement("div",{className:we()(le.quickPager,nn),style:ln},et.createElement("div",{onClick:()=>{Cn||ar(nr-1,"prev")},className:Cn?le.disabled:""},"\u4E0A\u4E00\u9875"),et.createElement("div",{onClick:()=>{Xt||ar(nr+1,"next")},className:Xt?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=Ge(71418),Ie=Ge(6848),Oe=Ge(13570),Le=Ge(3294),Ne=Ge(955),De=Ge(96908),Re=Ge(57177),Je=Ge(81378),_e=Ge(8797),Qe=({className:nr,dataSource:ar=[],col:nn=4,right:qt,bottom:Tt=23,precision:ln=0,wrapWidth:Cn=1200,trackEventItems:Xt,loading:Rt})=>{const fn=Math.floor((Cn-(nn-1)*qt)/nn);return et.createElement(Ce.Z,{spinning:Rt},et.createElement("div",{className:we()(be.list,nr)},!!ar.length&&ar.map((un,Gn)=>{const{name:Xn,id:$t,identifier:kn,power:Wn,cover_image_id:lr,pic:on}=un;return et.createElement("div",{className:be.wrap,key:$t,style:{width:fn,marginRight:(1+Gn)%nn===0?0:qt+ln,marginBottom:Tt}},et.createElement("a",{target:"_blank",href:`/shixuns/${kn}/challenges`,className:be.li,onClick:Mn=>{Mn.preventDefault(),Xt&&(0,Ne.L9)([Xt]),Wn&&(0,Ne.xg)(`/shixuns/${kn}/challenges`)}},et.createElement("div",{className:be.img},et.createElement("img",{className:be.cover,src:`${on}`}),un.is_jupyter&&et.createElement("img",{className:be.sign,src:De}),un.is_jupyter_lab&&et.createElement("img",{className:be.sign,src:Re}),un.is_unity_3d&&et.createElement("img",{className:be.sign,src:Je})),et.createElement("div",{className:be.name},et.createElement(Ie.Z,{title:Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},et.createElement("span",{className:be.e},Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),et.createElement("div",{className:be.tags},et.createElement(Ie.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},et.createElement("span",null,et.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),et.createElement("span",null,un.challenges_count))),!!un.myshixuns_count&&et.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},et.createElement("span",null,et.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),et.createElement("span",null,un.myshixuns_count))),et.createElement(Ie.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},et.createElement("span",null,et.createElement("span",null,un.level))),et.createElement("div",{className:be.rate},et.createElement(Oe.Z,{allowHalf:!0,disabled:!0,defaultValue:un.score_info}),et.createElement("span",null,"\xA0",un.score_info?`${un.score_info}\u5206`:"5\u5206")))),!Wn&&et.createElement("div",{className:be.lockWrap},et.createElement("img",{src:`${Le.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),et.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ar.length&&et.createElement(_e.Z,null)))},ut={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"},dt=Ge(24065),St=Ge(59301),it=({className:nr,dataSource:ar=[],col:nn=4,right:qt,bottom:Tt=23,precision:ln=0,wrapWidth:Cn=1200,trackEventItems:Xt,loading:Rt,onRemove:fn=()=>{},isCurrent:un=!0,showAlias:Gn=!1})=>{const Xn=Math.floor((Cn-(nn-1)*qt)/nn),$t=[{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 St.createElement(Ce.Z,{spinning:Rt},St.createElement("div",{className:we()(ut.list,nr)},!!(ar!=null&&ar.length)&&(ar==null?void 0:ar.map((kn,Wn)=>{var lr;const{name:on,id:Mn,identifier:an,featured:xn,school_name:gn,image_url:Sn,excellent:An,is_plan:Nn}=kn;return St.createElement("div",{key:Mn,className:ut.wrap,style:{width:Xn,marginRight:(1+Wn)%nn===0?0:qt+ln,marginBottom:Tt}},St.createElement("a",{className:ut.li,onClick:Fn=>{Fn.preventDefault(),Fn.stopPropagation(),Xt&&(0,Ne.L9)([Xt]),(0,Ne.xg)(`/paths/${an}`)}},St.createElement("div",{className:ut.img},St.createElement("img",{className:ut.cover,src:`${Sn}`}),un&&(0,dt.bg)()&&(kn==null?void 0:kn.studying)&&St.createElement("div",{className:`${ut.movebq} user-path-items`,onClick:Fn=>{Fn.stopPropagation(),fn(kn)}},St.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),St.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 Qr=(xr=$t.find(Br=>Br.name==Fn))==null?void 0:xr.swimg;return St.createElement("img",{className:ut.sign,src:Qr,style:{left:"-4px"}})}const Fr=(mn=$t.find(Qr=>Qr.name==Fn))==null?void 0:mn.ptimg;return St.createElement("img",{className:ut.sign,src:Fr,style:{left:`${48+52*(zn-1)+2*zn}px`}})}),St.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(kn==null?void 0:kn.excellent)&&St.createElement("div",{className:ut.bq},"\u5F00\u653E\u8BFE\u7A0B"))),St.createElement("div",{className:ut.name},St.createElement(Ie.Z,{title:Gn&&(kn!=null&&kn.excellent_alias_name)?St.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${on}`,St.createElement("br",null),St.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${kn==null?void 0:kn.excellent_alias_name}`)):on},St.createElement("span",{className:ut.e},Gn&&(kn==null?void 0:kn.excellent_alias_name)||on))),St.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${gn}`},St.createElement("div",{className:ut.unit},St.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),gn)),St.createElement("div",{className:ut.tags},St.createElement("div",null,St.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),St.createElement("span",null,kn.stages_count))),St.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),St.createElement("span",null,kn.members_count)))))))})),!ar.length&&St.createElement(_e.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"},wt="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",xt=Ge(59301),mt=({className:nr,dataSource:ar=[],col:nn=4,right:qt,bottom:Tt=23,precision:ln=0,wrapWidth:Cn=1200,trackEventItems:Xt,loading:Rt,handleVery:fn=()=>!0})=>{const un=Math.floor((Cn-(nn-1)*qt)/nn);return xt.createElement(Ce.Z,{spinning:Rt},xt.createElement("div",{className:we()(pt.list,nr)},!!ar.length&&ar.map((Gn,Xn)=>{const{subject_identifier:$t,id:kn,identifier:Wn,power:lr}=Gn,on=Gn.is_public!=0&&Gn.is_public;return xt.createElement("div",{className:pt.wrap,key:kn,style:{width:un,marginRight:(1+Xn)%nn===0?0:qt+ln,marginBottom:Tt}},xt.createElement("a",{className:pt.li,onClick:Mn=>{Mn.preventDefault(),fn(Gn==null?void 0:Gn.first_category_url)&&(Xt&&(0,Ne.L9)([Xt]),(0,Ne.xg)(Gn.first_category_url))}},xt.createElement("div",{className:pt.top},xt.createElement(Ie.Z,{title:Gn.name},xt.createElement("div",{className:pt.name},Gn.name)),xt.createElement("img",{className:pt.img,src:Le.Z.IMG_SERVER+"/images/"+Gn.avatar_url}),xt.createElement("div",{className:pt.text,title:Gn.creator},Gn.creator),$t&&xt.createElement("div",{className:pt.btns},xt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),xt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),on&&xt.createElement("div",{className:pt.sign},"\u516C\u5F00")),xt.createElement("div",{className:pt.bottom},Gn.visits>0&&xt.createElement(Ie.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-liulanyan"}),xt.createElement("span",null,Gn.visits))),Gn.course_members_count>0&&xt.createElement(Ie.Z,{title:"\u6210\u5458",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-chengyuan"}),Gn.course_members_count)),Gn.tasks_count>0&&xt.createElement(Ie.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-zuoye"}),Gn.tasks_count)),Gn.is_end?xt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):xt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gn.is_accessible&&xt.createElement("div",{className:pt.lockWrap},xt.createElement("img",{src:`${Le.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),xt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ar.length&&xt.createElement(_e.Z,null)))},yt={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"},It=Ge(89070),Ut=({dataSource:nr=[],value:ar,onChange:nn,className:qt,style:Tt={},tabBarExtraContent:ln})=>et.createElement("div",{className:we()(yt.tabs,qt),style:Tt},et.createElement("div",{className:yt.tabsWrap},nr.map((Cn,Xt)=>!(Cn!=null&&Cn.hide)&&et.createElement("aside",{className:yt.tab,onClick:()=>{nn(Cn.id),Cn.link&&It.history.push(Cn.link)},key:Xt},et.createElement("div",{className:ar===Cn.id?yt.active:""},Cn.name),(Cn==null?void 0:Cn.resetCount)==null&&(Cn==null?void 0:Cn.total)!==void 0&&et.createElement("span",null,"\uFF08",Cn==null?void 0:Cn.total,"\uFF09"),(Cn==null?void 0:Cn.resetCount)!==void 0&&(Cn==null?void 0:Cn.total)!==void 0&&et.createElement(Ie.Z,{title:(Cn==null?void 0:Cn.tip)!=null?Cn==null?void 0:Cn.tip:""},et.createElement("span",{style:{color:"#9096A3"}},"\uFF08",et.createElement("span",{style:{color:"#000"}},Cn==null?void 0:Cn.resetCount),"/",et.createElement("span",null,Cn==null?void 0:Cn.total),"\uFF09"))))),et.createElement("div",{className:yt.tabBar},ln)),Ct=({className:nr,style:ar={},children:nn})=>et.createElement("div",{className:we()(nr),style:ar},nn),st={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"},bt=Ge(38854),at=Ge(20834);const ct=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var vt=({sortValue:nr,dropValue:ar,className:nn,onSort:qt,onDrop:Tt,dataSource:ln=ct})=>{var Cn;return et.createElement("div",{className:we()(st.orderWrap,nn)},et.createElement(bt.Z,{dropdownRender:()=>et.createElement(at.default,null,ln.map((Xt,Rt)=>et.createElement(at.default.Item,{key:Rt,onClick:()=>Tt(Xt.id)},Xt.name)))},et.createElement("span",{className:st.orderTextWrap},(Cn=ln.find(Xt=>ar===Xt.id))==null?void 0:Cn.name)),et.createElement("span",{className:st.orderIconWrap},et.createElement("span",{className:st.orderAsc},et.createElement("i",{className:nr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${st.cursorPointer} ${st.active}`:`iconfont icon-sanjiaoxing-up font12 ${st.cursorPointer}`,onClick:()=>qt(nr==="asc"?"desc":"asc")})),et.createElement("span",{className:st.orderDesc},et.createElement("i",{className:nr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${st.cursorPointer} ${st.active}`:`iconfont icon-sanjiaoxing-down font12 ${st.cursorPointer}`,onClick:()=>qt(nr==="asc"?"desc":"asc")}))))},nt={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"},Xe=Ge(3113),Ue=Object.defineProperty,$e=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Be=(nr,ar,nn)=>ar in nr?Ue(nr,ar,{enumerable:!0,configurable:!0,writable:!0,value:nn}):nr[ar]=nn,Te=(nr,ar)=>{for(var nn in ar||(ar={}))tt.call(ar,nn)&&Be(nr,nn,ar[nn]);if($e)for(var nn of $e(ar))We.call(ar,nn)&&Be(nr,nn,ar[nn]);return nr},Ke=(nr,ar)=>{var nn={};for(var qt in nr)tt.call(nr,qt)&&ar.indexOf(qt)<0&&(nn[qt]=nr[qt]);if(nr!=null&&$e)for(var qt of $e(nr))ar.indexOf(qt)<0&&We.call(nr,qt)&&(nn[qt]=nr[qt]);return nn},gt=(nr,ar,nn)=>new Promise((qt,Tt)=>{var ln=Rt=>{try{Xt(nn.next(Rt))}catch(fn){Tt(fn)}},Cn=Rt=>{try{Xt(nn.throw(Rt))}catch(fn){Tt(fn)}},Xt=Rt=>Rt.done?qt(Rt.value):Promise.resolve(Rt.value).then(ln,Cn);Xt((nn=nn.apply(nr,ar)).next())}),Ot=nr=>{var ar=nr,{className:nn,style:qt,children:Tt,loading:ln=!1,openLoading:Cn,onClick:Xt=()=>{},size:Rt="middle",shape:fn="round"}=ar,un=Ke(ar,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gn,Xn]=(0,et.useState)(!1);return et.createElement(Xe.ZP,Te({onClick:(0,Me.throttle)($t=>gt(void 0,null,function*(){Cn&&Xn(!0);try{yield Xt($t)}catch(kn){console.log("error",kn)}Cn&&Xn(!1)}),2e3,{leading:!0,trailing:!1}),className:we()(nt.btn,nt[`${Rt}-${fn}`],nn),style:qt,size:Rt,shape:fn,loading:Gn||ln},un),Tt)},zt={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"},jt=({className:nr,style:ar,children:nn=null,onClick:qt,title:Tt})=>et.createElement("div",{className:we()(zt.head,nr),style:ar},et.createElement("span",{className:"primary-hover",onClick:qt},et.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),et.createElement("b",{title:Tt},Tt),et.createElement("div",{className:zt.node},nn)),Kt={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"},cn=({confirmShow:nr=!0,confirmTitle:ar,confirmClick:nn,cancelShow:qt=!0,cancelTitle:Tt,cancelClick:ln,className:Cn,style:Xt,confirmLoading:Rt=!1})=>et.createElement("div",{className:we()(Kt.btns,Cn),style:Xt},nr&&et.createElement(Xe.ZP,{loading:Rt,onClick:nn,type:"primary",className:Kt.confirm},ar),qt&&et.createElement(Xe.ZP,{onClick:ln,className:Kt.cancel},Tt)),yn={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"},or=({className:nr,style:ar={},LeftContent:nn,children:qt,RightContent:Tt})=>et.createElement("div",{className:we()(yn.fixedBottom,nr),style:ar},et.createElement("div",{className:yn.wrap},et.createElement("div",{className:yn.left},nn),et.createElement("div",{className:yn.center},qt),et.createElement("div",{className:yn.right},Tt))),er={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"},Kn=({className:nr,style:ar={},dataSource:nn=[]})=>et.createElement("div",{className:we()(er.crumbs,nr),style:ar},nn.map((qt,Tt)=>Tt<nn.length-1?et.createElement(et.Fragment,{key:Tt},qt.path||qt.onClick?et.createElement("span",{className:er.hover,onClick:qt!=null&&qt.onClick?qt.onClick:()=>It.history.push(qt.path)},qt.name):et.createElement("span",null,qt.name),et.createElement("span",null,"\xA0",">","\xA0")):et.createElement("span",{key:Tt,style:{color:"#5F6368"}},qt.name))),Nr=Ge(31797),kr=Object.defineProperty,Ur=Object.defineProperties,Jr=Object.getOwnPropertyDescriptors,Mr=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,ot=(nr,ar,nn)=>ar in nr?kr(nr,ar,{enumerable:!0,configurable:!0,writable:!0,value:nn}):nr[ar]=nn,Ci=(nr,ar)=>{for(var nn in ar||(ar={}))di.call(ar,nn)&&ot(nr,nn,ar[nn]);if(Mr)for(var nn of Mr(ar))Dr.call(ar,nn)&&ot(nr,nn,ar[nn]);return nr},xi=(nr,ar)=>Ur(nr,Jr(ar)),pr=(nr,ar)=>{var nn={};for(var qt in nr)di.call(nr,qt)&&ar.indexOf(qt)<0&&(nn[qt]=nr[qt]);if(nr!=null&&Mr)for(var qt of Mr(nr))ar.indexOf(qt)<0&&Dr.call(nr,qt)&&(nn[qt]=nr[qt]);return nn};const{Countdown:Pr}=Nr.default;var Li=nr=>{var ar=nr,{onChange:nn}=ar,qt=pr(ar,["onChange"]);const[Tt,ln]=(0,et.useState)(null);(0,et.useEffect)(()=>{typeof Tt=="number"&&Tt>=0&&nn(Tt)},[Tt]);const Cn=Xt=>{const Rt=Math.floor(Xt/1e3);ln(Rt)};return et.createElement(Pr,xi(Ci({},qt),{onChange:Cn}))}},58856:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Mt}});var et=Ge(59301);function Mt(oe,ze){const je=(0,et.useRef)();(0,et.useEffect)(()=>{je.current=oe}),(0,et.useEffect)(()=>{function ve(){je.current()}if(ze!==null){let ce=setInterval(ve,ze);return()=>clearInterval(ce)}},[ze])}},19683:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Ve}});var et=Ge(59301),Mt=Ge(92832),oe=Ge(78241),ze=Ge(8591),je=Ge(43418),ve=Ge(71418),ce=Ge(54580),we=Ge(6848),Me=Ge(93948),Se=Ge(5112),Pe={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"},me=Ge(99064),xe=Ge(955),fe=Ge(81939),z=Ge(1012),ee=Ge(47257),ae=Ge.n(ee),re=Ge(56210),le=Ge(85057),ue=Ge(24065),pe=Ge(89070),be=Ge(59301),Ce=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ne=(Qe,ut,dt)=>ut in Qe?Ce(Qe,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Qe[ut]=dt,De=(Qe,ut)=>{for(var dt in ut||(ut={}))Oe.call(ut,dt)&&Ne(Qe,dt,ut[dt]);if(Ie)for(var dt of Ie(ut))Le.call(ut,dt)&&Ne(Qe,dt,ut[dt]);return Qe},Re=(Qe,ut,dt)=>new Promise((St,qe)=>{var it=xt=>{try{wt(dt.next(xt))}catch(ft){qe(ft)}},pt=xt=>{try{wt(dt.throw(xt))}catch(ft){qe(ft)}},wt=xt=>xt.done?St(xt.value):Promise.resolve(xt.value).then(it,pt);wt((dt=dt.apply(Qe,ut)).next())});const Je=Mt.default.TextArea,_e=({dataSetInfo:Qe,attachmentInfo:ut,visible:dt,user:St,dispatch:qe,onClose:it=()=>{},onSuccess:pt=()=>{}})=>{var wt,xt;const[ft,mt]=(0,et.useState)([]),[yt,It]=(0,et.useState)(!1),[kt,Ut]=(0,et.useState)(!1),[Pt]=oe.default.useForm(),[Ct,st]=(0,et.useState)([]),[bt,at]=(0,et.useState)({}),ct=(0,et.useRef)([]);(0,et.useEffect)(()=>{if(dt){if(Qe){const{title:Te,is_public:Ke,desc:gt,attachments:Ze,data_set_tags:Ot}=Qe||{},zt=Ze.map(jt=>({id:String(Math.random()).slice(-6),name:jt.title,response:{attachment_id:jt.id},size:jt.size,description:jt.description||"",percent:100,status:"done"}));mt(zt),st(Ot);const Yt={title:Te,is_public:Ke,desc:gt};Pt.setFieldsValue(Yt)}if(ut){const Te=ut.map(Ke=>({id:String(Math.random()).slice(-6),name:Ke.title,response:{attachment_id:Ke.id},size:Ke.size,description:Ke.description||"",percent:100,status:"done"}));mt(Te)}Lt()}},[dt]),(0,et.useEffect)(()=>{ct.current=ft},[ft]),(0,et.useEffect)(()=>{ft!=null&&ft.length?Pt.setFields([{name:"attachments",errors:[]}]):Pt.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[ft.length]),(0,et.useEffect)(()=>{Ct!=null&&Ct.length?Pt.setFields([{name:"tag_ids",errors:[]}]):Pt.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Ct.length]);const Lt=()=>Re(void 0,null,function*(){Ut(!0);const Te=yield(0,me.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});Te.status===0&&(at(Te==null?void 0:Te.data),Ut(!1))}),vt={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:Te=>Re(void 0,null,function*(){var Ke,gt,Ze,Ot,zt,Yt;if(((Ot=(Ze=(gt=(Ke=Te.name)==null?void 0:Ke.split("."))==null?void 0:gt.slice(0,-1))==null?void 0:Ze.join("."))==null?void 0:Ot.length)>60)return ze.ZP.warning(`\u300A${Te.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...bt.data_set_filenames,...ct.current.map(On=>On.name)].includes(Te.name))return ze.ZP.warning(`\u300A${Te.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const Kt=Te.size/1024/1024/1024;let en=bt==null?void 0:bt.data_sets_filesize;if(ct.current.forEach(On=>{en+=On==null?void 0:On.size}),en=en/1024/1024/1024,(0,ue.Ny)()){if(Kt>50)return ze.ZP.warning(`\u300A${Te.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(Kt>2)return ze.ZP.warning(`\u300A${Te.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(en+Kt>((zt=St==null?void 0:St.userInfo)==null?void 0:zt.cloud_space)&&!(bt!=null&&bt.current_user_no_limit))return ze.ZP.warning(`\u300A${Te.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(${(Yt=St==null?void 0:St.userInfo)==null?void 0:Yt.cloud_space}GB)`),Promise.reject();const yn={id:String(Math.random()).slice(-6),name:Te.name,size:Te.size,file:Te,description:"",percent:0,status:"uploading"};return Ue(yn,{login:bt==null?void 0:bt.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),mt(On=>[...On,yn]),Promise.reject()})},nt=Te=>Re(void 0,null,function*(){var Ke,gt,Ze;const Ot=ct.current.find(zt=>zt.name===Te.name);(Ke=Ot==null?void 0:Ot.response)!=null&&Ke.attachment_id&&(yield(0,me.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(gt=Ot==null?void 0:Ot.response)==null?void 0:gt.attachment_id}})),Ot!=null&&Ot.client&&((Ze=Ot==null?void 0:Ot.client)==null||Ze.cancel()),mt(zt=>zt.filter(Yt=>Yt.name!==Te.name))}),Xe=()=>{var Te;(Te=ct.current)==null||Te.forEach(Ke=>{var gt;Ke!=null&&Ke.client&&((gt=Ke==null?void 0:Ke.client)==null||gt.cancel())})};console.log(ft,"fileList1");const Ue=(Te,Ke)=>Re(void 0,null,function*(){var gt,Ze,Ot,zt,Yt,jt,Kt,en,cn;Ke.file_name=Te.name;const yn=Te.name,On=yield(0,me.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((On==null?void 0:On.status)!==0){mt(Kn=>(Kn[Kn.findIndex(Nr=>Nr.name===yn)].status="error",[...Kn])),ze.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}On.data=JSON.parse((0,fe.pe)(On.data));const or=new(ae())({endpoint:(gt=On==null?void 0:On.data)==null?void 0:gt.end_point,region:(Ze=On==null?void 0:On.data)==null?void 0:Ze.region,accessKeyId:(Ot=On==null?void 0:On.data)==null?void 0:Ot.access_key_id,accessKeySecret:(zt=On==null?void 0:On.data)==null?void 0:zt.access_key_secret,bucket:(Yt=On==null?void 0:On.data)==null?void 0:Yt.bucket,stsToken:(jt=On==null?void 0:On.data)==null?void 0:jt.security_token}),er=Te.name.split(".");er.pop();const Tr=Ke.realFileName?er.join("."):(0,z.Z)();or.multipartUpload(`datasets/${Ke==null?void 0:Ke.login}/${Tr}${yn.indexOf(".")>-1?"."+yn.split(".").pop():""}`,new Blob([Te.file],{type:Te.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Kn,Nr,kr)=>{console.log("\u8FDB\u5EA6",Kn,Nr,kr),mt(Ur=>{const Jr=Ur.findIndex(Mr=>Mr.name===yn);return Ur[Jr].client=or,Ur[Jr].percent=Kn*100,Ur[Jr].checkpoint=Nr,[...Ur]})},checkpoint:(en=ct.current[(Kt=ct.current)==null?void 0:Kt.findIndex(Kn=>Kn.name===yn)])==null?void 0:en.checkpoint,callback:{customValue:{id:yn+""},url:(cn=On==null?void 0:On.data)==null?void 0:cn.callback_url,host:On==null?void 0:On.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,me.rz)(Ke)}}).then(function(Kn){mt(Nr=>{var kr,Ur,Jr;const Mr=Nr.findIndex(Dr=>Dr.name===yn);let di="done";return((kr=Kn.data)==null?void 0:kr.status)===0?Nr[Mr].response=(Ur=Kn.data)==null?void 0:Ur.data:(ze.ZP.warning((Jr=Kn.data)==null?void 0:Jr.message),di="error"),Nr[Mr].status=di,[...Nr]})}).catch(function(Kn){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Kn),(Kn==null?void 0:Kn.name)!=="cancel"&&mt(Nr=>{const kr=Nr.findIndex(Ur=>Ur.name===yn);return Nr[kr].status="error",[...Nr]})})}),$e=Te=>(Te=Te||"",Te=String(Te),Te=Te.replace(/\s+/g,""),Te),tt=()=>Re(void 0,null,function*(){var Te;const Ke=Pt.getFieldsValue(),{title:gt,is_public:Ze,desc:Ot}=Ke,zt=[];if($e(gt)||zt.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),ft!=null&&ft.length||zt.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),Ct!=null&&Ct.length||zt.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),zt.length){Pt.setFields(zt);return}const Yt=ft.map(en=>{var cn;return{attachment_id:(cn=en.response)==null?void 0:cn.attachment_id,description:en.description}});It(!0);const jt={title:Ke.title,attachments:Yt,tag_ids:Ct.map(en=>en.id),is_public:Ze,desc:Ot};let Kt;Qe?Kt=yield(0,me.ZP)(`/api/data_sets/${Qe==null?void 0:Qe.id}.json`,{method:"put",body:jt}):Kt=yield(0,me.ZP)("/api/data_sets.json",{method:"post",body:jt}),Kt.status===0&&(ze.ZP.success("\u64CD\u4F5C\u6210\u529F"),pt((Te=Kt==null?void 0:Kt.data)==null?void 0:Te.data_set_id),qe({type:"user/getUserInfo"})),It(!1)}),We=Te=>{st(Te)},Be=ft.some(Te=>Te.status==="uploading");return console.log("fileList",ft),be.createElement(je.default,{destroyOnClose:!0,confirmLoading:yt,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:Be},title:Qe?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(Be){je.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:tt,open:dt,afterClose:()=>{mt([]),st([]),It(!1),Ut(!1),Xe(),Pt.resetFields()}},be.createElement(ve.Z,{spinning:kt},!(bt!=null&&bt.current_user_no_limit)&&!kt&&be.createElement("div",{className:Pe.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"}},(wt=St==null?void 0:St.userInfo)==null?void 0:wt.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"}},((bt==null?void 0:bt.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),be.createElement(oe.default,{form:Pt,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(Mt.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,De({},vt),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.",bt!=null&&bt.current_user_no_limit?"":`\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC7${(xt=St==null?void 0:St.userInfo)==null?void 0:xt.cloud_space}GB\uFF0C`,"\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),be.createElement("div",{className:Pe.box},ft.map(Te=>be.createElement("div",{key:Te.id,className:Pe.row},be.createElement("div",{className:Pe.icon},Te.status==="done"&&be.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),Te.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:Te==null?void 0:Te.name},be.createElement("div",{style:{color:Te.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,xe.tP)(Te==null?void 0:Te.name,9))),Te.status==="uploading"&&be.createElement(Me.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:Te.percent,showInfo:!1,size:[168,4]})),be.createElement("i",{onClick:()=>nt(Te),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),be.createElement(Mt.default,{value:Te.description,onChange:Ke=>{mt(gt=>{const Ze=gt.findIndex(Ot=>Ot.name===Te.name);return gt[Ze].description=Ke.target.value,[...gt]})},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:We,tags:Ct})),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(Je,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))};var Ve=(0,pe.connect)(({user:Qe,dispatch:ut})=>({user:Qe,dispatch:ut}))(_e)},437:function(_n,Pn,Ge){"use strict";Ge.r(Pn),Ge.d(Pn,{default:function(){return xi}});var et=Ge(59301),Mt=Ge(89070),oe=Ge(71418),ze=Ge(66104),je=Ge(6848),ve=Ge(43418),ce=Ge(24905),we=Ge(8591),Me=Ge(38854),Se=Ge(5112),Pe=Ge(1710),me={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=Ge(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=Ge(12290),ee=Ge(85149),ae=Ge(78241),re=Ge(92832),le=Ge(54580),ue=Ge(93948),pe=Ge(37904),be=Ge(61186),Ce=Ge.n(be),Ie=Ge(955),Oe=Ge(1643),Le=Ge(99064),Ne=Ge(47257),De=Ge.n(Ne),Re=Ge(81939),Je=Ge(1012),_e=Ge(24065),Ve=Ge(59301),Qe=Object.defineProperty,ut=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,pt=(pr,Pr,jr)=>Pr in pr?Qe(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:jr}):pr[Pr]=jr,wt=(pr,Pr)=>{for(var jr in Pr||(Pr={}))qe.call(Pr,jr)&&pt(pr,jr,Pr[jr]);if(St)for(var jr of St(Pr))it.call(Pr,jr)&&pt(pr,jr,Pr[jr]);return pr},xt=(pr,Pr)=>ut(pr,dt(Pr)),ft=(pr,Pr,jr)=>new Promise((Li,nr)=>{var ar=Tt=>{try{qt(jr.next(Tt))}catch(ln){nr(ln)}},nn=Tt=>{try{qt(jr.throw(Tt))}catch(ln){nr(ln)}},qt=Tt=>Tt.done?Li(Tt.value):Promise.resolve(Tt.value).then(ar,nn);qt((jr=jr.apply(pr,Pr)).next())});const mt=({polls:pr,globalSetting:Pr,loading:jr,dispatch:Li,user:nr,dataSetInfo:ar,indexType:nn,getInfo:qt})=>{const Tt=(0,Mt.useParams)(),[ln,Cn]=(0,et.useState)(!1),[Xt,Rt]=(0,et.useState)(0),fn=(0,et.useRef)(null),un=(0,et.useRef)(null),[Gn,Xn]=(0,et.useState)(""),[$t,kn]=(0,et.useState)(""),[Wn]=ae.default.useForm(),[lr,on]=(0,et.useState)([]),Mn=(0,et.useRef)([]),[an,xn]=(0,et.useState)(!1),[gn,Sn]=(0,et.useState)(!1),[An,Nn]=(0,et.useState)(""),Fn=lr.some(ur=>ur.status==="uploading"),[zn,xr]=(0,et.useState)(!1),[mn,Fr]=(0,et.useState)([]),[Qr,Br]=(0,et.useState)(!1),[bn,Jn]=(0,et.useState)(0),[sr,Sr]=(0,et.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,et.useEffect)(()=>{var ur;((ur=fn==null?void 0:fn.current)==null?void 0:ur.clientHeight)>80?Rt(1):Rt(0)},[Gn]),(0,et.useEffect)(()=>{Mn.current=lr},[lr]),(0,et.useEffect)(()=>{Xn(ar==null?void 0:ar.introduce),kn(ar==null?void 0:ar.introduce)},[ar==null?void 0:ar.introduce]);const Kr={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,wn,zr,$i;if(((zr=(wn=(cr=(vn=ur.name)==null?void 0:vn.split("."))==null?void 0:cr.slice(0,-1))==null?void 0:wn.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,wn;const zr=Mn.current.find($i=>$i.name===ur.name);(vn=zr==null?void 0:zr.response)!=null&&vn.attachment_id&&(yield(0,Le.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&&((wn=zr==null?void 0:zr.client)==null||wn.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,wn,zr,$i,Mi,yo,no,Wr,Hr;vn.file_name=ur.name;const wi=ur.name,vi=yield(0,Le.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,Re.pe)(vi.data));const fr=new(De())({endpoint:(cr=vi==null?void 0:vi.data)==null?void 0:cr.end_point,region:(wn=vi==null?void 0:vi.data)==null?void 0:wn.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}),At=ur.name.split(".");At.pop();const Fi=vn.realFileName?At.join("."):(0,Je.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,Le.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 Ve.createElement("div",{className:fe.content},!ln&&!Gn&&nn&&Ve.createElement("div",{className:fe.introduceNoData,onClick:()=>{Cn(!0)}},Ve.createElement("div",{className:fe.introduceAdd},Ve.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),Ve.createElement("div",{className:fe.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!ln&&Gn&&Ve.createElement("div",{className:fe.introduceContent},Ve.createElement("div",{className:fe.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",nn&&Ve.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{Cn(!0)}})),Ve.createElement("div",{className:fe.introContentWrap},Ve.createElement("div",null,Ve.createElement("div",{ref:un,style:Xt>0?{height:Xt===1?80:"auto",overflow:Xt===1?"hidden":"auto"}:{paddingRight:0}},Ve.createElement("div",{ref:fn},Ve.createElement(ee.Z,{value:Gn,style:{fontSize:"14px"}}))),!!Xt&&Ve.createElement(et.Fragment,null,Xt===1?Ve.createElement("div",{onClick:()=>{Rt(2)},className:fe.action},"\u5C55\u5F00",Ve.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):Ve.createElement("div",{onClick:()=>{Rt(1)},className:fe.action},"\u6536\u8D77",Ve.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),ln&&Ve.createElement("div",{style:{marginTop:"30px"}},Ve.createElement(z.Z,{watch:!0,onChange:ur=>{kn(ur)},defaultValue:$t,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),Ve.createElement("div",{className:fe.introduceButton},Ve.createElement("div",{className:fe.close,onClick:ur=>{ur.stopPropagation(),Cn(!1)}},"\u53D6\u6D88"),Ve.createElement("div",{className:fe.submit,onClick:ur=>{ur.stopPropagation(),(0,pe.R2)({id:Tt==null?void 0:Tt.id,introduce:$t}).then(vn=>{(vn==null?void 0:vn.status)==0&&(we.ZP.success("\u64CD\u4F5C\u6210\u529F"),Cn(!1),qt(!0))})}},"\u786E\u8BA4"))),Ve.createElement("div",{className:fe.fileTable},Ve.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),nn&&Ve.createElement("div",{className:fe.addBtn,onClick:()=>{xn(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),Ve.createElement(Pe.default,{dataSource:ar==null?void 0:ar.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=>Ve.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)=>Ve.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>ft(void 0,null,function*(){var cr;((0,_e.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(wt({},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:nn?130:60,render:(ur,vn,cr)=>Ve.createElement("span",{style:{color:"#3061D0"}},Ve.createElement("div",{style:{display:"flex"}},Ve.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>ft(void 0,null,function*(){yield(0,Ie.Nd)(vn.title,vn==null?void 0:vn.download_url),yield(0,pe.SG)({id:vn==null?void 0:vn.id}),qt()})},"\u4E0B\u8F7D"),nn&&Ve.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var wn,zr,$i,Mi;let yo=(zr=vn==null?void 0:vn.title)==null?void 0:zr.substring(((wn=vn==null?void 0:vn.title)==null?void 0:wn.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}),ve.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:Ve.createElement("div",null,Ve.createElement(ae.default,{form:Wn,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},Ve.createElement(ae.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},Ve.createElement(re.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:Ve.createElement("span",null,".",yo)})),Ve.createElement(ae.default.Item,{label:"\u5907\u6CE8",name:"description"},Ve.createElement(Oe.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:Tt==null?void 0:Tt.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"),qt())})})})}},"\u7F16\u8F91"),nn&&Ve.createElement("div",{style:{color:"#9096A3",cursor:"pointer"},onClick:()=>{ve.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(wn=>{(wn==null?void 0:wn.status)==0&&(we.ZP.success("\u5220\u9664\u6210\u529F"),Li({type:"user/getUserInfo"}),qt(!0))})})})}},"\u5220\u9664")))}]}),Ve.createElement(ve.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 wn;return{attachment_id:(wn=cr.response)==null?void 0:wn.attachment_id,description:An}});if(lr.length===0){we.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}Sn(!0);const vn=yield(0,Le.ZP)(`/api/data_sets/${Tt==null?void 0:Tt.id}/upload_attachments.json`,{method:"post",body:{attachments:ur}});(vn==null?void 0:vn.status)==0&&(we.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),qt(),xn(!1),Li({type:"user/getUserInfo"})),Sn(!1)}),onCancel:()=>{if(Fn){ve.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:()=>{xn(!1)}});return}xn(!1)},afterClose:()=>{on([]),Nn(""),Sn(!1),Rr()}},Ve.createElement("div",{className:fe.wrap},Ve.createElement("div",{className:"mb10"},Ve.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",Ve.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC72GB)")),Ve.createElement("div",null,Ve.createElement(le.default.Dragger,xt(wt({},Kr),{height:300}),Ve.createElement("div",null,Ve.createElement("i",{className:`iconfont icon-shangchuan font50 ${fe.colorBlue}`})),Ve.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",Ve.createElement("span",{className:`${fe.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),Ve.createElement("div",{className:fe.box},lr.map(ur=>Ve.createElement("div",{key:ur.id,className:fe.row},Ve.createElement("div",{style:{display:"flex",alignItems:"center"}},Ve.createElement("div",{className:fe.icon},ur.status==="done"&&Ve.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),ur.status==="error"&&Ve.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),Ve.createElement("div",{style:{flex:1}},Ve.createElement(je.Z,{title:ur==null?void 0:ur.name},Ve.createElement("div",{style:{width:"100%",color:ur.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,Ie.tP)(ur==null?void 0:ur.name,9))),ur.status==="uploading"&&Ve.createElement(ue.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:ur.percent,showInfo:!1,style:{width:"900px"}}))),Ve.createElement("i",{onClick:()=>ri(ur),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),Ve.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),Ve.createElement("div",null,Ve.createElement(re.default,{allowClear:!0,value:An,onChange:ur=>{Nn(ur.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))),Ve.createElement(ve.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:zn,title:"\u4E0B\u8F7D\u4FE1\u606F",width:"730px",onCancel:()=>{xr(!1)},footer:null},Ve.createElement("div",null,Ve.createElement(Pe.default,{dataSource:mn,scroll:{y:47*6},className:"mt10 mb10",loading:Qr,pagination:{total:bn||0,onChange:(ur,vn)=>ft(void 0,null,function*(){sr.page=ur,sr.limit=vn,Sr(wt({},sr)),yield mr()}),onShowSizeChange:(ur,vn)=>ft(void 0,null,function*(){sr.page=1,sr.limit=vn,Sr(wt({},sr)),yield mr()}),current:sr==null?void 0:sr.page,pageSize:sr==null?void 0:sr.limit,showTotal:ur=>Ve.createElement(Ve.Fragment,null,"\u5171",Ve.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=>Ve.createElement("span",null,ur||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:ur=>Ve.createElement("span",null,ur||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:ur=>Ve.createElement("span",null,ur||"--")},{title:"\u67E5\u770B\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:ur=>Ve.createElement("span",{style:{color:"#666666"}},ur?Ce()(ur).format("YYYY-MM-DD"):"--")}]}))))};var yt=(0,Mt.connect)(({polls:pr,loading:Pr,user:jr,globalSetting:Li})=>({polls:pr,globalSetting:Li,user:jr,loading:Pr.effects}))(mt),It=Ge(26227),kt=Ge(95237),Ut=Ge(43604),Pt=Ge(3113),Ct={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"},st=Ge(67508),bt=Ge(59301),at=Object.defineProperty,ct=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Ue=(pr,Pr,jr)=>Pr in pr?at(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:jr}):pr[Pr]=jr,$e=(pr,Pr)=>{for(var jr in Pr||(Pr={}))nt.call(Pr,jr)&&Ue(pr,jr,Pr[jr]);if(vt)for(var jr of vt(Pr))Xe.call(Pr,jr)&&Ue(pr,jr,Pr[jr]);return pr},tt=(pr,Pr)=>ct(pr,Lt(Pr)),We=(pr,Pr,jr)=>new Promise((Li,nr)=>{var ar=Tt=>{try{qt(jr.next(Tt))}catch(ln){nr(ln)}},nn=Tt=>{try{qt(jr.throw(Tt))}catch(ln){nr(ln)}},qt=Tt=>Tt.done?Li(Tt.value):Promise.resolve(Tt.value).then(ar,nn);qt((jr=jr.apply(pr,Pr)).next())});Ce().locale("ZH-cn");function Be({user:pr,vlist:Pr=[],dispatch:jr,params:Li,id:nr,memo_replies:ar,forumsDetail:nn}){return bt.createElement("aside",{className:Ct.comment},Pr.map(function(qt,Tt){var ln,Cn;return bt.createElement(kt.Z,{key:Tt,className:Ct.commentItem},bt.createElement(Ut.Z,{span:24},bt.createElement(kt.Z,null,bt.createElement(Ut.Z,{flex:"1"},bt.createElement("a",{href:`/users/${qt.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},qt==null?void 0:qt.username),bt.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},qt.time)),(qt.can_delete||qt.user_id===((ln=pr.userInfo)==null?void 0:ln.user_id)||qt.user_login===((Cn=pr.userInfo)==null?void 0:Cn.login))&&bt.createElement(Ut.Z,{className:"forums-comment-delete",style:{display:"none"}},bt.createElement(je.Z,{title:"\u5220\u9664"},bt.createElement(It.Z,{className:"current",onClick:()=>{ve.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:bt.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>We(this,null,function*(){const Xt=yield(0,st.sW)({id:qt.id,memo_type:"data_set"}),Rt=ar.find(fn=>fn.id===nr).children.filter(fn=>fn.id!==qt.id);ar.find(fn=>fn.id===nr).children=Rt,jr({type:"forumsDetail/setForumsDetailData",payload:tt($e({},nn.forumsDetailData),{memo_replies:[...ar],memo_type:"data_set"})})})})}}))))),bt.createElement(Ut.Z,null,bt.createElement(ee.Z,{value:qt.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var Te=Be,Ke=Ge(59301),gt=Object.defineProperty,Ze=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Kt=(pr,Pr,jr)=>Pr in pr?gt(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:jr}):pr[Pr]=jr,en=(pr,Pr)=>{for(var jr in Pr||(Pr={}))Yt.call(Pr,jr)&&Kt(pr,jr,Pr[jr]);if(zt)for(var jr of zt(Pr))jt.call(Pr,jr)&&Kt(pr,jr,Pr[jr]);return pr},cn=(pr,Pr)=>Ze(pr,Ot(Pr)),yn=(pr,Pr,jr)=>new Promise((Li,nr)=>{var ar=Tt=>{try{qt(jr.next(Tt))}catch(ln){nr(ln)}},nn=Tt=>{try{qt(jr.throw(Tt))}catch(ln){nr(ln)}},qt=Tt=>Tt.done?Li(Tt.value):Promise.resolve(Tt.value).then(ar,nn);qt((jr=jr.apply(pr,Pr)).next())});Ce().locale("ZH-cn");const On=({user:pr,forumsDetail:Pr,globalSetting:jr,loading:Li,dispatch:nr,handleClick:ar,memoId:nn},qt)=>{const{memo:Tt,memo_replies:ln}=Pr.forumsDetailData||{},Cn=(0,Mt.useParams)(),[Xt,Rt]=(0,et.useState)(""),[fn,un]=(0,et.useState)(""),[Gn,Xn]=(0,et.useState)(-1),[$t,kn]=(0,et.useState)(!1),[Wn,lr]=(0,et.useState)(!1),[on,Mn]=(0,et.useState)(1);(0,et.useEffect)(()=>{kn((Tt==null?void 0:Tt.reply_for_memo_count)>10)},[Tt==null?void 0:Tt.reply_for_memo_count]),(0,et.useEffect)(()=>{nr({type:"forumsDetail/getForumsDetailData",payload:{id:nn,memo_type:"data_set"}})},[]);const an=()=>yn(void 0,null,function*(){var gn;const Sn=on+1;Mn(Sn);const An=yield(0,st.z5)({id:nn,page:Sn,memo_type:"data_set"});An!=null&&An.memo_replies&&(nr({type:"forumsDetail/setForumsDetailData",payload:cn(en({},Pr.forumsDetailData),{memo_replies:[...ln,...An.memo_replies]})}),kn(((gn=An.memo_replies)==null?void 0:gn.length)===10))}),xn=gn=>{var Sn,An,Nn,Fn;return cn(en({},gn),{image_url:(Sn=pr.userInfo)==null?void 0:Sn.image_url,children:[],user_id:(An=pr.userInfo)==null?void 0:An.user_id,user_login:(Nn=pr.userInfo)==null?void 0:Nn.login,username:(Fn=pr.userInfo)==null?void 0:Fn.username,time:`${(0,Ie.li)((new Date().getTime()-new Date(gn.created_at).getTime())/1e3)}\u524D`})};return Ke.createElement("section",{className:Ct.wrap},!!(ln!=null&&ln.length)&&Ke.createElement("aside",{className:Ct.content},Ke.createElement("aside",{className:Ct.replyList},ln==null?void 0:ln.map(function(gn,Sn){var An,Nn,Fn;return Ke.createElement(kt.Z,{gutter:[12,12],key:Sn},Ke.createElement(Ut.Z,{flex:"40px"},Ke.createElement("a",{href:`/users/${gn.user_login}`,target:"_blank"},Ke.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${xe.Z.IMG_SERVER}/images/${gn==null?void 0:gn.image_url}`}))),Ke.createElement(Ut.Z,{flex:"1"},Ke.createElement(kt.Z,{align:"middle",className:Ct.commentParItem},Ke.createElement(Ut.Z,{span:24},Ke.createElement(kt.Z,null,Ke.createElement(Ut.Z,{flex:"1"},Ke.createElement("a",{href:`/users/${gn.user_login}`,target:"_blank"},Ke.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},gn==null?void 0:gn.username)),Ke.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},gn.time)),(gn.can_delete||gn.user_id===((An=pr.userInfo)==null?void 0:An.user_id)||gn.user_login===((Nn=pr.userInfo)==null?void 0:Nn.login))&&Ke.createElement(Ut.Z,{className:"forums-comment-par-delete",style:{display:"none"}},Ke.createElement(je.Z,{title:"\u5220\u9664"},Ke.createElement(It.Z,{className:"current",onClick:()=>{ve.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ke.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>yn(this,null,function*(){const zn=yield(0,st.sW)({id:gn.id,memo_type:"data_set"}),xr=ln.filter(mn=>mn.id!==gn.id);nr({type:"forumsDetail/setForumsDetailData",payload:cn(en({},Pr.forumsDetailData),{memo_replies:[...xr],memo_type:"data_set"})})})})}}))))),Ke.createElement(Ut.Z,{span:24,style:{marginTop:"5px"}},Ke.createElement("div",{onClick:ar},Ke.createElement(ee.Z,{value:gn.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((Fn=gn==null?void 0:gn.children)!=null&&Fn.length)&&Ke.createElement(Te,{user:pr,id:gn==null?void 0:gn.id,vlist:gn==null?void 0:gn.children,dispatch:nr,params:Cn,memo_replies:ln,forumsDetail:Pr}),Ke.createElement(Ut.Z,{span:24,className:"mt5 c-light-black"},Gn===Sn?Ke.createElement("aside",null,Ke.createElement(z.Z,{onChange:zn=>{un(zn)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),Ke.createElement(kt.Z,null,Ke.createElement(Ut.Z,{span:24,className:"tr"},Ke.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>yn(this,null,function*(){if(fn==="")we.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const zn=yield(0,st.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(xn(zn)),nr({type:"forumsDetail/setForumsDetailData",payload:cn(en({},Pr.forumsDetailData),{memo:cn(en({},Tt),{reply_for_memo_count:(Tt==null?void 0:Tt.reply_for_memo_count)+1}),memo_replies:[...ln],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):Ke.createElement("div",{className:"tr",style:{textAlign:"left"}},Ke.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>Xn(Sn)}),Ke.createElement(je.Z,{title:gn.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},Ke.createElement("span",{className:gn.user_praise?"c-orange":"c-gery-888"},Ke.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>yn(this,null,function*(){const zn=yield(0,st.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:cn(en({},Pr.forumsDetailData),{memo_replies:[...ln],memo_type:"data_set"})}))})}),gn.praise_count>0?gn.praise_count:"")))))))}))),$t&&Ke.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},Ke.createElement(kt.Z,{justify:"space-between"},Ke.createElement(Ut.Z,null),Ke.createElement(Ut.Z,null,$t&&Ke.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:an},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",Ke.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),Ke.createElement("aside",{className:Ct.reply},Ke.createElement(z.Z,{onBlur:()=>lr(!1),isFocus:Wn,defaultValue:Xt,id:"writeForumsReviewId",onChange:gn=>{Rt(gn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),Ke.createElement(kt.Z,null,Ke.createElement(Ut.Z,{flex:"1"}),Ke.createElement(Ut.Z,null,Ke.createElement("div",{className:Ct.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>yn(void 0,null,function*(){if(Xt==="")we.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const gn=yield(0,st.ts)({parent_id:Tt==null?void 0:Tt.id,content:Xt,memo_type:"data_set"});Rt(null),gn&&nr({type:"forumsDetail/setForumsDetailData",payload:cn(en({},Pr.forumsDetailData),{memo:cn(en({},Tt),{reply_for_memo_count:(Tt==null?void 0:Tt.reply_for_memo_count)+1}),memo_replies:[xn(gn),...ln],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var or=(0,Mt.connect)(({user:pr,forumsDetail:Pr,loading:jr,globalSetting:Li})=>({user:pr,forumsDetail:Pr,globalSetting:Li,loading:jr.models.forumsDetail}),null,null,{forwardRef:!0})((0,et.forwardRef)(On)),er=Ge(85057),Tr=Ge(19683),Kn=Ge(59301),Nr=Object.defineProperty,kr=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,Mr=(pr,Pr,jr)=>Pr in pr?Nr(pr,Pr,{enumerable:!0,configurable:!0,writable:!0,value:jr}):pr[Pr]=jr,di=(pr,Pr)=>{for(var jr in Pr||(Pr={}))Ur.call(Pr,jr)&&Mr(pr,jr,Pr[jr]);if(kr)for(var jr of kr(Pr))Jr.call(Pr,jr)&&Mr(pr,jr,Pr[jr]);return pr},Dr=(pr,Pr,jr)=>new Promise((Li,nr)=>{var ar=Tt=>{try{qt(jr.next(Tt))}catch(ln){nr(ln)}},nn=Tt=>{try{qt(jr.throw(Tt))}catch(ln){nr(ln)}},qt=Tt=>Tt.done?Li(Tt.value):Promise.resolve(Tt.value).then(ar,nn);qt((jr=jr.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:jr,dispatch:Li,user:nr})=>{var ar,nn,qt;const Tt=(0,Mt.useParams)(),[ln]=(0,Mt.useSearchParams)(),[Cn,Xt]=(0,et.useState)(!1),[Rt,fn]=(0,et.useState)(1),[un,Gn]=(0,et.useState)(null),[Xn,$t]=(0,et.useState)(""),[kn,Wn]=(0,et.useState)(),[lr,on]=(0,et.useState)(1),[Mn,an]=(0,et.useState)(1),xn=(0,et.useRef)([]),[gn,Sn]=(0,et.useState)([]),[An,Nn]=(0,et.useState)(!1),[Fn,zn]=(0,et.useState)(!1),[xr,mn]=(0,et.useState)(!1),[Fr,Qr]=(0,et.useState)([]),[Br,bn]=(0,et.useState)(!1),[Jn,sr]=(0,et.useState)(0),[Sr,mr]=(0,et.useState)({page:1,limit:10}),Kr=()=>Dr(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&&(Qr(cr==null?void 0:cr.data),sr(cr==null?void 0:cr.total_count),bn(!1))});(0,et.useEffect)(()=>{br(),(0,Le.ZP)("/api/teach_group_shares.json",{method:"get"}).then(cr=>{(cr==null?void 0:cr.status)==0&&Sn(cr==null?void 0:cr.groups)})},[]),(0,et.useEffect)(()=>{Rt==2&&Rr()},[Rt,lr]);const ri=(cr,wn)=>(cr=Math.max(cr,0),wn=Math.max(wn,1),Math.ceil(cr/wn)),Rr=()=>{(0,pe.Ce)({id:Tt==null?void 0:Tt.id,page:lr,limit:16}).then(cr=>{var wn,zr;(cr==null?void 0:cr.status)==0&&(Wn((wn=cr==null?void 0:cr.data)==null?void 0:wn.shixuns),an(ri((zr=cr==null?void 0:cr.data)==null?void 0:zr.count,16)))})},br=(cr=!1)=>{zn(!0),(0,pe.Ru)(Tt==null?void 0:Tt.id).then(wn=>{var zr,$i;(wn==null?void 0:wn.status)==0&&(Gn(wn==null?void 0:wn.data),Xt((0,_e.Ny)()||((zr=wn==null?void 0:wn.data)==null?void 0:zr.is_creator)),xn.current=($i=wn==null?void 0:wn.data)==null?void 0:$i.share_group_ids,cr&&$t(new Date),zn(!1))})},ur=()=>{Nn(!1)},vn=()=>{br(),Nn(!1)};return Kn.createElement(oe.Z,{spinning:Fn},Kn.createElement("section",{className:me.bg},un&&Kn.createElement(Kn.Fragment,null,Kn.createElement("div",{className:"edu-container"},Kn.createElement("aside",{className:"mt10"},Kn.createElement(ze.Z,{separator:">"},Kn.createElement(ze.Z.Item,null,Kn.createElement(Mt.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),Kn.createElement(ze.Z.Item,null,Kn.createElement(Mt.Link,{to:`/dataset?tabId=${ln.get("tabId")}`},ot[ln.get("tabId")])),Kn.createElement(ze.Z.Item,null,un==null?void 0:un.title))),Kn.createElement("aside",{className:me.wrap},Kn.createElement("div",{className:me.leftContent,style:{width:Cn?"78%":"87%"}},Kn.createElement("div",{className:me.header},Kn.createElement("div",{className:me.headerBack,onClick:()=>{Mt.history.push(`/dataset?tabId=${ln.get("tabId")}`)}},Kn.createElement("i",{className:"iconfont icon-fanhui4 ",style:{fontSize:"10px",margin:"0 3px 0 5px"}}),"\u8FD4\u56DE"),Kn.createElement("div",{className:me.title},un==null?void 0:un.title),Kn.createElement("div",{className:me.time},un==null?void 0:un.create_at)),Kn.createElement("div",{className:me.introduction},un==null?void 0:un.desc),Kn.createElement("div",{className:me.bottom},((ar=un==null?void 0:un.user_info)==null?void 0:ar.image_url)&&Kn.createElement("img",{className:me.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${xe.Z.IMG_SERVER}/images/${(nn=un==null?void 0:un.user_info)==null?void 0:nn.image_url}`}),Kn.createElement("div",{className:me.user_name},un==null?void 0:un.user_info_name),(qt=un==null?void 0:un.data_set_tags)==null?void 0:qt.map((cr,wn)=>{var zr;return wn<3?Kn.createElement("div",{key:wn,className:me.tags_name},cr==null?void 0:cr.tag_name):wn==3?Kn.createElement(je.Z,{key:wn,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("")},Kn.createElement("div",{key:wn,className:me.tags_name},"...")):null}),Kn.createElement("div",{className:me.buttonList},Kn.createElement(je.Z,{title:`\u5F15\u7528\u6570\uFF1A${un==null?void 0:un.used_count}`},Kn.createElement("div",{className:`${me.buttonItem} current`},Kn.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),un==null?void 0:un.used_count)),Kn.createElement(je.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${un==null?void 0:un.visited_count}`},Kn.createElement("div",{className:`${me.buttonItem} current`,onClick:()=>Dr(void 0,null,function*(){var cr;((0,_e.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 Kr())})},Kn.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),un==null?void 0:un.visited_count)),Kn.createElement(je.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${un==null?void 0:un.comment_count}`},Kn.createElement("div",{className:`${me.buttonItem} current`},Kn.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),un==null?void 0:un.comment_count))))),Kn.createElement("div",{className:me.rightContent,style:{width:Cn?"22%":"13%"}},Cn?Kn.createElement("div",{style:{display:"flex",marginLeft:"auto"}},Kn.createElement("div",{className:me.share,onClick:()=>Dr(void 0,null,function*(){ve.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:Kn.createElement("div",{className:`font14 ${me.overflow}`},Kn.createElement("div",{className:me.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"),Kn.createElement(ce.default.Group,{style:{marginTop:"10px"},defaultValue:un==null?void 0:un.share_group_ids,onChange:cr=>{xn.current=cr}},gn==null?void 0:gn.map(cr=>Kn.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:xn.current}).then(cr=>{(cr==null?void 0:cr.status)==0&&(we.ZP.success("\u5171\u4EAB\u6210\u529F"),br())})}})})},"\u5171\u4EAB"),Kn.createElement("div",{className:me.publicStyle,onClick:()=>{ve.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:()=>Dr(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(wn=>{(wn==null?void 0:wn.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"),Kn.createElement(Me.Z,{menu:{items:[{label:Kn.createElement("div",null,"\u7F16\u8F91"),key:"4",onClick:()=>{Nn(!0)}},{label:Kn.createElement("div",{onClick:()=>{ve.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 Dr(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"),Mt.history.push("/dataset"))})})}})}},"\u5220\u9664"),key:"5"}]}},Kn.createElement("div",{className:me.more},Kn.createElement("i",{className:"iconfont icon-gengduo6 font12"})))):Kn.createElement("div",{className:un!=null&&un.current_user_is_collect?me.collectActiveStyle:me.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(wn=>{(wn==null?void 0:wn.status)===0&&br()})}},Kn.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",un==null?void 0:un.collect_count))),Kn.createElement("div",{className:me.content},Kn.createElement("div",{style:{display:"flex",alignItems:"center"}},Kn.createElement(Se.ZP.Group,{className:me.addTypeRadio,optionType:"button",options:[{label:"\u8BE6\u60C5",value:1},{label:"\u5B9E\u8DF5\u9879\u76EE",value:2},{label:"\u8BA8\u8BBA",value:3}],onChange:cr=>{var wn;fn((wn=cr==null?void 0:cr.target)==null?void 0:wn.value)},value:Rt}),Kn.createElement("div",{className:me.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${Tt==null?void 0:Tt.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),Rt==1&&Kn.createElement(yt,{dataSetInfo:un,getInfo:br,key:Xn,indexType:Cn}),Rt==2&&Kn.createElement("div",null,Kn.createElement("div",{className:me.shixunTooltip},Kn.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"),Kn.createElement(er.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&&Kn.createElement("div",{className:me.pageStyle},Kn.createElement("div",{className:lr==1?me.pageUnCan:me.pageCan,style:{marginRight:"10px"},onClick:()=>{lr>1&&on(lr-1)}},"\u4E0A\u4E00\u9875"),Kn.createElement("div",{className:lr==Mn?me.pageUnCan:me.pageCan,style:{marginLeft:"10px"},onClick:()=>{lr<Mn&&on(lr+1)}},"\u4E0B\u4E00\u9875"))),Rt==3&&Kn.createElement(or,{memoId:un==null?void 0:un.memo_id})))),Kn.createElement(Tr.Z,{dataSetInfo:un,visible:An,onClose:ur,onSuccess:vn}),Kn.createElement(ve.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:xr,title:"\u6D4F\u89C8\u4FE1\u606F",width:"730px",onCancel:()=>{mn(!1)},footer:null},Kn.createElement("div",null,Kn.createElement(Pe.default,{dataSource:Fr,loading:Br,className:"mt10 mb10",scroll:{y:47*6},pagination:{total:Jn||0,onChange:(cr,wn)=>{Sr.page=cr,Sr.limit=wn,mr(di({},Sr)),Kr()},current:Sr==null?void 0:Sr.page,pageSize:Sr==null?void 0:Sr.limit,showTotal:cr=>Kn.createElement(Kn.Fragment,null,"\u5171",Kn.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=>Kn.createElement("span",null,cr||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:cr=>Kn.createElement("span",null,cr||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:cr=>Kn.createElement("span",null,cr||"--")},{title:"\u67E5\u770B\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:cr=>Kn.createElement("span",{style:{color:"#666666"}},cr?Ce()(cr).format("YYYY-MM-DD"):"--")}]})))))};var xi=(0,Mt.connect)(({polls:pr,loading:Pr,user:jr,globalSetting:Li})=>({polls:pr,globalSetting:Li,user:jr,loading:Pr.effects}))(Ci)},56210:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Pe}});var et=Ge(59301),Mt=Ge(89070),oe=Ge(57809),ze=Ge(71418),je=Ge(8591),ve={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=Ge(37904),we=Ge(59301),Me=(me,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(me,xe)).next())});const Se=({user:me,width:xe,selectWidth:fe,tags:z,getDataSet:ee,placeholder:ae="\u5168\u90E8\u6807\u7B7E",isTagsValue:re=!1})=>{const[le,ue]=(0,et.useState)([]),[pe,be]=(0,et.useState)([]),[Ce,Ie]=(0,et.useState)(!1),Oe=(0,et.useRef)(null);(0,et.useEffect)(()=>{Le()},[]);const Le=()=>Me(void 0,null,function*(){Ie(!0),yield(0,ce.bj)({}).then(De=>{(De==null?void 0:De.status)==0&&ue(De==null?void 0:De.data)}),Ie(!1)}),Ne=z==null?void 0:z.map(De=>De.tag_name).join("\u3001");return we.createElement(oe.default,{onFocus:()=>{be(z)},ref:Oe,style:{width:fe?fe+"px":300},placeholder:(z==null?void 0:z.length)>0?re?we.createElement("span",{className:"c-grey-333"},Ne):`\u5DF2\u9009\u4E2D${z==null?void 0:z.length}\u4E2A\u6807\u7B7E`:ae,size:"large",dropdownStyle:{width:xe+"px",zIndex:1e3},className:ve.selectStyle,dropdownRender:()=>we.createElement("div",{className:ve.selectList,style:{width:xe+"px"}},we.createElement("div",{className:ve.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),we.createElement(ze.Z,{spinning:Ce},we.createElement("div",{className:ve.selectContent},le==null?void 0:le.map((De,Re)=>{var Je;return we.createElement("aside",{key:Re},we.createElement("div",{className:ve.contentTitle,style:{marginTop:Re>0?"20px":"0"}},De==null?void 0:De.tag_type_cn),we.createElement("div",{className:ve.contentTags},(Je=De==null?void 0:De.child)==null?void 0:Je.map((_e,Ve)=>{var Qe;return we.createElement("div",{key:Ve,className:(Qe=pe==null?void 0:pe.map(ut=>ut==null?void 0:ut.id))!=null&&Qe.includes(_e==null?void 0:_e.id)?ve.tagNameActive:ve.tagName,onClick:()=>{var ut;(ut=pe==null?void 0:pe.map(dt=>dt==null?void 0:dt.id))!=null&&ut.includes(_e==null?void 0:_e.id)?be(pe.filter(dt=>(dt==null?void 0:dt.id)!=(_e==null?void 0:_e.id))):(pe==null?void 0:pe.length)<5?be([...pe,_e]):je.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},_e==null?void 0:_e.tag_name)})))}))),we.createElement("div",{className:ve.activeStyle},we.createElement("div",{className:ve.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),we.createElement("div",{className:ve.activeValue,style:{width:xe-120+"px"}},pe==null?void 0:pe.map((De,Re)=>we.createElement("div",{key:Re,className:ve.activeItem},De==null?void 0:De.tag_name,we.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{be(pe.filter(Je=>(Je==null?void 0:Je.id)!==(De==null?void 0:De.id)))}}))))),we.createElement("div",{style:{display:"flex",marginBottom:"20px"}},we.createElement("div",{className:ve.activeClose,onClick:De=>{De.stopPropagation(),ee([...z]),be([]),setTimeout(()=>{Oe.current&&Oe.current.blur()},10)}},"\u53D6\u6D88"),we.createElement("div",{className:ve.activeSubmit,onClick:De=>{De.stopPropagation(),ee([...pe]),be([]),setTimeout(()=>{Oe.current&&Oe.current.blur()},10)}},"\u786E\u8BA4")))})};var Pe=(0,Mt.connect)(({user:me})=>({user:me}))(Se)},37904:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{A0:function(){return Ce},Ce:function(){return re},Dx:function(){return me},Il:function(){return be},R2:function(){return ae},R9:function(){return z},Ru:function(){return ee},SG:function(){return Oe},To:function(){return Pe},_S:function(){return Se},a6:function(){return xe},bj:function(){return Me},iw:function(){return Ie},l5:function(){return pe},nW:function(){return fe},pP:function(){return ue},pi:function(){return le}});var et=Ge(99064),Mt=Object.defineProperty,oe=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,ve=(Le,Ne,De)=>Ne in Le?Mt(Le,Ne,{enumerable:!0,configurable:!0,writable:!0,value:De}):Le[Ne]=De,ce=(Le,Ne)=>{for(var De in Ne||(Ne={}))ze.call(Ne,De)&&ve(Le,De,Ne[De]);if(oe)for(var De of oe(Ne))je.call(Ne,De)&&ve(Le,De,Ne[De]);return Le},we=(Le,Ne,De)=>new Promise((Re,Je)=>{var _e=ut=>{try{Qe(De.next(ut))}catch(dt){Je(dt)}},Ve=ut=>{try{Qe(De.throw(ut))}catch(dt){Je(dt)}},Qe=ut=>ut.done?Re(ut.value):Promise.resolve(ut.value).then(_e,Ve);Qe((De=De.apply(Le,Ne)).next())});function Me(Le){return we(this,null,function*(){return(0,et.ZP)("/api/data_sets/tags.json",{method:"get",params:ce({},Le)})})}function Se(Le){return we(this,null,function*(){return(0,et.ZP)("/api/data_sets.json",{method:"get",params:ce({},Le)})})}function Pe(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/data_sets/${Le}/apply_public.json`,{method:"post"})})}function me(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/data_sets/${Le}/revoke_apply_public.json`,{method:"post"})})}function xe(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/data_sets/${Le}/cancel_public.json`,{method:"post"})})}function fe(Le){return we(this,null,function*(){return(0,et.ZP)("/api/collections.json",{method:"post",body:ce({},Le)})})}function z(Le){return we(this,null,function*(){return(0,et.ZP)("/api/collections/cancel.json",{method:"delete",body:ce({},Le)})})}function ee(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/data_sets/${Le}.json`,{method:"get"})})}function ae(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/data_sets/${Le==null?void 0:Le.id}/edit_introduce.json`,{method:"put",body:ce({},Le)})})}function re(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/data_sets/${Le==null?void 0:Le.id}/used_shixuns.json`,{method:"get",params:ce({},Le)})})}function le(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/shixuns/${Le}/data_sets_list.json`,{method:"get"})})}function ue(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/data_sets/${Le}/delete.json`,{method:"delete"})})}function pe(Le){return we(this,null,function*(){return(0,et.ZP)("/api/teach_group_shares.json",{method:"post",body:ce({},Le)})})}function be(Le){return we(this,null,function*(){return(0,et.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:ce({},Le)})})}function Ce(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/data_sets/${Le==null?void 0:Le.id}/edit_file_info.json`,{method:"put",body:ce({},Le)})})}function Ie(Le){return we(this,null,function*(){return(0,et.ZP)("/api/visit_logs.json",{method:"get",params:ce({},Le)})})}function Oe(Le){return we(this,null,function*(){return(0,et.ZP)(`/api/attachments/${Le==null?void 0:Le.id}/update_download.json`,{method:"get"})})}},24768:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{AL:function(){return pe},Iy:function(){return Pe},Qv:function(){return fe},ez:function(){return ue},jb:function(){return me}});var et=Ge(32834),Mt=Ge.n(et),oe=Ge(11690),ze=Ge.n(oe);let je=1;function ve(Le,Ne){const De=Le.match(/^(\s+)(?:```)/);if(De===null)return Ne;const Re=De[1];return Ne.split(`
|
|
|
`).map(Je=>{const _e=Je.match(/^\s+/);if(_e===null)return Je;const[Ve]=_e;return Ve.length>=Re.length?Je.slice(Re.length):Je}).join(`
|
|
|
`)}let ce=[],we=["<ul>"];const Me=new(Mt()).Renderer,Se=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Pe(){ce.length=0,we=["<ul>"]}const me={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function xe(Le,Ne,De,Re){if(Ne>=Le.length||Le[Ne].level<=De)return Ne;var Je=Le[Ne];Re.push("<li><a href='#"+je+Je.anchor+"'>"+Je.text+"</a>"),Ne++;var _e=[];return Ne=xe(Le,Ne,Je.level,_e),_e.length>0&&(Re.push("<ul>"),_e.forEach(function(Ve){Re.push(Ve)}),Re.push("</ul>")),Re.push("</li>"),Ne=xe(Le,Ne,De,Re),Ne}function fe(){return xe(ce,0,0,we),we.push("</ul>"),we.join("")}const z={heading(Le){const Ne=Se.exec(Le);if(je+=1,Ne)return{type:"heading",raw:Ne[0],depth:Ne[1].length,text:Ne[2]}},fences(Le){const Ne=this.rules.block.fences.exec(Le);if(Ne){const De=Ne[0];let Re=ve(De,Ne[3]||"");const Je=Ne[2]?Ne[2].trim():Ne[2];if(["latex","katex","math"].indexOf(Je)>=0){const _e=re(),Ve=Re;Re=_e,le[_e]={type:"block",expression:Ve}}return{type:"code",raw:De,lang:Je,text:Re}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ae=0;const re=()=>`__special_katext_id_${ae++}__`;let le={};function ue(){return le}function pe(){ae=0,le={}}function be(Le){return Le=Le.replace(ee,(Ne,De)=>{const Re=re();return le[Re]={type:"inline",expression:De},Re}),Le}const Ce=Me.listitem;Me.listitem=function(Le){return Ce(be(Le))};const Ie=Me.paragraph;Me.paragraph=function(Le){return Ie(be(Le))};const Oe=Me.tablecell;Me.tablecell=function(Le,Ne){return Oe(be(Le),Ne)},Me.code=function(Le,Ne,De){const Re=(Ne||"").match(/\S*/)[0];return Re?["latex","katex","math"].indexOf(Re)>=0?`<p class='editormd-tex'>${Le}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ne}">${De?Le:(0,oe.escape)(Le,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(De?Le:(0,oe.escape)(Le,!0))+"</code></pre>"},Me.heading=function(Le,Ne,De){let Re=this.options.headerPrefix+De.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ce.push({anchor:Re,level:Ne,text:Le}),"<h"+Ne+' id="'+je+Re+'">'+Le+"</h"+Ne+">"},Mt().setOptions({silent:!0,gfm:!0,pedantic:!1}),Mt().use({tokenizer:z,renderer:Me}),Pn.ZP=Mt()},47257:function(_n){(function(Pn){(function(Ge){if(1)_n.exports=Ge();else var et})(function(){var Ge,et,Mt;return function(){function oe(ze,je,ve){function ce(Se,Pe){if(!je[Se]){if(!ze[Se]){var me=void 0;if(!Pe&&me)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=je[Se]={exports:{}};ze[Se][0].call(fe.exports,function(z){var ee=ze[Se][1][z];return ce(ee||z)},fe,fe.exports,oe,ze,je,ve)}return je[Se].exports}for(var we=void 0,Me=0;Me<ve.length;Me++)ce(ve[Me]);return ce}return oe}()({1:[function(oe,ze,je){"use strict";var ve=oe("./browser/client");ve.Buffer=oe("buffer").Buffer,ve.urllib=oe("../shims/xhr"),ve.version=oe("./browser/version").version,ze.exports=ve},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.slice.js");var Me=oe("assert"),Se=oe("../common/utils/checkBucketName"),Pe=Se.checkBucketName,me=je;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]:[]}me.useBucket=function(ee){return Pe(ee),this.options.bucket=ee,this},me.setBucket=function(ee){return Pe(ee),this.options.bucket=ee,this},me.getBucket=function(){return this.options.bucket},me.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}(),me.putBucketACL=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le,ue){var pe,be;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],Ie.next=5,this.request(pe);case 5:return be=Ie.sent,Ie.abrupt("return",{bucket:be.headers.location&&be.headers.location.substring(1)||null,res:be.res});case 7:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.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}(),me.putBucketLogging=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le,ue){var pe,be,Ce;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.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],Oe.next=9,this.request(pe);case 9:return Ce=Oe.sent,Oe.abrupt("return",{res:Ce.res});case 11:case"end":return Oe.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketLogging=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe,be;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ie.next=5,this.request(ue);case 5:return pe=Ie.sent,be=pe.data.LoggingEnabled,Ie.abrupt("return",{enable:!!be,prefix:be&&be.TargetPrefix||null,res:pe.res});case 8:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.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}(),me.putBucketCORS=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le,ue){var pe,be,Ce,Ie,Oe,Le,Ne,De,Re,Je;return ce.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:for(le=le||[],Me(le.length,"rules is required"),le.forEach(function(Qe){Me(Qe.allowedOrigin,"allowedOrigin is required"),Me(Qe.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),be=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,Ce=function(ut){be+="<AllowedOrigin>".concat(ut,"</AllowedOrigin>")},Ie=function(ut){be+="<AllowedMethod>".concat(ut,"</AllowedMethod>")},Oe=function(ut){be+="<AllowedHeader>".concat(ut,"</AllowedHeader>")},Le=function(ut){be+="<ExposeHeader>".concat(ut,"</ExposeHeader>")},Ne=0,De=le.length;Ne<De;Ne++)Re=le[Ne],be+="<CORSRule>",fe(Re.allowedOrigin).forEach(Ce),fe(Re.allowedMethod).forEach(Ie),fe(Re.allowedHeader).forEach(Oe),fe(Re.exposeHeader).forEach(Le),Re.maxAgeSeconds&&(be+="<MaxAgeSeconds>".concat(Re.maxAgeSeconds,"</MaxAgeSeconds>")),be+="</CORSRule>";return be+="</CORSConfiguration>",pe.content=be,pe.mime="xml",pe.successStatuses=[200],Ve.next=16,this.request(pe);case 16:return Je=Ve.sent,Ve.abrupt("return",{res:Je.res});case 18:case"end":return Ve.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketCORS=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe,be,Ce;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ue=this._bucketRequestParams("GET",re,"cors",le),ue.successStatuses=[200],ue.xmlResponse=!0,Oe.next=5,this.request(ue);case 5:return pe=Oe.sent,be=[],pe.data&&pe.data.CORSRule&&(Ce=pe.data.CORSRule,xe(Ce)||(Ce=[Ce]),Ce.forEach(function(Le){var Ne={};Object.keys(Le).forEach(function(De){Ne[De.slice(0,1).toLowerCase()+De.slice(1,De.length)]=Le[De]}),be.push(Ne)})),Oe.abrupt("return",{rules:be,res:pe.res});case 9:case"end":return Oe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.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}(),me.putBucketReferer=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le,ue,pe){var be,Ce,Ie,Oe;return ce.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.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>
|
|
|
`,Ie=0;Ie<ue.length;Ie++)Ce+=" <Referer>".concat(ue[Ie],`</Referer>
|
|
|
`);Ce+=` </RefererList>
|
|
|
`}else Ce+=` <RefererList />
|
|
|
`;return Ce+="</RefererConfiguration>",be.content=Ce,be.mime="xml",be.successStatuses=[200],Ne.next=10,this.request(be);case 10:return Oe=Ne.sent,Ne.abrupt("return",{res:Oe.res});case 12:case"end":return Ne.stop()}},ae,this)}));function ee(ae,re,le,ue){return z.apply(this,arguments)}return ee}(),me.getBucketReferer=function(){var z=(0,we.default)(ce.default.mark(function ae(re,le){var ue,pe,be;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ie.next=5,this.request(ue);case 5:return pe=Ie.sent,be=pe.data.RefererList.Referer||null,be&&(xe(be)||(be=[be])),Ie.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:be,res:pe.res});case 9:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.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}(),me._bucketRequestParams=function(ee,ae,re,le){return{method:ee,bucket:ae,subres:re,timeout:le&&le.timeout,ctx:le&&le.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(oe,ze,je){(function(ve,ce){(function(){"use strict";var we=oe("@babel/runtime/helpers/interopRequireDefault"),Me=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 Pe=oe("debug")("ali-oss"),me=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,Ie=oe("../common/utils/encoder"),Oe=Ie.encoder,Le=oe("../common/client/getReqUrl"),Ne=Le.getReqUrl,De=oe("../common/utils/setSTSToken"),Re=De.setSTSToken,Je=oe("../common/utils/retry"),_e=Je.retry,Ve=oe("../common/utils/isFunction"),Qe=Ve.isFunction,ut=new xe;function dt(){var xt=z.name,ft=z.version;xt&&xt.toLowerCase&&xt.toLowerCase()==="ie"&&ft.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function St(){return location&&location.protocol==="https:"}function qe(xt,ft){if(dt(),!(this instanceof qe))return new qe(xt,ft);xt&&xt.inited?this.options=xt:this.options=qe.initOptions(xt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||ut),this.ctx=ft,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}ze.exports=qe,qe.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 mt=Object.assign({secure:St(),useFetch:!1},ft);return pe(mt)};var it=qe.prototype;it.debug=Pe,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=Ne,it.authorization=function(ft,mt,yt,It){var kt=ue.buildCanonicalString(ft.toUpperCase(),mt,{headers:It,parameters:yt});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,kt,this.options.headerEncoding)},it.request=function(){var xt=(0,Se.default)(Me.default.mark(function ft(mt){var yt=this;return Me.default.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(!this.options.retryMax){kt.next=6;break}return kt.next=3,_e(pt.bind(this),this.options.retryMax,{errorHandler:function(Pt){var Ct=function(bt){if(mt.stream)return!1;var at=[-1,-2].includes(bt.status),ct=yt.options.requestErrorRetryHandle||function(){return!0};return at&&ct(bt)};return!!Ct(Pt)}})(mt);case 3:return kt.abrupt("return",kt.sent);case 6:return kt.abrupt("return",pt.call(this,mt));case 7:case"end":return kt.stop()}},ft,this)}));return function(ft){return xt.apply(this,arguments)}}();function pt(xt){return wt.apply(this,arguments)}function wt(){return wt=(0,Se.default)(Me.default.mark(function xt(ft){var mt,yt,It,kt,Ut,Pt;return Me.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(!(this.options.stsToken&&Qe(this.options.refreshSTSToken))){st.next=3;break}return st.next=3,Re.call(this);case 3:return mt=Ce.call(this,ft),this.options.useFetch||(mt.params.mode="disable-fetch"),kt=!!ft.stream,st.prev=6,st.next=9,this.urllib.request(mt.url,mt.params);case 9:yt=st.sent,this.debug("response %s %s, got %s, headers: %j",ft.method,mt.url,yt.status,yt.headers,"info"),st.next=16;break;case 13:st.prev=13,st.t0=st.catch(6),It=st.t0;case 16:if(!(yt&&ft.successStatuses&&ft.successStatuses.indexOf(yt.status)===-1)){st.next=28;break}return st.next=19,this.requestError(yt);case 19:if(Ut=st.sent,!(Ut.code==="RequestTimeTooSkewed"&&!kt)){st.next=25;break}return this.options.amendTimeSkewed=+new Date(Ut.serverTime)-new Date,st.next=24,this.request(ft);case 24:return st.abrupt("return",st.sent);case 25:Ut.params=ft,st.next=32;break;case 28:if(!It){st.next=32;break}return st.next=31,this.requestError(It);case 31:Ut=st.sent;case 32:if(!Ut){st.next=34;break}throw Ut;case 34:if(!ft.xmlResponse){st.next=39;break}return st.next=37,this.parseXML(yt.data);case 37:Pt=st.sent,yt.data=Pt;case 39:return st.abrupt("return",yt);case 40:case"end":return st.stop()}},xt,this,[[6,13]])})),wt.apply(this,arguments)}it._getResource=function(ft){var mt="/";return ft.bucket&&(mt+="".concat(ft.bucket,"/")),ft.object&&(mt+=Oe(ft.object,this.options.headerEncoding)),mt},it._escape=function(ft){return ee.encodeURIComponent(ft).replace(/%2F/g,"/")},it._getUserAgent=function(){var ft=ce&&ce.browser?"js":"nodejs",mt="aliyun-sdk-".concat(ft,"/").concat(re.version),yt=z.description;return!yt&&ce&&(yt="Node.js ".concat(ce.version.slice(1)," on ").concat(ce.platform," ").concat(ce.arch)),this._checkUserAgent("".concat(mt," ").concat(yt))},it._checkUserAgent=function(ft){var mt=ft.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return mt},it.checkBrowserAndVersion=function(ft,mt){return le.name===ft&&le.version.split(".")[0]===mt},it.parseXML=function(ft){return new Promise(function(mt,yt){ve.isBuffer(ft)&&(ft=ft.toString()),me.parseString(ft,{explicitRoot:!1,explicitArray:!1},function(It,kt){It?yt(It):mt(kt)})})},it.requestError=function(){var xt=(0,Se.default)(Me.default.mark(function mt(yt){var It,kt,Ut,Pt;return Me.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(It=null,!(!yt.data||!yt.data.length)){st.next=5;break}yt.status===-1||yt.status===-2?(It=new Error(yt.message),It.name=yt.name,It.status=yt.status,It.code=yt.name):(yt.status===404?(It=new Error("Object not exists"),It.name="NoSuchKeyError",It.status=404,It.code="NoSuchKey"):yt.status===412?(It=new Error("Pre condition failed"),It.name="PreconditionFailedError",It.status=412,It.code="PreconditionFailed"):(It=new Error("Unknow error, status: ".concat(yt.status)),It.name="UnknownError",It.status=yt.status),It.requestId=yt.headers["x-oss-request-id"],It.host=""),st.next=32;break;case 5:return kt=String(yt.data),this.debug("request response error data: %s",kt,"error"),st.prev=7,st.next=10,this.parseXML(kt);case 10:if(st.t0=st.sent,st.t0){st.next=13;break}st.t0={};case 13:Ut=st.t0,st.next=23;break;case 16:return st.prev=16,st.t1=st.catch(7),this.debug(kt,"error"),st.t1.message+=`
|
|
|
raw xml: `.concat(kt),st.t1.status=yt.status,st.t1.requestId=yt.headers["x-oss-request-id"],st.abrupt("return",st.t1);case 23:Pt=Ut.Message||"unknow request error, status: ".concat(yt.status),Ut.Condition&&(Pt+=" (condition: ".concat(Ut.Condition,")")),It=new Error(Pt),It.name=Ut.Code?"".concat(Ut.Code,"Error"):"UnknownError",It.status=yt.status,It.code=Ut.Code,It.requestId=Ut.RequestId,It.hostId=Ut.HostId,It.serverTime=Ut.ServerTime;case 32:return this.debug("generate error %j",It,"error"),st.abrupt("return",It);case 34:case"end":return st.stop()}},mt,this,[[7,16]])}));function ft(mt){return xt.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,ze,je){(function(ve){(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 Me=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("util"),Pe=oe("path"),me=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=je;ue.multipartUpload=function(){var Oe=(0,Me.default)(we.default.mark(function Ne(De,Re){var Je,_e,Ve,Qe,ut,dt,St,qe,it,pt=arguments;return we.default.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(Je=pt.length>2&&pt[2]!==void 0?pt[2]:{},this.resetCancelFlag(),Je.disabledMD5=Je.disabledMD5===void 0?!0:!!Je.disabledMD5,!(Je.checkpoint&&Je.checkpoint.uploadId)){xt.next=8;break}return Re&&ae(Re)&&(Je.checkpoint.file=Re),xt.next=7,this._resumeMultipart(Je.checkpoint,Je);case 7:return xt.abrupt("return",xt.sent);case 8:return _e=102400,Je.mime||(ae(Re)?Je.mime=me.getType(Pe.extname(Re.name)):z(Re)?Je.mime=Re.type:le(Re)?Je.mime="":Je.mime=me.getType(Pe.extname(Re))),Je.headers=Je.headers||{},this._convertMetaToHeaders(Je.meta,Je.headers),xt.next=14,this._getFileSize(Re);case 14:if(Ve=xt.sent,!(Ve<_e)){xt.next=26;break}return Je.contentLength=Ve,xt.next=19,this.put(De,Re,Je);case 19:if(Qe=xt.sent,!(Je&&Je.progress)){xt.next=23;break}return xt.next=23,Je.progress(1);case 23:return ut={res:Qe.res,bucket:this.options.bucket,name:De,etag:Qe.res.headers.etag},(Je.headers&&Je.headers["x-oss-callback"]||Je.callback)&&(ut.data=Qe.data),xt.abrupt("return",ut);case 26:if(!(Je.partSize&&parseInt(Je.partSize,10)!==Je.partSize)){xt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Je.partSize&&Je.partSize<_e)){xt.next=30;break}throw new Error("partSize must not be smaller than ".concat(_e));case 30:return xt.next=32,this.initMultipartUpload(De,Je);case 32:if(dt=xt.sent,St=dt.uploadId,qe=this._getPartSize(Ve,Je.partSize),it={file:Re,name:De,fileSize:Ve,partSize:qe,uploadId:St,doneParts:[]},!(Je&&Je.progress)){xt.next=39;break}return xt.next=39,Je.progress(0,it,dt.res);case 39:return xt.next=41,this._resumeMultipart(it,Je);case 41:return xt.abrupt("return",xt.sent);case 42:case"end":return xt.stop()}},Ne,this)}));function Le(Ne,De){return Oe.apply(this,arguments)}return Le}(),ue._resumeMultipart=function(){var Oe=(0,Me.default)(we.default.mark(function Ne(De,Re){var Je,_e,Ve,Qe,ut,dt,St,qe,it,pt,wt,xt,ft,mt,yt,It,kt,Ut,Pt;return we.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(Je=this,!this.isCancel()){st.next=3;break}throw this._makeCancelEvent();case 3:return _e=De.file,Ve=De.fileSize,Qe=De.partSize,ut=De.uploadId,dt=De.doneParts,St=De.name,qe=[],dt.length>0&&xe(dt).to(qe),it=this._divideParts(Ve,Qe),pt=it.length,wt=!1,xt=function(at,ct){return new Promise(function(){var Lt=(0,Me.default)(we.default.mark(function vt(nt,Xe){var Ue,$e,tt,We,Be;return we.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Ke.prev=0,at.isCancel()){Ke.next=29;break}return Ue=it[ct-1],Ke.next=5,at._createBuffer(_e,Ue.start,Ue.end);case 5:return $e=Ke.sent,tt={content:$e,size:Ue.end-Ue.start},Ke.prev=7,Ke.next=10,at._uploadPart(St,ut,ct,tt,Re);case 10:We=Ke.sent,Ke.next=18;break;case 13:if(Ke.prev=13,Ke.t0=Ke.catch(7),Ke.t0.status!==404){Ke.next=17;break}throw at._makeAbortEvent();case 17:throw Ke.t0;case 18:if(!(!at.isCancel()&&!wt)){Ke.next=26;break}if(De.doneParts.push({number:ct,etag:We.res.headers.etag}),!Re.progress){Ke.next=23;break}return Ke.next=23,Re.progress(dt.length/(pt+1),De,We.res);case 23:nt({number:ct,etag:We.res.headers.etag}),Ke.next=27;break;case 26:nt();case 27:Ke.next=30;break;case 29:nt();case 30:Ke.next=41;break;case 32:Ke.prev=32,Ke.t1=Ke.catch(0),Be=new Error,Be.name=Ke.t1.name,Be.message=Ke.t1.message,Be.stack=Ke.t1.stack,Be.partNum=ct,xe(Ke.t1).to(Be),Xe(Be);case 41:case"end":return Ke.stop()}},vt,null,[[0,32],[7,13]])}));return function(vt,nt){return Lt.apply(this,arguments)}}())},ft=Array.from(new Array(pt),function(bt,at){return at+1}),mt=qe.map(function(bt){return bt.number}),yt=ft.filter(function(bt){return mt.indexOf(bt)<0}),It=5,kt=Re.parallel||It,st.next=17,this._parallel(yt,kt,function(bt){return new Promise(function(at,ct){xt(Je,bt).then(function(Lt){Lt&&qe.push(Lt),at()}).catch(function(Lt){ct(Lt)})})});case 17:if(Ut=st.sent,wt=!0,Pt=Ut.find(function(bt){return bt.name==="abort"}),!Pt){st.next=22;break}throw Pt;case 22:if(!this.isCancel()){st.next=25;break}throw xt=null,this._makeCancelEvent();case 25:if(!(Ut&&Ut.length>0)){st.next=28;break}throw Ut[0].message="Failed to upload some parts with error: ".concat(Ut[0].toString()," part_num: ").concat(Ut[0].partNum),Ut[0];case 28:return st.next=30,this.completeMultipartUpload(St,ut,qe,Re);case 30:return st.abrupt("return",st.sent);case 31:case"end":return st.stop()}},Ne,this)}));function Le(Ne,De){return Oe.apply(this,arguments)}return Le}(),ue._getFileSize=function(){var Oe=(0,Me.default)(we.default.mark(function Ne(De){return we.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(!le(De)){Je.next=4;break}return Je.abrupt("return",De.length);case 4:if(!(z(De)||ae(De))){Je.next=6;break}return Je.abrupt("return",De.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Je.stop()}},Ne)}));function Le(Ne){return Oe.apply(this,arguments)}return Le}();var pe=oe("stream"),be=pe.Readable;function Ce(Oe,Le){if(!(this instanceof Ce))return new Ce(Oe,Le);be.call(this,Le),this.file=Oe,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}Se.inherits(Ce,be),Ce.prototype.readFileAndPush=function(Le){if(this.fileBuffer)for(var Ne=!0;Ne&&this.fileBuffer&&this.start<this.fileBuffer.length;){var De=this.start,Re=De+Le;Re=Re>this.fileBuffer.length?this.fileBuffer.length:Re,this.start=Re,Ne=this.push(this.fileBuffer.slice(De,Re))}},Ce.prototype._read=function(Le){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 Ne=16*1024;Le=Le||Ne;var De=this;this.reader.onload=function(Je){De.fileBuffer=ve.from(new Uint8Array(Je.target.result)),De.file=null,De.readFileAndPush(Le)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Le)};function Ie(Oe){return Oe.arrayBuffer?Oe.arrayBuffer():new Promise(function(Le,Ne){var De=new FileReader;De.onload=function(Re){Le(Re.target.result)},De.onerror=function(Re){Ne(Re)},De.readAsArrayBuffer(Oe)})}ue._createBuffer=function(){var Oe=(0,Me.default)(we.default.mark(function Ne(De,Re,Je){var _e,Ve;return we.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(!(z(De)||ae(De))){ut.next=8;break}return _e=De.slice(Re,Je),ut.next=4,Ie(_e);case 4:return Ve=ut.sent,ut.abrupt("return",ve.from(Ve));case 8:if(!le(De)){ut.next=12;break}return ut.abrupt("return",De.subarray(Re,Je));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ut.stop()}},Ne)}));function Le(Ne,De,Re){return Oe.apply(this,arguments)}return Le}(),ue._getPartSize=function(Le,Ne){var De=1e4,Re=1*1024*1024;Ne||(Ne=Re);var Je=Math.ceil(Le/De);return Ne<Je&&(Ne=Je,console.warn("partSize has been set to ".concat(Ne,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ne},ue._divideParts=function(Le,Ne){for(var De=Math.ceil(Le/Ne),Re=[],Je=0;Je<De;Je++){var _e=Ne*Je,Ve=Math.min(_e+Ne,Le);Re.push({start:_e,end:Ve})}return Re}}).call(this)}).call(this,oe("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.promise.js");var ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("fs"),Se=oe("copy-to"),Pe=oe("path"),me=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=je;Ce.append=function(){var Ie=(0,we.default)(ce.default.mark(function Le(Ne,De,Re){var Je;return ce.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Re=Re||{},Re.position===void 0&&(Re.position="0"),Re.subres={append:"",position:Re.position},Re.method="POST",Ve.next=6,this.put(Ne,De,Re);case 6:return Je=Ve.sent,Je.nextAppendPosition=Je.res.headers["x-oss-next-append-position"],Ve.abrupt("return",Je);case 9:case"end":return Ve.stop()}},Le,this)}));function Oe(Le,Ne,De){return Ie.apply(this,arguments)}return Oe}(),Ce.put=function(){var Ie=(0,we.default)(ce.default.mark(function Le(Ne,De,Re){var Je,_e,Ve,Qe,ut;return ce.default.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(Re=Re||{},Re.disabledMD5=Re.disabledMD5===void 0?!0:!!Re.disabledMD5,Re.headers=Re.headers||{},Ne=this._objectName(Ne),!ue(De)){St.next=8;break}Je=De,St.next=19;break;case 8:if(!(ee(De)||re(De))){St.next=18;break}return Re.mime||(re(De)?Re.mime=me.getType(Pe.extname(De.name)):Re.mime=De.type),St.next=12,this._createBuffer(De,0,De.size);case 12:return Je=St.sent,St.next=15,this._getFileSize(De);case 15:Re.contentLength=St.sent,St.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Re.meta,Re.headers),_e=Re.method||"PUT",Ve=this._objectRequestParams(_e,Ne,Re),xe.encodeCallback(Ve,Re),Ve.mime=Re.mime,Ve.disabledMD5=Re.disabledMD5,Ve.content=Je,Ve.successStatuses=[200],St.next=29,this.request(Ve);case 29:return Qe=St.sent,ut={name:Ne,url:this._objectUrl(Ne),res:Qe.res},Ve.headers&&Ve.headers["x-oss-callback"]&&(ut.data=JSON.parse(Qe.data.toString())),St.abrupt("return",ut);case 33:case"end":return St.stop()}},Le,this)}));function Oe(Le,Ne,De){return Ie.apply(this,arguments)}return Oe}(),Ce.putStream=function(){var Ie=(0,we.default)(ce.default.mark(function Le(Ne,De,Re){var Je,_e,Ve,Qe;return ce.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Re=Re||{},Re.headers=Re.headers||{},Ne=this._objectName(Ne),Re.contentLength?Re.headers["Content-Length"]=Re.contentLength:Re.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Re.meta,Re.headers),Je=Re.method||"PUT",_e=this._objectRequestParams(Je,Ne,Re),xe.encodeCallback(_e,Re),_e.mime=Re.mime,_e.stream=De,_e.successStatuses=[200],dt.next=13,this.request(_e);case 13:return Ve=dt.sent,Qe={name:Ne,url:this._objectUrl(Ne),res:Ve.res},_e.headers&&_e.headers["x-oss-callback"]&&(Qe.data=JSON.parse(Ve.data.toString())),dt.abrupt("return",Qe);case 17:case"end":return dt.stop()}},Le,this)}));function Oe(Le,Ne,De){return Ie.apply(this,arguments)}return Oe}(),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 Ie=(0,we.default)(ce.default.mark(function Le(Ne,De,Re){var Je;return ce.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,this.copy(Ne,Ne,{meta:De||{},timeout:Re&&Re.timeout,ctx:Re&&Re.ctx});case 2:return Je=Ve.sent,Ve.abrupt("return",Je);case 4:case"end":return Ve.stop()}},Le,this)}));function Oe(Le,Ne,De){return Ie.apply(this,arguments)}return Oe}(),Ce.list=function(){var Ie=(0,we.default)(ce.default.mark(function Le(Ne,De){var Re,Je,_e,Ve,Qe;return ce.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Re=this._objectRequestParams("GET","",De),Re.query=Ne,Re.xmlResponse=!0,Re.successStatuses=[200],dt.next=6,this.request(Re);case 6:return Je=dt.sent,_e=Je.data.Contents||[],Ve=this,_e&&(Array.isArray(_e)||(_e=[_e]),_e=_e.map(function(St){return{name:St.Key,url:Ve._objectUrl(St.Key),lastModified:St.LastModified,etag:St.ETag,type:St.Type,size:Number(St.Size),storageClass:St.StorageClass,owner:{id:St.Owner.ID,displayName:St.Owner.DisplayName}}})),Qe=Je.data.CommonPrefixes||null,Qe&&(Array.isArray(Qe)||(Qe=[Qe]),Qe=Qe.map(function(St){return St.Prefix})),dt.abrupt("return",{res:Je.res,objects:_e,prefixes:Qe,nextMarker:Je.data.NextMarker||null,isTruncated:Je.data.IsTruncated==="true"});case 13:case"end":return dt.stop()}},Le,this)}));function Oe(Le,Ne){return Ie.apply(this,arguments)}return Oe}(),Ce.listV2=function(){var Ie=(0,we.default)(ce.default.mark(function Le(Ne){var De,Re,Je,_e,Ve,Qe,ut,dt=arguments;return ce.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return De=dt.length>1&&dt[1]!==void 0?dt[1]:{},Re=Ne["continuation-token"]||Ne.continuationToken,Re&&(De.subres=Object.assign({"continuation-token":Re},De.subres)),Je=this._objectRequestParams("GET","",De),Je.query=Object.assign({"list-type":2},Ne),delete Je.query["continuation-token"],delete Je.query.continuationToken,Je.xmlResponse=!0,Je.successStatuses=[200],qe.next=11,this.request(Je);case 11:return _e=qe.sent,Ve=_e.data.Contents||[],Qe=this,Ve&&(Array.isArray(Ve)||(Ve=[Ve]),Ve=Ve.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}})),ut=_e.data.CommonPrefixes||null,ut&&(Array.isArray(ut)||(ut=[ut]),ut=ut.map(function(it){return it.Prefix})),qe.abrupt("return",{res:_e.res,objects:Ve,prefixes:ut,isTruncated:_e.data.IsTruncated==="true",keyCount:+_e.data.KeyCount,continuationToken:_e.data.ContinuationToken||null,nextContinuationToken:_e.data.NextContinuationToken||null});case 18:case"end":return qe.stop()}},Le,this)}));function Oe(Le){return Ie.apply(this,arguments)}return Oe}(),Ce.restore=function(){var Ie=(0,we.default)(ce.default.mark(function Le(Ne){var De,Re,Je,_e,Ve=arguments;return ce.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return De=Ve.length>1&&Ve[1]!==void 0?Ve[1]:{type:"Archive"},De=De||{},De.subres=Object.assign({restore:""},De.subres),De.versionId&&(De.subres.versionId=De.versionId),Re=this._objectRequestParams("POST",Ne,De),De.type==="ColdArchive"&&(Je={RestoreRequest:{Days:De.Days?De.Days:2,JobParameters:{Tier:De.JobParameters?De.JobParameters:"Standard"}}},Re.content=be(Je,{headers:!0}),Re.mime="xml"),Re.successStatuses=[202],ut.next=9,this.request(Re);case 9:return _e=ut.sent,ut.abrupt("return",{res:_e.res});case 11:case"end":return ut.stop()}},Le,this)}));function Oe(Le){return Ie.apply(this,arguments)}return Oe}(),Ce._objectUrl=function(Oe){return this._getReqUrl({bucket:this.options.bucket,object:Oe})},Ce._objectRequestParams=function(Oe,Le,Ne){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ne=Ne||{},Le=this._objectName(Le);var De={object:Le,bucket:this.options.bucket,method:Oe,subres:Ne&&Ne.subres,timeout:Ne&&Ne.timeout,ctx:Ne&&Ne.ctx};return Ne.headers&&(De.headers={},Se(Ne.headers).to(De.headers)),De},Ce._objectName=function(Oe){return Oe.replace(/^\/+/,"")},Ce._convertMetaToHeaders=function(Oe,Le){Oe&&Object.keys(Oe).forEach(function(Ne){Le["x-oss-meta-".concat(Ne)]=Oe[Ne]})},Ce._deleteFileSafe=function(Oe){var Le=this;return new Promise(function(Ne){Me.exists(Oe,function(De){De?Me.unlink(Oe,function(Re){Re&&Le.debug("unlink %j error: %s",Oe,Re,"error"),Ne()}):Ne()})})}},{"../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,ze,je){"use strict";je.version="6.18.1"},{}],7:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.abortBucketWorm=void 0;var Me=oe("../utils/checkBucketName");function Se(me,xe){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,we.default)(ce.default.mark(function me(xe,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return Me.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()}},me,this)})),Pe.apply(this,arguments)}je.abortBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.completeBucketWorm=void 0;var Me=oe("../utils/checkBucketName");function Se(me,xe,fe){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,we.default)(ce.default.mark(function me(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Me.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()}},me,this)})),Pe.apply(this,arguments)}je.completeBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.deleteBucketInventory=void 0;var Me=oe("../utils/checkBucketName");function Se(me,xe){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,we.default)(ce.default.mark(function me(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),Me.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()}},me,this)})),Pe.apply(this,arguments)}je.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=je;Pe.deleteBucketLifecycle=function(){var me=(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 me.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=je;Pe.deleteBucketWebsite=function(){var me=(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 me.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.extendBucketWorm=void 0;var Me=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function Pe(xe,fe,z,ee){return me.apply(this,arguments)}function me(){return me=(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 Me.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)})),me.apply(this,arguments)}je.extendBucketWorm=Pe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.getBucketInventory=void 0;var Me=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function Pe(xe,fe){return me.apply(this,arguments)}function me(){return me=(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),Me.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)})),me.apply(this,arguments)}je.getBucketInventory=Pe},{"../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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=oe("../utils/isArray"),me=Pe.isArray,xe=oe("../utils/formatObjKey"),fe=xe.formatObjKey,z=je;z.getBucketLifecycle=function(){var ee=(0,we.default)(ce.default.mark(function re(le,ue){var pe,be,Ce;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Se(le),pe=this._bucketRequestParams("GET",le,"lifecycle",ue),pe.successStatuses=[200],pe.xmlResponse=!0,Oe.next=6,this.request(pe);case 6:return be=Oe.sent,Ce=be.data.Rule||null,Ce&&(me(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Le){return Le.ID&&(Le.id=Le.ID,delete Le.ID),Le.Tag&&!me(Le.Tag)&&(Le.Tag=[Le.Tag]),fe(Le,"firstLowerCase")})),Oe.abrupt("return",{rules:Ce,res:be.res});case 10:case"end":return Oe.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=je;Pe.getBucketVersioning=function(){var me=(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 me.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=oe("../utils/isObject"),me=Pe.isObject,xe=je;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&&(me(ue.data.RoutingRules.RoutingRule)?pe=[ue.data.RoutingRules.RoutingRule]:pe=ue.data.RoutingRules.RoutingRule),Ce.abrupt("return",{index:ue.data.IndexDocument&&ue.data.IndexDocument.Suffix||"",supportSubDir:ue.data.IndexDocument&&ue.data.IndexDocument.SupportSubDir||"false",type:ue.data.IndexDocument&&ue.data.IndexDocument.Type,routingRules:pe,error:ue.data.ErrorDocument&&ue.data.ErrorDocument.Key||null,res:ue.res});case 10:case"end":return Ce.stop()}},ee,this)}));function z(ee,ae){return 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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.getBucketWorm=void 0;var Me=oe("../utils/checkBucketName"),Se=oe("../utils/dataFix");function Pe(xe,fe){return me.apply(this,arguments)}function me(){return me=(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 Me.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)})),me.apply(this,arguments)}je.getBucketWorm=Pe},{"../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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.initiateBucketWorm=void 0;var Me=oe("../utils/obj2xml"),Se=oe("../utils/checkBucketName");function Pe(xe,fe,z){return me.apply(this,arguments)}function me(){return me=(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=Me.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)})),me.apply(this,arguments)}je.initiateBucketWorm=Pe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.listBucketInventory=void 0;var Me=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function Pe(xe){return me.apply(this,arguments)}function me(){return me=(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(Oe){for(;;)switch(Oe.prev=Oe.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),Me.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,z),re.successStatuses=[200],re.xmlResponse=!0,Oe.next=9,this.request(re);case 9:return le=Oe.sent,ue=le.data,pe=le.res,be=le.status,Oe.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:Se.formatInventoryConfig(ue.InventoryConfiguration,!0),status:be,res:pe});case 12:case"end":return Oe.stop()}},xe,this)})),me.apply(this,arguments)}je.listBucketInventory=Pe},{"../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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.putBucketInventory=void 0;var Me=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function Pe(xe,fe){return me.apply(this,arguments)}function me(){return me=(0,we.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue,pe,be,Ce,Ie,Oe,Le,Ne=arguments;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return ee=Ne.length>2&&Ne[2]!==void 0?Ne[2]:{},ae=Object.assign({inventory:"",inventoryId:z.id},ee.subres),Me.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)||[]}}},Ie=Se.obj2xml(Ce,{headers:!0,firstUpperCase:!0}),Oe=this._bucketRequestParams("PUT",fe,ae,ee),Oe.successStatuses=[200],Oe.mime="xml",Oe.content=Ie,Re.next=14,this.request(Oe);case 14:return Le=Re.sent,Re.abrupt("return",{status:Le.status,res:Le.res});case 16:case"end":return Re.stop()}},xe,this)})),me.apply(this,arguments)}je.putBucketInventory=Pe},{"../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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.array.includes.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=oe("../utils/isArray"),me=Pe.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=je;Ce.putBucketLifecycle=function(){var De=(0,we.default)(ce.default.mark(function Je(_e,Ve,Qe){var ut,dt,St,qe,it;return ce.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(Se(_e),me(Ve)){wt.next=3;break}throw new Error("rules must be Array");case 3:return ut=this._bucketRequestParams("PUT",_e,"lifecycle",Qe),dt=[],St={LifecycleConfiguration:{Rule:dt}},Ve.forEach(function(xt){Ie(xt),Ne(xt),xt.id&&(xt.ID=xt.id,delete xt.id),dt.push(xt)}),qe=re(St,{headers:!0,firstUpperCase:!0}),ut.content=qe,ut.mime="xml",ut.successStatuses=[200],wt.next=13,this.request(ut);case 13:return it=wt.sent,wt.abrupt("return",{res:it.res});case 15:case"end":return wt.stop()}},Je,this)}));function Re(Je,_e,Ve){return De.apply(this,arguments)}return Re}();function Ie(De){De.days&&(De.expiration={days:De.days}),De.date&&(De.expiration={createdBeforeDate:De.date})}function Oe(De,Re){var Je=De.days,_e=De.createdBeforeDate;if(!Je&&!_e)throw new Error("".concat(Re," must includes days or createdBeforeDate"));if(Je&&!/^[1-9][0-9]*$/.test(Je))throw new Error("days must be a positive integer");if(_e&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(_e))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Le(De){if(!me(De)&&!ee(De))throw new Error("tag must be Object or Array");De=ee(De)?[De]:De;var Re={},Je=fe(De);Je.forEach(function(_e){Re[_e.key]=_e.value}),ue(Re)}function Ne(De){if(De.id&&be(De.id)>255)throw new Error("ID is composed of 255 bytes at most");if(De.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(De.status))throw new Error("Status must be Enabled or Disabled");if(De.transition){if(!["IA","Archive"].includes(De.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Oe(De.transition,"Transition")}if(De.expiration){if(!De.expiration.expiredObjectDeleteMarker)Oe(De.expiration,"Expiration");else if(De.expiration.days||De.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(De.abortMultipartUpload&&Oe(De.abortMultipartUpload,"AbortMultipartUpload"),!De.expiration&&!De.abortMultipartUpload&&!De.transition&&!De.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(De.tag){if(De.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Le(De.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.includes.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=oe("../utils/obj2xml"),me=Pe.obj2xml,xe=je;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(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},Se(ae),["Enabled","Suspended"].includes(re)){Oe.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ue=this._bucketRequestParams("PUT",ae,"versioning",le),pe={VersioningConfiguration:{Status:re}},ue.mime="xml",ue.content=me(pe,{headers:!0}),Oe.next=10,this.request(ue);case 10:return be=Oe.sent,Oe.abrupt("return",{res:be.res,status:be.status});case 12:case"end":return Oe.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=oe("../utils/obj2xml"),me=Pe.obj2xml,xe=oe("../utils/isArray"),fe=xe.isArray,z=je;z.putBucketWebsite=function(){var ee=(0,we.default)(ce.default.mark(function re(le){var ue,pe,be,Ce,Ie,Oe,Le,Ne=arguments;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(ue=Ne.length>1&&Ne[1]!==void 0?Ne[1]:{},pe=Ne.length>2?Ne[2]:void 0,Se(le),be=this._bucketRequestParams("PUT",le,"website",pe),Ce={Suffix:ue.index||"index.html"},Ie={IndexDocument:Ce},Oe={WebsiteConfiguration:Ie},ue.supportSubDir&&(Ce.SupportSubDir=ue.supportSubDir),ue.type&&(Ce.Type=ue.type),ue.error&&(Ie.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){Re.next=14;break}if(fe(ue.routingRules)){Re.next=13;break}throw new Error("RoutingRules must be Array");case 13:Ie.RoutingRules={RoutingRule:ue.routingRules};case 14:return Oe=me(Oe),be.content=Oe,be.mime="xml",be.successStatuses=[200],Re.next=20,this.request(be);case 20:return Le=Re.sent,Re.abrupt("return",{res:Le.res});case 22:case"end":return Re.stop()}},re,this)}));function ae(re){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),je.encodeCallback=function(we,Me){if(we.headers=we.headers||{},!Object.prototype.hasOwnProperty.call(we.headers,"x-oss-callback")&&Me.callback){var Se={callbackUrl:encodeURI(Me.callback.url),callbackBody:Me.callback.body};Me.callback.host&&(Se.callbackHost=Me.callback.host),Me.callback.contentType&&(Se.callbackBodyType=Me.callback.contentType);var Pe=ve.from(JSON.stringify(Se)).toString("base64");if(we.headers["x-oss-callback"]=Pe,Me.callback.customValue){var me={};Object.keys(Me.callback.customValue).forEach(function(xe){me["x:".concat(xe)]=Me.callback.customValue[xe].toString()}),we.headers["x-oss-callback-var"]=ve.from(JSON.stringify(me)).toString("base64")}}}}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var ve=function(fe){return fe&&fe.__esModule?fe:{default:fe}};Object.defineProperty(je,"__esModule",{value:!0}),je.getReqUrl=void 0;var ce=ve(oe("copy-to")),we=ve(oe("url")),Me=ve(oe("merge-descriptors")),Se=ve(oe("is-type-of")),Pe=oe("../utils/isIP"),me=oe("../utils/checkConfigValid");function xe(fe){var z={},ee=this.options.cname;me.checkConfigValid(this.options.endpoint,"endpoint"),ce.default(this.options.endpoint,!1).to(z),fe.bucket&&!ee&&!Pe.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&&Me.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,Me.default(re,le)}return z.query=re,we.default.format(z)}je.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,ze,je){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.string.trim.js");var ve=oe("humanize-ms"),ce=oe("url"),we=oe("../utils/checkBucketName"),Me=we.checkBucketName,Se=oe("../utils/setRegion"),Pe=Se.setRegion,me=oe("../utils/checkConfigValid"),xe=me.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}ze.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&&Me(z.bucket);var ee=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},z);if(ee.accessKeyId=ee.accessKeyId.trim(),ee.accessKeySecret=ee.accessKeySecret.trim(),ee.timeout&&(ee.timeout=ve(ee.timeout)),ee.endpoint)ee.endpoint=fe(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=Pe(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,ze,je){"use strict";var ve=oe("merge-descriptors"),ce=je;ve(ce,oe("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkBucketName"),Se=Me.checkBucketName,Pe=oe("querystring"),me=oe("js-base64"),xe=me.Base64.encode,fe=je;fe.processObjectSave=function(){var ee=(0,we.default)(ce.default.mark(function re(le,ue,pe,be){var Ce,Ie,Oe,Le;return ce.default.wrap(function(De){for(;;)switch(De.prev=De.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"}),Ie=be?",b_".concat(xe(be)):"",ue=xe(ue),Oe={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(Ie)},Ce.content=Pe.stringify(Oe),De.next=12,this.request(Ce);case 12:return Le=De.sent,De.abrupt("return",{res:Le.res,status:Le.res.status});case 14:case"end":return De.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.regexp.to-string.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("debug")("ali-oss:multipart-copy"),Se=oe("copy-to"),Pe=je;Pe.uploadPartCopy=function(){var me=(0,we.default)(ce.default.mark(function fe(z,ee,ae,re,le){var ue,pe,be,Ce,Ie,Oe=arguments;return ce.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ue=Oe.length>5&&Oe[5]!==void 0?Oe[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],Ne.next=12,this.request(Ce);case 12:return Ie=Ne.sent,Ne.abrupt("return",{name:z,etag:Ie.res.headers.etag,res:Ie.res});case 14:case"end":return Ne.stop()}},fe,this)}));function xe(fe,z,ee,ae,re){return me.apply(this,arguments)}return xe}(),Pe.multipartUploadCopy=function(){var me=(0,we.default)(ce.default.mark(function fe(z,ee){var ae,re,le,ue,pe,be,Ce,Ie,Oe,Le,Ne,De,Re=arguments;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ae=Re.length>2&&Re[2]!==void 0?Re[2]:{},this.resetCancelFlag(),re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},_e.next=6,this._getObjectMeta(ee.sourceBucketName,ee.sourceKey,ue);case 6:if(pe=_e.sent,be=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||be,!(ae.checkpoint&&ae.checkpoint.uploadId)){_e.next=14;break}return _e.next=13,this._resumeMultipartCopy(ae.checkpoint,ee,ae);case 13:return _e.abrupt("return",_e.sent);case 14:if(Ce=102400,Ie=ee.endOffset-ee.startOffset,!(Ie<Ce)){_e.next=18;break}throw new Error("copySize must not be smaller than ".concat(Ce));case 18:if(!(ae.partSize&&ae.partSize<Ce)){_e.next=20;break}throw new Error("partSize must not be smaller than ".concat(Ce));case 20:return _e.next=22,this.initMultipartUpload(z,ae);case 22:if(Oe=_e.sent,Le=Oe.uploadId,Ne=this._getPartSize(Ie,ae.partSize),De={name:z,copySize:Ie,partSize:Ne,uploadId:Le,doneParts:[]},!(ae&&ae.progress)){_e.next=29;break}return _e.next=29,ae.progress(0,De,Oe.res);case 29:return _e.next=31,this._resumeMultipartCopy(De,ee,ae);case 31:return _e.abrupt("return",_e.sent);case 32:case"end":return _e.stop()}},fe,this)}));function xe(fe,z){return me.apply(this,arguments)}return xe}(),Pe._resumeMultipartCopy=function(){var me=(0,we.default)(ce.default.mark(function fe(z,ee,ae){var re,le,ue,pe,be,Ce,Ie,Oe,Le,Ne,De,Re,Je,_e,Ve,Qe,ut,dt,St,qe,it;return ce.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(!this.isCancel()){wt.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,Ie=z.doneParts,Oe=z.name,Le=this._divideMultipartCopyParts(pe,be,ee.startOffset),Ne=Le.length,De={headers:{}},ae.copyheaders&&Se(ae.copyheaders).to(De.headers),le&&Se(ue).to(De),Re=function(ft,mt,yt){return new Promise(function(){var It=(0,we.default)(ce.default.mark(function kt(Ut,Pt){var Ct,st,bt;return ce.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(ct.prev=0,ft.isCancel()){ct.next=22;break}return Ct=Le[mt-1],st="".concat(Ct.start,"-").concat(Ct.end-1),ct.prev=4,ct.next=7,ft.uploadPartCopy(Oe,Ce,mt,st,yt,De);case 7:bt=ct.sent,ct.next=15;break;case 10:if(ct.prev=10,ct.t0=ct.catch(4),ct.t0.status!==404){ct.next=14;break}throw ft._makeAbortEvent();case 14:throw ct.t0;case 15:if(ft.isCancel()){ct.next=22;break}if(Me("content-range ".concat(bt.res.headers["content-range"])),Ie.push({number:mt,etag:bt.res.headers.etag}),z.doneParts=Ie,!(ae&&ae.progress)){ct.next=22;break}return ct.next=22,ae.progress(Ie.length/Ne,z,bt.res);case 22:Ut(),ct.next=29;break;case 25:ct.prev=25,ct.t1=ct.catch(0),ct.t1.partNum=mt,Pt(ct.t1);case 29:case"end":return ct.stop()}},kt,null,[[0,25],[4,10]])}));return function(kt,Ut){return It.apply(this,arguments)}}())},Je=Array.from(new Array(Ne),function(xt,ft){return ft+1}),_e=Ie.map(function(xt){return xt.number}),Ve=Je.filter(function(xt){return _e.indexOf(xt)<0}),Qe=5,ut=ae.parallel||Qe,!(this.checkBrowserAndVersion("Internet Explorer","10")||ut===1)){wt.next=28;break}dt=0;case 18:if(!(dt<Ve.length)){wt.next=26;break}if(!this.isCancel()){wt.next=21;break}throw this._makeCancelEvent();case 21:return wt.next=23,Re(this,Ve[dt],ee);case 23:dt++,wt.next=18;break;case 26:wt.next=40;break;case 28:return wt.next=30,this._parallelNode(Ve,ut,Re,ee);case 30:if(St=wt.sent,qe=St.find(function(xt){return xt.name==="abort"}),!qe){wt.next=34;break}throw qe;case 34:if(!this.isCancel()){wt.next=36;break}throw this._makeCancelEvent();case 36:if(!(St&&St.length>0)){wt.next=40;break}throw it=St[0],it.message="Failed to copy some parts with error: ".concat(it.toString()," part_num: ").concat(it.partNum),it;case 40:return wt.next=42,this.completeMultipartUpload(Oe,Ce,Ie,ae);case 42:return wt.abrupt("return",wt.sent);case 43:case"end":return wt.stop()}},fe,this)}));function xe(fe,z,ee){return me.apply(this,arguments)}return xe}(),Pe._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},Pe._getObjectMeta=function(){var me=(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 me.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,ze,je){(function(ve){(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 Me=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("copy-to"),Pe=oe("./callback"),me=oe("./utils/deepCopy"),xe=me.deepCopyWith,fe=oe("./utils/isBuffer"),z=fe.isBuffer,ee=oe("./utils/omit"),ae=ee.omit,re=je;re.listUploads=function(){var le=(0,Me.default)(we.default.mark(function pe(be,Ce){var Ie,Oe,Le,Ne;return we.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ce=Ce||{},Ie={},Se(Ce).to(Ie),Ie.subres="uploads",Oe=this._objectRequestParams("GET","",Ie),Oe.query=be,Oe.xmlResponse=!0,Oe.successStatuses=[200],Re.next=10,this.request(Oe);case 10:return Le=Re.sent,Ne=Le.data.Upload||[],Array.isArray(Ne)||(Ne=[Ne]),Ne=Ne.map(function(Je){return{name:Je.Key,uploadId:Je.UploadId,initiated:Je.Initiated}}),Re.abrupt("return",{res:Le.res,uploads:Ne,bucket:Le.data.Bucket,nextKeyMarker:Le.data.NextKeyMarker,nextUploadIdMarker:Le.data.NextUploadIdMarker,isTruncated:Le.data.IsTruncated==="true"});case 15:case"end":return Re.stop()}},pe,this)}));function ue(pe,be){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Me.default)(we.default.mark(function pe(be,Ce,Ie,Oe){var Le,Ne,De;return we.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Oe=Oe||{},Le={},Se(Oe).to(Le),Le.subres={uploadId:Ce},Ne=this._objectRequestParams("GET",be,Le),Ne.query=Ie,Ne.xmlResponse=!0,Ne.successStatuses=[200],Je.next=10,this.request(Ne);case 10:return De=Je.sent,Je.abrupt("return",{res:De.res,uploadId:De.data.UploadId,bucket:De.data.Bucket,name:De.data.Key,partNumberMarker:De.data.PartNumberMarker,nextPartNumberMarker:De.data.NextPartNumberMarker,maxParts:De.data.MaxParts,isTruncated:De.data.IsTruncated,parts:De.data.Part||[]});case 12:case"end":return Je.stop()}},pe,this)}));function ue(pe,be,Ce,Ie){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Me.default)(we.default.mark(function pe(be,Ce,Ie){var Oe,Le,Ne;return we.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return this._stop(),Ie=Ie||{},Oe={},Se(Ie).to(Oe),Oe.subres={uploadId:Ce},Le=this._objectRequestParams("DELETE",be,Oe),Le.successStatuses=[204],Re.next=9,this.request(Le);case 9:return Ne=Re.sent,Re.abrupt("return",{res:Ne.res});case 11:case"end":return Re.stop()}},pe,this)}));function ue(pe,be,Ce){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Me.default)(we.default.mark(function pe(be,Ce){var Ie,Oe,Le;return we.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return Ce=Ce||{},Ie={},Se(Ce).to(Ie),Ie.headers=Ie.headers||{},this._convertMetaToHeaders(Ce.meta,Ie.headers),Ie.subres="uploads",Oe=this._objectRequestParams("POST",be,Ie),Oe.mime=Ce.mime,Oe.xmlResponse=!0,Oe.successStatuses=[200],De.next=12,this.request(Oe);case 12:return Le=De.sent,De.abrupt("return",{res:Le.res,bucket:Le.data.Bucket,name:Le.data.Key,uploadId:Le.data.UploadId});case 14:case"end":return De.stop()}},pe,this)}));function ue(pe,be){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Me.default)(we.default.mark(function pe(be,Ce,Ie,Oe,Le,Ne,De){var Re,Je;return we.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(Re={size:Ne-Le},Je=ve&&ve.browser,!Je){Ve.next=8;break}return Ve.next=5,this._createBuffer(Oe,Le,Ne);case 5:Re.content=Ve.sent,Ve.next=11;break;case 8:return Ve.next=10,this._createStream(Oe,Le,Ne);case 10:Re.stream=Ve.sent;case 11:return Ve.next=13,this._uploadPart(be,Ce,Ie,Re,De);case 13:return Ve.abrupt("return",Ve.sent);case 14:case"end":return Ve.stop()}},pe,this)}));function ue(pe,be,Ce,Ie,Oe,Le,Ne){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Me.default)(we.default.mark(function pe(be,Ce,Ie,Oe){var Le,Ne,De,Re,Je,_e,Ve,Qe;return we.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:for(Le=Ie.concat().sort(function(St,qe){return St.number-qe.number}).filter(function(St,qe,it){return!qe||St.number!==it[qe-1].number}),Ne=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,De=0;De<Le.length;De++)Re=Le[De],Ne+=`<Part>
|
|
|
`,Ne+="<PartNumber>".concat(Re.number,`</PartNumber>
|
|
|
`),Ne+="<ETag>".concat(Re.etag,`</ETag>
|
|
|
`),Ne+=`</Part>
|
|
|
`;return Ne+="</CompleteMultipartUpload>",Oe=Oe||{},Je={},Je=xe(Oe,function(St){if(z(St))return null}),Je.subres={uploadId:Ce},Je.headers=ae(Je.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),_e=this._objectRequestParams("POST",be,Je),Pe.encodeCallback(_e,Je),_e.mime="xml",_e.content=Ne,_e.headers&&_e.headers["x-oss-callback"]||(_e.xmlResponse=!0),_e.successStatuses=[200],dt.next=17,this.request(_e);case 17:if(Ve=dt.sent,!Oe.progress){dt.next=21;break}return dt.next=21,Oe.progress(1,null,Ve.res);case 21:return Qe={res:Ve.res,bucket:_e.bucket,name:be,etag:Ve.res.headers.etag},_e.headers&&_e.headers["x-oss-callback"]&&(Qe.data=JSON.parse(Ve.data.toString())),dt.abrupt("return",Qe);case 24:case"end":return dt.stop()}},pe,this)}));function ue(pe,be,Ce,Ie){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Me.default)(we.default.mark(function pe(be,Ce,Ie,Oe,Le){var Ne,De,Re,Je;return we.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Le=Le||{},Ne={},Se(Le).to(Ne),Ne.headers=Ne.headers||{},Ne.headers["Content-Length"]=Oe.size,Ne.headers=ae(Ne.headers,["x-oss-server-side-encryption"]),Ne.subres={partNumber:Ie,uploadId:Ce},De=this._objectRequestParams("PUT",be,Ne),De.mime=Ne.mime,Re=ve&&ve.browser,Re?De.content=Oe.content:De.stream=Oe.stream,De.successStatuses=[200],De.disabledMD5=Le.disabledMD5,Ve.next=15,this.request(De);case 15:if(Je=Ve.sent,Je.res.headers.etag){Ve.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 Oe.stream&&(Oe.stream=null,De.stream=null),Ve.abrupt("return",{name:be,etag:Je.res.headers.etag,res:Je.res});case 20:case"end":return Ve.stop()}},pe,this)}));function ue(pe,be,Ce,Ie,Oe){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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator")),we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("url"),Se=oe("utility"),Pe=oe("copy-to"),me=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=je;le.asyncSignatureUrl=function(){var ue=(0,we.default)(ce.default.mark(function be(Ce,Ie){var Oe,Le,Ne,De,Re;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!fe(this.options.endpoint.hostname)){_e.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Ie=Ie||{},Ce=this._objectName(Ce),Ie.method=Ie.method||"GET",Oe=Se.timestamp()+(Ie.expires||1800),Le={bucket:this.options.bucket,object:Ce},Ne=this._getResource(Le),!(this.options.stsToken&&re(this.options.refreshSTSToken))){_e.next=11;break}return _e.next=11,ee.call(this);case 11:return this.options.stsToken&&(Ie["security-token"]=this.options.stsToken),De=me._signatureForURL(this.options.accessKeySecret,Ie,Ne,Oe),Re=Me.parse(this._getReqUrl(Le)),Re.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Oe,Signature:De.Signature},Pe(De.subResource).to(Re.query),_e.abrupt("return",Re.format());case 17:case"end":return _e.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var we=ve(oe("@babel/runtime/helpers/typeof")),Me=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("../utils/checkBucketName"),Pe=Se.checkBucketName,me=je,xe=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];me.copy=function(){var fe=(0,Me.default)(ce.default.mark(function ee(ae,re,le,ue){var pe,be,Ce;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return(0,we.default)(le)==="object"&&(ue=le),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(Le){ue.headers["x-oss-copy-source-".concat(Le.toLowerCase())]=ue.headers[Le]}),(ue.meta||Object.keys(ue.headers).find(function(Le){return xe.includes(Le.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],Oe.next=14,this.request(pe);case 14:return be=Oe.sent,Ce=be.data,Ce&&(Ce={etag:Ce.ETag,lastModified:Ce.LastModified}),Oe.abrupt("return",{data:Ce,res:be.res});case 18:case"end":return Oe.stop()}},ee,this)}));function z(ee,ae,re,le){return fe.apply(this,arguments)}return z}(),me._getSourceName=function(z,ee){return typeof ee=="string"?z=this._objectName(z):z[0]!=="/"?ee=this.options.bucket:(ee=z.replace(/\/(.+?)(\/.*)/,"$1"),z=z.replace(/(\/.+?\/)(.*)/,"$2")),Pe(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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je;Me.delete=function(){var Se=(0,we.default)(ce.default.mark(function me(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()}},me,this)}));function Pe(me){return Se.apply(this,arguments)}return Pe}()},{"@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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("utility"),Se=oe("../utils/obj2xml"),Pe=Se.obj2xml,me=je;me.deleteMulti=function(){var xe=(0,we.default)(ce.default.mark(function z(ee){var ae,re,le,ue,pe,be,Ce,Ie,Oe,Le,Ne,De,Re,Je=arguments;return ce.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(ae=Je.length>1&&Je[1]!==void 0?Je[1]:{},re=[],!(!ee||!ee.length)){Ve.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=Me.escape(this._objectName(ee[le])):(pe=ee[le],be=pe.key,Ce=pe.versionId,ue.Key=Me.escape(this._objectName(be)),ue.VersionId=Ce),re.push(ue);return Ie={Delete:{Quiet:!!ae.quiet,Object:re}},Oe=Pe(Ie,{headers:!0}),ae.subres=Object.assign({delete:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),Le=this._objectRequestParams("POST","",ae),Le.mime="xml",Le.content=Oe,Le.xmlResponse=!0,Le.successStatuses=[200],Ve.next=16,this.request(Le);case 16:return Ne=Ve.sent,De=Ne.data,Re=De&&De.Deleted||null,Re&&(Array.isArray(Re)||(Re=[Re])),Ve.abrupt("return",{res:Ne.res,deleted:Re||[]});case 21:case"end":return Ve.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je;Me.deleteObjectTagging=function(){var Se=(0,we.default)(ce.default.mark(function me(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()}},me,this)}));function Pe(me){return Se.apply(this,arguments)}return Pe}()},{"@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,ze,je){"use strict";oe("core-js/modules/es.array.concat.js");var ve=oe("url"),ce=oe("../utils/isIP"),we=ce.isIP,Me=je;Me.generateObjectUrl=function(Pe,me){if(we(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(me)me[me.length-1]!=="/"&&(me+="/");else{me=this.options.endpoint.format();var xe=ve.parse(me),fe=this.options.bucket;xe.hostname="".concat(fe,".").concat(xe.hostname),xe.host="".concat(fe,".").concat(xe.host),me=xe.format()}return me+this._escape(this._objectName(Pe))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(oe,ze,je){(function(ve){(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 Me=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("fs"),Pe=oe("is-type-of"),me=je;me.get=function(){var xe=(0,Me.default)(we.default.mark(function z(ee,ae){var re,le,ue,pe,be,Ce,Ie,Oe,Le=arguments;return we.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return re=Le.length>2&&Le[2]!==void 0?Le[2]:{},le=null,ue=!1,Pe.writableStream(ae)?le=ae:Pe.string(ae)?(le=Se.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=ve&&ve.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),De.prev=11,Oe=this._objectRequestParams("GET",ee,re),Oe.writeStream=le,Oe.successStatuses=[200,206,304],De.next=17,this.request(Oe);case 17:Ie=De.sent,ue&&le.destroy(),De.next=28;break;case 21:if(De.prev=21,De.t0=De.catch(11),!ue){De.next=27;break}return le.destroy(),De.next=27,this._deleteFileSafe(ae);case 27:throw De.t0;case 28:return De.abrupt("return",{res:Ie.res,content:Ie.data});case 29:case"end":return De.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je;Me.getACL=function(){var Se=(0,we.default)(ce.default.mark(function me(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()}},me,this)}));function Pe(me){return Se.apply(this,arguments)}return Pe}()},{"@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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je,Se=oe("../utils/isObject"),Pe=Se.isObject,me=oe("../utils/isArray"),xe=me.isArray;Me.getBucketVersions=fe,Me.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,Ie,Oe,Le,Ne=arguments;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(le=Ne.length>0&&Ne[0]!==void 0?Ne[0]:{},ue=Ne.length>1&&Ne[1]!==void 0?Ne[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){Re.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ue.subres=Object.assign({versions:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),pe=this._objectRequestParams("GET","",ue),pe.xmlResponse=!0,pe.successStatuses=[200],pe.query=ae(le),Re.next=12,this.request(pe);case 12:return be=Re.sent,Ce=be.data.Version||[],Ie=be.data.DeleteMarker||[],Oe=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Je){return{name:Je.Key,url:Oe._objectUrl(Je.Key),lastModified:Je.LastModified,isLatest:Je.IsLatest==="true",versionId:Je.VersionId,etag:Je.ETag,type:Je.Type,size:Number(Je.Size),storageClass:Je.StorageClass,owner:{id:Je.Owner.ID,displayName:Je.Owner.DisplayName}}})),Ie&&(xe(Ie)||(Ie=[Ie]),Ie=Ie.map(function(Je){return{name:Je.Key,lastModified:Je.LastModified,versionId:Je.VersionId,owner:{id:Je.Owner.ID,displayName:Je.Owner.DisplayName}}})),Le=be.data.CommonPrefixes||null,Le&&(xe(Le)||(Le=[Le]),Le=Le.map(function(Je){return Je.Prefix})),Re.abrupt("return",{res:be.res,objects:Ce,deleteMarker:Ie,prefixes:Le,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 Re.stop()}},re,this)})),z.apply(this,arguments)}function ee(re){return re.replace(/([A-Z])/g,"-$1").toLowerCase()}function ae(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={};return Pe(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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je;Me.getObjectMeta=function(){var Se=(0,we.default)(ce.default.mark(function me(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()}},me,this)}));function Pe(me,xe){return Se.apply(this,arguments)}return Pe}()},{"@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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je,Se=oe("../utils/isObject"),Pe=Se.isObject;Me.getObjectTagging=function(){var me=(0,we.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue,pe,be=arguments;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.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],Ie.next=8,this.request(ae);case 8:return re=Ie.sent,Ie.next=11,this.parseXML(re.data);case 11:return le=Ie.sent,ue=le.TagSet.Tag,ue=ue&&Pe(ue)?[ue]:ue||[],pe={},ue.forEach(function(Oe){pe[Oe.Key]=Oe.Value}),Ie.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return Ie.stop()}},fe,this)}));function xe(fe){return me.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,ze,je){"use strict";var ve=oe("../utils/isIP"),ce=ve.isIP,we=je;we.getObjectUrl=function(Se,Pe){if(ce(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return Pe?Pe[Pe.length-1]!=="/"&&(Pe+="/"):Pe=this.options.endpoint.format(),Pe+this._escape(this._objectName(Se))}},{"../utils/isIP":69}],43:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je;Me.getSymlink=function(){var Se=(0,we.default)(ce.default.mark(function me(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()}},me,this)}));function Pe(me){return Se.apply(this,arguments)}return Pe}()},{"@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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/checkEnv"),Se=Me.checkEnv,Pe=je;Pe.head=function(){var me=(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 me.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je;Me.putACL=function(){var Se=(0,we.default)(ce.default.mark(function me(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()}},me,this)}));function Pe(me,xe,fe){return Se.apply(this,arguments)}return Pe}()},{"@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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.object.keys.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("../utils/obj2xml"),Se=Me.obj2xml,Pe=oe("../utils/checkObjectTag"),me=Pe.checkObjectTag,xe=je;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(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},me(re),le.subres=Object.assign({tagging:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),ae=this._objectName(ae),ue=this._objectRequestParams("PUT",ae,le),ue.successStatuses=[200],re=Object.keys(re).map(function(Le){return{Key:Le,Value:re[Le]}}),pe={Tagging:{TagSet:{Tag:re}}},ue.mime="xml",ue.content=Se(pe),Oe.next=13,this.request(ue);case 13:return be=Oe.sent,Oe.abrupt("return",{res:be.res,status:be.status});case 15:case"end":return Oe.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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=je;Me.putSymlink=function(){var Se=(0,we.default)(ce.default.mark(function me(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()}},me,this)}));function Pe(me,xe,fe){return Se.apply(this,arguments)}return Pe}()},{"@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,ze,je){"use strict";var ve=oe("url"),ce=oe("utility"),we=oe("copy-to"),Me=oe("../../common/signUtils"),Se=oe("../utils/isIP"),Pe=Se.isIP,me=je;me.signatureUrl=function(fe,z){if(Pe(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=Me._signatureForURL(this.options.accessKeySecret,z,re,ee),ue=ve.parse(this._getReqUrl(ae));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ee,Signature:le.Signature},we(le.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.function.name.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Me=oe("./utils/isArray"),Se=Me.isArray,Pe=je;Pe._parallelNode=function(){var me=(0,we.default)(ce.default.mark(function fe(z,ee,ae,re){var le,ue,pe,be,Ce,Ie,Oe,Le;return ce.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:le=this,ue=[],pe=[],be=z.length/ee,Ce=z.length%ee,Ie=Ce===0?be:(z.length-Ce)/ee+1,Oe=1,Le=0;case 8:if(!(Le<z.length)){De.next=26;break}if(!le.isCancel()){De.next=11;break}return De.abrupt("break",26);case 11:if(re?pe.push(ae(le,z[Le],re)):pe.push(ae(le,z[Le])),!(pe.length===ee||Oe===Ie&&Le===z.length-1)){De.next=23;break}return De.prev=13,Oe+=1,De.next=17,Promise.all(pe);case 17:De.next=22;break;case 19:De.prev=19,De.t0=De.catch(13),ue.push(De.t0);case 22:pe=[];case 23:Le++,De.next=8;break;case 26:return De.abrupt("return",ue);case 27:case"end":return De.stop()}},fe,this,[[13,19]])}));function xe(fe,z,ee,ae){return me.apply(this,arguments)}return xe}(),Pe._parallel=function(xe,fe,z){var ee=this;return new Promise(function(ae){var re=[];if(fe<=0||!xe){ae(re);return}function le(De){return function(){if(De===null)throw new Error("Callback was already called.");var Re=De;De=null;for(var Je=arguments.length,_e=new Array(Je),Ve=0;Ve<Je;Ve++)_e[Ve]=arguments[Ve];Re.apply(this,_e)}}function ue(De){var Re=-1,Je=De.length;return function(){return++Re<Je&&!ee.isCancel()?{value:De[Re],key:Re}:null}}var pe=ue(xe),be=!1,Ce=0,Ie=!1;function Oe(De){Ce-=1,De?(be=!0,re.push(De),ae(re)):be&&Ce<=0?(be=!0,ae(re)):Ie||(ee.isCancel()?ae(re):Ne())}function Le(De,Re){z(De).then(function(Je){Re(null,Je)}).catch(function(Je){Re(Je)})}function Ne(){for(Ie=!0;Ce<fe&&!be&&!ee.isCancel();){var De=pe();if(De===null||re.length>0){be=!0,Ce<=0&&ae(re);return}Ce+=1,Le(De.value,le(Oe))}Ie=!1}Ne()})},Pe.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)},Pe.isCancel=function(){return this.options.cancelFlag},Pe.resetCancelFlag=function(){this.options.cancelFlag=!1},Pe._stop=function(){this.options.cancelFlag=!0},Pe._makeCancelEvent=function(){var xe={status:0,name:"cancel"};return xe},Pe._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,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var ce=oe("./../../shims/crypto/crypto.js"),we=oe("is-type-of"),Me=oe("./utils/lowercaseKeyHeader"),Se=Me.lowercaseKeyHeader;je.buildCanonicalizedResource=function(me,xe){var fe="".concat(me),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},je.buildCanonicalString=function(me,xe,fe,z){fe=fe||{};var ee=Se(fe.headers),ae="x-oss-",re=[],le={},ue=[me.toUpperCase(),ee["content-md5"]||"",ee["content-type"],z||ee["x-oss-date"]];return Object.keys(ee).forEach(function(pe){var 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(`
|
|
|
`)},je.computeSignature=function(me,xe){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",z=ce.createHmac("sha1",me);return z.update(ve.from(xe,fe)).digest("base64")},je.authorization=function(me,xe,fe,z){return"OSS ".concat(me,":").concat(this.computeSignature(xe,fe,z))},je._signatureForURL=function(me){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(Oe){var Le="response-".concat(Oe.toLowerCase());le[Le]=xe.response[Oe]}),Object.keys(xe).forEach(function(Oe){var Le=Oe.toLowerCase(),Ne=xe[Oe];Le.indexOf("x-oss-")===0?ae[Le]=Ne:(Le.indexOf("content-md5")===0||Le.indexOf("content-type")===0)&&(ae[Oe]=Ne)}),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=ve.from(JSON.stringify(be)).toString("base64"),xe.callback.customValue){var Ce={};Object.keys(xe.callback.customValue).forEach(function(Oe){Ce["x:".concat(Oe)]=xe.callback.customValue[Oe]}),le["callback-var"]=ve.from(JSON.stringify(Ce)).toString("base64")}}var Ie=this.buildCanonicalString(xe.method,fe,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(me,Ie,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,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.checkBucketName=void 0,je.checkBucketName=function(ve){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(ve))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(oe,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.checkConfigValid=void 0;var ve={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}je.checkConfigValid=function(we,Me){if(ve[Me]){var Se=!0;if(ve[Me]instanceof Function?Se=ve[Me](we):Se=ve[Me].test(we),!Se)throw new Error("The ".concat(Me," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(oe,ze,je){(function(ve){(function(){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.checkEnv=void 0;function ce(we){ve.browser&&console.warn(we)}je.checkEnv=ce}).call(this)}).call(this,oe("_process"))},{_process:467}],54:[function(oe,ze,je){"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(je,"__esModule",{value:!0}),je.checkObjectTag=void 0;var ve=oe("./checkValid"),ce=ve.checkValid,we=oe("./isObject"),Me=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 (/)"}],Pe={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 me(xe){if(!Me(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,Pe[z[re]])})})}je.checkObjectTag=me},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(oe,ze,je){"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(je,"__esModule",{value:!0}),je.checkValid=void 0;function ve(ce,we){we.forEach(function(Me){if(Me.validator)Me.validator(ce);else if(Me.pattern&&!Me.pattern.test(ce))throw new Error(Me.msg)})}je.checkValid=ve},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.createRequest=void 0;var ce=oe("./../../../shims/crypto/crypto.js"),we=oe("debug")("ali-oss"),Me=oe("mime"),Se=oe("dateformat"),Pe=oe("copy-to"),me=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(Le,Ne){return Le[Ne]||Le[Ne.toLowerCase()]}function Ie(Le,Ne){delete Le[Ne],delete Le[Ne.toLowerCase()]}function Oe(Le){var Ne=new Date;this.options.amendTimeSkewed&&(Ne=+new Date+this.options.amendTimeSkewed);var De={"x-oss-date":Se(Ne,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(De["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(De["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(De,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(De["x-oss-security-token"]=this.options.stsToken),Pe(Le.headers).to(De),Ce(De,"Content-Type")||(Le.mime&&Le.mime.indexOf("/")>0?De["Content-Type"]=Le.mime:be()?De["Content-Type"]="application/octet-stream":De["Content-Type"]=Me.getType(Le.mime||me.extname(Le.object||""))),Ce(De,"Content-Type")||Ie(De,"Content-Type"),Le.content&&(Le.disabledMD5||(!Le.headers||!Le.headers["Content-MD5"]?De["Content-MD5"]=ce.createHash("md5").update(ve.from(Le.content,"utf8")).digest("base64"):De["Content-MD5"]=Le.headers["Content-MD5"]),De["Content-Length"]||(De["Content-Length"]=Le.content.length));var Re=Object.prototype.hasOwnProperty;for(var Je in De)De[Je]&&Re.call(De,Je)&&(De[Je]=fe(String(De[Je]),this.options.headerEncoding));var _e=this._getResource(Le);if(De.authorization=this.authorization(Le.method,_e,Le.subres,De,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var Ve=this.options,Qe=Ve.region,ut=Ve.internal,dt=Ve.secure,St=re(Qe,ut,dt);De.host="".concat(Le.bucket,".").concat(St.host)}var qe=ue.bind(this)(Le);we("request %s %s, with headers %j, !!stream: %s",Le.method,qe,De,!!Le.stream);var it=Le.timeout||this.options.timeout,pt={method:Le.method,content:Le.content,stream:Le.stream,headers:De,timeout:it,writeStream:Le.writeStream,customResponse:Le.customResponse,ctx:Le.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:qe,params:pt}}je.createRequest=Oe}).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,ze,je){"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(je,"__esModule",{value:!0}),je.dataFix=void 0;var ve=oe("./isObject"),ce=["true","TRUE","1",1],we=["false","FALSE","0",0];function Me(me,xe,fe){if(ve.isObject(me)){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,Ie=Ce===void 0?!1:Ce;return ee.forEach(function(Oe){return delete me[Oe]}),Object.entries(re).forEach(function(Oe){me[Oe[0]]&&(me[Oe[1]]||(me[Oe[1]]=me[Oe[0]],delete me[Oe[0]]))}),ue.forEach(function(Oe){if(me[Oe]){var Le=Oe.replace(/^(.)/,function(Ne){return Ne.toLowerCase()}).replace(/-(\w)/g,function(Ne,De){return De.toUpperCase()});me[Le]||(me[Le]=me[Oe])}}),be.forEach(function(Oe){me[Oe]=Se(me[Oe])}),typeof fe=="function"&&fe(me),Pe(me,Ie),Me}}je.dataFix=Me;function Se(me){return me?ce.includes(me)?!0:we.includes(me)?!1:me:!1}function Pe(me,xe){xe&&Object.keys(me).forEach(function(fe){var z=fe.replace(/^\w/,function(ee){return ee.toLowerCase()});typeof me[z]=="undefined"&&(me[z]=me[fe],delete me[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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var ce=ve(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(je,"__esModule",{value:!0}),je.deepCopyWith=je.deepCopy=void 0;var we=oe("./isBuffer");je.deepCopy=function(Me){if(Me===null||(0,ce.default)(Me)!=="object")return Me;if(we.isBuffer(Me))return Me.slice();var Se=Array.isArray(Me)?[]:{};return Object.keys(Me).forEach(function(Pe){Se[Pe]=je.deepCopy(Me[Pe])}),Se},je.deepCopyWith=function(Me,Se){function Pe(me,xe,fe){var z=Se(me,xe,fe);if(z!==void 0)return z;if(me===null||(0,ce.default)(me)!=="object")return me;if(we.isBuffer(me))return me.slice();var ee=Array.isArray(me)?[]:{};return Object.keys(me).forEach(function(ae){ee[ae]=Pe(me[ae],ae,me)}),ee}return Se?Pe(Me,"",null):je.deepCopy(Me)}},{"./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,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.encoder=void 0;function ce(we){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Me==="utf-8"?we:ve.from(we).toString("latin1")}je.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,ze,je){"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(je,"__esModule",{value:!0}),je.formatInventoryConfig=void 0;var ve=oe("../utils/dataFix"),ce=oe("../utils/isObject"),we=oe("../utils/isArray"),Me=oe("../utils/formatObjKey");function Se(me){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xe&&ce.isObject(me)&&(me=[me]),we.isArray(me)?me=me.map(Pe):me=Pe(me),me}je.formatInventoryConfig=Se;function Pe(me){return ve.dataFix(me,{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])}),me=Me.formatObjKey(me,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),me}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var ce=ve(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(je,"__esModule",{value:!0}),je.formatObjKey=void 0;function we(Se,Pe,me){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],Pe,me))}else xe={},Object.keys(Se).forEach(function(z){xe[Me(z,Pe,me)]=we(Se[z],Pe,me)});return xe}je.formatObjKey=we;function Me(Se,Pe,me){return me&&me.exclude&&me.exclude.includes(Se)||(Pe==="firstUpperCase"?Se=Se.replace(/^./,function(xe){return xe.toUpperCase()}):Pe==="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,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.getStrBytesCount=void 0;function ve(ce){for(var we=0,Me=0;Me<ce.length;Me++){var Se=ce.charAt(Me);/^[\u00-\uff]$/.test(Se)?we+=1:we+=2}return we}je.getStrBytesCount=ve},{"core-js/modules/es.regexp.exec.js":300}],63:[function(oe,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.isArray=void 0,je.isArray=function(ve){return Object.prototype.toString.call(ve)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(oe,ze,je){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.isBlob=void 0;function ve(ce){return typeof Blob!="undefined"&&ce instanceof Blob}je.isBlob=ve},{}],65:[function(oe,ze,je){(function(ve){(function(){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.isBuffer=void 0;function ce(we){return ve.isBuffer(we)}je.isBuffer=ce}).call(this)}).call(this,{isBuffer:oe("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.isDingTalk=void 0;function ce(){return!!(ve.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}je.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,ze,je){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.isFile=void 0,je.isFile=function(ve){return typeof File!="undefined"&&ve instanceof File}},{}],68:[function(oe,ze,je){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.isFunction=void 0,je.isFunction=function(ve){return typeof ve=="function"}},{}],69:[function(oe,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.isIP=void 0,je.isIP=function(ve){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(ve)||we.test(ve)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(oe,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.isObject=void 0,je.isObject=function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(oe,ze,je){"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(je,"__esModule",{value:!0}),je.lowercaseKeyHeader=void 0;var ve=oe("./isObject");function ce(we){var Me={};return ve.isObject(we)&&Object.keys(we).forEach(function(Se){Me[Se.toLowerCase()]=we[Se]}),Me}je.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,ze,je){"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(je,"__esModule",{value:!0}),je.obj2xml=void 0;var ve=oe("./formatObjKey");function ce(Me){return Object.prototype.toString.call(Me).replace(/(.*? |])/g,"").toLowerCase()}function we(Me,Se){var Pe="";return Se&&Se.headers&&(Pe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),Se&&Se.firstUpperCase&&(Me=ve.formatObjKey(Me,"firstUpperCase")),ce(Me)==="object"?Object.keys(Me).forEach(function(me){ce(Me[me])!=="undefined"&&ce(Me[me])!=="null"&&(ce(Me[me])==="string"||ce(Me[me])==="number"?Pe+="<".concat(me,">").concat(Me[me],"</").concat(me,">"):ce(Me[me])==="object"?Pe+="<".concat(me,">").concat(we(Me[me]),"</").concat(me,">"):ce(Me[me])==="array"?Pe+=Me[me].map(function(xe){return"<".concat(me,">").concat(we(xe),"</").concat(me,">")}).join(""):Pe+="<".concat(me,">").concat(Me[me].toString(),"</").concat(me,">"))}):Pe+=Me.toString(),Pe}je.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,ze,je){"use strict";oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.symbol.iterator.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/es.object.assign.js");function ve(Se,Pe){var me=typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(!me){if(Array.isArray(Se)||(me=ce(Se))||Pe&&Se&&typeof Se.length=="number"){me&&(Se=me);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(){me=me.call(Se)},n:function(){var le=me.next();return z=le.done,le},e:function(le){ee=!0,ae=le},f:function(){try{!z&&me.return!=null&&me.return()}finally{if(ee)throw ae}}}}function ce(Se,Pe){if(Se){if(typeof Se=="string")return we(Se,Pe);var me=Object.prototype.toString.call(Se).slice(8,-1);if(me==="Object"&&Se.constructor&&(me=Se.constructor.name),me==="Map"||me==="Set")return Array.from(Se);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return we(Se,Pe)}}function we(Se,Pe){(Pe==null||Pe>Se.length)&&(Pe=Se.length);for(var me=0,xe=new Array(Pe);me<Pe;me++)xe[me]=Se[me];return xe}Object.defineProperty(je,"__esModule",{value:!0}),je.omit=void 0;function Me(Se,Pe){var me=Object.assign({},Se),xe=ve(Pe),fe;try{for(xe.s();!(fe=xe.n()).done;){var z=fe.value;delete me[z]}}catch(ee){xe.e(ee)}finally{xe.f()}return me}je.omit=Me},{"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,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.retry=void 0;function ve(ce,we){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=0,Pe=Me.retryDelay,me=Pe===void 0?500:Pe,xe=Me.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))},me)):(Se=0,pe(be))})})};return z}je.retry=ve},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(oe,ze,je){"use strict";var ve=function(Se){return Se&&Se.__esModule?Se:{default:Se}};Object.defineProperty(je,"__esModule",{value:!0}),je.setRegion=void 0;var ce=ve(oe("url")),we=oe("./checkConfigValid");function Me(Se){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;we.checkConfigValid(Se,"region");var xe=me?"https://":"http://",fe=Pe?"-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)}je.setRegion=Me},{"./checkConfigValid":52,url:472}],76:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.object.assign.js");var we=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.checkCredentials=je.setSTSToken=void 0;var Me=oe("./formatObjKey");function Se(){return Pe.apply(this,arguments)}function Pe(){return Pe=(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=Me.formatObjKey(z,"firstLowerCase"),z.securityToken&&(z.stsToken=z.securityToken),me(z),Object.assign(this.options,z);case 12:ae.next=15;break;case 14:this.stsTokenFreshTime=fe;case 15:return ae.abrupt("return",null);case 16:case"end":return ae.stop()}},xe,this)})),Pe.apply(this,arguments)}je.setSTSToken=Se;function me(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))})}je.checkCredentials=me},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(oe,ze,je){function ve(we,Me,Se,Pe,me,xe,fe){try{var z=we[xe](fe),ee=z.value}catch(ae){Se(ae);return}z.done?Me(ee):Promise.resolve(ee).then(Pe,me)}function ce(we){return function(){var Me=this,Se=arguments;return new Promise(function(Pe,me){var xe=we.apply(Me,Se);function fe(ee){ve(xe,Pe,me,fe,z,"next",ee)}function z(ee){ve(xe,Pe,me,fe,z,"throw",ee)}fe(void 0)})}}ze.exports=ce,ze.exports.__esModule=!0,ze.exports.default=ze.exports},{}],78:[function(oe,ze,je){function ve(ce){return ce&&ce.__esModule?ce:{default:ce}}ze.exports=ve,ze.exports.__esModule=!0,ze.exports.default=ze.exports},{}],79:[function(oe,ze,je){function ve(ce){"@babel/helpers - typeof";return ze.exports=ve=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},ze.exports.__esModule=!0,ze.exports.default=ze.exports,ve(ce)}ze.exports=ve,ze.exports.__esModule=!0,ze.exports.default=ze.exports},{}],80:[function(oe,ze,je){ze.exports=oe("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(oe,ze,je){ze.exports=ve,ze.exports.HttpsAgent=ve;function ve(){}},{}],82:[function(oe,ze,je){(function(ve){(function(){"use strict";var ce=oe("object-assign");function we(Qe,ut){if(Qe===ut)return 0;for(var dt=Qe.length,St=ut.length,qe=0,it=Math.min(dt,St);qe<it;++qe)if(Qe[qe]!==ut[qe]){dt=Qe[qe],St=ut[qe];break}return dt<St?-1:St<dt?1:0}function Me(Qe){return ve.Buffer&&typeof ve.Buffer.isBuffer=="function"?ve.Buffer.isBuffer(Qe):!!(Qe!=null&&Qe._isBuffer)}var Se=oe("util/"),Pe=Object.prototype.hasOwnProperty,me=Array.prototype.slice,xe=function(){return function(){}.name==="foo"}();function fe(Qe){return Object.prototype.toString.call(Qe)}function z(Qe){return Me(Qe)||typeof ve.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Qe):Qe?!!(Qe instanceof DataView||Qe.buffer&&Qe.buffer instanceof ArrayBuffer):!1}var ee=ze.exports=Ce,ae=/\s*function\s+([^\(\s]*)\s*/;function re(Qe){if(Se.isFunction(Qe)){if(xe)return Qe.name;var ut=Qe.toString(),dt=ut.match(ae);return dt&&dt[1]}}ee.AssertionError=function(ut){this.name="AssertionError",this.actual=ut.actual,this.expected=ut.expected,this.operator=ut.operator,ut.message?(this.message=ut.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var dt=ut.stackStartFunction||be;if(Error.captureStackTrace)Error.captureStackTrace(this,dt);else{var St=new Error;if(St.stack){var qe=St.stack,it=re(dt),pt=qe.indexOf(`
|
|
|
`+it);if(pt>=0){var wt=qe.indexOf(`
|
|
|
`,pt+1);qe=qe.substring(wt+1)}this.stack=qe}}},Se.inherits(ee.AssertionError,Error);function le(Qe,ut){return typeof Qe=="string"?Qe.length<ut?Qe:Qe.slice(0,ut):Qe}function ue(Qe){if(xe||!Se.isFunction(Qe))return Se.inspect(Qe);var ut=re(Qe),dt=ut?": "+ut:"";return"[Function"+dt+"]"}function pe(Qe){return le(ue(Qe.actual),128)+" "+Qe.operator+" "+le(ue(Qe.expected),128)}function be(Qe,ut,dt,St,qe){throw new ee.AssertionError({message:dt,actual:Qe,expected:ut,operator:St,stackStartFunction:qe})}ee.fail=be;function Ce(Qe,ut){Qe||be(Qe,!0,ut,"==",ee.ok)}ee.ok=Ce,ee.equal=function(ut,dt,St){ut!=dt&&be(ut,dt,St,"==",ee.equal)},ee.notEqual=function(ut,dt,St){ut==dt&&be(ut,dt,St,"!=",ee.notEqual)},ee.deepEqual=function(ut,dt,St){Ie(ut,dt,!1)||be(ut,dt,St,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(ut,dt,St){Ie(ut,dt,!0)||be(ut,dt,St,"deepStrictEqual",ee.deepStrictEqual)};function Ie(Qe,ut,dt,St){if(Qe===ut)return!0;if(Me(Qe)&&Me(ut))return we(Qe,ut)===0;if(Se.isDate(Qe)&&Se.isDate(ut))return Qe.getTime()===ut.getTime();if(Se.isRegExp(Qe)&&Se.isRegExp(ut))return Qe.source===ut.source&&Qe.global===ut.global&&Qe.multiline===ut.multiline&&Qe.lastIndex===ut.lastIndex&&Qe.ignoreCase===ut.ignoreCase;if((Qe===null||typeof Qe!="object")&&(ut===null||typeof ut!="object"))return dt?Qe===ut:Qe==ut;if(z(Qe)&&z(ut)&&fe(Qe)===fe(ut)&&!(Qe instanceof Float32Array||Qe instanceof Float64Array))return we(new Uint8Array(Qe.buffer),new Uint8Array(ut.buffer))===0;if(Me(Qe)!==Me(ut))return!1;St=St||{actual:[],expected:[]};var qe=St.actual.indexOf(Qe);return qe!==-1&&qe===St.expected.indexOf(ut)?!0:(St.actual.push(Qe),St.expected.push(ut),Le(Qe,ut,dt,St))}function Oe(Qe){return Object.prototype.toString.call(Qe)=="[object Arguments]"}function Le(Qe,ut,dt,St){if(Qe==null||ut===null||ut===void 0)return!1;if(Se.isPrimitive(Qe)||Se.isPrimitive(ut))return Qe===ut;if(dt&&Object.getPrototypeOf(Qe)!==Object.getPrototypeOf(ut))return!1;var qe=Oe(Qe),it=Oe(ut);if(qe&&!it||!qe&&it)return!1;if(qe)return Qe=me.call(Qe),ut=me.call(ut),Ie(Qe,ut,dt);var pt=Ve(Qe),wt=Ve(ut),xt,ft;if(pt.length!==wt.length)return!1;for(pt.sort(),wt.sort(),ft=pt.length-1;ft>=0;ft--)if(pt[ft]!==wt[ft])return!1;for(ft=pt.length-1;ft>=0;ft--)if(xt=pt[ft],!Ie(Qe[xt],ut[xt],dt,St))return!1;return!0}ee.notDeepEqual=function(ut,dt,St){Ie(ut,dt,!1)&&be(ut,dt,St,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=Ne;function Ne(Qe,ut,dt){Ie(Qe,ut,!0)&&be(Qe,ut,dt,"notDeepStrictEqual",Ne)}ee.strictEqual=function(ut,dt,St){ut!==dt&&be(ut,dt,St,"===",ee.strictEqual)},ee.notStrictEqual=function(ut,dt,St){ut===dt&&be(ut,dt,St,"!==",ee.notStrictEqual)};function De(Qe,ut){if(!Qe||!ut)return!1;if(Object.prototype.toString.call(ut)=="[object RegExp]")return ut.test(Qe);try{if(Qe instanceof ut)return!0}catch(dt){}return Error.isPrototypeOf(ut)?!1:ut.call({},Qe)===!0}function Re(Qe){var ut;try{Qe()}catch(dt){ut=dt}return ut}function Je(Qe,ut,dt,St){var qe;if(typeof ut!="function")throw new TypeError('"block" argument must be a function');typeof dt=="string"&&(St=dt,dt=null),qe=Re(ut),St=(dt&&dt.name?" ("+dt.name+").":".")+(St?" "+St:"."),Qe&&!qe&&be(qe,dt,"Missing expected exception"+St);var it=typeof St=="string",pt=!Qe&&Se.isError(qe),wt=!Qe&&qe&&!dt;if((pt&&it&&De(qe,dt)||wt)&&be(qe,dt,"Got unwanted exception"+St),Qe&&qe&&dt&&!De(qe,dt)||!Qe&&qe)throw qe}ee.throws=function(Qe,ut,dt){Je(!0,Qe,ut,dt)},ee.doesNotThrow=function(Qe,ut,dt){Je(!1,Qe,ut,dt)},ee.ifError=function(Qe){if(Qe)throw Qe};function _e(Qe,ut){Qe||be(Qe,!0,ut,"==",_e)}ee.strict=ce(_e,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var Ve=Object.keys||function(Qe){var ut=[];for(var dt in Qe)Pe.call(Qe,dt)&&ut.push(dt);return ut}}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(oe,ze,je){typeof Object.create=="function"?ze.exports=function(ce,we){ce.super_=we,ce.prototype=Object.create(we.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}})}:ze.exports=function(ce,we){ce.super_=we;var Me=function(){};Me.prototype=we.prototype,ce.prototype=new Me,ce.prototype.constructor=ce}},{}],84:[function(oe,ze,je){ze.exports=function(ce){return ce&&typeof ce=="object"&&typeof ce.copy=="function"&&typeof ce.fill=="function"&&typeof ce.readUInt8=="function"}},{}],85:[function(oe,ze,je){(function(ve,ce){(function(){var we=/%[sdj%]/g;je.format=function(wt){if(!Le(wt)){for(var xt=[],ft=0;ft<arguments.length;ft++)xt.push(Pe(arguments[ft]));return xt.join(" ")}for(var ft=1,mt=arguments,yt=mt.length,It=String(wt).replace(we,function(Ut){if(Ut==="%%")return"%";if(ft>=yt)return Ut;switch(Ut){case"%s":return String(mt[ft++]);case"%d":return Number(mt[ft++]);case"%j":try{return JSON.stringify(mt[ft++])}catch(Pt){return"[Circular]"}default:return Ut}}),kt=mt[ft];ft<yt;kt=mt[++ft])Ce(kt)||!Je(kt)?It+=" "+kt:It+=" "+Pe(kt);return It},je.deprecate=function(wt,xt){if(De(ce.process))return function(){return je.deprecate(wt,xt).apply(this,arguments)};if(ve.noDeprecation===!0)return wt;var ft=!1;function mt(){if(!ft){if(ve.throwDeprecation)throw new Error(xt);ve.traceDeprecation?console.trace(xt):console.error(xt),ft=!0}return wt.apply(this,arguments)}return mt};var Me={},Se;je.debuglog=function(wt){if(De(Se)&&(Se=ve.env.NODE_DEBUG||""),wt=wt.toUpperCase(),!Me[wt])if(new RegExp("\\b"+wt+"\\b","i").test(Se)){var xt=ve.pid;Me[wt]=function(){var ft=je.format.apply(je,arguments);console.error("%s %d: %s",wt,xt,ft)}}else Me[wt]=function(){};return Me[wt]};function Pe(wt,xt){var ft={seen:[],stylize:xe};return arguments.length>=3&&(ft.depth=arguments[2]),arguments.length>=4&&(ft.colors=arguments[3]),be(xt)?ft.showHidden=xt:xt&&je._extend(ft,xt),De(ft.showHidden)&&(ft.showHidden=!1),De(ft.depth)&&(ft.depth=2),De(ft.colors)&&(ft.colors=!1),De(ft.customInspect)&&(ft.customInspect=!0),ft.colors&&(ft.stylize=me),z(ft,wt,ft.depth)}je.inspect=Pe,Pe.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]},Pe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function me(wt,xt){var ft=Pe.styles[xt];return ft?"\x1B["+Pe.colors[ft][0]+"m"+wt+"\x1B["+Pe.colors[ft][1]+"m":wt}function xe(wt,xt){return wt}function fe(wt){var xt={};return wt.forEach(function(ft,mt){xt[ft]=!0}),xt}function z(wt,xt,ft){if(wt.customInspect&&xt&&Qe(xt.inspect)&&xt.inspect!==je.inspect&&!(xt.constructor&&xt.constructor.prototype===xt)){var mt=xt.inspect(ft,wt);return Le(mt)||(mt=z(wt,mt,ft)),mt}var yt=ee(wt,xt);if(yt)return yt;var It=Object.keys(xt),kt=fe(It);if(wt.showHidden&&(It=Object.getOwnPropertyNames(xt)),Ve(xt)&&(It.indexOf("message")>=0||It.indexOf("description")>=0))return ae(xt);if(It.length===0){if(Qe(xt)){var Ut=xt.name?": "+xt.name:"";return wt.stylize("[Function"+Ut+"]","special")}if(Re(xt))return wt.stylize(RegExp.prototype.toString.call(xt),"regexp");if(_e(xt))return wt.stylize(Date.prototype.toString.call(xt),"date");if(Ve(xt))return ae(xt)}var Pt="",Ct=!1,st=["{","}"];if(pe(xt)&&(Ct=!0,st=["[","]"]),Qe(xt)){var bt=xt.name?": "+xt.name:"";Pt=" [Function"+bt+"]"}if(Re(xt)&&(Pt=" "+RegExp.prototype.toString.call(xt)),_e(xt)&&(Pt=" "+Date.prototype.toUTCString.call(xt)),Ve(xt)&&(Pt=" "+ae(xt)),It.length===0&&(!Ct||xt.length==0))return st[0]+Pt+st[1];if(ft<0)return Re(xt)?wt.stylize(RegExp.prototype.toString.call(xt),"regexp"):wt.stylize("[Object]","special");wt.seen.push(xt);var at;return Ct?at=re(wt,xt,ft,kt,It):at=It.map(function(ct){return le(wt,xt,ft,kt,ct,Ct)}),wt.seen.pop(),ue(at,Pt,st)}function ee(wt,xt){if(De(xt))return wt.stylize("undefined","undefined");if(Le(xt)){var ft="'"+JSON.stringify(xt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return wt.stylize(ft,"string")}if(Oe(xt))return wt.stylize(""+xt,"number");if(be(xt))return wt.stylize(""+xt,"boolean");if(Ce(xt))return wt.stylize("null","null")}function ae(wt){return"["+Error.prototype.toString.call(wt)+"]"}function re(wt,xt,ft,mt,yt){for(var It=[],kt=0,Ut=xt.length;kt<Ut;++kt)pt(xt,String(kt))?It.push(le(wt,xt,ft,mt,String(kt),!0)):It.push("");return yt.forEach(function(Pt){Pt.match(/^\d+$/)||It.push(le(wt,xt,ft,mt,Pt,!0))}),It}function le(wt,xt,ft,mt,yt,It){var kt,Ut,Pt;if(Pt=Object.getOwnPropertyDescriptor(xt,yt)||{value:xt[yt]},Pt.get?Pt.set?Ut=wt.stylize("[Getter/Setter]","special"):Ut=wt.stylize("[Getter]","special"):Pt.set&&(Ut=wt.stylize("[Setter]","special")),pt(mt,yt)||(kt="["+yt+"]"),Ut||(wt.seen.indexOf(Pt.value)<0?(Ce(ft)?Ut=z(wt,Pt.value,null):Ut=z(wt,Pt.value,ft-1),Ut.indexOf(`
|
|
|
`)>-1&&(It?Ut=Ut.split(`
|
|
|
`).map(function(Ct){return" "+Ct}).join(`
|
|
|
`).substr(2):Ut=`
|
|
|
`+Ut.split(`
|
|
|
`).map(function(Ct){return" "+Ct}).join(`
|
|
|
`))):Ut=wt.stylize("[Circular]","special")),De(kt)){if(It&&yt.match(/^\d+$/))return Ut;kt=JSON.stringify(""+yt),kt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(kt=kt.substr(1,kt.length-2),kt=wt.stylize(kt,"name")):(kt=kt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),kt=wt.stylize(kt,"string"))}return kt+": "+Ut}function ue(wt,xt,ft){var mt=0,yt=wt.reduce(function(It,kt){return mt++,kt.indexOf(`
|
|
|
`)>=0&&mt++,It+kt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return yt>60?ft[0]+(xt===""?"":xt+`
|
|
|
`)+" "+wt.join(`,
|
|
|
`)+" "+ft[1]:ft[0]+xt+" "+wt.join(", ")+" "+ft[1]}function pe(wt){return Array.isArray(wt)}je.isArray=pe;function be(wt){return typeof wt=="boolean"}je.isBoolean=be;function Ce(wt){return wt===null}je.isNull=Ce;function Ie(wt){return wt==null}je.isNullOrUndefined=Ie;function Oe(wt){return typeof wt=="number"}je.isNumber=Oe;function Le(wt){return typeof wt=="string"}je.isString=Le;function Ne(wt){return typeof wt=="symbol"}je.isSymbol=Ne;function De(wt){return wt===void 0}je.isUndefined=De;function Re(wt){return Je(wt)&&dt(wt)==="[object RegExp]"}je.isRegExp=Re;function Je(wt){return typeof wt=="object"&&wt!==null}je.isObject=Je;function _e(wt){return Je(wt)&&dt(wt)==="[object Date]"}je.isDate=_e;function Ve(wt){return Je(wt)&&(dt(wt)==="[object Error]"||wt instanceof Error)}je.isError=Ve;function Qe(wt){return typeof wt=="function"}je.isFunction=Qe;function ut(wt){return wt===null||typeof wt=="boolean"||typeof wt=="number"||typeof wt=="string"||typeof wt=="symbol"||typeof wt=="undefined"}je.isPrimitive=ut,je.isBuffer=oe("./support/isBuffer");function dt(wt){return Object.prototype.toString.call(wt)}function St(wt){return wt<10?"0"+wt.toString(10):wt.toString(10)}var qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function it(){var wt=new Date,xt=[St(wt.getHours()),St(wt.getMinutes()),St(wt.getSeconds())].join(":");return[wt.getDate(),qe[wt.getMonth()],xt].join(" ")}je.log=function(){console.log("%s - %s",it(),je.format.apply(je,arguments))},je.inherits=oe("inherits"),je._extend=function(wt,xt){if(!xt||!Je(xt))return wt;for(var ft=Object.keys(xt),mt=ft.length;mt--;)wt[ft[mt]]=xt[ft[mt]];return wt};function pt(wt,xt){return Object.prototype.hasOwnProperty.call(wt,xt)}}).call(this)}).call(this,oe("_process"),typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(oe,ze,je){(function(ve){(function(){"use strict";var ce=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],we=typeof globalThis=="undefined"?ve:globalThis;ze.exports=function(){for(var Se=[],Pe=0;Pe<ce.length;Pe++)typeof we[ce[Pe]]=="function"&&(Se[Se.length]=ce[Pe]);return Se}}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(oe,ze,je){"use strict";je.byteLength=xe,je.toByteArray=z,je.fromByteArray=re;for(var ve=[],ce=[],we=typeof Uint8Array!="undefined"?Uint8Array:Array,Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=0,Pe=Me.length;Se<Pe;++Se)ve[Se]=Me[Se],ce[Me.charCodeAt(Se)]=Se;ce[45]=62,ce[95]=63;function me(le){var ue=le.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var pe=le.indexOf("=");pe===-1&&(pe=ue);var be=pe===ue?0:4-pe%4;return[pe,be]}function xe(le){var ue=me(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=me(le),be=pe[0],Ce=pe[1],Ie=new we(fe(le,be,Ce)),Oe=0,Le=Ce>0?be-4:be,Ne;for(Ne=0;Ne<Le;Ne+=4)ue=ce[le.charCodeAt(Ne)]<<18|ce[le.charCodeAt(Ne+1)]<<12|ce[le.charCodeAt(Ne+2)]<<6|ce[le.charCodeAt(Ne+3)],Ie[Oe++]=ue>>16&255,Ie[Oe++]=ue>>8&255,Ie[Oe++]=ue&255;return Ce===2&&(ue=ce[le.charCodeAt(Ne)]<<2|ce[le.charCodeAt(Ne+1)]>>4,Ie[Oe++]=ue&255),Ce===1&&(ue=ce[le.charCodeAt(Ne)]<<10|ce[le.charCodeAt(Ne+1)]<<4|ce[le.charCodeAt(Ne+2)]>>2,Ie[Oe++]=ue>>8&255,Ie[Oe++]=ue&255),Ie}function ee(le){return ve[le>>18&63]+ve[le>>12&63]+ve[le>>6&63]+ve[le&63]}function ae(le,ue,pe){for(var be,Ce=[],Ie=ue;Ie<pe;Ie+=3)be=(le[Ie]<<16&16711680)+(le[Ie+1]<<8&65280)+(le[Ie+2]&255),Ce.push(ee(be));return Ce.join("")}function re(le){for(var ue,pe=le.length,be=pe%3,Ce=[],Ie=16383,Oe=0,Le=pe-be;Oe<Le;Oe+=Ie)Ce.push(ae(le,Oe,Oe+Ie>Le?Le:Oe+Ie));return be===1?(ue=le[pe-1],Ce.push(ve[ue>>2]+ve[ue<<4&63]+"==")):be===2&&(ue=(le[pe-2]<<8)+le[pe-1],Ce.push(ve[ue>>10]+ve[ue>>4&63]+ve[ue<<2&63]+"=")),Ce.join("")}},{}],88:[function(oe,ze,je){(function(ve,ce,we){typeof ze!="undefined"&&ze.exports?ze.exports=we():typeof Ge=="function"&&Ge.amd?Ge(ce,we):ve[ce]=we()})(this,"bowser",function(){var ve=!0;function ce(fe){function z(xt){var ft=fe.match(xt);return ft&&ft.length>1&&ft[1]||""}function ee(xt){var ft=fe.match(xt);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),Ie=/sailfish/i.test(fe),Oe=/tizen/i.test(fe),Le=/(web|hpw)(o|0)s/i.test(fe),Ne=/windows phone/i.test(fe),De=/SamsungBrowser/i.test(fe),Re=!Ne&&/windows/i.test(fe),Je=!ae&&!Ce&&/macintosh/i.test(fe),_e=!le&&!Ie&&!Oe&&!Le&&/linux/i.test(fe),Ve=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Qe=z(/version\/(\d+(\.\d+)?)/i),ut=/tablet/i.test(fe)&&!/tablet pc/i.test(fe),dt=!ut&&/[^-]mobi/i.test(fe),St=/xbox/i.test(fe),qe;/opera/i.test(fe)?qe={name:"Opera",opera:ve,version:Qe||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(fe)?qe={name:"Opera",opera:ve,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Qe}:/SamsungBrowser/i.test(fe)?qe={name:"Samsung Internet for Android",samsungBrowser:ve,version:Qe||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(fe)?qe={name:"NAVER Whale browser",whale:ve,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(fe)?qe={name:"MZ Browser",mzbrowser:ve,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(fe)?qe={name:"Opera Coast",coast:ve,version:Qe||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(fe)?qe={name:"Focus",focus:ve,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(fe)?qe={name:"Yandex Browser",yandexbrowser:ve,version:Qe||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(fe)?qe={name:"UC Browser",ucbrowser:ve,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(fe)?qe={name:"Maxthon",maxthon:ve,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(fe)?qe={name:"Epiphany",epiphany:ve,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(fe)?qe={name:"Puffin",puffin:ve,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(fe)?qe={name:"Sleipnir",sleipnir:ve,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(fe)?qe={name:"K-Meleon",kMeleon:ve,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ne?(qe={name:"Windows Phone",osname:"Windows Phone",windowsphone:ve},Ve?(qe.msedge=ve,qe.version=Ve):(qe.msie=ve,qe.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(fe)?qe={name:"Internet Explorer",msie:ve,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:be?qe={name:"Chrome",osname:"Chrome OS",chromeos:ve,chromeBook:ve,chrome:ve,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(fe)?qe={name:"Microsoft Edge",msedge:ve,version:Ve}:/vivaldi/i.test(fe)?qe={name:"Vivaldi",vivaldi:ve,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||Qe}:Ie?qe={name:"Sailfish",osname:"Sailfish OS",sailfish:ve,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(fe)?qe={name:"SeaMonkey",seamonkey:ve,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(fe)?(qe={name:"Firefox",firefox:ve,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(fe)&&(qe.firefoxos=ve,qe.osname="Firefox OS")):Ce?qe={name:"Amazon Silk",silk:ve,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(fe)?qe={name:"PhantomJS",phantom:ve,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(fe)?qe={name:"SlimerJS",slimer:ve,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(fe)||/rim\stablet/i.test(fe)?qe={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ve,version:Qe||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Le?(qe={name:"WebOS",osname:"WebOS",webos:ve,version:Qe||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(fe)&&(qe.touchpad=ve)):/bada/i.test(fe)?qe={name:"Bada",osname:"Bada",bada:ve,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:Oe?qe={name:"Tizen",osname:"Tizen",tizen:ve,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Qe}:/qupzilla/i.test(fe)?qe={name:"QupZilla",qupzilla:ve,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Qe}:/chromium/i.test(fe)?qe={name:"Chromium",chromium:ve,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Qe}:/chrome|crios|crmo/i.test(fe)?qe={name:"Chrome",chrome:ve,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?qe={name:"Android",version:Qe}:/safari|applewebkit/i.test(fe)?(qe={name:"Safari",safari:ve},Qe&&(qe.version=Qe)):ae?(qe={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},Qe&&(qe.version=Qe)):/googlebot/i.test(fe)?qe={name:"Googlebot",googlebot:ve,version:z(/googlebot\/(\d+(\.\d+))/i)||Qe}:qe={name:z(/^(.*)\/(.*) /),version:ee(/^(.*)\/(.*) /)},!qe.msedge&&/(apple)?webkit/i.test(fe)?(/(apple)?webkit\/537\.36/i.test(fe)?(qe.name=qe.name||"Blink",qe.blink=ve):(qe.name=qe.name||"Webkit",qe.webkit=ve),!qe.version&&Qe&&(qe.version=Qe)):!qe.opera&&/gecko\//i.test(fe)&&(qe.name=qe.name||"Gecko",qe.gecko=ve,qe.version=qe.version||z(/gecko\/(\d+(\.\d+)?)/i)),!qe.windowsphone&&(le||qe.silk)?(qe.android=ve,qe.osname="Android"):!qe.windowsphone&&ae?(qe[ae]=ve,qe.ios=ve,qe.osname="iOS"):Je?(qe.mac=ve,qe.osname="macOS"):St?(qe.xbox=ve,qe.osname="Xbox"):Re?(qe.windows=ve,qe.osname="Windows"):_e&&(qe.linux=ve,qe.osname="Linux");function it(xt){switch(xt){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="";qe.windows?pt=it(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):qe.windowsphone?pt=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):qe.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):qe.webos?pt=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):qe.blackberry?pt=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):qe.bada?pt=z(/bada\/(\d+(\.\d+)*)/i):qe.tizen&&(pt=z(/tizen[\/\s](\d+(\.\d+)*)/i)),pt&&(qe.osversion=pt);var wt=!qe.windows&&pt.split(".")[0];return ut||pe||ae=="ipad"||le&&(wt==3||wt>=4&&!dt)||qe.silk?qe.tablet=ve:(dt||ae=="iphone"||ae=="ipod"||le||ue||qe.blackberry||qe.webos||qe.bada)&&(qe.mobile=ve),qe.msedge||qe.msie&&qe.version>=10||qe.yandexbrowser&&qe.version>=15||qe.vivaldi&&qe.version>=1||qe.chrome&&qe.version>=20||qe.samsungBrowser&&qe.version>=4||qe.whale&&Pe([qe.version,"1.0"])===1||qe.mzbrowser&&Pe([qe.version,"6.0"])===1||qe.focus&&Pe([qe.version,"1.0"])===1||qe.firefox&&qe.version>=20||qe.safari&&qe.version>=6||qe.opera&&qe.version>=10||qe.ios&&qe.osversion&&qe.osversion.split(".")[0]>=6||qe.blackberry&&qe.version>=10.1||qe.chromium&&qe.version>=20?qe.a=ve:qe.msie&&qe.version<10||qe.chrome&&qe.version<20||qe.firefox&&qe.version<20||qe.safari&&qe.version<6||qe.opera&&qe.version<10||qe.ios&&qe.osversion&&qe.osversion.split(".")[0]<6||qe.chromium&&qe.version<20?qe.c=ve:qe.x=ve,qe}var 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 Me(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 Pe(fe){for(var z=Math.max(Me(fe[0]),Me(fe[1])),ee=Se(fe,function(ae){var re=z-Me(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 me(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 Pe([re,fe[le]])<0}return z}function xe(fe,z,ee){return!me(fe,z,ee)}return we.isUnsupportedBrowser=me,we.compareVersions=Pe,we.check=xe,we._detect=ce,we.detect=ce,we})},{}],89:[function(oe,ze,je){},{}],90:[function(oe,ze,je){(function(ve){(function(){"use strict";var ce=oe("base64-js"),we=oe("ieee754");je.Buffer=me,je.SlowBuffer=be,je.INSPECT_MAX_BYTES=50;var Me=2147483647;je.kMaxLength=Me,me.TYPED_ARRAY_SUPPORT=Se(),!me.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Se(){try{var Xe=new Uint8Array(1);return Xe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Xe.foo()===42}catch(Ue){return!1}}Object.defineProperty(me.prototype,"parent",{enumerable:!0,get:function(){if(me.isBuffer(this))return this.buffer}}),Object.defineProperty(me.prototype,"offset",{enumerable:!0,get:function(){if(me.isBuffer(this))return this.byteOffset}});function Pe(Xe){if(Xe>Me)throw new RangeError('The value "'+Xe+'" is invalid for option "size"');var Ue=new Uint8Array(Xe);return Ue.__proto__=me.prototype,Ue}function me(Xe,Ue,$e){if(typeof Xe=="number"){if(typeof Ue=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(Xe)}return xe(Xe,Ue,$e)}typeof Symbol!="undefined"&&Symbol.species!=null&&me[Symbol.species]===me&&Object.defineProperty(me,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),me.poolSize=8192;function xe(Xe,Ue,$e){if(typeof Xe=="string")return ae(Xe,Ue);if(ArrayBuffer.isView(Xe))return re(Xe);if(Xe==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Xe);if(vt(Xe,ArrayBuffer)||Xe&&vt(Xe.buffer,ArrayBuffer))return le(Xe,Ue,$e);if(typeof Xe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var tt=Xe.valueOf&&Xe.valueOf();if(tt!=null&&tt!==Xe)return me.from(tt,Ue,$e);var We=ue(Xe);if(We)return We;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Xe[Symbol.toPrimitive]=="function")return me.from(Xe[Symbol.toPrimitive]("string"),Ue,$e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Xe)}me.from=function(Xe,Ue,$e){return xe(Xe,Ue,$e)},me.prototype.__proto__=Uint8Array.prototype,me.__proto__=Uint8Array;function fe(Xe){if(typeof Xe!="number")throw new TypeError('"size" argument must be of type number');if(Xe<0)throw new RangeError('The value "'+Xe+'" is invalid for option "size"')}function z(Xe,Ue,$e){return fe(Xe),Xe<=0?Pe(Xe):Ue!==void 0?typeof $e=="string"?Pe(Xe).fill(Ue,$e):Pe(Xe).fill(Ue):Pe(Xe)}me.alloc=function(Xe,Ue,$e){return z(Xe,Ue,$e)};function ee(Xe){return fe(Xe),Pe(Xe<0?0:pe(Xe)|0)}me.allocUnsafe=function(Xe){return ee(Xe)},me.allocUnsafeSlow=function(Xe){return ee(Xe)};function ae(Xe,Ue){if((typeof Ue!="string"||Ue==="")&&(Ue="utf8"),!me.isEncoding(Ue))throw new TypeError("Unknown encoding: "+Ue);var $e=Ce(Xe,Ue)|0,tt=Pe($e),We=tt.write(Xe,Ue);return We!==$e&&(tt=tt.slice(0,We)),tt}function re(Xe){for(var Ue=Xe.length<0?0:pe(Xe.length)|0,$e=Pe(Ue),tt=0;tt<Ue;tt+=1)$e[tt]=Xe[tt]&255;return $e}function le(Xe,Ue,$e){if(Ue<0||Xe.byteLength<Ue)throw new RangeError('"offset" is outside of buffer bounds');if(Xe.byteLength<Ue+($e||0))throw new RangeError('"length" is outside of buffer bounds');var tt;return Ue===void 0&&$e===void 0?tt=new Uint8Array(Xe):$e===void 0?tt=new Uint8Array(Xe,Ue):tt=new Uint8Array(Xe,Ue,$e),tt.__proto__=me.prototype,tt}function ue(Xe){if(me.isBuffer(Xe)){var Ue=pe(Xe.length)|0,$e=Pe(Ue);return $e.length===0||Xe.copy($e,0,0,Ue),$e}if(Xe.length!==void 0)return typeof Xe.length!="number"||nt(Xe.length)?Pe(0):re(Xe);if(Xe.type==="Buffer"&&Array.isArray(Xe.data))return re(Xe.data)}function pe(Xe){if(Xe>=Me)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Me.toString(16)+" bytes");return Xe|0}function be(Xe){return+Xe!=Xe&&(Xe=0),me.alloc(+Xe)}me.isBuffer=function(Ue){return Ue!=null&&Ue._isBuffer===!0&&Ue!==me.prototype},me.compare=function(Ue,$e){if(vt(Ue,Uint8Array)&&(Ue=me.from(Ue,Ue.offset,Ue.byteLength)),vt($e,Uint8Array)&&($e=me.from($e,$e.offset,$e.byteLength)),!me.isBuffer(Ue)||!me.isBuffer($e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ue===$e)return 0;for(var tt=Ue.length,We=$e.length,Be=0,Te=Math.min(tt,We);Be<Te;++Be)if(Ue[Be]!==$e[Be]){tt=Ue[Be],We=$e[Be];break}return tt<We?-1:We<tt?1:0},me.isEncoding=function(Ue){switch(String(Ue).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},me.concat=function(Ue,$e){if(!Array.isArray(Ue))throw new TypeError('"list" argument must be an Array of Buffers');if(Ue.length===0)return me.alloc(0);var tt;if($e===void 0)for($e=0,tt=0;tt<Ue.length;++tt)$e+=Ue[tt].length;var We=me.allocUnsafe($e),Be=0;for(tt=0;tt<Ue.length;++tt){var Te=Ue[tt];if(vt(Te,Uint8Array)&&(Te=me.from(Te)),!me.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(We,Be),Be+=Te.length}return We};function Ce(Xe,Ue){if(me.isBuffer(Xe))return Xe.length;if(ArrayBuffer.isView(Xe)||vt(Xe,ArrayBuffer))return Xe.byteLength;if(typeof Xe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Xe);var $e=Xe.length,tt=arguments.length>2&&arguments[2]===!0;if(!tt&&$e===0)return 0;for(var We=!1;;)switch(Ue){case"ascii":case"latin1":case"binary":return $e;case"utf8":case"utf-8":return st(Xe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e*2;case"hex":return $e>>>1;case"base64":return ct(Xe).length;default:if(We)return tt?-1:st(Xe).length;Ue=(""+Ue).toLowerCase(),We=!0}}me.byteLength=Ce;function Ie(Xe,Ue,$e){var tt=!1;if((Ue===void 0||Ue<0)&&(Ue=0),Ue>this.length||(($e===void 0||$e>this.length)&&($e=this.length),$e<=0)||($e>>>=0,Ue>>>=0,$e<=Ue))return"";for(Xe||(Xe="utf8");;)switch(Xe){case"hex":return wt(this,Ue,$e);case"utf8":case"utf-8":return dt(this,Ue,$e);case"ascii":return it(this,Ue,$e);case"latin1":case"binary":return pt(this,Ue,$e);case"base64":return ut(this,Ue,$e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,Ue,$e);default:if(tt)throw new TypeError("Unknown encoding: "+Xe);Xe=(Xe+"").toLowerCase(),tt=!0}}me.prototype._isBuffer=!0;function Oe(Xe,Ue,$e){var tt=Xe[Ue];Xe[Ue]=Xe[$e],Xe[$e]=tt}me.prototype.swap16=function(){var Ue=this.length;if(Ue%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $e=0;$e<Ue;$e+=2)Oe(this,$e,$e+1);return this},me.prototype.swap32=function(){var Ue=this.length;if(Ue%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $e=0;$e<Ue;$e+=4)Oe(this,$e,$e+3),Oe(this,$e+1,$e+2);return this},me.prototype.swap64=function(){var Ue=this.length;if(Ue%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $e=0;$e<Ue;$e+=8)Oe(this,$e,$e+7),Oe(this,$e+1,$e+6),Oe(this,$e+2,$e+5),Oe(this,$e+3,$e+4);return this},me.prototype.toString=function(){var Ue=this.length;return Ue===0?"":arguments.length===0?dt(this,0,Ue):Ie.apply(this,arguments)},me.prototype.toLocaleString=me.prototype.toString,me.prototype.equals=function(Ue){if(!me.isBuffer(Ue))throw new TypeError("Argument must be a Buffer");return this===Ue?!0:me.compare(this,Ue)===0},me.prototype.inspect=function(){var Ue="",$e=je.INSPECT_MAX_BYTES;return Ue=this.toString("hex",0,$e).replace(/(.{2})/g,"$1 ").trim(),this.length>$e&&(Ue+=" ... "),"<Buffer "+Ue+">"},me.prototype.compare=function(Ue,$e,tt,We,Be){if(vt(Ue,Uint8Array)&&(Ue=me.from(Ue,Ue.offset,Ue.byteLength)),!me.isBuffer(Ue))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ue);if($e===void 0&&($e=0),tt===void 0&&(tt=Ue?Ue.length:0),We===void 0&&(We=0),Be===void 0&&(Be=this.length),$e<0||tt>Ue.length||We<0||Be>this.length)throw new RangeError("out of range index");if(We>=Be&&$e>=tt)return 0;if(We>=Be)return-1;if($e>=tt)return 1;if($e>>>=0,tt>>>=0,We>>>=0,Be>>>=0,this===Ue)return 0;for(var Te=Be-We,Ke=tt-$e,gt=Math.min(Te,Ke),Ze=this.slice(We,Be),Ot=Ue.slice($e,tt),zt=0;zt<gt;++zt)if(Ze[zt]!==Ot[zt]){Te=Ze[zt],Ke=Ot[zt];break}return Te<Ke?-1:Ke<Te?1:0};function Le(Xe,Ue,$e,tt,We){if(Xe.length===0)return-1;if(typeof $e=="string"?(tt=$e,$e=0):$e>2147483647?$e=2147483647:$e<-2147483648&&($e=-2147483648),$e=+$e,nt($e)&&($e=We?0:Xe.length-1),$e<0&&($e=Xe.length+$e),$e>=Xe.length){if(We)return-1;$e=Xe.length-1}else if($e<0)if(We)$e=0;else return-1;if(typeof Ue=="string"&&(Ue=me.from(Ue,tt)),me.isBuffer(Ue))return Ue.length===0?-1:Ne(Xe,Ue,$e,tt,We);if(typeof Ue=="number")return Ue=Ue&255,typeof Uint8Array.prototype.indexOf=="function"?We?Uint8Array.prototype.indexOf.call(Xe,Ue,$e):Uint8Array.prototype.lastIndexOf.call(Xe,Ue,$e):Ne(Xe,[Ue],$e,tt,We);throw new TypeError("val must be string, number or Buffer")}function Ne(Xe,Ue,$e,tt,We){var Be=1,Te=Xe.length,Ke=Ue.length;if(tt!==void 0&&(tt=String(tt).toLowerCase(),tt==="ucs2"||tt==="ucs-2"||tt==="utf16le"||tt==="utf-16le")){if(Xe.length<2||Ue.length<2)return-1;Be=2,Te/=2,Ke/=2,$e/=2}function gt(jt,Kt){return Be===1?jt[Kt]:jt.readUInt16BE(Kt*Be)}var Ze;if(We){var Ot=-1;for(Ze=$e;Ze<Te;Ze++)if(gt(Xe,Ze)===gt(Ue,Ot===-1?0:Ze-Ot)){if(Ot===-1&&(Ot=Ze),Ze-Ot+1===Ke)return Ot*Be}else Ot!==-1&&(Ze-=Ze-Ot),Ot=-1}else for($e+Ke>Te&&($e=Te-Ke),Ze=$e;Ze>=0;Ze--){for(var zt=!0,Yt=0;Yt<Ke;Yt++)if(gt(Xe,Ze+Yt)!==gt(Ue,Yt)){zt=!1;break}if(zt)return Ze}return-1}me.prototype.includes=function(Ue,$e,tt){return this.indexOf(Ue,$e,tt)!==-1},me.prototype.indexOf=function(Ue,$e,tt){return Le(this,Ue,$e,tt,!0)},me.prototype.lastIndexOf=function(Ue,$e,tt){return Le(this,Ue,$e,tt,!1)};function De(Xe,Ue,$e,tt){$e=Number($e)||0;var We=Xe.length-$e;tt?(tt=Number(tt),tt>We&&(tt=We)):tt=We;var Be=Ue.length;tt>Be/2&&(tt=Be/2);for(var Te=0;Te<tt;++Te){var Ke=parseInt(Ue.substr(Te*2,2),16);if(nt(Ke))return Te;Xe[$e+Te]=Ke}return Te}function Re(Xe,Ue,$e,tt){return Lt(st(Ue,Xe.length-$e),Xe,$e,tt)}function Je(Xe,Ue,$e,tt){return Lt(bt(Ue),Xe,$e,tt)}function _e(Xe,Ue,$e,tt){return Je(Xe,Ue,$e,tt)}function Ve(Xe,Ue,$e,tt){return Lt(ct(Ue),Xe,$e,tt)}function Qe(Xe,Ue,$e,tt){return Lt(at(Ue,Xe.length-$e),Xe,$e,tt)}me.prototype.write=function(Ue,$e,tt,We){if($e===void 0)We="utf8",tt=this.length,$e=0;else if(tt===void 0&&typeof $e=="string")We=$e,tt=this.length,$e=0;else if(isFinite($e))$e=$e>>>0,isFinite(tt)?(tt=tt>>>0,We===void 0&&(We="utf8")):(We=tt,tt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Be=this.length-$e;if((tt===void 0||tt>Be)&&(tt=Be),Ue.length>0&&(tt<0||$e<0)||$e>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Te=!1;;)switch(We){case"hex":return De(this,Ue,$e,tt);case"utf8":case"utf-8":return Re(this,Ue,$e,tt);case"ascii":return Je(this,Ue,$e,tt);case"latin1":case"binary":return _e(this,Ue,$e,tt);case"base64":return Ve(this,Ue,$e,tt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,Ue,$e,tt);default:if(Te)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Te=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ut(Xe,Ue,$e){return Ue===0&&$e===Xe.length?ce.fromByteArray(Xe):ce.fromByteArray(Xe.slice(Ue,$e))}function dt(Xe,Ue,$e){$e=Math.min(Xe.length,$e);for(var tt=[],We=Ue;We<$e;){var Be=Xe[We],Te=null,Ke=Be>239?4:Be>223?3:Be>191?2:1;if(We+Ke<=$e){var gt,Ze,Ot,zt;switch(Ke){case 1:Be<128&&(Te=Be);break;case 2:gt=Xe[We+1],(gt&192)===128&&(zt=(Be&31)<<6|gt&63,zt>127&&(Te=zt));break;case 3:gt=Xe[We+1],Ze=Xe[We+2],(gt&192)===128&&(Ze&192)===128&&(zt=(Be&15)<<12|(gt&63)<<6|Ze&63,zt>2047&&(zt<55296||zt>57343)&&(Te=zt));break;case 4:gt=Xe[We+1],Ze=Xe[We+2],Ot=Xe[We+3],(gt&192)===128&&(Ze&192)===128&&(Ot&192)===128&&(zt=(Be&15)<<18|(gt&63)<<12|(Ze&63)<<6|Ot&63,zt>65535&&zt<1114112&&(Te=zt))}}Te===null?(Te=65533,Ke=1):Te>65535&&(Te-=65536,tt.push(Te>>>10&1023|55296),Te=56320|Te&1023),tt.push(Te),We+=Ke}return qe(tt)}var St=4096;function qe(Xe){var Ue=Xe.length;if(Ue<=St)return String.fromCharCode.apply(String,Xe);for(var $e="",tt=0;tt<Ue;)$e+=String.fromCharCode.apply(String,Xe.slice(tt,tt+=St));return $e}function it(Xe,Ue,$e){var tt="";$e=Math.min(Xe.length,$e);for(var We=Ue;We<$e;++We)tt+=String.fromCharCode(Xe[We]&127);return tt}function pt(Xe,Ue,$e){var tt="";$e=Math.min(Xe.length,$e);for(var We=Ue;We<$e;++We)tt+=String.fromCharCode(Xe[We]);return tt}function wt(Xe,Ue,$e){var tt=Xe.length;(!Ue||Ue<0)&&(Ue=0),(!$e||$e<0||$e>tt)&&($e=tt);for(var We="",Be=Ue;Be<$e;++Be)We+=Ct(Xe[Be]);return We}function xt(Xe,Ue,$e){for(var tt=Xe.slice(Ue,$e),We="",Be=0;Be<tt.length;Be+=2)We+=String.fromCharCode(tt[Be]+tt[Be+1]*256);return We}me.prototype.slice=function(Ue,$e){var tt=this.length;Ue=~~Ue,$e=$e===void 0?tt:~~$e,Ue<0?(Ue+=tt,Ue<0&&(Ue=0)):Ue>tt&&(Ue=tt),$e<0?($e+=tt,$e<0&&($e=0)):$e>tt&&($e=tt),$e<Ue&&($e=Ue);var We=this.subarray(Ue,$e);return We.__proto__=me.prototype,We};function ft(Xe,Ue,$e){if(Xe%1!==0||Xe<0)throw new RangeError("offset is not uint");if(Xe+Ue>$e)throw new RangeError("Trying to access beyond buffer length")}me.prototype.readUIntLE=function(Ue,$e,tt){Ue=Ue>>>0,$e=$e>>>0,tt||ft(Ue,$e,this.length);for(var We=this[Ue],Be=1,Te=0;++Te<$e&&(Be*=256);)We+=this[Ue+Te]*Be;return We},me.prototype.readUIntBE=function(Ue,$e,tt){Ue=Ue>>>0,$e=$e>>>0,tt||ft(Ue,$e,this.length);for(var We=this[Ue+--$e],Be=1;$e>0&&(Be*=256);)We+=this[Ue+--$e]*Be;return We},me.prototype.readUInt8=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,1,this.length),this[Ue]},me.prototype.readUInt16LE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,2,this.length),this[Ue]|this[Ue+1]<<8},me.prototype.readUInt16BE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,2,this.length),this[Ue]<<8|this[Ue+1]},me.prototype.readUInt32LE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,4,this.length),(this[Ue]|this[Ue+1]<<8|this[Ue+2]<<16)+this[Ue+3]*16777216},me.prototype.readUInt32BE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,4,this.length),this[Ue]*16777216+(this[Ue+1]<<16|this[Ue+2]<<8|this[Ue+3])},me.prototype.readIntLE=function(Ue,$e,tt){Ue=Ue>>>0,$e=$e>>>0,tt||ft(Ue,$e,this.length);for(var We=this[Ue],Be=1,Te=0;++Te<$e&&(Be*=256);)We+=this[Ue+Te]*Be;return Be*=128,We>=Be&&(We-=Math.pow(2,8*$e)),We},me.prototype.readIntBE=function(Ue,$e,tt){Ue=Ue>>>0,$e=$e>>>0,tt||ft(Ue,$e,this.length);for(var We=$e,Be=1,Te=this[Ue+--We];We>0&&(Be*=256);)Te+=this[Ue+--We]*Be;return Be*=128,Te>=Be&&(Te-=Math.pow(2,8*$e)),Te},me.prototype.readInt8=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,1,this.length),this[Ue]&128?(255-this[Ue]+1)*-1:this[Ue]},me.prototype.readInt16LE=function(Ue,$e){Ue=Ue>>>0,$e||ft(Ue,2,this.length);var tt=this[Ue]|this[Ue+1]<<8;return tt&32768?tt|4294901760:tt},me.prototype.readInt16BE=function(Ue,$e){Ue=Ue>>>0,$e||ft(Ue,2,this.length);var tt=this[Ue+1]|this[Ue]<<8;return tt&32768?tt|4294901760:tt},me.prototype.readInt32LE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,4,this.length),this[Ue]|this[Ue+1]<<8|this[Ue+2]<<16|this[Ue+3]<<24},me.prototype.readInt32BE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,4,this.length),this[Ue]<<24|this[Ue+1]<<16|this[Ue+2]<<8|this[Ue+3]},me.prototype.readFloatLE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,4,this.length),we.read(this,Ue,!0,23,4)},me.prototype.readFloatBE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,4,this.length),we.read(this,Ue,!1,23,4)},me.prototype.readDoubleLE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,8,this.length),we.read(this,Ue,!0,52,8)},me.prototype.readDoubleBE=function(Ue,$e){return Ue=Ue>>>0,$e||ft(Ue,8,this.length),we.read(this,Ue,!1,52,8)};function mt(Xe,Ue,$e,tt,We,Be){if(!me.isBuffer(Xe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ue>We||Ue<Be)throw new RangeError('"value" argument is out of bounds');if($e+tt>Xe.length)throw new RangeError("Index out of range")}me.prototype.writeUIntLE=function(Ue,$e,tt,We){if(Ue=+Ue,$e=$e>>>0,tt=tt>>>0,!We){var Be=Math.pow(2,8*tt)-1;mt(this,Ue,$e,tt,Be,0)}var Te=1,Ke=0;for(this[$e]=Ue&255;++Ke<tt&&(Te*=256);)this[$e+Ke]=Ue/Te&255;return $e+tt},me.prototype.writeUIntBE=function(Ue,$e,tt,We){if(Ue=+Ue,$e=$e>>>0,tt=tt>>>0,!We){var Be=Math.pow(2,8*tt)-1;mt(this,Ue,$e,tt,Be,0)}var Te=tt-1,Ke=1;for(this[$e+Te]=Ue&255;--Te>=0&&(Ke*=256);)this[$e+Te]=Ue/Ke&255;return $e+tt},me.prototype.writeUInt8=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,1,255,0),this[$e]=Ue&255,$e+1},me.prototype.writeUInt16LE=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,2,65535,0),this[$e]=Ue&255,this[$e+1]=Ue>>>8,$e+2},me.prototype.writeUInt16BE=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,2,65535,0),this[$e]=Ue>>>8,this[$e+1]=Ue&255,$e+2},me.prototype.writeUInt32LE=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,4,4294967295,0),this[$e+3]=Ue>>>24,this[$e+2]=Ue>>>16,this[$e+1]=Ue>>>8,this[$e]=Ue&255,$e+4},me.prototype.writeUInt32BE=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,4,4294967295,0),this[$e]=Ue>>>24,this[$e+1]=Ue>>>16,this[$e+2]=Ue>>>8,this[$e+3]=Ue&255,$e+4},me.prototype.writeIntLE=function(Ue,$e,tt,We){if(Ue=+Ue,$e=$e>>>0,!We){var Be=Math.pow(2,8*tt-1);mt(this,Ue,$e,tt,Be-1,-Be)}var Te=0,Ke=1,gt=0;for(this[$e]=Ue&255;++Te<tt&&(Ke*=256);)Ue<0&>===0&&this[$e+Te-1]!==0&&(gt=1),this[$e+Te]=(Ue/Ke>>0)-gt&255;return $e+tt},me.prototype.writeIntBE=function(Ue,$e,tt,We){if(Ue=+Ue,$e=$e>>>0,!We){var Be=Math.pow(2,8*tt-1);mt(this,Ue,$e,tt,Be-1,-Be)}var Te=tt-1,Ke=1,gt=0;for(this[$e+Te]=Ue&255;--Te>=0&&(Ke*=256);)Ue<0&>===0&&this[$e+Te+1]!==0&&(gt=1),this[$e+Te]=(Ue/Ke>>0)-gt&255;return $e+tt},me.prototype.writeInt8=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,1,127,-128),Ue<0&&(Ue=255+Ue+1),this[$e]=Ue&255,$e+1},me.prototype.writeInt16LE=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,2,32767,-32768),this[$e]=Ue&255,this[$e+1]=Ue>>>8,$e+2},me.prototype.writeInt16BE=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,2,32767,-32768),this[$e]=Ue>>>8,this[$e+1]=Ue&255,$e+2},me.prototype.writeInt32LE=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,4,2147483647,-2147483648),this[$e]=Ue&255,this[$e+1]=Ue>>>8,this[$e+2]=Ue>>>16,this[$e+3]=Ue>>>24,$e+4},me.prototype.writeInt32BE=function(Ue,$e,tt){return Ue=+Ue,$e=$e>>>0,tt||mt(this,Ue,$e,4,2147483647,-2147483648),Ue<0&&(Ue=4294967295+Ue+1),this[$e]=Ue>>>24,this[$e+1]=Ue>>>16,this[$e+2]=Ue>>>8,this[$e+3]=Ue&255,$e+4};function yt(Xe,Ue,$e,tt,We,Be){if($e+tt>Xe.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("Index out of range")}function It(Xe,Ue,$e,tt,We){return Ue=+Ue,$e=$e>>>0,We||yt(Xe,Ue,$e,4,34028234663852886e22,-34028234663852886e22),we.write(Xe,Ue,$e,tt,23,4),$e+4}me.prototype.writeFloatLE=function(Ue,$e,tt){return It(this,Ue,$e,!0,tt)},me.prototype.writeFloatBE=function(Ue,$e,tt){return It(this,Ue,$e,!1,tt)};function kt(Xe,Ue,$e,tt,We){return Ue=+Ue,$e=$e>>>0,We||yt(Xe,Ue,$e,8,17976931348623157e292,-17976931348623157e292),we.write(Xe,Ue,$e,tt,52,8),$e+8}me.prototype.writeDoubleLE=function(Ue,$e,tt){return kt(this,Ue,$e,!0,tt)},me.prototype.writeDoubleBE=function(Ue,$e,tt){return kt(this,Ue,$e,!1,tt)},me.prototype.copy=function(Ue,$e,tt,We){if(!me.isBuffer(Ue))throw new TypeError("argument should be a Buffer");if(tt||(tt=0),!We&&We!==0&&(We=this.length),$e>=Ue.length&&($e=Ue.length),$e||($e=0),We>0&&We<tt&&(We=tt),We===tt||Ue.length===0||this.length===0)return 0;if($e<0)throw new RangeError("targetStart out of bounds");if(tt<0||tt>=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Ue.length-$e<We-tt&&(We=Ue.length-$e+tt);var Be=We-tt;if(this===Ue&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin($e,tt,We);else if(this===Ue&&tt<$e&&$e<We)for(var Te=Be-1;Te>=0;--Te)Ue[Te+$e]=this[Te+tt];else Uint8Array.prototype.set.call(Ue,this.subarray(tt,We),$e);return Be},me.prototype.fill=function(Ue,$e,tt,We){if(typeof Ue=="string"){if(typeof $e=="string"?(We=$e,$e=0,tt=this.length):typeof tt=="string"&&(We=tt,tt=this.length),We!==void 0&&typeof We!="string")throw new TypeError("encoding must be a string");if(typeof We=="string"&&!me.isEncoding(We))throw new TypeError("Unknown encoding: "+We);if(Ue.length===1){var Be=Ue.charCodeAt(0);(We==="utf8"&&Be<128||We==="latin1")&&(Ue=Be)}}else typeof Ue=="number"&&(Ue=Ue&255);if($e<0||this.length<$e||this.length<tt)throw new RangeError("Out of range index");if(tt<=$e)return this;$e=$e>>>0,tt=tt===void 0?this.length:tt>>>0,Ue||(Ue=0);var Te;if(typeof Ue=="number")for(Te=$e;Te<tt;++Te)this[Te]=Ue;else{var Ke=me.isBuffer(Ue)?Ue:me.from(Ue,We),gt=Ke.length;if(gt===0)throw new TypeError('The value "'+Ue+'" is invalid for argument "value"');for(Te=0;Te<tt-$e;++Te)this[Te+$e]=Ke[Te%gt]}return this};var Ut=/[^+/0-9A-Za-z-_]/g;function Pt(Xe){if(Xe=Xe.split("=")[0],Xe=Xe.trim().replace(Ut,""),Xe.length<2)return"";for(;Xe.length%4!==0;)Xe=Xe+"=";return Xe}function Ct(Xe){return Xe<16?"0"+Xe.toString(16):Xe.toString(16)}function st(Xe,Ue){Ue=Ue||1/0;for(var $e,tt=Xe.length,We=null,Be=[],Te=0;Te<tt;++Te){if($e=Xe.charCodeAt(Te),$e>55295&&$e<57344){if(!We){if($e>56319){(Ue-=3)>-1&&Be.push(239,191,189);continue}else if(Te+1===tt){(Ue-=3)>-1&&Be.push(239,191,189);continue}We=$e;continue}if($e<56320){(Ue-=3)>-1&&Be.push(239,191,189),We=$e;continue}$e=(We-55296<<10|$e-56320)+65536}else We&&(Ue-=3)>-1&&Be.push(239,191,189);if(We=null,$e<128){if((Ue-=1)<0)break;Be.push($e)}else if($e<2048){if((Ue-=2)<0)break;Be.push($e>>6|192,$e&63|128)}else if($e<65536){if((Ue-=3)<0)break;Be.push($e>>12|224,$e>>6&63|128,$e&63|128)}else if($e<1114112){if((Ue-=4)<0)break;Be.push($e>>18|240,$e>>12&63|128,$e>>6&63|128,$e&63|128)}else throw new Error("Invalid code point")}return Be}function bt(Xe){for(var Ue=[],$e=0;$e<Xe.length;++$e)Ue.push(Xe.charCodeAt($e)&255);return Ue}function at(Xe,Ue){for(var $e,tt,We,Be=[],Te=0;Te<Xe.length&&!((Ue-=2)<0);++Te)$e=Xe.charCodeAt(Te),tt=$e>>8,We=$e%256,Be.push(We),Be.push(tt);return Be}function ct(Xe){return ce.toByteArray(Pt(Xe))}function Lt(Xe,Ue,$e,tt){for(var We=0;We<tt&&!(We+$e>=Ue.length||We>=Xe.length);++We)Ue[We+$e]=Xe[We];return We}function vt(Xe,Ue){return Xe instanceof Ue||Xe!=null&&Xe.constructor!=null&&Xe.constructor.name!=null&&Xe.constructor.name===Ue.name}function nt(Xe){return Xe!==Xe}}).call(this)}).call(this,oe("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(oe,ze,je){ze.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,ze,je){"use strict";var ve=oe("get-intrinsic"),ce=oe("./"),we=ce(ve("String.prototype.indexOf"));ze.exports=function(Se,Pe){var me=ve(Se,!!Pe);return typeof me=="function"&&we(Se,".prototype.")>-1?ce(me):me}},{"./":93,"get-intrinsic":348}],93:[function(oe,ze,je){"use strict";var ve=oe("function-bind"),ce=oe("get-intrinsic"),we=ce("%Function.prototype.apply%"),Me=ce("%Function.prototype.call%"),Se=ce("%Reflect.apply%",!0)||ve.call(Me,we),Pe=ce("%Object.getOwnPropertyDescriptor%",!0),me=ce("%Object.defineProperty%",!0),xe=ce("%Math.max%");if(me)try{me({},"a",{value:1})}catch(z){me=null}ze.exports=function(ee){var ae=Se(ve,Me,arguments);if(Pe&&me){var re=Pe(ae,"length");re.configurable&&me(ae,"length",{value:1+xe(0,ee.length-(arguments.length-1))})}return ae};var fe=function(){return Se(ve,we,arguments)};me?me(ze.exports,"apply",{value:fe}):ze.exports.apply=fe},{"function-bind":347,"get-intrinsic":348}],94:[function(oe,ze,je){"use strict";var ve=Array.prototype.slice;ze.exports=ce;function ce(Me,Se){if(!(this instanceof ce))return new ce(Me,Se);this.src=Me,this._withAccess=Se}ce.prototype.withAccess=function(Me){return this._withAccess=Me!==!1,this},ce.prototype.pick=function(Me){return Array.isArray(Me)||(Me=ve.call(arguments)),Me.length&&(this.keys=Me),this},ce.prototype.to=function(Me){if(Me=Me||{},!this.src)return Me;var Se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var Pe=0;Pe<Se.length;Pe++)me=Se[Pe],Me[me]===void 0&&(Me[me]=this.src[me]);return Me}for(var Pe=0;Pe<Se.length;Pe++){var me=Se[Pe];if(we(Me,me)){var xe=this.src.__lookupGetter__(me),fe=this.src.__lookupSetter__(me);xe&&Me.__defineGetter__(me,xe),fe&&Me.__defineSetter__(me,fe),!xe&&!fe&&(Me[me]=this.src[me])}}return Me},ce.prototype.toCover=function(Me){for(var Se=this.keys||Object.keys(this.src),Pe=0;Pe<Se.length;Pe++){var me=Se[Pe];delete Me[me];var xe=this.src.__lookupGetter__(me),fe=this.src.__lookupSetter__(me);xe&&Me.__defineGetter__(me,xe),fe&&Me.__defineSetter__(me,fe),!xe&&!fe&&(Me[me]=this.src[me])}},ce.prototype.override=ce.prototype.toCover,ce.prototype.and=function(Me){var Se={};return this.to(Se),this.src=Me,this.to(Se),this.src=Se,this};function we(Me,Se){return Me[Se]===void 0&&Me.__lookupGetter__(Se)===void 0&&Me.__lookupSetter__(Se)===void 0}},{}],95:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),we=oe("../internals/try-to-string"),Me=ve.TypeError;ze.exports=function(Se){if(ce(Se))return Se;throw Me(we(Se)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-constructor"),we=oe("../internals/try-to-string"),Me=ve.TypeError;ze.exports=function(Se){if(ce(Se))return Se;throw Me(we(Se)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),we=ve.String,Me=ve.TypeError;ze.exports=function(Se){if(typeof Se=="object"||ce(Se))return Se;throw Me("Can't set "+we(Se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol"),ce=oe("../internals/object-create"),we=oe("../internals/object-define-property"),Me=ve("unscopables"),Se=Array.prototype;Se[Me]==null&&we.f(Se,Me,{configurable:!0,value:ce(null)}),ze.exports=function(Pe){Se[Me][Pe]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(oe,ze,je){"use strict";var ve=oe("../internals/string-multibyte").charAt;ze.exports=function(ce,we,Me){return we+(Me?ve(ce,we).length:1)}},{"../internals/string-multibyte":239}],100:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/object-is-prototype-of"),we=ve.TypeError;ze.exports=function(Me,Se){if(ce(Se,Me))return Me;throw we("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-object"),we=ve.String,Me=ve.TypeError;ze.exports=function(Se){if(ce(Se))return Se;throw Me(we(Se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(oe,ze,je){ze.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-native"),ce=oe("../internals/descriptors"),we=oe("../internals/global"),Me=oe("../internals/is-callable"),Se=oe("../internals/is-object"),Pe=oe("../internals/has-own-property"),me=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,Ie=we.Uint8ClampedArray,Oe=Ie&&Ie.prototype,Le=be&&re(be),Ne=Ce&&re(Ce),De=Object.prototype,Re=we.TypeError,Je=ue("toStringTag"),_e=pe("TYPED_ARRAY_TAG"),Ve=pe("TYPED_ARRAY_CONSTRUCTOR"),Qe=ve&&!!le&&me(we.opera)!=="Opera",ut=!1,dt,St,qe,it={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pt={BigInt64Array:8,BigUint64Array:8},wt=function(Ut){if(!Se(Ut))return!1;var Pt=me(Ut);return Pt==="DataView"||Pe(it,Pt)||Pe(pt,Pt)},xt=function(kt){if(!Se(kt))return!1;var Ut=me(kt);return Pe(it,Ut)||Pe(pt,Ut)},ft=function(kt){if(xt(kt))return kt;throw Re("Target is not a typed array")},mt=function(kt){if(Me(kt)&&(!le||ae(Le,kt)))return kt;throw Re(xe(kt)+" is not a typed array constructor")},yt=function(kt,Ut,Pt,Ct){if(ce){if(Pt)for(var st in it){var bt=we[st];if(bt&&Pe(bt.prototype,kt))try{delete bt.prototype[kt]}catch(at){try{bt.prototype[kt]=Ut}catch(ct){}}}(!Ne[kt]||Pt)&&z(Ne,kt,Pt?Ut:Qe&&Ce[kt]||Ut,Ct)}},It=function(kt,Ut,Pt){var Ct,st;if(ce){if(le){if(Pt){for(Ct in it)if(st=we[Ct],st&&Pe(st,kt))try{delete st[kt]}catch(bt){}}if(!Le[kt]||Pt)try{return z(Le,kt,Pt?Ut:Qe&&Le[kt]||Ut)}catch(bt){}else return}for(Ct in it)st=we[Ct],st&&(!st[kt]||Pt)&&z(st,kt,Ut)}};for(dt in it)St=we[dt],qe=St&&St.prototype,qe?fe(qe,Ve,St):Qe=!1;for(dt in pt)St=we[dt],qe=St&&St.prototype,qe&&fe(qe,Ve,St);if((!Qe||!Me(Le)||Le===Function.prototype)&&(Le=function(){throw Re("Incorrect invocation")},Qe))for(dt in it)we[dt]&&le(we[dt],Le);if((!Qe||!Ne||Ne===De)&&(Ne=Le.prototype,Qe))for(dt in it)we[dt]&&le(we[dt].prototype,Ne);if(Qe&&re(Oe)!==Ne&&le(Oe,Ne),ce&&!Pe(Ne,Je)){ut=!0,ee(Ne,Je,{get:function(){return Se(this)?this[_e]:void 0}});for(dt in it)we[dt]&&fe(we[dt],_e,dt)}ze.exports={NATIVE_ARRAY_BUFFER_VIEWS:Qe,TYPED_ARRAY_CONSTRUCTOR:Ve,TYPED_ARRAY_TAG:ut&&_e,aTypedArray:ft,aTypedArrayConstructor:mt,exportTypedArrayMethod:yt,exportTypedArrayStaticMethod:It,isView:wt,isTypedArray:xt,TypedArray:Le,TypedArrayPrototype:Ne}},{"../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,ze,je){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/descriptors"),Me=oe("../internals/array-buffer-native"),Se=oe("../internals/function-name"),Pe=oe("../internals/create-non-enumerable-property"),me=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"),Ie=oe("../internals/array-slice-simple"),Oe=oe("../internals/set-to-string-tag"),Le=oe("../internals/internal-state"),Ne=Se.PROPER,De=Se.CONFIGURABLE,Re=Le.get,Je=Le.set,_e="ArrayBuffer",Ve="DataView",Qe="prototype",ut="Wrong length",dt="Wrong index",St=ve[_e],qe=St,it=qe&&qe[Qe],pt=ve[Ve],wt=pt&&pt[Qe],xt=Object.prototype,ft=ve.Array,mt=ve.RangeError,yt=ce(Ce),It=ce([].reverse),kt=re.pack,Ut=re.unpack,Pt=function(Te){return[Te&255]},Ct=function(Te){return[Te&255,Te>>8&255]},st=function(Te){return[Te&255,Te>>8&255,Te>>16&255,Te>>24&255]},bt=function(Te){return Te[3]<<24|Te[2]<<16|Te[1]<<8|Te[0]},at=function(Te){return kt(Te,23,4)},ct=function(Te){return kt(Te,52,8)},Lt=function(Te,Ke){be(Te[Qe],Ke,{get:function(){return Re(this)[Ke]}})},vt=function(Te,Ke,gt,Ze){var Ot=ae(gt),zt=Re(Te);if(Ot+Ke>zt.byteLength)throw mt(dt);var Yt=Re(zt.buffer).bytes,jt=Ot+zt.byteOffset,Kt=Ie(Yt,jt,jt+Ke);return Ze?Kt:It(Kt)},nt=function(Te,Ke,gt,Ze,Ot,zt){var Yt=ae(gt),jt=Re(Te);if(Yt+Ke>jt.byteLength)throw mt(dt);for(var Kt=Re(jt.buffer).bytes,en=Yt+jt.byteOffset,cn=Ze(+Ot),yn=0;yn<Ke;yn++)Kt[en+yn]=cn[zt?yn:Ke-yn-1]};if(!Me)qe=function(Ke){fe(this,it);var gt=ae(Ke);Je(this,{bytes:yt(ft(gt),0),byteLength:gt}),we||(this.byteLength=gt)},it=qe[Qe],pt=function(Ke,gt,Ze){fe(this,wt),fe(Ke,it);var Ot=Re(Ke).byteLength,zt=z(gt);if(zt<0||zt>Ot)throw mt("Wrong offset");if(Ze=Ze===void 0?Ot-zt:ee(Ze),zt+Ze>Ot)throw mt(ut);Je(this,{buffer:Ke,byteLength:Ze,byteOffset:zt}),we||(this.buffer=Ke,this.byteLength=Ze,this.byteOffset=zt)},wt=pt[Qe],we&&(Lt(qe,"byteLength"),Lt(pt,"buffer"),Lt(pt,"byteLength"),Lt(pt,"byteOffset")),me(wt,{getInt8:function(Ke){return vt(this,1,Ke)[0]<<24>>24},getUint8:function(Ke){return vt(this,1,Ke)[0]},getInt16:function(Ke){var gt=vt(this,2,Ke,arguments.length>1?arguments[1]:void 0);return(gt[1]<<8|gt[0])<<16>>16},getUint16:function(Ke){var gt=vt(this,2,Ke,arguments.length>1?arguments[1]:void 0);return gt[1]<<8|gt[0]},getInt32:function(Ke){return bt(vt(this,4,Ke,arguments.length>1?arguments[1]:void 0))},getUint32:function(Ke){return bt(vt(this,4,Ke,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Ke){return Ut(vt(this,4,Ke,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Ke){return Ut(vt(this,8,Ke,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Ke,gt){nt(this,1,Ke,Pt,gt)},setUint8:function(Ke,gt){nt(this,1,Ke,Pt,gt)},setInt16:function(Ke,gt){nt(this,2,Ke,Ct,gt,arguments.length>2?arguments[2]:void 0)},setUint16:function(Ke,gt){nt(this,2,Ke,Ct,gt,arguments.length>2?arguments[2]:void 0)},setInt32:function(Ke,gt){nt(this,4,Ke,st,gt,arguments.length>2?arguments[2]:void 0)},setUint32:function(Ke,gt){nt(this,4,Ke,st,gt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Ke,gt){nt(this,4,Ke,at,gt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Ke,gt){nt(this,8,Ke,ct,gt,arguments.length>2?arguments[2]:void 0)}});else{var Xe=Ne&&St.name!==_e;if(!xe(function(){St(1)})||!xe(function(){new St(-1)})||xe(function(){return new St,new St(1.5),new St(NaN),Xe&&!De})){qe=function(Ke){return fe(this,it),new St(ae(Ke))},qe[Qe]=it;for(var Ue=pe(St),$e=0,tt;Ue.length>$e;)(tt=Ue[$e++])in qe||Pe(qe,tt,St[tt]);it.constructor=qe}else Xe&&De&&Pe(St,"name",_e);ue&&le(wt)!==xt&&ue(wt,xt);var We=new pt(new qe(2)),Be=ce(wt.setInt8);We.setInt8(0,2147483648),We.setInt8(1,2147483649),(We.getInt8(0)||!We.getInt8(1))&&me(wt,{setInt8:function(Ke,gt){Be(this,Ke,gt<<24>>24)},setUint8:function(Ke,gt){Be(this,Ke,gt<<24>>24)}},{unsafe:!0})}Oe(qe,_e),Oe(pt,Ve),ze.exports={ArrayBuffer:qe,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,ze,je){"use strict";var ve=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),we=oe("../internals/length-of-array-like"),Me=Math.min;ze.exports=[].copyWithin||function(Pe,me){var xe=ve(this),fe=we(xe),z=ce(Pe,fe),ee=ce(me,fe),ae=arguments.length>2?arguments[2]:void 0,re=Me((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,ze,je){"use strict";var ve=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),we=oe("../internals/length-of-array-like");ze.exports=function(Se){for(var Pe=ve(this),me=we(Pe),xe=arguments.length,fe=ce(xe>1?arguments[1]:void 0,me),z=xe>2?arguments[2]:void 0,ee=z===void 0?me:ce(z,me);ee>fe;)Pe[fe++]=Se;return Pe}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-iteration").forEach,ce=oe("../internals/array-method-is-strict"),we=ce("forEach");ze.exports=we?[].forEach:function(Se){return ve(this,Se,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(oe,ze,je){var ve=oe("../internals/length-of-array-like");ze.exports=function(ce,we){for(var Me=0,Se=ve(we),Pe=new ce(Se);Se>Me;)Pe[Me]=we[Me++];return Pe}},{"../internals/length-of-array-like":188}],109:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-bind-context"),we=oe("../internals/function-call"),Me=oe("../internals/to-object"),Se=oe("../internals/call-with-safe-iteration-closing"),Pe=oe("../internals/is-array-iterator-method"),me=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=ve.Array;ze.exports=function(le){var ue=Me(le),pe=me(this),be=arguments.length,Ce=be>1?arguments[1]:void 0,Ie=Ce!==void 0;Ie&&(Ce=ce(Ce,be>2?arguments[2]:void 0));var Oe=ee(ue),Le=0,Ne,De,Re,Je,_e,Ve;if(Oe&&!(this==ae&&Pe(Oe)))for(Je=z(ue,Oe),_e=Je.next,De=pe?new this:[];!(Re=we(_e,Je)).done;Le++)Ve=Ie?Se(Je,Ce,[Re.value,Le],!0):Re.value,fe(De,Le,Ve);else for(Ne=xe(ue),De=pe?new this(Ne):ae(Ne);Ne>Le;Le++)Ve=Ie?Ce(ue[Le],Le):ue[Le],fe(De,Le,Ve);return De.length=Le,De}},{"../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,ze,je){var ve=oe("../internals/to-indexed-object"),ce=oe("../internals/to-absolute-index"),we=oe("../internals/length-of-array-like"),Me=function(Se){return function(Pe,me,xe){var fe=ve(Pe),z=we(fe),ee=ce(xe,z),ae;if(Se&&me!=me){for(;z>ee;)if(ae=fe[ee++],ae!=ae)return!0}else for(;z>ee;ee++)if((Se||ee in fe)&&fe[ee]===me)return Se||ee||0;return!Se&&-1}};ze.exports={includes:Me(!0),indexOf:Me(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(oe,ze,je){var ve=oe("../internals/function-bind-context"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/indexed-object"),Me=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Pe=oe("../internals/array-species-create"),me=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,Ie,Oe){for(var Le=Me(be),Ne=we(Le),De=ve(Ce,Ie),Re=Se(Ne),Je=0,_e=Oe||Pe,Ve=z?_e(be,Re):ee||ue?_e(be,0):void 0,Qe,ut;Re>Je;Je++)if((pe||Je in Ne)&&(Qe=Ne[Je],ut=De(Qe,Je,Le),fe))if(z)Ve[Je]=ut;else if(ut)switch(fe){case 3:return!0;case 5:return Qe;case 6:return Je;case 2:me(Ve,Qe)}else switch(fe){case 4:return!1;case 7:me(Ve,Qe)}return le?-1:ae||re?re:Ve}};ze.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,ze,je){"use strict";var ve=oe("../internals/function-apply"),ce=oe("../internals/to-indexed-object"),we=oe("../internals/to-integer-or-infinity"),Me=oe("../internals/length-of-array-like"),Se=oe("../internals/array-method-is-strict"),Pe=Math.min,me=[].lastIndexOf,xe=!!me&&1/[1].lastIndexOf(1,-0)<0,fe=Se("lastIndexOf"),z=xe||!fe;ze.exports=z?function(ae){if(xe)return ve(me,this,arguments)||0;var re=ce(this),le=Me(re),ue=le-1;for(arguments.length>1&&(ue=Pe(ue,we(arguments[1]))),ue<0&&(ue=le+ue);ue>=0;ue--)if(ue in re&&re[ue]===ae)return ue||0;return-1}:me},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(oe,ze,je){var ve=oe("../internals/fails"),ce=oe("../internals/well-known-symbol"),we=oe("../internals/engine-v8-version"),Me=ce("species");ze.exports=function(Se){return we>=51||!ve(function(){var Pe=[],me=Pe.constructor={};return me[Me]=function(){return{foo:1}},Pe[Se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(oe,ze,je){"use strict";var ve=oe("../internals/fails");ze.exports=function(ce,we){var Me=[][ce];return!!Me&&ve(function(){Me.call(null,we||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/a-callable"),we=oe("../internals/to-object"),Me=oe("../internals/indexed-object"),Se=oe("../internals/length-of-array-like"),Pe=ve.TypeError,me=function(xe){return function(fe,z,ee,ae){ce(z);var re=we(fe),le=Me(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 Pe("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}};ze.exports={left:me(!1),right:me(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/to-absolute-index"),we=oe("../internals/length-of-array-like"),Me=oe("../internals/create-property"),Se=ve.Array,Pe=Math.max;ze.exports=function(me,xe,fe){for(var z=we(me),ee=ce(xe,z),ae=ce(fe===void 0?z:fe,z),re=Se(Pe(ae-ee,0)),le=0;ee<ae;ee++,le++)Me(re,le,me[ee]);return re.length=le,re}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this");ze.exports=ve([].slice)},{"../internals/function-uncurry-this":157}],118:[function(oe,ze,je){var ve=oe("../internals/array-slice-simple"),ce=Math.floor,we=function(Pe,me){var xe=Pe.length,fe=ce(xe/2);return xe<8?Me(Pe,me):Se(Pe,we(ve(Pe,0,fe),me),we(ve(Pe,fe),me),me)},Me=function(Pe,me){for(var xe=Pe.length,fe=1,z,ee;fe<xe;){for(ee=fe,z=Pe[fe];ee&&me(Pe[ee-1],z)>0;)Pe[ee]=Pe[--ee];ee!==fe++&&(Pe[ee]=z)}return Pe},Se=function(Pe,me,xe,fe){for(var z=me.length,ee=xe.length,ae=0,re=0;ae<z||re<ee;)Pe[ae+re]=ae<z&&re<ee?fe(me[ae],xe[re])<=0?me[ae++]:xe[re++]:ae<z?me[ae++]:xe[re++];return Pe};ze.exports=we},{"../internals/array-slice-simple":116}],119:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-array"),we=oe("../internals/is-constructor"),Me=oe("../internals/is-object"),Se=oe("../internals/well-known-symbol"),Pe=Se("species"),me=ve.Array;ze.exports=function(xe){var fe;return ce(xe)&&(fe=xe.constructor,we(fe)&&(fe===me||ce(fe.prototype))?fe=void 0:Me(fe)&&(fe=fe[Pe],fe===null&&(fe=void 0))),fe===void 0?me:fe}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(oe,ze,je){var ve=oe("../internals/array-species-constructor");ze.exports=function(ce,we){return new(ve(ce))(we===0?0:we)}},{"../internals/array-species-constructor":119}],121:[function(oe,ze,je){var ve=oe("../internals/an-object"),ce=oe("../internals/iterator-close");ze.exports=function(we,Me,Se,Pe){try{return Pe?Me(ve(Se)[0],Se[1]):Me(Se)}catch(me){ce(we,"throw",me)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol"),ce=ve("iterator"),we=!1;try{var Me=0,Se={next:function(){return{done:!!Me++}},return:function(){we=!0}};Se[ce]=function(){return this},Array.from(Se,function(){throw 2})}catch(Pe){}ze.exports=function(Pe,me){if(!me&&!we)return!1;var xe=!1;try{var fe={};fe[ce]=function(){return{next:function(){return{done:xe=!0}}}},Pe(fe)}catch(z){}return xe}},{"../internals/well-known-symbol":268}],123:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=ve({}.toString),we=ve("".slice);ze.exports=function(Me){return we(ce(Me),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/to-string-tag-support"),we=oe("../internals/is-callable"),Me=oe("../internals/classof-raw"),Se=oe("../internals/well-known-symbol"),Pe=Se("toStringTag"),me=ve.Object,xe=Me(function(){return arguments}())=="Arguments",fe=function(z,ee){try{return z[ee]}catch(ae){}};ze.exports=ce?Me:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=fe(ee=me(z),Pe))=="string"?ae:xe?Me(ee):(re=Me(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,ze,je){var ve=oe("../internals/has-own-property"),ce=oe("../internals/own-keys"),we=oe("../internals/object-get-own-property-descriptor"),Me=oe("../internals/object-define-property");ze.exports=function(Se,Pe,me){for(var xe=ce(Pe),fe=Me.f,z=we.f,ee=0;ee<xe.length;ee++){var ae=xe[ee];!ve(Se,ae)&&!(me&&ve(me,ae))&&fe(Se,ae,z(Pe,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,ze,je){var ve=oe("../internals/well-known-symbol"),ce=ve("match");ze.exports=function(we){var Me=/./;try{"/./"[we](Me)}catch(Se){try{return Me[ce]=!1,"/./"[we](Me)}catch(Pe){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(oe,ze,je){var ve=oe("../internals/fails");ze.exports=!ve(function(){function ce(){}return ce.prototype.constructor=null,Object.getPrototypeOf(new ce)!==ce.prototype})},{"../internals/fails":150}],128:[function(oe,ze,je){"use strict";var ve=oe("../internals/iterators-core").IteratorPrototype,ce=oe("../internals/object-create"),we=oe("../internals/create-property-descriptor"),Me=oe("../internals/set-to-string-tag"),Se=oe("../internals/iterators"),Pe=function(){return this};ze.exports=function(me,xe,fe,z){var ee=xe+" Iterator";return me.prototype=ce(ve,{next:we(+!z,fe)}),Me(me,ee,!1,!0),Se[ee]=Pe,me}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(oe,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/object-define-property"),we=oe("../internals/create-property-descriptor");ze.exports=ve?function(Me,Se,Pe){return ce.f(Me,Se,we(1,Pe))}:function(Me,Se,Pe){return Me[Se]=Pe,Me}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(oe,ze,je){ze.exports=function(ve,ce){return{enumerable:!(ve&1),configurable:!(ve&2),writable:!(ve&4),value:ce}}},{}],131:[function(oe,ze,je){"use strict";var ve=oe("../internals/to-property-key"),ce=oe("../internals/object-define-property"),we=oe("../internals/create-property-descriptor");ze.exports=function(Me,Se,Pe){var me=ve(Se);me in Me?ce.f(Me,me,we(0,Pe)):Me[me]=Pe}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-call"),we=oe("../internals/is-pure"),Me=oe("../internals/function-name"),Se=oe("../internals/is-callable"),Pe=oe("../internals/create-iterator-constructor"),me=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=Me.PROPER,pe=Me.CONFIGURABLE,be=le.IteratorPrototype,Ce=le.BUGGY_SAFARI_ITERATORS,Ie=ae("iterator"),Oe="keys",Le="values",Ne="entries",De=function(){return this};ze.exports=function(Re,Je,_e,Ve,Qe,ut,dt){Pe(_e,Je,Ve);var St=function(kt){if(kt===Qe&&xt)return xt;if(!Ce&&kt in pt)return pt[kt];switch(kt){case Oe:return function(){return new _e(this,kt)};case Le:return function(){return new _e(this,kt)};case Ne:return function(){return new _e(this,kt)}}return function(){return new _e(this)}},qe=Je+" Iterator",it=!1,pt=Re.prototype,wt=pt[Ie]||pt["@@iterator"]||Qe&&pt[Qe],xt=!Ce&&wt||St(Qe),ft=Je=="Array"&&pt.entries||wt,mt,yt,It;if(ft&&(mt=me(ft.call(new Re)),mt!==Object.prototype&&mt.next&&(!we&&me(mt)!==be&&(xe?xe(mt,be):Se(mt[Ie])||ee(mt,Ie,De)),fe(mt,qe,!0,!0),we&&(re[qe]=De))),ue&&Qe==Le&&wt&&wt.name!==Le&&(!we&&pe?z(pt,"name",Le):(it=!0,xt=function(){return ce(wt,this)})),Qe)if(yt={values:St(Le),keys:ut?xt:St(Oe),entries:St(Ne)},dt)for(It in yt)(Ce||it||!(It in pt))&&ee(pt,It,yt[It]);else ve({target:Je,proto:!0,forced:Ce||it},yt);return(!we||dt)&&pt[Ie]!==xt&&ee(pt,Ie,xt,{name:Qe}),re[Je]=xt,yt}},{"../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,ze,je){var ve=oe("../internals/path"),ce=oe("../internals/has-own-property"),we=oe("../internals/well-known-symbol-wrapped"),Me=oe("../internals/object-define-property").f;ze.exports=function(Se){var Pe=ve.Symbol||(ve.Symbol={});ce(Pe,Se)||Me(Pe,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,ze,je){var ve=oe("../internals/fails");ze.exports=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-object"),we=ve.document,Me=ce(we)&&ce(we.createElement);ze.exports=function(Se){return Me?we.createElement(Se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(oe,ze,je){ze.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,ze,je){var ve=oe("../internals/document-create-element"),ce=ve("span").classList,we=ce&&ce.constructor&&ce.constructor.prototype;ze.exports=we===Object.prototype?void 0:we},{"../internals/document-create-element":135}],138:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent"),ce=ve.match(/firefox\/(\d+)/i);ze.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],139:[function(oe,ze,je){ze.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent");ze.exports=/MSIE|Trident/.test(ve)},{"../internals/engine-user-agent":145}],141:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent"),ce=oe("../internals/global");ze.exports=/ipad|iphone|ipod/i.test(ve)&&ce.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent");ze.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ve)},{"../internals/engine-user-agent":145}],143:[function(oe,ze,je){var ve=oe("../internals/classof-raw"),ce=oe("../internals/global");ze.exports=ve(ce.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent");ze.exports=/web0s(?!.*chrome)/i.test(ve)},{"../internals/engine-user-agent":145}],145:[function(oe,ze,je){var ve=oe("../internals/get-built-in");ze.exports=ve("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/engine-user-agent"),we=ve.process,Me=ve.Deno,Se=we&&we.versions||Me&&Me.version,Pe=Se&&Se.v8,me,xe;Pe&&(me=Pe.split("."),xe=me[0]>0&&me[0]<4?1:+(me[0]+me[1])),!xe&&ce&&(me=ce.match(/Edge\/(\d+)/),(!me||me[1]>=74)&&(me=ce.match(/Chrome\/(\d+)/),me&&(xe=+me[1]))),ze.exports=xe},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent"),ce=ve.match(/AppleWebKit\/(\d+)\./);ze.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],148:[function(oe,ze,je){ze.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/object-get-own-property-descriptor").f,we=oe("../internals/create-non-enumerable-property"),Me=oe("../internals/redefine"),Se=oe("../internals/set-global"),Pe=oe("../internals/copy-constructor-properties"),me=oe("../internals/is-forced");ze.exports=function(xe,fe){var z=xe.target,ee=xe.global,ae=xe.stat,re,le,ue,pe,be,Ce;if(ee?le=ve:ae?le=ve[z]||Se(z,{}):le=(ve[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=me(ee?ue:z+(ae?".":"#")+ue,xe.forced),!re&&pe!==void 0){if(typeof be==typeof pe)continue;Pe(be,pe)}(xe.sham||pe&&pe.sham)&&we(be,"sham",!0),Me(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,ze,je){ze.exports=function(ve){try{return!!ve()}catch(ce){return!0}}},{}],151:[function(oe,ze,je){"use strict";oe("../modules/es.regexp.exec");var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/redefine"),we=oe("../internals/regexp-exec"),Me=oe("../internals/fails"),Se=oe("../internals/well-known-symbol"),Pe=oe("../internals/create-non-enumerable-property"),me=Se("species"),xe=RegExp.prototype;ze.exports=function(fe,z,ee,ae){var re=Se(fe),le=!Me(function(){var Ce={};return Ce[re]=function(){return 7},""[fe](Ce)!=7}),ue=le&&!Me(function(){var Ce=!1,Ie=/a/;return fe==="split"&&(Ie={},Ie.constructor={},Ie.constructor[me]=function(){return Ie},Ie.flags="",Ie[re]=/./[re]),Ie.exec=function(){return Ce=!0,null},Ie[re](""),!Ce});if(!le||!ue||ee){var pe=ve(/./[re]),be=z(re,""[fe],function(Ce,Ie,Oe,Le,Ne){var De=ve(Ce),Re=Ie.exec;return Re===we||Re===xe.exec?le&&!Ne?{done:!0,value:pe(Ie,Oe,Le)}:{done:!0,value:De(Oe,Ie,Le)}:{done:!1}});ce(String.prototype,fe,be[0]),ce(xe,re,be[1])}ae&&Pe(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,ze,je){var ve=oe("../internals/function-bind-native"),ce=Function.prototype,we=ce.apply,Me=ce.call;ze.exports=typeof Reflect=="object"&&Reflect.apply||(ve?Me.bind(we):function(){return Me.apply(we,arguments)})},{"../internals/function-bind-native":154}],153:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/a-callable"),we=oe("../internals/function-bind-native"),Me=ve(ve.bind);ze.exports=function(Se,Pe){return ce(Se),Pe===void 0?Se:we?Me(Se,Pe):function(){return Se.apply(Pe,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(oe,ze,je){var ve=oe("../internals/fails");ze.exports=!ve(function(){var ce=function(){}.bind();return typeof ce!="function"||ce.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(oe,ze,je){var ve=oe("../internals/function-bind-native"),ce=Function.prototype.call;ze.exports=ve?ce.bind(ce):function(){return ce.apply(ce,arguments)}},{"../internals/function-bind-native":154}],156:[function(oe,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/has-own-property"),we=Function.prototype,Me=ve&&Object.getOwnPropertyDescriptor,Se=ce(we,"name"),Pe=Se&&function(){}.name==="something",me=Se&&(!ve||ve&&Me(we,"name").configurable);ze.exports={EXISTS:Se,PROPER:Pe,CONFIGURABLE:me}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(oe,ze,je){var ve=oe("../internals/function-bind-native"),ce=Function.prototype,we=ce.bind,Me=ce.call,Se=ve&&we.bind(Me,Me);ze.exports=ve?function(Pe){return Pe&&Se(Pe)}:function(Pe){return Pe&&function(){return Me.apply(Pe,arguments)}}},{"../internals/function-bind-native":154}],158:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),we=function(Me){return ce(Me)?Me:void 0};ze.exports=function(Me,Se){return arguments.length<2?we(ve[Me]):ve[Me]&&ve[Me][Se]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(oe,ze,je){var ve=oe("../internals/classof"),ce=oe("../internals/get-method"),we=oe("../internals/iterators"),Me=oe("../internals/well-known-symbol"),Se=Me("iterator");ze.exports=function(Pe){if(Pe!=null)return ce(Pe,Se)||ce(Pe,"@@iterator")||we[ve(Pe)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/a-callable"),Me=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),Pe=oe("../internals/get-iterator-method"),me=ve.TypeError;ze.exports=function(xe,fe){var z=arguments.length<2?Pe(xe):fe;if(we(z))return Me(ce(z,xe));throw me(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,ze,je){var ve=oe("../internals/a-callable");ze.exports=function(ce,we){var Me=ce[we];return Me==null?void 0:ve(Me)}},{"../internals/a-callable":95}],162:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),we=Math.floor,Me=ve("".charAt),Se=ve("".replace),Pe=ve("".slice),me=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xe=/\$([$&'`]|\d{1,2})/g;ze.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=me),Se(le,be,function(Ce,Ie){var Oe;switch(Me(Ie,0)){case"$":return"$";case"&":return fe;case"`":return Pe(z,0,ee);case"'":return Pe(z,ue);case"<":Oe=re[Pe(Ie,1,-1)];break;default:var Le=+Ie;if(Le===0)return Ce;if(Le>pe){var Ne=we(Le/10);return Ne===0?Ce:Ne<=pe?ae[Ne-1]===void 0?Me(Ie,1):ae[Ne-1]+Me(Ie,1):Ce}Oe=ae[Le-1]}return Oe===void 0?"":Oe})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(oe,ze,je){(function(ve){(function(){var ce=function(we){return we&&we.Math==Math&&we};ze.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof ve=="object"&&ve)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),we=ve({}.hasOwnProperty);ze.exports=Object.hasOwn||function(Se,Pe){return we(ce(Se),Pe)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(oe,ze,je){ze.exports={}},{}],166:[function(oe,ze,je){var ve=oe("../internals/global");ze.exports=function(ce,we){var Me=ve.console;Me&&Me.error&&(arguments.length==1?Me.error(ce):Me.error(ce,we))}},{"../internals/global":163}],167:[function(oe,ze,je){var ve=oe("../internals/get-built-in");ze.exports=ve("document","documentElement")},{"../internals/get-built-in":158}],168:[function(oe,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/fails"),we=oe("../internals/document-create-element");ze.exports=!ve&&!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,ze,je){var ve=oe("../internals/global"),ce=ve.Array,we=Math.abs,Me=Math.pow,Se=Math.floor,Pe=Math.log,me=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?Me(2,-24)-Me(2,-77):0,Ce=z<0||z===0&&1/z<0?1:0,Ie=0,Oe,Le,Ne;for(z=we(z),z!=z||z===1/0?(Le=z!=z?1:0,Oe=ue):(Oe=Se(Pe(z)/me),Ne=Me(2,-Oe),z*Ne<1&&(Oe--,Ne*=2),Oe+pe>=1?z+=be/Ne:z+=be*Me(2,1-pe),z*Ne>=2&&(Oe++,Ne/=2),Oe+pe>=ue?(Le=0,Oe=ue):Oe+pe>=1?(Le=(z*Ne-1)*Me(2,ee),Oe=Oe+pe):(Le=z*Me(2,pe-1)*Me(2,ee),Oe=0));ee>=8;)re[Ie++]=Le&255,Le/=256,ee-=8;for(Oe=Oe<<ee|Le,le+=ee;le>0;)re[Ie++]=Oe&255,Oe/=256,le-=8;return re[--Ie]|=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--],Ie=Ce&127,Oe;for(Ce>>=7;pe>0;)Ie=Ie*256+z[be--],pe-=8;for(Oe=Ie&(1<<-pe)-1,Ie>>=-pe,pe+=ee;pe>0;)Oe=Oe*256+z[be--],pe-=8;if(Ie===0)Ie=1-ue;else{if(Ie===le)return Oe?NaN:Ce?-1/0:1/0;Oe=Oe+Me(2,ee),Ie=Ie-ue}return(Ce?-1:1)*Oe*Me(2,Ie-ee)};ze.exports={pack:xe,unpack:fe}},{"../internals/global":163}],170:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/fails"),Me=oe("../internals/classof-raw"),Se=ve.Object,Pe=ce("".split);ze.exports=we(function(){return!Se("z").propertyIsEnumerable(0)})?function(me){return Me(me)=="String"?Pe(me,""):Se(me)}:Se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(oe,ze,je){var ve=oe("../internals/is-callable"),ce=oe("../internals/is-object"),we=oe("../internals/object-set-prototype-of");ze.exports=function(Me,Se,Pe){var me,xe;return we&&ve(me=Se.constructor)&&me!==Pe&&ce(xe=me.prototype)&&xe!==Pe.prototype&&we(Me,xe),Me}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/is-callable"),we=oe("../internals/shared-store"),Me=ve(Function.toString);ce(we.inspectSource)||(we.inspectSource=function(Se){return Me(Se)}),ze.exports=we.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(oe,ze,je){var ve=oe("../internals/native-weak-map"),ce=oe("../internals/global"),we=oe("../internals/function-uncurry-this"),Me=oe("../internals/is-object"),Se=oe("../internals/create-non-enumerable-property"),Pe=oe("../internals/has-own-property"),me=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(De){return ue(De)?le(De):re(De,{})},be=function(De){return function(Re){var Je;if(!Me(Re)||(Je=le(Re)).type!==De)throw ee("Incompatible receiver, "+De+" required");return Je}};if(ve||me.state){var Ce=me.state||(me.state=new ae),Ie=we(Ce.get),Oe=we(Ce.has),Le=we(Ce.set);re=function(De,Re){if(Oe(Ce,De))throw new ee(z);return Re.facade=De,Le(Ce,De,Re),Re},le=function(De){return Ie(Ce,De)||{}},ue=function(De){return Oe(Ce,De)}}else{var Ne=xe("state");fe[Ne]=!0,re=function(De,Re){if(Pe(De,Ne))throw new ee(z);return Re.facade=De,Se(De,Ne,Re),Re},le=function(De){return Pe(De,Ne)?De[Ne]:{}},ue=function(De){return Pe(De,Ne)}}ze.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,ze,je){var ve=oe("../internals/well-known-symbol"),ce=oe("../internals/iterators"),we=ve("iterator"),Me=Array.prototype;ze.exports=function(Se){return Se!==void 0&&(ce.Array===Se||Me[we]===Se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(oe,ze,je){var ve=oe("../internals/classof-raw");ze.exports=Array.isArray||function(we){return ve(we)=="Array"}},{"../internals/classof-raw":123}],176:[function(oe,ze,je){ze.exports=function(ve){return typeof ve=="function"}},{}],177:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/fails"),we=oe("../internals/is-callable"),Me=oe("../internals/classof"),Se=oe("../internals/get-built-in"),Pe=oe("../internals/inspect-source"),me=function(){},xe=[],fe=Se("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=ve(z.exec),ae=!z.exec(me),re=function(pe){if(!we(pe))return!1;try{return fe(me,xe,pe),!0}catch(be){return!1}},le=function(pe){if(!we(pe))return!1;switch(Me(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,Pe(pe))}catch(be){return!0}};le.sham=!0,ze.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,ze,je){var ve=oe("../internals/fails"),ce=oe("../internals/is-callable"),we=/#|\.prototype\./,Me=function(fe,z){var ee=Pe[Se(fe)];return ee==xe?!0:ee==me?!1:ce(z)?ve(z):!!z},Se=Me.normalize=function(fe){return String(fe).replace(we,".").toLowerCase()},Pe=Me.data={},me=Me.NATIVE="N",xe=Me.POLYFILL="P";ze.exports=Me},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(oe,ze,je){var ve=oe("../internals/is-object"),ce=Math.floor;ze.exports=Number.isInteger||function(Me){return!ve(Me)&&isFinite(Me)&&ce(Me)===Me}},{"../internals/is-object":180}],180:[function(oe,ze,je){var ve=oe("../internals/is-callable");ze.exports=function(ce){return typeof ce=="object"?ce!==null:ve(ce)}},{"../internals/is-callable":176}],181:[function(oe,ze,je){ze.exports=!1},{}],182:[function(oe,ze,je){var ve=oe("../internals/is-object"),ce=oe("../internals/classof-raw"),we=oe("../internals/well-known-symbol"),Me=we("match");ze.exports=function(Se){var Pe;return ve(Se)&&((Pe=Se[Me])!==void 0?!!Pe:ce(Se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/get-built-in"),we=oe("../internals/is-callable"),Me=oe("../internals/object-is-prototype-of"),Se=oe("../internals/use-symbol-as-uid"),Pe=ve.Object;ze.exports=Se?function(me){return typeof me=="symbol"}:function(me){var xe=ce("Symbol");return we(xe)&&Me(xe.prototype,Pe(me))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/function-bind-context"),we=oe("../internals/function-call"),Me=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),Pe=oe("../internals/is-array-iterator-method"),me=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=ve.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;ze.exports=function(ue,pe,be){var Ce=be&&be.that,Ie=!!(be&&be.AS_ENTRIES),Oe=!!(be&&be.IS_ITERATOR),Le=!!(be&&be.INTERRUPTED),Ne=ce(pe,Ce),De,Re,Je,_e,Ve,Qe,ut,dt=function(qe){return De&&ee(De,"normal",qe),new re(!0,qe)},St=function(qe){return Ie?(Me(qe),Le?Ne(qe[0],qe[1],dt):Ne(qe[0],qe[1])):Le?Ne(qe,dt):Ne(qe)};if(Oe)De=ue;else{if(Re=z(ue),!Re)throw ae(Se(ue)+" is not iterable");if(Pe(Re)){for(Je=0,_e=me(ue);_e>Je;Je++)if(Ve=St(ue[Je]),Ve&&xe(le,Ve))return Ve;return new re(!1)}De=fe(ue,Re)}for(Qe=De.next;!(ut=we(Qe,De)).done;){try{Ve=St(ut.value)}catch(qe){ee(De,"throw",qe)}if(typeof Ve=="object"&&Ve&&xe(le,Ve))return Ve}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,ze,je){var ve=oe("../internals/function-call"),ce=oe("../internals/an-object"),we=oe("../internals/get-method");ze.exports=function(Me,Se,Pe){var me,xe;ce(Me);try{if(me=we(Me,"return"),!me){if(Se==="throw")throw Pe;return Pe}me=ve(me,Me)}catch(fe){xe=!0,me=fe}if(Se==="throw")throw Pe;if(xe)throw me;return ce(me),Pe}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(oe,ze,je){"use strict";var ve=oe("../internals/fails"),ce=oe("../internals/is-callable"),we=oe("../internals/object-create"),Me=oe("../internals/object-get-prototype-of"),Se=oe("../internals/redefine"),Pe=oe("../internals/well-known-symbol"),me=oe("../internals/is-pure"),xe=Pe("iterator"),fe=!1,z,ee,ae;[].keys&&(ae=[].keys(),"next"in ae?(ee=Me(Me(ae)),ee!==Object.prototype&&(z=ee)):fe=!0);var re=z==null||ve(function(){var le={};return z[xe].call(le)!==le});re?z={}:me&&(z=we(z)),ce(z[xe])||Se(z,xe,function(){return this}),ze.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,ze,je){arguments[4][165][0].apply(je,arguments)},{dup:165}],188:[function(oe,ze,je){var ve=oe("../internals/to-length");ze.exports=function(ce){return ve(ce.length)}},{"../internals/to-length":249}],189:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/function-bind-context"),we=oe("../internals/object-get-own-property-descriptor").f,Me=oe("../internals/task").set,Se=oe("../internals/engine-is-ios"),Pe=oe("../internals/engine-is-ios-pebble"),me=oe("../internals/engine-is-webos-webkit"),xe=oe("../internals/engine-is-node"),fe=ve.MutationObserver||ve.WebKitMutationObserver,z=ve.document,ee=ve.process,ae=ve.Promise,re=we(ve,"queueMicrotask"),le=re&&re.value,ue,pe,be,Ce,Ie,Oe,Le,Ne;le||(ue=function(){var De,Re;for(xe&&(De=ee.domain)&&De.exit();pe;){Re=pe.fn,pe=pe.next;try{Re()}catch(Je){throw pe?Ce():be=void 0,Je}}be=void 0,De&&De.enter()},!Se&&!xe&&!me&&fe&&z?(Ie=!0,Oe=z.createTextNode(""),new fe(ue).observe(Oe,{characterData:!0}),Ce=function(){Oe.data=Ie=!Ie}):!Pe&&ae&&ae.resolve?(Le=ae.resolve(void 0),Le.constructor=ae,Ne=ce(Le.then,Le),Ce=function(){Ne(ue)}):xe?Ce=function(){ee.nextTick(ue)}:(Me=ce(Me,ve),Ce=function(){Me(ue)})),ze.exports=le||function(De){var Re={fn:De,next:void 0};be&&(be.next=Re),pe||(pe=Re,Ce()),be=Re}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(oe,ze,je){var ve=oe("../internals/native-symbol");ze.exports=ve&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(oe,ze,je){var ve=oe("../internals/engine-v8-version"),ce=oe("../internals/fails");ze.exports=!!Object.getOwnPropertySymbols&&!ce(function(){var we=Symbol();return!String(we)||!(Object(we)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),we=oe("../internals/inspect-source"),Me=ve.WeakMap;ze.exports=ce(Me)&&/native code/.test(we(Me))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(oe,ze,je){"use strict";var ve=oe("../internals/a-callable"),ce=function(we){var Me,Se;this.promise=new we(function(Pe,me){if(Me!==void 0||Se!==void 0)throw TypeError("Bad Promise constructor");Me=Pe,Se=me}),this.resolve=ve(Me),this.reject=ve(Se)};ze.exports.f=function(we){return new ce(we)}},{"../internals/a-callable":95}],194:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-regexp"),we=ve.TypeError;ze.exports=function(Me){if(ce(Me))throw we("The method doesn't accept regular expressions");return Me}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(oe,ze,je){"use strict";var ve=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/function-call"),Me=oe("../internals/fails"),Se=oe("../internals/object-keys"),Pe=oe("../internals/object-get-own-property-symbols"),me=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);ze.exports=!z||Me(function(){if(ve&&z({b:1},z(ee({},"a",{enumerable:!0,get:function(){ee(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var re={},le={},ue=Symbol(),pe="abcdefghijklmnopqrst";return re[ue]=7,pe.split("").forEach(function(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,Ie=Pe.f,Oe=me.f;be>Ce;)for(var Le=fe(arguments[Ce++]),Ne=Ie?ae(Se(Le),Ie(Le)):Se(Le),De=Ne.length,Re=0,Je;De>Re;)Je=Ne[Re++],(!ve||we(Oe,Le,Je))&&(pe[Je]=Le[Je]);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,ze,je){var ve=oe("../internals/an-object"),ce=oe("../internals/object-define-properties"),we=oe("../internals/enum-bug-keys"),Me=oe("../internals/hidden-keys"),Se=oe("../internals/html"),Pe=oe("../internals/document-create-element"),me=oe("../internals/shared-key"),xe=">",fe="<",z="prototype",ee="script",ae=me("IE_PROTO"),re=function(){},le=function(Ie){return fe+ee+xe+Ie+fe+"/"+ee+xe},ue=function(Ie){Ie.write(le("")),Ie.close();var Oe=Ie.parentWindow.Object;return Ie=null,Oe},pe=function(){var Ie=Pe("iframe"),Oe="java"+ee+":",Le;return Ie.style.display="none",Se.appendChild(Ie),Ie.src=String(Oe),Le=Ie.contentWindow.document,Le.open(),Le.write(le("document.F=Object")),Le.close(),Le.F},be,Ce=function(){try{be=new ActiveXObject("htmlfile")}catch(Oe){}Ce=typeof document!="undefined"?document.domain&&be?ue(be):pe():ue(be);for(var Ie=we.length;Ie--;)delete Ce[z][we[Ie]];return Ce()};Me[ae]=!0,ze.exports=Object.create||function(Oe,Le){var Ne;return Oe!==null?(re[z]=ve(Oe),Ne=new re,re[z]=null,Ne[ae]=Oe):Ne=Ce(),Le===void 0?Ne:ce.f(Ne,Le)}},{"../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,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/v8-prototype-define-bug"),we=oe("../internals/object-define-property"),Me=oe("../internals/an-object"),Se=oe("../internals/to-indexed-object"),Pe=oe("../internals/object-keys");je.f=ve&&!ce?Object.defineProperties:function(xe,fe){Me(xe);for(var z=Se(fe),ee=Pe(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,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/descriptors"),we=oe("../internals/ie8-dom-define"),Me=oe("../internals/v8-prototype-define-bug"),Se=oe("../internals/an-object"),Pe=oe("../internals/to-property-key"),me=ve.TypeError,xe=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";je.f=ce?Me?function(le,ue,pe){if(Se(le),ue=Pe(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=Pe(ue),Se(pe),we)try{return xe(le,ue,pe)}catch(be){}if("get"in pe||"set"in pe)throw me("Accessors not supported");return"value"in pe&&(le[ue]=pe.value),le}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(oe,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/function-call"),we=oe("../internals/object-property-is-enumerable"),Me=oe("../internals/create-property-descriptor"),Se=oe("../internals/to-indexed-object"),Pe=oe("../internals/to-property-key"),me=oe("../internals/has-own-property"),xe=oe("../internals/ie8-dom-define"),fe=Object.getOwnPropertyDescriptor;je.f=ve?fe:function(ee,ae){if(ee=Se(ee),ae=Pe(ae),xe)try{return fe(ee,ae)}catch(re){}if(me(ee,ae))return Me(!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,ze,je){var ve=oe("../internals/classof-raw"),ce=oe("../internals/to-indexed-object"),we=oe("../internals/object-get-own-property-names").f,Me=oe("../internals/array-slice-simple"),Se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pe=function(me){try{return we(me)}catch(xe){return Me(Se)}};ze.exports.f=function(xe){return Se&&ve(xe)=="Window"?Pe(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,ze,je){var ve=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys"),we=ce.concat("length","prototype");je.f=Object.getOwnPropertyNames||function(Se){return ve(Se,we)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(oe,ze,je){je.f=Object.getOwnPropertySymbols},{}],203:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/has-own-property"),we=oe("../internals/is-callable"),Me=oe("../internals/to-object"),Se=oe("../internals/shared-key"),Pe=oe("../internals/correct-prototype-getter"),me=Se("IE_PROTO"),xe=ve.Object,fe=xe.prototype;ze.exports=Pe?xe.getPrototypeOf:function(z){var ee=Me(z);if(ce(ee,me))return ee[me];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,ze,je){var ve=oe("../internals/function-uncurry-this");ze.exports=ve({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/has-own-property"),we=oe("../internals/to-indexed-object"),Me=oe("../internals/array-includes").indexOf,Se=oe("../internals/hidden-keys"),Pe=ve([].push);ze.exports=function(me,xe){var fe=we(me),z=0,ee=[],ae;for(ae in fe)!ce(Se,ae)&&ce(fe,ae)&&Pe(ee,ae);for(;xe.length>z;)ce(fe,ae=xe[z++])&&(~Me(ee,ae)||Pe(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,ze,je){var ve=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys");ze.exports=Object.keys||function(Me){return ve(Me,ce)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(oe,ze,je){"use strict";var ve={}.propertyIsEnumerable,ce=Object.getOwnPropertyDescriptor,we=ce&&!ve.call({1:2},1);je.f=we?function(Se){var Pe=ce(this,Se);return!!Pe&&Pe.enumerable}:ve},{}],208:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/an-object"),we=oe("../internals/a-possible-prototype");ze.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Me=!1,Se={},Pe;try{Pe=ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),Pe(Se,[]),Me=Se instanceof Array}catch(me){}return function(xe,fe){return ce(xe),we(fe),Me?Pe(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,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/object-keys"),Me=oe("../internals/to-indexed-object"),Se=oe("../internals/object-property-is-enumerable").f,Pe=ce(Se),me=ce([].push),xe=function(fe){return function(z){for(var ee=Me(z),ae=we(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!ve||Pe(ee,pe))&&me(ue,fe?[pe,ee[pe]]:ee[pe]);return ue}};ze.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,ze,je){"use strict";var ve=oe("../internals/to-string-tag-support"),ce=oe("../internals/classof");ze.exports=ve?{}.toString:function(){return"[object "+ce(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/is-callable"),Me=oe("../internals/is-object"),Se=ve.TypeError;ze.exports=function(Pe,me){var xe,fe;if(me==="string"&&we(xe=Pe.toString)&&!Me(fe=ce(xe,Pe))||we(xe=Pe.valueOf)&&!Me(fe=ce(xe,Pe))||me!=="string"&&we(xe=Pe.toString)&&!Me(fe=ce(xe,Pe)))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,ze,je){var ve=oe("../internals/get-built-in"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/object-get-own-property-names"),Me=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/an-object"),Pe=ce([].concat);ze.exports=ve("Reflect","ownKeys")||function(xe){var fe=we.f(Se(xe)),z=Me.f;return z?Pe(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,ze,je){var ve=oe("../internals/global");ze.exports=ve},{"../internals/global":163}],214:[function(oe,ze,je){ze.exports=function(ve){try{return{error:!1,value:ve()}}catch(ce){return{error:!0,value:ce}}}},{}],215:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/promise-native-constructor"),we=oe("../internals/is-callable"),Me=oe("../internals/is-forced"),Se=oe("../internals/inspect-source"),Pe=oe("../internals/well-known-symbol"),me=oe("../internals/engine-is-browser"),xe=oe("../internals/is-pure"),fe=oe("../internals/engine-v8-version"),z=ce&&ce.prototype,ee=Pe("species"),ae=!1,re=we(ve.PromiseRejectionEvent),le=Me("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(Oe){Oe(1)}),Ce=function(Oe){Oe(function(){},function(){})},Ie=be.constructor={};return Ie[ee]=Ce,ae=be.then(function(){})instanceof Ce,ae?!pe&&me&&!re:!0});ze.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,ze,je){var ve=oe("../internals/global");ze.exports=ve.Promise},{"../internals/global":163}],217:[function(oe,ze,je){var ve=oe("../internals/an-object"),ce=oe("../internals/is-object"),we=oe("../internals/new-promise-capability");ze.exports=function(Me,Se){if(ve(Me),ce(Se)&&Se.constructor===Me)return Se;var Pe=we.f(Me),me=Pe.resolve;return me(Se),Pe.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(oe,ze,je){var ve=oe("../internals/promise-native-constructor"),ce=oe("../internals/check-correctness-of-iteration"),we=oe("../internals/promise-constructor-detection").CONSTRUCTOR;ze.exports=we||!ce(function(Me){ve.all(Me).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(oe,ze,je){var ve=oe("../internals/object-define-property").f;ze.exports=function(ce,we,Me){Me in ce||ve(ce,Me,{configurable:!0,get:function(){return we[Me]},set:function(Se){we[Me]=Se}})}},{"../internals/object-define-property":198}],220:[function(oe,ze,je){var ve=function(){this.head=null,this.tail=null};ve.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}},ze.exports=ve},{}],221:[function(oe,ze,je){var ve=oe("../internals/redefine");ze.exports=function(ce,we,Me){for(var Se in we)ve(ce,Se,we[Se],Me);return ce}},{"../internals/redefine":222}],222:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/is-callable"),we=oe("../internals/has-own-property"),Me=oe("../internals/create-non-enumerable-property"),Se=oe("../internals/set-global"),Pe=oe("../internals/inspect-source"),me=oe("../internals/internal-state"),xe=oe("../internals/function-name").CONFIGURABLE,fe=me.get,z=me.enforce,ee=String(String).split("String");(ze.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,be=ue?!!ue.enumerable:!1,Ce=ue?!!ue.noTargetGet:!1,Ie=ue&&ue.name!==void 0?ue.name:re,Oe;if(ce(le)&&(String(Ie).slice(0,7)==="Symbol("&&(Ie="["+String(Ie).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!we(le,"name")||xe&&le.name!==Ie)&&Me(le,"name",Ie),Oe=z(le),Oe.source||(Oe.source=ee.join(typeof Ie=="string"?Ie:""))),ae===ve){be?ae[re]=le:Se(re,le);return}else pe?!Ce&&ae[re]&&(be=!0):delete ae[re];be?ae[re]=le:Me(ae,re,le)})(Function.prototype,"toString",function(){return ce(this)&&fe(this).source||Pe(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,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/an-object"),Me=oe("../internals/is-callable"),Se=oe("../internals/classof-raw"),Pe=oe("../internals/regexp-exec"),me=ve.TypeError;ze.exports=function(xe,fe){var z=xe.exec;if(Me(z)){var ee=ce(z,xe,fe);return ee!==null&&we(ee),ee}if(Se(xe)==="RegExp")return ce(Pe,xe,fe);throw me("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-call"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/to-string"),Me=oe("../internals/regexp-flags"),Se=oe("../internals/regexp-sticky-helpers"),Pe=oe("../internals/shared"),me=oe("../internals/object-create"),xe=oe("../internals/internal-state").get,fe=oe("../internals/regexp-unsupported-dot-all"),z=oe("../internals/regexp-unsupported-ncg"),ee=Pe("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 Ne=/a/,De=/b*/g;return ve(ae,Ne,"a"),ve(ae,De,"a"),Ne.lastIndex!==0||De.lastIndex!==0}(),Ie=Se.BROKEN_CARET,Oe=/()??/.exec("")[1]!==void 0,Le=Ce||Oe||Ie||fe||z;Le&&(re=function(De){var Re=this,Je=xe(Re),_e=we(De),Ve=Je.raw,Qe,ut,dt,St,qe,it,pt;if(Ve)return Ve.lastIndex=Re.lastIndex,Qe=ve(re,Ve,_e),Re.lastIndex=Ve.lastIndex,Qe;var wt=Je.groups,xt=Ie&&Re.sticky,ft=ve(Me,Re),mt=Re.source,yt=0,It=_e;if(xt&&(ft=pe(ft,"y",""),ue(ft,"g")===-1&&(ft+="g"),It=be(_e,Re.lastIndex),Re.lastIndex>0&&(!Re.multiline||Re.multiline&&le(_e,Re.lastIndex-1)!==`
|
|
|
`)&&(mt="(?: "+mt+")",It=" "+It,yt++),ut=new RegExp("^(?:"+mt+")",ft)),Oe&&(ut=new RegExp("^"+mt+"$(?!\\s)",ft)),Ce&&(dt=Re.lastIndex),St=ve(ae,xt?ut:Re,It),xt?St?(St.input=be(St.input,yt),St[0]=be(St[0],yt),St.index=Re.lastIndex,Re.lastIndex+=St[0].length):Re.lastIndex=0:Ce&&St&&(Re.lastIndex=Re.global?St.index+St[0].length:dt),Oe&&St&&St.length>1&&ve(ee,St[0],ut,function(){for(qe=1;qe<arguments.length-2;qe++)arguments[qe]===void 0&&(St[qe]=void 0)}),St&&wt)for(St.groups=it=me(null),qe=0;qe<wt.length;qe++)pt=wt[qe],it[pt[0]]=St[pt[1]];return St}),ze.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,ze,je){"use strict";var ve=oe("../internals/an-object");ze.exports=function(){var ce=ve(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,ze,je){var ve=oe("../internals/function-call"),ce=oe("../internals/has-own-property"),we=oe("../internals/object-is-prototype-of"),Me=oe("../internals/regexp-flags"),Se=RegExp.prototype;ze.exports=function(Pe){var me=Pe.flags;return me===void 0&&!("flags"in Se)&&!ce(Pe,"flags")&&we(Se,Pe)?ve(Me,Pe):me}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(oe,ze,je){var ve=oe("../internals/fails"),ce=oe("../internals/global"),we=ce.RegExp,Me=ve(function(){var me=we("a","y");return me.lastIndex=2,me.exec("abcd")!=null}),Se=Me||ve(function(){return!we("a","y").sticky}),Pe=Me||ve(function(){var me=we("^r","gy");return me.lastIndex=2,me.exec("str")!=null});ze.exports={BROKEN_CARET:Pe,MISSED_STICKY:Se,UNSUPPORTED_Y:Me}},{"../internals/fails":150,"../internals/global":163}],228:[function(oe,ze,je){var ve=oe("../internals/fails"),ce=oe("../internals/global"),we=ce.RegExp;ze.exports=ve(function(){var Me=we(".","s");return!(Me.dotAll&&Me.exec(`
|
|
|
`)&&Me.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(oe,ze,je){var ve=oe("../internals/fails"),ce=oe("../internals/global"),we=ce.RegExp;ze.exports=ve(function(){var Me=we("(?<a>b)","g");return Me.exec("b").groups.a!=="b"||"b".replace(Me,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(oe,ze,je){var ve=oe("../internals/global"),ce=ve.TypeError;ze.exports=function(we){if(we==null)throw ce("Can't call method on "+we);return we}},{"../internals/global":163}],231:[function(oe,ze,je){ze.exports=Object.is||function(ce,we){return ce===we?ce!==0||1/ce===1/we:ce!=ce&&we!=we}},{}],232:[function(oe,ze,je){var ve=oe("../internals/global"),ce=Object.defineProperty;ze.exports=function(we,Me){try{ce(ve,we,{value:Me,configurable:!0,writable:!0})}catch(Se){ve[we]=Me}return Me}},{"../internals/global":163}],233:[function(oe,ze,je){"use strict";var ve=oe("../internals/get-built-in"),ce=oe("../internals/object-define-property"),we=oe("../internals/well-known-symbol"),Me=oe("../internals/descriptors"),Se=we("species");ze.exports=function(Pe){var me=ve(Pe),xe=ce.f;Me&&me&&!me[Se]&&xe(me,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,ze,je){var ve=oe("../internals/object-define-property").f,ce=oe("../internals/has-own-property"),we=oe("../internals/well-known-symbol"),Me=we("toStringTag");ze.exports=function(Se,Pe,me){Se&&!me&&(Se=Se.prototype),Se&&!ce(Se,Me)&&ve(Se,Me,{configurable:!0,value:Pe})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(oe,ze,je){var ve=oe("../internals/shared"),ce=oe("../internals/uid"),we=ve("keys");ze.exports=function(Me){return we[Me]||(we[Me]=ce(Me))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/set-global"),we="__core-js_shared__",Me=ve[we]||ce(we,{});ze.exports=Me},{"../internals/global":163,"../internals/set-global":232}],237:[function(oe,ze,je){var ve=oe("../internals/is-pure"),ce=oe("../internals/shared-store");(ze.exports=function(we,Me){return ce[we]||(ce[we]=Me!==void 0?Me:{})})("versions",[]).push({version:"3.22.1",mode:ve?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(oe,ze,je){var ve=oe("../internals/an-object"),ce=oe("../internals/a-constructor"),we=oe("../internals/well-known-symbol"),Me=we("species");ze.exports=function(Se,Pe){var me=ve(Se).constructor,xe;return me===void 0||(xe=ve(me)[Me])==null?Pe:ce(xe)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-integer-or-infinity"),we=oe("../internals/to-string"),Me=oe("../internals/require-object-coercible"),Se=ve("".charAt),Pe=ve("".charCodeAt),me=ve("".slice),xe=function(fe){return function(z,ee){var ae=we(Me(z)),re=ce(ee),le=ae.length,ue,pe;return re<0||re>=le?fe?"":void 0:(ue=Pe(ae,re),ue<55296||ue>56319||re+1===le||(pe=Pe(ae,re+1))<56320||pe>57343?fe?Se(ae,re):ue:fe?me(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};ze.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,ze,je){var ve=oe("../internals/function-name").PROPER,ce=oe("../internals/fails"),we=oe("../internals/whitespaces"),Me="\u200B\x85\u180E";ze.exports=function(Se){return ce(function(){return!!we[Se]()||Me[Se]()!==Me||ve&&we[Se].name!==Se})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/require-object-coercible"),we=oe("../internals/to-string"),Me=oe("../internals/whitespaces"),Se=ve("".replace),Pe="["+Me+"]",me=RegExp("^"+Pe+Pe+"*"),xe=RegExp(Pe+Pe+"*$"),fe=function(z){return function(ee){var ae=we(ce(ee));return z&1&&(ae=Se(ae,me,"")),z&2&&(ae=Se(ae,xe,"")),ae}};ze.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,ze,je){var ve=oe("../internals/function-call"),ce=oe("../internals/get-built-in"),we=oe("../internals/well-known-symbol"),Me=oe("../internals/redefine");ze.exports=function(){var Se=ce("Symbol"),Pe=Se&&Se.prototype,me=Pe&&Pe.valueOf,xe=we("toPrimitive");Pe&&!Pe[xe]&&Me(Pe,xe,function(fe){return ve(me,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/function-apply"),we=oe("../internals/function-bind-context"),Me=oe("../internals/is-callable"),Se=oe("../internals/has-own-property"),Pe=oe("../internals/fails"),me=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=ve.setImmediate,le=ve.clearImmediate,ue=ve.process,pe=ve.Dispatch,be=ve.Function,Ce=ve.MessageChannel,Ie=ve.String,Oe=0,Le={},Ne="onreadystatechange",De,Re,Je,_e;try{De=ve.location}catch(St){}var Ve=function(St){if(Se(Le,St)){var qe=Le[St];delete Le[St],qe()}},Qe=function(St){return function(){Ve(St)}},ut=function(St){Ve(St.data)},dt=function(St){ve.postMessage(Ie(St),De.protocol+"//"+De.host)};(!re||!le)&&(re=function(qe){z(arguments.length,1);var it=Me(qe)?qe:be(qe),pt=xe(arguments,1);return Le[++Oe]=function(){ce(it,void 0,pt)},Re(Oe),Oe},le=function(qe){delete Le[qe]},ae?Re=function(St){ue.nextTick(Qe(St))}:pe&&pe.now?Re=function(St){pe.now(Qe(St))}:Ce&&!ee?(Je=new Ce,_e=Je.port2,Je.port1.onmessage=ut,Re=we(_e.postMessage,_e)):ve.addEventListener&&Me(ve.postMessage)&&!ve.importScripts&&De&&De.protocol!=="file:"&&!Pe(dt)?(Re=dt,ve.addEventListener("message",ut,!1)):Ne in fe("script")?Re=function(St){me.appendChild(fe("script"))[Ne]=function(){me.removeChild(this),Ve(St)}}:Re=function(St){setTimeout(Qe(St),0)}),ze.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,ze,je){var ve=oe("../internals/function-uncurry-this");ze.exports=ve(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(oe,ze,je){var ve=oe("../internals/to-integer-or-infinity"),ce=Math.max,we=Math.min;ze.exports=function(Me,Se){var Pe=ve(Me);return Pe<0?ce(Pe+Se,0):we(Pe,Se)}},{"../internals/to-integer-or-infinity":248}],246:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),we=oe("../internals/to-length"),Me=ve.RangeError;ze.exports=function(Se){if(Se===void 0)return 0;var Pe=ce(Se),me=we(Pe);if(Pe!==me)throw Me("Wrong length or index");return me}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(oe,ze,je){var ve=oe("../internals/indexed-object"),ce=oe("../internals/require-object-coercible");ze.exports=function(we){return ve(ce(we))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(oe,ze,je){var ve=Math.ceil,ce=Math.floor;ze.exports=function(we){var Me=+we;return Me!==Me||Me===0?0:(Me>0?ce:ve)(Me)}},{}],249:[function(oe,ze,je){var ve=oe("../internals/to-integer-or-infinity"),ce=Math.min;ze.exports=function(we){return we>0?ce(ve(we),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/require-object-coercible"),we=ve.Object;ze.exports=function(Me){return we(ce(Me))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/to-positive-integer"),we=ve.RangeError;ze.exports=function(Me,Se){var Pe=ce(Me);if(Pe%Se)throw we("Wrong offset");return Pe}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),we=ve.RangeError;ze.exports=function(Me){var Se=ce(Me);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,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/is-object"),Me=oe("../internals/is-symbol"),Se=oe("../internals/get-method"),Pe=oe("../internals/ordinary-to-primitive"),me=oe("../internals/well-known-symbol"),xe=ve.TypeError,fe=me("toPrimitive");ze.exports=function(z,ee){if(!we(z)||Me(z))return z;var ae=Se(z,fe),re;if(ae){if(ee===void 0&&(ee="default"),re=ce(ae,z,ee),!we(re)||Me(re))return re;throw xe("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),Pe(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,ze,je){var ve=oe("../internals/to-primitive"),ce=oe("../internals/is-symbol");ze.exports=function(we){var Me=ve(we,"string");return ce(Me)?Me:Me+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol"),ce=ve("toStringTag"),we={};we[ce]="z",ze.exports=String(we)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/classof"),we=ve.String;ze.exports=function(Me){if(ce(Me)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return we(Me)}},{"../internals/classof":124,"../internals/global":163}],257:[function(oe,ze,je){var ve=oe("../internals/global"),ce=ve.String;ze.exports=function(we){try{return ce(we)}catch(Me){return"Object"}}},{"../internals/global":163}],258:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/function-call"),Me=oe("../internals/descriptors"),Se=oe("../internals/typed-array-constructors-require-wrappers"),Pe=oe("../internals/array-buffer-view-core"),me=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"),Ie=oe("../internals/is-symbol"),Oe=oe("../internals/object-create"),Le=oe("../internals/object-is-prototype-of"),Ne=oe("../internals/object-set-prototype-of"),De=oe("../internals/object-get-own-property-names").f,Re=oe("../internals/typed-array-from"),Je=oe("../internals/array-iteration").forEach,_e=oe("../internals/set-species"),Ve=oe("../internals/object-define-property"),Qe=oe("../internals/object-get-own-property-descriptor"),ut=oe("../internals/internal-state"),dt=oe("../internals/inherit-if-required"),St=ut.get,qe=ut.set,it=Ve.f,pt=Qe.f,wt=Math.round,xt=ce.RangeError,ft=me.ArrayBuffer,mt=ft.prototype,yt=me.DataView,It=Pe.NATIVE_ARRAY_BUFFER_VIEWS,kt=Pe.TYPED_ARRAY_CONSTRUCTOR,Ut=Pe.TYPED_ARRAY_TAG,Pt=Pe.TypedArray,Ct=Pe.TypedArrayPrototype,st=Pe.aTypedArrayConstructor,bt=Pe.isTypedArray,at="BYTES_PER_ELEMENT",ct="Wrong length",Lt=function(tt,We){st(tt);for(var Be=0,Te=We.length,Ke=new tt(Te);Te>Be;)Ke[Be]=We[Be++];return Ke},vt=function(tt,We){it(tt,We,{get:function(){return St(this)[We]}})},nt=function(tt){var We;return Le(mt,tt)||(We=be(tt))=="ArrayBuffer"||We=="SharedArrayBuffer"},Xe=function(tt,We){return bt(tt)&&!Ie(We)&&We in tt&&ee(+We)&&We>=0},Ue=function(We,Be){return Be=ue(Be),Xe(We,Be)?fe(2,We[Be]):pt(We,Be)},$e=function(We,Be,Te){return Be=ue(Be),Xe(We,Be)&&Ce(Te)&&pe(Te,"value")&&!pe(Te,"get")&&!pe(Te,"set")&&!Te.configurable&&(!pe(Te,"writable")||Te.writable)&&(!pe(Te,"enumerable")||Te.enumerable)?(We[Be]=Te.value,We):it(We,Be,Te)};Me?(It||(Qe.f=Ue,Ve.f=$e,vt(Ct,"buffer"),vt(Ct,"byteOffset"),vt(Ct,"byteLength"),vt(Ct,"length")),ve({target:"Object",stat:!0,forced:!It},{getOwnPropertyDescriptor:Ue,defineProperty:$e}),ze.exports=function(tt,We,Be){var Te=tt.match(/\d+$/)[0]/8,Ke=tt+(Be?"Clamped":"")+"Array",gt="get"+tt,Ze="set"+tt,Ot=ce[Ke],zt=Ot,Yt=zt&&zt.prototype,jt={},Kt=function(yn,On){var or=St(yn);return or.view[gt](On*Te+or.byteOffset,!0)},en=function(yn,On,or){var er=St(yn);Be&&(or=(or=wt(or))<0?0:or>255?255:or&255),er.view[Ze](On*Te+er.byteOffset,or,!0)},cn=function(yn,On){it(yn,On,{get:function(){return Kt(this,On)},set:function(or){return en(this,On,or)},enumerable:!0})};It?Se&&(zt=We(function(yn,On,or,er){return xe(yn,Yt),dt(function(){return Ce(On)?nt(On)?er!==void 0?new Ot(On,le(or,Te),er):or!==void 0?new Ot(On,le(or,Te)):new Ot(On):bt(On)?Lt(zt,On):we(Re,zt,On):new Ot(re(On))}(),yn,zt)}),Ne&&Ne(zt,Pt),Je(De(Ot),function(yn){yn in zt||z(zt,yn,Ot[yn])}),zt.prototype=Yt):(zt=We(function(yn,On,or,er){xe(yn,Yt);var Tr=0,Kn=0,Nr,kr,Ur;if(!Ce(On))Ur=re(On),kr=Ur*Te,Nr=new ft(kr);else if(nt(On)){Nr=On,Kn=le(or,Te);var Jr=On.byteLength;if(er===void 0){if(Jr%Te||(kr=Jr-Kn,kr<0))throw xt(ct)}else if(kr=ae(er)*Te,kr+Kn>Jr)throw xt(ct);Ur=kr/Te}else return bt(On)?Lt(zt,On):we(Re,zt,On);for(qe(yn,{buffer:Nr,byteOffset:Kn,byteLength:kr,length:Ur,view:new yt(Nr)});Tr<Ur;)cn(yn,Tr++)}),Ne&&Ne(zt,Pt),Yt=zt.prototype=Oe(Ct)),Yt.constructor!==zt&&z(Yt,"constructor",zt),z(Yt,kt,zt),Ut&&z(Yt,Ut,Ke),jt[Ke]=zt,ve({global:!0,forced:zt!=Ot,sham:!It},jt),at in zt||z(zt,at,Te),at in Yt||z(Yt,at,Te),_e(Ke)}):ze.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,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/fails"),we=oe("../internals/check-correctness-of-iteration"),Me=oe("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,Se=ve.ArrayBuffer,Pe=ve.Int8Array;ze.exports=!Me||!ce(function(){Pe(1)})||!ce(function(){new Pe(-1)})||!we(function(me){new Pe,new Pe(null),new Pe(1.5),new Pe(me)},!0)||ce(function(){return new Pe(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,ze,je){var ve=oe("../internals/array-from-constructor-and-list"),ce=oe("../internals/typed-array-species-constructor");ze.exports=function(we,Me){return ve(ce(we),Me)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(oe,ze,je){var ve=oe("../internals/function-bind-context"),ce=oe("../internals/function-call"),we=oe("../internals/a-constructor"),Me=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Pe=oe("../internals/get-iterator"),me=oe("../internals/get-iterator-method"),xe=oe("../internals/is-array-iterator-method"),fe=oe("../internals/array-buffer-view-core").aTypedArrayConstructor;ze.exports=function(ee){var ae=we(this),re=Me(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,be=me(re),Ce,Ie,Oe,Le,Ne,De;if(be&&!xe(be))for(Ne=Pe(re,be),De=Ne.next,re=[];!(Le=ce(De,Ne)).done;)re.push(Le.value);for(pe&&le>2&&(ue=ve(ue,arguments[2])),Ie=Se(re),Oe=new(fe(ae))(Ie),Ce=0;Ie>Ce;Ce++)Oe[Ce]=pe?ue(re[Ce],Ce):re[Ce];return Oe}},{"../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,ze,je){var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/species-constructor"),we=ve.TYPED_ARRAY_CONSTRUCTOR,Me=ve.aTypedArrayConstructor;ze.exports=function(Se){return Me(ce(Se,Se[we]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),ce=0,we=Math.random(),Me=ve(1 .toString);ze.exports=function(Se){return"Symbol("+(Se===void 0?"":Se)+")_"+Me(++ce+we,36)}},{"../internals/function-uncurry-this":157}],264:[function(oe,ze,je){var ve=oe("../internals/native-symbol");ze.exports=ve&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(oe,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/fails");ze.exports=ve&&ce(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(oe,ze,je){var ve=oe("../internals/global"),ce=ve.TypeError;ze.exports=function(we,Me){if(we<Me)throw ce("Not enough arguments");return we}},{"../internals/global":163}],267:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol");je.f=ve},{"../internals/well-known-symbol":268}],268:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/shared"),we=oe("../internals/has-own-property"),Me=oe("../internals/uid"),Se=oe("../internals/native-symbol"),Pe=oe("../internals/use-symbol-as-uid"),me=ce("wks"),xe=ve.Symbol,fe=xe&&xe.for,z=Pe?xe:xe&&xe.withoutSetter||Me;ze.exports=function(ee){if(!we(me,ee)||!(Se||typeof me[ee]=="string")){var ae="Symbol."+ee;Se&&we(xe,ee)?me[ee]=xe[ee]:Pe&&fe?me[ee]=fe(ae):me[ee]=z(ae)}return me[ee]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(oe,ze,je){ze.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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/array-buffer"),Me=oe("../internals/set-species"),Se="ArrayBuffer",Pe=we[Se],me=ce[Se];ve({global:!0,forced:me!==Pe},{ArrayBuffer:Pe}),Me(Se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/fails"),Me=oe("../internals/array-buffer"),Se=oe("../internals/an-object"),Pe=oe("../internals/to-absolute-index"),me=oe("../internals/to-length"),xe=oe("../internals/species-constructor"),fe=Me.ArrayBuffer,z=Me.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});ve({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(be,Ce){if(ae&&Ce===void 0)return ae(Se(this),be);for(var Ie=Se(this).byteLength,Oe=Pe(be,Ie),Le=Pe(Ce===void 0?Ie:Ce,Ie),Ne=new(xe(this,fe))(me(Le-Oe)),De=new z(this),Re=new z(Ne),Je=0;Oe<Le;)le(Re,Je++,re(De,Oe++));return Ne}})},{"../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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/fails"),Me=oe("../internals/is-array"),Se=oe("../internals/is-object"),Pe=oe("../internals/to-object"),me=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 Le=[];return Le[re]=!1,Le.concat()[0]!==Le}),Ce=z("concat"),Ie=function(Le){if(!Se(Le))return!1;var Ne=Le[re];return Ne!==void 0?!!Ne:Me(Le)},Oe=!be||!Ce;ve({target:"Array",proto:!0,forced:Oe},{concat:function(Ne){var De=Pe(this),Re=fe(De,0),Je=0,_e,Ve,Qe,ut,dt;for(_e=-1,Qe=arguments.length;_e<Qe;_e++)if(dt=_e===-1?De:arguments[_e],Ie(dt)){if(ut=me(dt),Je+ut>le)throw pe(ue);for(Ve=0;Ve<ut;Ve++,Je++)Ve in dt&&xe(Re,Je,dt[Ve])}else{if(Je>=le)throw pe(ue);xe(Re,Je++,dt)}return Re.length=Je,Re}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(oe,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/array-fill"),we=oe("../internals/add-to-unscopables");ve({target:"Array",proto:!0},{fill:ce}),we("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/array-iteration").filter,we=oe("../internals/array-method-has-species-support"),Me=we("filter");ve({target:"Array",proto:!0,forced:!Me},{filter:function(Pe){return ce(this,Pe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/array-iteration").find,we=oe("../internals/add-to-unscopables"),Me="find",Se=!0;Me in[]&&Array(1)[Me](function(){Se=!1}),ve({target:"Array",proto:!0,forced:Se},{find:function(me){return ce(this,me,arguments.length>1?arguments[1]:void 0)}}),we(Me)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(oe,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/array-from"),we=oe("../internals/check-correctness-of-iteration"),Me=!we(function(Se){Array.from(Se)});ve({target:"Array",stat:!0,forced:Me},{from:ce})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/array-includes").includes,we=oe("../internals/add-to-unscopables");ve({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,ze,je){"use strict";var ve=oe("../internals/to-indexed-object"),ce=oe("../internals/add-to-unscopables"),we=oe("../internals/iterators"),Me=oe("../internals/internal-state"),Se=oe("../internals/object-define-property").f,Pe=oe("../internals/define-iterator"),me=oe("../internals/is-pure"),xe=oe("../internals/descriptors"),fe="Array Iterator",z=Me.set,ee=Me.getterFor(fe);ze.exports=Pe(Array,"Array",function(re,le){z(this,{type:fe,target:ve(re),index:0,kind:le})},function(){var re=ee(this),le=re.target,ue=re.kind,pe=re.index++;return!le||pe>=le.length?(re.target=void 0,{value:void 0,done:!0}):ue=="keys"?{value:pe,done:!1}:ue=="values"?{value:le[pe],done:!1}:{value:[pe,le[pe]],done:!1}},"values");var ae=we.Arguments=we.Array;if(ce("keys"),ce("values"),ce("entries"),!me&&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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/indexed-object"),Me=oe("../internals/to-indexed-object"),Se=oe("../internals/array-method-is-strict"),Pe=ce([].join),me=we!=Object,xe=Se("join",",");ve({target:"Array",proto:!0,forced:me||!xe},{join:function(z){return Pe(Me(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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/array-iteration").map,we=oe("../internals/array-method-has-species-support"),Me=we("map");ve({target:"Array",proto:!0,forced:!Me},{map:function(Pe){return ce(this,Pe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/is-array"),Me=oe("../internals/is-constructor"),Se=oe("../internals/is-object"),Pe=oe("../internals/to-absolute-index"),me=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;ve({target:"Array",proto:!0,forced:!re},{slice:function(Ce,Ie){var Oe=xe(this),Le=me(Oe),Ne=Pe(Ce,Le),De=Pe(Ie===void 0?Le:Ie,Le),Re,Je,_e;if(we(Oe)&&(Re=Oe.constructor,Me(Re)&&(Re===ue||we(Re.prototype))?Re=void 0:Se(Re)&&(Re=Re[le],Re===null&&(Re=void 0)),Re===ue||Re===void 0))return ae(Oe,Ne,De);for(Je=new(Re===void 0?ue:Re)(pe(De-Ne,0)),_e=0;Ne<De;Ne++,_e++)Ne in Oe&&fe(Je,_e,Oe[Ne]);return Je.length=_e,Je}})},{"../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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/a-callable"),Me=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Pe=oe("../internals/to-string"),me=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=me(function(){le.sort(void 0)}),Ce=me(function(){le.sort(null)}),Ie=fe("sort"),Oe=!me(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var De="",Re,Je,_e,Ve;for(Re=65;Re<76;Re++){switch(Je=String.fromCharCode(Re),Re){case 66:case 69:case 70:case 72:_e=3;break;case 68:case 71:_e=4;break;default:_e=2}for(Ve=0;Ve<47;Ve++)le.push({k:Je+Ve,v:_e})}for(le.sort(function(Qe,ut){return ut.v-Qe.v}),Ve=0;Ve<le.length;Ve++)Je=le[Ve].k.charAt(0),De.charAt(De.length-1)!==Je&&(De+=Je);return De!=="DGBEFHACIJK"}}),Le=be||!Ce||!Ie||!Oe,Ne=function(De){return function(Re,Je){return Je===void 0?-1:Re===void 0?1:De!==void 0?+De(Re,Je)||0:Pe(Re)>Pe(Je)?1:-1}};ve({target:"Array",proto:!0,forced:Le},{sort:function(Re){Re!==void 0&&we(Re);var Je=Me(this);if(Oe)return Re===void 0?ue(Je):ue(Je,Re);var _e=[],Ve=Se(Je),Qe,ut;for(ut=0;ut<Ve;ut++)ut in Je&&pe(_e,Je[ut]);for(xe(_e,Ne(Re)),Qe=_e.length,ut=0;ut<Qe;)Je[ut]=_e[ut++];for(;ut<Ve;)delete Je[ut++];return Je}})},{"../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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/to-absolute-index"),Me=oe("../internals/to-integer-or-infinity"),Se=oe("../internals/length-of-array-like"),Pe=oe("../internals/to-object"),me=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";ve({target:"Array",proto:!0,forced:!z},{splice:function(be,Ce){var Ie=Pe(this),Oe=Se(Ie),Le=we(be,Oe),Ne=arguments.length,De,Re,Je,_e,Ve,Qe;if(Ne===0?De=Re=0:Ne===1?(De=0,Re=Oe-Le):(De=Ne-2,Re=re(ae(Me(Ce),0),Oe-Le)),Oe+De-Re>le)throw ee(ue);for(Je=me(Ie,Re),_e=0;_e<Re;_e++)Ve=Le+_e,Ve in Ie&&xe(Je,_e,Ie[Ve]);if(Je.length=Re,De<Re){for(_e=Le;_e<Oe-Re;_e++)Ve=_e+Re,Qe=_e+De,Ve in Ie?Ie[Qe]=Ie[Ve]:delete Ie[Qe];for(_e=Oe;_e>Oe-Re+De;_e--)delete Ie[_e-1]}else if(De>Re)for(_e=Oe-Re;_e>Le;_e--)Ve=_e+Re-1,Qe=_e+De-1,Ve in Ie?Ie[Qe]=Ie[Ve]:delete Ie[Qe];for(_e=0;_e<De;_e++)Ie[_e+Le]=arguments[_e+2];return Ie.length=Oe-Re+De,Je}})},{"../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,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/function-name").EXISTS,we=oe("../internals/function-uncurry-this"),Me=oe("../internals/object-define-property").f,Se=Function.prototype,Pe=we(Se.toString),me=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,xe=we(me.exec),fe="name";ve&&!ce&&Me(Se,fe,{configurable:!0,get:function(){try{return xe(me,Pe(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,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/get-built-in"),we=oe("../internals/function-apply"),Me=oe("../internals/function-call"),Se=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),me=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),Ie=/[\uD800-\uDFFF]/g,Oe=/^[\uD800-\uDBFF]$/,Le=/^[\uDC00-\uDFFF]$/,Ne=!ae||Pe(function(){var _e=ce("Symbol")();return re([_e])!="[null]"||re({a:_e})!="{}"||re(Object(_e))!="{}"}),De=Pe(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),Re=function(_e,Ve){var Qe=ee(arguments),ut=Ve;if(!(!fe(Ve)&&_e===void 0||z(_e)))return me(Ve)||(Ve=function(dt,St){if(xe(ut)&&(St=Me(ut,this,dt,St)),!z(St))return St}),Qe[1]=Ve,we(re,null,Qe)},Je=function(_e,Ve,Qe){var ut=ue(Qe,Ve-1),dt=ue(Qe,Ve+1);return le(Oe,_e)&&!le(Le,dt)||le(Le,_e)&&!le(Oe,ut)?"\\u"+Ce(pe(_e,0),16):_e};re&&ve({target:"JSON",stat:!0,forced:Ne||De},{stringify:function(Ve,Qe,ut){var dt=ee(arguments),St=we(Ne?Re:re,null,dt);return De&&typeof St=="string"?be(St,Ie,Je):St}})},{"../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,ze,je){"use strict";var ve=oe("../internals/descriptors"),ce=oe("../internals/global"),we=oe("../internals/function-uncurry-this"),Me=oe("../internals/is-forced"),Se=oe("../internals/redefine"),Pe=oe("../internals/has-own-property"),me=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],Ie=Ce.prototype,Oe=ce.TypeError,Le=we("".slice),Ne=we("".charCodeAt),De=function(ut){var dt=z(ut,"number");return typeof dt=="bigint"?dt:Re(dt)},Re=function(ut){var dt=z(ut,"number"),St,qe,it,pt,wt,xt,ft,mt;if(fe(dt))throw Oe("Cannot convert a Symbol value to a number");if(typeof dt=="string"&&dt.length>2){if(dt=pe(dt),St=Ne(dt,0),St===43||St===45){if(qe=Ne(dt,2),qe===88||qe===120)return NaN}else if(St===48){switch(Ne(dt,1)){case 66:case 98:it=2,pt=49;break;case 79:case 111:it=8,pt=55;break;default:return+dt}for(wt=Le(dt,2),xt=wt.length,ft=0;ft<xt;ft++)if(mt=Ne(wt,ft),mt<48||mt>pt)return NaN;return parseInt(wt,it)}}return+dt};if(Me(be,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Je=function(dt){var St=arguments.length<1?0:Ce(De(dt)),qe=this;return xe(Ie,qe)&&ee(function(){ue(qe)})?me(Object(St),qe,Je):St},_e=ve?ae(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ve=0,Qe;_e.length>Ve;Ve++)Pe(Ce,Qe=_e[Ve])&&!Pe(Je,Qe)&&le(Je,Qe,re(Ce,Qe));Je.prototype=Ie,Ie.constructor=Je,Se(ce,be,Je)}},{"../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,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/object-assign");ve({target:"Object",stat:!0,forced:Object.assign!==ce},{assign:ce})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(oe,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/object-to-array").entries;ve({target:"Object",stat:!0},{entries:function(Me){return ce(Me)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(oe,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/native-symbol"),we=oe("../internals/fails"),Me=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/to-object"),Pe=!ce||we(function(){Me.f(1)});ve({target:"Object",stat:!0,forced:Pe},{getOwnPropertySymbols:function(xe){var fe=Me.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,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/to-object"),we=oe("../internals/object-keys"),Me=oe("../internals/fails"),Se=Me(function(){we(1)});ve({target:"Object",stat:!0,forced:Se},{keys:function(me){return we(ce(me))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(oe,ze,je){var ve=oe("../internals/to-string-tag-support"),ce=oe("../internals/redefine"),we=oe("../internals/object-to-string");ve||ce(Object.prototype,"toString",we,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-call"),we=oe("../internals/a-callable"),Me=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),Pe=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ve({target:"Promise",stat:!0,forced:me},{all:function(fe){var z=this,ee=Me.f(z),ae=ee.resolve,re=ee.reject,le=Se(function(){var ue=we(z.resolve),pe=[],be=0,Ce=1;Pe(fe,function(Ie){var Oe=be++,Le=!1;Ce++,ce(ue,z,Ie).then(function(Ne){Le||(Le=!0,pe[Oe]=Ne,--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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/is-pure"),we=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Me=oe("../internals/promise-native-constructor"),Se=oe("../internals/get-built-in"),Pe=oe("../internals/is-callable"),me=oe("../internals/redefine"),xe=Me&&Me.prototype;if(ve({target:"Promise",proto:!0,forced:we,real:!0},{catch:function(z){return this.then(void 0,z)}}),!ce&&Pe(Me)){var fe=Se("Promise").prototype.catch;xe.catch!==fe&&me(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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/is-pure"),we=oe("../internals/engine-is-node"),Me=oe("../internals/global"),Se=oe("../internals/function-call"),Pe=oe("../internals/redefine"),me=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"),Ie=oe("../internals/perform"),Oe=oe("../internals/queue"),Le=oe("../internals/internal-state"),Ne=oe("../internals/promise-native-constructor"),De=oe("../internals/promise-constructor-detection"),Re=oe("../internals/new-promise-capability"),Je="Promise",_e=De.CONSTRUCTOR,Ve=De.REJECTION_EVENT,Qe=De.SUBCLASSING,ut=Le.getterFor(Je),dt=Le.set,St=Ne&&Ne.prototype,qe=Ne,it=St,pt=Me.TypeError,wt=Me.document,xt=Me.process,ft=Re.f,mt=ft,yt=!!(wt&&wt.createEvent&&Me.dispatchEvent),It="unhandledrejection",kt="rejectionhandled",Ut=0,Pt=1,Ct=2,st=1,bt=2,at,ct,Lt,vt,nt=function(Ze){var Ot;return re(Ze)&&ae(Ot=Ze.then)?Ot:!1},Xe=function(Ze,Ot){var zt=Ot.value,Yt=Ot.state==Pt,jt=Yt?Ze.ok:Ze.fail,Kt=Ze.resolve,en=Ze.reject,cn=Ze.domain,yn,On,or;try{jt?(Yt||(Ot.rejection===bt&&Be(Ot),Ot.rejection=st),jt===!0?yn=zt:(cn&&cn.enter(),yn=jt(zt),cn&&(cn.exit(),or=!0)),yn===Ze.promise?en(pt("Promise-chain cycle")):(On=nt(yn))?Se(On,yn,Kt,en):Kt(yn)):en(zt)}catch(er){cn&&!or&&cn.exit(),en(er)}},Ue=function(Ze,Ot){Ze.notified||(Ze.notified=!0,be(function(){for(var zt=Ze.reactions,Yt;Yt=zt.get();)Xe(Yt,Ze);Ze.notified=!1,Ot&&!Ze.rejection&&tt(Ze)}))},$e=function(Ze,Ot,zt){var Yt,jt;yt?(Yt=wt.createEvent("Event"),Yt.promise=Ot,Yt.reason=zt,Yt.initEvent(Ze,!1,!0),Me.dispatchEvent(Yt)):Yt={promise:Ot,reason:zt},!Ve&&(jt=Me["on"+Ze])?jt(Yt):Ze===It&&Ce("Unhandled promise rejection",zt)},tt=function(Ze){Se(pe,Me,function(){var Ot=Ze.facade,zt=Ze.value,Yt=We(Ze),jt;if(Yt&&(jt=Ie(function(){we?xt.emit("unhandledRejection",zt,Ot):$e(It,Ot,zt)}),Ze.rejection=we||We(Ze)?bt:st,jt.error))throw jt.value})},We=function(Ze){return Ze.rejection!==st&&!Ze.parent},Be=function(Ze){Se(pe,Me,function(){var Ot=Ze.facade;we?xt.emit("rejectionHandled",Ot):$e(kt,Ot,Ze.value)})},Te=function(Ze,Ot,zt){return function(Yt){Ze(Ot,Yt,zt)}},Ke=function(Ze,Ot,zt){Ze.done||(Ze.done=!0,zt&&(Ze=zt),Ze.value=Ot,Ze.state=Ct,Ue(Ze,!0))},gt=function(Ze,Ot,zt){if(!Ze.done){Ze.done=!0,zt&&(Ze=zt);try{if(Ze.facade===Ot)throw pt("Promise can't be resolved itself");var Yt=nt(Ot);Yt?be(function(){var jt={done:!1};try{Se(Yt,Ot,Te(gt,jt,Ze),Te(Ke,jt,Ze))}catch(Kt){Ke(jt,Kt,Ze)}}):(Ze.value=Ot,Ze.state=Pt,Ue(Ze,!1))}catch(jt){Ke({done:!1},jt,Ze)}}};if(_e&&(qe=function(Ot){le(this,it),ee(Ot),Se(at,this);var zt=ut(this);try{Ot(Te(gt,zt),Te(Ke,zt))}catch(Yt){Ke(zt,Yt)}},it=qe.prototype,at=function(Ot){dt(this,{type:Je,done:!1,notified:!1,parent:!1,reactions:new Oe,rejection:!1,state:Ut,value:void 0})},at.prototype=me(it,{then:function(Ot,zt){var Yt=ut(this),jt=ft(ue(this,qe));return Yt.parent=!0,jt.ok=ae(Ot)?Ot:!0,jt.fail=ae(zt)&&zt,jt.domain=we?xt.domain:void 0,Yt.state==Ut?Yt.reactions.add(jt):be(function(){Xe(jt,Yt)}),jt.promise}}),ct=function(){var Ze=new at,Ot=ut(Ze);this.promise=Ze,this.resolve=Te(gt,Ot),this.reject=Te(Ke,Ot)},Re.f=ft=function(Ze){return Ze===qe||Ze===Lt?new ct(Ze):mt(Ze)},!ce&&ae(Ne)&&St!==Object.prototype)){vt=St.then,Qe||Pe(St,"then",function(Ot,zt){var Yt=this;return new qe(function(jt,Kt){Se(vt,Yt,jt,Kt)}).then(Ot,zt)},{unsafe:!0});try{delete St.constructor}catch(Ze){}xe&&xe(St,it)}ve({global:!0,wrap:!0,forced:_e},{Promise:qe}),fe(qe,Je,!1,!0),z(Je)},{"../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,ze,je){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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-call"),we=oe("../internals/a-callable"),Me=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),Pe=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ve({target:"Promise",stat:!0,forced:me},{race:function(fe){var z=this,ee=Me.f(z),ae=ee.reject,re=Se(function(){var le=we(z.resolve);Pe(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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-call"),we=oe("../internals/new-promise-capability"),Me=oe("../internals/promise-constructor-detection").CONSTRUCTOR;ve({target:"Promise",stat:!0,forced:Me},{reject:function(Pe){var me=we.f(this);return ce(me.reject,void 0,Pe),me.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/get-built-in"),we=oe("../internals/is-pure"),Me=oe("../internals/promise-native-constructor"),Se=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Pe=oe("../internals/promise-resolve"),me=ce("Promise"),xe=we&&!Se;ve({target:"Promise",stat:!0,forced:we||Se},{resolve:function(z){return Pe(xe&&this===me?Me: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,ze,je){var ve=oe("../internals/descriptors"),ce=oe("../internals/global"),we=oe("../internals/function-uncurry-this"),Me=oe("../internals/is-forced"),Se=oe("../internals/inherit-if-required"),Pe=oe("../internals/create-non-enumerable-property"),me=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"),Ie=oe("../internals/well-known-symbol"),Oe=oe("../internals/regexp-unsupported-dot-all"),Le=oe("../internals/regexp-unsupported-ncg"),Ne=Ie("match"),De=ce.RegExp,Re=De.prototype,Je=ce.SyntaxError,_e=we(Re.exec),Ve=we("".charAt),Qe=we("".replace),ut=we("".indexOf),dt=we("".slice),St=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,qe=/a/g,it=/a/g,pt=new De(qe)!==qe,wt=ae.MISSED_STICKY,xt=ae.UNSUPPORTED_Y,ft=ve&&(!pt||wt||Oe||Le||ue(function(){return it[Ne]=!1,De(qe)!=qe||De(it)==it||De(qe,"i")!="/a/i"})),mt=function(Pt){for(var Ct=Pt.length,st=0,bt="",at=!1,ct;st<=Ct;st++){if(ct=Ve(Pt,st),ct==="\\"){bt+=ct+Ve(Pt,++st);continue}!at&&ct==="."?bt+="[\\s\\S]":(ct==="["?at=!0:ct==="]"&&(at=!1),bt+=ct)}return bt},yt=function(Pt){for(var Ct=Pt.length,st=0,bt="",at=[],ct={},Lt=!1,vt=!1,nt=0,Xe="",Ue;st<=Ct;st++){if(Ue=Ve(Pt,st),Ue==="\\")Ue=Ue+Ve(Pt,++st);else if(Ue==="]")Lt=!1;else if(!Lt)switch(!0){case Ue==="[":Lt=!0;break;case Ue==="(":_e(St,dt(Pt,st+1))&&(st+=2,vt=!0),bt+=Ue,nt++;continue;case(Ue===">"&&vt):if(Xe===""||pe(ct,Xe))throw new Je("Invalid capture group name");ct[Xe]=!0,at[at.length]=[Xe,nt],vt=!1,Xe="";continue}vt?Xe+=Ue:bt+=Ue}return[bt,at]};if(Me("RegExp",ft)){for(var It=function(Ct,st){var bt=xe(Re,this),at=fe(Ct),ct=st===void 0,Lt=[],vt=Ct,nt,Xe,Ue,$e,tt,We;if(!bt&&at&&ct&&Ct.constructor===It)return Ct;if((at||xe(Re,Ct))&&(Ct=Ct.source,ct&&(st=ee(vt))),Ct=Ct===void 0?"":z(Ct),st=st===void 0?"":z(st),vt=Ct,Oe&&"dotAll"in qe&&(Xe=!!st&&ut(st,"s")>-1,Xe&&(st=Qe(st,/s/g,""))),nt=st,wt&&"sticky"in qe&&(Ue=!!st&&ut(st,"y")>-1,Ue&&xt&&(st=Qe(st,/y/g,""))),Le&&($e=yt(Ct),Ct=$e[0],Lt=$e[1]),tt=Se(De(Ct,st),bt?this:Re,It),(Xe||Ue||Lt.length)&&(We=be(tt),Xe&&(We.dotAll=!0,We.raw=It(mt(Ct),nt)),Ue&&(We.sticky=!0),Lt.length&&(We.groups=Lt)),Ct!==vt)try{Pe(tt,"source",vt===""?"(?:)":vt)}catch(Be){}return tt},kt=me(De),Ut=0;kt.length>Ut;)re(It,De,kt[Ut++]);Re.constructor=It,It.prototype=Re,le(ce,"RegExp",It)}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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/regexp-exec");ve({target:"RegExp",proto:!0,forced:/./.exec!==ce},{exec:ce})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-name").PROPER,ce=oe("../internals/redefine"),we=oe("../internals/an-object"),Me=oe("../internals/to-string"),Se=oe("../internals/fails"),Pe=oe("../internals/regexp-get-flags"),me="toString",xe=RegExp.prototype,fe=xe[me],z=Se(function(){return fe.call({source:"a",flags:"b"})!="/a/b"}),ee=ve&&fe.name!=me;(z||ee)&&ce(RegExp.prototype,me,function(){var re=we(this),le=Me(re.source),ue=Me(Pe(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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/not-a-regexp"),Me=oe("../internals/require-object-coercible"),Se=oe("../internals/to-string"),Pe=oe("../internals/correct-is-regexp-logic"),me=ce("".indexOf);ve({target:"String",proto:!0,forced:!Pe("includes")},{includes:function(fe){return!!~me(Se(Me(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,ze,je){"use strict";var ve=oe("../internals/string-multibyte").charAt,ce=oe("../internals/to-string"),we=oe("../internals/internal-state"),Me=oe("../internals/define-iterator"),Se="String Iterator",Pe=we.set,me=we.getterFor(Se);Me(String,"String",function(xe){Pe(this,{type:Se,string:ce(xe),index:0})},function(){var fe=me(this),z=fe.string,ee=fe.index,ae;return ee>=z.length?{value:void 0,done:!0}:(ae=ve(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,ze,je){"use strict";var ve=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),we=oe("../internals/an-object"),Me=oe("../internals/to-length"),Se=oe("../internals/to-string"),Pe=oe("../internals/require-object-coercible"),me=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=Pe(this),pe=le==null?void 0:me(le,z);return pe?ve(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=[],Ie=0,Oe;(Oe=fe(le,ue))!==null;){var Le=Se(Oe[0]);Ce[Ie]=Le,Le===""&&(le.lastIndex=xe(ue,Me(le.lastIndex),be)),Ie++}return Ie===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,ze,je){"use strict";var ve=oe("../internals/function-apply"),ce=oe("../internals/function-call"),we=oe("../internals/function-uncurry-this"),Me=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/fails"),Pe=oe("../internals/an-object"),me=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,Ie=Math.min,Oe=we([].concat),Le=we([].push),Ne=we("".indexOf),De=we("".slice),Re=function(Qe){return Qe===void 0?Qe:String(Qe)},Je=function(){return"a".replace(/./,"$0")==="$0"}(),_e=function(){return/./[be]?/./[be]("a","$0")==="":!1}(),Ve=!Se(function(){var Qe=/./;return Qe.exec=function(){var ut=[];return ut.groups={a:"7"},ut},"".replace(Qe,"$<a>")!=="7"});Me("replace",function(Qe,ut,dt){var St=_e?"$":"$0";return[function(it,pt){var wt=ee(this),xt=it==null?void 0:re(it,be);return xt?ce(xt,it,wt,pt):ce(ut,z(wt),it,pt)},function(qe,it){var pt=Pe(this),wt=z(qe);if(typeof it=="string"&&Ne(it,St)===-1&&Ne(it,"$<")===-1){var xt=dt(ut,pt,wt,it);if(xt.done)return xt.value}var ft=me(it);ft||(it=z(it));var mt=pt.global;if(mt){var yt=pt.unicode;pt.lastIndex=0}for(var It=[];;){var kt=ue(pt,wt);if(kt===null||(Le(It,kt),!mt))break;var Ut=z(kt[0]);Ut===""&&(pt.lastIndex=ae(wt,fe(pt.lastIndex),yt))}for(var Pt="",Ct=0,st=0;st<It.length;st++){kt=It[st];for(var bt=z(kt[0]),at=Ce(Ie(xe(kt.index),wt.length),0),ct=[],Lt=1;Lt<kt.length;Lt++)Le(ct,Re(kt[Lt]));var vt=kt.groups;if(ft){var nt=Oe([bt],ct,at,wt);vt!==void 0&&Le(nt,vt);var Xe=z(ve(it,void 0,nt))}else Xe=le(bt,wt,at,ct,vt,it);at>=Ct&&(Pt+=De(wt,Ct,at)+Xe,Ct=at+bt.length)}return Pt+De(wt,Ct)}]},!Ve||!Je||_e)},{"../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,ze,je){"use strict";var ve=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),we=oe("../internals/an-object"),Me=oe("../internals/require-object-coercible"),Se=oe("../internals/same-value"),Pe=oe("../internals/to-string"),me=oe("../internals/get-method"),xe=oe("../internals/regexp-exec-abstract");ce("search",function(fe,z,ee){return[function(re){var le=Me(this),ue=re==null?void 0:me(re,fe);return ue?ve(ue,re,le):new RegExp(re)[fe](Pe(le))},function(ae){var re=we(this),le=Pe(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,ze,je){"use strict";var ve=oe("../internals/function-apply"),ce=oe("../internals/function-call"),we=oe("../internals/function-uncurry-this"),Me=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/is-regexp"),Pe=oe("../internals/an-object"),me=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,Ie=4294967295,Oe=Math.min,Le=[].push,Ne=we(/./.exec),De=we(Le),Re=we("".slice),Je=!be(function(){var _e=/(?:)/,Ve=_e.exec;_e.exec=function(){return Ve.apply(this,arguments)};var Qe="ab".split(_e);return Qe.length!==2||Qe[0]!=="a"||Qe[1]!=="b"});Me("split",function(_e,Ve,Qe){var ut;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ut=function(dt,St){var qe=ee(me(this)),it=St===void 0?Ie:St>>>0;if(it===0)return[];if(dt===void 0)return[qe];if(!Se(dt))return ce(Ve,qe,dt,it);for(var pt=[],wt=(dt.ignoreCase?"i":"")+(dt.multiline?"m":"")+(dt.unicode?"u":"")+(dt.sticky?"y":""),xt=0,ft=new RegExp(dt.source,wt+"g"),mt,yt,It;(mt=ce(ue,ft,qe))&&(yt=ft.lastIndex,!(yt>xt&&(De(pt,Re(qe,xt,mt.index)),mt.length>1&&mt.index<qe.length&&ve(Le,pt,re(mt,1)),It=mt[0].length,xt=yt,pt.length>=it)));)ft.lastIndex===mt.index&&ft.lastIndex++;return xt===qe.length?(It||!Ne(ft,""))&&De(pt,""):De(pt,Re(qe,xt)),pt.length>it?re(pt,0,it):pt}:"0".split(void 0,0).length?ut=function(dt,St){return dt===void 0&&St===0?[]:ce(Ve,this,dt,St)}:ut=Ve,[function(St,qe){var it=me(this),pt=St==null?void 0:ae(St,_e);return pt?ce(pt,St,it,qe):ce(ut,ee(it),St,qe)},function(dt,St){var qe=Pe(this),it=ee(dt),pt=Qe(ut,qe,it,St,ut!==Ve);if(pt.done)return pt.value;var wt=xe(qe,RegExp),xt=qe.unicode,ft=(qe.ignoreCase?"i":"")+(qe.multiline?"m":"")+(qe.unicode?"u":"")+(Ce?"g":"y"),mt=new wt(Ce?"^(?:"+qe.source+")":qe,ft),yt=St===void 0?Ie:St>>>0;if(yt===0)return[];if(it.length===0)return le(mt,it)===null?[it]:[];for(var It=0,kt=0,Ut=[];kt<it.length;){mt.lastIndex=Ce?0:kt;var Pt=le(mt,Ce?Re(it,kt):it),Ct;if(Pt===null||(Ct=Oe(z(mt.lastIndex+(Ce?kt:0)),it.length))===It)kt=fe(it,kt,xt);else{if(De(Ut,Re(it,It,kt)),Ut.length===yt)return Ut;for(var st=1;st<=Pt.length-1;st++)if(De(Ut,Pt[st]),Ut.length===yt)return Ut;kt=It=Ct}}return De(Ut,Re(it,It)),Ut}]},!Je,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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/string-trim").trim,we=oe("../internals/string-trim-forced");ve({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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/global"),we=oe("../internals/function-call"),Me=oe("../internals/function-uncurry-this"),Se=oe("../internals/is-pure"),Pe=oe("../internals/descriptors"),me=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"),Ie=oe("../internals/object-get-own-property-names-external"),Oe=oe("../internals/object-get-own-property-symbols"),Le=oe("../internals/object-get-own-property-descriptor"),Ne=oe("../internals/object-define-property"),De=oe("../internals/object-define-properties"),Re=oe("../internals/object-property-is-enumerable"),Je=oe("../internals/redefine"),_e=oe("../internals/shared"),Ve=oe("../internals/shared-key"),Qe=oe("../internals/hidden-keys"),ut=oe("../internals/uid"),dt=oe("../internals/well-known-symbol"),St=oe("../internals/well-known-symbol-wrapped"),qe=oe("../internals/define-well-known-symbol"),it=oe("../internals/symbol-define-to-primitive"),pt=oe("../internals/set-to-string-tag"),wt=oe("../internals/internal-state"),xt=oe("../internals/array-iteration").forEach,ft=Ve("hidden"),mt="Symbol",yt="prototype",It=wt.set,kt=wt.getterFor(mt),Ut=Object[yt],Pt=ce.Symbol,Ct=Pt&&Pt[yt],st=ce.TypeError,bt=ce.QObject,at=Le.f,ct=Ne.f,Lt=Ie.f,vt=Re.f,nt=Me([].push),Xe=_e("symbols"),Ue=_e("op-symbols"),$e=_e("wks"),tt=!bt||!bt[yt]||!bt[yt].findChild,We=Pe&&xe(function(){return pe(ct({},"a",{get:function(){return ct(this,"a",{value:7}).a}})).a!=7})?function(jt,Kt,en){var cn=at(Ut,Kt);cn&&delete Ut[Kt],ct(jt,Kt,en),cn&&jt!==Ut&&ct(Ut,Kt,cn)}:ct,Be=function(jt,Kt){var en=Xe[jt]=pe(Ct);return It(en,{type:mt,tag:jt,description:Kt}),Pe||(en.description=Kt),en},Te=function(Kt,en,cn){Kt===Ut&&Te(Ue,en,cn),ee(Kt);var yn=re(en);return ee(cn),fe(Xe,yn)?(cn.enumerable?(fe(Kt,ft)&&Kt[ft][yn]&&(Kt[ft][yn]=!1),cn=pe(cn,{enumerable:ue(0,!1)})):(fe(Kt,ft)||ct(Kt,ft,ue(1,{})),Kt[ft][yn]=!0),We(Kt,yn,cn)):ct(Kt,yn,cn)},Ke=function(Kt,en){ee(Kt);var cn=ae(en),yn=be(cn).concat(Yt(cn));return xt(yn,function(On){(!Pe||we(Ze,cn,On))&&Te(Kt,On,cn[On])}),Kt},gt=function(Kt,en){return en===void 0?pe(Kt):Ke(pe(Kt),en)},Ze=function(Kt){var en=re(Kt),cn=we(vt,this,en);return this===Ut&&fe(Xe,en)&&!fe(Ue,en)?!1:cn||!fe(this,en)||!fe(Xe,en)||fe(this,ft)&&this[ft][en]?cn:!0},Ot=function(Kt,en){var cn=ae(Kt),yn=re(en);if(!(cn===Ut&&fe(Xe,yn)&&!fe(Ue,yn))){var On=at(cn,yn);return On&&fe(Xe,yn)&&!(fe(cn,ft)&&cn[ft][yn])&&(On.enumerable=!0),On}},zt=function(Kt){var en=Lt(ae(Kt)),cn=[];return xt(en,function(yn){!fe(Xe,yn)&&!fe(Qe,yn)&&nt(cn,yn)}),cn},Yt=function(jt){var Kt=jt===Ut,en=Lt(Kt?Ue:ae(jt)),cn=[];return xt(en,function(yn){fe(Xe,yn)&&(!Kt||fe(Ut,yn))&&nt(cn,Xe[yn])}),cn};me||(Pt=function(){if(z(Ct,this))throw st("Symbol is not a constructor");var Kt=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),en=ut(Kt),cn=function(yn){this===Ut&&we(cn,Ue,yn),fe(this,ft)&&fe(this[ft],en)&&(this[ft][en]=!1),We(this,en,ue(1,yn))};return Pe&&tt&&We(Ut,en,{configurable:!0,set:cn}),Be(en,Kt)},Ct=Pt[yt],Je(Ct,"toString",function(){return kt(this).tag}),Je(Pt,"withoutSetter",function(jt){return Be(ut(jt),jt)}),Re.f=Ze,Ne.f=Te,De.f=Ke,Le.f=Ot,Ce.f=Ie.f=zt,Oe.f=Yt,St.f=function(jt){return Be(dt(jt),jt)},Pe&&(ct(Ct,"description",{configurable:!0,get:function(){return kt(this).description}}),Se||Je(Ut,"propertyIsEnumerable",Ze,{unsafe:!0}))),ve({global:!0,wrap:!0,forced:!me,sham:!me},{Symbol:Pt}),xt(be($e),function(jt){qe(jt)}),ve({target:mt,stat:!0,forced:!me},{useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),ve({target:"Object",stat:!0,forced:!me,sham:!Pe},{create:gt,defineProperty:Te,defineProperties:Ke,getOwnPropertyDescriptor:Ot}),ve({target:"Object",stat:!0,forced:!me},{getOwnPropertyNames:zt}),it(),pt(Pt,mt),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,ze,je){"use strict";var ve=oe("../internals/export"),ce=oe("../internals/descriptors"),we=oe("../internals/global"),Me=oe("../internals/function-uncurry-this"),Se=oe("../internals/has-own-property"),Pe=oe("../internals/is-callable"),me=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&&Pe(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var Ne=arguments.length<1||arguments[0]===void 0?void 0:xe(arguments[0]),De=me(ae,this)?new ee(Ne):Ne===void 0?ee():ee(Ne);return Ne===""&&(re[De]=!0),De};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Me(ae.toString),be=Me(ae.valueOf),Ce=/^Symbol\((.*)\)[^)]+$/,Ie=Me("".replace),Oe=Me("".slice);fe(ae,"description",{configurable:!0,get:function(){var Ne=be(this),De=pe(Ne);if(Se(re,Ne))return"";var Re=ue?Oe(De,7,-1):Ie(De,Ce,"$1");return Re===""?void 0:Re}}),ve({global:!0,forced:!0},{Symbol:le})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(oe,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/get-built-in"),we=oe("../internals/has-own-property"),Me=oe("../internals/to-string"),Se=oe("../internals/shared"),Pe=oe("../internals/native-symbol-registry"),me=Se("string-to-symbol-registry"),xe=Se("symbol-to-string-registry");ve({target:"Symbol",stat:!0,forced:!Pe},{for:function(fe){var z=Me(fe);if(we(me,z))return me[z];var ee=ce("Symbol")(z);return me[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,ze,je){var ve=oe("../internals/define-well-known-symbol");ve("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(oe,ze,je){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,ze,je){var ve=oe("../internals/export"),ce=oe("../internals/has-own-property"),we=oe("../internals/is-symbol"),Me=oe("../internals/try-to-string"),Se=oe("../internals/shared"),Pe=oe("../internals/native-symbol-registry"),me=Se("symbol-to-string-registry");ve({target:"Symbol",stat:!0,forced:!Pe},{keyFor:function(fe){if(!we(fe))throw TypeError(Me(fe)+" is not a symbol");if(ce(me,fe))return me[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,ze,je){"use strict";var ve=oe("../internals/function-uncurry-this"),ce=oe("../internals/array-buffer-view-core"),we=oe("../internals/array-copy-within"),Me=ve(we),Se=ce.aTypedArray,Pe=ce.exportTypedArrayMethod;Pe("copyWithin",function(xe,fe){return Me(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,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").every,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("every",function(Pe){return ce(we(this),Pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-call"),we=oe("../internals/array-fill"),Me=ve.aTypedArray,Se=ve.exportTypedArrayMethod;Se("fill",function(me){var xe=arguments.length;return ce(we,Me(this),me,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,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").filter,we=oe("../internals/typed-array-from-species-and-list"),Me=ve.aTypedArray,Se=ve.exportTypedArrayMethod;Se("filter",function(me){var xe=ce(Me(this),me,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,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").findIndex,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("findIndex",function(Pe){return ce(we(this),Pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").find,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("find",function(Pe){return ce(we(this),Pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").forEach,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("forEach",function(Pe){ce(we(this),Pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").includes,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("includes",function(Pe){return ce(we(this),Pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").indexOf,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("indexOf",function(Pe){return ce(we(this),Pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/fails"),we=oe("../internals/function-uncurry-this"),Me=oe("../internals/array-buffer-view-core"),Se=oe("../modules/es.array.iterator"),Pe=oe("../internals/well-known-symbol"),me=Pe("iterator"),xe=ve.Uint8Array,fe=we(Se.values),z=we(Se.keys),ee=we(Se.entries),ae=Me.aTypedArray,re=Me.exportTypedArrayMethod,le=xe&&xe.prototype,ue=!ce(function(){le[me].call([1])}),pe=!!le&&le.values&&le[me]===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(me,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,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-uncurry-this"),we=ve.aTypedArray,Me=ve.exportTypedArrayMethod,Se=ce([].join);Me("join",function(me){return Se(we(this),me)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-apply"),we=oe("../internals/array-last-index-of"),Me=ve.aTypedArray,Se=ve.exportTypedArrayMethod;Se("lastIndexOf",function(me){var xe=arguments.length;return ce(we,Me(this),xe>1?[me,arguments[1]]:[me])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").map,we=oe("../internals/typed-array-species-constructor"),Me=ve.aTypedArray,Se=ve.exportTypedArrayMethod;Se("map",function(me){return ce(Me(this),me,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,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").right,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("reduceRight",function(Pe){var me=arguments.length;return ce(we(this),Pe,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").left,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("reduce",function(Pe){var me=arguments.length;return ce(we(this),Pe,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=ve.aTypedArray,we=ve.exportTypedArrayMethod,Me=Math.floor;we("reverse",function(){for(var Pe=this,me=ce(Pe).length,xe=Me(me/2),fe=0,z;fe<xe;)z=Pe[fe],Pe[fe++]=Pe[--me],Pe[me]=z;return Pe})},{"../internals/array-buffer-view-core":103}],331:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-call"),we=oe("../internals/array-buffer-view-core"),Me=oe("../internals/length-of-array-like"),Se=oe("../internals/to-offset"),Pe=oe("../internals/to-object"),me=oe("../internals/fails"),xe=ve.RangeError,fe=ve.Int8Array,z=fe&&fe.prototype,ee=z&&z.set,ae=we.aTypedArray,re=we.exportTypedArrayMethod,le=!me(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&&me(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),Ie=Pe(be);if(le)return ce(ee,this,Ie,Ce);var Oe=this.length,Le=Me(Ie),Ne=0;if(Le+Ce>Oe)throw xe("Wrong length");for(;Ne<Le;)this[Ce+Ne]=Ie[Ne++]},!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,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/typed-array-species-constructor"),we=oe("../internals/fails"),Me=oe("../internals/array-slice"),Se=ve.aTypedArray,Pe=ve.exportTypedArrayMethod,me=we(function(){new Int8Array(1).slice()});Pe("slice",function(fe,z){for(var ee=Me(Se(this),fe,z),ae=ce(this),re=0,le=ee.length,ue=new ae(le);le>re;)ue[re]=ee[re++];return ue},me)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").some,we=ve.aTypedArray,Me=ve.exportTypedArrayMethod;Me("some",function(Pe){return ce(we(this),Pe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),we=oe("../internals/fails"),Me=oe("../internals/a-callable"),Se=oe("../internals/array-sort"),Pe=oe("../internals/array-buffer-view-core"),me=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=Pe.aTypedArray,ae=Pe.exportTypedArrayMethod,re=ve.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(me)return me<67;if(xe)return!0;if(z)return z<602;var Ce=new re(516),Ie=Array(516),Oe,Le;for(Oe=0;Oe<516;Oe++)Le=Oe%4,Ce[Oe]=515-Oe,Ie[Oe]=Oe-2*Le+3;for(le(Ce,function(Ne,De){return(Ne/4|0)-(De/4|0)}),Oe=0;Oe<516;Oe++)if(Ce[Oe]!==Ie[Oe])return!0}),be=function(Ce){return function(Ie,Oe){return Ce!==void 0?+Ce(Ie,Oe)||0:Oe!==Oe?-1:Ie!==Ie?1:Ie===0&&Oe===0?1/Ie>0&&1/Oe<0?1:-1:Ie>Oe}};ae("sort",function(Ie){return Ie!==void 0&&Me(Ie),pe?le(this,Ie):Se(ee(this),be(Ie))},!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,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),ce=oe("../internals/to-length"),we=oe("../internals/to-absolute-index"),Me=oe("../internals/typed-array-species-constructor"),Se=ve.aTypedArray,Pe=ve.exportTypedArrayMethod;Pe("subarray",function(xe,fe){var z=Se(this),ee=z.length,ae=we(xe,ee),re=Me(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,ze,je){"use strict";var ve=oe("../internals/global"),ce=oe("../internals/function-apply"),we=oe("../internals/array-buffer-view-core"),Me=oe("../internals/fails"),Se=oe("../internals/array-slice"),Pe=ve.Int8Array,me=we.aTypedArray,xe=we.exportTypedArrayMethod,fe=[].toLocaleString,z=!!Pe&&Me(function(){fe.call(new Pe(1))}),ee=Me(function(){return[1,2].toLocaleString()!=new Pe([1,2]).toLocaleString()})||!Me(function(){Pe.prototype.toLocaleString.call([1,2])});xe("toLocaleString",function(){return ce(fe,z?Se(me(this)):me(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,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core").exportTypedArrayMethod,ce=oe("../internals/fails"),we=oe("../internals/global"),Me=oe("../internals/function-uncurry-this"),Se=we.Uint8Array,Pe=Se&&Se.prototype||{},me=[].toString,xe=Me([].join);ce(function(){me.call({})})&&(me=function(){return xe(this)});var fe=Pe.toString!=me;ve("toString",me,fe)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(oe,ze,je){var ve=oe("../internals/typed-array-constructor");ve("Uint8",function(ce){return function(Me,Se,Pe){return ce(this,Me,Se,Pe)}})},{"../internals/typed-array-constructor":258}],339:[function(oe,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/dom-iterables"),we=oe("../internals/dom-token-list-prototype"),Me=oe("../internals/array-for-each"),Se=oe("../internals/create-non-enumerable-property"),Pe=function(xe){if(xe&&xe.forEach!==Me)try{Se(xe,"forEach",Me)}catch(fe){xe.forEach=Me}};for(var me in ce)ce[me]&&Pe(ve[me]&&ve[me].prototype);Pe(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,ze,je){var ve=oe("../internals/global"),ce=oe("../internals/dom-iterables"),we=oe("../internals/dom-token-list-prototype"),Me=oe("../modules/es.array.iterator"),Se=oe("../internals/create-non-enumerable-property"),Pe=oe("../internals/well-known-symbol"),me=Pe("iterator"),xe=Pe("toStringTag"),fe=Me.values,z=function(ae,re){if(ae){if(ae[me]!==fe)try{Se(ae,me,fe)}catch(ue){ae[me]=fe}if(ae[xe]||Se(ae,xe,re),ce[re]){for(var le in Me)if(ae[le]!==Me[le])try{Se(ae,le,Me[le])}catch(ue){ae[le]=Me[le]}}}};for(var ee in ce)z(ve[ee]&&ve[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,ze,je){function ve(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}je.isArray=ve;function ce(pe){return typeof pe=="boolean"}je.isBoolean=ce;function we(pe){return pe===null}je.isNull=we;function Me(pe){return pe==null}je.isNullOrUndefined=Me;function Se(pe){return typeof pe=="number"}je.isNumber=Se;function Pe(pe){return typeof pe=="string"}je.isString=Pe;function me(pe){return typeof pe=="symbol"}je.isSymbol=me;function xe(pe){return pe===void 0}je.isUndefined=xe;function fe(pe){return ue(pe)==="[object RegExp]"}je.isRegExp=fe;function z(pe){return typeof pe=="object"&&pe!==null}je.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}je.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}je.isError=ae;function re(pe){return typeof pe=="function"}je.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}je.isPrimitive=le,je.isBuffer=oe("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(oe,ze,je){(function(ve){"use strict";var ce=function(){var me=/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&&Pe(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"](),Ie=z[ue+"FullYear"](),Oe=z[ue+"Hours"](),Le=z[ue+"Minutes"](),Ne=z[ue+"Seconds"](),De=z[ue+"Milliseconds"](),Re=ae?0:z.getTimezoneOffset(),Je=Me(z),_e=Se(z),Ve={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(Ie).slice(2),yyyy:Ie,h:Oe%12||12,hh:we(Oe%12||12),H:Oe,HH:we(Oe),M:Le,MM:we(Le),s:Ne,ss:we(Ne),l:we(De,3),L:we(Math.round(De/10)),t:Oe<12?"a":"p",tt:Oe<12?"am":"pm",T:Oe<12?"A":"P",TT:Oe<12?"AM":"PM",Z:re?"GMT":ae?"UTC":(String(z).match(xe)||[""]).pop().replace(fe,""),o:(Re>0?"-":"+")+we(Math.floor(Math.abs(Re)/60)*100+Math.abs(Re)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:Je,N:_e};return ee.replace(me,function(Qe){return Qe in Ve?Ve[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(me,xe){for(me=String(me),xe=xe||2;me.length<xe;)me="0"+me;return me}function Me(me){var xe=new Date(me.getFullYear(),me.getMonth(),me.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(me){var xe=me.getDay();return xe===0&&(xe=7),xe}function Pe(me){return me===null?"null":me===void 0?"undefined":typeof me!="object"?typeof me:Array.isArray(me)?"array":{}.toString.call(me).slice(8,-1).toLowerCase()}typeof Ge=="function"&&Ge.amd?Ge(function(){return ce}):typeof je=="object"?ze.exports=ce:ve.dateFormat=ce})(this)},{}],343:[function(oe,ze,je){"use strict";var ve=/["'&<>]/;ze.exports=ce;function ce(we){var Me=""+we,Se=ve.exec(Me);if(!Se)return Me;var Pe,me="",xe=0,fe=0;for(xe=Se.index;xe<Me.length;xe++){switch(Me.charCodeAt(xe)){case 34:Pe=""";break;case 38:Pe="&";break;case 39:Pe="'";break;case 60:Pe="<";break;case 62:Pe=">";break;default:continue}fe!==xe&&(me+=Me.substring(fe,xe)),fe=xe+1,me+=Pe}return fe!==xe?me+Me.substring(fe,xe):me}},{}],344:[function(oe,ze,je){"use strict";var ve=typeof Reflect=="object"?Reflect:null,ce=ve&&typeof ve.apply=="function"?ve.apply:function(Ne,De,Re){return Function.prototype.apply.call(Ne,De,Re)},we;ve&&typeof ve.ownKeys=="function"?we=ve.ownKeys:Object.getOwnPropertySymbols?we=function(Ne){return Object.getOwnPropertyNames(Ne).concat(Object.getOwnPropertySymbols(Ne))}:we=function(Ne){return Object.getOwnPropertyNames(Ne)};function Me(Le){console&&console.warn&&console.warn(Le)}var Se=Number.isNaN||function(Ne){return Ne!==Ne};function Pe(){Pe.init.call(this)}ze.exports=Pe,ze.exports.once=Ce,Pe.EventEmitter=Pe,Pe.prototype._events=void 0,Pe.prototype._eventsCount=0,Pe.prototype._maxListeners=void 0;var me=10;function xe(Le){if(typeof Le!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Le)}Object.defineProperty(Pe,"defaultMaxListeners",{enumerable:!0,get:function(){return me},set:function(Le){if(typeof Le!="number"||Le<0||Se(Le))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Le+".");me=Le}}),Pe.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},Pe.prototype.setMaxListeners=function(Ne){if(typeof Ne!="number"||Ne<0||Se(Ne))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ne+".");return this._maxListeners=Ne,this};function fe(Le){return Le._maxListeners===void 0?Pe.defaultMaxListeners:Le._maxListeners}Pe.prototype.getMaxListeners=function(){return fe(this)},Pe.prototype.emit=function(Ne){for(var De=[],Re=1;Re<arguments.length;Re++)De.push(arguments[Re]);var Je=Ne==="error",_e=this._events;if(_e!==void 0)Je=Je&&_e.error===void 0;else if(!Je)return!1;if(Je){var Ve;if(De.length>0&&(Ve=De[0]),Ve instanceof Error)throw Ve;var Qe=new Error("Unhandled error."+(Ve?" ("+Ve.message+")":""));throw Qe.context=Ve,Qe}var ut=_e[Ne];if(ut===void 0)return!1;if(typeof ut=="function")ce(ut,this,De);else for(var dt=ut.length,St=ue(ut,dt),Re=0;Re<dt;++Re)ce(St[Re],this,De);return!0};function z(Le,Ne,De,Re){var Je,_e,Ve;if(xe(De),_e=Le._events,_e===void 0?(_e=Le._events=Object.create(null),Le._eventsCount=0):(_e.newListener!==void 0&&(Le.emit("newListener",Ne,De.listener?De.listener:De),_e=Le._events),Ve=_e[Ne]),Ve===void 0)Ve=_e[Ne]=De,++Le._eventsCount;else if(typeof Ve=="function"?Ve=_e[Ne]=Re?[De,Ve]:[Ve,De]:Re?Ve.unshift(De):Ve.push(De),Je=fe(Le),Je>0&&Ve.length>Je&&!Ve.warned){Ve.warned=!0;var Qe=new Error("Possible EventEmitter memory leak detected. "+Ve.length+" "+String(Ne)+" listeners added. Use emitter.setMaxListeners() to increase limit");Qe.name="MaxListenersExceededWarning",Qe.emitter=Le,Qe.type=Ne,Qe.count=Ve.length,Me(Qe)}return Le}Pe.prototype.addListener=function(Ne,De){return z(this,Ne,De,!1)},Pe.prototype.on=Pe.prototype.addListener,Pe.prototype.prependListener=function(Ne,De){return z(this,Ne,De,!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(Le,Ne,De){var Re={fired:!1,wrapFn:void 0,target:Le,type:Ne,listener:De},Je=ee.bind(Re);return Je.listener=De,Re.wrapFn=Je,Je}Pe.prototype.once=function(Ne,De){return xe(De),this.on(Ne,ae(this,Ne,De)),this},Pe.prototype.prependOnceListener=function(Ne,De){return xe(De),this.prependListener(Ne,ae(this,Ne,De)),this},Pe.prototype.removeListener=function(Ne,De){var Re,Je,_e,Ve,Qe;if(xe(De),Je=this._events,Je===void 0)return this;if(Re=Je[Ne],Re===void 0)return this;if(Re===De||Re.listener===De)--this._eventsCount===0?this._events=Object.create(null):(delete Je[Ne],Je.removeListener&&this.emit("removeListener",Ne,Re.listener||De));else if(typeof Re!="function"){for(_e=-1,Ve=Re.length-1;Ve>=0;Ve--)if(Re[Ve]===De||Re[Ve].listener===De){Qe=Re[Ve].listener,_e=Ve;break}if(_e<0)return this;_e===0?Re.shift():pe(Re,_e),Re.length===1&&(Je[Ne]=Re[0]),Je.removeListener!==void 0&&this.emit("removeListener",Ne,Qe||De)}return this},Pe.prototype.off=Pe.prototype.removeListener,Pe.prototype.removeAllListeners=function(Ne){var De,Re,Je;if(Re=this._events,Re===void 0)return this;if(Re.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Re[Ne]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Re[Ne]),this;if(arguments.length===0){var _e=Object.keys(Re),Ve;for(Je=0;Je<_e.length;++Je)Ve=_e[Je],Ve!=="removeListener"&&this.removeAllListeners(Ve);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(De=Re[Ne],typeof De=="function")this.removeListener(Ne,De);else if(De!==void 0)for(Je=De.length-1;Je>=0;Je--)this.removeListener(Ne,De[Je]);return this};function re(Le,Ne,De){var Re=Le._events;if(Re===void 0)return[];var Je=Re[Ne];return Je===void 0?[]:typeof Je=="function"?De?[Je.listener||Je]:[Je]:De?be(Je):ue(Je,Je.length)}Pe.prototype.listeners=function(Ne){return re(this,Ne,!0)},Pe.prototype.rawListeners=function(Ne){return re(this,Ne,!1)},Pe.listenerCount=function(Le,Ne){return typeof Le.listenerCount=="function"?Le.listenerCount(Ne):le.call(Le,Ne)},Pe.prototype.listenerCount=le;function le(Le){var Ne=this._events;if(Ne!==void 0){var De=Ne[Le];if(typeof De=="function")return 1;if(De!==void 0)return De.length}return 0}Pe.prototype.eventNames=function(){return this._eventsCount>0?we(this._events):[]};function ue(Le,Ne){for(var De=new Array(Ne),Re=0;Re<Ne;++Re)De[Re]=Le[Re];return De}function pe(Le,Ne){for(;Ne+1<Le.length;Ne++)Le[Ne]=Le[Ne+1];Le.pop()}function be(Le){for(var Ne=new Array(Le.length),De=0;De<Ne.length;++De)Ne[De]=Le[De].listener||Le[De];return Ne}function Ce(Le,Ne){return new Promise(function(De,Re){function Je(Ve){Le.removeListener(Ne,_e),Re(Ve)}function _e(){typeof Le.removeListener=="function"&&Le.removeListener("error",Je),De([].slice.call(arguments))}Oe(Le,Ne,_e,{once:!0}),Ne!=="error"&&Ie(Le,Je,{once:!0})})}function Ie(Le,Ne,De){typeof Le.on=="function"&&Oe(Le,"error",Ne,De)}function Oe(Le,Ne,De,Re){if(typeof Le.on=="function")Re.once?Le.once(Ne,De):Le.on(Ne,De);else if(typeof Le.addEventListener=="function")Le.addEventListener(Ne,function Je(_e){Re.once&&Le.removeEventListener(Ne,Je),De(_e)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Le)}},{}],345:[function(oe,ze,je){"use strict";var ve=oe("is-callable"),ce=Object.prototype.toString,we=Object.prototype.hasOwnProperty,Me=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)},Pe=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))},me=function(fe,z,ee){if(!ve(z))throw new TypeError("iterator must be a function");var ae;arguments.length>=3&&(ae=ee),ce.call(fe)==="[object Array]"?Me(fe,z,ae):typeof fe=="string"?Se(fe,z,ae):Pe(fe,z,ae)};ze.exports=me},{"is-callable":367}],346:[function(oe,ze,je){"use strict";var ve="Function.prototype.bind called on incompatible ",ce=Array.prototype.slice,we=Object.prototype.toString,Me="[object Function]";ze.exports=function(Pe){var me=this;if(typeof me!="function"||we.call(me)!==Me)throw new TypeError(ve+me);for(var xe=ce.call(arguments,1),fe,z=function(){if(this instanceof fe){var ue=me.apply(this,xe.concat(ce.call(arguments)));return Object(ue)===ue?ue:this}else return me.apply(Pe,xe.concat(ce.call(arguments)))},ee=Math.max(0,me.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),me.prototype){var le=function(){};le.prototype=me.prototype,fe.prototype=new le,le.prototype=null}return fe}},{}],347:[function(oe,ze,je){"use strict";var ve=oe("./implementation");ze.exports=Function.prototype.bind||ve},{"./implementation":346}],348:[function(oe,ze,je){"use strict";var ve,ce=SyntaxError,we=Function,Me=TypeError,Se=function(ut){try{return we('"use strict"; return ('+ut+").constructor;")()}catch(dt){}},Pe=Object.getOwnPropertyDescriptor;if(Pe)try{Pe({},"")}catch(ut){Pe=null}var me=function(){throw new Me},xe=Pe?function(){try{return arguments.callee,me}catch(ut){try{return Pe(arguments,"callee").get}catch(dt){return me}}}():me,fe=oe("has-symbols")(),z=oe("has-proto")(),ee=Object.getPrototypeOf||(z?function(ut){return ut.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?ve:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?ve:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ve:ArrayBuffer,"%ArrayIteratorPrototype%":fe&&ee?ee([][Symbol.iterator]()):ve,"%AsyncFromSyncIteratorPrototype%":ve,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?ve:Atomics,"%BigInt%":typeof BigInt=="undefined"?ve:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ve:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ve:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ve:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ve:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ve:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ve:FinalizationRegistry,"%Function%":we,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?ve:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ve:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ve:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fe&&ee?ee(ee([][Symbol.iterator]())):ve,"%JSON%":typeof JSON=="object"?JSON:ve,"%Map%":typeof Map=="undefined"?ve:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!fe||!ee?ve:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ve:Promise,"%Proxy%":typeof Proxy=="undefined"?ve:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ve:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ve:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!fe||!ee?ve:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ve:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fe&&ee?ee(""[Symbol.iterator]()):ve,"%Symbol%":fe?Symbol:ve,"%SyntaxError%":ce,"%ThrowTypeError%":xe,"%TypedArray%":re,"%TypeError%":Me,"%Uint8Array%":typeof Uint8Array=="undefined"?ve:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ve:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ve:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ve:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ve:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ve:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ve:WeakSet};if(ee)try{null.error}catch(ut){var ue=ee(ee(ut));le["%Error.prototype%"]=ue}var pe=function ut(dt){var St;if(dt==="%AsyncFunction%")St=Se("async function () {}");else if(dt==="%GeneratorFunction%")St=Se("function* () {}");else if(dt==="%AsyncGeneratorFunction%")St=Se("async function* () {}");else if(dt==="%AsyncGenerator%"){var qe=ut("%AsyncGeneratorFunction%");qe&&(St=qe.prototype)}else if(dt==="%AsyncIteratorPrototype%"){var it=ut("%AsyncGenerator%");it&&ee&&(St=ee(it.prototype))}return le[dt]=St,St},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"),Ie=oe("has"),Oe=Ce.call(Function.call,Array.prototype.concat),Le=Ce.call(Function.apply,Array.prototype.splice),Ne=Ce.call(Function.call,String.prototype.replace),De=Ce.call(Function.call,String.prototype.slice),Re=Ce.call(Function.call,RegExp.prototype.exec),Je=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,Ve=function(dt){var St=De(dt,0,1),qe=De(dt,-1);if(St==="%"&&qe!=="%")throw new ce("invalid intrinsic syntax, expected closing `%`");if(qe==="%"&&St!=="%")throw new ce("invalid intrinsic syntax, expected opening `%`");var it=[];return Ne(dt,Je,function(pt,wt,xt,ft){it[it.length]=xt?Ne(ft,_e,"$1"):wt||pt}),it},Qe=function(dt,St){var qe=dt,it;if(Ie(be,qe)&&(it=be[qe],qe="%"+it[0]+"%"),Ie(le,qe)){var pt=le[qe];if(pt===ae&&(pt=pe(qe)),typeof pt=="undefined"&&!St)throw new Me("intrinsic "+dt+" exists, but is not available. Please file an issue!");return{alias:it,name:qe,value:pt}}throw new ce("intrinsic "+dt+" does not exist!")};ze.exports=function(dt,St){if(typeof dt!="string"||dt.length===0)throw new Me("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof St!="boolean")throw new Me('"allowMissing" argument must be a boolean');if(Re(/^%?[^%]*%?$/,dt)===null)throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var qe=Ve(dt),it=qe.length>0?qe[0]:"",pt=Qe("%"+it+"%",St),wt=pt.name,xt=pt.value,ft=!1,mt=pt.alias;mt&&(it=mt[0],Le(qe,Oe([0,1],mt)));for(var yt=1,It=!0;yt<qe.length;yt+=1){var kt=qe[yt],Ut=De(kt,0,1),Pt=De(kt,-1);if((Ut==='"'||Ut==="'"||Ut==="`"||Pt==='"'||Pt==="'"||Pt==="`")&&Ut!==Pt)throw new ce("property names with quotes must have matching quotes");if((kt==="constructor"||!It)&&(ft=!0),it+="."+kt,wt="%"+it+"%",Ie(le,wt))xt=le[wt];else if(xt!=null){if(!(kt in xt)){if(!St)throw new Me("base intrinsic for "+dt+" exists, but the property is not available.");return}if(Pe&&yt+1>=qe.length){var Ct=Pe(xt,kt);It=!!Ct,It&&"get"in Ct&&!("originalValue"in Ct.get)?xt=Ct.get:xt=xt[kt]}else It=Ie(xt,kt),xt=xt[kt];It&&!ft&&(le[wt]=xt)}}return xt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(oe,ze,je){"use strict";var ve=oe("get-intrinsic"),ce=ve("%Object.getOwnPropertyDescriptor%",!0);if(ce)try{ce([],"length")}catch(we){ce=null}ze.exports=ce},{"get-intrinsic":348}],350:[function(oe,ze,je){"use strict";var ve={foo:{}},ce=Object;ze.exports=function(){return{__proto__:ve}.foo===ve.foo&&!({__proto__:null}instanceof ce)}},{}],351:[function(oe,ze,je){"use strict";var ve=typeof Symbol!="undefined"&&Symbol,ce=oe("./shams");ze.exports=function(){return typeof ve!="function"||typeof Symbol!="function"||typeof ve("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ce()}},{"./shams":352}],352:[function(oe,ze,je){"use strict";ze.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ce={},we=Symbol("test"),Me=Object(we);if(typeof we=="string"||Object.prototype.toString.call(we)!=="[object Symbol]"||Object.prototype.toString.call(Me)!=="[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 Pe=Object.getOwnPropertySymbols(ce);if(Pe.length!==1||Pe[0]!==we||!Object.prototype.propertyIsEnumerable.call(ce,we))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var me=Object.getOwnPropertyDescriptor(ce,we);if(me.value!==Se||me.enumerable!==!0)return!1}return!0}},{}],353:[function(oe,ze,je){"use strict";var ve=oe("has-symbols/shams");ze.exports=function(){return ve()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(oe,ze,je){"use strict";var ve=oe("function-bind");ze.exports=ve.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(oe,ze,je){var ve=oe("http"),ce=oe("url"),we=ze.exports;for(var Me in ve)ve.hasOwnProperty(Me)&&(we[Me]=ve[Me]);we.request=function(Pe,me){return Pe=Se(Pe),ve.request.call(this,Pe,me)},we.get=function(Pe,me){return Pe=Se(Pe),ve.get.call(this,Pe,me)};function Se(Pe){if(typeof Pe=="string"&&(Pe=ce.parse(Pe)),Pe.protocol||(Pe.protocol="https:"),Pe.protocol!=="https:")throw new Error('Protocol "'+Pe.protocol+'" not supported. Expected "https:"');return Pe}},{http:468,url:472}],356:[function(oe,ze,je){"use strict";var ve=oe("util"),ce=oe("ms");ze.exports=function(we){if(typeof we=="number")return we;var Me=ce(we);if(Me===void 0){var Se=new Error(ve.format("humanize-ms(%j) result undefined",we));console.warn(Se.stack)}return Me}},{ms:376,util:419}],357:[function(oe,ze,je){je.read=function(ve,ce,we,Me,Se){var Pe,me,xe=Se*8-Me-1,fe=(1<<xe)-1,z=fe>>1,ee=-7,ae=we?Se-1:0,re=we?-1:1,le=ve[ce+ae];for(ae+=re,Pe=le&(1<<-ee)-1,le>>=-ee,ee+=xe;ee>0;Pe=Pe*256+ve[ce+ae],ae+=re,ee-=8);for(me=Pe&(1<<-ee)-1,Pe>>=-ee,ee+=Me;ee>0;me=me*256+ve[ce+ae],ae+=re,ee-=8);if(Pe===0)Pe=1-z;else{if(Pe===fe)return me?NaN:(le?-1:1)*(1/0);me=me+Math.pow(2,Me),Pe=Pe-z}return(le?-1:1)*me*Math.pow(2,Pe-Me)},je.write=function(ve,ce,we,Me,Se,Pe){var me,xe,fe,z=Pe*8-Se-1,ee=(1<<z)-1,ae=ee>>1,re=Se===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=Me?0:Pe-1,ue=Me?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,me=ee):(me=Math.floor(Math.log(ce)/Math.LN2),ce*(fe=Math.pow(2,-me))<1&&(me--,fe*=2),me+ae>=1?ce+=re/fe:ce+=re*Math.pow(2,1-ae),ce*fe>=2&&(me++,fe/=2),me+ae>=ee?(xe=0,me=ee):me+ae>=1?(xe=(ce*fe-1)*Math.pow(2,Se),me=me+ae):(xe=ce*Math.pow(2,ae-1)*Math.pow(2,Se),me=0));Se>=8;ve[we+le]=xe&255,le+=ue,xe/=256,Se-=8);for(me=me<<Se|xe,z+=Se;z>0;ve[we+le]=me&255,le+=ue,me/=256,z-=8);ve[we+le-ue]|=pe*128}},{}],358:[function(oe,ze,je){"use strict";var ve=[oe("./nextTick"),oe("./queueMicrotask"),oe("./mutation.js"),oe("./messageChannel"),oe("./stateChange"),oe("./timeout")],ce,we,Me=-1,Se=[],Pe=!1;function me(){!ce||!we||(ce=!1,we.length?Se=we.concat(Se):Me=-1,Se.length&&xe())}function xe(){if(!ce){Pe=!1,ce=!0;for(var le=Se.length,ue=setTimeout(me);le;){for(we=Se,Se=[];we&&++Me<le;)we[Me].run();Me=-1,le=Se.length}we=null,Me=-1,ce=!1,clearTimeout(ue)}}for(var fe,z=-1,ee=ve.length;++z<ee;)if(ve[z]&&ve[z].test&&ve[z].test()){fe=ve[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)}},ze.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)),!Pe&&!ce&&(Pe=!0,fe())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(oe,ze,je){(function(ve){(function(){"use strict";je.test=function(){return ve.setImmediate?!1:typeof ve.MessageChannel!="undefined"},je.install=function(ce){var we=new ve.MessageChannel;return we.port1.onmessage=ce,function(){we.port2.postMessage(0)}}}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(oe,ze,je){(function(ve){(function(){"use strict";var ce=ve.MutationObserver||ve.WebKitMutationObserver;je.test=function(){return ce},je.install=function(we){var Me=0,Se=new ce(we),Pe=ve.document.createTextNode("");return Se.observe(Pe,{characterData:!0}),function(){Pe.data=Me=++Me%2}}}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(oe,ze,je){(function(ve){(function(){"use strict";je.test=function(){return typeof ve.queueMicrotask=="function"},je.install=function(ce){return function(){ve.queueMicrotask(ce)}}}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(oe,ze,je){(function(ve){(function(){"use strict";je.test=function(){return"document"in ve&&"onreadystatechange"in ve.document.createElement("script")},je.install=function(ce){return function(){var we=ve.document.createElement("script");return we.onreadystatechange=function(){ce(),we.onreadystatechange=null,we.parentNode.removeChild(we),we=null},ve.document.documentElement.appendChild(we),ce}}}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(oe,ze,je){"use strict";je.test=function(){return!0},je.install=function(ve){return function(){setTimeout(ve,0)}}},{}],364:[function(oe,ze,je){typeof Object.create=="function"?ze.exports=function(ce,we){we&&(ce.super_=we,ce.prototype=Object.create(we.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}))}:ze.exports=function(ce,we){if(we){ce.super_=we;var Me=function(){};Me.prototype=we.prototype,ce.prototype=new Me,ce.prototype.constructor=ce}}},{}],365:[function(oe,ze,je){"use strict";var ve=oe("has-tostringtag/shams")(),ce=oe("call-bind/callBound"),we=ce("Object.prototype.toString"),Me=function(xe){return ve&&xe&&typeof xe=="object"&&Symbol.toStringTag in xe?!1:we(xe)==="[object Arguments]"},Se=function(xe){return Me(xe)?!0:xe!==null&&typeof xe=="object"&&typeof xe.length=="number"&&xe.length>=0&&we(xe)!=="[object Array]"&&we(xe.callee)==="[object Function]"},Pe=function(){return Me(arguments)}();Me.isLegacyArguments=Se,ze.exports=Pe?Me:Se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(oe,ze,je){ze.exports=function(we){return we!=null&&(ve(we)||ce(we)||!!we._isBuffer)};function ve(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"&&ve(we.slice(0,0))}},{}],367:[function(oe,ze,je){"use strict";var ve=Function.prototype.toString,ce=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,we,Me;if(typeof ce=="function"&&typeof Object.defineProperty=="function")try{we=Object.defineProperty({},"length",{get:function(){throw Me}}),Me={},ce(function(){throw 42},null,we)}catch(Ie){Ie!==Me&&(ce=null)}else ce=null;var Se=/^\s*class\b/,Pe=function(Oe){try{var Le=ve.call(Oe);return Se.test(Le)}catch(Ne){return!1}},me=function(Oe){try{return Pe(Oe)?!1:(ve.call(Oe),!0)}catch(Le){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(Oe){if((pe||!Oe)&&(typeof Oe=="undefined"||typeof Oe=="object"))try{var Le=xe.call(Oe);return(Le===ae||Le===re||Le===le||Le===fe)&&Oe("")==null}catch(Ne){}return!1})}ze.exports=ce?function(Oe){if(be(Oe))return!0;if(!Oe||typeof Oe!="function"&&typeof Oe!="object")return!1;try{ce(Oe,null,we)}catch(Le){if(Le!==Me)return!1}return!Pe(Oe)&&me(Oe)}:function(Oe){if(be(Oe))return!0;if(!Oe||typeof Oe!="function"&&typeof Oe!="object")return!1;if(ue)return me(Oe);if(Pe(Oe))return!1;var Le=xe.call(Oe);return Le!==z&&Le!==ee&&!/^\[object HTML/.test(Le)?!1:me(Oe)}},{}],368:[function(oe,ze,je){"use strict";var ve=Object.prototype.toString,ce=Function.prototype.toString,we=/^\s*(?:function)?\*/,Me=oe("has-tostringtag/shams")(),Se=Object.getPrototypeOf,Pe=function(){if(!Me)return!1;try{return Function("return function*() {}")()}catch(xe){}},me;ze.exports=function(fe){if(typeof fe!="function")return!1;if(we.test(ce.call(fe)))return!0;if(!Me){var z=ve.call(fe);return z==="[object GeneratorFunction]"}if(!Se)return!1;if(typeof me=="undefined"){var ee=Pe();me=ee?Se(ee):!1}return Se(fe)===me}},{"has-tostringtag/shams":353}],369:[function(oe,ze,je){"use strict";var ve=oe("which-typed-array");ze.exports=function(we){return!!ve(we)}},{"which-typed-array":420}],370:[function(oe,ze,je){var ve={}.toString;ze.exports=Array.isArray||function(ce){return ve.call(ce)=="[object Array]"}},{}],371:[function(oe,ze,je){(function(ve){(function(){(function(ce,we){typeof je=="object"&&typeof ze!="undefined"?ze.exports=we(ce):typeof Ge=="function"&&Ge.amd?Ge(we):we(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ve!="undefined"?ve:this,function(ce){"use strict";ce=ce||{};var we=ce.Base64,Me="2.6.4",Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pe=function(dt){for(var St={},qe=0,it=dt.length;qe<it;qe++)St[dt.charAt(qe)]=qe;return St}(Se),me=String.fromCharCode,xe=function(dt){if(dt.length<2){var St=dt.charCodeAt(0);return St<128?dt:St<2048?me(192|St>>>6)+me(128|St&63):me(224|St>>>12&15)+me(128|St>>>6&63)+me(128|St&63)}else{var St=65536+(dt.charCodeAt(0)-55296)*1024+(dt.charCodeAt(1)-56320);return me(240|St>>>18&7)+me(128|St>>>12&63)+me(128|St>>>6&63)+me(128|St&63)}},fe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(dt){return dt.replace(fe,xe)},ee=function(dt){var St=[0,2,1][dt.length%3],qe=dt.charCodeAt(0)<<16|(dt.length>1?dt.charCodeAt(1):0)<<8|(dt.length>2?dt.charCodeAt(2):0),it=[Se.charAt(qe>>>18),Se.charAt(qe>>>12&63),St>=2?"=":Se.charAt(qe>>>6&63),St>=1?"=":Se.charAt(qe&63)];return it.join("")},ae=ce.btoa&&typeof ce.btoa=="function"?function(dt){return ce.btoa(dt)}:function(dt){if(dt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return dt.replace(/[\s\S]{1,3}/g,ee)},re=function(dt){return ae(z(String(dt)))},le=function(dt){return dt.replace(/[+\/]/g,function(St){return St=="+"?"-":"_"}).replace(/=/g,"")},ue=function(dt,St){return St?le(re(dt)):re(dt)},pe=function(dt){return ue(dt,!0)},be;ce.Uint8Array&&(be=function(dt,St){for(var qe="",it=0,pt=dt.length;it<pt;it+=3){var wt=dt[it],xt=dt[it+1],ft=dt[it+2],mt=wt<<16|xt<<8|ft;qe+=Se.charAt(mt>>>18)+Se.charAt(mt>>>12&63)+(typeof xt!="undefined"?Se.charAt(mt>>>6&63):"=")+(typeof ft!="undefined"?Se.charAt(mt&63):"=")}return St?le(qe):qe});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ie=function(dt){switch(dt.length){case 4:var St=(7&dt.charCodeAt(0))<<18|(63&dt.charCodeAt(1))<<12|(63&dt.charCodeAt(2))<<6|63&dt.charCodeAt(3),qe=St-65536;return me((qe>>>10)+55296)+me((qe&1023)+56320);case 3:return me((15&dt.charCodeAt(0))<<12|(63&dt.charCodeAt(1))<<6|63&dt.charCodeAt(2));default:return me((31&dt.charCodeAt(0))<<6|63&dt.charCodeAt(1))}},Oe=function(dt){return dt.replace(Ce,Ie)},Le=function(dt){var St=dt.length,qe=St%4,it=(St>0?Pe[dt.charAt(0)]<<18:0)|(St>1?Pe[dt.charAt(1)]<<12:0)|(St>2?Pe[dt.charAt(2)]<<6:0)|(St>3?Pe[dt.charAt(3)]:0),pt=[me(it>>>16),me(it>>>8&255),me(it&255)];return pt.length-=[0,0,2,1][qe],pt.join("")},Ne=ce.atob&&typeof ce.atob=="function"?function(dt){return ce.atob(dt)}:function(dt){return dt.replace(/\S{1,4}/g,Le)},De=function(dt){return Ne(String(dt).replace(/[^A-Za-z0-9\+\/]/g,""))},Re=function(dt){return Oe(Ne(dt))},Je=function(dt){return String(dt).replace(/[-_]/g,function(St){return St=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_e=function(dt){return Re(Je(dt))},Ve;ce.Uint8Array&&(Ve=function(dt){return Uint8Array.from(De(Je(dt)),function(St){return St.charCodeAt(0)})});var Qe=function(){var dt=ce.Base64;return ce.Base64=we,dt};if(ce.Base64={VERSION:Me,atob:De,btoa:ae,fromBase64:_e,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:Oe,decode:_e,noConflict:Qe,fromUint8Array:be,toUint8Array:Ve},typeof Object.defineProperty=="function"){var ut=function(dt){return{value:dt,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ut(function(){return _e(this)})),Object.defineProperty(String.prototype,"toBase64",ut(function(dt){return ue(this,dt)})),Object.defineProperty(String.prototype,"toBase64URI",ut(function(){return ue(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),typeof ze!="undefined"&&ze.exports?ze.exports.Base64=ce.Base64:typeof Ge=="function"&&Ge.amd&&Ge([],function(){return ce.Base64}),{Base64:ce.Base64}})}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(oe,ze,je){"use strict";ze.exports=ce;var ve=Object.prototype.hasOwnProperty;function ce(we,Me,Se){if(!we)throw new TypeError("argument dest is required");if(!Me)throw new TypeError("argument src is required");return Se===void 0&&(Se=!0),Object.getOwnPropertyNames(Me).forEach(function(me){if(!(!Se&&ve.call(we,me))){var xe=Object.getOwnPropertyDescriptor(Me,me);Object.defineProperty(we,me,xe)}}),we}},{}],373:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.regexp.constructor.js"),oe("core-js/modules/es.regexp.to-string.js");function ve(){this._types=Object.create(null),this._extensions=Object.create(null);for(var 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)}ve.prototype.define=function(ce,we){for(var Me in ce){var Se=ce[Me].map(function(fe){return fe.toLowerCase()});Me=Me.toLowerCase();for(var Pe=0;Pe<Se.length;Pe++){var me=Se[Pe];if(me[0]!=="*"){if(!we&&me in this._types)throw new Error('Attempt to change mapping for "'+me+'" extension from "'+this._types[me]+'" to "'+Me+'". Pass `force=true` to allow this, otherwise remove "'+me+'" from the list of extensions for "'+Me+'".');this._types[me]=Me}}if(we||!this._extensions[Me]){var xe=Se[0];this._extensions[Me]=xe[0]!=="*"?xe:xe.substr(1)}}},ve.prototype.getType=function(ce){ce=String(ce);var we=ce.replace(/^.*[/\\]/,"").toLowerCase(),Me=we.replace(/^.*\./,"").toLowerCase(),Se=we.length<ce.length,Pe=Me.length<we.length-1;return(Pe||!Se)&&this._types[Me]||null},ve.prototype.getExtension=function(ce){return ce=/^\s*([^;\s]*)/.test(ce)&&RegExp.$1,ce&&this._extensions[ce.toLowerCase()]||null},ze.exports=ve},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(oe,ze,je){"use strict";var ve=oe("./Mime");ze.exports=new ve(oe("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(oe,ze,je){"use strict";ze.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,ze,je){var ve=1e3,ce=ve*60,we=ce*60,Me=we*24,Se=Me*7,Pe=Me*365.25;ze.exports=function(ee,ae){ae=ae||{};var re=typeof ee;if(re==="string"&&ee.length>0)return me(ee);if(re==="number"&&isFinite(ee))return ae.long?fe(ee):xe(ee);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ee))};function me(ee){if(ee=String(ee),!(ee.length>100)){var ae=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ee);if(ae){var re=parseFloat(ae[1]),le=(ae[2]||"ms").toLowerCase();switch(le){case"years":case"year":case"yrs":case"yr":case"y":return re*Pe;case"weeks":case"week":case"w":return re*Se;case"days":case"day":case"d":return re*Me;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*ve;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return re;default:return}}}}function xe(ee){var ae=Math.abs(ee);return ae>=Me?Math.round(ee/Me)+"d":ae>=we?Math.round(ee/we)+"h":ae>=ce?Math.round(ee/ce)+"m":ae>=ve?Math.round(ee/ve)+"s":ee+"ms"}function fe(ee){var ae=Math.abs(ee);return ae>=Me?z(ee,ae,Me,"day"):ae>=we?z(ee,ae,we,"hour"):ae>=ce?z(ee,ae,ce,"minute"):ae>=ve?z(ee,ae,ve,"second"):ee+" ms"}function z(ee,ae,re,le){var ue=ae>=re*1.5;return Math.round(ee/re)+" "+le+(ue?"s":"")}},{}],377:[function(oe,ze,je){"use strict";var ve=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;function Me(Pe){if(Pe==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(Pe)}function Se(){try{if(!Object.assign)return!1;var Pe=new String("abc");if(Pe[5]="de",Object.getOwnPropertyNames(Pe)[0]==="5")return!1;for(var me={},xe=0;xe<10;xe++)me["_"+String.fromCharCode(xe)]=xe;var fe=Object.getOwnPropertyNames(me).map(function(ee){return me[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}}ze.exports=Se()?Object.assign:function(Pe,me){for(var xe,fe=Me(Pe),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(ve){z=ve(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,ze,je){(function(ve){(function(){"use strict";function ce(Pe){if(typeof Pe!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Pe))}function we(Pe,me){for(var xe="",fe=0,z=-1,ee=0,ae,re=0;re<=Pe.length;++re){if(re<Pe.length)ae=Pe.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}}me&&(xe.length>0?xe+="/..":xe="..",fe=2)}else xe.length>0?xe+="/"+Pe.slice(z+1,re):xe=Pe.slice(z+1,re),fe=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return xe}function Me(Pe,me){var xe=me.dir||me.root,fe=me.base||(me.name||"")+(me.ext||"");return xe?xe===me.root?xe+fe:xe+Pe+fe:fe}var Se={resolve:function(){for(var me="",xe=!1,fe,z=arguments.length-1;z>=-1&&!xe;z--){var ee;z>=0?ee=arguments[z]:(fe===void 0&&(fe=ve.cwd()),ee=fe),ce(ee),ee.length!==0&&(me=ee+"/"+me,xe=ee.charCodeAt(0)===47)}return me=we(me,!xe),xe?me.length>0?"/"+me:"/":me.length>0?me:"."},normalize:function(me){if(ce(me),me.length===0)return".";var xe=me.charCodeAt(0)===47,fe=me.charCodeAt(me.length-1)===47;return me=we(me,!xe),me.length===0&&!xe&&(me="."),me.length>0&&fe&&(me+="/"),xe?"/"+me:me},isAbsolute:function(me){return ce(me),me.length>0&&me.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var me,xe=0;xe<arguments.length;++xe){var fe=arguments[xe];ce(fe),fe.length>0&&(me===void 0?me=fe:me+="/"+fe)}return me===void 0?".":Se.normalize(me)},relative:function(me,xe){if(ce(me),ce(xe),me===xe||(me=Se.resolve(me),xe=Se.resolve(xe),me===xe))return"";for(var fe=1;fe<me.length&&me.charCodeAt(fe)===47;++fe);for(var z=me.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&&(me.charCodeAt(fe+be)===47?pe=be:be===0&&(pe=0));break}var Ce=me.charCodeAt(fe+be),Ie=xe.charCodeAt(ae+be);if(Ce!==Ie)break;Ce===47&&(pe=be)}var Oe="";for(be=fe+pe+1;be<=z;++be)(be===z||me.charCodeAt(be)===47)&&(Oe.length===0?Oe+="..":Oe+="/..");return Oe.length>0?Oe+xe.slice(ae+pe):(ae+=pe,xe.charCodeAt(ae)===47&&++ae,xe.slice(ae))},_makeLong:function(me){return me},dirname:function(me){if(ce(me),me.length===0)return".";for(var xe=me.charCodeAt(0),fe=xe===47,z=-1,ee=!0,ae=me.length-1;ae>=1;--ae)if(xe=me.charCodeAt(ae),xe===47){if(!ee){z=ae;break}}else ee=!1;return z===-1?fe?"/":".":fe&&z===1?"//":me.slice(0,z)},basename:function(me,xe){if(xe!==void 0&&typeof xe!="string")throw new TypeError('"ext" argument must be a string');ce(me);var fe=0,z=-1,ee=!0,ae;if(xe!==void 0&&xe.length>0&&xe.length<=me.length){if(xe.length===me.length&&xe===me)return"";var re=xe.length-1,le=-1;for(ae=me.length-1;ae>=0;--ae){var ue=me.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=me.length),me.slice(fe,z)}else{for(ae=me.length-1;ae>=0;--ae)if(me.charCodeAt(ae)===47){if(!ee){fe=ae+1;break}}else z===-1&&(ee=!1,z=ae+1);return z===-1?"":me.slice(fe,z)}},extname:function(me){ce(me);for(var xe=-1,fe=0,z=-1,ee=!0,ae=0,re=me.length-1;re>=0;--re){var le=me.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?"":me.slice(xe,z)},format:function(me){if(me===null||typeof me!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof me);return Me("/",me)},parse:function(me){ce(me);var xe={root:"",dir:"",base:"",ext:"",name:""};if(me.length===0)return xe;var fe=me.charCodeAt(0),z=fe===47,ee;z?(xe.root="/",ee=1):ee=0;for(var ae=-1,re=0,le=-1,ue=!0,pe=me.length-1,be=0;pe>=ee;--pe){if(fe=me.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=me.slice(1,le):xe.base=xe.name=me.slice(re,le)):(re===0&&z?(xe.name=me.slice(1,ae),xe.base=me.slice(1,le)):(xe.name=me.slice(re,ae),xe.base=me.slice(re,le)),xe.ext=me.slice(ae,le)),re>0?xe.dir=me.slice(0,re-1):z&&(xe.dir="/"),xe},sep:"/",delimiter:":",win32:null,posix:null};Se.posix=Se,ze.exports=Se}).call(this)}).call(this,oe("_process"))},{_process:467}],379:[function(oe,ze,je){(function(ve){(function(){(function(){"use strict";var ce={function:!0,object:!0},we=ce[typeof window]&&window||this,Me=we,Se=ce[typeof je]&&je,Pe=ce[typeof ze]&&ze&&!ze.nodeType&&ze,me=Se&&Pe&&typeof ve=="object"&&ve;me&&(me.global===me||me.window===me||me.self===me)&&(we=me);var xe=Math.pow(2,53)-1,fe=/\bOpera/,z=this,ee=Object.prototype,ae=ee.hasOwnProperty,re=ee.toString;function le(_e){return _e=String(_e),_e.charAt(0).toUpperCase()+_e.slice(1)}function ue(_e,Ve,Qe){var ut={"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 Ve&&Qe&&/^Win/i.test(_e)&&!/^Windows Phone /i.test(_e)&&(ut=ut[/[\d.]+$/.exec(_e)])&&(_e="Windows "+ut),_e=String(_e),Ve&&Qe&&(_e=_e.replace(RegExp(Ve,"i"),Qe)),_e=be(_e.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]),_e}function pe(_e,Ve){var Qe=-1,ut=_e?_e.length:0;if(typeof ut=="number"&&ut>-1&&ut<=xe)for(;++Qe<ut;)Ve(_e[Qe],Qe,_e);else Ce(_e,Ve)}function be(_e){return _e=De(_e),/^(?:webOS|i(?:OS|P))/.test(_e)?_e:le(_e)}function Ce(_e,Ve){for(var Qe in _e)ae.call(_e,Qe)&&Ve(_e[Qe],Qe,_e)}function Ie(_e){return _e==null?le(_e):re.call(_e).slice(8,-1)}function Oe(_e,Ve){var Qe=_e!=null?typeof _e[Ve]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Qe)&&(Qe=="object"?!!_e[Ve]:!0)}function Le(_e){return String(_e).replace(/([ -])(?!$)/g,"$1?")}function Ne(_e,Ve){var Qe=null;return pe(_e,function(ut,dt){Qe=Ve(Qe,ut,dt,_e)}),Qe}function De(_e){return String(_e).replace(/^ +| +$/g,"")}function Re(_e){var Ve=we,Qe=_e&&typeof _e=="object"&&Ie(_e)!="String";Qe&&(Ve=_e,_e=null);var ut=Ve.navigator||{},dt=ut.userAgent||"";_e||(_e=dt);var St=Qe||z==Me,qe=Qe?!!ut.likeChrome:/\bChrome\b/.test(_e)&&!/internal|\n/i.test(re.toString()),it="Object",pt=Qe?it:"ScriptBridgingProxyObject",wt=Qe?it:"Environment",xt=Qe&&Ve.java?"JavaPackage":Ie(Ve.java),ft=Qe?it:"RuntimeObject",mt=/\bJava/.test(xt)&&Ve.java,yt=mt&&Ie(Ve.environment)==wt,It=mt?"a":"\u03B1",kt=mt?"b":"\u03B2",Ut=Ve.document||{},Pt=Ve.operamini||Ve.opera,Ct=fe.test(Ct=Qe&&Pt?Pt["[[Class]]"]:Ie(Pt))?Ct:Pt=null,st,bt=_e,at=[],ct=null,Lt=_e==dt,vt=Lt&&Pt&&typeof Pt.version=="function"&&Pt.version(),nt,Xe=Be([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Ue=Ke(["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"]),$e=Ze([{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"]),tt=Te({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),We=gt(["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 Be(jt){return Ne(jt,function(Kt,en){return Kt||RegExp("\\b"+(en.pattern||Le(en))+"\\b","i").exec(_e)&&(en.label||en)})}function Te(jt){return Ne(jt,function(Kt,en,cn){return Kt||(en[$e]||en[/^[a-z]+(?: +[a-z]+\b)*/i.exec($e)]||RegExp("\\b"+Le(cn)+"(?:\\b|\\w*\\d)","i").exec(_e))&&cn})}function Ke(jt){return Ne(jt,function(Kt,en){return Kt||RegExp("\\b"+(en.pattern||Le(en))+"\\b","i").exec(_e)&&(en.label||en)})}function gt(jt){return Ne(jt,function(Kt,en){var cn=en.pattern||Le(en);return!Kt&&(Kt=RegExp("\\b"+cn+"(?:/[\\d.]+|[ \\w.]*)","i").exec(_e))&&(Kt=ue(Kt,cn,en.label||en)),Kt})}function Ze(jt){return Ne(jt,function(Kt,en){var cn=en.pattern||Le(en);return!Kt&&(Kt=RegExp("\\b"+cn+" *\\d+[.\\w_]*","i").exec(_e)||RegExp("\\b"+cn+" *\\w+-[\\w]*","i").exec(_e)||RegExp("\\b"+cn+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(_e))&&((Kt=String(en.label&&!RegExp(cn,"i").test(en.label)?en.label:Kt).split("/"))[1]&&!/[\d.]+/.test(Kt[0])&&(Kt[0]+=" "+Kt[1]),en=en.label||en,Kt=be(Kt[0].replace(RegExp(cn,"i"),en).replace(RegExp("; *(?:"+en+"[_-])?","i")," ").replace(RegExp("("+en+")[-_.]?(\\w)","i"),"$1 $2"))),Kt})}function Ot(jt){return Ne(jt,function(Kt,en){return Kt||(RegExp(en+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(_e)||0)[1]||null})}function zt(){return this.description||""}if(Xe&&(Xe=[Xe]),/\bAndroid\b/.test(We)&&!$e&&(st=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(_e))&&($e=De(st[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),tt&&!$e?$e=Ze([tt]):tt&&$e&&($e=$e.replace(RegExp("^("+Le(tt)+")[-_.\\s]","i"),tt+" ").replace(RegExp("^("+Le(tt)+")[-_.]?(\\w)","i"),tt+" $2")),(st=/\bGoogle TV\b/.exec($e))&&($e=st[0]),/\bSimulator\b/i.test(_e)&&($e=($e?$e+" ":"")+"Simulator"),Ue=="Opera Mini"&&/\bOPiOS\b/.test(_e)&&at.push("running in Turbo/Uncompressed mode"),Ue=="IE"&&/\blike iPhone OS\b/.test(_e)?(st=Re(_e.replace(/like iPhone OS/,"")),tt=st.manufacturer,$e=st.product):/^iP/.test($e)?(Ue||(Ue="Safari"),We="iOS"+((st=/ OS ([\d_]+)/i.exec(_e))?" "+st[1].replace(/_/g,"."):"")):Ue=="Konqueror"&&/^Linux\b/i.test(We)?We="Kubuntu":tt&&tt!="Google"&&(/Chrome/.test(Ue)&&!/\bMobile Safari\b/i.test(_e)||/\bVita\b/.test($e))||/\bAndroid\b/.test(We)&&/^Chrome/.test(Ue)&&/\bVersion\//i.test(_e)?(Ue="Android Browser",We=/\bAndroid\b/.test(We)?We:"Android"):Ue=="Silk"?(/\bMobi/i.test(_e)||(We="Android",at.unshift("desktop mode")),/Accelerated *= *true/i.test(_e)&&at.unshift("accelerated")):Ue=="UC Browser"&&/\bUCWEB\b/.test(_e)?at.push("speed mode"):Ue=="PaleMoon"&&(st=/\bFirefox\/([\d.]+)\b/.exec(_e))?at.push("identifying as Firefox "+st[1]):Ue=="Firefox"&&(st=/\b(Mobile|Tablet|TV)\b/i.exec(_e))?(We||(We="Firefox OS"),$e||($e=st[1])):!Ue||(st=!/\bMinefield\b/i.test(_e)&&/\b(?:Firefox|Safari)\b/.exec(Ue))?(Ue&&!$e&&/[\/,]|^[^(]+?\)/.test(_e.slice(_e.indexOf(st+"/")+8))&&(Ue=null),(st=$e||tt||We)&&($e||tt||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(We))&&(Ue=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(We)?We:st)+" Browser")):Ue=="Electron"&&(st=(/\bChrome\/([\d.]+)\b/.exec(_e)||0)[1])&&at.push("Chromium "+st),vt||(vt=Ot(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Le(Ue),"(?:Firefox|Minefield|NetFront)"])),(st=Xe=="iCab"&&parseFloat(vt)>3&&"WebKit"||/\bOpera\b/.test(Ue)&&(/\bOPR\b/.test(_e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(_e)&&!/^(?:Trident|EdgeHTML)$/.test(Xe)&&"WebKit"||!Xe&&/\bMSIE\b/i.test(_e)&&(We=="Mac OS"?"Tasman":"Trident")||Xe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Ue)&&"NetFront")&&(Xe=[st]),Ue=="IE"&&(st=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(_e)||0)[1])?(Ue+=" Mobile",We="Windows Phone "+(/\+$/.test(st)?st:st+".x"),at.unshift("desktop mode")):/\bWPDesktop\b/i.test(_e)?(Ue="IE Mobile",We="Windows Phone 8.x",at.unshift("desktop mode"),vt||(vt=(/\brv:([\d.]+)/.exec(_e)||0)[1])):Ue!="IE"&&Xe=="Trident"&&(st=/\brv:([\d.]+)/.exec(_e))&&(Ue&&at.push("identifying as "+Ue+(vt?" "+vt:"")),Ue="IE",vt=st[1]),Lt){if(Oe(Ve,"global"))if(mt&&(st=mt.lang.System,bt=st.getProperty("os.arch"),We=We||st.getProperty("os.name")+" "+st.getProperty("os.version")),yt){try{vt=Ve.require("ringo/engine").version.join("."),Ue="RingoJS"}catch(jt){(st=Ve.system)&&st.global.system==Ve.system&&(Ue="Narwhal",We||(We=st[0].os||null))}Ue||(Ue="Rhino")}else typeof Ve.process=="object"&&!Ve.process.browser&&(st=Ve.process)&&(typeof st.versions=="object"&&(typeof st.versions.electron=="string"?(at.push("Node "+st.versions.node),Ue="Electron",vt=st.versions.electron):typeof st.versions.nw=="string"&&(at.push("Chromium "+vt,"Node "+st.versions.node),Ue="NW.js",vt=st.versions.nw)),Ue||(Ue="Node.js",bt=st.arch,We=st.platform,vt=/[\d.]+/.exec(st.version),vt=vt?vt[0]:null));else Ie(st=Ve.runtime)==pt?(Ue="Adobe AIR",We=st.flash.system.Capabilities.os):Ie(st=Ve.phantom)==ft?(Ue="PhantomJS",vt=(st=st.version||null)&&st.major+"."+st.minor+"."+st.patch):typeof Ut.documentMode=="number"&&(st=/\bTrident\/(\d+)/i.exec(_e))?(vt=[vt,Ut.documentMode],(st=+st[1]+4)!=vt[1]&&(at.push("IE "+vt[1]+" mode"),Xe&&(Xe[1]=""),vt[1]=st),vt=Ue=="IE"?String(vt[1].toFixed(1)):vt[0]):typeof Ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Ue)&&(at.push("masking as "+Ue+" "+vt),Ue="IE",vt="11.0",Xe=["Trident"],We="Windows");We=We&&be(We)}if(vt&&(st=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(vt)||/(?:alpha|beta)(?: ?\d)?/i.exec(_e+";"+(Lt&&ut.appMinorVersion))||/\bMinefield\b/i.test(_e)&&"a")&&(ct=/b/i.test(st)?"beta":"alpha",vt=vt.replace(RegExp(st+"\\+?$"),"")+(ct=="beta"?kt:It)+(/\d+\+?/.exec(st)||"")),Ue=="Fennec"||Ue=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(We))Ue="Firefox Mobile";else if(Ue=="Maxthon"&&vt)vt=vt.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test($e))$e=="Xbox 360"&&(We=null),$e=="Xbox 360"&&/\bIEMobile\b/.test(_e)&&at.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Ue)||Ue&&!$e&&!/Browser|Mobi/.test(Ue))&&(We=="Windows CE"||/Mobi/i.test(_e)))Ue+=" Mobile";else if(Ue=="IE"&&Lt)try{Ve.external===null&&at.unshift("platform preview")}catch(jt){at.unshift("embedded")}else(/\bBlackBerry\b/.test($e)||/\bBB10\b/.test(_e))&&(st=(RegExp($e.replace(/ +/g," *")+"/([.\\d]+)","i").exec(_e)||0)[1]||vt)?(st=[st,/BB10/.test(_e)],We=(st[1]?($e=null,tt="BlackBerry"):"Device Software")+" "+st[0],vt=null):this!=Ce&&$e!="Wii"&&(Lt&&Pt||/Opera/.test(Ue)&&/\b(?:MSIE|Firefox)\b/i.test(_e)||Ue=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(We)||Ue=="IE"&&(We&&!/^Win/.test(We)&&vt>5.5||/\bWindows XP\b/.test(We)&&vt>8||vt==8&&!/\bTrident\b/.test(_e)))&&!fe.test(st=Re.call(Ce,_e.replace(fe,"")+";"))&&st.name&&(st="ing as "+st.name+((st=st.version)?" "+st:""),fe.test(Ue)?(/\bIE\b/.test(st)&&We=="Mac OS"&&(We=null),st="identify"+st):(st="mask"+st,Ct?Ue=be(Ct.replace(/([a-z])([A-Z])/g,"$1 $2")):Ue="Opera",/\bIE\b/.test(st)&&(We=null),Lt||(vt=null)),Xe=["Presto"],at.push(st));(st=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(_e)||0)[1])&&(st=[parseFloat(st.replace(/\.(\d)$/,".0$1")),st],Ue=="Safari"&&st[1].slice(-1)=="+"?(Ue="WebKit Nightly",ct="alpha",vt=st[1].slice(0,-1)):(vt==st[1]||vt==(st[2]=(/\bSafari\/([\d.]+\+?)/i.exec(_e)||0)[1]))&&(vt=null),st[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(_e)||0)[1],st[0]==537.36&&st[2]==537.36&&parseFloat(st[1])>=28&&Xe=="WebKit"&&(Xe=["Blink"]),!Lt||!qe&&!st[1]?(Xe&&(Xe[1]="like Safari"),st=(st=st[0],st<400?1:st<500?2:st<526?3:st<533?4:st<534?"4+":st<535?5:st<537?6:st<538?7:st<601?8:st<602?9:st<604?10:st<606?11:st<608?12:"12")):(Xe&&(Xe[1]="like Chrome"),st=st[1]||(st=st[0],st<530?1:st<532?2:st<532.05?3:st<533?4:st<534.03?5:st<534.07?6:st<534.1?7:st<534.13?8:st<534.16?9:st<534.24?10:st<534.3?11:st<535.01?12:st<535.02?"13+":st<535.07?15:st<535.11?16:st<535.19?17:st<536.05?18:st<536.1?19:st<537.01?20:st<537.11?"21+":st<537.13?23:st<537.18?24:st<537.24?25:st<537.36?26:Xe!="Blink"?"27":"28")),Xe&&(Xe[1]+=" "+(st+=typeof st=="number"?".x":/[.+]/.test(st)?"":"+")),Ue=="Safari"&&(!vt||parseInt(vt)>45)?vt=st:Ue=="Chrome"&&/\bHeadlessChrome/i.test(_e)&&at.unshift("headless")),Ue=="Opera"&&(st=/\bzbov|zvav$/.exec(We))?(Ue+=" ",at.unshift("desktop mode"),st=="zvav"?(Ue+="Mini",vt=null):Ue+="Mobile",We=We.replace(RegExp(" *"+st+"$"),"")):Ue=="Safari"&&/\bChrome\b/.exec(Xe&&Xe[1])?(at.unshift("desktop mode"),Ue="Chrome Mobile",vt=null,/\bOS X\b/.test(We)?(tt="Apple",We="iOS 4.3+"):We=null):/\bSRWare Iron\b/.test(Ue)&&!vt&&(vt=Ot("Chrome")),vt&&vt.indexOf(st=/[\d.]+$/.exec(We))==0&&_e.indexOf("/"+st+"-")>-1&&(We=De(We.replace(st,""))),We&&We.indexOf(Ue)!=-1&&!RegExp(Ue+" OS").test(We)&&(We=We.replace(RegExp(" *"+Le(Ue)+" *"),"")),Xe&&!/\b(?:Avant|Nook)\b/.test(Ue)&&(/Browser|Lunascape|Maxthon/.test(Ue)||Ue!="Safari"&&/^iOS/.test(We)&&/\bSafari\b/.test(Xe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Ue)&&Xe[1])&&(st=Xe[Xe.length-1])&&at.push(st),at.length&&(at=["("+at.join("; ")+")"]),tt&&$e&&$e.indexOf(tt)<0&&at.push("on "+tt),$e&&at.push((/^on /.test(at[at.length-1])?"":"on ")+$e),We&&(st=/ ([\d.+]+)$/.exec(We),nt=st&&We.charAt(We.length-st[0].length-1)=="/",We={architecture:32,family:st&&!nt?We.replace(st[0],""):We,version:st?st[1]:null,toString:function(){var jt=this.version;return this.family+(jt&&!nt?" "+jt:"")+(this.architecture==64?" 64-bit":"")}}),(st=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(bt))&&!/\bi686\b/i.test(bt)?(We&&(We.architecture=64,We.family=We.family.replace(RegExp(" *"+st),"")),Ue&&(/\bWOW64\b/i.test(_e)||Lt&&/\w(?:86|32)$/.test(ut.cpuClass||ut.platform)&&!/\bWin64; x64\b/i.test(_e))&&at.unshift("32-bit")):We&&/^OS X/.test(We.family)&&Ue=="Chrome"&&parseFloat(vt)>=39&&(We.architecture=64),_e||(_e=null);var Yt={};return Yt.description=_e,Yt.layout=Xe&&Xe[0],Yt.manufacturer=tt,Yt.name=Ue,Yt.prerelease=ct,Yt.product=$e,Yt.ua=_e,Yt.version=Ue&&vt,Yt.os=We||{architecture:null,family:null,version:null,toString:function(){return"null"}},Yt.parse=Re,Yt.toString=zt,Yt.version&&at.unshift(vt),Yt.name&&at.unshift(Ue),We&&Ue&&!(We==String(We).split(" ")[0]&&(We==Ue.split(" ")[0]||$e))&&at.push($e?"("+We+")":"on "+We),at.length&&(Yt.description=at.join(" ")),Yt}var Je=Re();typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd?(we.platform=Je,Ge(function(){return Je})):Se&&Pe?Ce(Je,function(_e,Ve){Se[Ve]=_e}):we.platform=Je}).call(this)}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(oe,ze,je){(function(ve){(function(){"use strict";typeof ve=="undefined"||!ve.version||ve.version.indexOf("v0.")===0||ve.version.indexOf("v1.")===0&&ve.version.indexOf("v1.8.")!==0?ze.exports={nextTick:ce}:ze.exports=ve;function ce(we,Me,Se,Pe){if(typeof we!="function")throw new TypeError('"callback" argument must be a function');var me=arguments.length,xe,fe;switch(me){case 0:case 1:return ve.nextTick(we);case 2:return ve.nextTick(function(){we.call(null,Me)});case 3:return ve.nextTick(function(){we.call(null,Me,Se)});case 4:return ve.nextTick(function(){we.call(null,Me,Se,Pe)});default:for(xe=new Array(me-1),fe=0;fe<xe.length;)xe[fe++]=arguments[fe];return ve.nextTick(function(){we.apply(null,xe)})}}}).call(this)}).call(this,oe("_process"))},{_process:467}],381:[function(oe,ze,je){var ve=ze.exports={},ce,we;function Me(){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=Me}catch(pe){ce=Me}try{typeof clearTimeout=="function"?we=clearTimeout:we=Se}catch(pe){we=Se}})();function Pe(pe){if(ce===setTimeout)return setTimeout(pe,0);if((ce===Me||!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 me(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=Pe(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,me(pe)}}ve.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&&Pe(re)};function le(pe,be){this.fun=pe,this.array=be}le.prototype.run=function(){this.fun.apply(null,this.array)},ve.title="browser",ve.browser=!0,ve.env={},ve.argv=[],ve.version="",ve.versions={};function ue(){}ve.on=ue,ve.addListener=ue,ve.once=ue,ve.off=ue,ve.removeListener=ue,ve.removeAllListeners=ue,ve.emit=ue,ve.prependListener=ue,ve.prependOnceListener=ue,ve.listeners=function(pe){return[]},ve.binding=function(pe){throw new Error("process.binding is not supported")},ve.cwd=function(){return"/"},ve.chdir=function(pe){throw new Error("process.chdir is not supported")},ve.umask=function(){return 0}},{}],382:[function(oe,ze,je){(function(ve){(function(){(function(ce){var we=typeof je=="object"&&je&&!je.nodeType&&je,Me=typeof ze=="object"&&ze&&!ze.nodeType&&ze,Se=typeof ve=="object"&&ve;(Se.global===Se||Se.window===Se||Se.self===Se)&&(ce=Se);var Pe,me=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,Ie={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Oe=xe-fe,Le=Math.floor,Ne=String.fromCharCode,De;function Re(xt){throw new RangeError(Ie[xt])}function Je(xt,ft){for(var mt=xt.length,yt=[];mt--;)yt[mt]=ft(xt[mt]);return yt}function _e(xt,ft){var mt=xt.split("@"),yt="";mt.length>1&&(yt=mt[0]+"@",xt=mt[1]),xt=xt.replace(Ce,".");var It=xt.split("."),kt=Je(It,ft).join(".");return yt+kt}function Ve(xt){for(var ft=[],mt=0,yt=xt.length,It,kt;mt<yt;)It=xt.charCodeAt(mt++),It>=55296&&It<=56319&&mt<yt?(kt=xt.charCodeAt(mt++),(kt&64512)==56320?ft.push(((It&1023)<<10)+(kt&1023)+65536):(ft.push(It),mt--)):ft.push(It);return ft}function Qe(xt){return Je(xt,function(ft){var mt="";return ft>65535&&(ft-=65536,mt+=Ne(ft>>>10&1023|55296),ft=56320|ft&1023),mt+=Ne(ft),mt}).join("")}function ut(xt){return xt-48<10?xt-22:xt-65<26?xt-65:xt-97<26?xt-97:xe}function dt(xt,ft){return xt+22+75*(xt<26)-((ft!=0)<<5)}function St(xt,ft,mt){var yt=0;for(xt=mt?Le(xt/ae):xt>>1,xt+=Le(xt/ft);xt>Oe*z>>1;yt+=xe)xt=Le(xt/Oe);return Le(yt+(Oe+1)*xt/(xt+ee))}function qe(xt){var ft=[],mt=xt.length,yt,It=0,kt=le,Ut=re,Pt,Ct,st,bt,at,ct,Lt,vt,nt;for(Pt=xt.lastIndexOf(ue),Pt<0&&(Pt=0),Ct=0;Ct<Pt;++Ct)xt.charCodeAt(Ct)>=128&&Re("not-basic"),ft.push(xt.charCodeAt(Ct));for(st=Pt>0?Pt+1:0;st<mt;){for(bt=It,at=1,ct=xe;st>=mt&&Re("invalid-input"),Lt=ut(xt.charCodeAt(st++)),(Lt>=xe||Lt>Le((me-It)/at))&&Re("overflow"),It+=Lt*at,vt=ct<=Ut?fe:ct>=Ut+z?z:ct-Ut,!(Lt<vt);ct+=xe)nt=xe-vt,at>Le(me/nt)&&Re("overflow"),at*=nt;yt=ft.length+1,Ut=St(It-bt,yt,bt==0),Le(It/yt)>me-kt&&Re("overflow"),kt+=Le(It/yt),It%=yt,ft.splice(It++,0,kt)}return Qe(ft)}function it(xt){var ft,mt,yt,It,kt,Ut,Pt,Ct,st,bt,at,ct=[],Lt,vt,nt,Xe;for(xt=Ve(xt),Lt=xt.length,ft=le,mt=0,kt=re,Ut=0;Ut<Lt;++Ut)at=xt[Ut],at<128&&ct.push(Ne(at));for(yt=It=ct.length,It&&ct.push(ue);yt<Lt;){for(Pt=me,Ut=0;Ut<Lt;++Ut)at=xt[Ut],at>=ft&&at<Pt&&(Pt=at);for(vt=yt+1,Pt-ft>Le((me-mt)/vt)&&Re("overflow"),mt+=(Pt-ft)*vt,ft=Pt,Ut=0;Ut<Lt;++Ut)if(at=xt[Ut],at<ft&&++mt>me&&Re("overflow"),at==ft){for(Ct=mt,st=xe;bt=st<=kt?fe:st>=kt+z?z:st-kt,!(Ct<bt);st+=xe)Xe=Ct-bt,nt=xe-bt,ct.push(Ne(dt(bt+Xe%nt,0))),Ct=Le(Xe/nt);ct.push(Ne(dt(Ct,0))),kt=St(mt,vt,yt==It),mt=0,++yt}++mt,++ft}return ct.join("")}function pt(xt){return _e(xt,function(ft){return pe.test(ft)?qe(ft.slice(4).toLowerCase()):ft})}function wt(xt){return _e(xt,function(ft){return be.test(ft)?"xn--"+it(ft):ft})}if(Pe={version:"1.4.1",ucs2:{decode:Ve,encode:Qe},decode:qe,encode:it,toASCII:wt,toUnicode:pt},typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd)Ge("punycode",function(){return Pe});else if(we&&Me)if(ze.exports==we)Me.exports=Pe;else for(De in Pe)Pe.hasOwnProperty(De)&&(we[De]=Pe[De]);else ce.punycode=Pe})(this)}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(oe,ze,je){"use strict";function ve(we,Me){return Object.prototype.hasOwnProperty.call(we,Me)}ze.exports=function(we,Me,Se,Pe){Me=Me||"&",Se=Se||"=";var me={};if(typeof we!="string"||we.length===0)return me;var xe=/\+/g;we=we.split(Me);var fe=1e3;Pe&&typeof Pe.maxKeys=="number"&&(fe=Pe.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),ve(me,pe)?ce(me[pe])?me[pe].push(be):me[pe]=[me[pe],be]:me[pe]=be}return me};var ce=Array.isArray||function(we){return Object.prototype.toString.call(we)==="[object Array]"}},{}],384:[function(oe,ze,je){"use strict";var ve=function(Se){switch(typeof Se){case"string":return Se;case"boolean":return Se?"true":"false";case"number":return isFinite(Se)?Se:"";default:return""}};ze.exports=function(Se,Pe,me,xe){return Pe=Pe||"&",me=me||"=",Se===null&&(Se=void 0),typeof Se=="object"?we(Me(Se),function(fe){var z=encodeURIComponent(ve(fe))+me;return ce(Se[fe])?we(Se[fe],function(ee){return z+encodeURIComponent(ve(ee))}).join(Pe):z+encodeURIComponent(ve(Se[fe]))}).join(Pe):xe?encodeURIComponent(ve(xe))+me+encodeURIComponent(ve(Se)):""};var ce=Array.isArray||function(Se){return Object.prototype.toString.call(Se)==="[object Array]"};function we(Se,Pe){if(Se.map)return Se.map(Pe);for(var me=[],xe=0;xe<Se.length;xe++)me.push(Pe(Se[xe],xe));return me}var Me=Object.keys||function(Se){var Pe=[];for(var me in Se)Object.prototype.hasOwnProperty.call(Se,me)&&Pe.push(me);return Pe}},{}],385:[function(oe,ze,je){"use strict";je.decode=je.parse=oe("./decode"),je.encode=je.stringify=oe("./encode")},{"./decode":383,"./encode":384}],386:[function(oe,ze,je){"use strict";var ve=oe("process-nextick-args"),ce=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};ze.exports=fe;var we=Object.create(oe("core-util-is"));we.inherits=oe("inherits");var Me=oe("./_stream_readable"),Se=oe("./_stream_writable");we.inherits(fe,Me);for(var Pe=ce(Se.prototype),me=0;me<Pe.length;me++){var xe=Pe[me];fe.prototype[xe]||(fe.prototype[xe]=Se.prototype[xe])}function fe(ae){if(!(this instanceof fe))return new fe(ae);Me.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||ve.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(),ve.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(oe,ze,je){"use strict";ze.exports=we;var ve=oe("./_stream_transform"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(we,ve);function we(Me){if(!(this instanceof we))return new we(Me);ve.call(this,Me)}we.prototype._transform=function(Me,Se,Pe){Pe(null,Me)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(oe,ze,je){(function(ve,ce){(function(){"use strict";var we=oe("process-nextick-args");ze.exports=Ne;var Me=oe("isarray"),Se;Ne.ReadableState=Le;var Pe=oe("events").EventEmitter,me=function(at,ct){return at.listeners(ct).length},xe=oe("./internal/streams/stream"),fe=oe("safe-buffer").Buffer,z=ce.Uint8Array||function(){};function ee(at){return fe.from(at)}function ae(at){return fe.isBuffer(at)||at 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(Ne,xe);var Ie=["error","close","destroy","pause","resume"];function Oe(at,ct,Lt){if(typeof at.prependListener=="function")return at.prependListener(ct,Lt);!at._events||!at._events[ct]?at.on(ct,Lt):Me(at._events[ct])?at._events[ct].unshift(Lt):at._events[ct]=[Lt,at._events[ct]]}function Le(at,ct){Se=Se||oe("./_stream_duplex"),at=at||{};var Lt=ct instanceof Se;this.objectMode=!!at.objectMode,Lt&&(this.objectMode=this.objectMode||!!at.readableObjectMode);var vt=at.highWaterMark,nt=at.readableHighWaterMark,Xe=this.objectMode?16:16*1024;vt||vt===0?this.highWaterMark=vt:Lt&&(nt||nt===0)?this.highWaterMark=nt:this.highWaterMark=Xe,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=at.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,at.encoding&&(Ce||(Ce=oe("string_decoder/").StringDecoder),this.decoder=new Ce(at.encoding),this.encoding=at.encoding)}function Ne(at){if(Se=Se||oe("./_stream_duplex"),!(this instanceof Ne))return new Ne(at);this._readableState=new Le(at,this),this.readable=!0,at&&(typeof at.read=="function"&&(this._read=at.read),typeof at.destroy=="function"&&(this._destroy=at.destroy)),xe.call(this)}Object.defineProperty(Ne.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(at){this._readableState&&(this._readableState.destroyed=at)}}),Ne.prototype.destroy=be.destroy,Ne.prototype._undestroy=be.undestroy,Ne.prototype._destroy=function(at,ct){this.push(null),ct(at)},Ne.prototype.push=function(at,ct){var Lt=this._readableState,vt;return Lt.objectMode?vt=!0:typeof at=="string"&&(ct=ct||Lt.defaultEncoding,ct!==Lt.encoding&&(at=fe.from(at,ct),ct=""),vt=!0),De(this,at,ct,!1,vt)},Ne.prototype.unshift=function(at){return De(this,at,null,!0,!1)};function De(at,ct,Lt,vt,nt){var Xe=at._readableState;if(ct===null)Xe.reading=!1,dt(at,Xe);else{var Ue;nt||(Ue=Je(Xe,ct)),Ue?at.emit("error",Ue):Xe.objectMode||ct&&ct.length>0?(typeof ct!="string"&&!Xe.objectMode&&Object.getPrototypeOf(ct)!==fe.prototype&&(ct=ee(ct)),vt?Xe.endEmitted?at.emit("error",new Error("stream.unshift() after end event")):Re(at,Xe,ct,!0):Xe.ended?at.emit("error",new Error("stream.push() after EOF")):(Xe.reading=!1,Xe.decoder&&!Lt?(ct=Xe.decoder.write(ct),Xe.objectMode||ct.length!==0?Re(at,Xe,ct,!1):it(at,Xe)):Re(at,Xe,ct,!1))):vt||(Xe.reading=!1)}return _e(Xe)}function Re(at,ct,Lt,vt){ct.flowing&&ct.length===0&&!ct.sync?(at.emit("data",Lt),at.read(0)):(ct.length+=ct.objectMode?1:Lt.length,vt?ct.buffer.unshift(Lt):ct.buffer.push(Lt),ct.needReadable&&St(at)),it(at,ct)}function Je(at,ct){var Lt;return!ae(ct)&&typeof ct!="string"&&ct!==void 0&&!at.objectMode&&(Lt=new TypeError("Invalid non-string/buffer chunk")),Lt}function _e(at){return!at.ended&&(at.needReadable||at.length<at.highWaterMark||at.length===0)}Ne.prototype.isPaused=function(){return this._readableState.flowing===!1},Ne.prototype.setEncoding=function(at){return Ce||(Ce=oe("string_decoder/").StringDecoder),this._readableState.decoder=new Ce(at),this._readableState.encoding=at,this};var Ve=8388608;function Qe(at){return at>=Ve?at=Ve:(at--,at|=at>>>1,at|=at>>>2,at|=at>>>4,at|=at>>>8,at|=at>>>16,at++),at}function ut(at,ct){return at<=0||ct.length===0&&ct.ended?0:ct.objectMode?1:at!==at?ct.flowing&&ct.length?ct.buffer.head.data.length:ct.length:(at>ct.highWaterMark&&(ct.highWaterMark=Qe(at)),at<=ct.length?at:ct.ended?ct.length:(ct.needReadable=!0,0))}Ne.prototype.read=function(at){ue("read",at),at=parseInt(at,10);var ct=this._readableState,Lt=at;if(at!==0&&(ct.emittedReadable=!1),at===0&&ct.needReadable&&(ct.length>=ct.highWaterMark||ct.ended))return ue("read: emitReadable",ct.length,ct.ended),ct.length===0&&ct.ended?Ct(this):St(this),null;if(at=ut(at,ct),at===0&&ct.ended)return ct.length===0&&Ct(this),null;var vt=ct.needReadable;ue("need readable",vt),(ct.length===0||ct.length-at<ct.highWaterMark)&&(vt=!0,ue("length less than watermark",vt)),ct.ended||ct.reading?(vt=!1,ue("reading or ended",vt)):vt&&(ue("do read"),ct.reading=!0,ct.sync=!0,ct.length===0&&(ct.needReadable=!0),this._read(ct.highWaterMark),ct.sync=!1,ct.reading||(at=ut(Lt,ct)));var nt;return at>0?nt=It(at,ct):nt=null,nt===null?(ct.needReadable=!0,at=0):ct.length-=at,ct.length===0&&(ct.ended||(ct.needReadable=!0),Lt!==at&&ct.ended&&Ct(this)),nt!==null&&this.emit("data",nt),nt};function dt(at,ct){if(!ct.ended){if(ct.decoder){var Lt=ct.decoder.end();Lt&&Lt.length&&(ct.buffer.push(Lt),ct.length+=ct.objectMode?1:Lt.length)}ct.ended=!0,St(at)}}function St(at){var ct=at._readableState;ct.needReadable=!1,ct.emittedReadable||(ue("emitReadable",ct.flowing),ct.emittedReadable=!0,ct.sync?we.nextTick(qe,at):qe(at))}function qe(at){ue("emit readable"),at.emit("readable"),yt(at)}function it(at,ct){ct.readingMore||(ct.readingMore=!0,we.nextTick(pt,at,ct))}function pt(at,ct){for(var Lt=ct.length;!ct.reading&&!ct.flowing&&!ct.ended&&ct.length<ct.highWaterMark&&(ue("maybeReadMore read 0"),at.read(0),Lt!==ct.length);)Lt=ct.length;ct.readingMore=!1}Ne.prototype._read=function(at){this.emit("error",new Error("_read() is not implemented"))},Ne.prototype.pipe=function(at,ct){var Lt=this,vt=this._readableState;switch(vt.pipesCount){case 0:vt.pipes=at;break;case 1:vt.pipes=[vt.pipes,at];break;default:vt.pipes.push(at);break}vt.pipesCount+=1,ue("pipe count=%d opts=%j",vt.pipesCount,ct);var nt=(!ct||ct.end!==!1)&&at!==ve.stdout&&at!==ve.stderr,Xe=nt?$e:zt;vt.endEmitted?we.nextTick(Xe):Lt.once("end",Xe),at.on("unpipe",Ue);function Ue(Yt,jt){ue("onunpipe"),Yt===Lt&&jt&&jt.hasUnpiped===!1&&(jt.hasUnpiped=!0,Be())}function $e(){ue("onend"),at.end()}var tt=wt(Lt);at.on("drain",tt);var We=!1;function Be(){ue("cleanup"),at.removeListener("close",Ze),at.removeListener("finish",Ot),at.removeListener("drain",tt),at.removeListener("error",gt),at.removeListener("unpipe",Ue),Lt.removeListener("end",$e),Lt.removeListener("end",zt),Lt.removeListener("data",Ke),We=!0,vt.awaitDrain&&(!at._writableState||at._writableState.needDrain)&&tt()}var Te=!1;Lt.on("data",Ke);function Ke(Yt){ue("ondata"),Te=!1;var jt=at.write(Yt);jt===!1&&!Te&&((vt.pipesCount===1&&vt.pipes===at||vt.pipesCount>1&&bt(vt.pipes,at)!==-1)&&!We&&(ue("false write response, pause",Lt._readableState.awaitDrain),Lt._readableState.awaitDrain++,Te=!0),Lt.pause())}function gt(Yt){ue("onerror",Yt),zt(),at.removeListener("error",gt),me(at,"error")===0&&at.emit("error",Yt)}Oe(at,"error",gt);function Ze(){at.removeListener("finish",Ot),zt()}at.once("close",Ze);function Ot(){ue("onfinish"),at.removeListener("close",Ze),zt()}at.once("finish",Ot);function zt(){ue("unpipe"),Lt.unpipe(at)}return at.emit("pipe",Lt),vt.flowing||(ue("pipe resume"),Lt.resume()),at};function wt(at){return function(){var ct=at._readableState;ue("pipeOnDrain",ct.awaitDrain),ct.awaitDrain&&ct.awaitDrain--,ct.awaitDrain===0&&me(at,"data")&&(ct.flowing=!0,yt(at))}}Ne.prototype.unpipe=function(at){var ct=this._readableState,Lt={hasUnpiped:!1};if(ct.pipesCount===0)return this;if(ct.pipesCount===1)return at&&at!==ct.pipes?this:(at||(at=ct.pipes),ct.pipes=null,ct.pipesCount=0,ct.flowing=!1,at&&at.emit("unpipe",this,Lt),this);if(!at){var vt=ct.pipes,nt=ct.pipesCount;ct.pipes=null,ct.pipesCount=0,ct.flowing=!1;for(var Xe=0;Xe<nt;Xe++)vt[Xe].emit("unpipe",this,Lt);return this}var Ue=bt(ct.pipes,at);return Ue===-1?this:(ct.pipes.splice(Ue,1),ct.pipesCount-=1,ct.pipesCount===1&&(ct.pipes=ct.pipes[0]),at.emit("unpipe",this,Lt),this)},Ne.prototype.on=function(at,ct){var Lt=xe.prototype.on.call(this,at,ct);if(at==="data")this._readableState.flowing!==!1&&this.resume();else if(at==="readable"){var vt=this._readableState;!vt.endEmitted&&!vt.readableListening&&(vt.readableListening=vt.needReadable=!0,vt.emittedReadable=!1,vt.reading?vt.length&&St(this):we.nextTick(xt,this))}return Lt},Ne.prototype.addListener=Ne.prototype.on;function xt(at){ue("readable nexttick read 0"),at.read(0)}Ne.prototype.resume=function(){var at=this._readableState;return at.flowing||(ue("resume"),at.flowing=!0,ft(this,at)),this};function ft(at,ct){ct.resumeScheduled||(ct.resumeScheduled=!0,we.nextTick(mt,at,ct))}function mt(at,ct){ct.reading||(ue("resume read 0"),at.read(0)),ct.resumeScheduled=!1,ct.awaitDrain=0,at.emit("resume"),yt(at),ct.flowing&&!ct.reading&&at.read(0)}Ne.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 yt(at){var ct=at._readableState;for(ue("flow",ct.flowing);ct.flowing&&at.read()!==null;);}Ne.prototype.wrap=function(at){var ct=this,Lt=this._readableState,vt=!1;at.on("end",function(){if(ue("wrapped end"),Lt.decoder&&!Lt.ended){var Ue=Lt.decoder.end();Ue&&Ue.length&&ct.push(Ue)}ct.push(null)}),at.on("data",function(Ue){if(ue("wrapped data"),Lt.decoder&&(Ue=Lt.decoder.write(Ue)),!(Lt.objectMode&&Ue==null)&&!(!Lt.objectMode&&(!Ue||!Ue.length))){var $e=ct.push(Ue);$e||(vt=!0,at.pause())}});for(var nt in at)this[nt]===void 0&&typeof at[nt]=="function"&&(this[nt]=function(Ue){return function(){return at[Ue].apply(at,arguments)}}(nt));for(var Xe=0;Xe<Ie.length;Xe++)at.on(Ie[Xe],this.emit.bind(this,Ie[Xe]));return this._read=function(Ue){ue("wrapped _read",Ue),vt&&(vt=!1,at.resume())},this},Object.defineProperty(Ne.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ne._fromList=It;function It(at,ct){if(ct.length===0)return null;var Lt;return ct.objectMode?Lt=ct.buffer.shift():!at||at>=ct.length?(ct.decoder?Lt=ct.buffer.join(""):ct.buffer.length===1?Lt=ct.buffer.head.data:Lt=ct.buffer.concat(ct.length),ct.buffer.clear()):Lt=kt(at,ct.buffer,ct.decoder),Lt}function kt(at,ct,Lt){var vt;return at<ct.head.data.length?(vt=ct.head.data.slice(0,at),ct.head.data=ct.head.data.slice(at)):at===ct.head.data.length?vt=ct.shift():vt=Lt?Ut(at,ct):Pt(at,ct),vt}function Ut(at,ct){var Lt=ct.head,vt=1,nt=Lt.data;for(at-=nt.length;Lt=Lt.next;){var Xe=Lt.data,Ue=at>Xe.length?Xe.length:at;if(Ue===Xe.length?nt+=Xe:nt+=Xe.slice(0,at),at-=Ue,at===0){Ue===Xe.length?(++vt,Lt.next?ct.head=Lt.next:ct.head=ct.tail=null):(ct.head=Lt,Lt.data=Xe.slice(Ue));break}++vt}return ct.length-=vt,nt}function Pt(at,ct){var Lt=fe.allocUnsafe(at),vt=ct.head,nt=1;for(vt.data.copy(Lt),at-=vt.data.length;vt=vt.next;){var Xe=vt.data,Ue=at>Xe.length?Xe.length:at;if(Xe.copy(Lt,Lt.length-at,0,Ue),at-=Ue,at===0){Ue===Xe.length?(++nt,vt.next?ct.head=vt.next:ct.head=ct.tail=null):(ct.head=vt,vt.data=Xe.slice(Ue));break}++nt}return ct.length-=nt,Lt}function Ct(at){var ct=at._readableState;if(ct.length>0)throw new Error('"endReadable()" called on non-empty stream');ct.endEmitted||(ct.ended=!0,we.nextTick(st,ct,at))}function st(at,ct){!at.endEmitted&&at.length===0&&(at.endEmitted=!0,ct.readable=!1,ct.emit("end"))}function bt(at,ct){for(var Lt=0,vt=at.length;Lt<vt;Lt++)if(at[Lt]===ct)return Lt;return-1}}).call(this)}).call(this,oe("_process"),typeof Pn!="undefined"?Pn: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,ze,je){"use strict";ze.exports=Me;var ve=oe("./_stream_duplex"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(Me,ve);function we(me,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(me);var ee=this._readableState;ee.reading=!1,(ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}function Me(me){if(!(this instanceof Me))return new Me(me);ve.call(this,me),this._transformState={afterTransform:we.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,me&&(typeof me.transform=="function"&&(this._transform=me.transform),typeof me.flush=="function"&&(this._flush=me.flush)),this.on("prefinish",Se)}function Se(){var me=this;typeof this._flush=="function"?this._flush(function(xe,fe){Pe(me,xe,fe)}):Pe(this,null,null)}Me.prototype.push=function(me,xe){return this._transformState.needTransform=!1,ve.prototype.push.call(this,me,xe)},Me.prototype._transform=function(me,xe,fe){throw new Error("_transform() is not implemented")},Me.prototype._write=function(me,xe,fe){var z=this._transformState;if(z.writecb=fe,z.writechunk=me,z.writeencoding=xe,!z.transforming){var ee=this._readableState;(z.needTransform||ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}},Me.prototype._read=function(me){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},Me.prototype._destroy=function(me,xe){var fe=this;ve.prototype._destroy.call(this,me,function(z){xe(z),fe.emit("close")})};function Pe(me,xe,fe){if(xe)return me.emit("error",xe);if(fe!=null&&me.push(fe),me._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(me._transformState.transforming)throw new Error("Calling transform done when still transforming");return me.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(oe,ze,je){(function(ve,ce,we){(function(){"use strict";var Me=oe("process-nextick-args");ze.exports=Oe;function Se(mt,yt,It){this.chunk=mt,this.encoding=yt,this.callback=It,this.next=null}function Pe(mt){var yt=this;this.next=null,this.entry=null,this.finish=function(){ft(yt,mt)}}var me=!ve.browser&&["v0.10","v0.9."].indexOf(ve.version.slice(0,5))>-1?we:Me.nextTick,xe;Oe.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(mt){return ae.from(mt)}function ue(mt){return ae.isBuffer(mt)||mt instanceof re}var pe=oe("./internal/streams/destroy");fe.inherits(Oe,ee);function be(){}function Ce(mt,yt){xe=xe||oe("./_stream_duplex"),mt=mt||{};var It=yt instanceof xe;this.objectMode=!!mt.objectMode,It&&(this.objectMode=this.objectMode||!!mt.writableObjectMode);var kt=mt.highWaterMark,Ut=mt.writableHighWaterMark,Pt=this.objectMode?16:16*1024;kt||kt===0?this.highWaterMark=kt:It&&(Ut||Ut===0)?this.highWaterMark=Ut:this.highWaterMark=Pt,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 Ct=mt.decodeStrings===!1;this.decodeStrings=!Ct,this.defaultEncoding=mt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(st){Qe(yt,st)},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 Pe(this)}Ce.prototype.getBuffer=function(){for(var yt=this.bufferedRequest,It=[];yt;)It.push(yt),yt=yt.next;return It},function(){try{Object.defineProperty(Ce.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(mt){}}();var Ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(Oe,Symbol.hasInstance,{value:function(mt){return Ie.call(this,mt)?!0:this!==Oe?!1:mt&&mt._writableState instanceof Ce}})):Ie=function(mt){return mt instanceof this};function Oe(mt){if(xe=xe||oe("./_stream_duplex"),!Ie.call(Oe,this)&&!(this instanceof xe))return new Oe(mt);this._writableState=new Ce(mt,this),this.writable=!0,mt&&(typeof mt.write=="function"&&(this._write=mt.write),typeof mt.writev=="function"&&(this._writev=mt.writev),typeof mt.destroy=="function"&&(this._destroy=mt.destroy),typeof mt.final=="function"&&(this._final=mt.final)),ee.call(this)}Oe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Le(mt,yt){var It=new Error("write after end");mt.emit("error",It),Me.nextTick(yt,It)}function Ne(mt,yt,It,kt){var Ut=!0,Pt=!1;return It===null?Pt=new TypeError("May not write null values to stream"):typeof It!="string"&&It!==void 0&&!yt.objectMode&&(Pt=new TypeError("Invalid non-string/buffer chunk")),Pt&&(mt.emit("error",Pt),Me.nextTick(kt,Pt),Ut=!1),Ut}Oe.prototype.write=function(mt,yt,It){var kt=this._writableState,Ut=!1,Pt=!kt.objectMode&&ue(mt);return Pt&&!ae.isBuffer(mt)&&(mt=le(mt)),typeof yt=="function"&&(It=yt,yt=null),Pt?yt="buffer":yt||(yt=kt.defaultEncoding),typeof It!="function"&&(It=be),kt.ended?Le(this,It):(Pt||Ne(this,kt,mt,It))&&(kt.pendingcb++,Ut=Re(this,kt,Pt,mt,yt,It)),Ut},Oe.prototype.cork=function(){var mt=this._writableState;mt.corked++},Oe.prototype.uncork=function(){var mt=this._writableState;mt.corked&&(mt.corked--,!mt.writing&&!mt.corked&&!mt.finished&&!mt.bufferProcessing&&mt.bufferedRequest&&St(this,mt))},Oe.prototype.setDefaultEncoding=function(yt){if(typeof yt=="string"&&(yt=yt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((yt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+yt);return this._writableState.defaultEncoding=yt,this};function De(mt,yt,It){return!mt.objectMode&&mt.decodeStrings!==!1&&typeof yt=="string"&&(yt=ae.from(yt,It)),yt}Object.defineProperty(Oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Re(mt,yt,It,kt,Ut,Pt){if(!It){var Ct=De(yt,kt,Ut);kt!==Ct&&(It=!0,Ut="buffer",kt=Ct)}var st=yt.objectMode?1:kt.length;yt.length+=st;var bt=yt.length<yt.highWaterMark;if(bt||(yt.needDrain=!0),yt.writing||yt.corked){var at=yt.lastBufferedRequest;yt.lastBufferedRequest={chunk:kt,encoding:Ut,isBuf:It,callback:Pt,next:null},at?at.next=yt.lastBufferedRequest:yt.bufferedRequest=yt.lastBufferedRequest,yt.bufferedRequestCount+=1}else Je(mt,yt,!1,st,kt,Ut,Pt);return bt}function Je(mt,yt,It,kt,Ut,Pt,Ct){yt.writelen=kt,yt.writecb=Ct,yt.writing=!0,yt.sync=!0,It?mt._writev(Ut,yt.onwrite):mt._write(Ut,Pt,yt.onwrite),yt.sync=!1}function _e(mt,yt,It,kt,Ut){--yt.pendingcb,It?(Me.nextTick(Ut,kt),Me.nextTick(wt,mt,yt),mt._writableState.errorEmitted=!0,mt.emit("error",kt)):(Ut(kt),mt._writableState.errorEmitted=!0,mt.emit("error",kt),wt(mt,yt))}function Ve(mt){mt.writing=!1,mt.writecb=null,mt.length-=mt.writelen,mt.writelen=0}function Qe(mt,yt){var It=mt._writableState,kt=It.sync,Ut=It.writecb;if(Ve(It),yt)_e(mt,It,kt,yt,Ut);else{var Pt=qe(It);!Pt&&!It.corked&&!It.bufferProcessing&&It.bufferedRequest&&St(mt,It),kt?me(ut,mt,It,Pt,Ut):ut(mt,It,Pt,Ut)}}function ut(mt,yt,It,kt){It||dt(mt,yt),yt.pendingcb--,kt(),wt(mt,yt)}function dt(mt,yt){yt.length===0&&yt.needDrain&&(yt.needDrain=!1,mt.emit("drain"))}function St(mt,yt){yt.bufferProcessing=!0;var It=yt.bufferedRequest;if(mt._writev&&It&&It.next){var kt=yt.bufferedRequestCount,Ut=new Array(kt),Pt=yt.corkedRequestsFree;Pt.entry=It;for(var Ct=0,st=!0;It;)Ut[Ct]=It,It.isBuf||(st=!1),It=It.next,Ct+=1;Ut.allBuffers=st,Je(mt,yt,!0,yt.length,Ut,"",Pt.finish),yt.pendingcb++,yt.lastBufferedRequest=null,Pt.next?(yt.corkedRequestsFree=Pt.next,Pt.next=null):yt.corkedRequestsFree=new Pe(yt),yt.bufferedRequestCount=0}else{for(;It;){var bt=It.chunk,at=It.encoding,ct=It.callback,Lt=yt.objectMode?1:bt.length;if(Je(mt,yt,!1,Lt,bt,at,ct),It=It.next,yt.bufferedRequestCount--,yt.writing)break}It===null&&(yt.lastBufferedRequest=null)}yt.bufferedRequest=It,yt.bufferProcessing=!1}Oe.prototype._write=function(mt,yt,It){It(new Error("_write() is not implemented"))},Oe.prototype._writev=null,Oe.prototype.end=function(mt,yt,It){var kt=this._writableState;typeof mt=="function"?(It=mt,mt=null,yt=null):typeof yt=="function"&&(It=yt,yt=null),mt!=null&&this.write(mt,yt),kt.corked&&(kt.corked=1,this.uncork()),!kt.ending&&!kt.finished&&xt(this,kt,It)};function qe(mt){return mt.ending&&mt.length===0&&mt.bufferedRequest===null&&!mt.finished&&!mt.writing}function it(mt,yt){mt._final(function(It){yt.pendingcb--,It&&mt.emit("error",It),yt.prefinished=!0,mt.emit("prefinish"),wt(mt,yt)})}function pt(mt,yt){!yt.prefinished&&!yt.finalCalled&&(typeof mt._final=="function"?(yt.pendingcb++,yt.finalCalled=!0,Me.nextTick(it,mt,yt)):(yt.prefinished=!0,mt.emit("prefinish")))}function wt(mt,yt){var It=qe(yt);return It&&(pt(mt,yt),yt.pendingcb===0&&(yt.finished=!0,mt.emit("finish"))),It}function xt(mt,yt,It){yt.ending=!0,wt(mt,yt),It&&(yt.finished?Me.nextTick(It):mt.once("finish",It)),yt.ended=!0,mt.writable=!1}function ft(mt,yt,It){var kt=mt.entry;for(mt.entry=null;kt;){var Ut=kt.callback;yt.pendingcb--,Ut(It),kt=kt.next}yt.corkedRequestsFree?yt.corkedRequestsFree.next=mt:yt.corkedRequestsFree=mt}Object.defineProperty(Oe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(mt){this._writableState&&(this._writableState.destroyed=mt)}}),Oe.prototype.destroy=pe.destroy,Oe.prototype._undestroy=pe.undestroy,Oe.prototype._destroy=function(mt,yt){this.end(),yt(mt)}}).call(this)}).call(this,oe("_process"),typeof Pn!="undefined"?Pn: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,ze,je){"use strict";function ve(Se,Pe){if(!(Se instanceof Pe))throw new TypeError("Cannot call a class as a function")}var ce=oe("safe-buffer").Buffer,we=oe("util");function Me(Se,Pe,me){Se.copy(Pe,me)}ze.exports=function(){function Se(){ve(this,Se),this.head=null,this.tail=null,this.length=0}return Se.prototype.push=function(me){var xe={data:me,next:null};this.length>0?this.tail.next=xe:this.head=xe,this.tail=xe,++this.length},Se.prototype.unshift=function(me){var xe={data:me,next:this.head};this.length===0&&(this.tail=xe),this.head=xe,++this.length},Se.prototype.shift=function(){if(this.length!==0){var me=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,me}},Se.prototype.clear=function(){this.head=this.tail=null,this.length=0},Se.prototype.join=function(me){if(this.length===0)return"";for(var xe=this.head,fe=""+xe.data;xe=xe.next;)fe+=me+xe.data;return fe},Se.prototype.concat=function(me){if(this.length===0)return ce.alloc(0);if(this.length===1)return this.head.data;for(var xe=ce.allocUnsafe(me>>>0),fe=this.head,z=0;fe;)Me(fe.data,xe,z),z+=fe.data.length,fe=fe.next;return xe},Se}(),we&&we.inspect&&we.inspect.custom&&(ze.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,ze,je){"use strict";var ve=oe("process-nextick-args");function ce(Se,Pe){var me=this,xe=this._readableState&&this._readableState.destroyed,fe=this._writableState&&this._writableState.destroyed;return xe||fe?(Pe?Pe(Se):Se&&(!this._writableState||!this._writableState.errorEmitted)&&ve.nextTick(Me,this,Se),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Se||null,function(z){!Pe&&z?(ve.nextTick(Me,me,z),me._writableState&&(me._writableState.errorEmitted=!0)):Pe&&Pe(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 Me(Se,Pe){Se.emit("error",Pe)}ze.exports={destroy:ce,undestroy:we}},{"process-nextick-args":380}],393:[function(oe,ze,je){ze.exports=oe("events").EventEmitter},{events:344}],394:[function(oe,ze,je){je=ze.exports=oe("./lib/_stream_readable.js"),je.Stream=je,je.Readable=je,je.Writable=oe("./lib/_stream_writable.js"),je.Duplex=oe("./lib/_stream_duplex.js"),je.Transform=oe("./lib/_stream_transform.js"),je.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,ze,je){var ve=function(ce){"use strict";var we=Object.prototype,Me=we.hasOwnProperty,Se,Pe=typeof Symbol=="function"?Symbol:{},me=Pe.iterator||"@@iterator",xe=Pe.asyncIterator||"@@asyncIterator",fe=Pe.toStringTag||"@@toStringTag";function z(pt,wt,xt){return Object.defineProperty(pt,wt,{value:xt,enumerable:!0,configurable:!0,writable:!0}),pt[wt]}try{z({},"")}catch(pt){z=function(wt,xt,ft){return wt[xt]=ft}}function ee(pt,wt,xt,ft){var mt=wt&&wt.prototype instanceof Ce?wt:Ce,yt=Object.create(mt.prototype),It=new St(ft||[]);return yt._invoke=Ve(pt,xt,It),yt}ce.wrap=ee;function ae(pt,wt,xt){try{return{type:"normal",arg:pt.call(wt,xt)}}catch(ft){return{type:"throw",arg:ft}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",be={};function Ce(){}function Ie(){}function Oe(){}var Le={};z(Le,me,function(){return this});var Ne=Object.getPrototypeOf,De=Ne&&Ne(Ne(qe([])));De&&De!==we&&Me.call(De,me)&&(Le=De);var Re=Oe.prototype=Ce.prototype=Object.create(Le);Ie.prototype=Oe,z(Re,"constructor",Oe),z(Oe,"constructor",Ie),Ie.displayName=z(Oe,fe,"GeneratorFunction");function Je(pt){["next","throw","return"].forEach(function(wt){z(pt,wt,function(xt){return this._invoke(wt,xt)})})}ce.isGeneratorFunction=function(pt){var wt=typeof pt=="function"&&pt.constructor;return wt?wt===Ie||(wt.displayName||wt.name)==="GeneratorFunction":!1},ce.mark=function(pt){return Object.setPrototypeOf?Object.setPrototypeOf(pt,Oe):(pt.__proto__=Oe,z(pt,fe,"GeneratorFunction")),pt.prototype=Object.create(Re),pt},ce.awrap=function(pt){return{__await:pt}};function _e(pt,wt){function xt(yt,It,kt,Ut){var Pt=ae(pt[yt],pt,It);if(Pt.type==="throw")Ut(Pt.arg);else{var Ct=Pt.arg,st=Ct.value;return st&&typeof st=="object"&&Me.call(st,"__await")?wt.resolve(st.__await).then(function(bt){xt("next",bt,kt,Ut)},function(bt){xt("throw",bt,kt,Ut)}):wt.resolve(st).then(function(bt){Ct.value=bt,kt(Ct)},function(bt){return xt("throw",bt,kt,Ut)})}}var ft;function mt(yt,It){function kt(){return new wt(function(Ut,Pt){xt(yt,It,Ut,Pt)})}return ft=ft?ft.then(kt,kt):kt()}this._invoke=mt}Je(_e.prototype),z(_e.prototype,xe,function(){return this}),ce.AsyncIterator=_e,ce.async=function(pt,wt,xt,ft,mt){mt===void 0&&(mt=Promise);var yt=new _e(ee(pt,wt,xt,ft),mt);return ce.isGeneratorFunction(wt)?yt:yt.next().then(function(It){return It.done?It.value:yt.next()})};function Ve(pt,wt,xt){var ft=re;return function(yt,It){if(ft===ue)throw new Error("Generator is already running");if(ft===pe){if(yt==="throw")throw It;return it()}for(xt.method=yt,xt.arg=It;;){var kt=xt.delegate;if(kt){var Ut=Qe(kt,xt);if(Ut){if(Ut===be)continue;return Ut}}if(xt.method==="next")xt.sent=xt._sent=xt.arg;else if(xt.method==="throw"){if(ft===re)throw ft=pe,xt.arg;xt.dispatchException(xt.arg)}else xt.method==="return"&&xt.abrupt("return",xt.arg);ft=ue;var Pt=ae(pt,wt,xt);if(Pt.type==="normal"){if(ft=xt.done?pe:le,Pt.arg===be)continue;return{value:Pt.arg,done:xt.done}}else Pt.type==="throw"&&(ft=pe,xt.method="throw",xt.arg=Pt.arg)}}}function Qe(pt,wt){var xt=pt.iterator[wt.method];if(xt===Se){if(wt.delegate=null,wt.method==="throw"){if(pt.iterator.return&&(wt.method="return",wt.arg=Se,Qe(pt,wt),wt.method==="throw"))return be;wt.method="throw",wt.arg=new TypeError("The iterator does not provide a 'throw' method")}return be}var ft=ae(xt,pt.iterator,wt.arg);if(ft.type==="throw")return wt.method="throw",wt.arg=ft.arg,wt.delegate=null,be;var mt=ft.arg;if(!mt)return wt.method="throw",wt.arg=new TypeError("iterator result is not an object"),wt.delegate=null,be;if(mt.done)wt[pt.resultName]=mt.value,wt.next=pt.nextLoc,wt.method!=="return"&&(wt.method="next",wt.arg=Se);else return mt;return wt.delegate=null,be}Je(Re),z(Re,fe,"Generator"),z(Re,me,function(){return this}),z(Re,"toString",function(){return"[object Generator]"});function ut(pt){var wt={tryLoc:pt[0]};1 in pt&&(wt.catchLoc=pt[1]),2 in pt&&(wt.finallyLoc=pt[2],wt.afterLoc=pt[3]),this.tryEntries.push(wt)}function dt(pt){var wt=pt.completion||{};wt.type="normal",delete wt.arg,pt.completion=wt}function St(pt){this.tryEntries=[{tryLoc:"root"}],pt.forEach(ut,this),this.reset(!0)}ce.keys=function(pt){var wt=[];for(var xt in pt)wt.push(xt);return wt.reverse(),function ft(){for(;wt.length;){var mt=wt.pop();if(mt in pt)return ft.value=mt,ft.done=!1,ft}return ft.done=!0,ft}};function qe(pt){if(pt){var wt=pt[me];if(wt)return wt.call(pt);if(typeof pt.next=="function")return pt;if(!isNaN(pt.length)){var xt=-1,ft=function mt(){for(;++xt<pt.length;)if(Me.call(pt,xt))return mt.value=pt[xt],mt.done=!1,mt;return mt.value=Se,mt.done=!0,mt};return ft.next=ft}}return{next:it}}ce.values=qe;function it(){return{value:Se,done:!0}}return St.prototype={constructor:St,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(dt),!pt)for(var wt in this)wt.charAt(0)==="t"&&Me.call(this,wt)&&!isNaN(+wt.slice(1))&&(this[wt]=Se)},stop:function(){this.done=!0;var pt=this.tryEntries[0],wt=pt.completion;if(wt.type==="throw")throw wt.arg;return this.rval},dispatchException:function(pt){if(this.done)throw pt;var wt=this;function xt(Ut,Pt){return yt.type="throw",yt.arg=pt,wt.next=Ut,Pt&&(wt.method="next",wt.arg=Se),!!Pt}for(var ft=this.tryEntries.length-1;ft>=0;--ft){var mt=this.tryEntries[ft],yt=mt.completion;if(mt.tryLoc==="root")return xt("end");if(mt.tryLoc<=this.prev){var It=Me.call(mt,"catchLoc"),kt=Me.call(mt,"finallyLoc");if(It&&kt){if(this.prev<mt.catchLoc)return xt(mt.catchLoc,!0);if(this.prev<mt.finallyLoc)return xt(mt.finallyLoc)}else if(It){if(this.prev<mt.catchLoc)return xt(mt.catchLoc,!0)}else if(kt){if(this.prev<mt.finallyLoc)return xt(mt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(pt,wt){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var ft=this.tryEntries[xt];if(ft.tryLoc<=this.prev&&Me.call(ft,"finallyLoc")&&this.prev<ft.finallyLoc){var mt=ft;break}}mt&&(pt==="break"||pt==="continue")&&mt.tryLoc<=wt&&wt<=mt.finallyLoc&&(mt=null);var yt=mt?mt.completion:{};return yt.type=pt,yt.arg=wt,mt?(this.method="next",this.next=mt.finallyLoc,be):this.complete(yt)},complete:function(pt,wt){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"&&wt&&(this.next=wt),be},finish:function(pt){for(var wt=this.tryEntries.length-1;wt>=0;--wt){var xt=this.tryEntries[wt];if(xt.finallyLoc===pt)return this.complete(xt.completion,xt.afterLoc),dt(xt),be}},catch:function(pt){for(var wt=this.tryEntries.length-1;wt>=0;--wt){var xt=this.tryEntries[wt];if(xt.tryLoc===pt){var ft=xt.completion;if(ft.type==="throw"){var mt=ft.arg;dt(xt)}return mt}}throw new Error("illegal catch attempt")},delegateYield:function(pt,wt,xt){return this.delegate={iterator:qe(pt),resultName:wt,nextLoc:xt},this.method==="next"&&(this.arg=Se),be}},ce}(typeof ze=="object"?ze.exports:{});try{regeneratorRuntime=ve}catch(ce){typeof globalThis=="object"?globalThis.regeneratorRuntime=ve:Function("r","regeneratorRuntime = r")(ve)}},{}],396:[function(oe,ze,je){var ve=oe("buffer"),ce=ve.Buffer;function we(Se,Pe){for(var me in Se)Pe[me]=Se[me]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?ze.exports=ve:(we(ve,je),je.Buffer=Me);function Me(Se,Pe,me){return ce(Se,Pe,me)}we(ce,Me),Me.from=function(Se,Pe,me){if(typeof Se=="number")throw new TypeError("Argument must not be a number");return ce(Se,Pe,me)},Me.alloc=function(Se,Pe,me){if(typeof Se!="number")throw new TypeError("Argument must be a number");var xe=ce(Se);return Pe!==void 0?typeof me=="string"?xe.fill(Pe,me):xe.fill(Pe):xe.fill(0),xe},Me.allocUnsafe=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return ce(Se)},Me.allocUnsafeSlow=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return ve.SlowBuffer(Se)}},{buffer:90}],397:[function(oe,ze,je){(function(ve){(function(){(function(ce){ce.parser=function(Ct,st){return new Me(Ct,st)},ce.SAXParser=Me,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 Me(Ct,st){if(!(this instanceof Me))return new Me(Ct,st);var bt=this;Pe(bt),bt.q=bt.c="",bt.bufferCheckPosition=ce.MAX_BUFFER_LENGTH,bt.opt=st||{},bt.opt.lowercase=bt.opt.lowercase||bt.opt.lowercasetags,bt.looseCase=bt.opt.lowercase?"toLowerCase":"toUpperCase",bt.tags=[],bt.closed=bt.closedRoot=bt.sawRoot=!1,bt.tag=bt.error=null,bt.strict=!!Ct,bt.noscript=!!(Ct||bt.opt.noscript),bt.state=_e.BEGIN,bt.strictEntities=bt.opt.strictEntities,bt.ENTITIES=bt.strictEntities?Object.create(ce.XML_ENTITIES):Object.create(ce.ENTITIES),bt.attribList=[],bt.opt.xmlns&&(bt.ns=Object.create(pe)),bt.trackPosition=bt.opt.position!==!1,bt.trackPosition&&(bt.position=bt.line=bt.column=0),Qe(bt,"onready")}Object.create||(Object.create=function(Ct){function st(){}st.prototype=Ct;var bt=new st;return bt}),Object.keys||(Object.keys=function(Ct){var st=[];for(var bt in Ct)Ct.hasOwnProperty(bt)&&st.push(bt);return st});function Se(Ct){for(var st=Math.max(ce.MAX_BUFFER_LENGTH,10),bt=0,at=0,ct=we.length;at<ct;at++){var Lt=Ct[we[at]].length;if(Lt>st)switch(we[at]){case"textNode":dt(Ct);break;case"cdata":ut(Ct,"oncdata",Ct.cdata),Ct.cdata="";break;case"script":ut(Ct,"onscript",Ct.script),Ct.script="";break;default:qe(Ct,"Max buffer length exceeded: "+we[at])}bt=Math.max(bt,Lt)}var vt=ce.MAX_BUFFER_LENGTH-bt;Ct.bufferCheckPosition=vt+Ct.position}function Pe(Ct){for(var st=0,bt=we.length;st<bt;st++)Ct[we[st]]=""}function me(Ct){dt(Ct),Ct.cdata!==""&&(ut(Ct,"oncdata",Ct.cdata),Ct.cdata=""),Ct.script!==""&&(ut(Ct,"onscript",Ct.script),Ct.script="")}Me.prototype={end:function(){it(this)},write:Pt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){me(this)}};var xe;try{xe=oe("stream").Stream}catch(Ct){xe=function(){}}var fe=ce.EVENTS.filter(function(Ct){return Ct!=="error"&&Ct!=="end"});function z(Ct,st){return new ee(Ct,st)}function ee(Ct,st){if(!(this instanceof ee))return new ee(Ct,st);xe.apply(this),this._parser=new Me(Ct,st),this.writable=!0,this.readable=!0;var bt=this;this._parser.onend=function(){bt.emit("end")},this._parser.onerror=function(at){bt.emit("error",at),bt._parser.error=null},this._decoder=null,fe.forEach(function(at){Object.defineProperty(bt,"on"+at,{get:function(){return bt._parser["on"+at]},set:function(ct){if(!ct)return bt.removeAllListeners(at),bt._parser["on"+at]=ct,ct;bt.on(at,ct)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(xe.prototype,{constructor:{value:ee}}),ee.prototype.write=function(Ct){if(typeof ve=="function"&&typeof ve.isBuffer=="function"&&ve.isBuffer(Ct)){if(!this._decoder){var st=oe("string_decoder").StringDecoder;this._decoder=new st("utf8")}Ct=this._decoder.write(Ct)}return this._parser.write(Ct.toString()),this.emit("data",Ct),!0},ee.prototype.end=function(Ct){return Ct&&Ct.length&&this.write(Ct),this._parser.end(),!0},ee.prototype.on=function(Ct,st){var bt=this;return!bt._parser["on"+Ct]&&fe.indexOf(Ct)!==-1&&(bt._parser["on"+Ct]=function(){var at=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);at.splice(0,0,Ct),bt.emit.apply(bt,at)}),xe.prototype.on.call(bt,Ct,st)};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-]/,Ie=/[#:_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]/,Oe=/[#:_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 Le(Ct){return Ct===" "||Ct===`
|
|
|
`||Ct==="\r"||Ct===" "}function Ne(Ct){return Ct==='"'||Ct==="'"}function De(Ct){return Ct===">"||Le(Ct)}function Re(Ct,st){return Ct.test(st)}function Je(Ct,st){return!Re(Ct,st)}var _e=0;ce.STATE={BEGIN:_e++,BEGIN_WHITESPACE:_e++,TEXT:_e++,TEXT_ENTITY:_e++,OPEN_WAKA:_e++,SGML_DECL:_e++,SGML_DECL_QUOTED:_e++,DOCTYPE:_e++,DOCTYPE_QUOTED:_e++,DOCTYPE_DTD:_e++,DOCTYPE_DTD_QUOTED:_e++,COMMENT_STARTING:_e++,COMMENT:_e++,COMMENT_ENDING:_e++,COMMENT_ENDED:_e++,CDATA:_e++,CDATA_ENDING:_e++,CDATA_ENDING_2:_e++,PROC_INST:_e++,PROC_INST_BODY:_e++,PROC_INST_ENDING:_e++,OPEN_TAG:_e++,OPEN_TAG_SLASH:_e++,ATTRIB:_e++,ATTRIB_NAME:_e++,ATTRIB_NAME_SAW_WHITE:_e++,ATTRIB_VALUE:_e++,ATTRIB_VALUE_QUOTED:_e++,ATTRIB_VALUE_CLOSED:_e++,ATTRIB_VALUE_UNQUOTED:_e++,ATTRIB_VALUE_ENTITY_Q:_e++,ATTRIB_VALUE_ENTITY_U:_e++,CLOSE_TAG:_e++,CLOSE_TAG_SAW_WHITE:_e++,SCRIPT:_e++,SCRIPT_ENDING:_e++},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(Ct){var st=ce.ENTITIES[Ct],bt=typeof st=="number"?String.fromCharCode(st):st;ce.ENTITIES[Ct]=bt});for(var Ve in ce.STATE)ce.STATE[ce.STATE[Ve]]=Ve;_e=ce.STATE;function Qe(Ct,st,bt){Ct[st]&&Ct[st](bt)}function ut(Ct,st,bt){Ct.textNode&&dt(Ct),Qe(Ct,st,bt)}function dt(Ct){Ct.textNode=St(Ct.opt,Ct.textNode),Ct.textNode&&Qe(Ct,"ontext",Ct.textNode),Ct.textNode=""}function St(Ct,st){return Ct.trim&&(st=st.trim()),Ct.normalize&&(st=st.replace(/\s+/g," ")),st}function qe(Ct,st){return dt(Ct),Ct.trackPosition&&(st+=`
|
|
|
Line: `+Ct.line+`
|
|
|
Column: `+Ct.column+`
|
|
|
Char: `+Ct.c),st=new Error(st),Ct.error=st,Qe(Ct,"onerror",st),Ct}function it(Ct){return Ct.sawRoot&&!Ct.closedRoot&&pt(Ct,"Unclosed root tag"),Ct.state!==_e.BEGIN&&Ct.state!==_e.BEGIN_WHITESPACE&&Ct.state!==_e.TEXT&&qe(Ct,"Unexpected end"),dt(Ct),Ct.c="",Ct.closed=!0,Qe(Ct,"onend"),Me.call(Ct,Ct.strict,Ct.opt),Ct}function pt(Ct,st){if(typeof Ct!="object"||!(Ct instanceof Me))throw new Error("bad call to strictFail");Ct.strict&&qe(Ct,st)}function wt(Ct){Ct.strict||(Ct.tagName=Ct.tagName[Ct.looseCase]());var st=Ct.tags[Ct.tags.length-1]||Ct,bt=Ct.tag={name:Ct.tagName,attributes:{}};Ct.opt.xmlns&&(bt.ns=st.ns),Ct.attribList.length=0,ut(Ct,"onopentagstart",bt)}function xt(Ct,st){var bt=Ct.indexOf(":"),at=bt<0?["",Ct]:Ct.split(":"),ct=at[0],Lt=at[1];return st&&Ct==="xmlns"&&(ct="xmlns",Lt=""),{prefix:ct,local:Lt}}function ft(Ct){if(Ct.strict||(Ct.attribName=Ct.attribName[Ct.looseCase]()),Ct.attribList.indexOf(Ct.attribName)!==-1||Ct.tag.attributes.hasOwnProperty(Ct.attribName)){Ct.attribName=Ct.attribValue="";return}if(Ct.opt.xmlns){var st=xt(Ct.attribName,!0),bt=st.prefix,at=st.local;if(bt==="xmlns")if(at==="xml"&&Ct.attribValue!==le)pt(Ct,"xml: prefix must be bound to "+le+`
|
|
|
Actual: `+Ct.attribValue);else if(at==="xmlns"&&Ct.attribValue!==ue)pt(Ct,"xmlns: prefix must be bound to "+ue+`
|
|
|
Actual: `+Ct.attribValue);else{var ct=Ct.tag,Lt=Ct.tags[Ct.tags.length-1]||Ct;ct.ns===Lt.ns&&(ct.ns=Object.create(Lt.ns)),ct.ns[at]=Ct.attribValue}Ct.attribList.push([Ct.attribName,Ct.attribValue])}else Ct.tag.attributes[Ct.attribName]=Ct.attribValue,ut(Ct,"onattribute",{name:Ct.attribName,value:Ct.attribValue});Ct.attribName=Ct.attribValue=""}function mt(Ct,st){if(Ct.opt.xmlns){var bt=Ct.tag,at=xt(Ct.tagName);bt.prefix=at.prefix,bt.local=at.local,bt.uri=bt.ns[at.prefix]||"",bt.prefix&&!bt.uri&&(pt(Ct,"Unbound namespace prefix: "+JSON.stringify(Ct.tagName)),bt.uri=at.prefix);var ct=Ct.tags[Ct.tags.length-1]||Ct;bt.ns&&ct.ns!==bt.ns&&Object.keys(bt.ns).forEach(function(Ke){ut(Ct,"onopennamespace",{prefix:Ke,uri:bt.ns[Ke]})});for(var Lt=0,vt=Ct.attribList.length;Lt<vt;Lt++){var nt=Ct.attribList[Lt],Xe=nt[0],Ue=nt[1],$e=xt(Xe,!0),tt=$e.prefix,We=$e.local,Be=tt===""?"":bt.ns[tt]||"",Te={name:Xe,value:Ue,prefix:tt,local:We,uri:Be};tt&&tt!=="xmlns"&&!Be&&(pt(Ct,"Unbound namespace prefix: "+JSON.stringify(tt)),Te.uri=tt),Ct.tag.attributes[Xe]=Te,ut(Ct,"onattribute",Te)}Ct.attribList.length=0}Ct.tag.isSelfClosing=!!st,Ct.sawRoot=!0,Ct.tags.push(Ct.tag),ut(Ct,"onopentag",Ct.tag),st||(!Ct.noscript&&Ct.tagName.toLowerCase()==="script"?Ct.state=_e.SCRIPT:Ct.state=_e.TEXT,Ct.tag=null,Ct.tagName=""),Ct.attribName=Ct.attribValue="",Ct.attribList.length=0}function yt(Ct){if(!Ct.tagName){pt(Ct,"Weird empty close tag."),Ct.textNode+="</>",Ct.state=_e.TEXT;return}if(Ct.script){if(Ct.tagName!=="script"){Ct.script+="</"+Ct.tagName+">",Ct.tagName="",Ct.state=_e.SCRIPT;return}ut(Ct,"onscript",Ct.script),Ct.script=""}var st=Ct.tags.length,bt=Ct.tagName;Ct.strict||(bt=bt[Ct.looseCase]());for(var at=bt;st--;){var ct=Ct.tags[st];if(ct.name!==at)pt(Ct,"Unexpected close tag");else break}if(st<0){pt(Ct,"Unmatched closing tag: "+Ct.tagName),Ct.textNode+="</"+Ct.tagName+">",Ct.state=_e.TEXT;return}Ct.tagName=bt;for(var Lt=Ct.tags.length;Lt-- >st;){var vt=Ct.tag=Ct.tags.pop();Ct.tagName=Ct.tag.name,ut(Ct,"onclosetag",Ct.tagName);var nt={};for(var Xe in vt.ns)nt[Xe]=vt.ns[Xe];var Ue=Ct.tags[Ct.tags.length-1]||Ct;Ct.opt.xmlns&&vt.ns!==Ue.ns&&Object.keys(vt.ns).forEach(function($e){var tt=vt.ns[$e];ut(Ct,"onclosenamespace",{prefix:$e,uri:tt})})}st===0&&(Ct.closedRoot=!0),Ct.tagName=Ct.attribValue=Ct.attribName="",Ct.attribList.length=0,Ct.state=_e.TEXT}function It(Ct){var st=Ct.entity,bt=st.toLowerCase(),at,ct="";return Ct.ENTITIES[st]?Ct.ENTITIES[st]:Ct.ENTITIES[bt]?Ct.ENTITIES[bt]:(st=bt,st.charAt(0)==="#"&&(st.charAt(1)==="x"?(st=st.slice(2),at=parseInt(st,16),ct=at.toString(16)):(st=st.slice(1),at=parseInt(st,10),ct=at.toString(10))),st=st.replace(/^0+/,""),isNaN(at)||ct.toLowerCase()!==st?(pt(Ct,"Invalid character entity"),"&"+Ct.entity+";"):String.fromCodePoint(at))}function kt(Ct,st){st==="<"?(Ct.state=_e.OPEN_WAKA,Ct.startTagPosition=Ct.position):Le(st)||(pt(Ct,"Non-whitespace before first tag."),Ct.textNode=st,Ct.state=_e.TEXT)}function Ut(Ct,st){var bt="";return st<Ct.length&&(bt=Ct.charAt(st)),bt}function Pt(Ct){var st=this;if(this.error)throw this.error;if(st.closed)return qe(st,"Cannot write after close. Assign an onready handler.");if(Ct===null)return it(st);typeof Ct=="object"&&(Ct=Ct.toString());for(var bt=0,at="";at=Ut(Ct,bt++),st.c=at,!!at;)switch(st.trackPosition&&(st.position++,at===`
|
|
|
`?(st.line++,st.column=0):st.column++),st.state){case _e.BEGIN:if(st.state=_e.BEGIN_WHITESPACE,at==="\uFEFF")continue;kt(st,at);continue;case _e.BEGIN_WHITESPACE:kt(st,at);continue;case _e.TEXT:if(st.sawRoot&&!st.closedRoot){for(var ct=bt-1;at&&at!=="<"&&at!=="&";)at=Ut(Ct,bt++),at&&st.trackPosition&&(st.position++,at===`
|
|
|
`?(st.line++,st.column=0):st.column++);st.textNode+=Ct.substring(ct,bt-1)}at==="<"&&!(st.sawRoot&&st.closedRoot&&!st.strict)?(st.state=_e.OPEN_WAKA,st.startTagPosition=st.position):(!Le(at)&&(!st.sawRoot||st.closedRoot)&&pt(st,"Text data outside of root node."),at==="&"?st.state=_e.TEXT_ENTITY:st.textNode+=at);continue;case _e.SCRIPT:at==="<"?st.state=_e.SCRIPT_ENDING:st.script+=at;continue;case _e.SCRIPT_ENDING:at==="/"?st.state=_e.CLOSE_TAG:(st.script+="<"+at,st.state=_e.SCRIPT);continue;case _e.OPEN_WAKA:if(at==="!")st.state=_e.SGML_DECL,st.sgmlDecl="";else if(!Le(at))if(Re(be,at))st.state=_e.OPEN_TAG,st.tagName=at;else if(at==="/")st.state=_e.CLOSE_TAG,st.tagName="";else if(at==="?")st.state=_e.PROC_INST,st.procInstName=st.procInstBody="";else{if(pt(st,"Unencoded <"),st.startTagPosition+1<st.position){var Lt=st.position-st.startTagPosition;at=new Array(Lt).join(" ")+at}st.textNode+="<"+at,st.state=_e.TEXT}continue;case _e.SGML_DECL:(st.sgmlDecl+at).toUpperCase()===ae?(ut(st,"onopencdata"),st.state=_e.CDATA,st.sgmlDecl="",st.cdata=""):st.sgmlDecl+at==="--"?(st.state=_e.COMMENT,st.comment="",st.sgmlDecl=""):(st.sgmlDecl+at).toUpperCase()===re?(st.state=_e.DOCTYPE,(st.doctype||st.sawRoot)&&pt(st,"Inappropriately located doctype declaration"),st.doctype="",st.sgmlDecl=""):at===">"?(ut(st,"onsgmldeclaration",st.sgmlDecl),st.sgmlDecl="",st.state=_e.TEXT):(Ne(at)&&(st.state=_e.SGML_DECL_QUOTED),st.sgmlDecl+=at);continue;case _e.SGML_DECL_QUOTED:at===st.q&&(st.state=_e.SGML_DECL,st.q=""),st.sgmlDecl+=at;continue;case _e.DOCTYPE:at===">"?(st.state=_e.TEXT,ut(st,"ondoctype",st.doctype),st.doctype=!0):(st.doctype+=at,at==="["?st.state=_e.DOCTYPE_DTD:Ne(at)&&(st.state=_e.DOCTYPE_QUOTED,st.q=at));continue;case _e.DOCTYPE_QUOTED:st.doctype+=at,at===st.q&&(st.q="",st.state=_e.DOCTYPE);continue;case _e.DOCTYPE_DTD:st.doctype+=at,at==="]"?st.state=_e.DOCTYPE:Ne(at)&&(st.state=_e.DOCTYPE_DTD_QUOTED,st.q=at);continue;case _e.DOCTYPE_DTD_QUOTED:st.doctype+=at,at===st.q&&(st.state=_e.DOCTYPE_DTD,st.q="");continue;case _e.COMMENT:at==="-"?st.state=_e.COMMENT_ENDING:st.comment+=at;continue;case _e.COMMENT_ENDING:at==="-"?(st.state=_e.COMMENT_ENDED,st.comment=St(st.opt,st.comment),st.comment&&ut(st,"oncomment",st.comment),st.comment=""):(st.comment+="-"+at,st.state=_e.COMMENT);continue;case _e.COMMENT_ENDED:at!==">"?(pt(st,"Malformed comment"),st.comment+="--"+at,st.state=_e.COMMENT):st.state=_e.TEXT;continue;case _e.CDATA:at==="]"?st.state=_e.CDATA_ENDING:st.cdata+=at;continue;case _e.CDATA_ENDING:at==="]"?st.state=_e.CDATA_ENDING_2:(st.cdata+="]"+at,st.state=_e.CDATA);continue;case _e.CDATA_ENDING_2:at===">"?(st.cdata&&ut(st,"oncdata",st.cdata),ut(st,"onclosecdata"),st.cdata="",st.state=_e.TEXT):at==="]"?st.cdata+="]":(st.cdata+="]]"+at,st.state=_e.CDATA);continue;case _e.PROC_INST:at==="?"?st.state=_e.PROC_INST_ENDING:Le(at)?st.state=_e.PROC_INST_BODY:st.procInstName+=at;continue;case _e.PROC_INST_BODY:if(!st.procInstBody&&Le(at))continue;at==="?"?st.state=_e.PROC_INST_ENDING:st.procInstBody+=at;continue;case _e.PROC_INST_ENDING:at===">"?(ut(st,"onprocessinginstruction",{name:st.procInstName,body:st.procInstBody}),st.procInstName=st.procInstBody="",st.state=_e.TEXT):(st.procInstBody+="?"+at,st.state=_e.PROC_INST_BODY);continue;case _e.OPEN_TAG:Re(Ce,at)?st.tagName+=at:(wt(st),at===">"?mt(st):at==="/"?st.state=_e.OPEN_TAG_SLASH:(Le(at)||pt(st,"Invalid character in tag name"),st.state=_e.ATTRIB));continue;case _e.OPEN_TAG_SLASH:at===">"?(mt(st,!0),yt(st)):(pt(st,"Forward-slash in opening tag not followed by >"),st.state=_e.ATTRIB);continue;case _e.ATTRIB:if(Le(at))continue;at===">"?mt(st):at==="/"?st.state=_e.OPEN_TAG_SLASH:Re(be,at)?(st.attribName=at,st.attribValue="",st.state=_e.ATTRIB_NAME):pt(st,"Invalid attribute name");continue;case _e.ATTRIB_NAME:at==="="?st.state=_e.ATTRIB_VALUE:at===">"?(pt(st,"Attribute without value"),st.attribValue=st.attribName,ft(st),mt(st)):Le(at)?st.state=_e.ATTRIB_NAME_SAW_WHITE:Re(Ce,at)?st.attribName+=at:pt(st,"Invalid attribute name");continue;case _e.ATTRIB_NAME_SAW_WHITE:if(at==="=")st.state=_e.ATTRIB_VALUE;else{if(Le(at))continue;pt(st,"Attribute without value"),st.tag.attributes[st.attribName]="",st.attribValue="",ut(st,"onattribute",{name:st.attribName,value:""}),st.attribName="",at===">"?mt(st):Re(be,at)?(st.attribName=at,st.state=_e.ATTRIB_NAME):(pt(st,"Invalid attribute name"),st.state=_e.ATTRIB)}continue;case _e.ATTRIB_VALUE:if(Le(at))continue;Ne(at)?(st.q=at,st.state=_e.ATTRIB_VALUE_QUOTED):(pt(st,"Unquoted attribute value"),st.state=_e.ATTRIB_VALUE_UNQUOTED,st.attribValue=at);continue;case _e.ATTRIB_VALUE_QUOTED:if(at!==st.q){at==="&"?st.state=_e.ATTRIB_VALUE_ENTITY_Q:st.attribValue+=at;continue}ft(st),st.q="",st.state=_e.ATTRIB_VALUE_CLOSED;continue;case _e.ATTRIB_VALUE_CLOSED:Le(at)?st.state=_e.ATTRIB:at===">"?mt(st):at==="/"?st.state=_e.OPEN_TAG_SLASH:Re(be,at)?(pt(st,"No whitespace between attributes"),st.attribName=at,st.attribValue="",st.state=_e.ATTRIB_NAME):pt(st,"Invalid attribute name");continue;case _e.ATTRIB_VALUE_UNQUOTED:if(!De(at)){at==="&"?st.state=_e.ATTRIB_VALUE_ENTITY_U:st.attribValue+=at;continue}ft(st),at===">"?mt(st):st.state=_e.ATTRIB;continue;case _e.CLOSE_TAG:if(st.tagName)at===">"?yt(st):Re(Ce,at)?st.tagName+=at:st.script?(st.script+="</"+st.tagName,st.tagName="",st.state=_e.SCRIPT):(Le(at)||pt(st,"Invalid tagname in closing tag"),st.state=_e.CLOSE_TAG_SAW_WHITE);else{if(Le(at))continue;Je(be,at)?st.script?(st.script+="</"+at,st.state=_e.SCRIPT):pt(st,"Invalid tagname in closing tag."):st.tagName=at}continue;case _e.CLOSE_TAG_SAW_WHITE:if(Le(at))continue;at===">"?yt(st):pt(st,"Invalid characters in closing tag");continue;case _e.TEXT_ENTITY:case _e.ATTRIB_VALUE_ENTITY_Q:case _e.ATTRIB_VALUE_ENTITY_U:var vt,nt;switch(st.state){case _e.TEXT_ENTITY:vt=_e.TEXT,nt="textNode";break;case _e.ATTRIB_VALUE_ENTITY_Q:vt=_e.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case _e.ATTRIB_VALUE_ENTITY_U:vt=_e.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}at===";"?(st[nt]+=It(st),st.entity="",st.state=vt):Re(st.entity.length?Oe:Ie,at)?st.entity+=at:(pt(st,"Invalid character in entity name"),st[nt]+="&"+st.entity+at,st.entity="",st.state=vt);continue;default:throw new Error(st,"Unknown state: "+st.state)}return st.position>=st.bufferCheckPosition&&Se(st),st}String.fromCodePoint||function(){var Ct=String.fromCharCode,st=Math.floor,bt=function(){var at=16384,ct=[],Lt,vt,nt=-1,Xe=arguments.length;if(!Xe)return"";for(var Ue="";++nt<Xe;){var $e=Number(arguments[nt]);if(!isFinite($e)||$e<0||$e>1114111||st($e)!==$e)throw RangeError("Invalid code point: "+$e);$e<=65535?ct.push($e):($e-=65536,Lt=($e>>10)+55296,vt=$e%1024+56320,ct.push(Lt,vt)),(nt+1===Xe||ct.length>at)&&(Ue+=Ct.apply(null,ct),ct.length=0)}return Ue};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:bt,configurable:!0,writable:!0}):String.fromCodePoint=bt}()})(typeof je=="undefined"?this.sax={}:je)}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(oe,ze,je){ze.exports=we;var ve=oe("events").EventEmitter,ce=oe("inherits");ce(we,ve),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(){ve.call(this)}we.prototype.pipe=function(Me,Se){var Pe=this;function me(le){Me.writable&&Me.write(le)===!1&&Pe.pause&&Pe.pause()}Pe.on("data",me);function xe(){Pe.readable&&Pe.resume&&Pe.resume()}Me.on("drain",xe),!Me._isStdio&&(!Se||Se.end!==!1)&&(Pe.on("end",z),Pe.on("close",ee));var fe=!1;function z(){fe||(fe=!0,Me.end())}function ee(){fe||(fe=!0,typeof Me.destroy=="function"&&Me.destroy())}function ae(le){if(re(),ve.listenerCount(this,"error")===0)throw le}Pe.on("error",ae),Me.on("error",ae);function re(){Pe.removeListener("data",me),Me.removeListener("drain",xe),Pe.removeListener("end",z),Pe.removeListener("close",ee),Pe.removeListener("error",ae),Me.removeListener("error",ae),Pe.removeListener("end",re),Pe.removeListener("close",re),Me.removeListener("close",re)}return Pe.on("end",re),Pe.on("close",re),Me.on("close",re),Me.emit("pipe",Pe),Me}},{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,ze,je){"use strict";function ve(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){ve(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 Me(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 Pe(xe,fe,z){return(z===void 0||z>xe.length)&&(z=xe.length),xe.substring(z-fe.length,z)===fe}function me(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(Pe(xe," argument"))ae="The ".concat(xe," ").concat(ee," ").concat(Me(fe,"type"));else{var re=me(xe,".")?"property":"argument";ae='The "'.concat(xe,'" ').concat(re," ").concat(ee," ").concat(Me(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"),ze.exports.codes=ce},{}],400:[function(oe,ze,je){(function(ve){(function(){"use strict";var ce=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};ze.exports=xe;var we=oe("./_stream_readable"),Me=oe("./_stream_writable");oe("inherits")(xe,we);for(var Se=ce(Me.prototype),Pe=0;Pe<Se.length;Pe++){var me=Se[Pe];xe.prototype[me]||(xe.prototype[me]=Me.prototype[me])}function xe(ee){if(!(this instanceof xe))return new xe(ee);we.call(this,ee),Me.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||ve.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,ze,je){"use strict";ze.exports=ce;var ve=oe("./_stream_transform");oe("inherits")(ce,ve);function ce(we){if(!(this instanceof ce))return new ce(we);ve.call(this,we)}ce.prototype._transform=function(we,Me,Se){Se(null,we)}},{"./_stream_transform":403,inherits:364}],402:[function(oe,ze,je){(function(ve,ce){(function(){"use strict";ze.exports=ut;var we;ut.ReadableState=Qe;var Me=oe("events").EventEmitter,Se=function(Xe,Ue){return Xe.listeners(Ue).length},Pe=oe("./internal/streams/stream"),me=oe("buffer").Buffer,xe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function fe(nt){return me.from(nt)}function z(nt){return me.isBuffer(nt)||nt 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,Ie=be.ERR_STREAM_PUSH_AFTER_EOF,Oe=be.ERR_METHOD_NOT_IMPLEMENTED,Le=be.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ne,De,Re;oe("inherits")(ut,Pe);var Je=le.errorOrDestroy,_e=["error","close","destroy","pause","resume"];function Ve(nt,Xe,Ue){if(typeof nt.prependListener=="function")return nt.prependListener(Xe,Ue);!nt._events||!nt._events[Xe]?nt.on(Xe,Ue):Array.isArray(nt._events[Xe])?nt._events[Xe].unshift(Ue):nt._events[Xe]=[Ue,nt._events[Xe]]}function Qe(nt,Xe,Ue){we=we||oe("./_stream_duplex"),nt=nt||{},typeof Ue!="boolean"&&(Ue=Xe instanceof we),this.objectMode=!!nt.objectMode,Ue&&(this.objectMode=this.objectMode||!!nt.readableObjectMode),this.highWaterMark=pe(this,nt,"readableHighWaterMark",Ue),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=nt.emitClose!==!1,this.autoDestroy=!!nt.autoDestroy,this.destroyed=!1,this.defaultEncoding=nt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,nt.encoding&&(Ne||(Ne=oe("string_decoder/").StringDecoder),this.decoder=new Ne(nt.encoding),this.encoding=nt.encoding)}function ut(nt){if(we=we||oe("./_stream_duplex"),!(this instanceof ut))return new ut(nt);var Xe=this instanceof we;this._readableState=new Qe(nt,this,Xe),this.readable=!0,nt&&(typeof nt.read=="function"&&(this._read=nt.read),typeof nt.destroy=="function"&&(this._destroy=nt.destroy)),Pe.call(this)}Object.defineProperty(ut.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Xe){this._readableState&&(this._readableState.destroyed=Xe)}}),ut.prototype.destroy=le.destroy,ut.prototype._undestroy=le.undestroy,ut.prototype._destroy=function(nt,Xe){Xe(nt)},ut.prototype.push=function(nt,Xe){var Ue=this._readableState,$e;return Ue.objectMode?$e=!0:typeof nt=="string"&&(Xe=Xe||Ue.defaultEncoding,Xe!==Ue.encoding&&(nt=me.from(nt,Xe),Xe=""),$e=!0),dt(this,nt,Xe,!1,$e)},ut.prototype.unshift=function(nt){return dt(this,nt,null,!0,!1)};function dt(nt,Xe,Ue,$e,tt){ae("readableAddChunk",Xe);var We=nt._readableState;if(Xe===null)We.reading=!1,xt(nt,We);else{var Be;if(tt||(Be=qe(We,Xe)),Be)Je(nt,Be);else if(We.objectMode||Xe&&Xe.length>0)if(typeof Xe!="string"&&!We.objectMode&&Object.getPrototypeOf(Xe)!==me.prototype&&(Xe=fe(Xe)),$e)We.endEmitted?Je(nt,new Le):St(nt,We,Xe,!0);else if(We.ended)Je(nt,new Ie);else{if(We.destroyed)return!1;We.reading=!1,We.decoder&&!Ue?(Xe=We.decoder.write(Xe),We.objectMode||Xe.length!==0?St(nt,We,Xe,!1):yt(nt,We)):St(nt,We,Xe,!1)}else $e||(We.reading=!1,yt(nt,We))}return!We.ended&&(We.length<We.highWaterMark||We.length===0)}function St(nt,Xe,Ue,$e){Xe.flowing&&Xe.length===0&&!Xe.sync?(Xe.awaitDrain=0,nt.emit("data",Ue)):(Xe.length+=Xe.objectMode?1:Ue.length,$e?Xe.buffer.unshift(Ue):Xe.buffer.push(Ue),Xe.needReadable&&ft(nt)),yt(nt,Xe)}function qe(nt,Xe){var Ue;return!z(Xe)&&typeof Xe!="string"&&Xe!==void 0&&!nt.objectMode&&(Ue=new Ce("chunk",["string","Buffer","Uint8Array"],Xe)),Ue}ut.prototype.isPaused=function(){return this._readableState.flowing===!1},ut.prototype.setEncoding=function(nt){Ne||(Ne=oe("string_decoder/").StringDecoder);var Xe=new Ne(nt);this._readableState.decoder=Xe,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ue=this._readableState.buffer.head,$e="";Ue!==null;)$e+=Xe.write(Ue.data),Ue=Ue.next;return this._readableState.buffer.clear(),$e!==""&&this._readableState.buffer.push($e),this._readableState.length=$e.length,this};var it=1073741824;function pt(nt){return nt>=it?nt=it:(nt--,nt|=nt>>>1,nt|=nt>>>2,nt|=nt>>>4,nt|=nt>>>8,nt|=nt>>>16,nt++),nt}function wt(nt,Xe){return nt<=0||Xe.length===0&&Xe.ended?0:Xe.objectMode?1:nt!==nt?Xe.flowing&&Xe.length?Xe.buffer.head.data.length:Xe.length:(nt>Xe.highWaterMark&&(Xe.highWaterMark=pt(nt)),nt<=Xe.length?nt:Xe.ended?Xe.length:(Xe.needReadable=!0,0))}ut.prototype.read=function(nt){ae("read",nt),nt=parseInt(nt,10);var Xe=this._readableState,Ue=nt;if(nt!==0&&(Xe.emittedReadable=!1),nt===0&&Xe.needReadable&&((Xe.highWaterMark!==0?Xe.length>=Xe.highWaterMark:Xe.length>0)||Xe.ended))return ae("read: emitReadable",Xe.length,Xe.ended),Xe.length===0&&Xe.ended?ct(this):ft(this),null;if(nt=wt(nt,Xe),nt===0&&Xe.ended)return Xe.length===0&&ct(this),null;var $e=Xe.needReadable;ae("need readable",$e),(Xe.length===0||Xe.length-nt<Xe.highWaterMark)&&($e=!0,ae("length less than watermark",$e)),Xe.ended||Xe.reading?($e=!1,ae("reading or ended",$e)):$e&&(ae("do read"),Xe.reading=!0,Xe.sync=!0,Xe.length===0&&(Xe.needReadable=!0),this._read(Xe.highWaterMark),Xe.sync=!1,Xe.reading||(nt=wt(Ue,Xe)));var tt;return nt>0?tt=at(nt,Xe):tt=null,tt===null?(Xe.needReadable=Xe.length<=Xe.highWaterMark,nt=0):(Xe.length-=nt,Xe.awaitDrain=0),Xe.length===0&&(Xe.ended||(Xe.needReadable=!0),Ue!==nt&&Xe.ended&&ct(this)),tt!==null&&this.emit("data",tt),tt};function xt(nt,Xe){if(ae("onEofChunk"),!Xe.ended){if(Xe.decoder){var Ue=Xe.decoder.end();Ue&&Ue.length&&(Xe.buffer.push(Ue),Xe.length+=Xe.objectMode?1:Ue.length)}Xe.ended=!0,Xe.sync?ft(nt):(Xe.needReadable=!1,Xe.emittedReadable||(Xe.emittedReadable=!0,mt(nt)))}}function ft(nt){var Xe=nt._readableState;ae("emitReadable",Xe.needReadable,Xe.emittedReadable),Xe.needReadable=!1,Xe.emittedReadable||(ae("emitReadable",Xe.flowing),Xe.emittedReadable=!0,ve.nextTick(mt,nt))}function mt(nt){var Xe=nt._readableState;ae("emitReadable_",Xe.destroyed,Xe.length,Xe.ended),!Xe.destroyed&&(Xe.length||Xe.ended)&&(nt.emit("readable"),Xe.emittedReadable=!1),Xe.needReadable=!Xe.flowing&&!Xe.ended&&Xe.length<=Xe.highWaterMark,bt(nt)}function yt(nt,Xe){Xe.readingMore||(Xe.readingMore=!0,ve.nextTick(It,nt,Xe))}function It(nt,Xe){for(;!Xe.reading&&!Xe.ended&&(Xe.length<Xe.highWaterMark||Xe.flowing&&Xe.length===0);){var Ue=Xe.length;if(ae("maybeReadMore read 0"),nt.read(0),Ue===Xe.length)break}Xe.readingMore=!1}ut.prototype._read=function(nt){Je(this,new Oe("_read()"))},ut.prototype.pipe=function(nt,Xe){var Ue=this,$e=this._readableState;switch($e.pipesCount){case 0:$e.pipes=nt;break;case 1:$e.pipes=[$e.pipes,nt];break;default:$e.pipes.push(nt);break}$e.pipesCount+=1,ae("pipe count=%d opts=%j",$e.pipesCount,Xe);var tt=(!Xe||Xe.end!==!1)&&nt!==ve.stdout&&nt!==ve.stderr,We=tt?Te:Kt;$e.endEmitted?ve.nextTick(We):Ue.once("end",We),nt.on("unpipe",Be);function Be(en,cn){ae("onunpipe"),en===Ue&&cn&&cn.hasUnpiped===!1&&(cn.hasUnpiped=!0,Ze())}function Te(){ae("onend"),nt.end()}var Ke=kt(Ue);nt.on("drain",Ke);var gt=!1;function Ze(){ae("cleanup"),nt.removeListener("close",Yt),nt.removeListener("finish",jt),nt.removeListener("drain",Ke),nt.removeListener("error",zt),nt.removeListener("unpipe",Be),Ue.removeListener("end",Te),Ue.removeListener("end",Kt),Ue.removeListener("data",Ot),gt=!0,$e.awaitDrain&&(!nt._writableState||nt._writableState.needDrain)&&Ke()}Ue.on("data",Ot);function Ot(en){ae("ondata");var cn=nt.write(en);ae("dest.write",cn),cn===!1&&(($e.pipesCount===1&&$e.pipes===nt||$e.pipesCount>1&&vt($e.pipes,nt)!==-1)&&!gt&&(ae("false write response, pause",$e.awaitDrain),$e.awaitDrain++),Ue.pause())}function zt(en){ae("onerror",en),Kt(),nt.removeListener("error",zt),Se(nt,"error")===0&&Je(nt,en)}Ve(nt,"error",zt);function Yt(){nt.removeListener("finish",jt),Kt()}nt.once("close",Yt);function jt(){ae("onfinish"),nt.removeListener("close",Yt),Kt()}nt.once("finish",jt);function Kt(){ae("unpipe"),Ue.unpipe(nt)}return nt.emit("pipe",Ue),$e.flowing||(ae("pipe resume"),Ue.resume()),nt};function kt(nt){return function(){var Ue=nt._readableState;ae("pipeOnDrain",Ue.awaitDrain),Ue.awaitDrain&&Ue.awaitDrain--,Ue.awaitDrain===0&&Se(nt,"data")&&(Ue.flowing=!0,bt(nt))}}ut.prototype.unpipe=function(nt){var Xe=this._readableState,Ue={hasUnpiped:!1};if(Xe.pipesCount===0)return this;if(Xe.pipesCount===1)return nt&&nt!==Xe.pipes?this:(nt||(nt=Xe.pipes),Xe.pipes=null,Xe.pipesCount=0,Xe.flowing=!1,nt&&nt.emit("unpipe",this,Ue),this);if(!nt){var $e=Xe.pipes,tt=Xe.pipesCount;Xe.pipes=null,Xe.pipesCount=0,Xe.flowing=!1;for(var We=0;We<tt;We++)$e[We].emit("unpipe",this,{hasUnpiped:!1});return this}var Be=vt(Xe.pipes,nt);return Be===-1?this:(Xe.pipes.splice(Be,1),Xe.pipesCount-=1,Xe.pipesCount===1&&(Xe.pipes=Xe.pipes[0]),nt.emit("unpipe",this,Ue),this)},ut.prototype.on=function(nt,Xe){var Ue=Pe.prototype.on.call(this,nt,Xe),$e=this._readableState;return nt==="data"?($e.readableListening=this.listenerCount("readable")>0,$e.flowing!==!1&&this.resume()):nt==="readable"&&!$e.endEmitted&&!$e.readableListening&&($e.readableListening=$e.needReadable=!0,$e.flowing=!1,$e.emittedReadable=!1,ae("on readable",$e.length,$e.reading),$e.length?ft(this):$e.reading||ve.nextTick(Pt,this)),Ue},ut.prototype.addListener=ut.prototype.on,ut.prototype.removeListener=function(nt,Xe){var Ue=Pe.prototype.removeListener.call(this,nt,Xe);return nt==="readable"&&ve.nextTick(Ut,this),Ue},ut.prototype.removeAllListeners=function(nt){var Xe=Pe.prototype.removeAllListeners.apply(this,arguments);return(nt==="readable"||nt===void 0)&&ve.nextTick(Ut,this),Xe};function Ut(nt){var Xe=nt._readableState;Xe.readableListening=nt.listenerCount("readable")>0,Xe.resumeScheduled&&!Xe.paused?Xe.flowing=!0:nt.listenerCount("data")>0&&nt.resume()}function Pt(nt){ae("readable nexttick read 0"),nt.read(0)}ut.prototype.resume=function(){var nt=this._readableState;return nt.flowing||(ae("resume"),nt.flowing=!nt.readableListening,Ct(this,nt)),nt.paused=!1,this};function Ct(nt,Xe){Xe.resumeScheduled||(Xe.resumeScheduled=!0,ve.nextTick(st,nt,Xe))}function st(nt,Xe){ae("resume",Xe.reading),Xe.reading||nt.read(0),Xe.resumeScheduled=!1,nt.emit("resume"),bt(nt),Xe.flowing&&!Xe.reading&&nt.read(0)}ut.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 bt(nt){var Xe=nt._readableState;for(ae("flow",Xe.flowing);Xe.flowing&&nt.read()!==null;);}ut.prototype.wrap=function(nt){var Xe=this,Ue=this._readableState,$e=!1;nt.on("end",function(){if(ae("wrapped end"),Ue.decoder&&!Ue.ended){var Be=Ue.decoder.end();Be&&Be.length&&Xe.push(Be)}Xe.push(null)}),nt.on("data",function(Be){if(ae("wrapped data"),Ue.decoder&&(Be=Ue.decoder.write(Be)),!(Ue.objectMode&&Be==null)&&!(!Ue.objectMode&&(!Be||!Be.length))){var Te=Xe.push(Be);Te||($e=!0,nt.pause())}});for(var tt in nt)this[tt]===void 0&&typeof nt[tt]=="function"&&(this[tt]=function(Te){return function(){return nt[Te].apply(nt,arguments)}}(tt));for(var We=0;We<_e.length;We++)nt.on(_e[We],this.emit.bind(this,_e[We]));return this._read=function(Be){ae("wrapped _read",Be),$e&&($e=!1,nt.resume())},this},typeof Symbol=="function"&&(ut.prototype[Symbol.asyncIterator]=function(){return De===void 0&&(De=oe("./internal/streams/async_iterator")),De(this)}),Object.defineProperty(ut.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ut.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ut.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Xe){this._readableState&&(this._readableState.flowing=Xe)}}),ut._fromList=at,Object.defineProperty(ut.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function at(nt,Xe){if(Xe.length===0)return null;var Ue;return Xe.objectMode?Ue=Xe.buffer.shift():!nt||nt>=Xe.length?(Xe.decoder?Ue=Xe.buffer.join(""):Xe.buffer.length===1?Ue=Xe.buffer.first():Ue=Xe.buffer.concat(Xe.length),Xe.buffer.clear()):Ue=Xe.buffer.consume(nt,Xe.decoder),Ue}function ct(nt){var Xe=nt._readableState;ae("endReadable",Xe.endEmitted),Xe.endEmitted||(Xe.ended=!0,ve.nextTick(Lt,Xe,nt))}function Lt(nt,Xe){if(ae("endReadableNT",nt.endEmitted,nt.length),!nt.endEmitted&&nt.length===0&&(nt.endEmitted=!0,Xe.readable=!1,Xe.emit("end"),nt.autoDestroy)){var Ue=Xe._writableState;(!Ue||Ue.autoDestroy&&Ue.finished)&&Xe.destroy()}}typeof Symbol=="function"&&(ut.from=function(nt,Xe){return Re===void 0&&(Re=oe("./internal/streams/from")),Re(ut,nt,Xe)});function vt(nt,Xe){for(var Ue=0,$e=nt.length;Ue<$e;Ue++)if(nt[Ue]===Xe)return Ue;return-1}}).call(this)}).call(this,oe("_process"),typeof Pn!="undefined"?Pn: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,ze,je){"use strict";ze.exports=xe;var ve=oe("../errors").codes,ce=ve.ERR_METHOD_NOT_IMPLEMENTED,we=ve.ERR_MULTIPLE_CALLBACK,Me=ve.ERR_TRANSFORM_ALREADY_TRANSFORMING,Se=ve.ERR_TRANSFORM_WITH_LENGTH_0,Pe=oe("./_stream_duplex");oe("inherits")(xe,Pe);function me(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);Pe.call(this,ee),this._transformState={afterTransform:me.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ee&&(typeof ee.transform=="function"&&(this._transform=ee.transform),typeof ee.flush=="function"&&(this._flush=ee.flush)),this.on("prefinish",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,Pe.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){Pe.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 Me;return ee.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(oe,ze,je){(function(ve,ce){(function(){"use strict";ze.exports=Qe;function we(bt,at,ct){this.chunk=bt,this.encoding=at,this.callback=ct,this.next=null}function Me(bt){var at=this;this.next=null,this.entry=null,this.finish=function(){st(at,bt)}}var Se;Qe.WritableState=_e;var Pe={deprecate:oe("util-deprecate")},me=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(bt){return xe.from(bt)}function ee(bt){return xe.isBuffer(bt)||bt 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,Ie=ue.ERR_STREAM_CANNOT_PIPE,Oe=ue.ERR_STREAM_DESTROYED,Le=ue.ERR_STREAM_NULL_VALUES,Ne=ue.ERR_STREAM_WRITE_AFTER_END,De=ue.ERR_UNKNOWN_ENCODING,Re=ae.errorOrDestroy;oe("inherits")(Qe,me);function Je(){}function _e(bt,at,ct){Se=Se||oe("./_stream_duplex"),bt=bt||{},typeof ct!="boolean"&&(ct=at instanceof Se),this.objectMode=!!bt.objectMode,ct&&(this.objectMode=this.objectMode||!!bt.writableObjectMode),this.highWaterMark=le(this,bt,"writableHighWaterMark",ct),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Lt=bt.decodeStrings===!1;this.decodeStrings=!Lt,this.defaultEncoding=bt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(vt){xt(at,vt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=bt.emitClose!==!1,this.autoDestroy=!!bt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Me(this)}_e.prototype.getBuffer=function(){for(var at=this.bufferedRequest,ct=[];at;)ct.push(at),at=at.next;return ct},function(){try{Object.defineProperty(_e.prototype,"buffer",{get:Pe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(bt){}}();var Ve;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ve=Function.prototype[Symbol.hasInstance],Object.defineProperty(Qe,Symbol.hasInstance,{value:function(at){return Ve.call(this,at)?!0:this!==Qe?!1:at&&at._writableState instanceof _e}})):Ve=function(at){return at instanceof this};function Qe(bt){Se=Se||oe("./_stream_duplex");var at=this instanceof Se;if(!at&&!Ve.call(Qe,this))return new Qe(bt);this._writableState=new _e(bt,this,at),this.writable=!0,bt&&(typeof bt.write=="function"&&(this._write=bt.write),typeof bt.writev=="function"&&(this._writev=bt.writev),typeof bt.destroy=="function"&&(this._destroy=bt.destroy),typeof bt.final=="function"&&(this._final=bt.final)),me.call(this)}Qe.prototype.pipe=function(){Re(this,new Ie)};function ut(bt,at){var ct=new Ne;Re(bt,ct),ve.nextTick(at,ct)}function dt(bt,at,ct,Lt){var vt;return ct===null?vt=new Le:typeof ct!="string"&&!at.objectMode&&(vt=new pe("chunk",["string","Buffer"],ct)),vt?(Re(bt,vt),ve.nextTick(Lt,vt),!1):!0}Qe.prototype.write=function(bt,at,ct){var Lt=this._writableState,vt=!1,nt=!Lt.objectMode&&ee(bt);return nt&&!xe.isBuffer(bt)&&(bt=z(bt)),typeof at=="function"&&(ct=at,at=null),nt?at="buffer":at||(at=Lt.defaultEncoding),typeof ct!="function"&&(ct=Je),Lt.ending?ut(this,ct):(nt||dt(this,Lt,bt,ct))&&(Lt.pendingcb++,vt=qe(this,Lt,nt,bt,at,ct)),vt},Qe.prototype.cork=function(){this._writableState.corked++},Qe.prototype.uncork=function(){var bt=this._writableState;bt.corked&&(bt.corked--,!bt.writing&&!bt.corked&&!bt.bufferProcessing&&bt.bufferedRequest&&yt(this,bt))},Qe.prototype.setDefaultEncoding=function(at){if(typeof at=="string"&&(at=at.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((at+"").toLowerCase())>-1))throw new De(at);return this._writableState.defaultEncoding=at,this},Object.defineProperty(Qe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function St(bt,at,ct){return!bt.objectMode&&bt.decodeStrings!==!1&&typeof at=="string"&&(at=xe.from(at,ct)),at}Object.defineProperty(Qe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qe(bt,at,ct,Lt,vt,nt){if(!ct){var Xe=St(at,Lt,vt);Lt!==Xe&&(ct=!0,vt="buffer",Lt=Xe)}var Ue=at.objectMode?1:Lt.length;at.length+=Ue;var $e=at.length<at.highWaterMark;if($e||(at.needDrain=!0),at.writing||at.corked){var tt=at.lastBufferedRequest;at.lastBufferedRequest={chunk:Lt,encoding:vt,isBuf:ct,callback:nt,next:null},tt?tt.next=at.lastBufferedRequest:at.bufferedRequest=at.lastBufferedRequest,at.bufferedRequestCount+=1}else it(bt,at,!1,Ue,Lt,vt,nt);return $e}function it(bt,at,ct,Lt,vt,nt,Xe){at.writelen=Lt,at.writecb=Xe,at.writing=!0,at.sync=!0,at.destroyed?at.onwrite(new Oe("write")):ct?bt._writev(vt,at.onwrite):bt._write(vt,nt,at.onwrite),at.sync=!1}function pt(bt,at,ct,Lt,vt){--at.pendingcb,ct?(ve.nextTick(vt,Lt),ve.nextTick(Pt,bt,at),bt._writableState.errorEmitted=!0,Re(bt,Lt)):(vt(Lt),bt._writableState.errorEmitted=!0,Re(bt,Lt),Pt(bt,at))}function wt(bt){bt.writing=!1,bt.writecb=null,bt.length-=bt.writelen,bt.writelen=0}function xt(bt,at){var ct=bt._writableState,Lt=ct.sync,vt=ct.writecb;if(typeof vt!="function")throw new Ce;if(wt(ct),at)pt(bt,ct,Lt,at,vt);else{var nt=It(ct)||bt.destroyed;!nt&&!ct.corked&&!ct.bufferProcessing&&ct.bufferedRequest&&yt(bt,ct),Lt?ve.nextTick(ft,bt,ct,nt,vt):ft(bt,ct,nt,vt)}}function ft(bt,at,ct,Lt){ct||mt(bt,at),at.pendingcb--,Lt(),Pt(bt,at)}function mt(bt,at){at.length===0&&at.needDrain&&(at.needDrain=!1,bt.emit("drain"))}function yt(bt,at){at.bufferProcessing=!0;var ct=at.bufferedRequest;if(bt._writev&&ct&&ct.next){var Lt=at.bufferedRequestCount,vt=new Array(Lt),nt=at.corkedRequestsFree;nt.entry=ct;for(var Xe=0,Ue=!0;ct;)vt[Xe]=ct,ct.isBuf||(Ue=!1),ct=ct.next,Xe+=1;vt.allBuffers=Ue,it(bt,at,!0,at.length,vt,"",nt.finish),at.pendingcb++,at.lastBufferedRequest=null,nt.next?(at.corkedRequestsFree=nt.next,nt.next=null):at.corkedRequestsFree=new Me(at),at.bufferedRequestCount=0}else{for(;ct;){var $e=ct.chunk,tt=ct.encoding,We=ct.callback,Be=at.objectMode?1:$e.length;if(it(bt,at,!1,Be,$e,tt,We),ct=ct.next,at.bufferedRequestCount--,at.writing)break}ct===null&&(at.lastBufferedRequest=null)}at.bufferedRequest=ct,at.bufferProcessing=!1}Qe.prototype._write=function(bt,at,ct){ct(new be("_write()"))},Qe.prototype._writev=null,Qe.prototype.end=function(bt,at,ct){var Lt=this._writableState;return typeof bt=="function"?(ct=bt,bt=null,at=null):typeof at=="function"&&(ct=at,at=null),bt!=null&&this.write(bt,at),Lt.corked&&(Lt.corked=1,this.uncork()),Lt.ending||Ct(this,Lt,ct),this},Object.defineProperty(Qe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function It(bt){return bt.ending&&bt.length===0&&bt.bufferedRequest===null&&!bt.finished&&!bt.writing}function kt(bt,at){bt._final(function(ct){at.pendingcb--,ct&&Re(bt,ct),at.prefinished=!0,bt.emit("prefinish"),Pt(bt,at)})}function Ut(bt,at){!at.prefinished&&!at.finalCalled&&(typeof bt._final=="function"&&!at.destroyed?(at.pendingcb++,at.finalCalled=!0,ve.nextTick(kt,bt,at)):(at.prefinished=!0,bt.emit("prefinish")))}function Pt(bt,at){var ct=It(at);if(ct&&(Ut(bt,at),at.pendingcb===0&&(at.finished=!0,bt.emit("finish"),at.autoDestroy))){var Lt=bt._readableState;(!Lt||Lt.autoDestroy&&Lt.endEmitted)&&bt.destroy()}return ct}function Ct(bt,at,ct){at.ending=!0,Pt(bt,at),ct&&(at.finished?ve.nextTick(ct):bt.once("finish",ct)),at.ended=!0,bt.writable=!1}function st(bt,at,ct){var Lt=bt.entry;for(bt.entry=null;Lt;){var vt=Lt.callback;at.pendingcb--,vt(ct),Lt=Lt.next}at.corkedRequestsFree.next=bt}Object.defineProperty(Qe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(at){this._writableState&&(this._writableState.destroyed=at)}}),Qe.prototype.destroy=ae.destroy,Qe.prototype._undestroy=ae.undestroy,Qe.prototype._destroy=function(bt,at){at(bt)}}).call(this)}).call(this,oe("_process"),typeof Pn!="undefined"?Pn: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,ze,je){(function(ve){(function(){"use strict";var ce;function we(Le,Ne,De){return Ne=Me(Ne),Ne in Le?Object.defineProperty(Le,Ne,{value:De,enumerable:!0,configurable:!0,writable:!0}):Le[Ne]=De,Le}function Me(Le){var Ne=Se(Le,"string");return typeof Ne=="symbol"?Ne:String(Ne)}function Se(Le,Ne){if(typeof Le!="object"||Le===null)return Le;var De=Le[Symbol.toPrimitive];if(De!==void 0){var Re=De.call(Le,Ne||"default");if(typeof Re!="object")return Re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ne==="string"?String:Number)(Le)}var Pe=oe("./end-of-stream"),me=Symbol("lastResolve"),xe=Symbol("lastReject"),fe=Symbol("error"),z=Symbol("ended"),ee=Symbol("lastPromise"),ae=Symbol("handlePromise"),re=Symbol("stream");function le(Le,Ne){return{value:Le,done:Ne}}function ue(Le){var Ne=Le[me];if(Ne!==null){var De=Le[re].read();De!==null&&(Le[ee]=null,Le[me]=null,Le[xe]=null,Ne(le(De,!1)))}}function pe(Le){ve.nextTick(ue,Le)}function be(Le,Ne){return function(De,Re){Le.then(function(){if(Ne[z]){De(le(void 0,!0));return}Ne[ae](De,Re)},Re)}}var Ce=Object.getPrototypeOf(function(){}),Ie=Object.setPrototypeOf((ce={get stream(){return this[re]},next:function(){var Ne=this,De=this[fe];if(De!==null)return Promise.reject(De);if(this[z])return Promise.resolve(le(void 0,!0));if(this[re].destroyed)return new Promise(function(Ve,Qe){ve.nextTick(function(){Ne[fe]?Qe(Ne[fe]):Ve(le(void 0,!0))})});var Re=this[ee],Je;if(Re)Je=new Promise(be(Re,this));else{var _e=this[re].read();if(_e!==null)return Promise.resolve(le(_e,!1));Je=new Promise(this[ae])}return this[ee]=Je,Je}},we(ce,Symbol.asyncIterator,function(){return this}),we(ce,"return",function(){var Ne=this;return new Promise(function(De,Re){Ne[re].destroy(null,function(Je){if(Je){Re(Je);return}De(le(void 0,!0))})})}),ce),Ce),Oe=function(Ne){var De,Re=Object.create(Ie,(De={},we(De,re,{value:Ne,writable:!0}),we(De,me,{value:null,writable:!0}),we(De,xe,{value:null,writable:!0}),we(De,fe,{value:null,writable:!0}),we(De,z,{value:Ne._readableState.endEmitted,writable:!0}),we(De,ae,{value:function(_e,Ve){var Qe=Re[re].read();Qe?(Re[ee]=null,Re[me]=null,Re[xe]=null,_e(le(Qe,!1))):(Re[me]=_e,Re[xe]=Ve)},writable:!0}),De));return Re[ee]=null,Pe(Ne,function(Je){if(Je&&Je.code!=="ERR_STREAM_PREMATURE_CLOSE"){var _e=Re[xe];_e!==null&&(Re[ee]=null,Re[me]=null,Re[xe]=null,_e(Je)),Re[fe]=Je;return}var Ve=Re[me];Ve!==null&&(Re[ee]=null,Re[me]=null,Re[xe]=null,Ve(le(void 0,!0))),Re[z]=!0}),Ne.on("readable",pe.bind(null,Re)),Re};ze.exports=Oe}).call(this)}).call(this,oe("_process"))},{"./end-of-stream":408,_process:467}],406:[function(oe,ze,je){"use strict";function ve(ue,pe){var be=Object.keys(ue);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(ue);pe&&(Ce=Ce.filter(function(Ie){return Object.getOwnPropertyDescriptor(ue,Ie).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?ve(Object(be),!0).forEach(function(Ce){we(ue,Ce,be[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(be)):ve(Object(be)).forEach(function(Ce){Object.defineProperty(ue,Ce,Object.getOwnPropertyDescriptor(be,Ce))})}return ue}function we(ue,pe,be){return pe=me(pe),pe in ue?Object.defineProperty(ue,pe,{value:be,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=be,ue}function Me(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,me(Ce.key),Ce)}}function Pe(ue,pe,be){return pe&&Se(ue.prototype,pe),be&&Se(ue,be),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function me(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)}ze.exports=function(){function ue(){Me(this,ue),this.head=null,this.tail=null,this.length=0}return Pe(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,Ie=""+Ce.data;Ce=Ce.next;)Ie+=be+Ce.data;return Ie}},{key:"concat",value:function(be){if(this.length===0)return z.alloc(0);for(var Ce=z.allocUnsafe(be>>>0),Ie=this.head,Oe=0;Ie;)le(Ie.data,Ce,Oe),Oe+=Ie.data.length,Ie=Ie.next;return Ce}},{key:"consume",value:function(be,Ce){var Ie;return be<this.head.data.length?(Ie=this.head.data.slice(0,be),this.head.data=this.head.data.slice(be)):be===this.head.data.length?Ie=this.shift():Ie=Ce?this._getString(be):this._getBuffer(be),Ie}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(be){var Ce=this.head,Ie=1,Oe=Ce.data;for(be-=Oe.length;Ce=Ce.next;){var Le=Ce.data,Ne=be>Le.length?Le.length:be;if(Ne===Le.length?Oe+=Le:Oe+=Le.slice(0,be),be-=Ne,be===0){Ne===Le.length?(++Ie,Ce.next?this.head=Ce.next:this.head=this.tail=null):(this.head=Ce,Ce.data=Le.slice(Ne));break}++Ie}return this.length-=Ie,Oe}},{key:"_getBuffer",value:function(be){var Ce=z.allocUnsafe(be),Ie=this.head,Oe=1;for(Ie.data.copy(Ce),be-=Ie.data.length;Ie=Ie.next;){var Le=Ie.data,Ne=be>Le.length?Le.length:be;if(Le.copy(Ce,Ce.length-be,0,Ne),be-=Ne,be===0){Ne===Le.length?(++Oe,Ie.next?this.head=Ie.next:this.head=this.tail=null):(this.head=Ie,Ie.data=Le.slice(Ne));break}++Oe}return this.length-=Oe,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,ze,je){(function(ve){(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,ve.nextTick(Pe,this,xe)):ve.nextTick(Pe,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?ve.nextTick(Me,z):(z._writableState.errorEmitted=!0,ve.nextTick(we,z,re)):ve.nextTick(we,z,re):fe?(ve.nextTick(Me,z),fe(re)):ve.nextTick(Me,z)}),this)}function we(xe,fe){Pe(xe,fe),Me(xe)}function Me(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 Pe(xe,fe){xe.emit("error",fe)}function me(xe,fe){var z=xe._readableState,ee=xe._writableState;z&&z.autoDestroy||ee&&ee.autoDestroy?xe.destroy(fe):xe.emit("error",fe)}ze.exports={destroy:ce,undestroy:Se,errorOrDestroy:me}}).call(this)}).call(this,oe("_process"))},{_process:467}],408:[function(oe,ze,je){"use strict";var ve=oe("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ce(Pe){var me=!1;return function(){if(!me){me=!0;for(var xe=arguments.length,fe=new Array(xe),z=0;z<xe;z++)fe[z]=arguments[z];Pe.apply(this,fe)}}}function we(){}function Me(Pe){return Pe.setHeader&&typeof Pe.abort=="function"}function Se(Pe,me,xe){if(typeof me=="function")return Se(Pe,null,me);me||(me={}),xe=ce(xe||we);var fe=me.readable||me.readable!==!1&&Pe.readable,z=me.writable||me.writable!==!1&&Pe.writable,ee=function(){Pe.writable||re()},ae=Pe._writableState&&Pe._writableState.finished,re=function(){z=!1,ae=!0,fe||xe.call(Pe)},le=Pe._readableState&&Pe._readableState.endEmitted,ue=function(){fe=!1,le=!0,z||xe.call(Pe)},pe=function(Oe){xe.call(Pe,Oe)},be=function(){var Oe;if(fe&&!le)return(!Pe._readableState||!Pe._readableState.ended)&&(Oe=new ve),xe.call(Pe,Oe);if(z&&!ae)return(!Pe._writableState||!Pe._writableState.ended)&&(Oe=new ve),xe.call(Pe,Oe)},Ce=function(){Pe.req.on("finish",re)};return Me(Pe)?(Pe.on("complete",re),Pe.on("abort",be),Pe.req?Ce():Pe.on("request",Ce)):z&&!Pe._writableState&&(Pe.on("end",ee),Pe.on("close",ee)),Pe.on("end",ue),Pe.on("finish",re),me.error!==!1&&Pe.on("error",pe),Pe.on("close",be),function(){Pe.removeListener("complete",re),Pe.removeListener("abort",be),Pe.removeListener("request",Ce),Pe.req&&Pe.req.removeListener("finish",re),Pe.removeListener("end",ee),Pe.removeListener("close",ee),Pe.removeListener("finish",re),Pe.removeListener("end",ue),Pe.removeListener("error",pe),Pe.removeListener("close",be)}}ze.exports=Se},{"../../../errors":399}],409:[function(oe,ze,je){ze.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(oe,ze,je){"use strict";var ve;function ce(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var we=oe("../../../errors").codes,Me=we.ERR_MISSING_ARGS,Se=we.ERR_STREAM_DESTROYED;function Pe(re){if(re)throw re}function me(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}),ve===void 0&&(ve=oe("./end-of-stream")),ve(re,{readable:le,writable:ue},function(Ie){if(Ie)return pe(Ie);be=!0,pe()});var Ce=!1;return function(Ie){if(!be&&!Ce){if(Ce=!0,me(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(Ie||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"?Pe: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 Me("streams");var be,Ce=le.map(function(Ie,Oe){var Le=Oe<le.length-1,Ne=Oe>0;return xe(Ie,Le,Ne,function(De){be||(be=De),De&&Ce.forEach(fe),!Le&&(Ce.forEach(fe),pe(be))})});return le.reduce(z)}ze.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(oe,ze,je){"use strict";var ve=oe("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ce(Me,Se,Pe){return Me.highWaterMark!=null?Me.highWaterMark:Se?Me[Pe]:null}function we(Me,Se,Pe,me){var xe=ce(Se,me,Pe);if(xe!=null){if(!(isFinite(xe)&&Math.floor(xe)===xe)||xe<0){var fe=me?Pe:"highWaterMark";throw new ve(fe,xe)}return Math.floor(xe)}return Me.objectMode?16:16*1024}ze.exports={getHighWaterMark:we}},{"../../../errors":399}],412:[function(oe,ze,je){arguments[4][393][0].apply(je,arguments)},{dup:393,events:344}],413:[function(oe,ze,je){"use strict";var ve=oe("safe-buffer").Buffer,ce=ve.isEncoding||function(Ce){switch(Ce=""+Ce,Ce&&Ce.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function we(Ce){if(!Ce)return"utf8";for(var Ie;;)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(Ie)return;Ce=(""+Ce).toLowerCase(),Ie=!0}}function Me(Ce){var Ie=we(Ce);if(typeof Ie!="string"&&(ve.isEncoding===ce||!ce(Ce)))throw new Error("Unknown encoding: "+Ce);return Ie||Ce}je.StringDecoder=Se;function Se(Ce){this.encoding=Me(Ce);var Ie;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,Ie=4;break;case"utf8":this.fillLast=fe,Ie=4;break;case"base64":this.text=le,this.end=ue,Ie=3;break;default:this.write=pe,this.end=be;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ve.allocUnsafe(Ie)}Se.prototype.write=function(Ce){if(Ce.length===0)return"";var Ie,Oe;if(this.lastNeed){if(Ie=this.fillLast(Ce),Ie===void 0)return"";Oe=this.lastNeed,this.lastNeed=0}else Oe=0;return Oe<Ce.length?Ie?Ie+this.text(Ce,Oe):this.text(Ce,Oe):Ie||""},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 Pe(Ce){return Ce<=127?0:Ce>>5===6?2:Ce>>4===14?3:Ce>>3===30?4:Ce>>6===2?-1:-2}function me(Ce,Ie,Oe){var Le=Ie.length-1;if(Le<Oe)return 0;var Ne=Pe(Ie[Le]);return Ne>=0?(Ne>0&&(Ce.lastNeed=Ne-1),Ne):--Le<Oe||Ne===-2?0:(Ne=Pe(Ie[Le]),Ne>=0?(Ne>0&&(Ce.lastNeed=Ne-2),Ne):--Le<Oe||Ne===-2?0:(Ne=Pe(Ie[Le]),Ne>=0?(Ne>0&&(Ne===2?Ne=0:Ce.lastNeed=Ne-3),Ne):0))}function xe(Ce,Ie,Oe){if((Ie[0]&192)!==128)return Ce.lastNeed=0,"\uFFFD";if(Ce.lastNeed>1&&Ie.length>1){if((Ie[1]&192)!==128)return Ce.lastNeed=1,"\uFFFD";if(Ce.lastNeed>2&&Ie.length>2&&(Ie[2]&192)!==128)return Ce.lastNeed=2,"\uFFFD"}}function fe(Ce){var Ie=this.lastTotal-this.lastNeed,Oe=xe(this,Ce,Ie);if(Oe!==void 0)return Oe;if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,Ie,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,Ie,0,Ce.length),this.lastNeed-=Ce.length}function z(Ce,Ie){var Oe=me(this,Ce,Ie);if(!this.lastNeed)return Ce.toString("utf8",Ie);this.lastTotal=Oe;var Le=Ce.length-(Oe-this.lastNeed);return Ce.copy(this.lastChar,0,Le),Ce.toString("utf8",Ie,Le)}function ee(Ce){var Ie=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Ie+"\uFFFD":Ie}function ae(Ce,Ie){if((Ce.length-Ie)%2===0){var Oe=Ce.toString("utf16le",Ie);if(Oe){var Le=Oe.charCodeAt(Oe.length-1);if(Le>=55296&&Le<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1],Oe.slice(0,-1)}return Oe}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ce[Ce.length-1],Ce.toString("utf16le",Ie,Ce.length-1)}function re(Ce){var Ie=Ce&&Ce.length?this.write(Ce):"";if(this.lastNeed){var Oe=this.lastTotal-this.lastNeed;return Ie+this.lastChar.toString("utf16le",0,Oe)}return Ie}function le(Ce,Ie){var Oe=(Ce.length-Ie)%3;return Oe===0?Ce.toString("base64",Ie):(this.lastNeed=3-Oe,this.lastTotal=3,Oe===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",Ie,Ce.length-Oe))}function ue(Ce){var Ie=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Ie+this.lastChar.toString("base64",0,3-this.lastNeed):Ie}function pe(Ce){return Ce.toString(this.encoding)}function be(Ce){return Ce&&Ce.length?this.write(Ce):""}},{"safe-buffer":396}],414:[function(oe,ze,je){(function(ve,ce){(function(){var we=oe("process/browser.js").nextTick,Me=Function.prototype.apply,Se=Array.prototype.slice,Pe={},me=0;je.setTimeout=function(){return new xe(Me.call(setTimeout,window,arguments),clearTimeout)},je.setInterval=function(){return new xe(Me.call(setInterval,window,arguments),clearInterval)},je.clearTimeout=je.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)},je.enroll=function(fe,z){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=z},je.unenroll=function(fe){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=-1},je._unrefActive=je.active=function(fe){clearTimeout(fe._idleTimeoutId);var z=fe._idleTimeout;z>=0&&(fe._idleTimeoutId=setTimeout(function(){fe._onTimeout&&fe._onTimeout()},z))},je.setImmediate=typeof ve=="function"?ve:function(fe){var z=me++,ee=arguments.length<2?!1:Se.call(arguments,1);return Pe[z]=!0,we(function(){Pe[z]&&(ee?fe.apply(null,ee):fe.call(null),je.clearImmediate(z))}),z},je.clearImmediate=typeof ce=="function"?ce:function(fe){delete Pe[fe]}}).call(this)}).call(this,oe("timers").setImmediate,oe("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(oe,ze,je){var ve=oe("buffer").Buffer;ze.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(ve.isBuffer(ce)){for(var we=new Uint8Array(ce.length),Me=ce.length,Se=0;Se<Me;Se++)we[Se]=ce[Se];return we.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(oe,ze,je){(function(ve){(function(){ze.exports=ce;function ce(Me,Se){if(we("noDeprecation"))return Me;var Pe=!1;function me(){if(!Pe){if(we("throwDeprecation"))throw new Error(Se);we("traceDeprecation")?console.trace(Se):console.warn(Se),Pe=!0}return Me.apply(this,arguments)}return me}function we(Me){try{if(!ve.localStorage)return!1}catch(Pe){return!1}var Se=ve.localStorage[Me];return Se==null?!1:String(Se).toLowerCase()==="true"}}).call(this)}).call(this,typeof Pn!="undefined"?Pn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(oe,ze,je){arguments[4][84][0].apply(je,arguments)},{dup:84}],418:[function(oe,ze,je){"use strict";var ve=oe("is-arguments"),ce=oe("is-generator-function"),we=oe("which-typed-array"),Me=oe("is-typed-array");function Se(tt){return tt.call.bind(tt)}var Pe=typeof BigInt!="undefined",me=typeof Symbol!="undefined",xe=Se(Object.prototype.toString),fe=Se(Number.prototype.valueOf),z=Se(String.prototype.valueOf),ee=Se(Boolean.prototype.valueOf);if(Pe)var ae=Se(BigInt.prototype.valueOf);if(me)var re=Se(Symbol.prototype.valueOf);function le(tt,We){if(typeof tt!="object")return!1;try{return We(tt),!0}catch(Be){return!1}}je.isArgumentsObject=ve,je.isGeneratorFunction=ce,je.isTypedArray=Me;function ue(tt){return typeof Promise!="undefined"&&tt instanceof Promise||tt!==null&&typeof tt=="object"&&typeof tt.then=="function"&&typeof tt.catch=="function"}je.isPromise=ue;function pe(tt){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(tt):Me(tt)||yt(tt)}je.isArrayBufferView=pe;function be(tt){return we(tt)==="Uint8Array"}je.isUint8Array=be;function Ce(tt){return we(tt)==="Uint8ClampedArray"}je.isUint8ClampedArray=Ce;function Ie(tt){return we(tt)==="Uint16Array"}je.isUint16Array=Ie;function Oe(tt){return we(tt)==="Uint32Array"}je.isUint32Array=Oe;function Le(tt){return we(tt)==="Int8Array"}je.isInt8Array=Le;function Ne(tt){return we(tt)==="Int16Array"}je.isInt16Array=Ne;function De(tt){return we(tt)==="Int32Array"}je.isInt32Array=De;function Re(tt){return we(tt)==="Float32Array"}je.isFloat32Array=Re;function Je(tt){return we(tt)==="Float64Array"}je.isFloat64Array=Je;function _e(tt){return we(tt)==="BigInt64Array"}je.isBigInt64Array=_e;function Ve(tt){return we(tt)==="BigUint64Array"}je.isBigUint64Array=Ve;function Qe(tt){return xe(tt)==="[object Map]"}Qe.working=typeof Map!="undefined"&&Qe(new Map);function ut(tt){return typeof Map=="undefined"?!1:Qe.working?Qe(tt):tt instanceof Map}je.isMap=ut;function dt(tt){return xe(tt)==="[object Set]"}dt.working=typeof Set!="undefined"&&dt(new Set);function St(tt){return typeof Set=="undefined"?!1:dt.working?dt(tt):tt instanceof Set}je.isSet=St;function qe(tt){return xe(tt)==="[object WeakMap]"}qe.working=typeof WeakMap!="undefined"&&qe(new WeakMap);function it(tt){return typeof WeakMap=="undefined"?!1:qe.working?qe(tt):tt instanceof WeakMap}je.isWeakMap=it;function pt(tt){return xe(tt)==="[object WeakSet]"}pt.working=typeof WeakSet!="undefined"&&pt(new WeakSet);function wt(tt){return pt(tt)}je.isWeakSet=wt;function xt(tt){return xe(tt)==="[object ArrayBuffer]"}xt.working=typeof ArrayBuffer!="undefined"&&xt(new ArrayBuffer);function ft(tt){return typeof ArrayBuffer=="undefined"?!1:xt.working?xt(tt):tt instanceof ArrayBuffer}je.isArrayBuffer=ft;function mt(tt){return xe(tt)==="[object DataView]"}mt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&mt(new DataView(new ArrayBuffer(1),0,1));function yt(tt){return typeof DataView=="undefined"?!1:mt.working?mt(tt):tt instanceof DataView}je.isDataView=yt;var It=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function kt(tt){return xe(tt)==="[object SharedArrayBuffer]"}function Ut(tt){return typeof It=="undefined"?!1:(typeof kt.working=="undefined"&&(kt.working=kt(new It)),kt.working?kt(tt):tt instanceof It)}je.isSharedArrayBuffer=Ut;function Pt(tt){return xe(tt)==="[object AsyncFunction]"}je.isAsyncFunction=Pt;function Ct(tt){return xe(tt)==="[object Map Iterator]"}je.isMapIterator=Ct;function st(tt){return xe(tt)==="[object Set Iterator]"}je.isSetIterator=st;function bt(tt){return xe(tt)==="[object Generator]"}je.isGeneratorObject=bt;function at(tt){return xe(tt)==="[object WebAssembly.Module]"}je.isWebAssemblyCompiledModule=at;function ct(tt){return le(tt,fe)}je.isNumberObject=ct;function Lt(tt){return le(tt,z)}je.isStringObject=Lt;function vt(tt){return le(tt,ee)}je.isBooleanObject=vt;function nt(tt){return Pe&&le(tt,ae)}je.isBigIntObject=nt;function Xe(tt){return me&&le(tt,re)}je.isSymbolObject=Xe;function Ue(tt){return ct(tt)||Lt(tt)||vt(tt)||nt(tt)||Xe(tt)}je.isBoxedPrimitive=Ue;function $e(tt){return typeof Uint8Array!="undefined"&&(ft(tt)||Ut(tt))}je.isAnyArrayBuffer=$e,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(tt){Object.defineProperty(je,tt,{enumerable:!1,value:function(){throw new Error(tt+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(oe,ze,je){(function(ve){(function(){var ce=Object.getOwnPropertyDescriptors||function(It){for(var kt=Object.keys(It),Ut={},Pt=0;Pt<kt.length;Pt++)Ut[kt[Pt]]=Object.getOwnPropertyDescriptor(It,kt[Pt]);return Ut},we=/%[sdj%]/g;je.format=function(yt){if(!Ne(yt)){for(var It=[],kt=0;kt<arguments.length;kt++)It.push(me(arguments[kt]));return It.join(" ")}for(var kt=1,Ut=arguments,Pt=Ut.length,Ct=String(yt).replace(we,function(bt){if(bt==="%%")return"%";if(kt>=Pt)return bt;switch(bt){case"%s":return String(Ut[kt++]);case"%d":return Number(Ut[kt++]);case"%j":try{return JSON.stringify(Ut[kt++])}catch(at){return"[Circular]"}default:return bt}}),st=Ut[kt];kt<Pt;st=Ut[++kt])Ie(st)||!_e(st)?Ct+=" "+st:Ct+=" "+me(st);return Ct},je.deprecate=function(yt,It){if(typeof ve!="undefined"&&ve.noDeprecation===!0)return yt;if(typeof ve=="undefined")return function(){return je.deprecate(yt,It).apply(this,arguments)};var kt=!1;function Ut(){if(!kt){if(ve.throwDeprecation)throw new Error(It);ve.traceDeprecation?console.trace(It):console.error(It),kt=!0}return yt.apply(this,arguments)}return Ut};var Me={},Se=/^$/;if(ve.env.NODE_DEBUG){var Pe=ve.env.NODE_DEBUG;Pe=Pe.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Se=new RegExp("^"+Pe+"$","i")}je.debuglog=function(yt){if(yt=yt.toUpperCase(),!Me[yt])if(Se.test(yt)){var It=ve.pid;Me[yt]=function(){var kt=je.format.apply(je,arguments);console.error("%s %d: %s",yt,It,kt)}}else Me[yt]=function(){};return Me[yt]};function me(yt,It){var kt={seen:[],stylize:fe};return arguments.length>=3&&(kt.depth=arguments[2]),arguments.length>=4&&(kt.colors=arguments[3]),Ce(It)?kt.showHidden=It:It&&je._extend(kt,It),Re(kt.showHidden)&&(kt.showHidden=!1),Re(kt.depth)&&(kt.depth=2),Re(kt.colors)&&(kt.colors=!1),Re(kt.customInspect)&&(kt.customInspect=!0),kt.colors&&(kt.stylize=xe),ee(kt,yt,kt.depth)}je.inspect=me,me.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},me.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function xe(yt,It){var kt=me.styles[It];return kt?"\x1B["+me.colors[kt][0]+"m"+yt+"\x1B["+me.colors[kt][1]+"m":yt}function fe(yt,It){return yt}function z(yt){var It={};return yt.forEach(function(kt,Ut){It[kt]=!0}),It}function ee(yt,It,kt){if(yt.customInspect&&It&&ut(It.inspect)&&It.inspect!==je.inspect&&!(It.constructor&&It.constructor.prototype===It)){var Ut=It.inspect(kt,yt);return Ne(Ut)||(Ut=ee(yt,Ut,kt)),Ut}var Pt=ae(yt,It);if(Pt)return Pt;var Ct=Object.keys(It),st=z(Ct);if(yt.showHidden&&(Ct=Object.getOwnPropertyNames(It)),Qe(It)&&(Ct.indexOf("message")>=0||Ct.indexOf("description")>=0))return re(It);if(Ct.length===0){if(ut(It)){var bt=It.name?": "+It.name:"";return yt.stylize("[Function"+bt+"]","special")}if(Je(It))return yt.stylize(RegExp.prototype.toString.call(It),"regexp");if(Ve(It))return yt.stylize(Date.prototype.toString.call(It),"date");if(Qe(It))return re(It)}var at="",ct=!1,Lt=["{","}"];if(be(It)&&(ct=!0,Lt=["[","]"]),ut(It)){var vt=It.name?": "+It.name:"";at=" [Function"+vt+"]"}if(Je(It)&&(at=" "+RegExp.prototype.toString.call(It)),Ve(It)&&(at=" "+Date.prototype.toUTCString.call(It)),Qe(It)&&(at=" "+re(It)),Ct.length===0&&(!ct||It.length==0))return Lt[0]+at+Lt[1];if(kt<0)return Je(It)?yt.stylize(RegExp.prototype.toString.call(It),"regexp"):yt.stylize("[Object]","special");yt.seen.push(It);var nt;return ct?nt=le(yt,It,kt,st,Ct):nt=Ct.map(function(Xe){return ue(yt,It,kt,st,Xe,ct)}),yt.seen.pop(),pe(nt,at,Lt)}function ae(yt,It){if(Re(It))return yt.stylize("undefined","undefined");if(Ne(It)){var kt="'"+JSON.stringify(It).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return yt.stylize(kt,"string")}if(Le(It))return yt.stylize(""+It,"number");if(Ce(It))return yt.stylize(""+It,"boolean");if(Ie(It))return yt.stylize("null","null")}function re(yt){return"["+Error.prototype.toString.call(yt)+"]"}function le(yt,It,kt,Ut,Pt){for(var Ct=[],st=0,bt=It.length;st<bt;++st)wt(It,String(st))?Ct.push(ue(yt,It,kt,Ut,String(st),!0)):Ct.push("");return Pt.forEach(function(at){at.match(/^\d+$/)||Ct.push(ue(yt,It,kt,Ut,at,!0))}),Ct}function ue(yt,It,kt,Ut,Pt,Ct){var st,bt,at;if(at=Object.getOwnPropertyDescriptor(It,Pt)||{value:It[Pt]},at.get?at.set?bt=yt.stylize("[Getter/Setter]","special"):bt=yt.stylize("[Getter]","special"):at.set&&(bt=yt.stylize("[Setter]","special")),wt(Ut,Pt)||(st="["+Pt+"]"),bt||(yt.seen.indexOf(at.value)<0?(Ie(kt)?bt=ee(yt,at.value,null):bt=ee(yt,at.value,kt-1),bt.indexOf(`
|
|
|
`)>-1&&(Ct?bt=bt.split(`
|
|
|
`).map(function(ct){return" "+ct}).join(`
|
|
|
`).slice(2):bt=`
|
|
|
`+bt.split(`
|
|
|
`).map(function(ct){return" "+ct}).join(`
|
|
|
`))):bt=yt.stylize("[Circular]","special")),Re(st)){if(Ct&&Pt.match(/^\d+$/))return bt;st=JSON.stringify(""+Pt),st.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(st=st.slice(1,-1),st=yt.stylize(st,"name")):(st=st.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),st=yt.stylize(st,"string"))}return st+": "+bt}function pe(yt,It,kt){var Ut=0,Pt=yt.reduce(function(Ct,st){return Ut++,st.indexOf(`
|
|
|
`)>=0&&Ut++,Ct+st.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Pt>60?kt[0]+(It===""?"":It+`
|
|
|
`)+" "+yt.join(`,
|
|
|
`)+" "+kt[1]:kt[0]+It+" "+yt.join(", ")+" "+kt[1]}je.types=oe("./support/types");function be(yt){return Array.isArray(yt)}je.isArray=be;function Ce(yt){return typeof yt=="boolean"}je.isBoolean=Ce;function Ie(yt){return yt===null}je.isNull=Ie;function Oe(yt){return yt==null}je.isNullOrUndefined=Oe;function Le(yt){return typeof yt=="number"}je.isNumber=Le;function Ne(yt){return typeof yt=="string"}je.isString=Ne;function De(yt){return typeof yt=="symbol"}je.isSymbol=De;function Re(yt){return yt===void 0}je.isUndefined=Re;function Je(yt){return _e(yt)&&St(yt)==="[object RegExp]"}je.isRegExp=Je,je.types.isRegExp=Je;function _e(yt){return typeof yt=="object"&&yt!==null}je.isObject=_e;function Ve(yt){return _e(yt)&&St(yt)==="[object Date]"}je.isDate=Ve,je.types.isDate=Ve;function Qe(yt){return _e(yt)&&(St(yt)==="[object Error]"||yt instanceof Error)}je.isError=Qe,je.types.isNativeError=Qe;function ut(yt){return typeof yt=="function"}je.isFunction=ut;function dt(yt){return yt===null||typeof yt=="boolean"||typeof yt=="number"||typeof yt=="string"||typeof yt=="symbol"||typeof yt=="undefined"}je.isPrimitive=dt,je.isBuffer=oe("./support/isBuffer");function St(yt){return Object.prototype.toString.call(yt)}function qe(yt){return yt<10?"0"+yt.toString(10):yt.toString(10)}var it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pt(){var yt=new Date,It=[qe(yt.getHours()),qe(yt.getMinutes()),qe(yt.getSeconds())].join(":");return[yt.getDate(),it[yt.getMonth()],It].join(" ")}je.log=function(){console.log("%s - %s",pt(),je.format.apply(je,arguments))},je.inherits=oe("inherits"),je._extend=function(yt,It){if(!It||!_e(It))return yt;for(var kt=Object.keys(It),Ut=kt.length;Ut--;)yt[kt[Ut]]=It[kt[Ut]];return yt};function wt(yt,It){return Object.prototype.hasOwnProperty.call(yt,It)}var xt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;je.promisify=function(It){if(typeof It!="function")throw new TypeError('The "original" argument must be of type Function');if(xt&&It[xt]){var kt=It[xt];if(typeof kt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(kt,xt,{value:kt,enumerable:!1,writable:!1,configurable:!0}),kt}function kt(){for(var Ut,Pt,Ct=new Promise(function(at,ct){Ut=at,Pt=ct}),st=[],bt=0;bt<arguments.length;bt++)st.push(arguments[bt]);st.push(function(at,ct){at?Pt(at):Ut(ct)});try{It.apply(this,st)}catch(at){Pt(at)}return Ct}return Object.setPrototypeOf(kt,Object.getPrototypeOf(It)),xt&&Object.defineProperty(kt,xt,{value:kt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(kt,ce(It))},je.promisify.custom=xt;function ft(yt,It){if(!yt){var kt=new Error("Promise was rejected with a falsy value");kt.reason=yt,yt=kt}return It(yt)}function mt(yt){if(typeof yt!="function")throw new TypeError('The "original" argument must be of type Function');function It(){for(var kt=[],Ut=0;Ut<arguments.length;Ut++)kt.push(arguments[Ut]);var Pt=kt.pop();if(typeof Pt!="function")throw new TypeError("The last argument must be of type Function");var Ct=this,st=function(){return Pt.apply(Ct,arguments)};yt.apply(this,kt).then(function(bt){ve.nextTick(st.bind(null,null,bt))},function(bt){ve.nextTick(ft.bind(null,bt,st))})}return Object.setPrototypeOf(It,Object.getPrototypeOf(yt)),Object.defineProperties(It,ce(yt)),It}je.callbackify=mt}).call(this)}).call(this,oe("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(oe,ze,je){(function(ve){(function(){"use strict";var ce=oe("for-each"),we=oe("available-typed-arrays"),Me=oe("call-bind"),Se=oe("call-bind/callBound"),Pe=oe("gopd"),me=Se("Object.prototype.toString"),xe=oe("has-tostringtag/shams")(),fe=typeof globalThis=="undefined"?ve:globalThis,z=we(),ee=Se("String.prototype.slice"),ae=Object.getPrototypeOf,re=Se("Array.prototype.indexOf",!0)||function(Ce,Ie){for(var Oe=0;Oe<Ce.length;Oe+=1)if(Ce[Oe]===Ie)return Oe;return-1},le={__proto__:null};xe&&Pe&&ae?ce(z,function(be){var Ce=new fe[be];if(Symbol.toStringTag in Ce){var Ie=ae(Ce),Oe=Pe(Ie,Symbol.toStringTag);if(!Oe){var Le=ae(Ie);Oe=Pe(Le,Symbol.toStringTag)}le["$"+be]=Me(Oe.get)}}):ce(z,function(be){var Ce=new fe[be];le["$"+be]=Me(Ce.slice)});var ue=function(Ce){var Ie=!1;return ce(le,function(Oe,Le){if(!Ie)try{"$"+Oe(Ce)===Le&&(Ie=ee(Le,1))}catch(Ne){}}),Ie},pe=function(Ce){var Ie=!1;return ce(le,function(Oe,Le){if(!Ie)try{Oe(Ce),Ie=ee(Le,1)}catch(Ne){}}),Ie};ze.exports=function(Ce){if(!Ce||typeof Ce!="object")return!1;if(!xe){var Ie=ee(me(Ce),8,-1);return re(z,Ie)>-1?Ie:Ie!=="Object"?!1:pe(Ce)}return Pe?ue(Ce):null}}).call(this)}).call(this,typeof Pn!="undefined"?Pn: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,ze,je){(function(){"use strict";je.stripBOM=function(ve){return ve[0]==="\uFEFF"?ve.substring(1):ve}}).call(this)},{}],422:[function(oe,ze,je){(function(){"use strict";var ve,ce,we,Me,Se,Pe={}.hasOwnProperty;ve=oe("xmlbuilder"),ce=oe("./defaults").defaults,Me=function(me){return typeof me=="string"&&(me.indexOf("&")>=0||me.indexOf(">")>=0||me.indexOf("<")>=0)},Se=function(me){return"<![CDATA["+we(me)+"]]>"},we=function(me){return me.replace("]]>","]]]]><![CDATA[>")},je.Builder=function(){function me(xe){var fe,z,ee;this.options={},z=ce["0.2"];for(fe in z)Pe.call(z,fe)&&(ee=z[fe],this.options[fe]=ee);for(fe in xe)Pe.call(xe,fe)&&(ee=xe[fe],this.options[fe]=ee)}return me.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,Ie,Oe,Le,Ne;if(typeof pe!="object")le.options.cdata&&Me(pe)?ue.raw(Se(pe)):ue.txt(pe);else if(Array.isArray(pe)){for(Oe in pe)if(Pe.call(pe,Oe)){Ce=pe[Oe];for(Le in Ce)Ie=Ce[Le],ue=ee(ue.ele(Le),Ie).up()}}else for(Le in pe)if(Pe.call(pe,Le))if(Ce=pe[Le],Le===fe){if(typeof Ce=="object")for(be in Ce)Ne=Ce[be],ue=ue.att(be,Ne)}else if(Le===z)le.options.cdata&&Me(Ce)?ue=ue.raw(Se(Ce)):ue=ue.txt(Ce);else if(Array.isArray(Ce))for(Oe in Ce)Pe.call(Ce,Oe)&&(Ie=Ce[Oe],typeof Ie=="string"?le.options.cdata&&Me(Ie)?ue=ue.ele(Le).raw(Se(Ie)).up():ue=ue.ele(Le,Ie).up():ue=ee(ue.ele(Le),Ie).up());else typeof Ce=="object"?ue=ee(ue.ele(Le),Ce).up():typeof Ce=="string"&&le.options.cdata&&Me(Ce)?ue=ue.ele(Le).raw(Se(Ce)).up():(Ce==null&&(Ce=""),ue=ue.ele(Le,Ce.toString()).up());return ue}}(this),ae=ve.create(re,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ee(ae,xe).end(this.options.renderOpts)},me}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(oe,ze,je){(function(){je.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,ze,je){(function(){"use strict";var ve,ce,we,Me,Se,Pe,me,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"),Me=oe("events"),ve=oe("./bom"),me=oe("./processors"),fe=oe("timers").setImmediate,ce=oe("./defaults").defaults,Se=function(re){return typeof re=="object"&&re!=null&&Object.keys(re).length===0},Pe=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)},je.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 je.Parser))return new je.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(me.normalize)),this.reset()}return le.prototype.processAsync=function(){var ue,pe;try{return this.remaining.length<=this.options.chunkSize?(ue=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ue),this.saxParser.close()):(ue=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ue),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(Ie){return function(Oe){if(Ie.saxParser.resume(),!Ie.saxParser.errThrown)return Ie.saxParser.errThrown=!0,Ie.emit("error",Oe)}}(this),this.saxParser.onend=function(Ie){return function(){if(!Ie.saxParser.ended)return Ie.saxParser.ended=!0,Ie.emit("end",Ie.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(Ie){return function(Oe){var Le,Ne,De,Re,Je;if(De={},De[pe]="",!Ie.options.ignoreAttrs){Je=Oe.attributes;for(Le in Je)ae.call(Je,Le)&&(!(ue in De)&&!Ie.options.mergeAttrs&&(De[ue]={}),Ne=Ie.options.attrValueProcessors?Pe(Ie.options.attrValueProcessors,Oe.attributes[Le],Le):Oe.attributes[Le],Re=Ie.options.attrNameProcessors?Pe(Ie.options.attrNameProcessors,Le):Le,Ie.options.mergeAttrs?Ie.assignOrPush(De,Re,Ne):we(De[ue],Re,Ne))}return De["#name"]=Ie.options.tagNameProcessors?Pe(Ie.options.tagNameProcessors,Oe.name):Oe.name,Ie.options.xmlns&&(De[Ie.options.xmlnskey]={uri:Oe.uri,local:Oe.local}),Ce.push(De)}}(this),this.saxParser.onclosetag=function(Ie){return function(){var Oe,Le,Ne,De,Re,Je,_e,Ve,Qe,ut;if(Je=Ce.pop(),Re=Je["#name"],(!Ie.options.explicitChildren||!Ie.options.preserveChildrenOrder)&&delete Je["#name"],Je.cdata===!0&&(Oe=Je.cdata,delete Je.cdata),Qe=Ce[Ce.length-1],Je[pe].match(/^\s*$/)&&!Oe?(Le=Je[pe],delete Je[pe]):(Ie.options.trim&&(Je[pe]=Je[pe].trim()),Ie.options.normalize&&(Je[pe]=Je[pe].replace(/\s{2,}/g," ").trim()),Je[pe]=Ie.options.valueProcessors?Pe(Ie.options.valueProcessors,Je[pe],Re):Je[pe],Object.keys(Je).length===1&&pe in Je&&!Ie.EXPLICIT_CHARKEY&&(Je=Je[pe])),Se(Je)&&(typeof Ie.options.emptyTag=="function"?Je=Ie.options.emptyTag():Je=Ie.options.emptyTag!==""?Ie.options.emptyTag:Le),Ie.options.validator!=null&&(ut="/"+function(){var dt,St,qe;for(qe=[],dt=0,St=Ce.length;dt<St;dt++)De=Ce[dt],qe.push(De["#name"]);return qe}().concat(Re).join("/"),function(){var dt;try{return Je=Ie.options.validator(ut,Qe&&Qe[Re],Je)}catch(St){return dt=St,Ie.emit("error",dt)}}()),Ie.options.explicitChildren&&!Ie.options.mergeAttrs&&typeof Je=="object"){if(!Ie.options.preserveChildrenOrder)De={},Ie.options.attrkey in Je&&(De[Ie.options.attrkey]=Je[Ie.options.attrkey],delete Je[Ie.options.attrkey]),!Ie.options.charsAsChildren&&Ie.options.charkey in Je&&(De[Ie.options.charkey]=Je[Ie.options.charkey],delete Je[Ie.options.charkey]),Object.getOwnPropertyNames(Je).length>0&&(De[Ie.options.childkey]=Je),Je=De;else if(Qe){Qe[Ie.options.childkey]=Qe[Ie.options.childkey]||[],_e={};for(Ne in Je)ae.call(Je,Ne)&&we(_e,Ne,Je[Ne]);Qe[Ie.options.childkey].push(_e),delete Je["#name"],Object.keys(Je).length===1&&pe in Je&&!Ie.EXPLICIT_CHARKEY&&(Je=Je[pe])}}return Ce.length>0?Ie.assignOrPush(Qe,Re,Je):(Ie.options.explicitRoot&&(Ve=Je,Je={},we(Je,Re,Ve)),Ie.resultObject=Je,Ie.saxParser.ended=!0,Ie.emit("end",Ie.resultObject))}}(this),be=function(Ie){return function(Oe){var Le,Ne;if(Ne=Ce[Ce.length-1],Ne)return Ne[pe]+=Oe,Ie.options.explicitChildren&&Ie.options.preserveChildrenOrder&&Ie.options.charsAsChildren&&(Ie.options.includeWhiteChars||Oe.replace(/\\n/g,"").trim()!=="")&&(Ne[Ie.options.childkey]=Ne[Ie.options.childkey]||[],Le={"#name":"__text__"},Le[pe]=Oe,Ie.options.normalize&&(Le[pe]=Le[pe].replace(/\s{2,}/g," ").trim()),Ne[Ie.options.childkey].push(Le)),Ne}}(this),this.saxParser.ontext=be,this.saxParser.oncdata=function(Ie){return function(Oe){var Le;if(Le=be(Oe),Le)return Le.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=ve.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(Ie,Oe){return Ie?Ce(Ie):be(Oe)})}}(this))},le}(Me),je.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 je.Parser(be),Ce.parseString(re,pe)},je.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new je.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(oe,ze,je){(function(){"use strict";var ve;ve=new RegExp(/(?!xmlns)^.*:/),je.normalize=function(ce){return ce.toLowerCase()},je.firstCharLowerCase=function(ce){return ce.charAt(0).toLowerCase()+ce.slice(1)},je.stripPrefix=function(ce){return ce.replace(ve,"")},je.parseNumbers=function(ce){return isNaN(ce)||(ce=ce%1===0?parseInt(ce,10):parseFloat(ce)),ce},je.parseBooleans=function(ce){return/^(?:true|false)$/i.test(ce)&&(ce=ce.toLowerCase()==="true"),ce}}).call(this)},{}],426:[function(oe,ze,je){(function(){"use strict";var ve,ce,we,Me,Se=function(me,xe){for(var fe in xe)Pe.call(xe,fe)&&(me[fe]=xe[fe]);function z(){this.constructor=me}return z.prototype=xe.prototype,me.prototype=new z,me.__super__=xe.prototype,me},Pe={}.hasOwnProperty;ce=oe("./defaults"),ve=oe("./builder"),we=oe("./parser"),Me=oe("./processors"),je.defaults=ce.defaults,je.processors=Me,je.ValidationError=function(me){Se(xe,me);function xe(fe){this.message=fe}return xe}(Error),je.Builder=ve.Builder,je.Parser=we.Parser,je.parseString=we.parseString,je.parseStringPromise=we.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(oe,ze,je){(function(){ze.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(oe,ze,je){(function(){ze.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,ze,je){(function(){var ve,ce,we,Me,Se,Pe,me,xe=[].slice,fe={}.hasOwnProperty;ve=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]"},Pe=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]"},Me=function(z){var ee;if(we(z))return!z.length;for(ee in z)if(fe.call(z,ee))return!1;return!0},me=function(z){var ee,ae;return Pe(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},ze.exports.assign=ve,ze.exports.isFunction=Se,ze.exports.isObject=Pe,ze.exports.isArray=we,ze.exports.isEmpty=Me,ze.exports.isPlainObject=me,ze.exports.getValue=ce}).call(this)},{}],430:[function(oe,ze,je){(function(){ze.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(oe,ze,je){(function(){var ve,ce,we;ve=oe("./NodeType"),we=oe("./XMLNode"),ze.exports=ce=function(){function Me(Se,Pe,me){if(this.parent=Se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),Pe==null)throw new Error("Missing attribute name. "+this.debugInfo(Pe));this.name=this.stringify.name(Pe),this.value=this.stringify.attValue(me),this.type=ve.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(Me.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Me.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(Me.prototype,"textContent",{get:function(){return this.value},set:function(Se){return this.value=Se||""}}),Object.defineProperty(Me.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Me.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Me.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Me.prototype,"specified",{get:function(){return!0}}),Me.prototype.clone=function(){return Object.create(this)},Me.prototype.toString=function(Se){return this.options.writer.attribute(this,this.options.writer.filterOptions(Se))},Me.prototype.debugInfo=function(Se){return Se=Se||this.name,Se==null?"parent: <"+this.parent.name+">":"attribute: {"+Se+"}, parent: <"+this.parent.name+">"},Me.prototype.isEqualNode=function(Se){return!(Se.namespaceURI!==this.namespaceURI||Se.prefix!==this.prefix||Se.localName!==this.localName||Se.value!==this.value)},Me}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(oe,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;ve=oe("./NodeType"),we=oe("./XMLCharacterData"),ze.exports=ce=function(Pe){Me(me,Pe);function me(xe,fe){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ve.CData,this.value=this.stringify.cdata(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.cdata(this,this.options.writer.filterOptions(xe))},me}(we)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(oe,ze,je){(function(){var ve,ce,we=function(Se,Pe){for(var me in Pe)Me.call(Pe,me)&&(Se[me]=Pe[me]);function xe(){this.constructor=Se}return xe.prototype=Pe.prototype,Se.prototype=new xe,Se.__super__=Pe.prototype,Se},Me={}.hasOwnProperty;ce=oe("./XMLNode"),ze.exports=ve=function(Se){we(Pe,Se);function Pe(me){Pe.__super__.constructor.call(this,me),this.value=""}return Object.defineProperty(Pe.prototype,"data",{get:function(){return this.value},set:function(me){return this.value=me||""}}),Object.defineProperty(Pe.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Pe.prototype,"textContent",{get:function(){return this.value},set:function(me){return this.value=me||""}}),Pe.prototype.clone=function(){return Object.create(this)},Pe.prototype.substringData=function(me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Pe.prototype.appendData=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Pe.prototype.insertData=function(me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Pe.prototype.deleteData=function(me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Pe.prototype.replaceData=function(me,xe,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Pe.prototype.isEqualNode=function(me){return!(!Pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.data!==this.data)},Pe}(ce)}).call(this)},{"./XMLNode":450}],434:[function(oe,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;ve=oe("./NodeType"),ce=oe("./XMLCharacterData"),ze.exports=we=function(Pe){Me(me,Pe);function me(xe,fe){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ve.Comment,this.value=this.stringify.comment(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.comment(this,this.options.writer.filterOptions(xe))},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(oe,ze,je){(function(){var ve,ce,we;ce=oe("./XMLDOMErrorHandler"),we=oe("./XMLDOMStringList"),ze.exports=ve=function(){function Me(){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(Me.prototype,"parameterNames",{get:function(){return new we(Object.keys(this.defaultParams))}}),Me.prototype.getParameter=function(Se){return this.params.hasOwnProperty(Se)?this.params[Se]:null},Me.prototype.canSetParameter=function(Se,Pe){return!0},Me.prototype.setParameter=function(Se,Pe){return Pe!=null?this.params[Se]=Pe:delete this.params[Se]},Me}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(oe,ze,je){(function(){var ve;ze.exports=ve=function(){function ce(){}return ce.prototype.handleError=function(we){throw new Error(we)},ce}()}).call(this)},{}],437:[function(oe,ze,je){(function(){var ve;ze.exports=ve=function(){function ce(){}return ce.prototype.hasFeature=function(we,Me){return!0},ce.prototype.createDocumentType=function(we,Me,Se){throw new Error("This DOM method is not implemented.")},ce.prototype.createDocument=function(we,Me,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,Me){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],438:[function(oe,ze,je){(function(){var ve;ze.exports=ve=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,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;we=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=ce=function(Pe){Me(me,Pe);function me(xe,fe,z,ee,ae,re){if(me.__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=ve.AttributeDeclaration,this.attributeName=this.stringify.name(z),this.attributeType=this.stringify.dtdAttType(ee),re&&(this.defaultValue=this.stringify.dtdAttDefault(re)),this.defaultValueType=ae}return me.prototype.toString=function(xe){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(xe))},me}(we)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(oe,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;we=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=ce=function(Pe){Me(me,Pe);function me(xe,fe,z){if(me.__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=ve.ElementDeclaration,this.value=this.stringify.dtdElementValue(z)}return me.prototype.toString=function(xe){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(xe))},me}(we)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(oe,ze,je){(function(){var ve,ce,we,Me,Se=function(me,xe){for(var fe in xe)Pe.call(xe,fe)&&(me[fe]=xe[fe]);function z(){this.constructor=me}return z.prototype=xe.prototype,me.prototype=new z,me.__super__=xe.prototype,me},Pe={}.hasOwnProperty;Me=oe("./Utility").isObject,we=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=ce=function(me){Se(xe,me);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=ve.EntityDeclaration,!Me(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,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;we=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=ce=function(Pe){Me(me,Pe);function me(xe,fe,z){if(me.__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=ve.NotationDeclaration,z.pubID!=null&&(this.pubID=this.stringify.dtdPubID(z.pubID)),z.sysID!=null&&(this.sysID=this.stringify.dtdSysID(z.sysID))}return Object.defineProperty(me.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(me.prototype,"systemId",{get:function(){return this.sysID}}),me.prototype.toString=function(xe){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(xe))},me}(we)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(oe,ze,je){(function(){var ve,ce,we,Me,Se=function(me,xe){for(var fe in xe)Pe.call(xe,fe)&&(me[fe]=xe[fe]);function z(){this.constructor=me}return z.prototype=xe.prototype,me.prototype=new z,me.__super__=xe.prototype,me},Pe={}.hasOwnProperty;Me=oe("./Utility").isObject,we=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=ce=function(me){Se(xe,me);function xe(fe,z,ee,ae){var re;xe.__super__.constructor.call(this,fe),Me(z)&&(re=z,z=re.version,ee=re.encoding,ae=re.standalone),z||(z="1.0"),this.type=ve.Declaration,this.version=this.stringify.xmlVersion(z),ee!=null&&(this.encoding=this.stringify.xmlEncoding(ee)),ae!=null&&(this.standalone=this.stringify.xmlStandalone(ae))}return 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,ze,je){(function(){var ve,ce,we,Me,Se,Pe,me,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"),ve=oe("./NodeType"),ce=oe("./XMLDTDAttList"),Me=oe("./XMLDTDEntity"),we=oe("./XMLDTDElement"),Se=oe("./XMLDTDNotation"),me=oe("./XMLNamedNodeMap"),ze.exports=Pe=function(ae){z(re,ae);function re(le,ue,pe){var be,Ce,Ie,Oe,Le,Ne;if(re.__super__.constructor.call(this,le),this.type=ve.DocType,le.children){for(Oe=le.children,Ce=0,Ie=Oe.length;Ce<Ie;Ce++)if(be=Oe[Ce],be.type===ve.Element){this.name=be.name;break}}this.documentObject=le,fe(ue)&&(Le=ue,ue=Le.pubID,pe=Le.sysID),pe==null&&(Ne=[ue,pe],pe=Ne[0],ue=Ne[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===ve.EntityDeclaration&&!le.pe&&(be[le.name]=le);return new me(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===ve.NotationDeclaration&&(be[le.name]=le);return new me(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 Ie;return Ie=new ce(this,le,ue,pe,be,Ce),this.children.push(Ie),this},re.prototype.entity=function(le,ue){var pe;return pe=new Me(this,!1,le,ue),this.children.push(pe),this},re.prototype.pEntity=function(le,ue){var pe;return pe=new Me(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,ze,je){(function(){var ve,ce,we,Me,Se,Pe,me,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"),ve=oe("./NodeType"),me=oe("./XMLStringifier"),Pe=oe("./XMLStringWriter"),ze.exports=Me=function(ee){fe(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=ve.Document,this.documentURI=null,this.domConfig=new ce,re||(re={}),re.writer||(re.writer=new Pe),this.options=re,this.stringify=new me(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===ve.DocType)return re;return null}}),Object.defineProperty(ae.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ae.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ae.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ae.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ae.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ae.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ae.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ae.prototype,"contentType",{get:function(){return null}}),ae.prototype.end=function(re){var le;return le={},re?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,ze,je){(function(){var ve,ce,we,Me,Se,Pe,me,xe,fe,z,ee,ae,re,le,ue,pe,be,Ce,Ie,Oe,Le,Ne,De,Re,Je={}.hasOwnProperty;Re=oe("./Utility"),Ne=Re.isObject,Le=Re.isFunction,De=Re.isPlainObject,Oe=Re.getValue,ve=oe("./NodeType"),ae=oe("./XMLDocument"),le=oe("./XMLElement"),Me=oe("./XMLCData"),Se=oe("./XMLComment"),pe=oe("./XMLRaw"),Ie=oe("./XMLText"),ue=oe("./XMLProcessingInstruction"),z=oe("./XMLDeclaration"),ee=oe("./XMLDocType"),Pe=oe("./XMLDTDAttList"),xe=oe("./XMLDTDEntity"),me=oe("./XMLDTDElement"),fe=oe("./XMLDTDNotation"),we=oe("./XMLAttribute"),Ce=oe("./XMLStringifier"),be=oe("./XMLStringWriter"),ce=oe("./WriterState"),ze.exports=re=function(){function _e(Ve,Qe,ut){var dt;this.name="?xml",this.type=ve.Document,Ve||(Ve={}),dt={},Ve.writer?De(Ve.writer)&&(dt=Ve.writer,Ve.writer=new be):Ve.writer=new be,this.options=Ve,this.writer=Ve.writer,this.writerOptions=this.writer.filterOptions(dt),this.stringify=new Ce(Ve),this.onDataCallback=Qe||function(){},this.onEndCallback=ut||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return _e.prototype.createChildNode=function(Ve){var Qe,ut,dt,St,qe,it,pt,wt;switch(Ve.type){case ve.CData:this.cdata(Ve.value);break;case ve.Comment:this.comment(Ve.value);break;case ve.Element:dt={},pt=Ve.attribs;for(ut in pt)Je.call(pt,ut)&&(Qe=pt[ut],dt[ut]=Qe.value);this.node(Ve.name,dt);break;case ve.Dummy:this.dummy();break;case ve.Raw:this.raw(Ve.value);break;case ve.Text:this.text(Ve.value);break;case ve.ProcessingInstruction:this.instruction(Ve.target,Ve.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Ve.constructor.name)}for(wt=Ve.children,qe=0,it=wt.length;qe<it;qe++)St=wt[qe],this.createChildNode(St),St.type===ve.Element&&this.up();return this},_e.prototype.dummy=function(){return this},_e.prototype.node=function(Ve,Qe,ut){var dt;if(Ve==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(Ve));return this.openCurrent(),Ve=Oe(Ve),Qe==null&&(Qe={}),Qe=Oe(Qe),Ne(Qe)||(dt=[Qe,ut],ut=dt[0],Qe=dt[1]),this.currentNode=new le(this,Ve,Qe),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ut!=null&&this.text(ut),this},_e.prototype.element=function(Ve,Qe,ut){var dt,St,qe,it,pt,wt;if(this.currentNode&&this.currentNode.type===ve.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Ve)||Ne(Ve)||Le(Ve))for(it=this.options.noValidation,this.options.noValidation=!0,wt=new ae(this.options).element("TEMP_ROOT"),wt.element(Ve),this.options.noValidation=it,pt=wt.children,St=0,qe=pt.length;St<qe;St++)dt=pt[St],this.createChildNode(dt),dt.type===ve.Element&&this.up();else this.node(Ve,Qe,ut);return this},_e.prototype.attribute=function(Ve,Qe){var ut,dt;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Ve));if(Ve!=null&&(Ve=Oe(Ve)),Ne(Ve))for(ut in Ve)Je.call(Ve,ut)&&(dt=Ve[ut],this.attribute(ut,dt));else Le(Qe)&&(Qe=Qe.apply()),this.options.keepNullAttributes&&Qe==null?this.currentNode.attribs[Ve]=new we(this,Ve,""):Qe!=null&&(this.currentNode.attribs[Ve]=new we(this,Ve,Qe));return this},_e.prototype.text=function(Ve){var Qe;return this.openCurrent(),Qe=new Ie(this,Ve),this.onData(this.writer.text(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.cdata=function(Ve){var Qe;return this.openCurrent(),Qe=new Me(this,Ve),this.onData(this.writer.cdata(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.comment=function(Ve){var Qe;return this.openCurrent(),Qe=new Se(this,Ve),this.onData(this.writer.comment(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.raw=function(Ve){var Qe;return this.openCurrent(),Qe=new pe(this,Ve),this.onData(this.writer.raw(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.instruction=function(Ve,Qe){var ut,dt,St,qe,it;if(this.openCurrent(),Ve!=null&&(Ve=Oe(Ve)),Qe!=null&&(Qe=Oe(Qe)),Array.isArray(Ve))for(ut=0,qe=Ve.length;ut<qe;ut++)dt=Ve[ut],this.instruction(dt);else if(Ne(Ve))for(dt in Ve)Je.call(Ve,dt)&&(St=Ve[dt],this.instruction(dt,St));else Le(Qe)&&(Qe=Qe.apply()),it=new ue(this,Ve,Qe),this.onData(this.writer.processingInstruction(it,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},_e.prototype.declaration=function(Ve,Qe,ut){var dt;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return dt=new z(this,Ve,Qe,ut),this.onData(this.writer.declaration(dt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.doctype=function(Ve,Qe,ut){if(this.openCurrent(),Ve==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,ut),this.currentNode.rootNodeName=Ve,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},_e.prototype.dtdElement=function(Ve,Qe){var ut;return this.openCurrent(),ut=new me(this,Ve,Qe),this.onData(this.writer.dtdElement(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.attList=function(Ve,Qe,ut,dt,St){var qe;return this.openCurrent(),qe=new Pe(this,Ve,Qe,ut,dt,St),this.onData(this.writer.dtdAttList(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.entity=function(Ve,Qe){var ut;return this.openCurrent(),ut=new xe(this,!1,Ve,Qe),this.onData(this.writer.dtdEntity(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.pEntity=function(Ve,Qe){var ut;return this.openCurrent(),ut=new xe(this,!0,Ve,Qe),this.onData(this.writer.dtdEntity(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.notation=function(Ve,Qe){var ut;return this.openCurrent(),ut=new fe(this,Ve,Qe),this.onData(this.writer.dtdNotation(ut,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.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},_e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},_e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},_e.prototype.openNode=function(Ve){var Qe,ut,dt,St;if(!Ve.isOpen){if(!this.root&&this.currentLevel===0&&Ve.type===ve.Element&&(this.root=Ve),ut="",Ve.type===ve.Element){this.writerOptions.state=ce.OpenTag,ut=this.writer.indent(Ve,this.writerOptions,this.currentLevel)+"<"+Ve.name,St=Ve.attribs;for(dt in St)Je.call(St,dt)&&(Qe=St[dt],ut+=this.writer.attribute(Qe,this.writerOptions,this.currentLevel));ut+=(Ve.children?">":"/>")+this.writer.endline(Ve,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.InsideTag}else this.writerOptions.state=ce.OpenTag,ut=this.writer.indent(Ve,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Ve.rootNodeName,Ve.pubID&&Ve.sysID?ut+=' PUBLIC "'+Ve.pubID+'" "'+Ve.sysID+'"':Ve.sysID&&(ut+=' SYSTEM "'+Ve.sysID+'"'),Ve.children?(ut+=" [",this.writerOptions.state=ce.InsideTag):(this.writerOptions.state=ce.CloseTag,ut+=">"),ut+=this.writer.endline(Ve,this.writerOptions,this.currentLevel);return this.onData(ut,this.currentLevel),Ve.isOpen=!0}},_e.prototype.closeNode=function(Ve){var Qe;if(!Ve.isClosed)return Qe="",this.writerOptions.state=ce.CloseTag,Ve.type===ve.Element?Qe=this.writer.indent(Ve,this.writerOptions,this.currentLevel)+"</"+Ve.name+">"+this.writer.endline(Ve,this.writerOptions,this.currentLevel):Qe=this.writer.indent(Ve,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ve,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.None,this.onData(Qe,this.currentLevel),Ve.isClosed=!0},_e.prototype.onData=function(Ve,Qe){return this.documentStarted=!0,this.onDataCallback(Ve,Qe+1)},_e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},_e.prototype.debugInfo=function(Ve){return Ve==null?"":"node: <"+Ve+">"},_e.prototype.ele=function(){return this.element.apply(this,arguments)},_e.prototype.nod=function(Ve,Qe,ut){return this.node(Ve,Qe,ut)},_e.prototype.txt=function(Ve){return this.text(Ve)},_e.prototype.dat=function(Ve){return this.cdata(Ve)},_e.prototype.com=function(Ve){return this.comment(Ve)},_e.prototype.ins=function(Ve,Qe){return this.instruction(Ve,Qe)},_e.prototype.dec=function(Ve,Qe,ut){return this.declaration(Ve,Qe,ut)},_e.prototype.dtd=function(Ve,Qe,ut){return this.doctype(Ve,Qe,ut)},_e.prototype.e=function(Ve,Qe,ut){return this.element(Ve,Qe,ut)},_e.prototype.n=function(Ve,Qe,ut){return this.node(Ve,Qe,ut)},_e.prototype.t=function(Ve){return this.text(Ve)},_e.prototype.d=function(Ve){return this.cdata(Ve)},_e.prototype.c=function(Ve){return this.comment(Ve)},_e.prototype.r=function(Ve){return this.raw(Ve)},_e.prototype.i=function(Ve,Qe){return this.instruction(Ve,Qe)},_e.prototype.att=function(){return this.currentNode&&this.currentNode.type===ve.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_e.prototype.a=function(){return this.currentNode&&this.currentNode.type===ve.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_e.prototype.ent=function(Ve,Qe){return this.entity(Ve,Qe)},_e.prototype.pent=function(Ve,Qe){return this.pEntity(Ve,Qe)},_e.prototype.not=function(Ve,Qe){return this.notation(Ve,Qe)},_e}()}).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,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;we=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=ce=function(Pe){Me(me,Pe);function me(xe){me.__super__.constructor.call(this,xe),this.type=ve.Dummy}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return""},me}(we)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(oe,ze,je){(function(){var ve,ce,we,Me,Se,Pe,me,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,me=fe.isFunction,Pe=fe.getValue,Se=oe("./XMLNode"),ve=oe("./NodeType"),ce=oe("./XMLAttribute"),Me=oe("./XMLNamedNodeMap"),ze.exports=we=function(ae){z(re,ae);function re(le,ue,pe){var be,Ce,Ie,Oe;if(re.__super__.constructor.call(this,le),ue==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ue),this.type=ve.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===ve.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(Oe=le.children,Ce=0,Ie=Oe.length;Ce<Ie;Ce++)if(be=Oe[Ce],be.type===ve.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 Me(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 Ie;return Ie=Ce.clone(),Ie.parent=pe,pe.children.push(Ie)}),pe},re.prototype.attribute=function(le,ue){var pe,be;if(le!=null&&(le=Pe(le)),xe(le))for(pe in le)ee.call(le,pe)&&(be=le[pe],this.attribute(pe,be));else me(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=Pe(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,ze,je){(function(){var ve;ze.exports=ve=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 Me;return Me=this.nodes[we.nodeName],this.nodes[we.nodeName]=we,Me||null},ce.prototype.removeNamedItem=function(we){var Me;return Me=this.nodes[we],delete this.nodes[we],Me||null},ce.prototype.item=function(we){return this.nodes[Object.keys(this.nodes)[we]]||null},ce.prototype.getNamedItemNS=function(we,Me){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,Me){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],450:[function(oe,ze,je){(function(){var ve,ce,we,Me,Se,Pe,me,xe,fe,z,ee,ae,re,le,ue,pe,be,Ce,Ie,Oe={}.hasOwnProperty;Ie=oe("./Utility"),Ce=Ie.isObject,be=Ie.isFunction,pe=Ie.isEmpty,ue=Ie.getValue,xe=null,we=null,Me=null,Se=null,Pe=null,re=null,le=null,ae=null,me=null,ce=null,ee=null,fe=null,ve=null,ze.exports=z=function(){function Le(Ne){this.parent=Ne,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"),Me=oe("./XMLComment"),Se=oe("./XMLDeclaration"),Pe=oe("./XMLDocType"),re=oe("./XMLRaw"),le=oe("./XMLText"),ae=oe("./XMLProcessingInstruction"),me=oe("./XMLDummy"),ce=oe("./NodeType"),ee=oe("./XMLNodeList"),fe=oe("./XMLNamedNodeMap"),ve=oe("./DocumentPosition"))}return Object.defineProperty(Le.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Le.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Le.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Le.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Le.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ee(this.children)),this.childNodeList}}),Object.defineProperty(Le.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Le.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Le.prototype,"previousSibling",{get:function(){var Ne;return Ne=this.parent.children.indexOf(this),this.parent.children[Ne-1]||null}}),Object.defineProperty(Le.prototype,"nextSibling",{get:function(){var Ne;return Ne=this.parent.children.indexOf(this),this.parent.children[Ne+1]||null}}),Object.defineProperty(Le.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Le.prototype,"textContent",{get:function(){var Ne,De,Re,Je,_e;if(this.nodeType===ce.Element||this.nodeType===ce.DocumentFragment){for(_e="",Je=this.children,De=0,Re=Je.length;De<Re;De++)Ne=Je[De],Ne.textContent&&(_e+=Ne.textContent);return _e}else return null},set:function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Le.prototype.setParent=function(Ne){var De,Re,Je,_e,Ve;for(this.parent=Ne,Ne&&(this.options=Ne.options,this.stringify=Ne.stringify),_e=this.children,Ve=[],Re=0,Je=_e.length;Re<Je;Re++)De=_e[Re],Ve.push(De.setParent(this));return Ve},Le.prototype.element=function(Ne,De,Re){var Je,_e,Ve,Qe,ut,dt,St,qe,it,pt,wt;if(dt=null,De===null&&Re==null&&(it=[{},null],De=it[0],Re=it[1]),De==null&&(De={}),De=ue(De),Ce(De)||(pt=[De,Re],Re=pt[0],De=pt[1]),Ne!=null&&(Ne=ue(Ne)),Array.isArray(Ne))for(Ve=0,St=Ne.length;Ve<St;Ve++)_e=Ne[Ve],dt=this.element(_e);else if(be(Ne))dt=this.element(Ne.apply());else if(Ce(Ne)){for(ut in Ne)if(Oe.call(Ne,ut))if(wt=Ne[ut],be(wt)&&(wt=wt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ut.indexOf(this.stringify.convertAttKey)===0)dt=this.attribute(ut.substr(this.stringify.convertAttKey.length),wt);else if(!this.options.separateArrayItems&&Array.isArray(wt)&&pe(wt))dt=this.dummy();else if(Ce(wt)&&pe(wt))dt=this.element(ut);else if(!this.options.keepNullNodes&&wt==null)dt=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(wt))for(Qe=0,qe=wt.length;Qe<qe;Qe++)_e=wt[Qe],Je={},Je[ut]=_e,dt=this.element(Je);else Ce(wt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ut.indexOf(this.stringify.convertTextKey)===0?dt=this.element(wt):(dt=this.element(ut),dt.element(wt)):dt=this.element(ut,wt)}else!this.options.keepNullNodes&&Re===null?dt=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ne.indexOf(this.stringify.convertTextKey)===0?dt=this.text(Re):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ne.indexOf(this.stringify.convertCDataKey)===0?dt=this.cdata(Re):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ne.indexOf(this.stringify.convertCommentKey)===0?dt=this.comment(Re):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ne.indexOf(this.stringify.convertRawKey)===0?dt=this.raw(Re):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ne.indexOf(this.stringify.convertPIKey)===0?dt=this.instruction(Ne.substr(this.stringify.convertPIKey.length),Re):dt=this.node(Ne,De,Re);if(dt==null)throw new Error("Could not create any elements with: "+Ne+". "+this.debugInfo());return dt},Le.prototype.insertBefore=function(Ne,De,Re){var Je,_e,Ve,Qe,ut;if(Ne!=null&&Ne.type)return Ve=Ne,Qe=De,Ve.setParent(this),Qe?(_e=children.indexOf(Qe),ut=children.splice(_e),children.push(Ve),Array.prototype.push.apply(children,ut)):children.push(Ve),Ve;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ne));return _e=this.parent.children.indexOf(this),ut=this.parent.children.splice(_e),Je=this.parent.element(Ne,De,Re),Array.prototype.push.apply(this.parent.children,ut),Je},Le.prototype.insertAfter=function(Ne,De,Re){var Je,_e,Ve;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ne));return _e=this.parent.children.indexOf(this),Ve=this.parent.children.splice(_e+1),Je=this.parent.element(Ne,De,Re),Array.prototype.push.apply(this.parent.children,Ve),Je},Le.prototype.remove=function(){var Ne,De;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ne=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ne,Ne-Ne+1].concat(De=[])),this.parent},Le.prototype.node=function(Ne,De,Re){var Je,_e;return Ne!=null&&(Ne=ue(Ne)),De||(De={}),De=ue(De),Ce(De)||(_e=[De,Re],Re=_e[0],De=_e[1]),Je=new xe(this,Ne,De),Re!=null&&Je.text(Re),this.children.push(Je),Je},Le.prototype.text=function(Ne){var De;return Ce(Ne)&&this.element(Ne),De=new le(this,Ne),this.children.push(De),this},Le.prototype.cdata=function(Ne){var De;return De=new we(this,Ne),this.children.push(De),this},Le.prototype.comment=function(Ne){var De;return De=new Me(this,Ne),this.children.push(De),this},Le.prototype.commentBefore=function(Ne){var De,Re,Je;return Re=this.parent.children.indexOf(this),Je=this.parent.children.splice(Re),De=this.parent.comment(Ne),Array.prototype.push.apply(this.parent.children,Je),this},Le.prototype.commentAfter=function(Ne){var De,Re,Je;return Re=this.parent.children.indexOf(this),Je=this.parent.children.splice(Re+1),De=this.parent.comment(Ne),Array.prototype.push.apply(this.parent.children,Je),this},Le.prototype.raw=function(Ne){var De;return De=new re(this,Ne),this.children.push(De),this},Le.prototype.dummy=function(){var Ne;return Ne=new me(this),Ne},Le.prototype.instruction=function(Ne,De){var Re,Je,_e,Ve,Qe;if(Ne!=null&&(Ne=ue(Ne)),De!=null&&(De=ue(De)),Array.isArray(Ne))for(Ve=0,Qe=Ne.length;Ve<Qe;Ve++)Re=Ne[Ve],this.instruction(Re);else if(Ce(Ne))for(Re in Ne)Oe.call(Ne,Re)&&(Je=Ne[Re],this.instruction(Re,Je));else be(De)&&(De=De.apply()),_e=new ae(this,Ne,De),this.children.push(_e);return this},Le.prototype.instructionBefore=function(Ne,De){var Re,Je,_e;return Je=this.parent.children.indexOf(this),_e=this.parent.children.splice(Je),Re=this.parent.instruction(Ne,De),Array.prototype.push.apply(this.parent.children,_e),this},Le.prototype.instructionAfter=function(Ne,De){var Re,Je,_e;return Je=this.parent.children.indexOf(this),_e=this.parent.children.splice(Je+1),Re=this.parent.instruction(Ne,De),Array.prototype.push.apply(this.parent.children,_e),this},Le.prototype.declaration=function(Ne,De,Re){var Je,_e;return Je=this.document(),_e=new Se(Je,Ne,De,Re),Je.children.length===0?Je.children.unshift(_e):Je.children[0].type===ce.Declaration?Je.children[0]=_e:Je.children.unshift(_e),Je.root()||Je},Le.prototype.dtd=function(Ne,De){var Re,Je,_e,Ve,Qe,ut,dt,St,qe,it;for(Je=this.document(),_e=new Pe(Je,Ne,De),qe=Je.children,Ve=Qe=0,dt=qe.length;Qe<dt;Ve=++Qe)if(Re=qe[Ve],Re.type===ce.DocType)return Je.children[Ve]=_e,_e;for(it=Je.children,Ve=ut=0,St=it.length;ut<St;Ve=++ut)if(Re=it[Ve],Re.isRoot)return Je.children.splice(Ve,0,_e),_e;return Je.children.push(_e),_e},Le.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},Le.prototype.root=function(){var Ne;for(Ne=this;Ne;){if(Ne.type===ce.Document)return Ne.rootObject;if(Ne.isRoot)return Ne;Ne=Ne.parent}},Le.prototype.document=function(){var Ne;for(Ne=this;Ne;){if(Ne.type===ce.Document)return Ne;Ne=Ne.parent}},Le.prototype.end=function(Ne){return this.document().end(Ne)},Le.prototype.prev=function(){var Ne;if(Ne=this.parent.children.indexOf(this),Ne<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ne-1]},Le.prototype.next=function(){var Ne;if(Ne=this.parent.children.indexOf(this),Ne===-1||Ne===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ne+1]},Le.prototype.importDocument=function(Ne){var De;return De=Ne.root().clone(),De.parent=this,De.isRoot=!1,this.children.push(De),this},Le.prototype.debugInfo=function(Ne){var De,Re;return Ne=Ne||this.name,Ne==null&&!((De=this.parent)!=null&&De.name)?"":Ne==null?"parent: <"+this.parent.name+">":(Re=this.parent)!=null&&Re.name?"node: <"+Ne+">, parent: <"+this.parent.name+">":"node: <"+Ne+">"},Le.prototype.ele=function(Ne,De,Re){return this.element(Ne,De,Re)},Le.prototype.nod=function(Ne,De,Re){return this.node(Ne,De,Re)},Le.prototype.txt=function(Ne){return this.text(Ne)},Le.prototype.dat=function(Ne){return this.cdata(Ne)},Le.prototype.com=function(Ne){return this.comment(Ne)},Le.prototype.ins=function(Ne,De){return this.instruction(Ne,De)},Le.prototype.doc=function(){return this.document()},Le.prototype.dec=function(Ne,De,Re){return this.declaration(Ne,De,Re)},Le.prototype.e=function(Ne,De,Re){return this.element(Ne,De,Re)},Le.prototype.n=function(Ne,De,Re){return this.node(Ne,De,Re)},Le.prototype.t=function(Ne){return this.text(Ne)},Le.prototype.d=function(Ne){return this.cdata(Ne)},Le.prototype.c=function(Ne){return this.comment(Ne)},Le.prototype.r=function(Ne){return this.raw(Ne)},Le.prototype.i=function(Ne,De){return this.instruction(Ne,De)},Le.prototype.u=function(){return this.up()},Le.prototype.importXMLBuilder=function(Ne){return this.importDocument(Ne)},Le.prototype.replaceChild=function(Ne,De){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.removeChild=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.appendChild=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.hasChildNodes=function(){return this.children.length!==0},Le.prototype.cloneNode=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.isSupported=function(Ne,De){return!0},Le.prototype.hasAttributes=function(){return this.attribs.length!==0},Le.prototype.compareDocumentPosition=function(Ne){var De,Re;return De=this,De===Ne?0:this.document()!==Ne.document()?(Re=ve.Disconnected|ve.ImplementationSpecific,Math.random()<.5?Re|=ve.Preceding:Re|=ve.Following,Re):De.isAncestor(Ne)?ve.Contains|ve.Preceding:De.isDescendant(Ne)?ve.Contains|ve.Following:De.isPreceding(Ne)?ve.Preceding:ve.Following},Le.prototype.isSameNode=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.lookupPrefix=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.isDefaultNamespace=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.lookupNamespaceURI=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.isEqualNode=function(Ne){var De,Re,Je;if(Ne.nodeType!==this.nodeType||Ne.children.length!==this.children.length)return!1;for(De=Re=0,Je=this.children.length-1;0<=Je?Re<=Je:Re>=Je;De=0<=Je?++Re:--Re)if(!this.children[De].isEqualNode(Ne.children[De]))return!1;return!0},Le.prototype.getFeature=function(Ne,De){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.setUserData=function(Ne,De,Re){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.getUserData=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.contains=function(Ne){return Ne?Ne===this||this.isDescendant(Ne):!1},Le.prototype.isDescendant=function(Ne){var De,Re,Je,_e,Ve;for(Ve=this.children,Je=0,_e=Ve.length;Je<_e;Je++)if(De=Ve[Je],Ne===De||(Re=De.isDescendant(Ne),Re))return!0;return!1},Le.prototype.isAncestor=function(Ne){return Ne.isDescendant(this)},Le.prototype.isPreceding=function(Ne){var De,Re;return De=this.treePosition(Ne),Re=this.treePosition(this),De===-1||Re===-1?!1:De<Re},Le.prototype.isFollowing=function(Ne){var De,Re;return De=this.treePosition(Ne),Re=this.treePosition(this),De===-1||Re===-1?!1:De>Re},Le.prototype.treePosition=function(Ne){var De,Re;return Re=0,De=!1,this.foreachTreeNode(this.document(),function(Je){if(Re++,!De&&Je===Ne)return De=!0}),De?Re:-1},Le.prototype.foreachTreeNode=function(Ne,De){var Re,Je,_e,Ve,Qe;for(Ne||(Ne=this.document()),Ve=Ne.children,Je=0,_e=Ve.length;Je<_e;Je++){if(Re=Ve[Je],Qe=De(Re))return Qe;if(Qe=this.foreachTreeNode(Re,De),Qe)return Qe}},Le}()}).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,ze,je){(function(){var ve;ze.exports=ve=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,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;ve=oe("./NodeType"),ce=oe("./XMLCharacterData"),ze.exports=we=function(Pe){Me(me,Pe);function me(xe,fe,z){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ve.ProcessingInstruction,this.target=this.stringify.insTarget(fe),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(xe))},me.prototype.isEqualNode=function(xe){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.target!==this.target)},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(oe,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;ve=oe("./NodeType"),ce=oe("./XMLNode"),ze.exports=we=function(Pe){Me(me,Pe);function me(xe,fe){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ve.Raw,this.value=this.stringify.raw(fe)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.raw(this,this.options.writer.filterOptions(xe))},me}(ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(oe,ze,je){(function(){var ve,ce,we,Me,Se=function(me,xe){for(var fe in xe)Pe.call(xe,fe)&&(me[fe]=xe[fe]);function z(){this.constructor=me}return z.prototype=xe.prototype,me.prototype=new z,me.__super__=xe.prototype,me},Pe={}.hasOwnProperty;ve=oe("./NodeType"),Me=oe("./XMLWriterBase"),ce=oe("./WriterState"),ze.exports=we=function(me){Se(xe,me);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,Ie;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,Ie=[],le=0,pe=Ce.length;le<pe;le++)ee=Ce[le],Ie.push(this.writeChildNode(ee,z,0));return Ie},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,Ie,Oe,Le;ee||(ee=0),this.openNode(fe,z,ee),z.state=ce.OpenTag,this.stream.write(this.indent(fe,z,ee)+"<"+fe.name),Oe=fe.attribs;for(Ce in Oe)Pe.call(Oe,Ce)&&(ae=Oe[Ce],this.attribute(ae,z,ee));if(le=fe.children.length,ue=le===0?null:fe.children[0],le===0||fe.children.every(function(Ne){return(Ne.type===ve.Text||Ne.type===ve.Raw)&&Ne.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===ve.Text||ue.type===ve.Raw)&&ue.value!=null)this.stream.write(">"),z.state=ce.InsideTag,z.suppressPrettyCount++,Ie=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,Ie=!1,z.state=ce.CloseTag,this.stream.write("</"+fe.name+">");else{for(this.stream.write(">"+this.endline(fe,z,ee)),z.state=ce.InsideTag,Le=fe.children,pe=0,be=Le.length;pe<be;pe++)re=Le[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}(Me)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(oe,ze,je){(function(){var ve,ce,we=function(Se,Pe){for(var me in Pe)Me.call(Pe,me)&&(Se[me]=Pe[me]);function xe(){this.constructor=Se}return xe.prototype=Pe.prototype,Se.prototype=new xe,Se.__super__=Pe.prototype,Se},Me={}.hasOwnProperty;ce=oe("./XMLWriterBase"),ze.exports=ve=function(Se){we(Pe,Se);function Pe(me){Pe.__super__.constructor.call(this,me)}return Pe.prototype.document=function(me,xe){var fe,z,ee,ae,re;for(xe=this.filterOptions(xe),ae="",re=me.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},Pe}(ce)}).call(this)},{"./XMLWriterBase":458}],456:[function(oe,ze,je){(function(){var ve,ce=function(Me,Se){return function(){return Me.apply(Se,arguments)}},we={}.hasOwnProperty;ze.exports=ve=function(){function Me(Se){this.assertLegalName=ce(this.assertLegalName,this),this.assertLegalChar=ce(this.assertLegalChar,this);var Pe,me,xe;Se||(Se={}),this.options=Se,this.options.version||(this.options.version="1.0"),me=Se.stringify||{};for(Pe in me)we.call(me,Pe)&&(xe=me[Pe],this[Pe]=xe)}return Me.prototype.name=function(Se){return this.options.noValidation?Se:this.assertLegalName(""+Se||"")},Me.prototype.text=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.textEscape(""+Se||""))},Me.prototype.cdata=function(Se){return this.options.noValidation?Se:(Se=""+Se||"",Se=Se.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(Se))},Me.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)},Me.prototype.raw=function(Se){return this.options.noValidation?Se:""+Se||""},Me.prototype.attValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.attEscape(Se=""+Se||""))},Me.prototype.insTarget=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Me.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)},Me.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},Me.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)},Me.prototype.xmlStandalone=function(Se){return this.options.noValidation?Se:Se?"yes":"no"},Me.prototype.dtdPubID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Me.prototype.dtdSysID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Me.prototype.dtdElementValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Me.prototype.dtdAttType=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Me.prototype.dtdAttDefault=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Me.prototype.dtdEntityValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Me.prototype.dtdNData=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Me.prototype.convertAttKey="@",Me.prototype.convertPIKey="?",Me.prototype.convertTextKey="#text",Me.prototype.convertCDataKey="#cdata",Me.prototype.convertCommentKey="#comment",Me.prototype.convertRawKey="#raw",Me.prototype.assertLegalChar=function(Se){var Pe,me;if(this.options.noValidation)return Se;if(Pe="",this.options.version==="1.0"){if(Pe=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=Se.match(Pe))throw new Error("Invalid character in string: "+Se+" at index "+me.index)}else if(this.options.version==="1.1"&&(Pe=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=Se.match(Pe)))throw new Error("Invalid character in string: "+Se+" at index "+me.index);return Se},Me.prototype.assertLegalName=function(Se){var Pe;if(this.options.noValidation)return Se;if(this.assertLegalChar(Se),Pe=/^([: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(Pe))throw new Error("Invalid character in name");return Se},Me.prototype.textEscape=function(Se){var Pe;return this.options.noValidation?Se:(Pe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(Pe,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},Me.prototype.attEscape=function(Se){var Pe;return this.options.noValidation?Se:(Pe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(Pe,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},Me}()}).call(this)},{}],457:[function(oe,ze,je){(function(){var ve,ce,we,Me=function(Pe,me){for(var xe in me)Se.call(me,xe)&&(Pe[xe]=me[xe]);function fe(){this.constructor=Pe}return fe.prototype=me.prototype,Pe.prototype=new fe,Pe.__super__=me.prototype,Pe},Se={}.hasOwnProperty;ve=oe("./NodeType"),ce=oe("./XMLCharacterData"),ze.exports=we=function(Pe){Me(me,Pe);function me(xe,fe){if(me.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ve.Text,this.value=this.stringify.text(fe)}return Object.defineProperty(me.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"wholeText",{get:function(){var 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}}),me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(xe){return this.options.writer.text(this,this.options.writer.filterOptions(xe))},me.prototype.splitText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.replaceWholeText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(oe,ze,je){(function(){var ve,ce,we,Me,Se,Pe,me,xe,fe,z,ee,ae,re,le,ue,pe,be,Ce={}.hasOwnProperty;be=oe("./Utility").assign,ve=oe("./NodeType"),fe=oe("./XMLDeclaration"),z=oe("./XMLDocType"),we=oe("./XMLCData"),Me=oe("./XMLComment"),ae=oe("./XMLElement"),le=oe("./XMLRaw"),ue=oe("./XMLText"),re=oe("./XMLProcessingInstruction"),ee=oe("./XMLDummy"),Se=oe("./XMLDTDAttList"),Pe=oe("./XMLDTDElement"),me=oe("./XMLDTDEntity"),xe=oe("./XMLDTDNotation"),ce=oe("./WriterState"),ze.exports=pe=function(){function Ie(Oe){var Le,Ne,De;Oe||(Oe={}),this.options=Oe,Ne=Oe.writer||{};for(Le in Ne)Ce.call(Ne,Le)&&(De=Ne[Le],this["_"+Le]=this[Le],this[Le]=De)}return Ie.prototype.filterOptions=function(Oe){var Le,Ne,De,Re,Je,_e,Ve,Qe;return Oe||(Oe={}),Oe=be({},this.options,Oe),Le={writer:this},Le.pretty=Oe.pretty||!1,Le.allowEmpty=Oe.allowEmpty||!1,Le.indent=(Ne=Oe.indent)!=null?Ne:" ",Le.newline=(De=Oe.newline)!=null?De:`
|
|
|
`,Le.offset=(Re=Oe.offset)!=null?Re:0,Le.dontPrettyTextNodes=(Je=(_e=Oe.dontPrettyTextNodes)!=null?_e:Oe.dontprettytextnodes)!=null?Je:0,Le.spaceBeforeSlash=(Ve=(Qe=Oe.spaceBeforeSlash)!=null?Qe:Oe.spacebeforeslash)!=null?Ve:"",Le.spaceBeforeSlash===!0&&(Le.spaceBeforeSlash=" "),Le.suppressPrettyCount=0,Le.user={},Le.state=ce.None,Le},Ie.prototype.indent=function(Oe,Le,Ne){var De;return!Le.pretty||Le.suppressPrettyCount?"":Le.pretty&&(De=(Ne||0)+Le.offset+1,De>0)?new Array(De).join(Le.indent):""},Ie.prototype.endline=function(Oe,Le,Ne){return!Le.pretty||Le.suppressPrettyCount?"":Le.newline},Ie.prototype.attribute=function(Oe,Le,Ne){var De;return this.openAttribute(Oe,Le,Ne),De=" "+Oe.name+'="'+Oe.value+'"',this.closeAttribute(Oe,Le,Ne),De},Ie.prototype.cdata=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne)+"<![CDATA[",Le.state=ce.InsideTag,De+=Oe.value,Le.state=ce.CloseTag,De+="]]>"+this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.comment=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne)+"<!-- ",Le.state=ce.InsideTag,De+=Oe.value,Le.state=ce.CloseTag,De+=" -->"+this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.declaration=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne)+"<?xml",Le.state=ce.InsideTag,De+=' version="'+Oe.version+'"',Oe.encoding!=null&&(De+=' encoding="'+Oe.encoding+'"'),Oe.standalone!=null&&(De+=' standalone="'+Oe.standalone+'"'),Le.state=ce.CloseTag,De+=Le.spaceBeforeSlash+"?>",De+=this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.docType=function(Oe,Le,Ne){var De,Re,Je,_e,Ve;if(Ne||(Ne=0),this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,_e=this.indent(Oe,Le,Ne),_e+="<!DOCTYPE "+Oe.root().name,Oe.pubID&&Oe.sysID?_e+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.sysID&&(_e+=' SYSTEM "'+Oe.sysID+'"'),Oe.children.length>0){for(_e+=" [",_e+=this.endline(Oe,Le,Ne),Le.state=ce.InsideTag,Ve=Oe.children,Re=0,Je=Ve.length;Re<Je;Re++)De=Ve[Re],_e+=this.writeChildNode(De,Le,Ne+1);Le.state=ce.CloseTag,_e+="]"}return Le.state=ce.CloseTag,_e+=Le.spaceBeforeSlash+">",_e+=this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),_e},Ie.prototype.element=function(Oe,Le,Ne){var De,Re,Je,_e,Ve,Qe,ut,dt,St,qe,it,pt,wt,xt;Ne||(Ne=0),qe=!1,it="",this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,it+=this.indent(Oe,Le,Ne)+"<"+Oe.name,pt=Oe.attribs;for(St in pt)Ce.call(pt,St)&&(De=pt[St],it+=this.attribute(De,Le,Ne));if(Je=Oe.children.length,_e=Je===0?null:Oe.children[0],Je===0||Oe.children.every(function(ft){return(ft.type===ve.Text||ft.type===ve.Raw)&&ft.value===""}))Le.allowEmpty?(it+=">",Le.state=ce.CloseTag,it+="</"+Oe.name+">"+this.endline(Oe,Le,Ne)):(Le.state=ce.CloseTag,it+=Le.spaceBeforeSlash+"/>"+this.endline(Oe,Le,Ne));else if(Le.pretty&&Je===1&&(_e.type===ve.Text||_e.type===ve.Raw)&&_e.value!=null)it+=">",Le.state=ce.InsideTag,Le.suppressPrettyCount++,qe=!0,it+=this.writeChildNode(_e,Le,Ne+1),Le.suppressPrettyCount--,qe=!1,Le.state=ce.CloseTag,it+="</"+Oe.name+">"+this.endline(Oe,Le,Ne);else{if(Le.dontPrettyTextNodes){for(wt=Oe.children,Ve=0,ut=wt.length;Ve<ut;Ve++)if(Re=wt[Ve],(Re.type===ve.Text||Re.type===ve.Raw)&&Re.value!=null){Le.suppressPrettyCount++,qe=!0;break}}for(it+=">"+this.endline(Oe,Le,Ne),Le.state=ce.InsideTag,xt=Oe.children,Qe=0,dt=xt.length;Qe<dt;Qe++)Re=xt[Qe],it+=this.writeChildNode(Re,Le,Ne+1);Le.state=ce.CloseTag,it+=this.indent(Oe,Le,Ne)+"</"+Oe.name+">",qe&&Le.suppressPrettyCount--,it+=this.endline(Oe,Le,Ne),Le.state=ce.None}return this.closeNode(Oe,Le,Ne),it},Ie.prototype.writeChildNode=function(Oe,Le,Ne){switch(Oe.type){case ve.CData:return this.cdata(Oe,Le,Ne);case ve.Comment:return this.comment(Oe,Le,Ne);case ve.Element:return this.element(Oe,Le,Ne);case ve.Raw:return this.raw(Oe,Le,Ne);case ve.Text:return this.text(Oe,Le,Ne);case ve.ProcessingInstruction:return this.processingInstruction(Oe,Le,Ne);case ve.Dummy:return"";case ve.Declaration:return this.declaration(Oe,Le,Ne);case ve.DocType:return this.docType(Oe,Le,Ne);case ve.AttributeDeclaration:return this.dtdAttList(Oe,Le,Ne);case ve.ElementDeclaration:return this.dtdElement(Oe,Le,Ne);case ve.EntityDeclaration:return this.dtdEntity(Oe,Le,Ne);case ve.NotationDeclaration:return this.dtdNotation(Oe,Le,Ne);default:throw new Error("Unknown XML node type: "+Oe.constructor.name)}},Ie.prototype.processingInstruction=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne)+"<?",Le.state=ce.InsideTag,De+=Oe.target,Oe.value&&(De+=" "+Oe.value),Le.state=ce.CloseTag,De+=Le.spaceBeforeSlash+"?>",De+=this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.raw=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne),Le.state=ce.InsideTag,De+=Oe.value,Le.state=ce.CloseTag,De+=this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.text=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne),Le.state=ce.InsideTag,De+=Oe.value,Le.state=ce.CloseTag,De+=this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.dtdAttList=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne)+"<!ATTLIST",Le.state=ce.InsideTag,De+=" "+Oe.elementName+" "+Oe.attributeName+" "+Oe.attributeType,Oe.defaultValueType!=="#DEFAULT"&&(De+=" "+Oe.defaultValueType),Oe.defaultValue&&(De+=' "'+Oe.defaultValue+'"'),Le.state=ce.CloseTag,De+=Le.spaceBeforeSlash+">"+this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.dtdElement=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne)+"<!ELEMENT",Le.state=ce.InsideTag,De+=" "+Oe.name+" "+Oe.value,Le.state=ce.CloseTag,De+=Le.spaceBeforeSlash+">"+this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.dtdEntity=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne)+"<!ENTITY",Le.state=ce.InsideTag,Oe.pe&&(De+=" %"),De+=" "+Oe.name,Oe.value?De+=' "'+Oe.value+'"':(Oe.pubID&&Oe.sysID?De+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.sysID&&(De+=' SYSTEM "'+Oe.sysID+'"'),Oe.nData&&(De+=" NDATA "+Oe.nData)),Le.state=ce.CloseTag,De+=Le.spaceBeforeSlash+">"+this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.dtdNotation=function(Oe,Le,Ne){var De;return this.openNode(Oe,Le,Ne),Le.state=ce.OpenTag,De=this.indent(Oe,Le,Ne)+"<!NOTATION",Le.state=ce.InsideTag,De+=" "+Oe.name,Oe.pubID&&Oe.sysID?De+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.pubID?De+=' PUBLIC "'+Oe.pubID+'"':Oe.sysID&&(De+=' SYSTEM "'+Oe.sysID+'"'),Le.state=ce.CloseTag,De+=Le.spaceBeforeSlash+">"+this.endline(Oe,Le,Ne),Le.state=ce.None,this.closeNode(Oe,Le,Ne),De},Ie.prototype.openNode=function(Oe,Le,Ne){},Ie.prototype.closeNode=function(Oe,Le,Ne){},Ie.prototype.openAttribute=function(Oe,Le,Ne){},Ie.prototype.closeAttribute=function(Oe,Le,Ne){},Ie}()}).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,ze,je){(function(){var ve,ce,we,Me,Se,Pe,me,xe,fe,z;z=oe("./Utility"),xe=z.assign,fe=z.isFunction,we=oe("./XMLDOMImplementation"),Me=oe("./XMLDocument"),Se=oe("./XMLDocumentCB"),me=oe("./XMLStringWriter"),Pe=oe("./XMLStreamWriter"),ve=oe("./NodeType"),ce=oe("./WriterState"),ze.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 Me(le),pe=ue.element(ee),le.headless||(ue.declaration(le),(le.pubID!=null||le.sysID!=null)&&ue.dtd(le)),pe},ze.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 Me(ee)},ze.exports.stringWriter=function(ee){return new me(ee)},ze.exports.streamWriter=function(ee,ae){return new Pe(ee,ae)},ze.exports.implementation=new we,ze.exports.nodeType=ve,ze.exports.writerState=ce}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(oe,ze,je){ze.exports=ce;var ve=Object.prototype.hasOwnProperty;function ce(){for(var we={},Me=0;Me<arguments.length;Me++){var Se=arguments[Me];for(var Pe in Se)ve.call(Se,Pe)&&(we[Pe]=Se[Pe])}return we}},{}],461:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.slice.js");var ve=oe("buffer").Buffer,ce=oe("./sha"),we=oe("./md5"),Me={sha1:ce,md5:we},Se=64,Pe=ve.alloc(Se);Pe.fill(0);function me(z,ee,ae){ve.isBuffer(ee)||(ee=ve.from(ee)),ve.isBuffer(ae)||(ae=ve.from(ae)),ee.length>Se?ee=z(ee):ee.length<Se&&(ee=ve.concat([ee,Pe],Se));for(var re=ve.alloc(Se),le=ve.alloc(Se),ue=0;ue<Se;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(ve.concat([re,ae]));return z(ve.concat([le,pe]))}function xe(z,ee){z=z||"sha1";var ae=Me[z],re=[],le=0;return ae||fe("algorithm:",z,"is not yet supported"),{update:function(pe){return ve.isBuffer(pe)||(pe=ve.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var be=ve.concat(re),Ce=ee?me(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(`
|
|
|
`))}je.createHash=function(z){return xe(z)},je.createHmac=function(z,ee){return xe(z,ee)},je.createCredentials=function(){fe("sorry,createCredentials is not implemented yet")},je.createCipher=function(){fe("sorry,createCipher is not implemented yet")},je.createCipheriv=function(){fe("sorry,createCipheriv is not implemented yet")},je.createDecipher=function(){fe("sorry,createDecipher is not implemented yet")},je.createDecipheriv=function(){fe("sorry,createDecipheriv is not implemented yet")},je.createSign=function(){fe("sorry,createSign is not implemented yet")},je.createVerify=function(){fe("sorry,createVerify is not implemented yet")},je.createDiffieHellman=function(){fe("sorry,createDiffieHellman is not implemented yet")},je.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,ze,je){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js");var ve=oe("buffer").Buffer,ce=4,we=ve.alloc(ce);we.fill(0);var Me=8;function Se(xe,fe){if(xe.length%ce!==0){var z=xe.length+(ce-xe.length%ce);xe=ve.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 Pe(xe,fe,z){for(var ee=ve.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 me(xe,fe,z,ee){ve.isBuffer(xe)||(xe=ve.from(xe));var ae=fe(Se(xe,ee),xe.length*Me);return Pe(ae,z,ee)}ze.exports={hash:me}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(oe,ze,je){"use strict";var ve=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,Ie=le,Oe=ue,Le=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=Pe(re,le,ue,pe,ee[be+1],5,-165796510),pe=Pe(pe,re,le,ue,ee[be+6],9,-1069501632),ue=Pe(ue,pe,re,le,ee[be+11],14,643717713),le=Pe(le,ue,pe,re,ee[be+0],20,-373897302),re=Pe(re,le,ue,pe,ee[be+5],5,-701558691),pe=Pe(pe,re,le,ue,ee[be+10],9,38016083),ue=Pe(ue,pe,re,le,ee[be+15],14,-660478335),le=Pe(le,ue,pe,re,ee[be+4],20,-405537848),re=Pe(re,le,ue,pe,ee[be+9],5,568446438),pe=Pe(pe,re,le,ue,ee[be+14],9,-1019803690),ue=Pe(ue,pe,re,le,ee[be+3],14,-187363961),le=Pe(le,ue,pe,re,ee[be+8],20,1163531501),re=Pe(re,le,ue,pe,ee[be+13],5,-1444681467),pe=Pe(pe,re,le,ue,ee[be+2],9,-51403784),ue=Pe(ue,pe,re,le,ee[be+7],14,1735328473),le=Pe(le,ue,pe,re,ee[be+12],20,-1926607734),re=me(re,le,ue,pe,ee[be+5],4,-378558),pe=me(pe,re,le,ue,ee[be+8],11,-2022574463),ue=me(ue,pe,re,le,ee[be+11],16,1839030562),le=me(le,ue,pe,re,ee[be+14],23,-35309556),re=me(re,le,ue,pe,ee[be+1],4,-1530992060),pe=me(pe,re,le,ue,ee[be+4],11,1272893353),ue=me(ue,pe,re,le,ee[be+7],16,-155497632),le=me(le,ue,pe,re,ee[be+10],23,-1094730640),re=me(re,le,ue,pe,ee[be+13],4,681279174),pe=me(pe,re,le,ue,ee[be+0],11,-358537222),ue=me(ue,pe,re,le,ee[be+3],16,-722521979),le=me(le,ue,pe,re,ee[be+6],23,76029189),re=me(re,le,ue,pe,ee[be+9],4,-640364487),pe=me(pe,re,le,ue,ee[be+12],11,-421815835),ue=me(ue,pe,re,le,ee[be+15],16,530742520),le=me(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,Ie),ue=fe(ue,Oe),pe=fe(pe,Le)}return Array(re,le,ue,pe)}function Me(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 Me(ae&re|~ae&le,ee,ae,ue,pe,be)}function Pe(ee,ae,re,le,ue,pe,be){return Me(ae&le|re&~le,ee,ae,ue,pe,be)}function me(ee,ae,re,le,ue,pe,be){return Me(ae^re^le,ee,ae,ue,pe,be)}function xe(ee,ae,re,le,ue,pe,be){return Me(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}ze.exports=function(ae){return ve.hash(ae,we,16)}},{"./helpers":462}],464:[function(oe,ze,je){"use strict";var ve=oe("./helpers");function ce(me,xe){me[xe>>5]|=128<<24-xe%32,me[(xe+64>>9<<4)+15]=xe;for(var fe=Array(80),z=1732584193,ee=-271733879,ae=-1732584194,re=271733878,le=-1009589776,ue=0;ue<me.length;ue+=16){for(var pe=z,be=ee,Ce=ae,Ie=re,Oe=le,Le=0;Le<80;Le++){Le<16?fe[Le]=me[ue+Le]:fe[Le]=Pe(fe[Le-3]^fe[Le-8]^fe[Le-14]^fe[Le-16],1);var Ne=Se(Se(Pe(z,5),we(Le,ee,ae,re)),Se(Se(le,fe[Le]),Me(Le)));le=re,re=ae,ae=Pe(ee,30),ee=z,z=Ne}z=Se(z,pe),ee=Se(ee,be),ae=Se(ae,Ce),re=Se(re,Ie),le=Se(le,Oe)}return Array(z,ee,ae,re,le)}function we(me,xe,fe,z){return me<20?xe&fe|~xe&z:me<40?xe^fe^z:me<60?xe&fe|xe&z|fe&z:xe^fe^z}function Me(me){return me<20?1518500249:me<40?1859775393:me<60?-1894007588:-899497514}function Se(me,xe){var fe=(me&65535)+(xe&65535),z=(me>>16)+(xe>>16)+(fe>>16);return z<<16|fe&65535}function Pe(me,xe){return me<<xe|me>>>32-xe}ze.exports=function(xe){return ve.hash(xe,ce,20,!0)}},{"./helpers":462}],465:[function(oe,ze,je){"use strict";ze.exports=function(){return function(){}}},{}],466:[function(oe,ze,je){(function(ve){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),we=ce(oe("@babel/runtime/helpers/typeof")),Me=oe("stream"),Se=Me.Stream,Pe=oe("../lib/common/utils/isArray"),me=Pe.isArray;ze.exports.string=function(z){return typeof z=="string"},ze.exports.array=me,ze.exports.buffer=ve.isBuffer;function xe(fe){return fe instanceof Se}ze.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,ze,je){"use strict";var ve=oe("immediate"),ce=ze.exports={};ce.nextTick=ve,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(Me){return[]},ce.binding=function(Me){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(Me){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0}},{immediate:358}],468:[function(oe,ze,je){(function(ve){(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"),Me=oe("xtend"),Se=oe("builtin-status-codes"),Pe=oe("url"),me=je;me.request=function(xe,fe){typeof xe=="string"?xe=Pe.parse(xe):xe=Me(xe);var z=ve.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},me.get=function(fe,z){var ee=me.request(fe,z);return ee.end(),ee},me.ClientRequest=ce,me.IncomingMessage=we.IncomingMessage,me.Agent=function(){},me.Agent.defaultMaxSockets=4,me.globalAgent=new me.Agent,me.STATUS_CODES=Se,me.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Pn!="undefined"?Pn: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,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array-buffer.constructor.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.array.slice.js"),je.fetch=me(ve.fetch)&&me(ve.ReadableStream),je.writableStream=me(ve.WritableStream),je.abortController=me(ve.AbortController),je.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),je.blobConstructor=!0}catch(xe){}var ce;function we(){if(ce!==void 0)return ce;if(ve.XMLHttpRequest){ce=new ve.XMLHttpRequest;try{ce.open("GET",ve.XDomainRequest?"/":"https://example.com")}catch(xe){ce=null}}else ce=null;return ce}function Me(xe){var fe=we();if(!fe)return!1;try{return fe.responseType=xe,fe.responseType===xe}catch(z){}return!1}var Se=typeof ve.ArrayBuffer!="undefined",Pe=Se&&me(ve.ArrayBuffer.prototype.slice);je.arraybuffer=je.fetch||Se&&Me("arraybuffer"),je.msstream=!je.fetch&&Pe&&Me("ms-stream"),je.mozchunkedarraybuffer=!je.fetch&&Se&&Me("moz-chunked-arraybuffer"),je.overrideMimeType=je.fetch||(we()?me(we().overrideMimeType):!1),je.vbArray=me(ve.VBArray);function me(xe){return typeof xe=="function"}ce=null}).call(this)}).call(this,typeof Pn!="undefined"?Pn: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,ze,je){(function(ve,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 Me=oe("./capability"),Se=oe("inherits"),Pe=oe("./response"),me=oe("readable-stream"),xe=oe("to-arraybuffer"),fe=Pe.IncomingMessage,z=Pe.readyStates;function ee(ue,pe){return Me.fetch&&pe?"fetch":Me.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Me.msstream?"ms-stream":Me.arraybuffer&&ue?"arraybuffer":Me.vbArray&&ue?"text:vbarray":"text"}var ae=ze.exports=function(ue){var pe=this;me.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(Ie){pe.setHeader(Ie,ue.headers[Ie])});var be,Ce=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Me.abortController)Ce=!1,be=!0;else if(ue.mode==="prefer-streaming")be=!1;else if(ue.mode==="allow-wrong-content-type")be=!Me.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,me.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"&&(Me.arraybuffer?Ce=xe(we.concat(ue._body)):Me.blobConstructor?Ce=new ce.Blob(ue._body.map(function(Re){return xe(Re)}),{type:(be["content-type"]||{}).value||""}):Ce=we.concat(ue._body).toString());var Ie=[];if(Object.keys(be).forEach(function(Re){var Je=be[Re].name,_e=be[Re].value;Array.isArray(_e)?_e.forEach(function(Ve){Ie.push([Je,Ve])}):Ie.push([Je,_e])}),ue._mode==="fetch"){var Oe=null,Le=null;if(Me.abortController){var Ne=new AbortController;Oe=Ne.signal,ue._fetchAbortController=Ne,"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:Ie,body:Ce||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Oe}).then(function(Re){ue._fetchResponse=Re,ue._connect()},function(Re){ce.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",Re)})}else{var De=ue._xhr=new ce.XMLHttpRequest;try{De.open(ue._opts.method,ue._opts.url,!0)}catch(Re){ve.nextTick(function(){ue.emit("error",Re)});return}"responseType"in De&&(De.responseType=ue._mode.split(":")[0]),"withCredentials"in De&&(De.withCredentials=!!pe.withCredentials),ue._mode==="text"&&"overrideMimeType"in De&&De.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pe&&(De.timeout=pe.requestTimeout,De.ontimeout=function(){ue.emit("requestTimeout")}),Ie.forEach(function(Re){De.setRequestHeader(Re[0],Re[1])}),ue._response=null,De.onreadystatechange=function(){switch(De.readyState){case z.LOADING:case z.DONE:ue._onXHRProgress();break}},ue._mode==="moz-chunked-arraybuffer"&&(De.onprogress=function(){ue._onXHRProgress()}),De.onerror=function(){ue._destroyed||ue.emit("error",new Error("XHR error"))};try{De.send(Ce)}catch(Re){ve.nextTick(function(){ue.emit("error",Re)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(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),me.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 Pn!="undefined"?Pn: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,ze,je){(function(ve,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 Me=oe("./capability"),Se=oe("inherits"),Pe=oe("readable-stream"),me=je.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},xe=je.IncomingMessage=function(fe,z,ee,ae){var re=this;if(Pe.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){ve.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function Oe(){pe.read().then(function(Le){if(!re._destroyed){if(Le.done){ce.clearTimeout(ae),re.push(null);return}re.push(new we(Le.value)),Oe()}}).catch(function(Le){ce.clearTimeout(ae),re._destroyed||re.emit("error",Le)})};if(re._fetchResponse=z,re.url=z.url,re.statusCode=z.status,re.statusMessage=z.statusText,z.headers.forEach(function(Oe,Le){re.headers[Le.toLowerCase()]=Oe,re.rawHeaders.push(Le,Oe)}),Me.writableStream){var ue=new WritableStream({write:function(Le){return new Promise(function(Ne,De){re._destroyed?De():re.push(new we(Le))?Ne():re._resumeFetch=Ne})},close:function(){ce.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(Le){re._destroyed||re.emit("error",Le)}});try{z.body.pipeTo(ue).catch(function(Oe){ce.clearTimeout(ae),re._destroyed||re.emit("error",Oe)});return}catch(Oe){}}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(Oe){var Le=Oe.match(/^([^:]+):\s*(.*)/);if(Le){var Ne=Le[1].toLowerCase();Ne==="set-cookie"?(re.headers[Ne]===void 0&&(re.headers[Ne]=[]),re.headers[Ne].push(Le[2])):re.headers[Ne]!==void 0?re.headers[Ne]+=", "+Le[2]:re.headers[Ne]=Le[2],re.rawHeaders.push(Le[1],Le[2])}}),re._charset="x-user-defined",!Me.overrideMimeType){var Ce=re.rawHeaders["mime-type"];if(Ce){var Ie=Ce.match(/;\s*charset=([^;])(;|$)/);Ie&&(re._charset=Ie[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};Se(xe,Pe.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!==me.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!==me.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!==me.LOADING||!ee)break;fe.push(new we(new Uint8Array(ee)));break;case"ms-stream":if(ee=z.response,z.readyState!==me.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===me.DONE&&fe._mode!=="ms-stream"&&fe.push(null)}}).call(this)}).call(this,oe("_process"),typeof Pn!="undefined"?Pn: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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.splice.js");var we=oe("punycode"),Me=oe("./util");je.parse=Le,je.resolve=De,je.resolveObject=Re,je.format=Ne,je.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 Pe=/^([a-z0-9.+-]+:)/i,me=/:[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},Ie={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Oe=oe("querystring");function Le(Je,_e,Ve){if(Je&&Me.isObject(Je)&&Je instanceof Se)return Je;var Qe=new Se;return Qe.parse(Je,_e,Ve),Qe}Se.prototype.parse=function(Je,_e,Ve){if(!Me.isString(Je))throw new TypeError("Parameter 'url' must be a string, not "+(0,ce.default)(Je));var Qe=Je.indexOf("?"),ut=Qe!==-1&&Qe<Je.indexOf("#")?"?":"#",dt=Je.split(ut),St=/\\/g;dt[0]=dt[0].replace(St,"/"),Je=dt.join(ut);var qe=Je;if(qe=qe.trim(),!Ve&&Je.split("#").length===1){var it=xe.exec(qe);if(it)return this.path=qe,this.href=qe,this.pathname=it[1],it[2]?(this.search=it[2],_e?this.query=Oe.parse(this.search.substr(1)):this.query=this.search.substr(1)):_e&&(this.search="",this.query={}),this}var pt=Pe.exec(qe);if(pt){pt=pt[0];var wt=pt.toLowerCase();this.protocol=wt,qe=qe.substr(pt.length)}if(Ve||pt||qe.match(/^\/\/[^@\/]+@[^@\/]+/)){var xt=qe.substr(0,2)==="//";xt&&!(pt&&Ce[pt])&&(qe=qe.substr(2),this.slashes=!0)}if(!Ce[pt]&&(xt||pt&&!Ie[pt])){for(var ft=-1,mt=0;mt<re.length;mt++){var yt=qe.indexOf(re[mt]);yt!==-1&&(ft===-1||yt<ft)&&(ft=yt)}var It,kt;ft===-1?kt=qe.lastIndexOf("@"):kt=qe.lastIndexOf("@",ft),kt!==-1&&(It=qe.slice(0,kt),qe=qe.slice(kt+1),this.auth=decodeURIComponent(It)),ft=-1;for(var mt=0;mt<ae.length;mt++){var yt=qe.indexOf(ae[mt]);yt!==-1&&(ft===-1||yt<ft)&&(ft=yt)}ft===-1&&(ft=qe.length),this.host=qe.slice(0,ft),qe=qe.slice(ft),this.parseHost(),this.hostname=this.hostname||"";var Ut=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ut)for(var Pt=this.hostname.split("."),mt=0,Ct=Pt.length;mt<Ct;mt++){var st=Pt[mt];if(st&&!st.match(ue)){for(var bt="",at=0,ct=st.length;at<ct;at++)st.charCodeAt(at)>127?bt+="x":bt+=st[at];if(!bt.match(ue)){var Lt=Pt.slice(0,mt),vt=Pt.slice(mt+1),nt=st.match(pe);nt&&(Lt.push(nt[1]),vt.unshift(nt[2])),vt.length&&(qe="/"+vt.join(".")+qe),this.hostname=Lt.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ut||(this.hostname=we.toASCII(this.hostname));var Xe=this.port?":"+this.port:"",Ue=this.hostname||"";this.host=Ue+Xe,this.href+=this.host,Ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),qe[0]!=="/"&&(qe="/"+qe))}if(!be[wt])for(var mt=0,Ct=ee.length;mt<Ct;mt++){var $e=ee[mt];if(qe.indexOf($e)!==-1){var tt=encodeURIComponent($e);tt===$e&&(tt=escape($e)),qe=qe.split($e).join(tt)}}var We=qe.indexOf("#");We!==-1&&(this.hash=qe.substr(We),qe=qe.slice(0,We));var Be=qe.indexOf("?");if(Be!==-1?(this.search=qe.substr(Be),this.query=qe.substr(Be+1),_e&&(this.query=Oe.parse(this.query)),qe=qe.slice(0,Be)):_e&&(this.search="",this.query={}),qe&&(this.pathname=qe),Ie[wt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Xe=this.pathname||"",Te=this.search||"";this.path=Xe+Te}return this.href=this.format(),this};function Ne(Je){return Me.isString(Je)&&(Je=Le(Je)),Je instanceof Se?Je.format():Se.prototype.format.call(Je)}Se.prototype.format=function(){var Je=this.auth||"";Je&&(Je=encodeURIComponent(Je),Je=Je.replace(/%3A/i,":"),Je+="@");var _e=this.protocol||"",Ve=this.pathname||"",Qe=this.hash||"",ut=!1,dt="";this.host?ut=Je+this.host:this.hostname&&(ut=Je+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ut+=":"+this.port)),this.query&&Me.isObject(this.query)&&Object.keys(this.query).length&&(dt=Oe.stringify(this.query));var St=this.search||dt&&"?"+dt||"";return _e&&_e.substr(-1)!==":"&&(_e+=":"),this.slashes||(!_e||Ie[_e])&&ut!==!1?(ut="//"+(ut||""),Ve&&Ve.charAt(0)!=="/"&&(Ve="/"+Ve)):ut||(ut=""),Qe&&Qe.charAt(0)!=="#"&&(Qe="#"+Qe),St&&St.charAt(0)!=="?"&&(St="?"+St),Ve=Ve.replace(/[?#]/g,function(qe){return encodeURIComponent(qe)}),St=St.replace("#","%23"),_e+ut+Ve+St+Qe};function De(Je,_e){return Le(Je,!1,!0).resolve(_e)}Se.prototype.resolve=function(Je){return this.resolveObject(Le(Je,!1,!0)).format()};function Re(Je,_e){return Je?Le(Je,!1,!0).resolveObject(_e):_e}Se.prototype.resolveObject=function(Je){if(Me.isString(Je)){var _e=new Se;_e.parse(Je,!1,!0),Je=_e}for(var Ve=new Se,Qe=Object.keys(this),ut=0;ut<Qe.length;ut++){var dt=Qe[ut];Ve[dt]=this[dt]}if(Ve.hash=Je.hash,Je.href==="")return Ve.href=Ve.format(),Ve;if(Je.slashes&&!Je.protocol){for(var St=Object.keys(Je),qe=0;qe<St.length;qe++){var it=St[qe];it!=="protocol"&&(Ve[it]=Je[it])}return Ie[Ve.protocol]&&Ve.hostname&&!Ve.pathname&&(Ve.path=Ve.pathname="/"),Ve.href=Ve.format(),Ve}if(Je.protocol&&Je.protocol!==Ve.protocol){if(!Ie[Je.protocol]){for(var pt=Object.keys(Je),wt=0;wt<pt.length;wt++){var xt=pt[wt];Ve[xt]=Je[xt]}return Ve.href=Ve.format(),Ve}if(Ve.protocol=Je.protocol,!Je.host&&!Ce[Je.protocol]){for(var Ct=(Je.pathname||"").split("/");Ct.length&&!(Je.host=Ct.shift()););Je.host||(Je.host=""),Je.hostname||(Je.hostname=""),Ct[0]!==""&&Ct.unshift(""),Ct.length<2&&Ct.unshift(""),Ve.pathname=Ct.join("/")}else Ve.pathname=Je.pathname;if(Ve.search=Je.search,Ve.query=Je.query,Ve.host=Je.host||"",Ve.auth=Je.auth,Ve.hostname=Je.hostname||Je.host,Ve.port=Je.port,Ve.pathname||Ve.search){var ft=Ve.pathname||"",mt=Ve.search||"";Ve.path=ft+mt}return Ve.slashes=Ve.slashes||Je.slashes,Ve.href=Ve.format(),Ve}var yt=Ve.pathname&&Ve.pathname.charAt(0)==="/",It=Je.host||Je.pathname&&Je.pathname.charAt(0)==="/",kt=It||yt||Ve.host&&Je.pathname,Ut=kt,Pt=Ve.pathname&&Ve.pathname.split("/")||[],Ct=Je.pathname&&Je.pathname.split("/")||[],st=Ve.protocol&&!Ie[Ve.protocol];if(st&&(Ve.hostname="",Ve.port=null,Ve.host&&(Pt[0]===""?Pt[0]=Ve.host:Pt.unshift(Ve.host)),Ve.host="",Je.protocol&&(Je.hostname=null,Je.port=null,Je.host&&(Ct[0]===""?Ct[0]=Je.host:Ct.unshift(Je.host)),Je.host=null),kt=kt&&(Ct[0]===""||Pt[0]==="")),It)Ve.host=Je.host||Je.host===""?Je.host:Ve.host,Ve.hostname=Je.hostname||Je.hostname===""?Je.hostname:Ve.hostname,Ve.search=Je.search,Ve.query=Je.query,Pt=Ct;else if(Ct.length)Pt||(Pt=[]),Pt.pop(),Pt=Pt.concat(Ct),Ve.search=Je.search,Ve.query=Je.query;else if(!Me.isNullOrUndefined(Je.search)){if(st){Ve.hostname=Ve.host=Pt.shift();var bt=Ve.host&&Ve.host.indexOf("@")>0?Ve.host.split("@"):!1;bt&&(Ve.auth=bt.shift(),Ve.host=Ve.hostname=bt.shift())}return Ve.search=Je.search,Ve.query=Je.query,(!Me.isNull(Ve.pathname)||!Me.isNull(Ve.search))&&(Ve.path=(Ve.pathname?Ve.pathname:"")+(Ve.search?Ve.search:"")),Ve.href=Ve.format(),Ve}if(!Pt.length)return Ve.pathname=null,Ve.search?Ve.path="/"+Ve.search:Ve.path=null,Ve.href=Ve.format(),Ve;for(var at=Pt.slice(-1)[0],ct=(Ve.host||Je.host||Pt.length>1)&&(at==="."||at==="..")||at==="",Lt=0,vt=Pt.length;vt>=0;vt--)at=Pt[vt],at==="."?Pt.splice(vt,1):at===".."?(Pt.splice(vt,1),Lt++):Lt&&(Pt.splice(vt,1),Lt--);if(!kt&&!Ut)for(;Lt--;Lt)Pt.unshift("..");kt&&Pt[0]!==""&&(!Pt[0]||Pt[0].charAt(0)!=="/")&&Pt.unshift(""),ct&&Pt.join("/").substr(-1)!=="/"&&Pt.push("");var nt=Pt[0]===""||Pt[0]&&Pt[0].charAt(0)==="/";if(st){Ve.hostname=Ve.host=nt?"":Pt.length?Pt.shift():"";var bt=Ve.host&&Ve.host.indexOf("@")>0?Ve.host.split("@"):!1;bt&&(Ve.auth=bt.shift(),Ve.host=Ve.hostname=bt.shift())}return kt=kt||Ve.host&&Pt.length,kt&&!nt&&Pt.unshift(""),Pt.length?Ve.pathname=Pt.join("/"):(Ve.pathname=null,Ve.path=null),(!Me.isNull(Ve.pathname)||!Me.isNull(Ve.search))&&(Ve.path=(Ve.pathname?Ve.pathname:"")+(Ve.search?Ve.search:"")),Ve.auth=Je.auth||Ve.auth,Ve.slashes=Ve.slashes||Je.slashes,Ve.href=Ve.format(),Ve},Se.prototype.parseHost=function(){var Je=this.host,_e=me.exec(Je);_e&&(_e=_e[0],_e!==":"&&(this.port=_e.substr(1)),Je=Je.substr(0,Je.length-_e.length)),Je&&(this.hostname=Je)}},{"./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,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),ce=ve(oe("@babel/runtime/helpers/typeof"));ze.exports={isString:function(Me){return typeof Me=="string"},isObject:function(Me){return(0,ce.default)(Me)==="object"&&Me!==null},isNull:function(Me){return Me===null},isNullOrUndefined:function(Me){return Me==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(oe,ze,je){"use strict";oe("core-js/modules/es.number.constructor.js"),je.encodeURIComponent=function(ve){try{return encodeURIComponent(ve)}catch(ce){return ve}},je.escape=oe("escape-html"),je.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,ze,je){(function(ve,ce){(function(){"use strict";var we=oe("@babel/runtime/helpers/interopRequireDefault"),Me=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"),Pe=oe("url"),me=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,Ie){return Ce===void 0?Ie:Ce}function ue(Ce){return Ce?Ce.split(";")[0].trim().toLowerCase():""}function pe(Ce,Ie){return function(Oe,Le,Ne){if(Oe)return Ie(Oe);Ce({data:Le,status:Ne.statusCode,headers:Ne.headers,res:Ne})}}je.TIMEOUTS=[z("300s"),z("300s")];var be=["json","text"];je.request=function(Ie,Oe,Le){return arguments.length===2&&typeof Oe=="function"&&(Le=Oe,Oe=null),typeof Le=="function"?je.requestWithCallback(Ie,Oe,Le):new Promise(function(Ne,De){je.requestWithCallback(Ie,Oe,pe(Ne,De))})},je.requestWithCallback=function(Ie,Oe,Le){if(!Ie||typeof Ie!="string"&&(0,Me.default)(Ie)!=="object"){var Ne=Se.format("expect request url to be a string or a http request options, but got %j",Ie);throw new Error(Ne)}arguments.length===2&&typeof Oe=="function"&&(Le=Oe,Oe=null),Oe=Oe||{},ee>=ae&&(ee=0);var De=++ee;Oe.requestUrls=Oe.requestUrls||[];var Re={requestId:De,url:Ie,args:Oe,ctx:Oe.ctx};Oe.emitter&&Oe.emitter.emit("request",Re),Oe.timeout=Oe.timeout||je.TIMEOUTS,Oe.maxRedirects=Oe.maxRedirects||10,Oe.streaming=Oe.streaming||Oe.customResponse;var Je=Date.now(),_e;typeof Ie=="string"?(re.test(Ie)||(Ie="https://"+Ie),_e=Pe.parse(Ie)):_e=Ie;var Ve=(Oe.type||Oe.method||_e.method||"GET").toUpperCase(),Qe=_e.port||80,ut=me,dt=le(Oe.agent,je.agent),St=Oe.fixJSONCtlChars;_e.protocol==="https:"&&(ut=xe,dt=le(Oe.httpsAgent,je.httpsAgent),_e.port||(Qe=443));var qe={host:_e.hostname||_e.host||"localhost",path:_e.path||"/",method:Ve,port:Qe,agent:dt,headers:Oe.headers||{},lookup:Oe.lookup};Array.isArray(Oe.timeout)?qe.requestTimeout=Oe.timeout[Oe.timeout.length-1]:typeof Oe.timeout!="undefined"&&(qe.requestTimeout=Oe.timeout);var it=Oe.auth||_e.auth;it&&(qe.auth=it);var pt=Oe.content||Oe.data,wt=Ve==="GET"||Ve==="HEAD"||Oe.dataAsQueryString;if(!Oe.content&&pt&&!(typeof pt=="string"||ce.isBuffer(pt)))if(wt)pt=Oe.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt);else{var xt=qe.headers["Content-Type"]||qe.headers["content-type"];xt||(Oe.contentType==="json"?xt="application/json":xt="application/x-www-form-urlencoded",qe.headers["Content-Type"]=xt),ue(xt)==="application/json"?pt=JSON.stringify(pt):pt=Oe.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt)}wt&&pt&&(qe.path+=(_e.query?"&":"?")+pt,pt=null);var ft=0;if(pt){var mt=pt.length;ce.isBuffer(pt)||(mt=ce.byteLength(pt)),ft=qe.headers["Content-Length"]=mt}Oe.dataType==="json"&&(qe.headers.Accept="application/json"),typeof Oe.beforeRequest=="function"&&Oe.beforeRequest(qe);var yt=null,It=null,kt=null,Ut=!1,Pt=!1,Ct=0,st=-1,bt=!1,at="",ct="",Lt=null;Oe.timing&&(Lt={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function vt(){yt&&(clearTimeout(yt),yt=null)}function nt(){It&&(clearTimeout(It),It=null)}function Xe(zt,Yt,jt){if(nt(),!Le){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),De,ve.pid,qe.method,Ie),zt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),De,ve.pid,zt.name,zt.message,zt.stack);return}var Kt=Le;Le=null;var en={};jt&&(st=jt.statusCode,en=jt.headers);var cn=Date.now()-Je;Lt&&(Lt.contentDownload=cn),fe("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",cn,Ct,st,qe.method,qe.host,qe.path,Pt,Lt);var yn={status:st,statusCode:st,headers:en,size:Ct,aborted:bt,rt:cn,keepAliveSocket:Pt,data:Yt,requestUrls:Oe.requestUrls,timing:Lt,remoteAddress:at,remotePort:ct};if(zt){var On="";dt&&typeof dt.getCurrentStatus=="function"&&(On=", agent status: "+JSON.stringify(dt.getCurrentStatus())),zt.message+=", "+qe.method+" "+Ie+" "+st+" (connected: "+Ut+", keepalive socket: "+Pt+On+`)
|
|
|
headers: `+JSON.stringify(en),zt.data=Yt,zt.path=qe.path,zt.status=st,zt.headers=en,zt.res=yn}Kt(zt,Yt,Oe.streaming?jt:yn),Oe.emitter&&(Re.url=Ie,Re.socket=Ze&&Ze.connection,Re.options=qe,Re.size=ft,Oe.emitter.emit("response",{requestId:De,error:zt,ctx:Oe.ctx,req:Re,res:yn}))}function Ue(zt){var Yt=null;if(Oe.followRedirect&&statuses.redirect[zt.statusCode]){Oe._followRedirectCount=(Oe._followRedirectCount||0)+1;var jt=zt.headers.location;if(!jt)Yt=new Error("Got statusCode "+zt.statusCode+" but cannot resolve next location from headers"),Yt.name="FollowRedirectError";else if(Oe._followRedirectCount>Oe.maxRedirects)Yt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ie),Yt.name="MaxRedirectError";else{var Kt=Oe.formatRedirectUrl?Oe.formatRedirectUrl(Ie,jt):Pe.resolve(Ie,jt);fe("Request#%d %s: `redirected` from %s to %s",De,qe.path,Ie,Kt),nt(),Oe.headers&&Oe.headers.Host&&re.test(jt)&&(Oe.headers.Host=null);var en=Le;return Le=null,je.requestWithCallback(Kt,Oe,en),{redirect:!0,error:null}}}return{redirect:!1,error:Yt}}Oe.gzip&&!qe.headers["Accept-Encoding"]&&!qe.headers["accept-encoding"]&&(qe.headers["Accept-Encoding"]="gzip");function $e(zt,Yt,jt){var Kt=zt.headers["content-encoding"];return jt(null,Yt,Kt)}var tt=Oe.writeStream;fe("Request#%d %s %s with headers %j, options.path: %s",De,Ve,Ie,qe.headers,qe.path),Oe.requestUrls.push(Ie);function We(zt){if(Lt&&(Lt.waiting=Date.now()-Je),fe("Request#%d %s `req response` event emit: status %d, headers: %j",De,Ie,zt.statusCode,zt.headers),Oe.streaming){var Yt=Ue(zt);if(Yt.redirect){zt.resume();return}return Yt.error?(zt.resume(),Xe(Yt.error,null,zt)):Xe(null,null,zt)}if(zt.on("close",function(){fe("Request#%d %s: `res close` event emit, total size %d",De,Ie,Ct)}),zt.on("error",function(){fe("Request#%d %s: `res error` event emit, total size %d",De,Ie,Ct)}),zt.on("aborted",function(){bt=!0,fe("Request#%d %s: `res aborted` event emit, total size %d",De,Ie,Ct)}),tt){var jt=Ue(zt);if(jt.redirect){zt.resume();return}return jt.error?(zt.resume(),tt.end(),Xe(jt.error,null,zt)):(Oe.consumeWriteStream===!1?zt.on("end",Xe.bind(null,null,null,zt)):tt.on("close",function(){fe("Request#%d %s: writeStream close event emitted",De,Ie),Xe(kt||null,null,zt)}),zt.pipe(tt))}var Kt=[];zt.on("data",function(en){fe("Request#%d %s: `res data` event emit, size %d",De,Ie,en.length),Ct+=en.length,Kt.push(en)}),zt.on("end",function(){var en=ce.concat(Kt,Ct);if(fe("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",De,Ie,Ct,zt._dumped),kt)return Xe(kt,en,zt);var cn=Ue(zt);if(cn.error)return Xe(cn.error,en,zt);cn.redirect||$e(zt,en,function(yn,On,or){if(yn)return Xe(yn,en,zt);if(!or&&be.indexOf(Oe.dataType)>=0){try{On=decodeBodyByCharset(On,zt)}catch(Tr){return fe("decodeBodyByCharset error: %s",Tr),Xe(null,On,zt)}if(Oe.dataType==="json")if(Ct===0)On=null;else{var er=parseJSON(On,St);er.error?yn=er.error:On=er.data}}bt&&fe("Request#%d %s: Remote socket was terminated before `response.end()` was called",De,Ie),Xe(yn,On,zt)})})}var Be,Te;Array.isArray(Oe.timeout)?(Be=z(Oe.timeout[0]),Te=z(Oe.timeout[1])):Be=Te=z(Oe.timeout),fe("ConnectTimeout: %d, ResponseTimeout: %d",Be,Te);function Ke(){fe("Connect timer ticking, timeout: %d",Be),yt=setTimeout(function(){yt=null,st===-1&&(st=-2);var zt="Connect timeout for "+Be+"ms",Yt="ConnectionTimeoutError";Ze.socket||(Yt="SocketAssignTimeoutError",zt+=", working sockets is full"),kt=new Error(zt),kt.name=Yt,kt.requestId=De,fe("ConnectTimeout: Request#%d %s %s: %s, connected: %s",De,Ie,kt.name,zt,Ut),Ot()},Be)}function gt(){fe("Response timer ticking, timeout: %d",Te),It=setTimeout(function(){It=null;var zt="Response timeout for "+Te+"ms",Yt="ResponseTimeoutError";kt=new Error(zt),kt.name=Yt,kt.requestId=De,fe("ResponseTimeout: Request#%d %s %s: %s, connected: %s",De,Ie,kt.name,zt,Ut),Ot()},Te)}var Ze;qe.mode=Oe.mode?Oe.mode:"";try{Ze=ut.request(qe,We)}catch(zt){return Xe(zt)}typeof window=="undefined"?Ke():Ze.on("requestTimeout",function(){st===-1&&(st=-2);var zt="Connect timeout for "+Be+"ms",Yt="ConnectionTimeoutError";kt=new Error(zt),kt.name=Yt,kt.requestId=De,Ot()});function Ot(){fe("Request#%d %s abort, connected: %s",De,Ie,Ut),Ze.socket||(kt.noSocket=!0,Xe(kt)),Ze.abort()}return Lt&&Ze.on("finish",function(){Lt.requestSent=Date.now()-Je}),Ze.once("socket",function(zt){Lt&&(Lt.queuing=Date.now()-Je);var Yt=zt.readyState;if(Yt==="opening"){zt.once("lookup",function(jt,Kt,en){fe("Request#%d %s lookup: %s, %s, %s",De,Ie,jt,Kt,en),Lt&&(Lt.dnslookup=Date.now()-Je),Kt&&(at=Kt)}),zt.once("connect",function(){Lt&&(Lt.connected=Date.now()-Je),vt(),gt(),fe("Request#%d %s new socket connected",De,Ie),Ut=!0,at||(at=zt.remoteAddress),ct=zt.remotePort});return}fe("Request#%d %s reuse socket connected, readyState: %s",De,Ie,Yt),Ut=!0,Pt=!0,at||(at=zt.remoteAddress),ct=zt.remotePort,vt(),gt()}),Ze.on("error",function(zt){(zt.name==="Error"||zt.name==="TypeError")&&(zt.name=Ut?"ResponseError":"RequestError"),zt.message+=' (req "error")',fe("Request#%d %s `req error` event emit, %s: %s",De,Ie,zt.name,zt.message),Xe(kt||zt)}),tt&&tt.once("error",function(zt){zt.message+=' (writeStream "error")',kt=zt,fe("Request#%d %s `writeStream error` event emit, %s: %s",De,Ie,zt.name,zt.message),Ot()}),Oe.stream?(Oe.stream.pipe(Ze),Oe.stream.once("error",function(zt){zt.message+=' (stream "error")',kt=zt,fe("Request#%d %s `readStream error` event emit, %s: %s",De,Ie,zt.name,zt.message),Ot()})):Ze.end(pt),Ze.requestId=De,Ze}}).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(_n,Pn){"use strict";function Ge(){const et=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Mt=1;Mt<arguments.length;Mt++){const oe=Mt<0||arguments.length<=Mt?void 0:arguments[Mt];oe&&Object.keys(oe).forEach(ze=>{const je=oe[ze];je!==void 0&&(et[ze]=je)})}return et}Pn.Z=Ge},13845:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{F:function(){return et},Z:function(){return Mt}});function et(oe){return oe!=null&&oe===oe.window}function Mt(oe,ze){var je,ve;if(typeof window=="undefined")return 0;const ce=ze?"scrollTop":"scrollLeft";let we=0;return et(oe)?we=oe[ze?"pageYOffset":"pageXOffset"]:oe instanceof Document?we=oe.documentElement[ce]:(oe instanceof HTMLElement||oe)&&(we=oe[ce]),oe&&!et(oe)&&typeof we!="number"&&(we=(ve=((je=oe.ownerDocument)!==null&&je!==void 0?je:oe).documentElement)===null||ve===void 0?void 0:ve[ce]),we}},56762:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Mt}});var et=Ge(59301);function Mt(){const[,oe]=et.useReducer(ze=>ze+1,0);return oe}},68031:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return ze}});var et=Ge(16089);function Mt(je,ve,ce,we){const Me=ce-ve;return je/=we/2,je<1?Me/2*je*je*je+ve:Me/2*((je-=2)*je*je+2)+ve}var oe=Ge(13845);function ze(je){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ce=()=>window,callback:we,duration:Me=450}=ve,Se=ce(),Pe=(0,oe.Z)(Se,!0),me=Date.now(),xe=()=>{const z=Date.now()-me,ee=Mt(z>Me?Me:z,Pe,je,Me);(0,oe.F)(Se)?Se.scrollTo(window.pageXOffset,ee):Se instanceof Document||Se.constructor.name==="HTMLDocument"?Se.documentElement.scrollTop=ee:Se.scrollTop=ee,z<Me?(0,et.Z)(xe):typeof we=="function"&&we()};(0,et.Z)(xe)}},66104:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Ve}});var et=Ge(92310),Mt=Ge.n(et),oe=Ge(11592),ze=Ge(26112),je=Ge(59301),ve=Ge(92343),ce=Ge(36355),we=Ge(84105),Me=Ge(91857);const Se=Qe=>{let{children:ut}=Qe;const{getPrefixCls:dt}=je.useContext(ce.E_),St=dt("breadcrumb");return je.createElement("li",{className:`${St}-separator`,"aria-hidden":"true"},ut===""?ut:ut||"/")};Se.__ANT_BREADCRUMB_SEPARATOR=!0;var Pe=Se,me=function(Qe,ut){var dt={};for(var St in Qe)Object.prototype.hasOwnProperty.call(Qe,St)&&ut.indexOf(St)<0&&(dt[St]=Qe[St]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,St=Object.getOwnPropertySymbols(Qe);qe<St.length;qe++)ut.indexOf(St[qe])<0&&Object.prototype.propertyIsEnumerable.call(Qe,St[qe])&&(dt[St[qe]]=Qe[St[qe]]);return dt};function xe(Qe,ut){if(Qe.title===void 0||Qe.title===null)return null;const dt=Object.keys(ut).join("|");return typeof Qe.title=="object"?Qe.title:String(Qe.title).replace(new RegExp(`:(${dt})`,"g"),(St,qe)=>ut[qe]||St)}function fe(Qe,ut,dt,St){if(dt==null)return null;const{className:qe,onClick:it}=ut,pt=me(ut,["className","onClick"]),wt=Object.assign(Object.assign({},(0,ze.Z)(pt,{data:!0,aria:!0})),{onClick:it});return St!==void 0?je.createElement("a",Object.assign({},wt,{className:Mt()(`${Qe}-link`,qe),href:St}),dt):je.createElement("span",Object.assign({},wt,{className:Mt()(`${Qe}-link`,qe)}),dt)}function z(Qe,ut){return(St,qe,it,pt,wt)=>{if(ut)return ut(St,qe,it,pt);const xt=xe(St,qe);return fe(Qe,St,xt,wt)}}var ee=function(Qe,ut){var dt={};for(var St in Qe)Object.prototype.hasOwnProperty.call(Qe,St)&&ut.indexOf(St)<0&&(dt[St]=Qe[St]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,St=Object.getOwnPropertySymbols(Qe);qe<St.length;qe++)ut.indexOf(St[qe])<0&&Object.prototype.propertyIsEnumerable.call(Qe,St[qe])&&(dt[St[qe]]=Qe[St[qe]]);return dt};const ae=Qe=>{const{prefixCls:ut,separator:dt="/",children:St,menu:qe,overlay:it,dropdownProps:pt,href:wt}=Qe,ft=(mt=>{if(qe||it){const yt=Object.assign({},pt);if(qe){const It=qe||{},{items:kt}=It,Ut=ee(It,["items"]);yt.menu=Object.assign(Object.assign({},Ut),{items:kt==null?void 0:kt.map((Pt,Ct)=>{var{key:st,title:bt,label:at,path:ct}=Pt,Lt=ee(Pt,["key","title","label","path"]);let vt=at!=null?at:bt;return ct&&(vt=je.createElement("a",{href:`${wt}${ct}`},vt)),Object.assign(Object.assign({},Lt),{key:st!=null?st:Ct,label:vt})})})}else it&&(yt.overlay=it);return je.createElement(Me.Z,Object.assign({placement:"bottom"},yt),je.createElement("span",{className:`${ut}-overlay-link`},mt,je.createElement(we.Z,null)))}return mt})(St);return ft!=null?je.createElement(je.Fragment,null,je.createElement("li",null,ft),dt&&je.createElement(Pe,null,dt)):null},re=Qe=>{const{prefixCls:ut,children:dt,href:St}=Qe,qe=ee(Qe,["prefixCls","children","href"]),{getPrefixCls:it}=je.useContext(ce.E_),pt=it("breadcrumb",ut);return je.createElement(ae,Object.assign({},qe,{prefixCls:pt}),fe(pt,qe,dt,St))};re.__ANT_BREADCRUMB_ITEM=!0;var le=re,ue=Ge(17313),pe=Ge(83116),be=Ge(37613);const Ce=Qe=>{const{componentCls:ut,iconCls:dt}=Qe;return{[ut]:Object.assign(Object.assign({},(0,ue.Wf)(Qe)),{color:Qe.itemColor,fontSize:Qe.fontSize,[dt]:{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},[`${ut}-separator`]:{marginInline:Qe.separatorMargin,color:Qe.separatorColor},[`${ut}-link`]:{[`
|
|
|
> ${dt} + span,
|
|
|
> ${dt} + a
|
|
|
`]:{marginInlineStart:Qe.marginXXS}},[`${ut}-overlay-link`]:{borderRadius:Qe.borderRadiusSM,height:Qe.lineHeight*Qe.fontSize,display:"inline-block",padding:`0 ${Qe.paddingXXS}px`,marginInline:-Qe.marginXXS,[`> ${dt}`]:{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 Ie=(0,pe.Z)("Breadcrumb",Qe=>{const ut=(0,be.TS)(Qe,{});return[Ce(ut)]},Qe=>({itemColor:Qe.colorTextDescription,lastItemColor:Qe.colorText,iconFontSize:Qe.fontSize,linkColor:Qe.colorTextDescription,linkHoverColor:Qe.colorText,separatorColor:Qe.colorTextDescription,separatorMargin:Qe.marginXS})),Oe=function(Qe,ut){var dt={};for(var St in Qe)Object.prototype.hasOwnProperty.call(Qe,St)&&ut.indexOf(St)<0&&(dt[St]=Qe[St]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,St=Object.getOwnPropertySymbols(Qe);qe<St.length;qe++)ut.indexOf(St[qe])<0&&Object.prototype.propertyIsEnumerable.call(Qe,St[qe])&&(dt[St[qe]]=Qe[St[qe]]);return dt};function Le(Qe){const{breadcrumbName:ut,children:dt}=Qe,St=Oe(Qe,["breadcrumbName","children"]),qe=Object.assign({title:ut},St);return dt&&(qe.menu={items:dt.map(it=>{var{breadcrumbName:pt}=it,wt=Oe(it,["breadcrumbName"]);return Object.assign(Object.assign({},wt),{title:pt})})}),qe}function Ne(Qe,ut){return(0,je.useMemo)(()=>Qe||(ut?ut.map(Le):null),[Qe,ut])}var De=function(Qe,ut){var dt={};for(var St in Qe)Object.prototype.hasOwnProperty.call(Qe,St)&&ut.indexOf(St)<0&&(dt[St]=Qe[St]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,St=Object.getOwnPropertySymbols(Qe);qe<St.length;qe++)ut.indexOf(St[qe])<0&&Object.prototype.propertyIsEnumerable.call(Qe,St[qe])&&(dt[St[qe]]=Qe[St[qe]]);return dt};const Re=(Qe,ut)=>{if(ut===void 0)return ut;let dt=(ut||"").replace(/^\//,"");return Object.keys(Qe).forEach(St=>{dt=dt.replace(`:${St}`,Qe[St])}),dt},Je=Qe=>{const{prefixCls:ut,separator:dt="/",style:St,className:qe,rootClassName:it,routes:pt,items:wt,children:xt,itemRender:ft,params:mt={}}=Qe,yt=De(Qe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:It,direction:kt,breadcrumb:Ut}=je.useContext(ce.E_);let Pt;const Ct=It("breadcrumb",ut),[st,bt]=Ie(Ct),at=Ne(wt,pt),ct=z(Ct,ft);if(at&&at.length>0){const nt=[],Xe=wt||pt;Pt=at.map((Ue,$e)=>{const{path:tt,key:We,type:Be,menu:Te,overlay:Ke,onClick:gt,className:Ze,separator:Ot,dropdownProps:zt}=Ue,Yt=Re(mt,tt);Yt!==void 0&&nt.push(Yt);const jt=We!=null?We:$e;if(Be==="separator")return je.createElement(Pe,{key:jt},Ot);const Kt={},en=$e===at.length-1;Te?Kt.menu=Te:Ke&&(Kt.overlay=Ke);let{href:cn}=Ue;return nt.length&&Yt!==void 0&&(cn=`#/${nt.join("/")}`),je.createElement(ae,Object.assign({key:jt},Kt,(0,ze.Z)(Ue,{data:!0,aria:!0}),{className:Ze,dropdownProps:zt,href:cn,separator:en?"":dt,onClick:gt,prefixCls:Ct}),ct(Ue,mt,Xe,nt,cn))})}else if(xt){const nt=(0,oe.Z)(xt).length;Pt=(0,oe.Z)(xt).map((Xe,Ue)=>{if(!Xe)return Xe;const $e=Ue===nt-1;return(0,ve.Tm)(Xe,{separator:$e?"":dt,key:Ue})})}const Lt=Mt()(Ct,Ut==null?void 0:Ut.className,{[`${Ct}-rtl`]:kt==="rtl"},qe,it,bt),vt=Object.assign(Object.assign({},Ut==null?void 0:Ut.style),St);return st(je.createElement("nav",Object.assign({className:Lt,style:vt},yt),je.createElement("ol",null,Pt)))};Je.Item=le,Je.Separator=Pe;var _e=Je,Ve=_e},24905:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{default:function(){return Ie}});var et=Ge(92310),Mt=Ge.n(et),oe=Ge(5630),ze=Ge(59301),je=Ge(36355),ve=Ge(1684),ce=Ge(32441),Me=ze.createContext(null),Se=Ge(98447),Pe=Ge(14088),me=Ge(4572),xe=function(Oe,Le){var Ne={};for(var De in Oe)Object.prototype.hasOwnProperty.call(Oe,De)&&Le.indexOf(De)<0&&(Ne[De]=Oe[De]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,De=Object.getOwnPropertySymbols(Oe);Re<De.length;Re++)Le.indexOf(De[Re])<0&&Object.prototype.propertyIsEnumerable.call(Oe,De[Re])&&(Ne[De[Re]]=Oe[De[Re]]);return Ne};const fe=(Oe,Le)=>{var Ne;const{prefixCls:De,className:Re,rootClassName:Je,children:_e,indeterminate:Ve=!1,style:Qe,onMouseEnter:ut,onMouseLeave:dt,skipGroup:St=!1,disabled:qe}=Oe,it=xe(Oe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pt,direction:wt,checkbox:xt}=ze.useContext(je.E_),ft=ze.useContext(Me),{isFormItemInput:mt}=ze.useContext(ce.aM),yt=ze.useContext(ve.Z),It=(Ne=(ft==null?void 0:ft.disabled)||qe)!==null&&Ne!==void 0?Ne:yt,kt=ze.useRef(it.value);ze.useEffect(()=>{ft==null||ft.registerValue(it.value)},[]),ze.useEffect(()=>{if(!St)return it.value!==kt.current&&(ft==null||ft.cancelValue(kt.current),ft==null||ft.registerValue(it.value),kt.current=it.value),()=>ft==null?void 0:ft.cancelValue(it.value)},[it.value]);const Ut=pt("checkbox",De),[Pt,Ct]=(0,Se.ZP)(Ut),st=Object.assign({},it);ft&&!St&&(st.onChange=function(){it.onChange&&it.onChange.apply(it,arguments),ft.toggleOption&&ft.toggleOption({label:_e,value:it.value})},st.name=ft.name,st.checked=ft.value.includes(it.value));const bt=Mt()(`${Ut}-wrapper`,{[`${Ut}-rtl`]:wt==="rtl",[`${Ut}-wrapper-checked`]:st.checked,[`${Ut}-wrapper-disabled`]:It,[`${Ut}-wrapper-in-form-item`]:mt},xt==null?void 0:xt.className,Re,Je,Ct),at=Mt()({[`${Ut}-indeterminate`]:Ve},me.A,Ct),ct=Ve?"mixed":void 0;return Pt(ze.createElement(Pe.Z,{component:"Checkbox",disabled:It},ze.createElement("label",{className:bt,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Qe),onMouseEnter:ut,onMouseLeave:dt},ze.createElement(oe.Z,Object.assign({"aria-checked":ct},st,{prefixCls:Ut,className:at,disabled:It,ref:Le})),_e!==void 0&&ze.createElement("span",null,_e))))};var ee=ze.forwardRef(fe),ae=Ge(19127),re=Ge(2738),le=function(Oe,Le){var Ne={};for(var De in Oe)Object.prototype.hasOwnProperty.call(Oe,De)&&Le.indexOf(De)<0&&(Ne[De]=Oe[De]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,De=Object.getOwnPropertySymbols(Oe);Re<De.length;Re++)Le.indexOf(De[Re])<0&&Object.prototype.propertyIsEnumerable.call(Oe,De[Re])&&(Ne[De[Re]]=Oe[De[Re]]);return Ne};const ue=(Oe,Le)=>{const{defaultValue:Ne,children:De,options:Re=[],prefixCls:Je,className:_e,rootClassName:Ve,style:Qe,onChange:ut}=Oe,dt=le(Oe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:St,direction:qe}=ze.useContext(je.E_),[it,pt]=ze.useState(dt.value||Ne||[]),[wt,xt]=ze.useState([]);ze.useEffect(()=>{"value"in dt&&pt(dt.value||[])},[dt.value]);const ft=ze.useMemo(()=>Re.map(Lt=>typeof Lt=="string"||typeof Lt=="number"?{label:Lt,value:Lt}:Lt),[Re]),mt=Lt=>{xt(vt=>vt.filter(nt=>nt!==Lt))},yt=Lt=>{xt(vt=>[].concat((0,ae.Z)(vt),[Lt]))},It=Lt=>{const vt=it.indexOf(Lt.value),nt=(0,ae.Z)(it);vt===-1?nt.push(Lt.value):nt.splice(vt,1),"value"in dt||pt(nt),ut==null||ut(nt.filter(Xe=>wt.includes(Xe)).sort((Xe,Ue)=>{const $e=ft.findIndex(We=>We.value===Xe),tt=ft.findIndex(We=>We.value===Ue);return $e-tt}))},kt=St("checkbox",Je),Ut=`${kt}-group`,[Pt,Ct]=(0,Se.ZP)(kt),st=(0,re.Z)(dt,["value","disabled"]),bt=Re.length?ft.map(Lt=>ze.createElement(ee,{prefixCls:kt,key:Lt.value.toString(),disabled:"disabled"in Lt?Lt.disabled:dt.disabled,value:Lt.value,checked:it.includes(Lt.value),onChange:Lt.onChange,className:`${Ut}-item`,style:Lt.style,title:Lt.title},Lt.label)):De,at={toggleOption:It,value:it,disabled:dt.disabled,name:dt.name,registerValue:yt,cancelValue:mt},ct=Mt()(Ut,{[`${Ut}-rtl`]:qe==="rtl"},_e,Ve,Ct);return Pt(ze.createElement("div",Object.assign({className:ct,style:Qe},st,{ref:Le}),ze.createElement(Me.Provider,{value:at},bt)))},pe=ze.forwardRef(ue);var be=ze.memo(pe);const Ce=ee;Ce.Group=be,Ce.__ANT_CHECKBOX=!0;var Ie=Ce},98447:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{C2:function(){return je}});var et=Ge(17313),Mt=Ge(37613),oe=Ge(83116);const ze=ve=>{const{checkboxCls:ce}=ve,we=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,et.Wf)(ve)),{display:"inline-flex",flexWrap:"wrap",columnGap:ve.marginXS,[`> ${ve.antCls}-row`]:{flex:1}}),[we]:Object.assign(Object.assign({},(0,et.Wf)(ve)),{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,et.Wf)(ve)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ve.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,et.oN)(ve))},[`${ce}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ve.checkboxSize,height:ve.checkboxSize,direction:"ltr",backgroundColor:ve.colorBgContainer,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,borderCollapse:"separate",transition:`all ${ve.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ve.checkboxSize/14*5,height:ve.checkboxSize/14*8,border:`${ve.lineWidthBold}px solid ${ve.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ve.motionDurationFast} ${ve.motionEaseInBack}, opacity ${ve.motionDurationFast}`}},"& + span":{paddingInlineStart:ve.paddingXS,paddingInlineEnd:ve.paddingXS}})},{[`
|
|
|
${we}:not(${we}-disabled),
|
|
|
${ce}:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{borderColor:ve.colorPrimary}},[`${we}:not(${we}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:ve.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-inner`]:{backgroundColor:ve.colorPrimary,borderColor:ve.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ve.motionDurationMid} ${ve.motionEaseOutBack} ${ve.motionDurationFast}`}}},[`
|
|
|
${we}-checked:not(${we}-disabled),
|
|
|
${ce}-checked:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-inner`]:{backgroundColor:ve.colorBgContainer,borderColor:ve.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ve.fontSizeLG/2,height:ve.fontSizeLG/2,backgroundColor:ve.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${we}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:ve.colorBgContainerDisabled,borderColor:ve.colorBorder,"&:after":{borderColor:ve.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ve.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:ve.colorTextDisabled}}}]};function je(ve,ce){const we=(0,Mt.TS)(ce,{checkboxCls:`.${ve}`,checkboxSize:ce.controlInteractiveSize});return[ze(we)]}Pn.ZP=(0,oe.Z)("Checkbox",(ve,ce)=>{let{prefixCls:we}=ce;return[je(we,ve)]})},93891:function(_n,Pn,Ge){"use strict";var et=Ge(59301),Mt=Ge(36355),oe=Ge(64165);const ze=je=>{const{componentName:ve}=je,{getPrefixCls:ce}=(0,et.useContext)(Mt.E_),we=ce("empty");switch(ve){case"Table":case"List":return et.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return et.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${we}-small`});default:return et.createElement(oe.Z,null)}};Pn.Z=ze},91857:function(_n,Pn,Ge){"use strict";var et=Ge(59301),Mt=Ge(38819),oe=Ge(92310),ze=Ge.n(oe),je=Ge(31561),ve=Ge(70425),ce=Ge(18929),we=Ge(2738),Me=Ge(79676),Se=Ge(53487),Pe=Ge(92343),me=Ge(36355),xe=Ge(20834),fe=Ge(40875),z=Ge(88088),ee=Ge(47211);const ae=null,re=be=>{const{menu:Ce,arrow:Ie,prefixCls:Oe,children:Le,trigger:Ne,disabled:De,dropdownRender:Re,getPopupContainer:Je,overlayClassName:_e,rootClassName:Ve,open:Qe,onOpenChange:ut,visible:dt,onVisibleChange:St,mouseEnterDelay:qe=.15,mouseLeaveDelay:it=.1,autoAdjustOverflow:pt=!0,placement:wt="",overlay:xt,transitionName:ft}=be,{getPopupContainer:mt,getPrefixCls:yt,direction:It}=et.useContext(me.E_),kt=et.useMemo(()=>{const Te=yt();return ft!==void 0?ft:wt.includes("top")?`${Te}-slide-down`:`${Te}-slide-up`},[yt,wt,ft]),Ut=et.useMemo(()=>wt?wt.includes("Center")?wt.slice(0,wt.indexOf("Center")):wt:It==="rtl"?"bottomRight":"bottomLeft",[wt,It]),Pt=yt("dropdown",Oe),[Ct,st]=(0,ee.Z)(Pt),[,bt]=(0,z.Z)(),at=et.Children.only(Le),ct=(0,Pe.Tm)(at,{className:ze()(`${Pt}-trigger`,{[`${Pt}-rtl`]:It==="rtl"},at.props.className),disabled:De}),Lt=De?[]:Ne;let vt;Lt&&Lt.includes("contextMenu")&&(vt=!0);const[nt,Xe]=(0,ce.Z)(!1,{value:Qe!=null?Qe:dt}),Ue=(0,ve.useEvent)(Te=>{ut==null||ut(Te),St==null||St(Te),Xe(Te)}),$e=ze()(_e,Ve,st,{[`${Pt}-rtl`]:It==="rtl"}),tt=(0,Me.Z)({arrowPointAtCenter:typeof Ie=="object"&&Ie.pointAtCenter,autoAdjustOverflow:pt,offset:bt.marginXXS,arrowWidth:Ie?bt.sizePopupArrow:0,borderRadius:bt.borderRadius}),We=et.useCallback(()=>{Xe(!1)},[]),Be=()=>{let Te;return Ce!=null&&Ce.items?Te=et.createElement(xe.default,Object.assign({},Ce)):typeof xt=="function"?Te=xt():Te=xt,Re&&(Te=Re(Te)),Te=et.Children.only(typeof Te=="string"?et.createElement("span",null,Te):Te),et.createElement(fe.J,{prefixCls:`${Pt}-menu`,expandIcon:et.createElement("span",{className:`${Pt}-menu-submenu-arrow`},et.createElement(Mt.Z,{className:`${Pt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:We,validator:Ke=>{let{mode:gt}=Ke}},Te)};return Ct(et.createElement(je.Z,Object.assign({alignPoint:vt},(0,we.Z)(be,["rootClassName"]),{mouseEnterDelay:qe,mouseLeaveDelay:it,visible:nt,builtinPlacements:tt,arrow:!!Ie,overlayClassName:$e,prefixCls:Pt,getPopupContainer:Je||mt,transitionName:kt,trigger:Lt,overlay:Be,placement:Ut,onVisibleChange:Ue}),ct))};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=>et.createElement(ue,Object.assign({},be),et.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,Pn.Z=re},38854:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return z}});var et=Ge(91857),Mt=Ge(92310),oe=Ge.n(Mt),ze=Ge(59301),je=Ge(18785),ve=Ge(3113),ce=Ge(36355),we=Ge(81327),Me=Ge(33234),Se=Ge(47211),Pe=function(ee,ae){var re={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&ae.indexOf(le)<0&&(re[le]=ee[le]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,le=Object.getOwnPropertySymbols(ee);ue<le.length;ue++)ae.indexOf(le[ue])<0&&Object.prototype.propertyIsEnumerable.call(ee,le[ue])&&(re[le[ue]]=ee[le[ue]]);return re};const me=ee=>{const{getPopupContainer:ae,getPrefixCls:re,direction:le}=ze.useContext(ce.E_),{prefixCls:ue,type:pe="default",danger:be,disabled:Ce,loading:Ie,onClick:Oe,htmlType:Le,children:Ne,className:De,menu:Re,arrow:Je,autoFocus:_e,overlay:Ve,trigger:Qe,align:ut,open:dt,onOpenChange:St,placement:qe,getPopupContainer:it,href:pt,icon:wt=ze.createElement(je.Z,null),title:xt,buttonsRender:ft=Be=>Be,mouseEnterDelay:mt,mouseLeaveDelay:yt,overlayClassName:It,overlayStyle:kt,destroyPopupOnHide:Ut,dropdownRender:Pt}=ee,Ct=Pe(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"]),st=re("dropdown",ue),bt=`${st}-button`,[at,ct]=(0,Se.Z)(st),Lt={menu:Re,arrow:Je,autoFocus:_e,align:ut,disabled:Ce,trigger:Ce?[]:Qe,onOpenChange:St,getPopupContainer:it||ae,mouseEnterDelay:mt,mouseLeaveDelay:yt,overlayClassName:It,overlayStyle:kt,destroyPopupOnHide:Ut,dropdownRender:Pt},{compactSize:vt,compactItemClassnames:nt}=(0,Me.ri)(st,le),Xe=oe()(bt,nt,De,ct);"overlay"in ee&&(Lt.overlay=Ve),"open"in ee&&(Lt.open=dt),"placement"in ee?Lt.placement=qe:Lt.placement=le==="rtl"?"bottomLeft":"bottomRight";const Ue=ze.createElement(ve.ZP,{type:pe,danger:be,disabled:Ce,loading:Ie,onClick:Oe,htmlType:Le,href:pt,title:xt},Ne),$e=ze.createElement(ve.ZP,{type:pe,danger:be,icon:wt}),[tt,We]=ft([Ue,$e]);return at(ze.createElement(we.Z.Compact,Object.assign({className:Xe,size:vt,block:!0},Ct),tt,ze.createElement(et.Z,Object.assign({},Lt),We)))};me.__ANT_BUTTON=!0;var xe=me;const fe=et.Z;fe.Button=xe;var z=fe},47211:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Pe}});var et=Ge(17313),Mt=Ge(13826),oe=Ge(92899),ze=Ge(29878),je=Ge(19447),ve=Ge(83116),ce=Ge(37613),Me=me=>{const{componentCls:xe,menuCls:fe,colorError:z,colorTextLightSolid:ee}=me,ae=`${fe}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${fe} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:z,"&:hover":{color:ee,backgroundColor:z}}}}}};const Se=me=>{const{componentCls:xe,menuCls:fe,zIndexPopup:z,dropdownArrowDistance:ee,sizePopupArrow:ae,antCls:re,iconCls:le,motionDurationMid:ue,dropdownPaddingVertical:pe,fontSize:be,dropdownEdgeChildPadding:Ce,colorTextDisabled:Ie,fontSizeIcon:Oe,controlPaddingHorizontal:Le,colorBgElevated:Ne}=me;return[{[xe]:Object.assign(Object.assign({},(0,et.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:z,display:"block","&::before":{position:"absolute",insetBlock:-ee+ae/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${re}-btn`]:{[`& > ${le}-down, & > ${re}-btn-icon > ${le}-down`]:{fontSize:Oe}},[`${xe}-wrap`]:{position:"relative",[`${re}-btn > ${le}-down`]:{fontSize:Oe},[`${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:Mt.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:Mt.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:Mt.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:Mt.ly}})},(0,je.ZP)(me,{colorBg:Ne,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:Ne,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,et.Qy)(me)),{[`${fe}-item-group-title`]:{padding:`${pe}px ${Le}px`,color:me.colorTextDescription,transition:`all ${ue}`},[`${fe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${fe}-item-icon`]:{minWidth:be,marginInlineEnd:me.marginXS,fontSize:me.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 ${Le}px`,color:me.colorText,fontWeight:"normal",fontSize:be,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${ue}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,et.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:Ie,cursor:"not-allowed","&:hover":{color:Ie,backgroundColor:Ne,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:Oe,fontStyle:"normal"}}}),[`${fe}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${fe}-submenu-title`]:{paddingInlineEnd:Le+me.fontSizeSM},[`${fe}-submenu-vertical`]:{position:"relative"},[`${fe}-submenu${fe}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:Ie,backgroundColor:Ne,cursor:"not-allowed"}},[`${fe}-submenu-selected ${xe}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,Mt.oN)(me,"slide-up"),(0,Mt.oN)(me,"slide-down"),(0,oe.Fm)(me,"move-up"),(0,oe.Fm)(me,"move-down"),(0,ze._y)(me,"zoom-big")]]};var Pe=(0,ve.Z)("Dropdown",(me,xe)=>{let{rootPrefixCls:fe}=xe;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:be}=me,Ce=(ae-re*le)/2,{dropdownArrowOffset:Ie}=(0,je.fS)({contentRadius:be}),Oe=(0,ce.TS)(me,{menuCls:`${pe}-menu`,rootPrefixCls:fe,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:Ie,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:ue});return[Se(Oe),Me(Oe)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},64165:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return ue}});var et=Ge(92310),Mt=Ge.n(et),oe=Ge(59301),ze=Ge(36355),je=Ge(9763),ve=Ge(64993),ce=Ge(88088),Me=()=>{const[,pe]=(0,ce.Z)(),Ce=new ve.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{fill:"none",fillRule:"evenodd"},oe.createElement("g",{transform:"translate(24 31.67)"},oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),oe.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),oe.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),oe.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),oe.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),oe.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Pe=()=>{const[,pe]=(0,ce.Z)(),{colorFill:be,colorFillTertiary:Ce,colorFillQuaternary:Ie,colorBgContainer:Oe}=pe,{borderColor:Le,shadowColor:Ne,contentColor:De}=(0,oe.useMemo)(()=>({borderColor:new ve.C(be).onBackground(Oe).toHexShortString(),shadowColor:new ve.C(Ce).onBackground(Oe).toHexShortString(),contentColor:new ve.C(Ie).onBackground(Oe).toHexShortString()}),[be,Ce,Ie,Oe]);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:Ne,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:Le},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:De}))))},me=Ge(83116),xe=Ge(37613);const fe=pe=>{const{componentCls:be,margin:Ce,marginXS:Ie,marginXL:Oe,fontSize:Le,lineHeight:Ne}=pe;return{[be]:{marginInline:Ie,fontSize:Le,lineHeight:Ne,textAlign:"center",[`${be}-image`]:{height:pe.emptyImgHeight,marginBottom:Ie,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${be}-description`]:{color:pe.colorText},[`${be}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Oe,color:pe.colorTextDisabled,[`${be}-description`]:{color:pe.colorTextDisabled},[`${be}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Ie,color:pe.colorTextDisabled,[`${be}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,me.Z)("Empty",pe=>{const{componentCls:be,controlHeightLG:Ce}=pe,Ie=(0,xe.TS)(pe,{emptyImgCls:`${be}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[fe(Ie)]}),ee=function(pe,be){var Ce={};for(var Ie in pe)Object.prototype.hasOwnProperty.call(pe,Ie)&&be.indexOf(Ie)<0&&(Ce[Ie]=pe[Ie]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ie=Object.getOwnPropertySymbols(pe);Oe<Ie.length;Oe++)be.indexOf(Ie[Oe])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ie[Oe])&&(Ce[Ie[Oe]]=pe[Ie[Oe]]);return Ce};const ae=oe.createElement(Me,null),re=oe.createElement(Pe,null),le=pe=>{var{className:be,rootClassName:Ce,prefixCls:Ie,image:Oe=ae,description:Le,children:Ne,imageStyle:De,style:Re}=pe,Je=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:_e,direction:Ve,empty:Qe}=oe.useContext(ze.E_),ut=_e("empty",Ie),[dt,St]=z(ut),[qe]=(0,je.Z)("Empty"),it=typeof Le!="undefined"?Le:qe==null?void 0:qe.description,pt=typeof it=="string"?it:"empty";let wt=null;return typeof Oe=="string"?wt=oe.createElement("img",{alt:pt,src:Oe}):wt=Oe,dt(oe.createElement("div",Object.assign({className:Mt()(St,ut,Qe==null?void 0:Qe.className,{[`${ut}-normal`]:Oe===re,[`${ut}-rtl`]:Ve==="rtl"},be,Ce),style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Re)},Je),oe.createElement("div",{className:`${ut}-image`,style:De},wt),it&&oe.createElement("div",{className:`${ut}-description`},it),Ne&&oe.createElement("div",{className:`${ut}-footer`},Ne)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{default:function(){return qt}});var et=Ge(19127),Mt=Ge(92310),oe=Ge.n(Mt),ze=Ge(77900),je=Ge(59301),ve=Ge(62892),ce=Ge(32441);function we(Tt){const[ln,Cn]=je.useState(Tt);return je.useEffect(()=>{const Xt=setTimeout(()=>{Cn(Tt)},Tt.length?0:10);return()=>{clearTimeout(Xt)}},[Tt]),ln}var Me=Ge(17313),Se=Ge(29878),Pe=Ge(8378),me=Ge(37613),xe=Ge(83116),z=Tt=>{const{componentCls:ln}=Tt,Cn=`${ln}-show-help`,Xt=`${ln}-show-help-item`;return{[Cn]:{transition:`opacity ${Tt.motionDurationSlow} ${Tt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Xt]:{overflow:"hidden",transition:`height ${Tt.motionDurationSlow} ${Tt.motionEaseInOut},
|
|
|
opacity ${Tt.motionDurationSlow} ${Tt.motionEaseInOut},
|
|
|
transform ${Tt.motionDurationSlow} ${Tt.motionEaseInOut} !important`,[`&${Xt}-appear, &${Xt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Xt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Tt=>({legend:{display:"block",width:"100%",marginBottom:Tt.marginLG,padding:0,color:Tt.colorTextDescription,fontSize:Tt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Tt.lineWidth}px ${Tt.lineType} ${Tt.colorBorder}`},label:{fontSize:Tt.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 ${Tt.controlOutlineWidth}px ${Tt.controlOutline}`},output:{display:"block",paddingTop:15,color:Tt.colorText,fontSize:Tt.fontSize,lineHeight:Tt.lineHeight}}),ae=(Tt,ln)=>{const{formItemCls:Cn}=Tt;return{[Cn]:{[`${Cn}-label > label`]:{height:ln},[`${Cn}-control-input`]:{minHeight:ln}}}},re=Tt=>{const{componentCls:ln}=Tt;return{[Tt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Me.Wf)(Tt)),ee(Tt)),{[`${ln}-text`]:{display:"inline-block",paddingInlineEnd:Tt.paddingSM},"&-small":Object.assign({},ae(Tt,Tt.controlHeightSM)),"&-large":Object.assign({},ae(Tt,Tt.controlHeightLG))})}},le=Tt=>{const{formItemCls:ln,iconCls:Cn,componentCls:Xt,rootPrefixCls:Rt,labelRequiredMarkColor:fn,labelColor:un,labelFontSize:Gn,labelHeight:Xn,labelColonMarginInlineStart:$t,labelColonMarginInlineEnd:kn,itemMarginBottom:Wn}=Tt;return{[ln]:Object.assign(Object.assign({},(0,Me.Wf)(Tt)),{marginBottom:Wn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Rt}-row`]:{display:"none"},"&-has-warning":{[`${ln}-split`]:{color:Tt.colorError}},"&-has-error":{[`${ln}-split`]:{color:Tt.colorWarning}},[`${ln}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Tt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Xn,color:un,fontSize:Gn,[`> ${Cn}`]:{fontSize:Tt.fontSize,verticalAlign:"top"},[`&${ln}-required:not(${ln}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Tt.marginXXS,color:fn,fontSize:Tt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Xt}-hide-required-mark &`]:{display:"none"}},[`${ln}-optional`]:{display:"inline-block",marginInlineStart:Tt.marginXXS,color:Tt.colorTextDescription,[`${Xt}-hide-required-mark &`]:{display:"none"}},[`${ln}-tooltip`]:{color:Tt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Tt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$t,marginInlineEnd:kn},[`&${ln}-no-colon::after`]:{content:'"\\a0"'}}},[`${ln}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Rt}-col-'"]):not([class*="' ${Rt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Tt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ln]:{"&-explain, &-extra":{clear:"both",color:Tt.colorTextDescription,fontSize:Tt.fontSize,lineHeight:Tt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Tt.controlHeightSM,transition:`color ${Tt.motionDurationMid} ${Tt.motionEaseOut}`},"&-explain":{"&-error":{color:Tt.colorError},"&-warning":{color:Tt.colorWarning}}},[`&-with-help ${ln}-explain`]:{height:"auto",opacity:1},[`${ln}-feedback-icon`]:{fontSize:Tt.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:Tt.motionDurationMid,animationTimingFunction:Tt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Tt.colorSuccess},"&-error":{color:Tt.colorError},"&-warning":{color:Tt.colorWarning},"&-validating":{color:Tt.colorPrimary}}})}},ue=Tt=>{const{componentCls:ln,formItemCls:Cn}=Tt;return{[`${ln}-horizontal`]:{[`${Cn}-label`]:{flexGrow:0},[`${Cn}-control`]:{flex:"1 1 0",minWidth:0},[`${Cn}-label[class$='-24'], ${Cn}-label[class*='-24 ']`]:{[`& + ${Cn}-control`]:{minWidth:"unset"}}}}},pe=Tt=>{const{componentCls:ln,formItemCls:Cn}=Tt;return{[`${ln}-inline`]:{display:"flex",flexWrap:"wrap",[Cn]:{flex:"none",marginInlineEnd:Tt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Cn}-label,
|
|
|
> ${Cn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Cn}-label`]:{flex:"none"},[`${ln}-text`]:{display:"inline-block"},[`${Cn}-has-feedback`]:{display:"inline-block"}}}}},be=Tt=>({padding:Tt.verticalLabelPadding,margin:Tt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Tt=>{const{componentCls:ln,formItemCls:Cn,rootPrefixCls:Xt}=Tt;return{[`${Cn} ${Cn}-label`]:be(Tt),[ln]:{[Cn]:{flexWrap:"wrap",[`${Cn}-label, ${Cn}-control`]:{[`&:not([class*=" ${Xt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=Tt=>{const{componentCls:ln,formItemCls:Cn,rootPrefixCls:Xt}=Tt;return{[`${ln}-vertical`]:{[Cn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ln}-item-control`]:{width:"100%"}}},[`${ln}-vertical ${Cn}-label,
|
|
|
.${Xt}-col-24${Cn}-label,
|
|
|
.${Xt}-col-xl-24${Cn}-label`]:be(Tt),[`@media (max-width: ${Tt.screenXSMax}px)`]:[Ce(Tt),{[ln]:{[`.${Xt}-col-xs-24${Cn}-label`]:be(Tt)}}],[`@media (max-width: ${Tt.screenSMMax}px)`]:{[ln]:{[`.${Xt}-col-sm-24${Cn}-label`]:be(Tt)}},[`@media (max-width: ${Tt.screenMDMax}px)`]:{[ln]:{[`.${Xt}-col-md-24${Cn}-label`]:be(Tt)}},[`@media (max-width: ${Tt.screenLGMax}px)`]:{[ln]:{[`.${Xt}-col-lg-24${Cn}-label`]:be(Tt)}}}},Oe=(Tt,ln)=>(0,me.TS)(Tt,{formItemCls:`${Tt.componentCls}-item`,rootPrefixCls:ln});var Le=(0,xe.Z)("Form",(Tt,ln)=>{let{rootPrefixCls:Cn}=ln;const Xt=Oe(Tt,Cn);return[re(Xt),le(Xt),z(Xt),ue(Xt),pe(Xt),Ie(Xt),(0,Pe.Z)(Xt),Se.kr]},Tt=>({labelRequiredMarkColor:Tt.colorError,labelColor:Tt.colorTextHeading,labelFontSize:Tt.fontSize,labelHeight:Tt.controlHeight,labelColonMarginInlineStart:Tt.marginXXS/2,labelColonMarginInlineEnd:Tt.marginXS,itemMarginBottom:Tt.marginLG,verticalLabelPadding:`0 0 ${Tt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ne=[];function De(Tt,ln,Cn){let Xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Tt=="string"?Tt:`${ln}-${Xt}`,error:Tt,errorStatus:Cn}}var Je=Tt=>{let{help:ln,helpStatus:Cn,errors:Xt=Ne,warnings:Rt=Ne,className:fn,fieldId:un,onVisibleChanged:Gn}=Tt;const{prefixCls:Xn}=je.useContext(ce.Rk),$t=`${Xn}-item-explain`,[,kn]=Le(Xn),Wn=(0,je.useMemo)(()=>(0,ve.Z)(Xn),[Xn]),lr=we(Xt),on=we(Rt),Mn=je.useMemo(()=>ln!=null?[De(ln,"help",Cn)]:[].concat((0,et.Z)(lr.map((xn,gn)=>De(xn,"error","error",gn))),(0,et.Z)(on.map((xn,gn)=>De(xn,"warning","warning",gn)))),[ln,Cn,lr,on]),an={};return un&&(an.id=`${un}_help`),je.createElement(ze.default,{motionDeadline:Wn.motionDeadline,motionName:`${Xn}-show-help`,visible:!!Mn.length,onVisibleChanged:Gn},xn=>{const{className:gn,style:Sn}=xn;return je.createElement("div",Object.assign({},an,{className:oe()($t,gn,fn,kn),style:Sn,role:"alert"}),je.createElement(ze.CSSMotionList,Object.assign({keys:Mn},(0,ve.Z)(Xn),{motionName:`${Xn}-show-help-item`,component:!1}),An=>{const{key:Nn,error:Fn,errorStatus:zn,className:xr,style:mn}=An;return je.createElement("div",{key:Nn,className:oe()(xr,{[`${$t}-${zn}`]:zn}),style:mn},Fn)}))})},_e=Ge(95013),Ve=Ge(36355),Qe=Ge(1684),ut=Ge(52946),dt=Ge(19716),St=Ge(16722);const qe=["parentNode"],it="form_item";function pt(Tt){return Tt===void 0||Tt===!1?[]:Array.isArray(Tt)?Tt:[Tt]}function wt(Tt,ln){if(!Tt.length)return;const Cn=Tt.join("_");return ln?`${ln}_${Cn}`:qe.includes(Cn)?`${it}_${Cn}`:Cn}function xt(Tt,ln,Cn,Xt,Rt,fn){let un=Xt;return fn!==void 0?un=fn:Cn.validating?un="validating":Tt.length?un="error":ln.length?un="warning":(Cn.touched||Rt&&Cn.validated)&&(un="success"),un}function ft(Tt){return pt(Tt).join("_")}function mt(Tt){const[ln]=(0,_e.useForm)(),Cn=je.useRef({}),Xt=je.useMemo(()=>Tt!=null?Tt:Object.assign(Object.assign({},ln),{__INTERNAL__:{itemRef:Rt=>fn=>{const un=ft(Rt);fn?Cn.current[un]=fn:delete Cn.current[un]}},scrollToField:function(Rt){let fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const un=pt(Rt),Gn=wt(un,Xt.__INTERNAL__.name),Xn=Gn?document.getElementById(Gn):null;Xn&&(0,St.Z)(Xn,Object.assign({scrollMode:"if-needed",block:"nearest"},fn))},getFieldInstance:Rt=>{const fn=ft(Rt);return Cn.current[fn]}}),[Tt,ln]);return[Xt]}var yt=Ge(28726),It=function(Tt,ln){var Cn={};for(var Xt in Tt)Object.prototype.hasOwnProperty.call(Tt,Xt)&&ln.indexOf(Xt)<0&&(Cn[Xt]=Tt[Xt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Xt=Object.getOwnPropertySymbols(Tt);Rt<Xt.length;Rt++)ln.indexOf(Xt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Xt[Rt])&&(Cn[Xt[Rt]]=Tt[Xt[Rt]]);return Cn};const kt=(Tt,ln)=>{const Cn=je.useContext(Qe.Z),{getPrefixCls:Xt,direction:Rt,form:fn}=je.useContext(Ve.E_),{prefixCls:un,className:Gn,rootClassName:Xn,size:$t,disabled:kn=Cn,form:Wn,colon:lr,labelAlign:on,labelWrap:Mn,labelCol:an,wrapperCol:xn,hideRequiredMark:gn,layout:Sn="horizontal",scrollToFirstError:An,requiredMark:Nn,onFinishFailed:Fn,name:zn,style:xr,feedbackIcons:mn}=Tt,Fr=It(Tt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Qr=(0,dt.Z)($t),Br=je.useContext(yt.Z),bn=(0,je.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=Xt("form",un),[Sr,mr]=Le(sr),Kr=oe()(sr,`${sr}-${Sn}`,{[`${sr}-hide-required-mark`]:bn===!1,[`${sr}-rtl`]:Rt==="rtl",[`${sr}-${Qr}`]:Qr},mr,fn==null?void 0:fn.className,Gn,Xn),[ri]=mt(Wn),{__INTERNAL__:Rr}=ri;Rr.name=zn;const br=(0,je.useMemo)(()=>({name:zn,labelAlign:on,labelCol:an,labelWrap:Mn,wrapperCol:xn,vertical:Sn==="vertical",colon:Jn,requiredMark:bn,itemRef:Rr.itemRef,form:ri,feedbackIcons:mn}),[zn,on,an,xn,Sn,Jn,bn,ri,mn]);je.useImperativeHandle(ln,()=>ri);const ur=(cr,wn)=>{if(cr){let zr={block:"nearest"};typeof cr=="object"&&(zr=cr),ri.scrollToField(wn,zr)}},vn=cr=>{if(Fn==null||Fn(cr),cr.errorFields.length){const wn=cr.errorFields[0].name;if(An!==void 0){ur(An,wn);return}fn&&fn.scrollToFirstError!==void 0&&ur(fn.scrollToFirstError,wn)}};return Sr(je.createElement(Qe.n,{disabled:kn},je.createElement(ut.q,{size:Qr},je.createElement(ce.RV,Object.assign({},{validateMessages:Br}),je.createElement(ce.q3.Provider,{value:br},je.createElement(_e.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:Kr})))))))};var Pt=je.forwardRef(kt),Ct=Ge(41799),st=Ge(8654),bt=Ge(92343),at=Ge(11592);function ct(Tt){if(typeof Tt=="function")return Tt;const ln=(0,at.Z)(Tt);return ln.length<=1?ln[0]:ln}const Lt=()=>{const{status:Tt,errors:ln=[],warnings:Cn=[]}=(0,je.useContext)(ce.aM);return{status:Tt,errors:ln,warnings:Cn}};Lt.Context=ce.aM;var vt=Lt,nt=Ge(16089);function Xe(Tt){const[ln,Cn]=je.useState(Tt),Xt=(0,je.useRef)(null),Rt=(0,je.useRef)([]),fn=(0,je.useRef)(!1);je.useEffect(()=>(fn.current=!1,()=>{fn.current=!0,nt.Z.cancel(Xt.current),Xt.current=null}),[]);function un(Gn){fn.current||(Xt.current===null&&(Rt.current=[],Xt.current=(0,nt.Z)(()=>{Xt.current=null,Cn(Xn=>{let $t=Xn;return Rt.current.forEach(kn=>{$t=kn($t)}),$t})})),Rt.current.push(Gn))}return[ln,un]}function Ue(){const{itemRef:Tt}=je.useContext(ce.q3),ln=je.useRef({});function Cn(Xt,Rt){const fn=Rt&&typeof Rt=="object"&&Rt.ref,un=Xt.join("_");return(ln.current.name!==un||ln.current.originRef!==fn)&&(ln.current.name=un,ln.current.originRef=fn,ln.current.ref=(0,st.sQ)(Tt(Xt),fn)),ln.current.ref}return Cn}var $e=Ge(29194),tt=Ge(34280),We=Ge(2738),Be=Ge(27382),Te=Ge(37028);const Ke=Tt=>{const{formItemCls:ln}=Tt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ln}-control`]:{display:"flex"}}}};var gt=(0,xe.b)(["Form","item-item"],(Tt,ln)=>{let{rootPrefixCls:Cn}=ln;const Xt=Oe(Tt,Cn);return[Ke(Xt)]}),Ot=Tt=>{const{prefixCls:ln,status:Cn,wrapperCol:Xt,children:Rt,errors:fn,warnings:un,_internalItemRender:Gn,extra:Xn,help:$t,fieldId:kn,marginBottom:Wn,onErrorVisibleChanged:lr}=Tt,on=`${ln}-item`,Mn=je.useContext(ce.q3),an=Xt||Mn.wrapperCol||{},xn=oe()(`${on}-control`,an.className),gn=je.useMemo(()=>Object.assign({},Mn),[Mn]);delete gn.labelCol,delete gn.wrapperCol;const Sn=je.createElement("div",{className:`${on}-control-input`},je.createElement("div",{className:`${on}-control-input-content`},Rt)),An=je.useMemo(()=>({prefixCls:ln,status:Cn}),[ln,Cn]),Nn=Wn!==null||fn.length||un.length?je.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},je.createElement(ce.Rk.Provider,{value:An},je.createElement(Je,{fieldId:kn,errors:fn,warnings:un,help:$t,helpStatus:Cn,className:`${on}-explain-connected`,onVisibleChanged:lr})),!!Wn&&je.createElement("div",{style:{width:0,height:Wn}})):null,Fn={};kn&&(Fn.id=`${kn}_extra`);const zn=Xn?je.createElement("div",Object.assign({},Fn,{className:`${on}-extra`}),Xn):null,xr=Gn&&Gn.mark==="pro_table_render"&&Gn.render?Gn.render(Tt,{input:Sn,errorList:Nn,extra:zn}):je.createElement(je.Fragment,null,Sn,Nn,zn);return je.createElement(ce.q3.Provider,{value:gn},je.createElement(Te.Z,Object.assign({},an,{className:xn}),xr),je.createElement(gt,{prefixCls:ln}))},zt=Ge(61485),Yt=Ge(31724),jt=Ge(9763),Kt=Ge(6848),en=function(Tt,ln){var Cn={};for(var Xt in Tt)Object.prototype.hasOwnProperty.call(Tt,Xt)&&ln.indexOf(Xt)<0&&(Cn[Xt]=Tt[Xt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Xt=Object.getOwnPropertySymbols(Tt);Rt<Xt.length;Rt++)ln.indexOf(Xt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Xt[Rt])&&(Cn[Xt[Rt]]=Tt[Xt[Rt]]);return Cn};function cn(Tt){return Tt?typeof Tt=="object"&&!je.isValidElement(Tt)?Tt:{title:Tt}:null}var On=Tt=>{let{prefixCls:ln,label:Cn,htmlFor:Xt,labelCol:Rt,labelAlign:fn,colon:un,required:Gn,requiredMark:Xn,tooltip:$t}=Tt;var kn;const[Wn]=(0,jt.Z)("Form"),{vertical:lr,labelAlign:on,labelCol:Mn,labelWrap:an,colon:xn}=je.useContext(ce.q3);if(!Cn)return null;const gn=Rt||Mn||{},Sn=fn||on,An=`${ln}-item-label`,Nn=oe()(An,Sn==="left"&&`${An}-left`,gn.className,{[`${An}-wrap`]:!!an});let Fn=Cn;const zn=un===!0||xn!==!1&&un!==!1;zn&&!lr&&typeof Cn=="string"&&Cn.trim()!==""&&(Fn=Cn.replace(/[:|:]\s*$/,""));const mn=cn($t);if(mn){const{icon:bn=je.createElement(zt.Z,null)}=mn,Jn=en(mn,["icon"]),sr=je.createElement(Kt.Z,Object.assign({},Jn),je.cloneElement(bn,{className:`${ln}-item-tooltip`,title:""}));Fn=je.createElement(je.Fragment,null,Fn,sr)}const Fr=Xn==="optional",Qr=typeof Xn=="function";Qr?Fn=Xn(Fn,{required:!!Gn}):Fr&&!Gn&&(Fn=je.createElement(je.Fragment,null,Fn,je.createElement("span",{className:`${ln}-item-optional`,title:""},(Wn==null?void 0:Wn.optional)||((kn=Yt.Z.Form)===null||kn===void 0?void 0:kn.optional))));const Br=oe()({[`${ln}-item-required`]:Gn,[`${ln}-item-required-mark-optional`]:Fr||Qr,[`${ln}-item-no-colon`]:!zn});return je.createElement(Te.Z,Object.assign({},gn,{className:Nn}),je.createElement("label",{htmlFor:Xt,className:Br,title:typeof Cn=="string"?Cn:""},Fn))},or=Ge(29679),er=Ge(19248),Tr=Ge(96512),Kn=Ge(58617);const Nr={success:or.Z,warning:Tr.Z,error:er.Z,validating:Kn.Z};function kr(Tt){let{children:ln,errors:Cn,warnings:Xt,hasFeedback:Rt,validateStatus:fn,prefixCls:un,meta:Gn,noStyle:Xn}=Tt;const $t=`${un}-item`,{feedbackIcons:kn}=je.useContext(ce.q3),Wn=xt(Cn,Xt,Gn,null,!!Rt,fn),{isFormItemInput:lr,status:on}=je.useContext(ce.aM),Mn=je.useMemo(()=>{var an;let xn;if(Rt){const An=Rt!==!0&&Rt.icons||kn,Nn=Wn&&((an=An==null?void 0:An({status:Wn,errors:Cn,warnings:Xt}))===null||an===void 0?void 0:an[Wn]),Fn=Wn&&Nr[Wn];xn=Nn!==!1&&Fn?je.createElement("span",{className:oe()(`${$t}-feedback-icon`,`${$t}-feedback-icon-${Wn}`)},Nn||je.createElement(Fn,null)):null}let gn=!0,Sn=Wn||"";return Xn&&(gn=lr,Sn=(Wn!=null?Wn:on)||""),{status:Sn,errors:Cn,warnings:Xt,hasFeedback:!!Rt,feedbackIcon:xn,isFormItemInput:gn}},[Wn,Rt,Xn,lr,on]);return je.createElement(ce.aM.Provider,{value:Mn},ln)}var Ur=function(Tt,ln){var Cn={};for(var Xt in Tt)Object.prototype.hasOwnProperty.call(Tt,Xt)&&ln.indexOf(Xt)<0&&(Cn[Xt]=Tt[Xt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Xt=Object.getOwnPropertySymbols(Tt);Rt<Xt.length;Rt++)ln.indexOf(Xt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Xt[Rt])&&(Cn[Xt[Rt]]=Tt[Xt[Rt]]);return Cn};function Jr(Tt){const{prefixCls:ln,className:Cn,rootClassName:Xt,style:Rt,help:fn,errors:un,warnings:Gn,validateStatus:Xn,meta:$t,hasFeedback:kn,hidden:Wn,children:lr,fieldId:on,required:Mn,isRequired:an,onSubItemMetaChange:xn}=Tt,gn=Ur(Tt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Sn=`${ln}-item`,{requiredMark:An}=je.useContext(ce.q3),Nn=je.useRef(null),Fn=we(un),zn=we(Gn),xr=fn!=null,mn=!!(xr||un.length||Gn.length),Fr=!!Nn.current&&(0,$e.Z)(Nn.current),[Qr,Br]=je.useState(null);(0,tt.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 Kr=mr?Fn:$t.errors,ri=mr?zn:$t.warnings;return xt(Kr,ri,$t,"",!!kn,Xn)}(),Sr=oe()(Sn,Cn,Xt,{[`${Sn}-with-help`]:xr||Fn.length||zn.length,[`${Sn}-has-feedback`]:sr&&kn,[`${Sn}-has-success`]:sr==="success",[`${Sn}-has-warning`]:sr==="warning",[`${Sn}-has-error`]:sr==="error",[`${Sn}-is-validating`]:sr==="validating",[`${Sn}-hidden`]:Wn});return je.createElement("div",{className:Sr,style:Rt,ref:Nn},je.createElement(Be.Z,Object.assign({className:`${Sn}-row`},(0,We.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"])),je.createElement(On,Object.assign({htmlFor:on},Tt,{requiredMark:An,required:Mn!=null?Mn:an,prefixCls:ln})),je.createElement(Ot,Object.assign({},Tt,$t,{errors:Fn,warnings:zn,prefixCls:ln,status:sr,help:fn,marginBottom:Qr,onErrorVisibleChanged:bn}),je.createElement(ce.qI.Provider,{value:xn},je.createElement(kr,{prefixCls:ln,meta:$t,errors:$t.errors,warnings:$t.warnings,hasFeedback:kn,validateStatus:sr},lr)))),!!Qr&&je.createElement("div",{className:`${Sn}-margin-offset`,style:{marginBottom:-Qr}}))}const Mr="__SPLIT__",di=null,Dr=je.memo(Tt=>{let{children:ln}=Tt;return ln},(Tt,ln)=>Tt.value===ln.value&&Tt.update===ln.update&&Tt.childProps.length===ln.childProps.length&&Tt.childProps.every((Cn,Xt)=>Cn===ln.childProps[Xt]));function ot(Tt){return Tt!=null}function Ci(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function xi(Tt){const{name:ln,noStyle:Cn,className:Xt,dependencies:Rt,prefixCls:fn,shouldUpdate:un,rules:Gn,children:Xn,required:$t,label:kn,messageVariables:Wn,trigger:lr="onChange",validateTrigger:on,hidden:Mn,help:an}=Tt,{getPrefixCls:xn}=je.useContext(Ve.E_),{name:gn}=je.useContext(ce.q3),Sn=ct(Xn),An=typeof Sn=="function",Nn=je.useContext(ce.qI),{validateTrigger:Fn}=je.useContext(_e.FieldContext),zn=on!==void 0?on:Fn,xr=ot(ln),mn=xn("form",fn),[Fr,Qr]=Le(mn),Br=je.useContext(_e.ListContext),bn=je.useRef(),[Jn,sr]=Xe({}),[Sr,mr]=(0,Ct.Z)(()=>Ci()),Kr=wn=>{const zr=Br==null?void 0:Br.getKey(wn.name);if(mr(wn.destroy?Ci():wn,!0),Cn&&an!==!1&&Nn){let $i=wn.name;if(wn.destroy)$i=bn.current||$i;else if(zr!==void 0){const[Mi,yo]=zr;$i=[Mi].concat((0,et.Z)(yo)),bn.current=$i}Nn(wn,$i)}},ri=(wn,zr)=>{sr($i=>{const Mi=Object.assign({},$i),no=[].concat((0,et.Z)(wn.name.slice(0,-1)),(0,et.Z)(zr)).join(Mr);return wn.destroy?delete Mi[no]:Mi[no]=wn,Mi})},[Rr,br]=je.useMemo(()=>{const wn=(0,et.Z)(Sr.errors),zr=(0,et.Z)(Sr.warnings);return Object.values(Jn).forEach($i=>{wn.push.apply(wn,(0,et.Z)($i.errors||[])),zr.push.apply(zr,(0,et.Z)($i.warnings||[]))}),[wn,zr]},[Jn,Sr.errors,Sr.warnings]),ur=Ue();function vn(wn,zr,$i){return Cn&&!Mn?je.createElement(kr,{prefixCls:mn,hasFeedback:Tt.hasFeedback,validateStatus:Tt.validateStatus,meta:Sr,errors:Rr,warnings:br,noStyle:!0},wn):je.createElement(Jr,Object.assign({key:"row"},Tt,{className:oe()(Xt,Qr),prefixCls:mn,fieldId:zr,isRequired:$i,errors:Rr,warnings:br,meta:Sr,onSubItemMetaChange:ri}),wn)}if(!xr&&!An&&!Rt)return Fr(vn(Sn));let cr={};return typeof kn=="string"?cr.label=kn:ln&&(cr.label=String(ln)),Wn&&(cr=Object.assign(Object.assign({},cr),Wn)),Fr(je.createElement(_e.Field,Object.assign({},Tt,{messageVariables:cr,trigger:lr,validateTrigger:zn,onMetaChange:Kr}),(wn,zr,$i)=>{const Mi=pt(ln).length&&zr?zr.name:[],yo=wt(Mi,gn),no=$t!==void 0?$t:!!(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({},wn);let Hr=null;if(Array.isArray(Sn)&&xr)Hr=Sn;else if(!(An&&(!(un||Rt)||xr))){if(!(Rt&&!An&&!xr))if((0,bt.l$)(Sn)){const wi=Object.assign(Object.assign({},Sn.props),Wr);if(wi.id||(wi.id=yo),an||Rr.length>0||br.length>0||Tt.extra){const At=[];(an||Rr.length>0)&&At.push(`${yo}_help`),Tt.extra&&At.push(`${yo}_extra`),wi["aria-describedby"]=At.join(" ")}Rr.length>0&&(wi["aria-invalid"]="true"),no&&(wi["aria-required"]="true"),(0,st.Yr)(Sn)&&(wi.ref=ur(Mi,Sn)),new Set([].concat((0,et.Z)(pt(lr)),(0,et.Z)(pt(zn)))).forEach(At=>{wi[At]=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[At])===null||gi===void 0||(Fi=gi).call.apply(Fi,[Wr].concat(ii)),(So=(oo=Sn.props)[At])===null||So===void 0||(Ki=So).call.apply(Ki,[oo].concat(ii))}});const fr=[wi["aria-required"],wi["aria-invalid"],wi["aria-describedby"]];Hr=je.createElement(Dr,{value:Wr[Tt.valuePropName||"value"],update:Sn,childProps:fr},(0,bt.Tm)(Sn,wi))}else An&&(un||Rt)&&!xr?Hr=Sn($i):Hr=Sn}return vn(Hr,yo,no)}))}const pr=xi;pr.useStatus=vt;var Pr=pr,jr=function(Tt,ln){var Cn={};for(var Xt in Tt)Object.prototype.hasOwnProperty.call(Tt,Xt)&&ln.indexOf(Xt)<0&&(Cn[Xt]=Tt[Xt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Xt=Object.getOwnPropertySymbols(Tt);Rt<Xt.length;Rt++)ln.indexOf(Xt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Xt[Rt])&&(Cn[Xt[Rt]]=Tt[Xt[Rt]]);return Cn},nr=Tt=>{var{prefixCls:ln,children:Cn}=Tt,Xt=jr(Tt,["prefixCls","children"]);const{getPrefixCls:Rt}=je.useContext(Ve.E_),fn=Rt("form",ln),un=je.useMemo(()=>({prefixCls:fn,status:"error"}),[fn]);return je.createElement(_e.List,Object.assign({},Xt),(Gn,Xn,$t)=>je.createElement(ce.Rk.Provider,{value:un},Cn(Gn.map(kn=>Object.assign(Object.assign({},kn),{fieldKey:kn.key})),Xn,{errors:$t.errors,warnings:$t.warnings})))};function ar(){const{form:Tt}=(0,je.useContext)(ce.q3);return Tt}const nn=Pt;nn.Item=Pr,nn.List=nr,nn.ErrorList=Je,nn.useForm=mt,nn.useFormInstance=ar,nn.useWatch=_e.useWatch,nn.Provider=ce.RV,nn.create=()=>{};var qt=nn},8628:function(_n,Pn,Ge){"use strict";var et=Ge(59301),Mt=Ge(34280),oe=Ge(56762),ze=Ge(69507);function je(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ce=(0,et.useRef)({}),we=(0,oe.Z)(),Me=(0,ze.ZP)();return(0,Mt.Z)(()=>{const Se=Me.subscribe(Pe=>{ce.current=Pe,ve&&we()});return()=>Me.unsubscribe(Se)},[]),ce.current}Pn.Z=je},9432:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return le},n:function(){return ae}});var et=Ge(19248),Mt=Ge(92310),oe=Ge.n(Mt),ze=Ge(93681),je=Ge(8654),ve=Ge(59301),ce=Ge(19080),we=Ge(36355),Me=Ge(1684),Se=Ge(19716),Pe=Ge(32441),me=Ge(33234),xe=Ge(59412),fe=Ge(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 Ie=0,Ce=Object.getOwnPropertySymbols(ue);Ie<Ce.length;Ie++)pe.indexOf(Ce[Ie])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ce[Ie])&&(be[Ce[Ie]]=ue[Ce[Ie]]);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,ve.forwardRef)((ue,pe)=>{var be;const{prefixCls:Ce,bordered:Ie=!0,status:Oe,size:Le,disabled:Ne,onBlur:De,onFocus:Re,suffix:Je,allowClear:_e,addonAfter:Ve,addonBefore:Qe,className:ut,style:dt,styles:St,rootClassName:qe,onChange:it,classNames:pt}=ue,wt=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:xt,direction:ft,input:mt}=ve.useContext(we.E_),yt=xt("input",Ce),It=(0,ve.useRef)(null),[kt,Ut]=(0,fe.ZP)(yt),{compactSize:Pt,compactItemClassnames:Ct}=(0,me.ri)(yt,ft),st=(0,Se.Z)(gt=>{var Ze;return(Ze=Le!=null?Le:Pt)!==null&&Ze!==void 0?Ze:gt}),bt=ve.useContext(Me.Z),at=Ne!=null?Ne:bt,{status:ct,hasFeedback:Lt,feedbackIcon:vt}=(0,ve.useContext)(Pe.aM),nt=(0,ce.F)(ct,Oe),Xe=z(ue)||!!Lt,Ue=(0,ve.useRef)(Xe);(0,ve.useEffect)(()=>{var gt;Xe&&Ue.current,Ue.current=Xe},[Xe]);const $e=(0,xe.Z)(It,!0),tt=gt=>{$e(),De==null||De(gt)},We=gt=>{$e(),Re==null||Re(gt)},Be=gt=>{$e(),it==null||it(gt)},Te=(Lt||Je)&&ve.createElement(ve.Fragment,null,Je,Lt&&vt);let Ke;return typeof _e=="object"&&(_e!=null&&_e.clearIcon)?Ke=_e:_e&&(Ke={clearIcon:ve.createElement(et.Z,null)}),kt(ve.createElement(ze.default,Object.assign({ref:(0,je.sQ)(pe,It),prefixCls:yt,autoComplete:mt==null?void 0:mt.autoComplete},wt,{disabled:at,onBlur:tt,onFocus:We,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),dt),styles:Object.assign(Object.assign({},mt==null?void 0:mt.styles),St),suffix:Te,allowClear:Ke,className:oe()(ut,qe,Ct,mt==null?void 0:mt.className),onChange:Be,addonAfter:Ve&&ve.createElement(me.BR,null,ve.createElement(Pe.Ux,{override:!0,status:!0},Ve)),addonBefore:Qe&&ve.createElement(me.BR,null,ve.createElement(Pe.Ux,{override:!0,status:!0},Qe)),classNames:Object.assign(Object.assign(Object.assign({},pt),mt==null?void 0:mt.classNames),{input:oe()({[`${yt}-sm`]:st==="small",[`${yt}-lg`]:st==="large",[`${yt}-rtl`]:ft==="rtl",[`${yt}-borderless`]:!Ie},!Xe&&(0,ce.Z)(yt,nt),pt==null?void 0:pt.input,(be=mt==null?void 0:mt.classNames)===null||be===void 0?void 0:be.input,Ut)}),classes:{affixWrapper:oe()({[`${yt}-affix-wrapper-sm`]:st==="small",[`${yt}-affix-wrapper-lg`]:st==="large",[`${yt}-affix-wrapper-rtl`]:ft==="rtl",[`${yt}-affix-wrapper-borderless`]:!Ie},(0,ce.Z)(`${yt}-affix-wrapper`,nt,Lt),Ut),wrapper:oe()({[`${yt}-group-rtl`]:ft==="rtl"},Ut),group:oe()({[`${yt}-group-wrapper-sm`]:st==="small",[`${yt}-group-wrapper-lg`]:st==="large",[`${yt}-group-wrapper-rtl`]:ft==="rtl",[`${yt}-group-wrapper-disabled`]:at},(0,ce.Z)(`${yt}-group-wrapper`,nt,Lt),Ut)}})))})},1643:function(_n,Pn,Ge){"use strict";var et=Ge(19248),Mt=Ge(92310),oe=Ge.n(Mt),ze=Ge(9296),je=Ge(59301),ve=Ge(19080),ce=Ge(36355),we=Ge(1684),Me=Ge(19716),Se=Ge(32441),Pe=Ge(9432),me=Ge(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,je.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:be,showCount:Ce,classNames:Ie,rootClassName:Oe,className:Le}=z,Ne=xe(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:De,direction:Re}=je.useContext(ce.E_),Je=(0,Me.Z)(le),_e=je.useContext(we.Z),Ve=ue!=null?ue:_e,{status:Qe,hasFeedback:ut,feedbackIcon:dt}=je.useContext(Se.aM),St=(0,ve.F)(Qe,pe),qe=je.useRef(null);je.useImperativeHandle(ee,()=>{var ft;return{resizableTextArea:(ft=qe.current)===null||ft===void 0?void 0:ft.resizableTextArea,focus:mt=>{var yt,It;(0,Pe.n)((It=(yt=qe.current)===null||yt===void 0?void 0:yt.resizableTextArea)===null||It===void 0?void 0:It.textArea,mt)},blur:()=>{var mt;return(mt=qe.current)===null||mt===void 0?void 0:mt.blur()}}});const it=De("input",ae);let pt;typeof be=="object"&&(be!=null&&be.clearIcon)?pt=be:be&&(pt={clearIcon:je.createElement(et.Z,null)});const[wt,xt]=(0,me.ZP)(it);return wt(je.createElement(ze.default,Object.assign({},Ne,{disabled:Ve,allowClear:pt,className:oe()(Le,Oe),classes:{affixWrapper:oe()(`${it}-textarea-affix-wrapper`,{[`${it}-affix-wrapper-rtl`]:Re==="rtl",[`${it}-affix-wrapper-borderless`]:!re,[`${it}-affix-wrapper-sm`]:Je==="small",[`${it}-affix-wrapper-lg`]:Je==="large",[`${it}-textarea-show-count`]:Ce},(0,ve.Z)(`${it}-affix-wrapper`,St),xt)},classNames:Object.assign(Object.assign({},Ie),{textarea:oe()({[`${it}-borderless`]:!re,[`${it}-sm`]:Je==="small",[`${it}-lg`]:Je==="large"},(0,ve.Z)(it,St),xt,Ie==null?void 0:Ie.textarea)}),prefixCls:it,suffix:ut&&je.createElement("span",{className:`${it}-textarea-suffix`},dt),showCount:Ce,ref:qe})))});Pn.Z=fe},59412:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Mt}});var et=Ge(59301);function Mt(oe,ze){const je=(0,et.useRef)([]),ve=()=>{je.current.push(setTimeout(()=>{var ce,we,Me,Se;!((ce=oe.current)===null||ce===void 0)&&ce.input&&((we=oe.current)===null||we===void 0?void 0:we.input.getAttribute("type"))==="password"&&(!((Me=oe.current)===null||Me===void 0)&&Me.input.hasAttribute("value"))&&((Se=oe.current)===null||Se===void 0||Se.input.removeAttribute("value"))}))};return(0,et.useEffect)(()=>(ze&&ve(),()=>je.current.forEach(ce=>{ce&&clearTimeout(ce)})),[]),ve}},92832:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{default:function(){return Je}});var et=Ge(92310),Mt=Ge.n(et),oe=Ge(59301),ze=Ge(36355),je=Ge(32441),ve=Ge(9937),we=_e=>{const{getPrefixCls:Ve,direction:Qe}=(0,oe.useContext)(ze.E_),{prefixCls:ut,className:dt}=_e,St=Ve("input-group",ut),qe=Ve("input"),[it,pt]=(0,ve.ZP)(qe),wt=Mt()(St,{[`${St}-lg`]:_e.size==="large",[`${St}-sm`]:_e.size==="small",[`${St}-compact`]:_e.compact,[`${St}-rtl`]:Qe==="rtl"},pt,dt),xt=(0,oe.useContext)(je.aM),ft=(0,oe.useMemo)(()=>Object.assign(Object.assign({},xt),{isFormItemInput:!1}),[xt]);return it(oe.createElement("span",{className:wt,style:_e.style,onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onFocus:_e.onFocus,onBlur:_e.onBlur},oe.createElement(je.aM.Provider,{value:ft},_e.children)))},Me=Ge(9432),Se=Ge(73331),Pe=Ge(15277),me=Ge(2738),xe=Ge(8654),fe=Ge(59412),z=function(_e,Ve){var Qe={};for(var ut in _e)Object.prototype.hasOwnProperty.call(_e,ut)&&Ve.indexOf(ut)<0&&(Qe[ut]=_e[ut]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ut=Object.getOwnPropertySymbols(_e);dt<ut.length;dt++)Ve.indexOf(ut[dt])<0&&Object.prototype.propertyIsEnumerable.call(_e,ut[dt])&&(Qe[ut[dt]]=_e[ut[dt]]);return Qe};const ee=_e=>_e?oe.createElement(Pe.Z,null):oe.createElement(Se.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=oe.forwardRef((_e,Ve)=>{const{visibilityToggle:Qe=!0}=_e,ut=typeof Qe=="object"&&Qe.visible!==void 0,[dt,St]=(0,oe.useState)(()=>ut?Qe.visible:!1),qe=(0,oe.useRef)(null);oe.useEffect(()=>{ut&&St(Qe.visible)},[ut,Qe]);const it=(0,fe.Z)(qe),pt=()=>{const{disabled:at}=_e;at||(dt&&it(),St(ct=>{var Lt;const vt=!ct;return typeof Qe=="object"&&((Lt=Qe.onVisibleChange)===null||Lt===void 0||Lt.call(Qe,vt)),vt}))},wt=at=>{const{action:ct="click",iconRender:Lt=ee}=_e,vt=ae[ct]||"",nt=Lt(dt),Xe={[vt]:pt,className:`${at}-icon`,key:"passwordIcon",onMouseDown:Ue=>{Ue.preventDefault()},onMouseUp:Ue=>{Ue.preventDefault()}};return oe.cloneElement(oe.isValidElement(nt)?nt:oe.createElement("span",null,nt),Xe)},{className:xt,prefixCls:ft,inputPrefixCls:mt,size:yt}=_e,It=z(_e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:kt}=oe.useContext(ze.E_),Ut=kt("input",mt),Pt=kt("input-password",ft),Ct=Qe&&wt(Pt),st=Mt()(Pt,xt,{[`${Pt}-${yt}`]:!!yt}),bt=Object.assign(Object.assign({},(0,me.Z)(It,["suffix","iconRender","visibilityToggle"])),{type:dt?"text":"password",className:st,prefixCls:Ut,suffix:Ct});return yt&&(bt.size=yt),oe.createElement(Me.Z,Object.assign({ref:(0,xe.sQ)(Ve,qe)},bt))}),ue=Ge(47472),pe=Ge(92343),be=Ge(3113),Ce=Ge(19716),Ie=Ge(33234),Oe=function(_e,Ve){var Qe={};for(var ut in _e)Object.prototype.hasOwnProperty.call(_e,ut)&&Ve.indexOf(ut)<0&&(Qe[ut]=_e[ut]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ut=Object.getOwnPropertySymbols(_e);dt<ut.length;dt++)Ve.indexOf(ut[dt])<0&&Object.prototype.propertyIsEnumerable.call(_e,ut[dt])&&(Qe[ut[dt]]=_e[ut[dt]]);return Qe},Ne=oe.forwardRef((_e,Ve)=>{const{prefixCls:Qe,inputPrefixCls:ut,className:dt,size:St,suffix:qe,enterButton:it=!1,addonAfter:pt,loading:wt,disabled:xt,onSearch:ft,onChange:mt,onCompositionStart:yt,onCompositionEnd:It}=_e,kt=Oe(_e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ut,direction:Pt}=oe.useContext(ze.E_),Ct=oe.useRef(!1),st=Ut("input-search",Qe),bt=Ut("input",ut),{compactSize:at}=(0,Ie.ri)(st,Pt),ct=(0,Ce.Z)(Ot=>{var zt;return(zt=St!=null?St:at)!==null&&zt!==void 0?zt:Ot}),Lt=oe.useRef(null),vt=Ot=>{Ot&&Ot.target&&Ot.type==="click"&&ft&&ft(Ot.target.value,Ot,{source:"clear"}),mt&&mt(Ot)},nt=Ot=>{var zt;document.activeElement===((zt=Lt.current)===null||zt===void 0?void 0:zt.input)&&Ot.preventDefault()},Xe=Ot=>{var zt,Yt;ft&&ft((Yt=(zt=Lt.current)===null||zt===void 0?void 0:zt.input)===null||Yt===void 0?void 0:Yt.value,Ot,{source:"input"})},Ue=Ot=>{Ct.current||wt||Xe(Ot)},$e=typeof it=="boolean"?oe.createElement(ue.Z,null):null,tt=`${st}-button`;let We;const Be=it||{},Te=Be.type&&Be.type.__ANT_BUTTON===!0;Te||Be.type==="button"?We=(0,pe.Tm)(Be,Object.assign({onMouseDown:nt,onClick:Ot=>{var zt,Yt;(Yt=(zt=Be==null?void 0:Be.props)===null||zt===void 0?void 0:zt.onClick)===null||Yt===void 0||Yt.call(zt,Ot),Xe(Ot)},key:"enterButton"},Te?{className:tt,size:ct}:{})):We=oe.createElement(be.ZP,{className:tt,type:it?"primary":void 0,size:ct,disabled:xt,key:"enterButton",onMouseDown:nt,onClick:Xe,loading:wt,icon:$e},it),pt&&(We=[We,(0,pe.Tm)(pt,{key:"addonAfter"})]);const Ke=Mt()(st,{[`${st}-rtl`]:Pt==="rtl",[`${st}-${ct}`]:!!ct,[`${st}-with-button`]:!!it},dt),gt=Ot=>{Ct.current=!0,yt==null||yt(Ot)},Ze=Ot=>{Ct.current=!1,It==null||It(Ot)};return oe.createElement(Me.Z,Object.assign({ref:(0,xe.sQ)(Lt,Ve),onPressEnter:Ue},kt,{size:ct,onCompositionStart:gt,onCompositionEnd:Ze,prefixCls:bt,addonAfter:We,suffix:qe,onChange:vt,className:Ke,disabled:xt}))}),De=Ge(1643);const Re=Me.Z;Re.Group=we,Re.Search=Ne,Re.TextArea=De.Z,Re.Password=le;var Je=Re},45818:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{D:function(){return ue},Z:function(){return Ce}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ze=oe,je=Ge(7657),ve=function(Oe,Le){return Mt.createElement(je.Z,(0,et.Z)({},Oe,{ref:Le,icon:ze}))},ce=Mt.forwardRef(ve),we=ce,Me=Ge(33853),Se=Ge(38819),Pe=Ge(92310),me=Ge.n(Pe),xe=Ge(2738),z=Ie=>!isNaN(parseFloat(Ie))&&isFinite(Ie),ee=Ge(36355),ae=Ge(84966),re=function(Ie,Oe){var Le={};for(var Ne in Ie)Object.prototype.hasOwnProperty.call(Ie,Ne)&&Oe.indexOf(Ne)<0&&(Le[Ne]=Ie[Ne]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ne=Object.getOwnPropertySymbols(Ie);De<Ne.length;De++)Oe.indexOf(Ne[De])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ne[De])&&(Le[Ne[De]]=Ie[Ne[De]]);return Le};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=Mt.createContext({}),pe=(()=>{let Ie=0;return function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ie+=1,`${Oe}${Ie}`}})();var Ce=Mt.forwardRef((Ie,Oe)=>{const{prefixCls:Le,className:Ne,trigger:De,children:Re,defaultCollapsed:Je=!1,theme:_e="dark",style:Ve={},collapsible:Qe=!1,reverseArrow:ut=!1,width:dt=200,collapsedWidth:St=80,zeroWidthTriggerStyle:qe,breakpoint:it,onCollapse:pt,onBreakpoint:wt}=Ie,xt=re(Ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ft}=(0,Mt.useContext)(ae.Gs),[mt,yt]=(0,Mt.useState)("collapsed"in Ie?Ie.collapsed:Je),[It,kt]=(0,Mt.useState)(!1);(0,Mt.useEffect)(()=>{"collapsed"in Ie&&yt(Ie.collapsed)},[Ie.collapsed]);const Ut=(ct,Lt)=>{"collapsed"in Ie||yt(ct),pt==null||pt(ct,Lt)},Pt=(0,Mt.useRef)();Pt.current=ct=>{kt(ct.matches),wt==null||wt(ct.matches),mt!==ct.matches&&Ut(ct.matches,"responsive")},(0,Mt.useEffect)(()=>{function ct(vt){return Pt.current(vt)}let Lt;if(typeof window!="undefined"){const{matchMedia:vt}=window;if(vt&&it&&it in le){Lt=vt(`(max-width: ${le[it]})`);try{Lt.addEventListener("change",ct)}catch(nt){Lt.addListener(ct)}ct(Lt)}}return()=>{try{Lt==null||Lt.removeEventListener("change",ct)}catch(vt){Lt==null||Lt.removeListener(ct)}}},[it]),(0,Mt.useEffect)(()=>{const ct=pe("ant-sider-");return ft.addSider(ct),()=>ft.removeSider(ct)},[]);const Ct=()=>{Ut(!mt,"clickTrigger")},{getPrefixCls:st}=(0,Mt.useContext)(ee.E_),bt=()=>{const ct=st("layout-sider",Le),Lt=(0,xe.Z)(xt,["collapsed"]),vt=mt?St:dt,nt=z(vt)?`${vt}px`:String(vt),Xe=parseFloat(String(St||0))===0?Mt.createElement("span",{onClick:Ct,className:me()(`${ct}-zero-width-trigger`,`${ct}-zero-width-trigger-${ut?"right":"left"}`),style:qe},De||Mt.createElement(we,null)):null,tt={expanded:ut?Mt.createElement(Se.Z,null):Mt.createElement(Me.Z,null),collapsed:ut?Mt.createElement(Me.Z,null):Mt.createElement(Se.Z,null)}[mt?"collapsed":"expanded"],We=De!==null?Xe||Mt.createElement("div",{className:`${ct}-trigger`,onClick:Ct,style:{width:nt}},De||tt):null,Be=Object.assign(Object.assign({},Ve),{flex:`0 0 ${nt}`,maxWidth:nt,minWidth:nt,width:nt}),Te=me()(ct,`${ct}-${_e}`,{[`${ct}-collapsed`]:!!mt,[`${ct}-has-trigger`]:Qe&&De!==null&&!Xe,[`${ct}-below`]:!!It,[`${ct}-zero-width`]:parseFloat(nt)===0},Ne);return Mt.createElement("aside",Object.assign({className:Te},Lt,{style:Be,ref:Oe}),Mt.createElement("div",{className:`${ct}-children`},Re),Qe||It&&Xe?We:null)},at=Mt.useMemo(()=>({siderCollapsed:mt}),[mt]);return Mt.createElement(ue.Provider,{value:at},bt())})},84966:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return xe},ZP:function(){return pe}});var et=Ge(19127),Mt=Ge(92310),oe=Ge.n(Mt),ze=Ge(2738),je=Ge(59301),ve=Ge(36355),ce=Ge(83116),Me=be=>{const{componentCls:Ce,bodyBg:Ie,lightSiderBg:Oe,lightTriggerBg:Le,lightTriggerColor:Ne}=be;return{[`${Ce}-sider-light`]:{background:Oe,[`${Ce}-sider-trigger`]:{color:Ne,background:Le},[`${Ce}-sider-zero-width-trigger`]:{color:Ne,background:Le,border:`1px solid ${Ie}`,borderInlineStart:0}}}};const Se=be=>{const{antCls:Ce,componentCls:Ie,colorText:Oe,triggerColor:Le,footerBg:Ne,triggerBg:De,headerHeight:Re,headerPadding:Je,headerColor:_e,footerPadding:Ve,triggerHeight:Qe,zeroTriggerHeight:ut,zeroTriggerWidth:dt,motionDurationMid:St,motionDurationSlow:qe,fontSize:it,borderRadius:pt,bodyBg:wt,headerBg:xt,siderBg:ft}=be;return{[Ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:wt,"&, *":{boxSizing:"border-box"},[`&${Ie}-has-sider`]:{flexDirection:"row",[`> ${Ie}, > ${Ie}-content`]:{width:0}},[`${Ie}-header, &${Ie}-footer`]:{flex:"0 0 auto"},[`${Ie}-sider`]:{position:"relative",minWidth:0,background:ft,transition:`all ${St}, 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:Le,lineHeight:`${Qe}px`,textAlign:"center",background:De,cursor:"pointer",transition:`all ${St}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Re,insetInlineEnd:-dt,zIndex:1,width:dt,height:ut,color:Le,fontSize:be.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ft,borderStartStartRadius:0,borderStartEndRadius:pt,borderEndEndRadius:pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-dt,borderStartStartRadius:pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pt}}}}},Me(be)),{"&-rtl":{direction:"rtl"}}),[`${Ie}-header`]:{height:Re,padding:Je,color:_e,lineHeight:`${Re}px`,background:xt,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${Ie}-footer`]:{padding:Ve,color:Oe,fontSize:it,background:Ne},[`${Ie}-content`]:{flex:"auto",minHeight:0}}};var Pe=(0,ce.Z)("Layout",be=>[Se(be)],be=>{const{colorBgLayout:Ce,controlHeight:Ie,controlHeightLG:Oe,colorText:Le,controlHeightSM:Ne,marginXXS:De,colorTextLightSolid:Re,colorBgContainer:Je}=be,_e=Oe*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:Ie*2,headerPadding:`0 ${_e}px`,headerColor:Le,footerPadding:`${Ne}px ${_e}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Oe+De*2,triggerBg:"#002140",triggerColor:Re,zeroTriggerWidth:Oe,zeroTriggerHeight:Oe,lightSiderBg:Je,lightTriggerBg:Je,lightTriggerColor:Le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(be,Ce){var Ie={};for(var Oe in be)Object.prototype.hasOwnProperty.call(be,Oe)&&Ce.indexOf(Oe)<0&&(Ie[Oe]=be[Oe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Oe=Object.getOwnPropertySymbols(be);Le<Oe.length;Le++)Ce.indexOf(Oe[Le])<0&&Object.prototype.propertyIsEnumerable.call(be,Oe[Le])&&(Ie[Oe[Le]]=be[Oe[Le]]);return Ie};const xe=je.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function fe(be){let{suffixCls:Ce,tagName:Ie,displayName:Oe}=be;return Le=>je.forwardRef((De,Re)=>je.createElement(Le,Object.assign({ref:Re,suffixCls:Ce,tagName:Ie},De)))}const z=je.forwardRef((be,Ce)=>{const{prefixCls:Ie,suffixCls:Oe,className:Le,tagName:Ne}=be,De=me(be,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Re}=je.useContext(ve.E_),Je=Re("layout",Ie),[_e,Ve]=Pe(Je),Qe=Oe?`${Je}-${Oe}`:Je;return _e(je.createElement(Ne,Object.assign({className:oe()(Ie||Qe,Le,Ve),ref:Ce},De)))}),ee=je.forwardRef((be,Ce)=>{const{direction:Ie}=je.useContext(ve.E_),[Oe,Le]=je.useState([]),{prefixCls:Ne,className:De,rootClassName:Re,children:Je,hasSider:_e,tagName:Ve,style:Qe}=be,ut=me(be,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),dt=(0,ze.Z)(ut,["suffixCls"]),{getPrefixCls:St,layout:qe}=je.useContext(ve.E_),it=St("layout",Ne),[pt,wt]=Pe(it),xt=oe()(it,{[`${it}-has-sider`]:typeof _e=="boolean"?_e:Oe.length>0,[`${it}-rtl`]:Ie==="rtl"},qe==null?void 0:qe.className,De,Re,wt),ft=je.useMemo(()=>({siderHook:{addSider:mt=>{Le(yt=>[].concat((0,et.Z)(yt),[mt]))},removeSider:mt=>{Le(yt=>yt.filter(It=>It!==mt))}}}),[]);return pt(je.createElement(xe.Provider,{value:ft},je.createElement(Ve,Object.assign({ref:Ce,className:xt,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Qe)},dt),Je)))}),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(_n,Pn,Ge){"use strict";Ge.d(Pn,{J:function(){return ve}});var et=Ge(59301),Mt=Ge(33234),oe=Ge(70425),ze=function(ce,we){var Me={};for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&we.indexOf(Se)<0&&(Me[Se]=ce[Se]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Se=Object.getOwnPropertySymbols(ce);Pe<Se.length;Pe++)we.indexOf(Se[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ce,Se[Pe])&&(Me[Se[Pe]]=ce[Se[Pe]]);return Me};const je=et.createContext(null),ve=et.forwardRef((ce,we)=>{const{children:Me}=ce,Se=ze(ce,["children"]),Pe=et.useContext(je),me=et.useMemo(()=>Object.assign(Object.assign({},Pe),Se),[Pe,Se.prefixCls,Se.mode,Se.selectable]);return et.createElement(je.Provider,{value:me},et.createElement(Mt.BR,null,(0,oe.supportNodeRef)(Me)?et.cloneElement(Me,{ref:we}):Me))});Pn.Z=je},20834:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{default:function(){return at}});var et=Ge(15285),Mt=Ge(59301),oe=Ge(45818),ze=Ge(92310),je=Ge.n(ze),ve=Ge(36355),ce=function(ct,Lt){var vt={};for(var nt in ct)Object.prototype.hasOwnProperty.call(ct,nt)&&Lt.indexOf(nt)<0&&(vt[nt]=ct[nt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,nt=Object.getOwnPropertySymbols(ct);Xe<nt.length;Xe++)Lt.indexOf(nt[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ct,nt[Xe])&&(vt[nt[Xe]]=ct[nt[Xe]]);return vt},Me=ct=>{const{prefixCls:Lt,className:vt,dashed:nt}=ct,Xe=ce(ct,["prefixCls","className","dashed"]),{getPrefixCls:Ue}=Mt.useContext(ve.E_),$e=Ue("menu",Lt),tt=je()({[`${$e}-item-divider-dashed`]:!!nt},vt);return Mt.createElement(et.iz,Object.assign({className:tt},Xe))},Se=Ge(11592),Pe=Ge(2738),me=Ge(6848),xe=Ge(92343),z=(0,Mt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=ct=>{var Lt;const{className:vt,children:nt,icon:Xe,title:Ue,danger:$e}=ct,{prefixCls:tt,firstLevel:We,direction:Be,disableMenuItemTitleTooltip:Te,inlineCollapsed:Ke}=Mt.useContext(z),gt=Kt=>{const en=Mt.createElement("span",{className:`${tt}-title-content`},nt);return(!Xe||(0,xe.l$)(nt)&&nt.type==="span")&&nt&&Kt&&We&&typeof nt=="string"?Mt.createElement("div",{className:`${tt}-inline-collapsed-noicon`},nt.charAt(0)):en},{siderCollapsed:Ze}=Mt.useContext(oe.D);let Ot=Ue;typeof Ue=="undefined"?Ot=We?nt:"":Ue===!1&&(Ot="");const zt={title:Ot};!Ze&&!Ke&&(zt.title=null,zt.open=!1);const Yt=(0,Se.Z)(nt).length;let jt=Mt.createElement(et.ck,Object.assign({},(0,Pe.Z)(ct,["title","icon","danger"]),{className:je()({[`${tt}-item-danger`]:$e,[`${tt}-item-only-child`]:(Xe?Yt+1:Yt)===1},vt),title:typeof Ue=="string"?Ue:void 0}),(0,xe.Tm)(Xe,{className:je()((0,xe.l$)(Xe)?(Lt=Xe.props)===null||Lt===void 0?void 0:Lt.className:"",`${tt}-item-icon`)}),gt(Ke));return Te||(jt=Mt.createElement(me.Z,Object.assign({},zt,{placement:Be==="rtl"?"left":"right",overlayClassName:`${tt}-inline-collapsed-tooltip`}),jt)),jt},le=ct=>{var Lt;const{popupClassName:vt,icon:nt,title:Xe,theme:Ue}=ct,$e=Mt.useContext(z),{prefixCls:tt,inlineCollapsed:We,theme:Be}=$e,Te=(0,et.Xl)();let Ke;if(!nt)Ke=We&&!Te.length&&Xe&&typeof Xe=="string"?Mt.createElement("div",{className:`${tt}-inline-collapsed-noicon`},Xe.charAt(0)):Mt.createElement("span",{className:`${tt}-title-content`},Xe);else{const Ze=(0,xe.l$)(Xe)&&Xe.type==="span";Ke=Mt.createElement(Mt.Fragment,null,(0,xe.Tm)(nt,{className:je()((0,xe.l$)(nt)?(Lt=nt.props)===null||Lt===void 0?void 0:Lt.className:"",`${tt}-item-icon`)}),Ze?Xe:Mt.createElement("span",{className:`${tt}-title-content`},Xe))}const gt=Mt.useMemo(()=>Object.assign(Object.assign({},$e),{firstLevel:!1}),[$e]);return Mt.createElement(z.Provider,{value:gt},Mt.createElement(et.Wd,Object.assign({},(0,Pe.Z)(ct,["icon"]),{title:Ke,popupClassName:je()(tt,vt,`${tt}-${Ue||Be}`)})))},ue=Ge(18785),pe=Ge(70425),be=Ge(62892),Ce=Ge(40875),Ie=function(ct,Lt){var vt={};for(var nt in ct)Object.prototype.hasOwnProperty.call(ct,nt)&&Lt.indexOf(nt)<0&&(vt[nt]=ct[nt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,nt=Object.getOwnPropertySymbols(ct);Xe<nt.length;Xe++)Lt.indexOf(nt[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ct,nt[Xe])&&(vt[nt[Xe]]=ct[nt[Xe]]);return vt};function Oe(ct){return(ct||[]).map((Lt,vt)=>{if(Lt&&typeof Lt=="object"){const nt=Lt,{label:Xe,children:Ue,key:$e,type:tt}=nt,We=Ie(nt,["label","children","key","type"]),Be=$e!=null?$e:`tmp-${vt}`;return Ue||tt==="group"?tt==="group"?Mt.createElement(et.BW,Object.assign({key:Be},We,{title:Xe}),Oe(Ue)):Mt.createElement(le,Object.assign({key:Be},We,{title:Xe}),Oe(Ue)):tt==="divider"?Mt.createElement(Me,Object.assign({key:Be},We)):Mt.createElement(ae,Object.assign({key:Be},We),Xe)}return null}).filter(Lt=>Lt)}function Le(ct){return Mt.useMemo(()=>ct&&Oe(ct),[ct])}var Ne=Ge(64993),De=Ge(17313),Re=Ge(8378),Je=Ge(13826),_e=Ge(29878),Ve=Ge(83116),Qe=Ge(37613),dt=ct=>{const{componentCls:Lt,motionDurationSlow:vt,horizontalLineHeight:nt,colorSplit:Xe,lineWidth:Ue,lineType:$e,itemPaddingInline:tt}=ct;return{[`${Lt}-horizontal`]:{lineHeight:nt,border:0,borderBottom:`${Ue}px ${$e} ${Xe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Lt}-item, ${Lt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:tt},[`> ${Lt}-item:hover,
|
|
|
> ${Lt}-item-active,
|
|
|
> ${Lt}-submenu ${Lt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Lt}-item, ${Lt}-submenu-title`]:{transition:[`border-color ${vt}`,`background ${vt}`].join(",")},[`${Lt}-submenu-arrow`]:{display:"none"}}}},qe=ct=>{let{componentCls:Lt,menuArrowOffset:vt}=ct;return{[`${Lt}-rtl`]:{direction:"rtl"},[`${Lt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Lt}-rtl${Lt}-vertical,
|
|
|
${Lt}-submenu-rtl ${Lt}-vertical`]:{[`${Lt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${vt})`},"&::after":{transform:`rotate(45deg) translateY(${vt})`}}}}};const it=ct=>Object.assign({},(0,De.oN)(ct));var wt=(ct,Lt)=>{const{componentCls:vt,itemColor:nt,itemSelectedColor:Xe,groupTitleColor:Ue,itemBg:$e,subMenuItemBg:tt,itemSelectedBg:We,activeBarHeight:Be,activeBarWidth:Te,activeBarBorderWidth:Ke,motionDurationSlow:gt,motionEaseInOut:Ze,motionEaseOut:Ot,itemPaddingInline:zt,motionDurationMid:Yt,itemHoverColor:jt,lineType:Kt,colorSplit:en,itemDisabledColor:cn,dangerItemColor:yn,dangerItemHoverColor:On,dangerItemSelectedColor:or,dangerItemActiveBg:er,dangerItemSelectedBg:Tr,itemHoverBg:Kn,itemActiveBg:Nr,menuSubMenuBg:kr,horizontalItemSelectedColor:Ur,horizontalItemSelectedBg:Jr,horizontalItemBorderRadius:Mr,horizontalItemHoverBg:di,popupBg:Dr}=ct;return{[`${vt}-${Lt}, ${vt}-${Lt} > ${vt}`]:{color:nt,background:$e,[`&${vt}-root:focus-visible`]:Object.assign({},it(ct)),[`${vt}-item-group-title`]:{color:Ue},[`${vt}-submenu-selected`]:{[`> ${vt}-submenu-title`]:{color:Xe}},[`${vt}-item-disabled, ${vt}-submenu-disabled`]:{color:`${cn} !important`},[`${vt}-item:not(${vt}-item-selected):not(${vt}-submenu-selected)`]:{[`&:hover, > ${vt}-submenu-title:hover`]:{color:jt}},[`&:not(${vt}-horizontal)`]:{[`${vt}-item:not(${vt}-item-selected)`]:{"&:hover":{backgroundColor:Kn},"&:active":{backgroundColor:Nr}},[`${vt}-submenu-title`]:{"&:hover":{backgroundColor:Kn},"&:active":{backgroundColor:Nr}}},[`${vt}-item-danger`]:{color:yn,[`&${vt}-item:hover`]:{[`&:not(${vt}-item-selected):not(${vt}-submenu-selected)`]:{color:On}},[`&${vt}-item:active`]:{background:er}},[`${vt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${vt}-item-selected`]:{color:Xe,[`&${vt}-item-danger`]:{color:or},"a, a:hover":{color:"inherit"}},[`& ${vt}-item-selected`]:{backgroundColor:We,[`&${vt}-item-danger`]:{backgroundColor:Tr}},[`${vt}-item, ${vt}-submenu-title`]:{[`&:not(${vt}-item-disabled):focus-visible`]:Object.assign({},it(ct))},[`&${vt}-submenu > ${vt}`]:{backgroundColor:kr},[`&${vt}-popup > ${vt}`]:{backgroundColor:Dr},[`&${vt}-horizontal`]:Object.assign(Object.assign({},Lt==="dark"?{borderBottom:0}:{}),{[`> ${vt}-item, > ${vt}-submenu`]:{top:Ke,marginTop:-Ke,marginBottom:0,borderRadius:Mr,"&::after":{position:"absolute",insetInline:zt,bottom:0,borderBottom:`${Be}px solid transparent`,transition:`border-color ${gt} ${Ze}`,content:'""'},"&:hover, &-active, &-open":{background:di,"&::after":{borderBottomWidth:Be,borderBottomColor:Ur}},"&-selected":{color:Ur,backgroundColor:Jr,"&:hover":{backgroundColor:Jr},"&::after":{borderBottomWidth:Be,borderBottomColor:Ur}}}}),[`&${vt}-root`]:{[`&${vt}-inline, &${vt}-vertical`]:{borderInlineEnd:`${Ke}px ${Kt} ${en}`}},[`&${vt}-inline`]:{[`${vt}-sub${vt}-inline`]:{background:tt},[`${vt}-item, ${vt}-submenu-title`]:Ke&&Te?{width:`calc(100% + ${Ke}px)`}:{},[`${vt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Te}px solid ${Xe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Yt} ${Ot}`,`opacity ${Yt} ${Ot}`].join(","),content:'""'},[`&${vt}-item-danger`]:{"&::after":{borderInlineEndColor:or}}},[`${vt}-selected, ${vt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Yt} ${Ze}`,`opacity ${Yt} ${Ze}`].join(",")}}}}}};const xt=ct=>{const{componentCls:Lt,itemHeight:vt,itemMarginInline:nt,padding:Xe,menuArrowSize:Ue,marginXS:$e,itemMarginBlock:tt}=ct,We=Xe+Ue+$e;return{[`${Lt}-item`]:{position:"relative",overflow:"hidden"},[`${Lt}-item, ${Lt}-submenu-title`]:{height:vt,lineHeight:`${vt}px`,paddingInline:Xe,overflow:"hidden",textOverflow:"ellipsis",marginInline:nt,marginBlock:tt,width:`calc(100% - ${nt*2}px)`},[`> ${Lt}-item,
|
|
|
> ${Lt}-submenu > ${Lt}-submenu-title`]:{height:vt,lineHeight:`${vt}px`},[`${Lt}-item-group-list ${Lt}-submenu-title,
|
|
|
${Lt}-submenu-title`]:{paddingInlineEnd:We}}};var mt=ct=>{const{componentCls:Lt,iconCls:vt,itemHeight:nt,colorTextLightSolid:Xe,dropdownWidth:Ue,controlHeightLG:$e,motionDurationMid:tt,motionEaseOut:We,paddingXL:Be,itemMarginInline:Te,fontSizeLG:Ke,motionDurationSlow:gt,paddingXS:Ze,boxShadowSecondary:Ot,collapsedWidth:zt,collapsedIconSize:Yt}=ct,jt={height:nt,lineHeight:`${nt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Lt]:{"&-inline, &-vertical":Object.assign({[`&${Lt}-root`]:{boxShadow:"none"}},xt(ct))},[`${Lt}-submenu-popup`]:{[`${Lt}-vertical`]:Object.assign(Object.assign({},xt(ct)),{boxShadow:Ot})}},{[`${Lt}-submenu-popup ${Lt}-vertical${Lt}-sub`]:{minWidth:Ue,maxHeight:`calc(100vh - ${$e*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Lt}-inline`]:{width:"100%",[`&${Lt}-root`]:{[`${Lt}-item, ${Lt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${gt}`,`background ${gt}`,`padding ${tt} ${We}`].join(","),[`> ${Lt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Lt}-sub${Lt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Lt}-submenu > ${Lt}-submenu-title`]:jt,[`& ${Lt}-item-group-title`]:{paddingInlineStart:Be}},[`${Lt}-item`]:jt}},{[`${Lt}-inline-collapsed`]:{width:zt,[`&${Lt}-root`]:{[`${Lt}-item, ${Lt}-submenu ${Lt}-submenu-title`]:{[`> ${Lt}-inline-collapsed-noicon`]:{fontSize:Ke,textAlign:"center"}}},[`> ${Lt}-item,
|
|
|
> ${Lt}-item-group > ${Lt}-item-group-list > ${Lt}-item,
|
|
|
> ${Lt}-item-group > ${Lt}-item-group-list > ${Lt}-submenu > ${Lt}-submenu-title,
|
|
|
> ${Lt}-submenu > ${Lt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ke/2}px - ${Te}px)`,textOverflow:"clip",[`
|
|
|
${Lt}-submenu-arrow,
|
|
|
${Lt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Lt}-item-icon, ${vt}`]:{margin:0,fontSize:Yt,lineHeight:`${nt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Lt}-item-icon, ${vt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Lt}-item-icon, ${vt}`]:{display:"none"},"a, a:hover":{color:Xe}},[`${Lt}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:Ze})}}]};const yt=ct=>{const{componentCls:Lt,motionDurationSlow:vt,motionDurationMid:nt,motionEaseInOut:Xe,motionEaseOut:Ue,iconCls:$e,iconSize:tt,iconMarginInlineEnd:We}=ct;return{[`${Lt}-item, ${Lt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${vt}`,`background ${vt}`,`padding ${vt} ${Xe}`].join(","),[`${Lt}-item-icon, ${$e}`]:{minWidth:tt,fontSize:tt,transition:[`font-size ${nt} ${Ue}`,`margin ${vt} ${Xe}`,`color ${vt}`].join(","),"+ span":{marginInlineStart:We,opacity:1,transition:[`opacity ${vt} ${Xe}`,`margin ${vt}`,`color ${vt}`].join(",")}},[`${Lt}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${Lt}-item-only-child`]:{[`> ${$e}, > ${Lt}-item-icon`]:{marginInlineEnd:0}}},[`${Lt}-item-disabled, ${Lt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Lt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},It=ct=>{const{componentCls:Lt,motionDurationSlow:vt,motionEaseInOut:nt,borderRadius:Xe,menuArrowSize:Ue,menuArrowOffset:$e}=ct;return{[`${Lt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ct.margin,width:Ue,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${vt} ${nt}, opacity ${vt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ue*.6,height:Ue*.15,backgroundColor:"currentcolor",borderRadius:Xe,transition:[`background ${vt} ${nt}`,`transform ${vt} ${nt}`,`top ${vt} ${nt}`,`color ${vt} ${nt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${$e})`},"&::after":{transform:`rotate(-45deg) translateY(${$e})`}}}}},kt=ct=>{const{antCls:Lt,componentCls:vt,fontSize:nt,motionDurationSlow:Xe,motionDurationMid:Ue,motionEaseInOut:$e,paddingXS:tt,padding:We,colorSplit:Be,lineWidth:Te,zIndexPopup:Ke,borderRadiusLG:gt,subMenuItemBorderRadius:Ze,menuArrowSize:Ot,menuArrowOffset:zt,lineType:Yt,menuPanelMaskInset:jt,groupTitleLineHeight:Kt,groupTitleFontSize:en}=ct;return[{"":{[`${vt}`]:Object.assign(Object.assign({},(0,De.dF)()),{"&-hidden":{display:"none"}})},[`${vt}-submenu-hidden`]:{display:"none"}},{[vt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(ct)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:nt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Xe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${vt}-item`]:{flex:"none"}},[`${vt}-item, ${vt}-submenu, ${vt}-submenu-title`]:{borderRadius:ct.itemBorderRadius},[`${vt}-item-group-title`]:{padding:`${tt}px ${We}px`,fontSize:en,lineHeight:Kt,transition:`all ${Xe}`},[`&-horizontal ${vt}-submenu`]:{transition:[`border-color ${Xe} ${$e}`,`background ${Xe} ${$e}`].join(",")},[`${vt}-submenu, ${vt}-submenu-inline`]:{transition:[`border-color ${Xe} ${$e}`,`background ${Xe} ${$e}`,`padding ${Ue} ${$e}`].join(",")},[`${vt}-submenu ${vt}-sub`]:{cursor:"initial",transition:[`background ${Xe} ${$e}`,`padding ${Xe} ${$e}`].join(",")},[`${vt}-title-content`]:{transition:`color ${Xe}`},[`${vt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${vt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Be,borderStyle:Yt,borderWidth:0,borderTopWidth:Te,marginBlock:Te,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yt(ct)),{[`${vt}-item-group`]:{[`${vt}-item-group-list`]:{margin:0,padding:0,[`${vt}-item, ${vt}-submenu-title`]:{paddingInline:`${nt*2}px ${We}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ke,borderRadius:gt,boxShadow:"none",transformOrigin:"0 0",[`&${vt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${jt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:jt},"\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:ct.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ct.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ct.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ct.paddingXS},[`> ${vt}`]:Object.assign(Object.assign(Object.assign({borderRadius:gt},yt(ct)),It(ct)),{[`${vt}-item, ${vt}-submenu > ${vt}-submenu-title`]:{borderRadius:Ze},[`${vt}-submenu-title::after`]:{transition:`transform ${Xe} ${$e}`}})}}),It(ct)),{[`&-inline-collapsed ${vt}-submenu-arrow,
|
|
|
&-inline ${vt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${zt})`},"&::after":{transform:`rotate(45deg) translateX(-${zt})`}},[`${vt}-submenu-open${vt}-submenu-inline > ${vt}-submenu-title > ${vt}-submenu-arrow`]:{transform:`translateY(-${Ot*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${zt})`},"&::before":{transform:`rotate(45deg) translateX(${zt})`}}})},{[`${Lt}-layout-header`]:{[vt]:{lineHeight:"inherit"}}}]};var Ut=(ct,Lt)=>(0,Ve.Z)("Menu",nt=>{if(Lt===!1)return[];const{colorBgElevated:Xe,colorPrimary:Ue,colorTextLightSolid:$e,controlHeightLG:tt,fontSize:We,darkItemColor:Be,darkDangerItemColor:Te,darkItemBg:Ke,darkSubMenuItemBg:gt,darkItemSelectedColor:Ze,darkItemSelectedBg:Ot,darkDangerItemSelectedBg:zt,darkItemHoverBg:Yt,darkGroupTitleColor:jt,darkItemHoverColor:Kt,darkItemDisabledColor:en,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:yn,darkDangerItemActiveBg:On}=nt,or=We/7*5,er=(0,Qe.TS)(nt,{menuArrowSize:or,menuHorizontalHeight:tt*1.15,menuArrowOffset:`${or*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Xe}),Tr=(0,Qe.TS)(er,{itemColor:Be,itemHoverColor:Kt,groupTitleColor:jt,itemSelectedColor:Ze,itemBg:Ke,popupBg:Ke,subMenuItemBg:gt,itemActiveBg:"transparent",itemSelectedBg:Ot,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Yt,itemDisabledColor:en,dangerItemColor:Te,dangerItemHoverColor:cn,dangerItemSelectedColor:yn,dangerItemActiveBg:On,dangerItemSelectedBg:zt,menuSubMenuBg:gt,horizontalItemSelectedColor:$e,horizontalItemSelectedBg:Ue});return[kt(er),dt(er),mt(er),wt(er,"light"),wt(Tr,"dark"),qe(er),(0,Re.Z)(er),(0,Je.oN)(er,"slide-up"),(0,Je.oN)(er,"slide-down"),(0,_e._y)(er,"zoom-big")]},nt=>{const{colorPrimary:Xe,colorError:Ue,colorTextDisabled:$e,colorErrorBg:tt,colorText:We,colorTextDescription:Be,colorBgContainer:Te,colorFillAlter:Ke,colorFillContent:gt,lineWidth:Ze,lineWidthBold:Ot,controlItemBgActive:zt,colorBgTextHover:Yt,controlHeightLG:jt,lineHeight:Kt,colorBgElevated:en,marginXXS:cn,padding:yn,fontSize:On,controlHeightSM:or,fontSizeLG:er,colorTextLightSolid:Tr,colorErrorHover:Kn}=nt,Nr=new Ne.C(Tr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:nt.zIndexPopupBase+50,radiusItem:nt.borderRadiusLG,itemBorderRadius:nt.borderRadiusLG,radiusSubMenuItem:nt.borderRadiusSM,subMenuItemBorderRadius:nt.borderRadiusSM,colorItemText:We,itemColor:We,colorItemTextHover:We,itemHoverColor:We,colorItemTextHoverHorizontal:Xe,horizontalItemHoverColor:Xe,colorGroupTitle:Be,groupTitleColor:Be,colorItemTextSelected:Xe,itemSelectedColor:Xe,colorItemTextSelectedHorizontal:Xe,horizontalItemSelectedColor:Xe,colorItemBg:Te,itemBg:Te,colorItemBgHover:Yt,itemHoverBg:Yt,colorItemBgActive:gt,itemActiveBg:zt,colorSubItemBg:Ke,subMenuItemBg:Ke,colorItemBgSelected:zt,itemSelectedBg:zt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ot,activeBarHeight:Ot,colorActiveBarBorderSize:Ze,activeBarBorderWidth:Ze,colorItemTextDisabled:$e,itemDisabledColor:$e,colorDangerItemText:Ue,dangerItemColor:Ue,colorDangerItemTextHover:Ue,dangerItemHoverColor:Ue,colorDangerItemTextSelected:Ue,dangerItemSelectedColor:Ue,colorDangerItemBgActive:tt,dangerItemActiveBg:tt,colorDangerItemBgSelected:tt,dangerItemSelectedBg:tt,itemMarginInline:nt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:jt,groupTitleLineHeight:Kt,collapsedWidth:jt*2,popupBg:en,itemMarginBlock:cn,itemPaddingInline:yn,horizontalLineHeight:`${jt*1.15}px`,iconSize:On,iconMarginInlineEnd:or-On,collapsedIconSize:er,groupTitleFontSize:On,darkItemDisabledColor:new Ne.C(Tr).setAlpha(.25).toRgbString(),darkItemColor:Nr,darkDangerItemColor:Ue,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tr,darkItemSelectedBg:Xe,darkDangerItemSelectedBg:Ue,darkItemHoverBg:"transparent",darkGroupTitleColor:Nr,darkItemHoverColor:Tr,darkDangerItemHoverColor:Kn,darkDangerItemSelectedColor:Tr,darkDangerItemActiveBg:Ue}},{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"]]})(ct),Pt=function(ct,Lt){var vt={};for(var nt in ct)Object.prototype.hasOwnProperty.call(ct,nt)&&Lt.indexOf(nt)<0&&(vt[nt]=ct[nt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,nt=Object.getOwnPropertySymbols(ct);Xe<nt.length;Xe++)Lt.indexOf(nt[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ct,nt[Xe])&&(vt[nt[Xe]]=ct[nt[Xe]]);return vt},st=(0,Mt.forwardRef)((ct,Lt)=>{var vt,nt;const Xe=Mt.useContext(Ce.Z),Ue=Xe||{},{getPrefixCls:$e,getPopupContainer:tt,direction:We,menu:Be}=Mt.useContext(ve.E_),Te=$e(),{prefixCls:Ke,className:gt,style:Ze,theme:Ot="light",expandIcon:zt,_internalDisableMenuItemTitleTooltip:Yt,inlineCollapsed:jt,siderCollapsed:Kt,items:en,children:cn,rootClassName:yn,mode:On,selectable:or,onClick:er,overflowedIndicatorPopupClassName:Tr}=ct,Kn=Pt(ct,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Nr=(0,Pe.Z)(Kn,["collapsedWidth"]),kr=Le(en)||cn;(vt=Ue.validator)===null||vt===void 0||vt.call(Ue,{mode:On});const Ur=(0,pe.useEvent)(function(){var Li;er==null||er.apply(void 0,arguments),(Li=Ue.onClick)===null||Li===void 0||Li.call(Ue)}),Jr=Ue.mode||On,Mr=or!=null?or:Ue.selectable,di=Mt.useMemo(()=>Kt!==void 0?Kt:jt,[jt,Kt]),Dr={horizontal:{motionName:`${Te}-slide-up`},inline:(0,be.Z)(Te),other:{motionName:`${Te}-zoom-big`}},ot=$e("menu",Ke||Ue.prefixCls),[Ci,xi]=Ut(ot,!Xe),pr=je()(`${ot}-${Ot}`,Be==null?void 0:Be.className,gt);let Pr;if(typeof zt=="function")Pr=zt;else if(zt===null||zt===!1)Pr=null;else if(Ue.expandIcon===null||Ue.expandIcon===!1)Pr=null;else{const Li=zt!=null?zt:Ue.expandIcon;Pr=(0,xe.Tm)(Li,{className:je()(`${ot}-submenu-expand-icon`,(0,xe.l$)(Li)?(nt=Li.props)===null||nt===void 0?void 0:nt.className:"")})}const jr=Mt.useMemo(()=>({prefixCls:ot,inlineCollapsed:di||!1,direction:We,firstLevel:!0,theme:Ot,mode:Jr,disableMenuItemTitleTooltip:Yt}),[ot,di,We,Yt,Ot]);return Ci(Mt.createElement(Ce.Z.Provider,{value:null},Mt.createElement(z.Provider,{value:jr},Mt.createElement(et.ZP,Object.assign({getPopupContainer:tt,overflowedIndicator:Mt.createElement(ue.Z,null),overflowedIndicatorPopupClassName:je()(ot,`${ot}-${Ot}`,Tr),mode:Jr,selectable:Mr,onClick:Ur},Nr,{inlineCollapsed:di,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),Ze),className:pr,prefixCls:ot,direction:We,defaultMotions:Dr,expandIcon:Pr,ref:Lt,rootClassName:je()(yn,xi)}),kr))))});const bt=(0,Mt.forwardRef)((ct,Lt)=>{const vt=(0,Mt.useRef)(null),nt=Mt.useContext(oe.D);return(0,Mt.useImperativeHandle)(Lt,()=>({menu:vt.current,focus:Xe=>{var Ue;(Ue=vt.current)===null||Ue===void 0||Ue.focus(Xe)}})),Mt.createElement(st,Object.assign({ref:vt},ct,nt))});bt.Item=ae,bt.SubMenu=le,bt.Divider=Me,bt.ItemGroup=et.BW;var at=bt},58421:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Ue}});var et=Ge(96663),Mt=Ge(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"},ze=oe,je=Ge(7657),ve=function(tt,We){return Mt.createElement(je.Z,(0,et.Z)({},tt,{ref:We,icon:ze}))},ce=Mt.forwardRef(ve),we=ce,Me=Ge(49198),Se=Ge(33853),Pe=Ge(38819),me=Ge(92310),xe=Ge.n(me),fe=Ge(90493),z=Ge(44127),ee=Ge(52884),ae=Ge(95727),re=Ge(65711),le=Ge(85745),ue=Ge(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=Ge(91735),Ie=function($e){(0,re.Z)(We,$e);var tt=(0,le.Z)(We);function We(){var Be;(0,ee.Z)(this,We);for(var Te=arguments.length,Ke=new Array(Te),gt=0;gt<Te;gt++)Ke[gt]=arguments[gt];return Be=tt.call.apply(tt,[this].concat(Ke)),Be.state={goInputText:""},Be.getValidValue=function(){var Ze=Be.state.goInputText;return!Ze||Number.isNaN(Ze)?void 0:Number(Ze)},Be.buildOptionText=function(Ze){return"".concat(Ze," ").concat(Be.props.locale.items_per_page)},Be.changeSize=function(Ze){Be.props.changeSize(Number(Ze))},Be.handleChange=function(Ze){Be.setState({goInputText:Ze.target.value})},Be.handleBlur=function(Ze){var Ot=Be.props,zt=Ot.goButton,Yt=Ot.quickGo,jt=Ot.rootPrefixCls,Kt=Be.state.goInputText;zt||Kt===""||(Be.setState({goInputText:""}),!(Ze.relatedTarget&&(Ze.relatedTarget.className.indexOf("".concat(jt,"-item-link"))>=0||Ze.relatedTarget.className.indexOf("".concat(jt,"-item"))>=0))&&Yt(Be.getValidValue()))},Be.go=function(Ze){var Ot=Be.state.goInputText;Ot!==""&&(Ze.keyCode===be.ENTER||Ze.type==="click")&&(Be.setState({goInputText:""}),Be.props.quickGo(Be.getValidValue()))},Be}return(0,ae.Z)(We,[{key:"getPageSizeOptions",value:function(){var Te=this.props,Ke=Te.pageSize,gt=Te.pageSizeOptions;return gt.some(function(Ze){return Ze.toString()===Ke.toString()})?gt:gt.concat([Ke.toString()]).sort(function(Ze,Ot){var zt=Number.isNaN(Number(Ze))?0:Number(Ze),Yt=Number.isNaN(Number(Ot))?0:Number(Ot);return zt-Yt})}},{key:"render",value:function(){var Te=this,Ke=this.props,gt=Ke.pageSize,Ze=Ke.locale,Ot=Ke.rootPrefixCls,zt=Ke.changeSize,Yt=Ke.quickGo,jt=Ke.goButton,Kt=Ke.selectComponentClass,en=Ke.buildOptionText,cn=Ke.selectPrefixCls,yn=Ke.disabled,On=this.state.goInputText,or="".concat(Ot,"-options"),er=Kt,Tr=null,Kn=null,Nr=null;if(!zt&&!Yt)return null;var kr=this.getPageSizeOptions();if(zt&&er){var Ur=kr.map(function(Jr,Mr){return Mt.createElement(er.Option,{key:Mr,value:Jr.toString()},(en||Te.buildOptionText)(Jr))});Tr=Mt.createElement(er,{disabled:yn,prefixCls:cn,showSearch:!1,className:"".concat(or,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(gt||kr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Mr){return Mr.parentNode},"aria-label":Ze.page_size,defaultOpen:!1},Ur)}return Yt&&(jt&&(Nr=typeof jt=="boolean"?Mt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:yn,className:"".concat(or,"-quick-jumper-button")},Ze.jump_to_confirm):Mt.createElement("span",{onClick:this.go,onKeyUp:this.go},jt)),Kn=Mt.createElement("div",{className:"".concat(or,"-quick-jumper")},Ze.jump_to,Mt.createElement("input",{disabled:yn,type:"text",value:On,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ze.page}),Ze.page,Nr)),Mt.createElement("li",{className:"".concat(or)},Tr,Kn)}}]),We}(Mt.Component);Ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var Oe=Ie,Le=function(tt){var We,Be=tt.rootPrefixCls,Te=tt.page,Ke=tt.active,gt=tt.className,Ze=tt.showTitle,Ot=tt.onClick,zt=tt.onKeyPress,Yt=tt.itemRender,jt="".concat(Be,"-item"),Kt=xe()(jt,"".concat(jt,"-").concat(Te),(We={},(0,fe.Z)(We,"".concat(jt,"-active"),Ke),(0,fe.Z)(We,"".concat(jt,"-disabled"),!Te),(0,fe.Z)(We,tt.className,gt),We)),en=function(){Ot(Te)},cn=function(or){zt(or,Ot,Te)},yn=Yt(Te,"page",Mt.createElement("a",{rel:"nofollow"},Te));return yn?Mt.createElement("li",{title:Ze?Te.toString():null,className:Kt,onClick:en,onKeyPress:cn,tabIndex:0},yn):null},Ne=Le;function De(){}function Re($e){var tt=Number($e);return typeof tt=="number"&&!Number.isNaN(tt)&&isFinite(tt)&&Math.floor(tt)===tt}var Je=function(tt,We,Be){return Be};function _e($e,tt,We){var Be=typeof $e=="undefined"?tt.pageSize:$e;return Math.floor((We.total-1)/Be)+1}var Ve=function($e){(0,re.Z)(We,$e);var tt=(0,le.Z)(We);function We(Be){var Te;(0,ee.Z)(this,We),Te=tt.call(this,Be),Te.paginationNode=Mt.createRef(),Te.getJumpPrevPage=function(){return Math.max(1,Te.state.current-(Te.props.showLessItems?3:5))},Te.getJumpNextPage=function(){return Math.min(_e(void 0,Te.state,Te.props),Te.state.current+(Te.props.showLessItems?3:5))},Te.getItemIcon=function(zt,Yt){var jt=Te.props.prefixCls,Kt=zt||Mt.createElement("button",{type:"button","aria-label":Yt,className:"".concat(jt,"-item-link")});return typeof zt=="function"&&(Kt=Mt.createElement(zt,(0,z.Z)({},Te.props))),Kt},Te.isValid=function(zt){var Yt=Te.props.total;return Re(zt)&&zt!==Te.state.current&&Re(Yt)&&Yt>0},Te.shouldDisplayQuickJumper=function(){var zt=Te.props,Yt=zt.showQuickJumper,jt=zt.total,Kt=Te.state.pageSize;return jt<=Kt?!1:Yt},Te.handleKeyDown=function(zt){(zt.keyCode===be.ARROW_UP||zt.keyCode===be.ARROW_DOWN)&&zt.preventDefault()},Te.handleKeyUp=function(zt){var Yt=Te.getValidValue(zt),jt=Te.state.currentInputValue;Yt!==jt&&Te.setState({currentInputValue:Yt}),zt.keyCode===be.ENTER?Te.handleChange(Yt):zt.keyCode===be.ARROW_UP?Te.handleChange(Yt-1):zt.keyCode===be.ARROW_DOWN&&Te.handleChange(Yt+1)},Te.handleBlur=function(zt){var Yt=Te.getValidValue(zt);Te.handleChange(Yt)},Te.changePageSize=function(zt){var Yt=Te.state.current,jt=_e(zt,Te.state,Te.props);Yt=Yt>jt?jt:Yt,jt===0&&(Yt=Te.state.current),typeof zt=="number"&&("pageSize"in Te.props||Te.setState({pageSize:zt}),"current"in Te.props||Te.setState({current:Yt,currentInputValue:Yt})),Te.props.onShowSizeChange(Yt,zt),"onChange"in Te.props&&Te.props.onChange&&Te.props.onChange(Yt,zt)},Te.handleChange=function(zt){var Yt=Te.props,jt=Yt.disabled,Kt=Yt.onChange,en=Te.state,cn=en.pageSize,yn=en.current,On=en.currentInputValue;if(Te.isValid(zt)&&!jt){var or=_e(void 0,Te.state,Te.props),er=zt;return zt>or?er=or:zt<1&&(er=1),"current"in Te.props||Te.setState({current:er}),er!==On&&Te.setState({currentInputValue:er}),Kt(er,cn),er}return yn},Te.prev=function(){Te.hasPrev()&&Te.handleChange(Te.state.current-1)},Te.next=function(){Te.hasNext()&&Te.handleChange(Te.state.current+1)},Te.jumpPrev=function(){Te.handleChange(Te.getJumpPrevPage())},Te.jumpNext=function(){Te.handleChange(Te.getJumpNextPage())},Te.hasPrev=function(){return Te.state.current>1},Te.hasNext=function(){return Te.state.current<_e(void 0,Te.state,Te.props)},Te.runIfEnter=function(zt,Yt){if(zt.key==="Enter"||zt.charCode===13){for(var jt=arguments.length,Kt=new Array(jt>2?jt-2:0),en=2;en<jt;en++)Kt[en-2]=arguments[en];Yt.apply(void 0,Kt)}},Te.runIfEnterPrev=function(zt){Te.runIfEnter(zt,Te.prev)},Te.runIfEnterNext=function(zt){Te.runIfEnter(zt,Te.next)},Te.runIfEnterJumpPrev=function(zt){Te.runIfEnter(zt,Te.jumpPrev)},Te.runIfEnterJumpNext=function(zt){Te.runIfEnter(zt,Te.jumpNext)},Te.handleGoTO=function(zt){(zt.keyCode===be.ENTER||zt.type==="click")&&Te.handleChange(Te.state.currentInputValue)},Te.renderPrev=function(zt){var Yt=Te.props,jt=Yt.prevIcon,Kt=Yt.itemRender,en=Kt(zt,"prev",Te.getItemIcon(jt,"prev page")),cn=!Te.hasPrev();return(0,Mt.isValidElement)(en)?(0,Mt.cloneElement)(en,{disabled:cn}):en},Te.renderNext=function(zt){var Yt=Te.props,jt=Yt.nextIcon,Kt=Yt.itemRender,en=Kt(zt,"next",Te.getItemIcon(jt,"next page")),cn=!Te.hasNext();return(0,Mt.isValidElement)(en)?(0,Mt.cloneElement)(en,{disabled:cn}):en};var Ke=Be.onChange!==De,gt="current"in Be;gt&&!Ke&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ze=Be.defaultCurrent;"current"in Be&&(Ze=Be.current);var Ot=Be.defaultPageSize;return"pageSize"in Be&&(Ot=Be.pageSize),Ze=Math.min(Ze,_e(Ot,void 0,Be)),Te.state={current:Ze,currentInputValue:Ze,pageSize:Ot},Te}return(0,ae.Z)(We,[{key:"componentDidUpdate",value:function(Te,Ke){var gt=this.props.prefixCls;if(Ke.current!==this.state.current&&this.paginationNode.current){var Ze=this.paginationNode.current.querySelector(".".concat(gt,"-item-").concat(Ke.current));if(Ze&&document.activeElement===Ze){var Ot;Ze==null||(Ot=Ze.blur)===null||Ot===void 0||Ot.call(Ze)}}}},{key:"getValidValue",value:function(Te){var Ke=Te.target.value,gt=_e(void 0,this.state,this.props),Ze=this.state.currentInputValue,Ot;return Ke===""?Ot=Ke:Number.isNaN(Number(Ke))?Ot=Ze:Ke>=gt?Ot=gt:Ot=Number(Ke),Ot}},{key:"getShowSizeChanger",value:function(){var Te=this.props,Ke=Te.showSizeChanger,gt=Te.total,Ze=Te.totalBoundaryShowSizeChanger;return typeof Ke!="undefined"?Ke:gt>Ze}},{key:"render",value:function(){var Te=this.props,Ke=Te.prefixCls,gt=Te.className,Ze=Te.style,Ot=Te.disabled,zt=Te.hideOnSinglePage,Yt=Te.total,jt=Te.locale,Kt=Te.showQuickJumper,en=Te.showLessItems,cn=Te.showTitle,yn=Te.showTotal,On=Te.simple,or=Te.itemRender,er=Te.showPrevNextJumpers,Tr=Te.jumpPrevIcon,Kn=Te.jumpNextIcon,Nr=Te.selectComponentClass,kr=Te.selectPrefixCls,Ur=Te.pageSizeOptions,Jr=this.state,Mr=Jr.current,di=Jr.pageSize,Dr=Jr.currentInputValue;if(zt===!0&&Yt<=di)return null;var ot=_e(void 0,this.state,this.props),Ci=[],xi=null,pr=null,Pr=null,jr=null,Li=null,nr=Kt&&Kt.goButton,ar=en?1:2,nn=Mr-1>0?Mr-1:0,qt=Mr+1<ot?Mr+1:ot,Tt=(0,ue.Z)(this.props,{aria:!0,data:!0}),ln=yn&&Mt.createElement("li",{className:"".concat(Ke,"-total-text")},yn(Yt,[Yt===0?0:(Mr-1)*di+1,Mr*di>Yt?Yt:Mr*di]));if(On){nr&&(typeof nr=="boolean"?Li=Mt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},jt.jump_to_confirm):Li=Mt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},nr),Li=Mt.createElement("li",{title:cn?"".concat(jt.jump_to).concat(Mr,"/").concat(ot):null,className:"".concat(Ke,"-simple-pager")},Li));var Cn=this.renderPrev(nn);return Mt.createElement("ul",(0,et.Z)({className:xe()(Ke,"".concat(Ke,"-simple"),(0,fe.Z)({},"".concat(Ke,"-disabled"),Ot),gt),style:Ze,ref:this.paginationNode},Tt),ln,Cn?Mt.createElement("li",{title:cn?jt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Ke,"-prev"),(0,fe.Z)({},"".concat(Ke,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Cn):null,Mt.createElement("li",{title:cn?"".concat(Mr,"/").concat(ot):null,className:"".concat(Ke,"-simple-pager")},Mt.createElement("input",{type:"text",value:Dr,disabled:Ot,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Mt.createElement("span",{className:"".concat(Ke,"-slash")},"/"),ot),Mt.createElement("li",{title:cn?jt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Ke,"-next"),(0,fe.Z)({},"".concat(Ke,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(qt)),Li)}if(ot<=3+ar*2){var Xt={locale:jt,rootPrefixCls:Ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:cn,itemRender:or};ot||Ci.push(Mt.createElement(Ne,(0,et.Z)({},Xt,{key:"noPager",page:1,className:"".concat(Ke,"-item-disabled")})));for(var Rt=1;Rt<=ot;Rt+=1){var fn=Mr===Rt;Ci.push(Mt.createElement(Ne,(0,et.Z)({},Xt,{key:Rt,page:Rt,active:fn})))}}else{var un=en?jt.prev_3:jt.prev_5,Gn=en?jt.next_3:jt.next_5,Xn=or(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Tr,"prev page")),$t=or(this.getJumpNextPage(),"jump-next",this.getItemIcon(Kn,"next page"));er&&(xi=Xn?Mt.createElement("li",{title:cn?un:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:xe()("".concat(Ke,"-jump-prev"),(0,fe.Z)({},"".concat(Ke,"-jump-prev-custom-icon"),!!Tr))},Xn):null,pr=$t?Mt.createElement("li",{title:cn?Gn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:xe()("".concat(Ke,"-jump-next"),(0,fe.Z)({},"".concat(Ke,"-jump-next-custom-icon"),!!Kn))},$t):null),jr=Mt.createElement(Ne,{locale:jt,last:!0,rootPrefixCls:Ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ot,page:ot,active:!1,showTitle:cn,itemRender:or}),Pr=Mt.createElement(Ne,{locale:jt,rootPrefixCls:Ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:cn,itemRender:or});var kn=Math.max(1,Mr-ar),Wn=Math.min(Mr+ar,ot);Mr-1<=ar&&(Wn=1+ar*2),ot-Mr<=ar&&(kn=ot-ar*2);for(var lr=kn;lr<=Wn;lr+=1){var on=Mr===lr;Ci.push(Mt.createElement(Ne,{locale:jt,rootPrefixCls:Ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:lr,page:lr,active:on,showTitle:cn,itemRender:or}))}Mr-1>=ar*2&&Mr!==3&&(Ci[0]=(0,Mt.cloneElement)(Ci[0],{className:"".concat(Ke,"-item-after-jump-prev")}),Ci.unshift(xi)),ot-Mr>=ar*2&&Mr!==ot-2&&(Ci[Ci.length-1]=(0,Mt.cloneElement)(Ci[Ci.length-1],{className:"".concat(Ke,"-item-before-jump-next")}),Ci.push(pr)),kn!==1&&Ci.unshift(Pr),Wn!==ot&&Ci.push(jr)}var Mn=!this.hasPrev()||!ot,an=!this.hasNext()||!ot,xn=this.renderPrev(nn),gn=this.renderNext(qt);return Mt.createElement("ul",(0,et.Z)({className:xe()(Ke,gt,(0,fe.Z)({},"".concat(Ke,"-disabled"),Ot)),style:Ze,ref:this.paginationNode},Tt),ln,xn?Mt.createElement("li",{title:cn?jt.prev_page:null,onClick:this.prev,tabIndex:Mn?null:0,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Ke,"-prev"),(0,fe.Z)({},"".concat(Ke,"-disabled"),Mn)),"aria-disabled":Mn},xn):null,Ci,gn?Mt.createElement("li",{title:cn?jt.next_page:null,onClick:this.next,tabIndex:an?null:0,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Ke,"-next"),(0,fe.Z)({},"".concat(Ke,"-disabled"),an)),"aria-disabled":an},gn):null,Mt.createElement(Oe,{disabled:Ot,locale:jt,rootPrefixCls:Ke,selectComponentClass:Nr,selectPrefixCls:kr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Mr,pageSize:di,pageSizeOptions:Ur,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:nr}))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ke){var gt={};if("current"in Te&&(gt.current=Te.current,Te.current!==Ke.current&&(gt.currentInputValue=gt.current)),"pageSize"in Te&&Te.pageSize!==Ke.pageSize){var Ze=Ke.current,Ot=_e(Te.pageSize,Ke,Te);Ze=Ze>Ot?Ot:Ze,"current"in Te||(gt.current=Ze,gt.currentInputValue=Ze),gt.pageSize=Te.pageSize}return gt}}]),We}(Mt.Component);Ve.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:De,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:De,locale:Ce.Z,style:{},itemRender:Je,totalBoundaryShowSizeChanger:50};var Qe=Ve,ut=Ge(22075),dt=Ge(36355),St=Ge(19716),qe=Ge(8628),it=Ge(9763),pt=Ge(57809);const wt=$e=>Mt.createElement(pt.default,Object.assign({},$e,{showSearch:!0,size:"small"})),xt=$e=>Mt.createElement(pt.default,Object.assign({},$e,{showSearch:!0,size:"middle"}));wt.Option=pt.default.Option,xt.Option=pt.default.Option;var ft=Ge(9937),mt=Ge(17313),yt=Ge(83116),It=Ge(37613);const kt=$e=>{const{componentCls:tt}=$e;return{[`${tt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${tt}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${tt}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed"}}},[`&${tt}-disabled`]:{cursor:"not-allowed",[`${tt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:$e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:$e.colorBorder,backgroundColor:$e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:$e.itemActiveBgDisabled},a:{color:$e.itemActiveColorDisabled}}},[`${tt}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${tt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${tt}-simple-pager`]:{color:$e.colorTextDisabled},[`${tt}-jump-prev, ${tt}-jump-next`]:{[`${tt}-item-link-icon`]:{opacity:0},[`${tt}-item-ellipsis`]:{opacity:1}}},[`&${tt}-simple`]:{[`${tt}-prev, ${tt}-next`]:{[`&${tt}-disabled ${tt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ut=$e=>{const{componentCls:tt}=$e;return{[`&${tt}-mini ${tt}-total-text, &${tt}-mini ${tt}-simple-pager`]:{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`},[`&${tt}-mini ${tt}-item`]:{minWidth:$e.itemSizeSM,height:$e.itemSizeSM,margin:0,lineHeight:`${$e.itemSizeSM-2}px`},[`&${tt}-mini:not(${tt}-disabled) ${tt}-item:not(${tt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:$e.colorBgTextHover},"&:active":{backgroundColor:$e.colorBgTextActive}},[`&${tt}-mini ${tt}-prev, &${tt}-mini ${tt}-next`]:{minWidth:$e.itemSizeSM,height:$e.itemSizeSM,margin:0,lineHeight:`${$e.itemSizeSM}px`},[`&${tt}-mini:not(${tt}-disabled)`]:{[`${tt}-prev, ${tt}-next`]:{[`&:hover ${tt}-item-link`]:{backgroundColor:$e.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:$e.colorBgTextActive},[`&${tt}-disabled:hover ${tt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${tt}-mini ${tt}-prev ${tt}-item-link,
|
|
|
&${tt}-mini ${tt}-next ${tt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`}},[`&${tt}-mini ${tt}-jump-prev, &${tt}-mini ${tt}-jump-next`]:{height:$e.itemSizeSM,marginInlineEnd:0,lineHeight:`${$e.itemSizeSM}px`},[`&${tt}-mini ${tt}-options`]:{marginInlineStart:$e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:$e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ft.x0)($e)),{width:$e.paginationMiniQuickJumperInputWidth,height:$e.controlHeightSM})}}}},Pt=$e=>{const{componentCls:tt}=$e;return{[`
|
|
|
&${tt}-simple ${tt}-prev,
|
|
|
&${tt}-simple ${tt}-next
|
|
|
`]:{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`,verticalAlign:"top",[`${tt}-item-link`]:{height:$e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:$e.colorBgTextHover},"&:active":{backgroundColor:$e.colorBgTextActive},"&::after":{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`}}},[`&${tt}-simple ${tt}-simple-pager`]:{display:"inline-block",height:$e.itemSizeSM,marginInlineEnd:$e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:$e.marginXS,padding:`0 ${$e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:$e.itemInputBg,border:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`,borderRadius:$e.borderRadius,outline:"none",transition:`border-color ${$e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:$e.colorPrimary},"&:focus":{borderColor:$e.colorPrimaryHover,boxShadow:`${$e.inputOutlineOffset}px 0 ${$e.controlOutlineWidth}px ${$e.controlOutline}`},"&[disabled]":{color:$e.colorTextDisabled,backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,cursor:"not-allowed"}}}}},Ct=$e=>{const{componentCls:tt}=$e;return{[`${tt}-jump-prev, ${tt}-jump-next`]:{outline:0,[`${tt}-item-container`]:{position:"relative",[`${tt}-item-link-icon`]:{color:$e.colorPrimary,fontSize:$e.fontSizeSM,opacity:0,transition:`all ${$e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${tt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:$e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:$e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:$e.paginationEllipsisTextIndent,opacity:1,transition:`all ${$e.motionDurationMid}`}},"&:hover":{[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${tt}-prev,
|
|
|
${tt}-jump-prev,
|
|
|
${tt}-jump-next
|
|
|
`]:{marginInlineEnd:$e.marginXS},[`
|
|
|
${tt}-prev,
|
|
|
${tt}-next,
|
|
|
${tt}-jump-prev,
|
|
|
${tt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:$e.itemSize,height:$e.itemSize,color:$e.colorText,fontFamily:$e.fontFamily,lineHeight:`${$e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:$e.borderRadius,cursor:"pointer",transition:`all ${$e.motionDurationMid}`},[`${tt}-prev, ${tt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:$e.colorText,cursor:"pointer",userSelect:"none"},[`${tt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:$e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${$e.lineWidth}px ${$e.lineType} transparent`,borderRadius:$e.borderRadius,outline:"none",transition:`all ${$e.motionDurationMid}`},[`&:hover ${tt}-item-link`]:{backgroundColor:$e.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:$e.colorBgTextActive},[`&${tt}-disabled:hover`]:{[`${tt}-item-link`]:{backgroundColor:"transparent"}}},[`${tt}-slash`]:{marginInlineEnd:$e.paginationSlashMarginInlineEnd,marginInlineStart:$e.paginationSlashMarginInlineStart},[`${tt}-options`]:{display:"inline-block",marginInlineStart:$e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:$e.controlHeight,marginInlineStart:$e.marginXS,lineHeight:`${$e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ft.ik)($e)),{width:$e.controlHeightLG*1.25,height:$e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:$e.marginXS,marginInlineEnd:$e.marginXS})}}}},st=$e=>{const{componentCls:tt}=$e;return{[`${tt}-item`]:{display:"inline-block",minWidth:$e.itemSize,height:$e.itemSize,marginInlineEnd:$e.marginXS,fontFamily:$e.fontFamily,lineHeight:`${$e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${$e.lineWidth}px ${$e.lineType} transparent`,borderRadius:$e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${$e.paginationItemPaddingInline}px`,color:$e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${tt}-item-active)`]:{"&:hover":{transition:`all ${$e.motionDurationMid}`,backgroundColor:$e.colorBgTextHover},"&:active":{backgroundColor:$e.colorBgTextActive}},"&-active":{fontWeight:$e.fontWeightStrong,backgroundColor:$e.itemActiveBg,borderColor:$e.colorPrimary,a:{color:$e.colorPrimary},"&:hover":{borderColor:$e.colorPrimaryHover},"&:hover a":{color:$e.colorPrimaryHover}}}}},bt=$e=>{const{componentCls:tt}=$e;return{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,mt.Wf)($e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${tt}-total-text`]:{display:"inline-block",height:$e.itemSize,marginInlineEnd:$e.marginXS,lineHeight:`${$e.itemSize-2}px`,verticalAlign:"middle"}}),st($e)),Ct($e)),Pt($e)),Ut($e)),kt($e)),{[`@media only screen and (max-width: ${$e.screenLG}px)`]:{[`${tt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${$e.screenSM}px)`]:{[`${tt}-options`]:{display:"none"}}}),[`&${$e.componentCls}-rtl`]:{direction:"rtl"}}},at=$e=>{const{componentCls:tt}=$e;return{[`${tt}${tt}-disabled:not(${tt}-mini)`]:{"&, &:hover":{[`${tt}-item-link`]:{borderColor:$e.colorBorder}},"&:focus-visible":{[`${tt}-item-link`]:{borderColor:$e.colorBorder}},[`${tt}-item, ${tt}-item-link`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,[`&:hover:not(${tt}-item-active)`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,a:{color:$e.colorTextDisabled}},[`&${tt}-item-active`]:{backgroundColor:$e.itemActiveBgDisabled}},[`${tt}-prev, ${tt}-next`]:{"&:hover button":{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,color:$e.colorTextDisabled},[`${tt}-item-link`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder}}},[`${tt}:not(${tt}-mini)`]:{[`${tt}-prev, ${tt}-next`]:{"&:hover button":{borderColor:$e.colorPrimaryHover,backgroundColor:$e.itemBg},[`${tt}-item-link`]:{backgroundColor:$e.itemLinkBg,borderColor:$e.colorBorder},[`&:hover ${tt}-item-link`]:{borderColor:$e.colorPrimary,backgroundColor:$e.itemBg,color:$e.colorPrimary},[`&${tt}-disabled`]:{[`${tt}-item-link`]:{borderColor:$e.colorBorder,color:$e.colorTextDisabled}}},[`${tt}-item`]:{backgroundColor:$e.itemBg,border:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`,[`&:hover:not(${tt}-item-active)`]:{borderColor:$e.colorPrimary,backgroundColor:$e.itemBg,a:{color:$e.colorPrimary}},"&-active":{borderColor:$e.colorPrimary}}}}},ct=$e=>{const{componentCls:tt}=$e;return{[`${tt}:not(${tt}-disabled)`]:{[`${tt}-item`]:Object.assign({},(0,mt.Qy)($e)),[`${tt}-jump-prev, ${tt}-jump-next`]:{"&:focus-visible":Object.assign({[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}},(0,mt.oN)($e))},[`${tt}-prev, ${tt}-next`]:{[`&:focus-visible ${tt}-item-link`]:Object.assign({},(0,mt.oN)($e))}}}};var Lt=(0,yt.Z)("Pagination",$e=>{const tt=(0,It.TS)($e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:$e.marginXXS/2,paginationMiniQuickJumperInputWidth:$e.controlHeightLG*1.1,paginationItemPaddingInline:$e.marginXXS*1.5,paginationEllipsisLetterSpacing:$e.marginXXS/2,paginationSlashMarginInlineStart:$e.marginXXS,paginationSlashMarginInlineEnd:$e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ft.e5)($e),(0,ft.TM)($e));return[bt(tt),ct(tt),$e.wireframe&&at(tt)]},$e=>({itemBg:$e.colorBgContainer,itemSize:$e.controlHeight,itemSizeSM:$e.controlHeightSM,itemActiveBg:$e.colorBgContainer,itemLinkBg:$e.colorBgContainer,itemActiveColorDisabled:$e.colorTextDisabled,itemActiveBgDisabled:$e.controlItemBgActiveDisabled,itemInputBg:$e.colorBgContainer,miniOptionsSizeChangerTop:0})),vt=function($e,tt){var We={};for(var Be in $e)Object.prototype.hasOwnProperty.call($e,Be)&&tt.indexOf(Be)<0&&(We[Be]=$e[Be]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Be=Object.getOwnPropertySymbols($e);Te<Be.length;Te++)tt.indexOf(Be[Te])<0&&Object.prototype.propertyIsEnumerable.call($e,Be[Te])&&(We[Be[Te]]=$e[Be[Te]]);return We},Xe=$e=>{const{prefixCls:tt,selectPrefixCls:We,className:Be,rootClassName:Te,style:Ke,size:gt,locale:Ze,selectComponentClass:Ot,responsive:zt,showSizeChanger:Yt}=$e,jt=vt($e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Kt}=(0,qe.Z)(zt),{getPrefixCls:en,direction:cn,pagination:yn={}}=Mt.useContext(dt.E_),On=en("pagination",tt),[or,er]=Lt(On),Tr=Yt!=null?Yt:yn.showSizeChanger,Kn=Mt.useMemo(()=>{const ot=Mt.createElement("span",{className:`${On}-item-ellipsis`},"\u2022\u2022\u2022"),Ci=Mt.createElement("button",{className:`${On}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?Mt.createElement(Pe.Z,null):Mt.createElement(Se.Z,null)),xi=Mt.createElement("button",{className:`${On}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?Mt.createElement(Se.Z,null):Mt.createElement(Pe.Z,null)),pr=Mt.createElement("a",{className:`${On}-item-link`},Mt.createElement("div",{className:`${On}-item-container`},cn==="rtl"?Mt.createElement(Me.Z,{className:`${On}-item-link-icon`}):Mt.createElement(we,{className:`${On}-item-link-icon`}),ot)),Pr=Mt.createElement("a",{className:`${On}-item-link`},Mt.createElement("div",{className:`${On}-item-container`},cn==="rtl"?Mt.createElement(we,{className:`${On}-item-link-icon`}):Mt.createElement(Me.Z,{className:`${On}-item-link-icon`}),ot));return{prevIcon:Ci,nextIcon:xi,jumpPrevIcon:pr,jumpNextIcon:Pr}},[cn,On]),[Nr]=(0,it.Z)("Pagination",ut.Z),kr=Object.assign(Object.assign({},Nr),Ze),Ur=(0,St.Z)(gt),Jr=Ur==="small"||!!(Kt&&!Ur&&zt),Mr=en("select",We),di=xe()({[`${On}-mini`]:Jr,[`${On}-rtl`]:cn==="rtl"},yn==null?void 0:yn.className,Be,Te,er),Dr=Object.assign(Object.assign({},yn==null?void 0:yn.style),Ke);return or(Mt.createElement(Qe,Object.assign({},Kn,jt,{style:Dr,prefixCls:On,selectPrefixCls:Mr,className:di,selectComponentClass:Ot||(Jr?wt:xt),locale:kr,showSizeChanger:Tr})))},Ue=Xe},93948:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Yt}});var et=Ge(59301),Mt=Ge(29679),oe=Ge(40001),ze=Ge(19248),je=Ge(99267),ve=Ge(92310),ce=Ge.n(ve),we=Ge(2738),Me=Ge(36355),Se=Ge(96663),Pe=Ge(44127),me=Ge(6620),xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},fe=function(){var Kt=(0,et.useRef)([]),en=(0,et.useRef)(null);return(0,et.useEffect)(function(){var cn=Date.now(),yn=!1;Kt.current.forEach(function(On){if(On){yn=!0;var or=On.style;or.transitionDuration=".3s, .3s, .3s, .06s",en.current&&cn-en.current<100&&(or.transitionDuration="0s, 0s")}}),yn&&(en.current=Date.now())}),Kt.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Kt){var en=(0,Pe.Z)((0,Pe.Z)({},xe),Kt),cn=en.className,yn=en.percent,On=en.prefixCls,or=en.strokeColor,er=en.strokeLinecap,Tr=en.strokeWidth,Kn=en.style,Nr=en.trailColor,kr=en.trailWidth,Ur=en.transition,Jr=(0,me.Z)(en,z);delete Jr.gapPosition;var Mr=Array.isArray(yn)?yn:[yn],di=Array.isArray(or)?or:[or],Dr=fe(),ot=Tr/2,Ci=100-Tr/2,xi="M ".concat(er==="round"?ot:0,",").concat(ot,`
|
|
|
L `).concat(er==="round"?Ci:100,",").concat(ot),pr="0 0 100 ".concat(Tr),Pr=0;return et.createElement("svg",(0,Se.Z)({className:ce()("".concat(On,"-line"),cn),viewBox:pr,preserveAspectRatio:"none",style:Kn},Jr),et.createElement("path",{className:"".concat(On,"-line-trail"),d:xi,strokeLinecap:er,stroke:Nr,strokeWidth:kr||Tr,fillOpacity:"0"}),Mr.map(function(jr,Li){var nr=1;switch(er){case"round":nr=1-Tr/100;break;case"square":nr=1-Tr/2/100;break;default:nr=1;break}var ar={strokeDasharray:"".concat(jr*nr,"px, 100px"),strokeDashoffset:"-".concat(Pr,"px"),transition:Ur||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},nn=di[Li]||di[di.length-1];return Pr+=jr,et.createElement("path",{key:Li,className:"".concat(On,"-line-path"),d:xi,strokeLinecap:er,stroke:nn,strokeWidth:Tr,fillOpacity:"0",ref:function(Tt){Dr[Li]=Tt},style:ar})}))},ae=ee,re=Ge(20135),le=Ge(72071),ue=Ge(47273),pe=0,be=(0,ue.Z)();function Ce(){var jt;return be?(jt=pe,pe+=1):jt="TEST_OR_SSR",jt}var Ie=function(jt){var Kt=et.useState(),en=(0,le.Z)(Kt,2),cn=en[0],yn=en[1];return et.useEffect(function(){yn("rc_progress_".concat(Ce()))},[]),jt||cn},Oe=function(Kt){var en=Kt.bg,cn=Kt.children;return et.createElement("div",{style:{width:"100%",height:"100%",background:en}},cn)};function Le(jt,Kt){return Object.keys(jt).map(function(en){var cn=parseFloat(en),yn="".concat(Math.floor(cn*Kt),"%");return"".concat(jt[en]," ").concat(yn)})}var Ne=et.forwardRef(function(jt,Kt){var en=jt.prefixCls,cn=jt.color,yn=jt.gradientId,On=jt.radius,or=jt.style,er=jt.ptg,Tr=jt.strokeLinecap,Kn=jt.strokeWidth,Nr=jt.size,kr=jt.gapDegree,Ur=cn&&(0,re.Z)(cn)==="object",Jr=Ur?"#FFF":void 0,Mr=Nr/2,di=et.createElement("circle",{className:"".concat(en,"-circle-path"),r:On,cx:Mr,cy:Mr,stroke:Jr,strokeLinecap:Tr,strokeWidth:Kn,opacity:er===0?0:1,style:or,ref:Kt});if(!Ur)return di;var Dr="".concat(yn,"-conic"),ot=kr?"".concat(180+kr/2,"deg"):"0deg",Ci=Le(cn,(360-kr)/360),xi=Le(cn,1),pr="conic-gradient(from ".concat(ot,", ").concat(Ci.join(", "),")"),Pr="linear-gradient(to ".concat(kr?"bottom":"top",", ").concat(xi.join(", "),")");return et.createElement(et.Fragment,null,et.createElement("mask",{id:Dr},di),et.createElement("foreignObject",{x:0,y:0,width:Nr,height:Nr,mask:"url(#".concat(Dr,")")},et.createElement(Oe,{bg:Pr},et.createElement(Oe,{bg:pr}))))}),De=Ne,Re=100,Je=function(Kt,en,cn,yn,On,or,er,Tr,Kn,Nr){var kr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ur=cn/100*360*((360-or)/360),Jr=or===0?0:{bottom:0,top:180,left:90,right:-90}[er],Mr=(100-yn)/100*en;Kn==="round"&&yn!==100&&(Mr+=Nr/2,Mr>=en&&(Mr=en-.01));var di=Re/2;return{stroke:typeof Tr=="string"?Tr:void 0,strokeDasharray:"".concat(en,"px ").concat(Kt),strokeDashoffset:Mr+kr,transform:"rotate(".concat(On+Ur+Jr,"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}},_e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ve(jt){var Kt=jt!=null?jt:[];return Array.isArray(Kt)?Kt:[Kt]}var Qe=function(Kt){var en=(0,Pe.Z)((0,Pe.Z)({},xe),Kt),cn=en.id,yn=en.prefixCls,On=en.steps,or=en.strokeWidth,er=en.trailWidth,Tr=en.gapDegree,Kn=Tr===void 0?0:Tr,Nr=en.gapPosition,kr=en.trailColor,Ur=en.strokeLinecap,Jr=en.style,Mr=en.className,di=en.strokeColor,Dr=en.percent,ot=(0,me.Z)(en,_e),Ci=Re/2,xi=Ie(cn),pr="".concat(xi,"-gradient"),Pr=Ci-or/2,jr=Math.PI*2*Pr,Li=Kn>0?90+Kn/2:-90,nr=jr*((360-Kn)/360),ar=(0,re.Z)(On)==="object"?On:{count:On,space:2},nn=ar.count,qt=ar.space,Tt=Ve(Dr),ln=Ve(di),Cn=ln.find(function($t){return $t&&(0,re.Z)($t)==="object"}),Xt=Cn&&(0,re.Z)(Cn)==="object",Rt=Xt?"butt":Ur,fn=Je(jr,nr,0,100,Li,Kn,Nr,kr,Rt,or),un=fe(),Gn=function(){var kn=0;return Tt.map(function(Wn,lr){var on=ln[lr]||ln[ln.length-1],Mn=Je(jr,nr,kn,Wn,Li,Kn,Nr,on,Rt,or);return kn+=Wn,et.createElement(De,{key:lr,color:on,ptg:Wn,radius:Pr,prefixCls:yn,gradientId:pr,style:Mn,strokeLinecap:Rt,strokeWidth:or,gapDegree:Kn,ref:function(xn){un[lr]=xn},size:Re})}).reverse()},Xn=function(){var kn=Math.round(nn*(Tt[0]/100)),Wn=100/nn,lr=0;return new Array(nn).fill(null).map(function(on,Mn){var an=Mn<=kn-1?ln[0]:kr,xn=an&&(0,re.Z)(an)==="object"?"url(#".concat(pr,")"):void 0,gn=Je(jr,nr,lr,Wn,Li,Kn,Nr,an,"butt",or,qt);return lr+=(nr-gn.strokeDashoffset+qt)*100/nr,et.createElement("circle",{key:Mn,className:"".concat(yn,"-circle-path"),r:Pr,cx:Ci,cy:Ci,stroke:xn,strokeWidth:or,opacity:1,style:gn,ref:function(An){un[Mn]=An}})})};return et.createElement("svg",(0,Se.Z)({className:ce()("".concat(yn,"-circle"),Mr),viewBox:"0 0 ".concat(Re," ").concat(Re),style:Jr,id:cn,role:"presentation"},ot),!nn&&et.createElement("circle",{className:"".concat(yn,"-circle-trail"),r:Pr,cx:Ci,cy:Ci,stroke:kr,strokeLinecap:Rt,strokeWidth:er||or,style:fn}),nn?Xn():Gn())},ut=Qe,dt={Line:ae,Circle:ut},St=Ge(6848),qe=Ge(93398);function it(jt){return!jt||jt<0?0:jt>100?100:jt}function pt(jt){let{success:Kt,successPercent:en}=jt,cn=en;return Kt&&"progress"in Kt&&(cn=Kt.progress),Kt&&"percent"in Kt&&(cn=Kt.percent),cn}const wt=jt=>{let{percent:Kt,success:en,successPercent:cn}=jt;const yn=it(pt({success:en,successPercent:cn}));return[yn,it(it(Kt)-yn)]},xt=jt=>{let{success:Kt={},strokeColor:en}=jt;const{strokeColor:cn}=Kt;return[cn||qe.presetPrimaryColors.green,en||null]},ft=(jt,Kt,en)=>{var cn,yn,On,or;let er=-1,Tr=-1;if(Kt==="step"){const Kn=en.steps,Nr=en.strokeWidth;typeof jt=="string"||typeof jt=="undefined"?(er=jt==="small"?2:14,Tr=Nr!=null?Nr:8):typeof jt=="number"?[er,Tr]=[jt,jt]:[er=14,Tr=8]=jt,er*=Kn}else if(Kt==="line"){const Kn=en==null?void 0:en.strokeWidth;typeof jt=="string"||typeof jt=="undefined"?Tr=Kn||(jt==="small"?6:8):typeof jt=="number"?[er,Tr]=[jt,jt]:[er=-1,Tr=8]=jt}else(Kt==="circle"||Kt==="dashboard")&&(typeof jt=="string"||typeof jt=="undefined"?[er,Tr]=jt==="small"?[60,60]:[120,120]:typeof jt=="number"?[er,Tr]=[jt,jt]:(er=(yn=(cn=jt[0])!==null&&cn!==void 0?cn:jt[1])!==null&&yn!==void 0?yn:120,Tr=(or=(On=jt[0])!==null&&On!==void 0?On:jt[1])!==null&&or!==void 0?or:120));return[er,Tr]},mt=3,yt=jt=>mt/jt*100;var kt=jt=>{const{prefixCls:Kt,trailColor:en=null,strokeLinecap:cn="round",gapPosition:yn,gapDegree:On,width:or=120,type:er,children:Tr,success:Kn,size:Nr=or}=jt,[kr,Ur]=ft(Nr,"circle");let{strokeWidth:Jr}=jt;Jr===void 0&&(Jr=Math.max(yt(kr),6));const Mr={width:kr,height:Ur,fontSize:kr*.15+6},di=et.useMemo(()=>{if(On||On===0)return On;if(er==="dashboard")return 75},[On,er]),Dr=yn||er==="dashboard"&&"bottom"||void 0,ot=Object.prototype.toString.call(jt.strokeColor)==="[object Object]",Ci=xt({success:Kn,strokeColor:jt.strokeColor}),xi=ce()(`${Kt}-inner`,{[`${Kt}-circle-gradient`]:ot}),pr=et.createElement(ut,{percent:wt(jt),strokeWidth:Jr,trailWidth:Jr,strokeColor:Ci,strokeLinecap:cn,trailColor:en,prefixCls:Kt,gapDegree:di,gapPosition:Dr});return et.createElement("div",{className:xi,style:Mr},kr<=20?et.createElement(St.Z,{title:Tr},et.createElement("span",null,pr)):et.createElement(et.Fragment,null,pr,Tr))},Ut=function(jt,Kt){var en={};for(var cn in jt)Object.prototype.hasOwnProperty.call(jt,cn)&&Kt.indexOf(cn)<0&&(en[cn]=jt[cn]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,cn=Object.getOwnPropertySymbols(jt);yn<cn.length;yn++)Kt.indexOf(cn[yn])<0&&Object.prototype.propertyIsEnumerable.call(jt,cn[yn])&&(en[cn[yn]]=jt[cn[yn]]);return en};const Pt=jt=>{let Kt=[];return Object.keys(jt).forEach(en=>{const cn=parseFloat(en.replace(/%/g,""));isNaN(cn)||Kt.push({key:cn,value:jt[en]})}),Kt=Kt.sort((en,cn)=>en.key-cn.key),Kt.map(en=>{let{key:cn,value:yn}=en;return`${yn} ${cn}%`}).join(", ")},Ct=(jt,Kt)=>{const{from:en=qe.presetPrimaryColors.blue,to:cn=qe.presetPrimaryColors.blue,direction:yn=Kt==="rtl"?"to left":"to right"}=jt,On=Ut(jt,["from","to","direction"]);if(Object.keys(On).length!==0){const or=Pt(On);return{backgroundImage:`linear-gradient(${yn}, ${or})`}}return{backgroundImage:`linear-gradient(${yn}, ${en}, ${cn})`}};var bt=jt=>{const{prefixCls:Kt,direction:en,percent:cn,size:yn,strokeWidth:On,strokeColor:or,strokeLinecap:er="round",children:Tr,trailColor:Kn=null,success:Nr}=jt,kr=or&&typeof or!="string"?Ct(or,en):{backgroundColor:or},Ur=er==="square"||er==="butt"?0:void 0,Jr={backgroundColor:Kn||void 0,borderRadius:Ur},Mr=yn!=null?yn:[-1,On||(yn==="small"?6:8)],[di,Dr]=ft(Mr,"line",{strokeWidth:On}),ot=Object.assign({width:`${it(cn)}%`,height:Dr,borderRadius:Ur},kr),Ci=pt(jt),xi={width:`${it(Ci)}%`,height:Dr,borderRadius:Ur,backgroundColor:Nr==null?void 0:Nr.strokeColor},pr={width:di<0?"100%":di,height:Dr};return et.createElement(et.Fragment,null,et.createElement("div",{className:`${Kt}-outer`,style:pr},et.createElement("div",{className:`${Kt}-inner`,style:Jr},et.createElement("div",{className:`${Kt}-bg`,style:ot}),Ci!==void 0?et.createElement("div",{className:`${Kt}-success-bg`,style:xi}):null)),Tr)},ct=jt=>{const{size:Kt,steps:en,percent:cn=0,strokeWidth:yn=8,strokeColor:On,trailColor:or=null,prefixCls:er,children:Tr}=jt,Kn=Math.round(en*(cn/100)),Nr=Kt==="small"?2:14,kr=Kt!=null?Kt:[Nr,yn],[Ur,Jr]=ft(kr,"step",{steps:en,strokeWidth:yn}),Mr=Ur/en,di=new Array(en);for(let Dr=0;Dr<en;Dr++){const ot=Array.isArray(On)?On[Dr]:On;di[Dr]=et.createElement("div",{key:Dr,className:ce()(`${er}-steps-item`,{[`${er}-steps-item-active`]:Dr<=Kn-1}),style:{backgroundColor:Dr<=Kn-1?ot:or,width:Mr,height:Jr}})}return et.createElement("div",{className:`${er}-steps-outer`},di,Tr)},Lt=Ge(93083),vt=Ge(17313),nt=Ge(83116),Xe=Ge(37613);const Ue=jt=>{const Kt=jt?"100%":"-100%";return new Lt.Keyframes(`antProgress${jt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Kt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Kt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},$e=jt=>{const{componentCls:Kt,iconCls:en}=jt;return{[Kt]:Object.assign(Object.assign({},(0,vt.Wf)(jt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:jt.fontSize,marginInlineEnd:jt.marginXS,marginBottom:jt.marginXS},[`${Kt}-outer`]:{display:"inline-block",width:"100%"},[`&${Kt}-show-info`]:{[`${Kt}-outer`]:{marginInlineEnd:`calc(-2em - ${jt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${jt.paddingXS}px)`}},[`${Kt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:jt.remainingColor,borderRadius:jt.lineBorderRadius},[`${Kt}-inner:not(${Kt}-circle-gradient)`]:{[`${Kt}-circle-path`]:{stroke:jt.defaultColor}},[`${Kt}-success-bg, ${Kt}-bg`]:{position:"relative",backgroundColor:jt.defaultColor,borderRadius:jt.lineBorderRadius,transition:`all ${jt.motionDurationSlow} ${jt.motionEaseInOutCirc}`},[`${Kt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:jt.colorSuccess},[`${Kt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:jt.marginXS,color:jt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[en]:{fontSize:jt.fontSize}},[`&${Kt}-status-active`]:{[`${Kt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:jt.colorBgContainer,borderRadius:jt.lineBorderRadius,opacity:0,animationName:Ue(),animationDuration:jt.progressActiveMotionDuration,animationTimingFunction:jt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Kt}-rtl${Kt}-status-active`]:{[`${Kt}-bg::before`]:{animationName:Ue(!0)}},[`&${Kt}-status-exception`]:{[`${Kt}-bg`]:{backgroundColor:jt.colorError},[`${Kt}-text`]:{color:jt.colorError}},[`&${Kt}-status-exception ${Kt}-inner:not(${Kt}-circle-gradient)`]:{[`${Kt}-circle-path`]:{stroke:jt.colorError}},[`&${Kt}-status-success`]:{[`${Kt}-bg`]:{backgroundColor:jt.colorSuccess},[`${Kt}-text`]:{color:jt.colorSuccess}},[`&${Kt}-status-success ${Kt}-inner:not(${Kt}-circle-gradient)`]:{[`${Kt}-circle-path`]:{stroke:jt.colorSuccess}}})}},tt=jt=>{const{componentCls:Kt,iconCls:en}=jt;return{[Kt]:{[`${Kt}-circle-trail`]:{stroke:jt.remainingColor},[`&${Kt}-circle ${Kt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Kt}-circle ${Kt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:jt.circleTextColor,fontSize:jt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[en]:{fontSize:`${jt.fontSize/jt.fontSizeSM}em`}},[`${Kt}-circle&-status-exception`]:{[`${Kt}-text`]:{color:jt.colorError}},[`${Kt}-circle&-status-success`]:{[`${Kt}-text`]:{color:jt.colorSuccess}}},[`${Kt}-inline-circle`]:{lineHeight:1,[`${Kt}-inner`]:{verticalAlign:"bottom"}}}},We=jt=>{const{componentCls:Kt}=jt;return{[Kt]:{[`${Kt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:jt.progressStepMinWidth,marginInlineEnd:jt.progressStepMarginInlineEnd,backgroundColor:jt.remainingColor,transition:`all ${jt.motionDurationSlow}`,"&-active":{backgroundColor:jt.defaultColor}}}}}},Be=jt=>{const{componentCls:Kt,iconCls:en}=jt;return{[Kt]:{[`${Kt}-small&-line, ${Kt}-small&-line ${Kt}-text ${en}`]:{fontSize:jt.fontSizeSM}}}};var Te=(0,nt.Z)("Progress",jt=>{const Kt=jt.marginXXS/2,en=(0,Xe.TS)(jt,{progressStepMarginInlineEnd:Kt,progressStepMinWidth:Kt,progressActiveMotionDuration:"2.4s"});return[$e(en),tt(en),We(en),Be(en)]},jt=>({circleTextColor:jt.colorText,defaultColor:jt.colorInfo,remainingColor:jt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ke=function(jt,Kt){var en={};for(var cn in jt)Object.prototype.hasOwnProperty.call(jt,cn)&&Kt.indexOf(cn)<0&&(en[cn]=jt[cn]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,cn=Object.getOwnPropertySymbols(jt);yn<cn.length;yn++)Kt.indexOf(cn[yn])<0&&Object.prototype.propertyIsEnumerable.call(jt,cn[yn])&&(en[cn[yn]]=jt[cn[yn]]);return en};const gt=null,Ze=["normal","exception","active","success"];var zt=et.forwardRef((jt,Kt)=>{const{prefixCls:en,className:cn,rootClassName:yn,steps:On,strokeColor:or,percent:er=0,size:Tr="default",showInfo:Kn=!0,type:Nr="line",status:kr,format:Ur,style:Jr}=jt,Mr=Ke(jt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),di=et.useMemo(()=>{var Tt,ln;const Cn=pt(jt);return parseInt(Cn!==void 0?(Tt=Cn!=null?Cn:0)===null||Tt===void 0?void 0:Tt.toString():(ln=er!=null?er:0)===null||ln===void 0?void 0:ln.toString(),10)},[er,jt.success,jt.successPercent]),Dr=et.useMemo(()=>!Ze.includes(kr)&&di>=100?"success":kr||"normal",[kr,di]),{getPrefixCls:ot,direction:Ci,progress:xi}=et.useContext(Me.E_),pr=ot("progress",en),[Pr,jr]=Te(pr),Li=et.useMemo(()=>{if(!Kn)return null;const Tt=pt(jt);let ln;const Cn=Ur||(Rt=>`${Rt}%`),Xt=Nr==="line";return Ur||Dr!=="exception"&&Dr!=="success"?ln=Cn(it(er),it(Tt)):Dr==="exception"?ln=Xt?et.createElement(ze.Z,null):et.createElement(je.Z,null):Dr==="success"&&(ln=Xt?et.createElement(Mt.Z,null):et.createElement(oe.Z,null)),et.createElement("span",{className:`${pr}-text`,title:typeof ln=="string"?ln:void 0},ln)},[Kn,er,di,Dr,Nr,pr,Ur]),nr=Array.isArray(or)?or[0]:or,ar=typeof or=="string"||Array.isArray(or)?or:void 0;let nn;Nr==="line"?nn=On?et.createElement(ct,Object.assign({},jt,{strokeColor:ar,prefixCls:pr,steps:On}),Li):et.createElement(bt,Object.assign({},jt,{strokeColor:nr,prefixCls:pr,direction:Ci}),Li):(Nr==="circle"||Nr==="dashboard")&&(nn=et.createElement(kt,Object.assign({},jt,{strokeColor:nr,prefixCls:pr,progressStatus:Dr}),Li));const qt=ce()(pr,`${pr}-status-${Dr}`,`${pr}-${Nr==="dashboard"&&"circle"||On&&"steps"||Nr}`,{[`${pr}-inline-circle`]:Nr==="circle"&&ft(Tr,"circle")[0]<=20,[`${pr}-show-info`]:Kn,[`${pr}-${Tr}`]:typeof Tr=="string",[`${pr}-rtl`]:Ci==="rtl"},xi==null?void 0:xi.className,cn,yn,jr);return Pr(et.createElement("div",Object.assign({ref:Kt,style:Object.assign(Object.assign({},xi==null?void 0:xi.style),Jr),className:qt,role:"progressbar","aria-valuenow":di},(0,we.Z)(Mr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),nn))}),Yt=zt},13570:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return it}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},ze=oe,je=Ge(7657),ve=function(wt,xt){return Mt.createElement(je.Z,(0,et.Z)({},wt,{ref:xt,icon:ze}))},ce=Mt.forwardRef(ve),we=ce,Me=Ge(92310),Se=Ge.n(Me),Pe=Ge(90493),me=Ge(72071),xe=Ge(6620),fe=Ge(18929),z=Ge(10228),ee=Ge(26112);function ae(pt,wt){var xt=pt.disabled,ft=pt.prefixCls,mt=pt.character,yt=pt.characterRender,It=pt.index,kt=pt.count,Ut=pt.value,Pt=pt.allowHalf,Ct=pt.focused,st=pt.onHover,bt=pt.onClick,at=function(tt){st(tt,It)},ct=function(tt){bt(tt,It)},Lt=function(tt){tt.keyCode===z.Z.ENTER&&bt(tt,It)},vt=It+1,nt=new Set([ft]);Ut===0&&It===0&&Ct?nt.add("".concat(ft,"-focused")):Pt&&Ut+.5>=vt&&Ut<vt?(nt.add("".concat(ft,"-half")),nt.add("".concat(ft,"-active")),Ct&&nt.add("".concat(ft,"-focused"))):(vt<=Ut?nt.add("".concat(ft,"-full")):nt.add("".concat(ft,"-zero")),vt===Ut&&Ct&&nt.add("".concat(ft,"-focused")));var Xe=typeof mt=="function"?mt(pt):mt,Ue=Mt.createElement("li",{className:Se()(Array.from(nt)),ref:wt},Mt.createElement("div",{onClick:xt?null:ct,onKeyDown:xt?null:Lt,onMouseMove:xt?null:at,role:"radio","aria-checked":Ut>It?"true":"false","aria-posinset":It+1,"aria-setsize":kt,tabIndex:xt?-1:0},Mt.createElement("div",{className:"".concat(ft,"-first")},Xe),Mt.createElement("div",{className:"".concat(ft,"-second")},Xe)));return yt&&(Ue=yt(Ue,pt)),Ue}var re=Mt.forwardRef(ae);function le(){var pt=Mt.useRef({});function wt(ft){return pt.current[ft]}function xt(ft){return function(mt){pt.current[ft]=mt}}return[wt,xt]}function ue(pt){var wt=pt.pageXOffset,xt="scrollLeft";if(typeof wt!="number"){var ft=pt.document;wt=ft.documentElement[xt],typeof wt!="number"&&(wt=ft.body[xt])}return wt}function pe(pt){var wt,xt,ft=pt.ownerDocument,mt=ft.body,yt=ft&&ft.documentElement,It=pt.getBoundingClientRect();return wt=It.left,xt=It.top,wt-=yt.clientLeft||mt.clientLeft||0,xt-=yt.clientTop||mt.clientTop||0,{left:wt,top:xt}}function be(pt){var wt=pe(pt),xt=pt.ownerDocument,ft=xt.defaultView||xt.parentWindow;return wt.left+=ue(ft),wt.left}var Ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ie(pt,wt){var xt,ft=pt.prefixCls,mt=ft===void 0?"rc-rate":ft,yt=pt.className,It=pt.defaultValue,kt=pt.value,Ut=pt.count,Pt=Ut===void 0?5:Ut,Ct=pt.allowHalf,st=Ct===void 0?!1:Ct,bt=pt.allowClear,at=bt===void 0?!0:bt,ct=pt.character,Lt=ct===void 0?"\u2605":ct,vt=pt.characterRender,nt=pt.disabled,Xe=pt.direction,Ue=Xe===void 0?"ltr":Xe,$e=pt.tabIndex,tt=$e===void 0?0:$e,We=pt.autoFocus,Be=pt.onHoverChange,Te=pt.onChange,Ke=pt.onFocus,gt=pt.onBlur,Ze=pt.onKeyDown,Ot=pt.onMouseLeave,zt=(0,xe.Z)(pt,Ce),Yt=le(),jt=(0,me.Z)(Yt,2),Kt=jt[0],en=jt[1],cn=Mt.useRef(null),yn=function(){if(!nt){var Rt;(Rt=cn.current)===null||Rt===void 0||Rt.focus()}};Mt.useImperativeHandle(wt,function(){return{focus:yn,blur:function(){if(!nt){var Rt;(Rt=cn.current)===null||Rt===void 0||Rt.blur()}}}});var On=(0,fe.Z)(It||0,{value:kt}),or=(0,me.Z)(On,2),er=or[0],Tr=or[1],Kn=(0,fe.Z)(null),Nr=(0,me.Z)(Kn,2),kr=Nr[0],Ur=Nr[1],Jr=function(Rt,fn){var un=Ue==="rtl",Gn=Rt+1;if(st){var Xn=Kt(Rt),$t=be(Xn),kn=Xn.clientWidth;(un&&fn-$t>kn/2||!un&&fn-$t<kn/2)&&(Gn-=.5)}return Gn},Mr=function(Rt){Tr(Rt),Te==null||Te(Rt)},di=Mt.useState(!1),Dr=(0,me.Z)(di,2),ot=Dr[0],Ci=Dr[1],xi=function(){Ci(!0),Ke==null||Ke()},pr=function(){Ci(!1),gt==null||gt()},Pr=Mt.useState(null),jr=(0,me.Z)(Pr,2),Li=jr[0],nr=jr[1],ar=function(Rt,fn){var un=Jr(fn,Rt.pageX);un!==kr&&(nr(un),Ur(null)),Be==null||Be(un)},nn=function(Rt){nt||(nr(null),Ur(null),Be==null||Be(void 0)),Rt&&(Ot==null||Ot(Rt))},qt=function(Rt,fn){var un=Jr(fn,Rt.pageX),Gn=!1;at&&(Gn=un===er),nn(),Mr(Gn?0:un),Ur(Gn?un:null)},Tt=function(Rt){var fn=Rt.keyCode,un=Ue==="rtl",Gn=er;fn===z.Z.RIGHT&&Gn<Pt&&!un?(st?Gn+=.5:Gn+=1,Mr(Gn),Rt.preventDefault()):fn===z.Z.LEFT&&Gn>0&&!un||fn===z.Z.RIGHT&&Gn>0&&un?(st?Gn-=.5:Gn-=1,Mr(Gn),Rt.preventDefault()):fn===z.Z.LEFT&&Gn<Pt&&un&&(st?Gn+=.5:Gn+=1,Mr(Gn),Rt.preventDefault()),Ze==null||Ze(Rt)};Mt.useEffect(function(){We&&!nt&&yn()},[]);var ln=new Array(Pt).fill(0).map(function(Xt,Rt){return Mt.createElement(re,{ref:en(Rt),index:Rt,count:Pt,disabled:nt,prefixCls:"".concat(mt,"-star"),allowHalf:st,value:Li===null?er:Li,onClick:qt,onHover:ar,key:Xt||Rt,character:Lt,characterRender:vt,focused:ot})}),Cn=Se()(mt,yt,(xt={},(0,Pe.Z)(xt,"".concat(mt,"-disabled"),nt),(0,Pe.Z)(xt,"".concat(mt,"-rtl"),Ue==="rtl"),xt));return Mt.createElement("ul",(0,et.Z)({className:Cn,onMouseLeave:nn,tabIndex:nt?-1:tt,onFocus:nt?null:xi,onBlur:nt?null:pr,onKeyDown:nt?null:Tt,ref:cn,role:"radiogroup"},(0,ee.Z)(zt,{aria:!0,data:!0,attr:!0})),ln)}var Oe=Mt.forwardRef(Ie),Le=Oe,Ne=Ge(36355),De=Ge(6848),Re=Ge(17313),Je=Ge(83116),_e=Ge(37613);const Ve=pt=>{const{componentCls:wt}=pt;return{[`${wt}-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 ${wt}-star-first, &-half ${wt}-star-second`]:{opacity:1},[`&-half ${wt}-star-first, &-full ${wt}-star-second`]:{color:"inherit"}}}},Qe=pt=>({[`&-rtl${pt.componentCls}`]:{direction:"rtl"}}),ut=pt=>{const{componentCls:wt}=pt;return{[wt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(pt)),{display:"inline-block",margin:0,padding:0,color:pt.starColor,fontSize:pt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${wt} ${wt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ve(pt)),{[`+ ${wt}-text`]:{display:"inline-block",marginInlineStart:pt.marginXS,fontSize:pt.fontSize}}),Qe(pt))}};var dt=(0,Je.Z)("Rate",pt=>{const wt=(0,_e.TS)(pt,{});return[ut(wt)]},pt=>({starColor:pt.yellow6,starSize:pt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:pt.colorFillContent})),St=function(pt,wt){var xt={};for(var ft in pt)Object.prototype.hasOwnProperty.call(pt,ft)&&wt.indexOf(ft)<0&&(xt[ft]=pt[ft]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ft=Object.getOwnPropertySymbols(pt);mt<ft.length;mt++)wt.indexOf(ft[mt])<0&&Object.prototype.propertyIsEnumerable.call(pt,ft[mt])&&(xt[ft[mt]]=pt[ft[mt]]);return xt},it=Mt.forwardRef((pt,wt)=>{const{prefixCls:xt,className:ft,rootClassName:mt,style:yt,tooltips:It,character:kt=Mt.createElement(we,null)}=pt,Ut=St(pt,["prefixCls","className","rootClassName","style","tooltips","character"]),Pt=(nt,Xe)=>{let{index:Ue}=Xe;return It?Mt.createElement(De.Z,{title:It[Ue]},nt):nt},{getPrefixCls:Ct,direction:st,rate:bt}=Mt.useContext(Ne.E_),at=Ct("rate",xt),[ct,Lt]=dt(at),vt=Object.assign(Object.assign({},bt==null?void 0:bt.style),yt);return ct(Mt.createElement(Le,Object.assign({ref:wt,character:kt,characterRender:Pt},Ut,{className:Se()(ft,mt,Lt,bt==null?void 0:bt.className),style:vt,prefixCls:at,direction:st})))})},57809:function(_n,Pn,Ge){"use strict";var et=Ge(92310),Mt=Ge.n(et),oe=Ge(77861),ze=Ge(2738),je=Ge(59301),ve=Ge(53487),ce=Ge(62892),we=Ge(19080),Me=Ge(36355),Se=Ge(1684),Pe=Ge(93891),me=Ge(19716),xe=Ge(32441),fe=Ge(33234),z=Ge(14154),ee=Ge(58582),ae=Ge(84443),re=Ge(66339),le=function(Ie,Oe){var Le={};for(var Ne in Ie)Object.prototype.hasOwnProperty.call(Ie,Ne)&&Oe.indexOf(Ne)<0&&(Le[Ne]=Ie[Ne]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ne=Object.getOwnPropertySymbols(Ie);De<Ne.length;De++)Oe.indexOf(Ne[De])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ne[De])&&(Le[Ne[De]]=Ie[Ne[De]]);return Le};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Ie,Oe)=>{var Le,{prefixCls:Ne,bordered:De=!0,className:Re,rootClassName:Je,getPopupContainer:_e,popupClassName:Ve,dropdownClassName:Qe,listHeight:ut=256,placement:dt,listItemHeight:St=24,size:qe,disabled:it,notFoundContent:pt,status:wt,builtinPlacements:xt,dropdownMatchSelectWidth:ft,popupMatchSelectWidth:mt,direction:yt,style:It,allowClear:kt}=Ie,Ut=le(Ie,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Pt,getPrefixCls:Ct,renderEmpty:st,direction:bt,virtual:at,popupMatchSelectWidth:ct,popupOverflow:Lt,select:vt}=je.useContext(Me.E_),nt=Ct("select",Ne),Xe=Ct(),Ue=yt!=null?yt:bt,{compactSize:$e,compactItemClassnames:tt}=(0,fe.ri)(nt,Ue),[We,Be]=(0,z.Z)(nt),Te=je.useMemo(()=>{const{mode:Dr}=Ut;if(Dr!=="combobox")return Dr===ue?"combobox":Dr},[Ut.mode]),Ke=Te==="multiple"||Te==="tags",gt=(0,ae.Z)(Ut.suffixIcon,Ut.showArrow),Ze=(Le=mt!=null?mt:ft)!==null&&Le!==void 0?Le:ct,{status:Ot,hasFeedback:zt,isFormItemInput:Yt,feedbackIcon:jt}=je.useContext(xe.aM),Kt=(0,we.F)(Ot,wt);let en;pt!==void 0?en=pt:Te==="combobox"?en=null:en=(st==null?void 0:st("Select"))||je.createElement(Pe.Z,{componentName:"Select"});const{suffixIcon:cn,itemIcon:yn,removeIcon:On,clearIcon:or}=(0,re.Z)(Object.assign(Object.assign({},Ut),{multiple:Ke,hasFeedback:zt,feedbackIcon:jt,showSuffixIcon:gt,prefixCls:nt,showArrow:Ut.showArrow,componentName:"Select"})),er=kt===!0?{clearIcon:or}:kt,Tr=(0,ze.Z)(Ut,["suffixIcon","itemIcon"]),Kn=Mt()(Ve||Qe,{[`${nt}-dropdown-${Ue}`]:Ue==="rtl"},Je,Be),Nr=(0,me.Z)(Dr=>{var ot;return(ot=qe!=null?qe:$e)!==null&&ot!==void 0?ot:Dr}),kr=je.useContext(Se.Z),Ur=it!=null?it:kr,Jr=Mt()({[`${nt}-lg`]:Nr==="large",[`${nt}-sm`]:Nr==="small",[`${nt}-rtl`]:Ue==="rtl",[`${nt}-borderless`]:!De,[`${nt}-in-form-item`]:Yt},(0,we.Z)(nt,Kt,zt),tt,vt==null?void 0:vt.className,Re,Je,Be),Mr=je.useMemo(()=>dt!==void 0?dt:Ue==="rtl"?"bottomRight":"bottomLeft",[dt,Ue]),di=(0,ee.Z)(xt,Lt);return We(je.createElement(oe.ZP,Object.assign({ref:Oe,virtual:at,showSearch:vt==null?void 0:vt.showSearch},Tr,{style:Object.assign(Object.assign({},vt==null?void 0:vt.style),It),dropdownMatchSelectWidth:Ze,builtinPlacements:di,transitionName:(0,ce.m)(Xe,"slide-up",Ut.transitionName),listHeight:ut,listItemHeight:St,mode:Te,prefixCls:nt,placement:Mr,direction:Ue,suffixIcon:cn,menuItemSelectedIcon:yn,removeIcon:On,allowClear:er,notFoundContent:en,className:Jr,getPopupContainer:_e||Pt,dropdownClassName:Kn,disabled:Ur})))},be=je.forwardRef(pe),Ce=(0,ve.Z)(be);be.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,be.Option=oe.Wx,be.OptGroup=oe.Xo,be._InternalPanelDoNotUseOrYouWillBeFired=Ce,Pn.default=be},14154:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return be}});var et=Ge(17313),Mt=Ge(74207),oe=Ge(37613),ze=Ge(83116),je=Ge(13826),ve=Ge(92899);const ce=Ce=>{const{optionHeight:Ie,optionFontSize:Oe,optionLineHeight:Le,optionPadding:Ne}=Ce;return{position:"relative",display:"block",minHeight:Ie,padding:Ne,color:Ce.colorText,fontWeight:"normal",fontSize:Oe,lineHeight:Le,boxSizing:"border-box"}};var Me=Ce=>{const{antCls:Ie,componentCls:Oe}=Ce,Le=`${Oe}-item`,Ne=`&${Ie}-slide-up-enter${Ie}-slide-up-enter-active`,De=`&${Ie}-slide-up-appear${Ie}-slide-up-appear-active`,Re=`&${Ie}-slide-up-leave${Ie}-slide-up-leave-active`,Je=`${Oe}-dropdown-placement-`;return[{[`${Oe}-dropdown`]:Object.assign(Object.assign({},(0,et.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,[`
|
|
|
${Ne}${Je}bottomLeft,
|
|
|
${De}${Je}bottomLeft
|
|
|
`]:{animationName:je.fJ},[`
|
|
|
${Ne}${Je}topLeft,
|
|
|
${De}${Je}topLeft,
|
|
|
${Ne}${Je}topRight,
|
|
|
${De}${Je}topRight
|
|
|
`]:{animationName:je.Qt},[`${Re}${Je}bottomLeft`]:{animationName:je.Uw},[`
|
|
|
${Re}${Je}topLeft,
|
|
|
${Re}${Je}topRight
|
|
|
`]:{animationName:je.ly},"&-hidden":{display:"none"},[`${Le}`]: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"},et.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Le}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${Le}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${Le}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${Le}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,je.oN)(Ce,"slide-up"),(0,je.oN)(Ce,"slide-down"),(0,ve.Fm)(Ce,"move-up"),(0,ve.Fm)(Ce,"move-down")]};const Se=2,Pe=Ce=>{let{controlHeightSM:Ie,controlHeight:Oe,lineWidth:Le}=Ce;const Ne=(Oe-Ie)/2-Le,De=Math.ceil(Ne/2);return[Ne,De]};function me(Ce,Ie){const{componentCls:Oe,iconCls:Le}=Ce,Ne=`${Oe}-selection-overflow`,De=Ce.multipleSelectItemHeight,[Re]=Pe(Ce),Je=Ie?`${Oe}-${Ie}`:"";return{[`${Oe}-multiple${Je}`]:{fontSize:Ce.fontSize,[Ne]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Oe}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Re-Se}px ${Se*2}px`,borderRadius:Ce.borderRadius,[`${Oe}-show-search&`]:{cursor:"text"},[`${Oe}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Se}px 0`,lineHeight:`${De}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Oe}-show-arrow ${Oe}-selector,
|
|
|
&${Oe}-allow-clear ${Oe}-selector
|
|
|
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Oe}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:De,marginTop:Se,marginBottom:Se,lineHeight:`${De-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,[`${Oe}-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,et.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Le}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${Ne}-item + ${Ne}-item`]:{[`${Oe}-selection-search`]:{marginInlineStart:0}},[`${Oe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-Re,"\n &-input,\n &-mirror\n ":{height:De,fontFamily:Ce.fontFamily,lineHeight:`${De}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"}},[`${Oe}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var fe=Ce=>{const{componentCls:Ie}=Ce,Oe=(0,oe.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),Le=(0,oe.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,Ne]=Pe(Ce);return[me(Ce),me(Oe,"sm"),{[`${Ie}-multiple${Ie}-sm`]:{[`${Ie}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${Ie}-selection-search`]:{marginInlineStart:Ne}}},me(Le,"lg")]};function z(Ce,Ie){const{componentCls:Oe,inputPaddingHorizontalBase:Le,borderRadius:Ne}=Ce,De=Ce.controlHeight-Ce.lineWidth*2,Re=Math.ceil(Ce.fontSize*1.25),Je=Ie?`${Oe}-${Ie}`:"";return{[`${Oe}-single${Je}`]:{fontSize:Ce.fontSize,[`${Oe}-selector`]:Object.assign(Object.assign({},(0,et.Wf)(Ce)),{display:"flex",borderRadius:Ne,[`${Oe}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Le,insetInlineEnd:Le,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Oe}-selection-item,
|
|
|
${Oe}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${De}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${De}px`}},[`${Oe}-selection-item`]:{position:"relative",userSelect:"none"},[`${Oe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Oe}-selection-item:after`,`${Oe}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Oe}-show-arrow ${Oe}-selection-item,
|
|
|
&${Oe}-show-arrow ${Oe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Re},[`&${Oe}-open ${Oe}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Oe}-customize-input)`]:{[`${Oe}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${Le}px`,[`${Oe}-selection-search-input`]:{height:De},"&:after":{lineHeight:`${De}px`}}},[`&${Oe}-customize-input`]:{[`${Oe}-selector`]:{"&:after":{display:"none"},[`${Oe}-selection-search`]:{position:"static",width:"100%"},[`${Oe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Le}px`,"&:after":{display:"none"}}}}}}}function ee(Ce){const{componentCls:Ie}=Ce,Oe=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[z(Ce),z((0,oe.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${Ie}-single${Ie}-sm`]:{[`&:not(${Ie}-customize-input)`]:{[`${Ie}-selection-search`]:{insetInlineStart:Oe,insetInlineEnd:Oe},[`${Ie}-selector`]:{padding:`0 ${Oe}px`},[`&${Ie}-show-arrow ${Ie}-selection-search`]:{insetInlineEnd:Oe+Ce.fontSize*1.5},[`
|
|
|
&${Ie}-show-arrow ${Ie}-selection-item,
|
|
|
&${Ie}-show-arrow ${Ie}-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:Ie,selectorBg:Oe}=Ce;return{position:"relative",backgroundColor:Oe,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ie}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ie}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${Ie}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(Ce,Ie){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Le,borderHoverColor:Ne,outlineColor:De,antCls:Re}=Ie,Je=Oe?{[`${Le}-selector`]:{borderColor:Ne}}:{};return{[Ce]:{[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Re}-pagination-size-changer)`]:Object.assign(Object.assign({},Je),{[`${Le}-focused& ${Le}-selector`]:{borderColor:Ne,boxShadow:`0 0 0 ${Ie.controlOutlineWidth}px ${De}`,outline:0},[`&:hover ${Le}-selector`]:{borderColor:Ne}})}}},le=Ce=>{const{componentCls:Ie}=Ce;return{[`${Ie}-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:Ie,inputPaddingHorizontalBase:Oe,iconCls:Le}=Ce;return{[Ie]:Object.assign(Object.assign({},(0,et.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ie}-customize-input) ${Ie}-selector`]:Object.assign(Object.assign({},ae(Ce)),le(Ce)),[`${Ie}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},et.vS),[`${Ie}-selection-placeholder`]:Object.assign(Object.assign({},et.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${Ie}-arrow`]:Object.assign(Object.assign({},(0,et.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Oe,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Le]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ie}-suffix)`]:{pointerEvents:"auto"}},[`${Ie}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ie}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Oe,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":{[`${Ie}-clear`]:{opacity:1}}}),[`${Ie}-has-feedback`]:{[`${Ie}-clear`]:{insetInlineEnd:Oe+Ce.fontSize+Ce.paddingXS}}}},pe=Ce=>{const{componentCls:Ie}=Ce;return[{[Ie]:{[`&-borderless ${Ie}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ie}-in-form-item`]:{width:"100%"}}},ue(Ce),ee(Ce),fe(Ce),Me(Ce),{[`${Ie}-rtl`]:{direction:"rtl"}},re(Ie,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),re(`${Ie}-status-error`,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),re(`${Ie}-status-warning`,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,Mt.c)(Ce,{borderElCls:`${Ie}-selector`,focusElCls:`${Ie}-focused`})]};var be=(0,ze.Z)("Select",(Ce,Ie)=>{let{rootPrefixCls:Oe}=Ie;const Le=(0,oe.TS)(Ce,{rootPrefixCls:Oe,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[pe(Le)]},Ce=>{const{fontSize:Ie,lineHeight:Oe,controlHeight:Le,controlPaddingHorizontal:Ne,zIndexPopupBase:De,colorText:Re,fontWeightStrong:Je,controlItemBgActive:_e,controlItemBgHover:Ve,colorBgContainer:Qe,colorFillSecondary:ut,controlHeightLG:dt,controlHeightSM:St,colorBgContainerDisabled:qe,colorTextDisabled:it}=Ce;return{zIndexPopup:De+50,optionSelectedColor:Re,optionSelectedFontWeight:Je,optionSelectedBg:_e,optionActiveBg:Ve,optionPadding:`${(Le-Ie*Oe)/2}px ${Ne}px`,optionFontSize:Ie,optionLineHeight:Oe,optionHeight:Le,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:dt,multipleItemBg:ut,multipleItemBorderColor:"transparent",multipleItemHeight:St,multipleItemHeightLG:Le,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:it,multipleItemBorderColorDisabled:"transparent"}})},58582:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Mt}});const et=oe=>{const je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},je),{points:["br","tr"],offset:[0,-4]})}};function Mt(oe,ze){return oe||et(ze)}},84443:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return et}});function et(Mt,oe){return oe!==void 0?oe:Mt!==null}},66339:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});var et=Ge(40001),Mt=Ge(19248),oe=Ge(99267),ze=Ge(84105),je=Ge(58617),ve=Ge(47472),ce=Ge(59301);function we(Me){let{suffixIcon:Se,clearIcon:Pe,menuItemSelectedIcon:me,removeIcon:xe,loading:fe,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Me;const be=Pe!=null?Pe:ce.createElement(Mt.Z,null),Ce=Ne=>Se===null&&!ee&&!ue?null:ce.createElement(ce.Fragment,null,re!==!1&&Ne,ee&&le);let Ie=null;if(Se!==void 0)Ie=Ce(Se);else if(fe)Ie=Ce(ce.createElement(je.Z,{spin:!0}));else{const Ne=`${ae}-suffix`;Ie=De=>{let{open:Re,showSearch:Je}=De;return Ce(Re&&Je?ce.createElement(ve.Z,{className:Ne}):ce.createElement(ze.Z,{className:Ne}))}}let Oe=null;me!==void 0?Oe=me:z?Oe=ce.createElement(et.Z,null):Oe=null;let Le=null;return xe!==void 0?Le=xe:Le=ce.createElement(oe.Z,null),{clearIcon:be,suffixIcon:Ie,itemIcon:Oe,removeIcon:Le}}},61621:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Lt}});var et=Ge(92310),Mt=Ge.n(et),oe=Ge(59301),ze=Ge(36355),je=Ge(2738),ce=vt=>{const{prefixCls:nt,className:Xe,style:Ue,size:$e,shape:tt}=vt,We=Mt()({[`${nt}-lg`]:$e==="large",[`${nt}-sm`]:$e==="small"}),Be=Mt()({[`${nt}-circle`]:tt==="circle",[`${nt}-square`]:tt==="square",[`${nt}-round`]:tt==="round"}),Te=oe.useMemo(()=>typeof $e=="number"?{width:$e,height:$e,lineHeight:`${$e}px`}:{},[$e]);return oe.createElement("span",{className:Mt()(nt,We,Be,Xe),style:Object.assign(Object.assign({},Te),Ue)})},we=Ge(93083),Me=Ge(83116),Se=Ge(37613);const Pe=new we.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=vt=>({height:vt,lineHeight:`${vt}px`}),xe=vt=>Object.assign({width:vt},me(vt)),fe=vt=>({background:vt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Pe,animationDuration:vt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),z=vt=>Object.assign({width:vt*5,minWidth:vt*5},me(vt)),ee=vt=>{const{skeletonAvatarCls:nt,gradientFromColor:Xe,controlHeight:Ue,controlHeightLG:$e,controlHeightSM:tt}=vt;return{[`${nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Xe},xe(Ue)),[`${nt}${nt}-circle`]:{borderRadius:"50%"},[`${nt}${nt}-lg`]:Object.assign({},xe($e)),[`${nt}${nt}-sm`]:Object.assign({},xe(tt))}},ae=vt=>{const{controlHeight:nt,borderRadiusSM:Xe,skeletonInputCls:Ue,controlHeightLG:$e,controlHeightSM:tt,gradientFromColor:We}=vt;return{[`${Ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:Xe},z(nt)),[`${Ue}-lg`]:Object.assign({},z($e)),[`${Ue}-sm`]:Object.assign({},z(tt))}},re=vt=>Object.assign({width:vt},me(vt)),le=vt=>{const{skeletonImageCls:nt,imageSizeBase:Xe,gradientFromColor:Ue,borderRadiusSM:$e}=vt;return{[`${nt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ue,borderRadius:$e},re(Xe*2)),{[`${nt}-path`]:{fill:"#bfbfbf"},[`${nt}-svg`]:Object.assign(Object.assign({},re(Xe)),{maxWidth:Xe*4,maxHeight:Xe*4}),[`${nt}-svg${nt}-svg-circle`]:{borderRadius:"50%"}}),[`${nt}${nt}-circle`]:{borderRadius:"50%"}}},ue=(vt,nt,Xe)=>{const{skeletonButtonCls:Ue}=vt;return{[`${Xe}${Ue}-circle`]:{width:nt,minWidth:nt,borderRadius:"50%"},[`${Xe}${Ue}-round`]:{borderRadius:nt}}},pe=vt=>Object.assign({width:vt*2,minWidth:vt*2},me(vt)),be=vt=>{const{borderRadiusSM:nt,skeletonButtonCls:Xe,controlHeight:Ue,controlHeightLG:$e,controlHeightSM:tt,gradientFromColor:We}=vt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:nt,width:Ue*2,minWidth:Ue*2},pe(Ue))},ue(vt,Ue,Xe)),{[`${Xe}-lg`]:Object.assign({},pe($e))}),ue(vt,$e,`${Xe}-lg`)),{[`${Xe}-sm`]:Object.assign({},pe(tt))}),ue(vt,tt,`${Xe}-sm`))},Ce=vt=>{const{componentCls:nt,skeletonAvatarCls:Xe,skeletonTitleCls:Ue,skeletonParagraphCls:$e,skeletonButtonCls:tt,skeletonInputCls:We,skeletonImageCls:Be,controlHeight:Te,controlHeightLG:Ke,controlHeightSM:gt,gradientFromColor:Ze,padding:Ot,marginSM:zt,borderRadius:Yt,titleHeight:jt,blockRadius:Kt,paragraphLiHeight:en,controlHeightXS:cn,paragraphMarginTop:yn}=vt;return{[`${nt}`]:{display:"table",width:"100%",[`${nt}-header`]:{display:"table-cell",paddingInlineEnd:Ot,verticalAlign:"top",[`${Xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze},xe(Te)),[`${Xe}-circle`]:{borderRadius:"50%"},[`${Xe}-lg`]:Object.assign({},xe(Ke)),[`${Xe}-sm`]:Object.assign({},xe(gt))},[`${nt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ue}`]:{width:"100%",height:jt,background:Ze,borderRadius:Kt,[`+ ${$e}`]:{marginBlockStart:gt}},[`${$e}`]:{padding:0,"> li":{width:"100%",height:en,listStyle:"none",background:Ze,borderRadius:Kt,"+ li":{marginBlockStart:cn}}},[`${$e}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${nt}-content`]:{[`${Ue}, ${$e} > li`]:{borderRadius:Yt}}},[`${nt}-with-avatar ${nt}-content`]:{[`${Ue}`]:{marginBlockStart:zt,[`+ ${$e}`]:{marginBlockStart:yn}}},[`${nt}${nt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},be(vt)),ee(vt)),ae(vt)),le(vt)),[`${nt}${nt}-block`]:{width:"100%",[`${tt}`]:{width:"100%"},[`${We}`]:{width:"100%"}},[`${nt}${nt}-active`]:{[`
|
|
|
${Ue},
|
|
|
${$e} > li,
|
|
|
${Xe},
|
|
|
${tt},
|
|
|
${We},
|
|
|
${Be}
|
|
|
`]:Object.assign({},fe(vt))}}};var Ie=(0,Me.Z)("Skeleton",vt=>{const{componentCls:nt}=vt,Xe=(0,Se.TS)(vt,{skeletonAvatarCls:`${nt}-avatar`,skeletonTitleCls:`${nt}-title`,skeletonParagraphCls:`${nt}-paragraph`,skeletonButtonCls:`${nt}-button`,skeletonInputCls:`${nt}-input`,skeletonImageCls:`${nt}-image`,imageSizeBase:vt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${vt.gradientFromColor} 25%, ${vt.gradientToColor} 37%, ${vt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(Xe)]},vt=>{const{colorFillContent:nt,colorFill:Xe}=vt,Ue=nt,$e=Xe;return{color:Ue,colorGradientEnd:$e,gradientFromColor:Ue,gradientToColor:$e,titleHeight:vt.controlHeight/2,blockRadius:vt.borderRadiusSM,paragraphMarginTop:vt.marginLG+vt.marginXXS,paragraphLiHeight:vt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Le=vt=>{const{prefixCls:nt,className:Xe,rootClassName:Ue,active:$e,shape:tt="circle",size:We="default"}=vt,{getPrefixCls:Be}=oe.useContext(ze.E_),Te=Be("skeleton",nt),[Ke,gt]=Ie(Te),Ze=(0,je.Z)(vt,["prefixCls","className"]),Ot=Mt()(Te,`${Te}-element`,{[`${Te}-active`]:$e},Xe,Ue,gt);return Ke(oe.createElement("div",{className:Ot},oe.createElement(ce,Object.assign({prefixCls:`${Te}-avatar`,shape:tt,size:We},Ze))))},De=vt=>{const{prefixCls:nt,className:Xe,rootClassName:Ue,active:$e,block:tt=!1,size:We="default"}=vt,{getPrefixCls:Be}=oe.useContext(ze.E_),Te=Be("skeleton",nt),[Ke,gt]=Ie(Te),Ze=(0,je.Z)(vt,["prefixCls"]),Ot=Mt()(Te,`${Te}-element`,{[`${Te}-active`]:$e,[`${Te}-block`]:tt},Xe,Ue,gt);return Ke(oe.createElement("div",{className:Ot},oe.createElement(ce,Object.assign({prefixCls:`${Te}-button`,size:We},Ze))))};const Re="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var _e=vt=>{const{prefixCls:nt,className:Xe,rootClassName:Ue,style:$e,active:tt}=vt,{getPrefixCls:We}=oe.useContext(ze.E_),Be=We("skeleton",nt),[Te,Ke]=Ie(Be),gt=Mt()(Be,`${Be}-element`,{[`${Be}-active`]:tt},Xe,Ue,Ke);return Te(oe.createElement("div",{className:gt},oe.createElement("div",{className:Mt()(`${Be}-image`,Xe),style:$e},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Be}-image-svg`},oe.createElement("path",{d:Re,className:`${Be}-image-path`})))))},Qe=vt=>{const{prefixCls:nt,className:Xe,rootClassName:Ue,active:$e,block:tt,size:We="default"}=vt,{getPrefixCls:Be}=oe.useContext(ze.E_),Te=Be("skeleton",nt),[Ke,gt]=Ie(Te),Ze=(0,je.Z)(vt,["prefixCls"]),Ot=Mt()(Te,`${Te}-element`,{[`${Te}-active`]:$e,[`${Te}-block`]:tt},Xe,Ue,gt);return Ke(oe.createElement("div",{className:Ot},oe.createElement(ce,Object.assign({prefixCls:`${Te}-input`,size:We},Ze))))},ut=Ge(96663),dt={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"},St=dt,qe=Ge(7657),it=function(nt,Xe){return oe.createElement(qe.Z,(0,ut.Z)({},nt,{ref:Xe,icon:St}))},pt=oe.forwardRef(it),wt=pt,ft=vt=>{const{prefixCls:nt,className:Xe,rootClassName:Ue,style:$e,active:tt,children:We}=vt,{getPrefixCls:Be}=oe.useContext(ze.E_),Te=Be("skeleton",nt),[Ke,gt]=Ie(Te),Ze=Mt()(Te,`${Te}-element`,{[`${Te}-active`]:tt},gt,Xe,Ue),Ot=We!=null?We:oe.createElement(wt,null);return Ke(oe.createElement("div",{className:Ze},oe.createElement("div",{className:Mt()(`${Te}-image`,Xe),style:$e},Ot)))},mt=Ge(19127),It=vt=>{const nt=Be=>{const{width:Te,rows:Ke=2}=vt;if(Array.isArray(Te))return Te[Be];if(Ke-1===Be)return Te},{prefixCls:Xe,className:Ue,style:$e,rows:tt}=vt,We=(0,mt.Z)(Array(tt)).map((Be,Te)=>oe.createElement("li",{key:Te,style:{width:nt(Te)}}));return oe.createElement("ul",{className:Mt()(Xe,Ue),style:$e},We)},Ut=vt=>{let{prefixCls:nt,className:Xe,width:Ue,style:$e}=vt;return oe.createElement("h3",{className:Mt()(nt,Xe),style:Object.assign({width:Ue},$e)})};function Pt(vt){return vt&&typeof vt=="object"?vt:{}}function Ct(vt,nt){return vt&&!nt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function st(vt,nt){return!vt&&nt?{width:"38%"}:vt&&nt?{width:"50%"}:{}}function bt(vt,nt){const Xe={};return(!vt||!nt)&&(Xe.width="61%"),!vt&&nt?Xe.rows=3:Xe.rows=2,Xe}const at=vt=>{const{prefixCls:nt,loading:Xe,className:Ue,rootClassName:$e,style:tt,children:We,avatar:Be=!1,title:Te=!0,paragraph:Ke=!0,active:gt,round:Ze}=vt,{getPrefixCls:Ot,direction:zt,skeleton:Yt}=oe.useContext(ze.E_),jt=Ot("skeleton",nt),[Kt,en]=Ie(jt);if(Xe||!("loading"in vt)){const cn=!!Be,yn=!!Te,On=!!Ke;let or;if(cn){const Kn=Object.assign(Object.assign({prefixCls:`${jt}-avatar`},Ct(yn,On)),Pt(Be));or=oe.createElement("div",{className:`${jt}-header`},oe.createElement(ce,Object.assign({},Kn)))}let er;if(yn||On){let Kn;if(yn){const kr=Object.assign(Object.assign({prefixCls:`${jt}-title`},st(cn,On)),Pt(Te));Kn=oe.createElement(Ut,Object.assign({},kr))}let Nr;if(On){const kr=Object.assign(Object.assign({prefixCls:`${jt}-paragraph`},bt(cn,yn)),Pt(Ke));Nr=oe.createElement(It,Object.assign({},kr))}er=oe.createElement("div",{className:`${jt}-content`},Kn,Nr)}const Tr=Mt()(jt,{[`${jt}-with-avatar`]:cn,[`${jt}-active`]:gt,[`${jt}-rtl`]:zt==="rtl",[`${jt}-round`]:Ze},Yt==null?void 0:Yt.className,Ue,$e,en);return Kt(oe.createElement("div",{className:Tr,style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),tt)},or,er))}return typeof We!="undefined"?We:null};at.Button=De,at.Avatar=Le,at.Input=Qe,at.Image=_e,at.Node=ft;var ct=at,Lt=ct},81327:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return ae}});var et=Ge(59301),Mt=Ge(92310),oe=Ge.n(Mt),ze=Ge(11592),je=Ge(36355),ve=Ge(33234);const ce=et.createContext({latestIndex:0}),we=ce.Provider;var Se=re=>{let{className:le,index:ue,children:pe,split:be,style:Ce}=re;const{latestIndex:Ie}=et.useContext(ce);return pe==null?null:et.createElement(et.Fragment,null,et.createElement("div",{className:le,style:Ce},pe),ue<Ie&&be&&et.createElement("span",{className:`${le}-split`},be))},Pe=Ge(2856);function me(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=et.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:be,space:Ce,direction:Ie}=et.useContext(je.E_),{size:Oe=(Ce==null?void 0:Ce.size)||"small",align:Le,className:Ne,rootClassName:De,children:Re,direction:Je="horizontal",prefixCls:_e,split:Ve,style:Qe,wrap:ut=!1,classNames:dt,styles:St}=re,qe=fe(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[it,pt]=Array.isArray(Oe)?Oe:[Oe,Oe],wt=me(pt),xt=me(it),ft=xe(pt),mt=xe(it),yt=(0,ze.Z)(Re,{keepEmpty:!0}),It=Le===void 0&&Je==="horizontal"?"center":Le,kt=be("space",_e),[Ut,Pt]=(0,Pe.Z)(kt),Ct=oe()(kt,Ce==null?void 0:Ce.className,Pt,`${kt}-${Je}`,{[`${kt}-rtl`]:Ie==="rtl",[`${kt}-align-${It}`]:It,[`${kt}-gap-row-${pt}`]:wt,[`${kt}-gap-col-${it}`]:xt},Ne,De),st=oe()(`${kt}-item`,(ue=dt==null?void 0:dt.item)!==null&&ue!==void 0?ue:(pe=Ce==null?void 0:Ce.classNames)===null||pe===void 0?void 0:pe.item);let bt=0;const at=yt.map((vt,nt)=>{var Xe,Ue;vt!=null&&(bt=nt);const $e=vt&&vt.key||`${st}-${nt}`;return et.createElement(Se,{className:st,key:$e,index:nt,split:Ve,style:(Xe=St==null?void 0:St.item)!==null&&Xe!==void 0?Xe:(Ue=Ce==null?void 0:Ce.styles)===null||Ue===void 0?void 0:Ue.item},vt)}),ct=et.useMemo(()=>({latestIndex:bt}),[bt]);if(yt.length===0)return null;const Lt={};return ut&&(Lt.flexWrap="wrap"),!xt&&mt&&(Lt.columnGap=it),!wt&&ft&&(Lt.rowGap=pt),Ut(et.createElement("div",Object.assign({ref:le,className:Ct,style:Object.assign(Object.assign(Object.assign({},Lt),Ce==null?void 0:Ce.style),Qe)},qe),et.createElement(we,{value:ct},at)))});ee.Compact=ve.ZP;var ae=ee},31797:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{default:function(){return Ie}});var et=Ge(59301),Mt=Ge(56762),oe=Ge(92343),ze=Ge(92310),je=Ge.n(ze),ve=Ge(36355),ce=Ge(61621),Me=Oe=>{const{value:Le,formatter:Ne,precision:De,decimalSeparator:Re,groupSeparator:Je="",prefixCls:_e}=Oe;let Ve;if(typeof Ne=="function")Ve=Ne(Le);else{const Qe=String(Le),ut=Qe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ut||Qe==="-")Ve=Qe;else{const dt=ut[1];let St=ut[2]||"0",qe=ut[4]||"";St=St.replace(/\B(?=(\d{3})+(?!\d))/g,Je),typeof De=="number"&&(qe=qe.padEnd(De,"0").slice(0,De>0?De:0)),qe&&(qe=`${Re}${qe}`),Ve=[et.createElement("span",{key:"int",className:`${_e}-content-value-int`},dt,St),qe&&et.createElement("span",{key:"decimal",className:`${_e}-content-value-decimal`},qe)]}}return et.createElement("span",{className:`${_e}-content-value`},Ve)},Se=Ge(17313),Pe=Ge(83116),me=Ge(37613);const xe=Oe=>{const{componentCls:Le,marginXXS:Ne,padding:De,colorTextDescription:Re,titleFontSize:Je,colorTextHeading:_e,contentFontSize:Ve,fontFamily:Qe}=Oe;return{[`${Le}`]:Object.assign(Object.assign({},(0,Se.Wf)(Oe)),{[`${Le}-title`]:{marginBottom:Ne,color:Re,fontSize:Je},[`${Le}-skeleton`]:{paddingTop:De},[`${Le}-content`]:{color:_e,fontSize:Ve,fontFamily:Qe,[`${Le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Le}-content-prefix, ${Le}-content-suffix`]:{display:"inline-block"},[`${Le}-content-prefix`]:{marginInlineEnd:Ne},[`${Le}-content-suffix`]:{marginInlineStart:Ne}}})}};var fe=(0,Pe.Z)("Statistic",Oe=>{const Le=(0,me.TS)(Oe,{});return[xe(Le)]},Oe=>{const{fontSizeHeading3:Le,fontSize:Ne}=Oe;return{titleFontSize:Ne,contentFontSize:Le}}),ee=Oe=>{const{prefixCls:Le,className:Ne,rootClassName:De,style:Re,valueStyle:Je,value:_e=0,title:Ve,valueRender:Qe,prefix:ut,suffix:dt,loading:St=!1,onMouseEnter:qe,onMouseLeave:it,decimalSeparator:pt=".",groupSeparator:wt=","}=Oe,{getPrefixCls:xt,direction:ft,statistic:mt}=et.useContext(ve.E_),yt=xt("statistic",Le),[It,kt]=fe(yt),Ut=et.createElement(Me,Object.assign({decimalSeparator:pt,groupSeparator:wt,prefixCls:yt},Oe,{value:_e})),Pt=je()(yt,{[`${yt}-rtl`]:ft==="rtl"},mt==null?void 0:mt.className,Ne,De,kt);return It(et.createElement("div",{className:Pt,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Re),onMouseEnter:qe,onMouseLeave:it},Ve&&et.createElement("div",{className:`${yt}-title`},Ve),et.createElement(ce.Z,{paragraph:!1,loading:St,className:`${yt}-skeleton`},et.createElement("div",{style:Je,className:`${yt}-content`},ut&&et.createElement("span",{className:`${yt}-content-prefix`},ut),Qe?Qe(Ut):Ut,dt&&et.createElement("span",{className:`${yt}-content-suffix`},dt)))))};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(Oe,Le){let Ne=Oe;const De=/\[[^\]]*]/g,Re=(Le.match(De)||[]).map(Qe=>Qe.slice(1,-1)),Je=Le.replace(De,"[]"),_e=ae.reduce((Qe,ut)=>{let[dt,St]=ut;if(Qe.includes(dt)){const qe=Math.floor(Ne/St);return Ne-=qe*St,Qe.replace(new RegExp(`${dt}+`,"g"),it=>{const pt=it.length;return qe.toString().padStart(pt,"0")})}return Qe},Je);let Ve=0;return _e.replace(De,()=>{const Qe=Re[Ve];return Ve+=1,Qe})}function le(Oe,Le){const{format:Ne=""}=Le,De=new Date(Oe).getTime(),Re=Date.now(),Je=Math.max(De-Re,0);return re(Je,Ne)}const ue=1e3/30;function pe(Oe){return new Date(Oe).getTime()}const be=Oe=>{const{value:Le,format:Ne="HH:mm:ss",onChange:De,onFinish:Re}=Oe,Je=(0,Mt.Z)(),_e=et.useRef(null),Ve=()=>{Re==null||Re(),_e.current&&(clearInterval(_e.current),_e.current=null)},Qe=()=>{const St=pe(Le);St>=Date.now()&&(_e.current=setInterval(()=>{Je(),De==null||De(St-Date.now()),St<Date.now()&&Ve()},ue))};et.useEffect(()=>(Qe(),()=>{_e.current&&(clearInterval(_e.current),_e.current=null)}),[Le]);const ut=(St,qe)=>le(St,Object.assign(Object.assign({},qe),{format:Ne})),dt=St=>(0,oe.Tm)(St,{title:void 0});return et.createElement(ee,Object.assign({},Oe,{valueRender:dt,formatter:ut}))};var Ce=et.memo(be);ee.Countdown=Ce;var Ie=ee},15969:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{N:function(){return et}});const et=Mt=>({color:Mt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Mt.motionDurationSlow}`,"&:focus, &:hover":{color:Mt.colorLinkHover},"&:active":{color:Mt.colorLinkActive}})},78673:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Je}});var et=Ge(58617),Mt=Ge(92310),oe=Ge.n(Mt),ze=Ge(96663),je=Ge(90493),ve=Ge(72071),ce=Ge(6620),we=Ge(59301),Me=Ge(18929),Se=Ge(10228),Pe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],me=we.forwardRef(function(_e,Ve){var Qe,ut=_e.prefixCls,dt=ut===void 0?"rc-switch":ut,St=_e.className,qe=_e.checked,it=_e.defaultChecked,pt=_e.disabled,wt=_e.loadingIcon,xt=_e.checkedChildren,ft=_e.unCheckedChildren,mt=_e.onClick,yt=_e.onChange,It=_e.onKeyDown,kt=(0,ce.Z)(_e,Pe),Ut=(0,Me.Z)(!1,{value:qe,defaultValue:it}),Pt=(0,ve.Z)(Ut,2),Ct=Pt[0],st=Pt[1];function bt(vt,nt){var Xe=Ct;return pt||(Xe=vt,st(Xe),yt==null||yt(Xe,nt)),Xe}function at(vt){vt.which===Se.Z.LEFT?bt(!1,vt):vt.which===Se.Z.RIGHT&&bt(!0,vt),It==null||It(vt)}function ct(vt){var nt=bt(!Ct,vt);mt==null||mt(nt,vt)}var Lt=oe()(dt,St,(Qe={},(0,je.Z)(Qe,"".concat(dt,"-checked"),Ct),(0,je.Z)(Qe,"".concat(dt,"-disabled"),pt),Qe));return we.createElement("button",(0,ze.Z)({},kt,{type:"button",role:"switch","aria-checked":Ct,disabled:pt,className:Lt,ref:Ve,onKeyDown:at,onClick:ct}),wt,we.createElement("span",{className:"".concat(dt,"-inner")},we.createElement("span",{className:"".concat(dt,"-inner-checked")},xt),we.createElement("span",{className:"".concat(dt,"-inner-unchecked")},ft)))});me.displayName="Switch";var xe=me,fe=Ge(14088),z=Ge(36355),ee=Ge(1684),ae=Ge(19716),re=Ge(64993),le=Ge(17313),ue=Ge(83116),pe=Ge(37613);const be=_e=>{const{componentCls:Ve,trackHeightSM:Qe,trackPadding:ut,trackMinWidthSM:dt,innerMinMarginSM:St,innerMaxMarginSM:qe,handleSizeSM:it}=_e,pt=`${Ve}-inner`;return{[Ve]:{[`&${Ve}-small`]:{minWidth:dt,height:Qe,lineHeight:`${Qe}px`,[`${Ve}-inner`]:{paddingInlineStart:qe,paddingInlineEnd:St,[`${pt}-checked`]:{marginInlineStart:`calc(-100% + ${it+ut*2}px - ${qe*2}px)`,marginInlineEnd:`calc(100% - ${it+ut*2}px + ${qe*2}px)`},[`${pt}-unchecked`]:{marginTop:-Qe,marginInlineStart:0,marginInlineEnd:0}},[`${Ve}-handle`]:{width:it,height:it},[`${Ve}-loading-icon`]:{top:(it-_e.switchLoadingIconSize)/2,fontSize:_e.switchLoadingIconSize},[`&${Ve}-checked`]:{[`${Ve}-inner`]:{paddingInlineStart:St,paddingInlineEnd:qe,[`${pt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pt}-unchecked`]:{marginInlineStart:`calc(100% - ${it+ut*2}px + ${qe*2}px)`,marginInlineEnd:`calc(-100% + ${it+ut*2}px - ${qe*2}px)`}},[`${Ve}-handle`]:{insetInlineStart:`calc(100% - ${it+ut}px)`}},[`&:not(${Ve}-disabled):active`]:{[`&:not(${Ve}-checked) ${pt}`]:{[`${pt}-unchecked`]:{marginInlineStart:_e.marginXXS/2,marginInlineEnd:-_e.marginXXS/2}},[`&${Ve}-checked ${pt}`]:{[`${pt}-checked`]:{marginInlineStart:-_e.marginXXS/2,marginInlineEnd:_e.marginXXS/2}}}}}}},Ce=_e=>{const{componentCls:Ve,handleSize:Qe}=_e;return{[Ve]:{[`${Ve}-loading-icon${_e.iconCls}`]:{position:"relative",top:(Qe-_e.fontSize)/2,color:_e.switchLoadingIconColor,verticalAlign:"top"},[`&${Ve}-checked ${Ve}-loading-icon`]:{color:_e.switchColor}}}},Ie=_e=>{const{componentCls:Ve,motion:Qe,trackPadding:ut,handleBg:dt,handleShadow:St,handleSize:qe}=_e,it=`${Ve}-handle`;return{[Ve]:{[it]:{position:"absolute",top:ut,insetInlineStart:ut,width:qe,height:qe,transition:`all ${_e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:dt,borderRadius:qe/2,boxShadow:St,transition:`all ${_e.switchDuration} ease-in-out`,content:'""'}},[`&${Ve}-checked ${it}`]:{insetInlineStart:`calc(100% - ${qe+ut}px)`},[`&:not(${Ve}-disabled):active`]:Qe?{[`${it}::before`]:{insetInlineEnd:_e.switchHandleActiveInset,insetInlineStart:0},[`&${Ve}-checked ${it}::before`]:{insetInlineEnd:0,insetInlineStart:_e.switchHandleActiveInset}}:{}}}},Oe=_e=>{const{componentCls:Ve,trackHeight:Qe,trackPadding:ut,innerMinMargin:dt,innerMaxMargin:St,handleSize:qe}=_e,it=`${Ve}-inner`;return{[Ve]:{[it]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:St,paddingInlineEnd:dt,transition:`padding-inline-start ${_e.switchDuration} ease-in-out, padding-inline-end ${_e.switchDuration} ease-in-out`,[`${it}-checked, ${it}-unchecked`]:{display:"block",color:_e.colorTextLightSolid,fontSize:_e.fontSizeSM,transition:`margin-inline-start ${_e.switchDuration} ease-in-out, margin-inline-end ${_e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${it}-checked`]:{marginInlineStart:`calc(-100% + ${qe+ut*2}px - ${St*2}px)`,marginInlineEnd:`calc(100% - ${qe+ut*2}px + ${St*2}px)`},[`${it}-unchecked`]:{marginTop:-Qe,marginInlineStart:0,marginInlineEnd:0}},[`&${Ve}-checked ${it}`]:{paddingInlineStart:dt,paddingInlineEnd:St,[`${it}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${it}-unchecked`]:{marginInlineStart:`calc(100% - ${qe+ut*2}px + ${St*2}px)`,marginInlineEnd:`calc(-100% + ${qe+ut*2}px - ${St*2}px)`}},[`&:not(${Ve}-disabled):active`]:{[`&:not(${Ve}-checked) ${it}`]:{[`${it}-unchecked`]:{marginInlineStart:ut*2,marginInlineEnd:-ut*2}},[`&${Ve}-checked ${it}`]:{[`${it}-checked`]:{marginInlineStart:-ut*2,marginInlineEnd:ut*2}}}}}},Le=_e=>{const{componentCls:Ve,trackHeight:Qe,trackMinWidth:ut}=_e;return{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(_e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ut,height:Qe,lineHeight:`${Qe}px`,verticalAlign:"middle",background:_e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${_e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ve}-disabled)`]:{background:_e.colorTextTertiary}}),(0,le.Qy)(_e)),{[`&${Ve}-checked`]:{background:_e.switchColor,[`&:hover:not(${Ve}-disabled)`]:{background:_e.colorPrimaryHover}},[`&${Ve}-loading, &${Ve}-disabled`]:{cursor:"not-allowed",opacity:_e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ve}-rtl`]:{direction:"rtl"}})}};var Ne=(0,ue.Z)("Switch",_e=>{const Ve=(0,pe.TS)(_e,{switchDuration:_e.motionDurationMid,switchColor:_e.colorPrimary,switchDisabledOpacity:_e.opacityLoading,switchLoadingIconSize:_e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${_e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Le(Ve),Oe(Ve),Ie(Ve),Ce(Ve),be(Ve)]},_e=>{const{fontSize:Ve,lineHeight:Qe,controlHeight:ut,colorWhite:dt}=_e,St=Ve*Qe,qe=ut/2,it=2,pt=St-it*2,wt=qe-it*2;return{trackHeight:St,trackHeightSM:qe,trackMinWidth:pt*2+it*4,trackMinWidthSM:wt*2+it*2,trackPadding:it,handleBg:dt,handleSize:pt,handleSizeSM:wt,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:pt/2,innerMaxMargin:pt+it+it*2,innerMinMarginSM:wt/2,innerMaxMarginSM:wt+it+it*2}}),De=function(_e,Ve){var Qe={};for(var ut in _e)Object.prototype.hasOwnProperty.call(_e,ut)&&Ve.indexOf(ut)<0&&(Qe[ut]=_e[ut]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ut=Object.getOwnPropertySymbols(_e);dt<ut.length;dt++)Ve.indexOf(ut[dt])<0&&Object.prototype.propertyIsEnumerable.call(_e,ut[dt])&&(Qe[ut[dt]]=_e[ut[dt]]);return Qe};const Re=we.forwardRef((_e,Ve)=>{const{prefixCls:Qe,size:ut,disabled:dt,loading:St,className:qe,rootClassName:it,style:pt}=_e,wt=De(_e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:xt,direction:ft,switch:mt}=we.useContext(z.E_),yt=we.useContext(ee.Z),It=(dt!=null?dt:yt)||St,kt=xt("switch",Qe),Ut=we.createElement("div",{className:`${kt}-handle`},St&&we.createElement(et.Z,{className:`${kt}-loading-icon`})),[Pt,Ct]=Ne(kt),st=(0,ae.Z)(ut),bt=oe()(mt==null?void 0:mt.className,{[`${kt}-small`]:st==="small",[`${kt}-loading`]:St,[`${kt}-rtl`]:ft==="rtl"},qe,it,Ct),at=Object.assign(Object.assign({},mt==null?void 0:mt.style),pt);return Pt(we.createElement(fe.Z,{component:"Switch"},we.createElement(xe,Object.assign({},wt,{prefixCls:kt,className:bt,style:at,disabled:It,ref:Ve,loadingIcon:Ut}))))});Re.__ANT_SWITCH=!0;var Je=Re},1710:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{default:function(){return $p}});var et={},Mt="rc-table-internal-hook",oe=Ge(72071),ze=Ge(6089),je=Ge(34280),ve=Ge(13697),ce=Ge(59301),we=Ge(4676);function Me(_t){var Gt=ce.createContext(void 0),rn=function(Tn){var pn=Tn.value,Bn=Tn.children,Rn=ce.useRef(pn);Rn.current=pn;var In=ce.useState(function(){return{getValue:function(){return Rn.current},listeners:new Set}}),Qn=(0,oe.Z)(In,1),ir=Qn[0];return(0,je.Z)(function(){(0,we.unstable_batchedUpdates)(function(){ir.listeners.forEach(function(tr){tr(pn)})})},[pn]),ce.createElement(Gt.Provider,{value:ir},Bn)};return{Context:Gt,Provider:rn,defaultValue:_t}}function Se(_t,Gt){var rn=(0,ze.Z)(typeof Gt=="function"?Gt:function(tr){if(Gt===void 0)return tr;if(!Array.isArray(Gt))return tr[Gt];var Ir={};return Gt.forEach(function(Lr){Ir[Lr]=tr[Lr]}),Ir}),sn=ce.useContext(_t==null?void 0:_t.Context),Tn=sn||{},pn=Tn.listeners,Bn=Tn.getValue,Rn=ce.useRef();Rn.current=rn(sn?Bn():_t==null?void 0:_t.defaultValue);var In=ce.useState({}),Qn=(0,oe.Z)(In,2),ir=Qn[1];return(0,je.Z)(function(){if(!sn)return;function tr(Ir){var Lr=rn(Ir);(0,ve.Z)(Rn.current,Lr,!0)||ir({})}return pn.add(tr),function(){pn.delete(tr)}},[sn]),Rn.current}var Pe=Ge(96663),me=Ge(8654);function xe(){var _t=ce.createContext(null);function Gt(){return ce.useContext(_t)}function rn(Tn,pn){var Bn=(0,me.Yr)(Tn),Rn=function(Qn,ir){var tr=Bn?{ref:ir}:{},Ir=ce.useRef(0),Lr=ce.useRef(Qn),vr=Gt();return vr!==null?ce.createElement(Tn,(0,Pe.Z)({},Qn,tr)):((!pn||pn(Lr.current,Qn))&&(Ir.current+=1),Lr.current=Qn,ce.createElement(_t.Provider,{value:Ir.current},ce.createElement(Tn,(0,Pe.Z)({},Qn,tr))))};return Bn?ce.forwardRef(Rn):Rn}function sn(Tn,pn){var Bn=(0,me.Yr)(Tn),Rn=function(Qn,ir){var tr=Bn?{ref:ir}:{};return Gt(),ce.createElement(Tn,(0,Pe.Z)({},Qn,tr))};return Bn?ce.memo(ce.forwardRef(Rn),pn):ce.memo(Rn,pn)}return{makeImmutable:rn,responseImmutable:sn,useImmutableMark:Gt}}var fe=xe(),z=fe.makeImmutable,ee=fe.responseImmutable,ae=fe.useImmutableMark,re=xe(),le=re.makeImmutable,ue=re.responseImmutable,pe=re.useImmutableMark,be=Me(),Ce=be;function Ie(_t,Gt){var rn=ce.useRef(0);rn.current+=1;var sn=ce.useRef(_t),Tn=[];Object.keys(_t||{}).map(function(Bn){var Rn;(_t==null?void 0:_t[Bn])!==((Rn=sn.current)===null||Rn===void 0?void 0:Rn[Bn])&&Tn.push(Bn)}),sn.current=_t;var pn=ce.useRef([]);return Tn.length&&(pn.current=Tn),ce.useDebugValue(rn.current),ce.useDebugValue(pn.current.join(", ")),Gt&&console.log("".concat(Gt,":"),rn.current,pn.current),rn.current}var Oe=null,Le=ce.memo(function(){var _t=Ie();return ce.createElement("h1",null,"Render Times: ",_t)});Le.displayName="RenderBlock";var Ne=Ge(20135),De=Ge(44127),Re=Ge(90493),Je=Ge(92310),_e=Ge.n(Je),Ve=Ge(80547),Qe=Ge(97938),ut=Ge(48736),dt=ce.createContext({renderWithProps:!1}),St=dt,qe="RC_TABLE_KEY";function it(_t){return _t==null?[]:Array.isArray(_t)?_t:[_t]}function pt(_t){var Gt=[],rn={};return _t.forEach(function(sn){for(var Tn=sn||{},pn=Tn.key,Bn=Tn.dataIndex,Rn=pn||it(Bn).join("-")||qe;rn[Rn];)Rn="".concat(Rn,"_next");rn[Rn]=!0,Gt.push(Rn)}),Gt}function wt(_t){return _t!=null}function xt(_t){return _t&&(0,Ne.Z)(_t)==="object"&&!Array.isArray(_t)&&!ce.isValidElement(_t)}function ft(_t,Gt,rn,sn,Tn,pn){var Bn=ce.useContext(St),Rn=pe(),In=(0,Ve.Z)(function(){if(wt(sn))return[sn];var Qn=Gt==null||Gt===""?[]:Array.isArray(Gt)?Gt:[Gt],ir=(0,Qe.Z)(_t,Qn),tr=ir,Ir=void 0;if(Tn){var Lr=Tn(ir,_t,rn);xt(Lr)?(tr=Lr.children,Ir=Lr.props,Bn.renderWithProps=!0):tr=Lr}return[tr,Ir]},[Rn,_t,sn,Gt,Tn,rn],function(Qn,ir){if(pn){var tr=(0,oe.Z)(Qn,2),Ir=tr[1],Lr=(0,oe.Z)(ir,2),vr=Lr[1];return pn(vr,Ir)}return Bn.renderWithProps?!0:!(0,ve.Z)(Qn,ir,!0)});return In}function mt(_t,Gt,rn,sn){var Tn=_t+Gt-1;return _t<=sn&&Tn>=rn}function yt(_t,Gt){return Se(Ce,function(rn){var sn=mt(_t,Gt||1,rn.hoverStartRow,rn.hoverEndRow);return[sn,rn.onHover]})}var It=function(Gt){var rn=Gt.ellipsis,sn=Gt.rowType,Tn=Gt.children,pn,Bn=rn===!0?{showTitle:!0}:rn;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 kt(_t){var Gt,rn,sn,Tn,pn,Bn,Rn,In,Qn=_t.component,ir=_t.children,tr=_t.ellipsis,Ir=_t.scope,Lr=_t.prefixCls,vr=_t.className,ti=_t.align,Cr=_t.record,Yr=_t.render,Xr=_t.dataIndex,hi=_t.renderIndex,Ai=_t.shouldCellUpdate,Wi=_t.index,oi=_t.rowType,Ni=_t.colSpan,ho=_t.rowSpan,ui=_t.fixLeft,Ei=_t.fixRight,li=_t.firstFixLeft,Gr=_t.lastFixLeft,yi=_t.firstFixRight,Ri=_t.lastFixRight,Xi=_t.appendNode,Ji=_t.additionalProps,ai=Ji===void 0?{}:Ji,po=_t.isSticky,wo="".concat(Lr,"-cell"),Jo=Se(Ce,["supportSticky","allColumnsFixedLeft"]),Oo=Jo.supportSticky,ka=Jo.allColumnsFixedLeft,Ea=ft(Cr,Xr,hi,ir,Yr,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=(Gt=(rn=(sn=Uo==null?void 0:Uo.colSpan)!==null&&sn!==void 0?sn:ai.colSpan)!==null&&rn!==void 0?rn:Ni)!==null&&Gt!==void 0?Gt: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=yt(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=(Rn=ai.title)!==null&&Rn!==void 0?Rn:It({rowType:oi,ellipsis:tr,children:Hi}),bs=_e()(wo,vr,(In={},(0,Re.Z)(In,"".concat(wo,"-fix-left"),va&&Oo),(0,Re.Z)(In,"".concat(wo,"-fix-left-first"),li&&Oo),(0,Re.Z)(In,"".concat(wo,"-fix-left-last"),Gr&&Oo),(0,Re.Z)(In,"".concat(wo,"-fix-left-all"),Gr&&ka&&Oo),(0,Re.Z)(In,"".concat(wo,"-fix-right"),ns&&Oo),(0,Re.Z)(In,"".concat(wo,"-fix-right-first"),yi&&Oo),(0,Re.Z)(In,"".concat(wo,"-fix-right-last"),Ri&&Oo),(0,Re.Z)(In,"".concat(wo,"-ellipsis"),tr),(0,Re.Z)(In,"".concat(wo,"-with-append"),Xi),(0,Re.Z)(In,"".concat(wo,"-fix-sticky"),(va||ns)&&po&&Oo),(0,Re.Z)(In,"".concat(wo,"-row-hover"),!Uo&&Vo),In),ai.className,Uo==null?void 0:Uo.className),ss={};ti&&(ss.textAlign=ti);var Hs=(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},Na),ai.style),ss),Uo==null?void 0:Uo.style),Qo=Hi;return(0,Ne.Z)(Qo)==="object"&&!Array.isArray(Qo)&&!ce.isValidElement(Qo)&&(Qo=null),tr&&(Gr||yi)&&(Qo=ce.createElement("span",{className:"".concat(wo,"-content")},Qo)),ce.createElement(Qn,(0,Pe.Z)({},Uo,ai,{className:bs,style:Hs,title:Bo,scope:Ir,onMouseEnter:fo,onMouseLeave:Fo,colSpan:Qi!==1?Qi:null,rowSpan:Vi!==1?Vi:null}),Xi,Qo)}var Ut=ce.memo(kt);function Pt(_t,Gt,rn,sn,Tn,pn){var Bn=rn[_t]||{},Rn=rn[Gt]||{},In,Qn;Bn.fixed==="left"?In=sn.left[Tn==="rtl"?Gt:_t]:Rn.fixed==="right"&&(Qn=sn.right[Tn==="rtl"?_t:Gt]);var ir=!1,tr=!1,Ir=!1,Lr=!1,vr=rn[Gt+1],ti=rn[_t-1],Cr=!(pn!=null&&pn.children);if(Tn==="rtl"){if(In!==void 0){var Yr=ti&&ti.fixed==="left";Lr=!Yr&&Cr}else if(Qn!==void 0){var Xr=vr&&vr.fixed==="right";Ir=!Xr&&Cr}}else if(In!==void 0){var hi=vr&&vr.fixed==="left";ir=!hi&&Cr}else if(Qn!==void 0){var Ai=ti&&ti.fixed==="right";tr=!Ai&&Cr}return{fixLeft:In,fixRight:Qn,lastFixLeft:ir,firstFixRight:tr,lastFixRight:Ir,firstFixLeft:Lr,isSticky:sn.isSticky}}var Ct=ce.createContext({}),st=Ct;function bt(_t){var Gt=_t.className,rn=_t.index,sn=_t.children,Tn=_t.colSpan,pn=Tn===void 0?1:Tn,Bn=_t.rowSpan,Rn=_t.align,In=Se(Ce,["prefixCls","direction"]),Qn=In.prefixCls,ir=In.direction,tr=ce.useContext(st),Ir=tr.scrollColumnIndex,Lr=tr.stickyOffsets,vr=tr.flattenColumns,ti=tr.columns,Cr=rn+pn-1,Yr=Cr+1===Ir?pn+1:pn,Xr=Pt(rn,rn+Yr-1,vr,Lr,ir,ti==null?void 0:ti[rn]);return ce.createElement(Ut,(0,Pe.Z)({className:Gt,index:rn,component:"td",prefixCls:Qn,record:null,dataIndex:null,align:Rn,colSpan:Yr,rowSpan:Bn,render:function(){return sn}},Xr))}var at=Ge(6620),ct=["children"];function Lt(_t){var Gt=_t.children,rn=(0,at.Z)(_t,ct);return ce.createElement("tr",rn,Gt)}function vt(_t){var Gt=_t.children;return Gt}vt.Row=Lt,vt.Cell=bt;var nt=vt;function Xe(_t){var Gt=_t.children,rn=_t.stickyOffsets,sn=_t.flattenColumns,Tn=_t.columns,pn=Se(Ce,"prefixCls"),Bn=sn.length-1,Rn=sn[Bn],In=ce.useMemo(function(){return{stickyOffsets:rn,flattenColumns:sn,scrollColumnIndex:Rn!=null&&Rn.scrollbar?Bn:null,columns:Tn}},[Rn,sn,Bn,rn,Tn]);return ce.createElement(st.Provider,{value:In},ce.createElement("tfoot",{className:"".concat(pn,"-summary")},Gt))}var Ue=ue(Xe),$e=nt,tt=Ge(70425),We=Ge(29301),Be=Ge(29194),Te=Ge(24514),Ke=Ge(75152),gt=Ge(26112);function Ze(_t,Gt,rn,sn,Tn,pn,Bn){_t.push({record:Gt,indent:rn,index:Bn});var Rn=pn(Gt),In=Tn==null?void 0:Tn.has(Rn);if(Gt&&Array.isArray(Gt[sn])&&In)for(var Qn=0;Qn<Gt[sn].length;Qn+=1)Ze(_t,Gt[sn][Qn],rn+1,sn,Tn,pn,Qn)}function Ot(_t,Gt,rn,sn){var Tn=ce.useMemo(function(){if(rn!=null&&rn.size){for(var pn=[],Bn=0;Bn<(_t==null?void 0:_t.length);Bn+=1){var Rn=_t[Bn];Ze(pn,Rn,0,Gt,rn,sn,Bn)}return pn}return _t==null?void 0:_t.map(function(In,Qn){return{record:In,indent:0,index:Qn}})},[_t,Gt,rn,sn]);return Tn}function zt(_t){var Gt=_t.prefixCls,rn=_t.children,sn=_t.component,Tn=_t.cellComponent,pn=_t.className,Bn=_t.expanded,Rn=_t.colSpan,In=_t.isEmpty,Qn=Se(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ir=Qn.scrollbarSize,tr=Qn.fixHeader,Ir=Qn.fixColumn,Lr=Qn.componentWidth,vr=Qn.horizonScroll,ti=rn;return(In?vr&&Lr:Ir)&&(ti=ce.createElement("div",{style:{width:Lr-(tr?ir:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Gt,"-expanded-row-fixed")},ti)),ce.createElement(sn,{className:pn,style:{display:Bn?null:"none"}},ce.createElement(Ut,{component:Tn,prefixCls:Gt,colSpan:Rn},ti))}var Yt=zt;function jt(_t,Gt,rn,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,Rn=Tn.expandedKeys,In=Tn.childrenColumnName,Qn=Tn.onTriggerExpand,ir=Tn.rowExpandable,tr=Tn.onRow,Ir=Tn.expandRowByClick,Lr=Tn.rowClassName,vr=Bn==="nest",ti=Bn==="row"&&(!ir||ir(_t)),Cr=ti||vr,Yr=Rn&&Rn.has(Gt),Xr=In&&_t&&_t[In],hi=(0,tt.useEvent)(Qn),Ai=tr==null?void 0:tr(_t,rn),Wi=Ai==null?void 0:Ai.onClick,oi=function(Ei){Ir&&Cr&&Qn(_t,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 Lr=="string"?Ni=Lr:typeof Lr=="function"&&(Ni=Lr(_t,rn,sn));var ho=pt(pn);return(0,De.Z)((0,De.Z)({},Tn),{},{columnsKey:ho,nestExpandable:vr,expanded:Yr,hasNestChildren:Xr,record:_t,onTriggerExpand:hi,rowSupportExpand:ti,expandable:Cr,rowProps:(0,De.Z)((0,De.Z)({},Ai),{},{className:_e()(Ni,Ai==null?void 0:Ai.className),onClick:oi})})}function Kt(_t,Gt,rn,sn,Tn){var pn=_t.record,Bn=_t.prefixCls,Rn=_t.columnsKey,In=_t.fixedInfoList,Qn=_t.expandIconColumnIndex,ir=_t.nestExpandable,tr=_t.indentSize,Ir=_t.expandIcon,Lr=_t.expanded,vr=_t.hasNestChildren,ti=_t.onTriggerExpand,Cr=Rn[rn],Yr=In[rn],Xr;rn===(Qn||0)&&ir&&(Xr=ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{paddingLeft:"".concat(tr*sn,"px")},className:"".concat(Bn,"-row-indent indent-level-").concat(sn)}),Ir({prefixCls:Bn,expanded:Lr,expandable:vr,record:pn,onExpand:ti})));var hi;return Gt.onCell&&(hi=Gt.onCell(pn,Tn)),{key:Cr,fixedInfo:Yr,appendCellNode:Xr,additionalCellProps:hi||{}}}function en(_t){var Gt=_t.className,rn=_t.style,sn=_t.record,Tn=_t.index,pn=_t.renderIndex,Bn=_t.rowKey,Rn=_t.indent,In=Rn===void 0?0:Rn,Qn=_t.rowComponent,ir=_t.cellComponent,tr=_t.scopeCellComponent,Ir=jt(sn,Bn,Tn,In),Lr=Ir.prefixCls,vr=Ir.flattenColumns,ti=Ir.expandedRowClassName,Cr=Ir.expandedRowRender,Yr=Ir.rowProps,Xr=Ir.expanded,hi=Ir.rowSupportExpand,Ai=ce.useState(!1),Wi=(0,oe.Z)(Ai,2),oi=Wi[0],Ni=Wi[1];ce.useEffect(function(){Xr&&Ni(!0)},[Xr]);var ho=ce.createElement(Qn,(0,Pe.Z)({},Yr,{"data-row-key":Bn,className:_e()(Gt,"".concat(Lr,"-row"),"".concat(Lr,"-row-level-").concat(In),Yr==null?void 0:Yr.className),style:(0,De.Z)((0,De.Z)({},rn),Yr==null?void 0:Yr.style)}),vr.map(function(Gr,yi){var Ri=Gr.render,Xi=Gr.dataIndex,Ji=Gr.className,ai=Kt(Ir,Gr,yi,In,Tn),po=ai.key,wo=ai.fixedInfo,Jo=ai.appendCellNode,Oo=ai.additionalCellProps;return ce.createElement(Ut,(0,Pe.Z)({className:Ji,ellipsis:Gr.ellipsis,align:Gr.align,scope:Gr.rowScope,component:Gr.rowScope?tr:ir,prefixCls:Lr,key:po,record:sn,index:Tn,renderIndex:pn,dataIndex:Xi,render:Ri,shouldCellUpdate:Gr.shouldCellUpdate},wo,{appendNode:Jo,additionalProps:Oo}))})),ui;if(hi&&(oi||Xr)){var Ei=Cr(sn,Tn,In+1,Xr),li=ti&&ti(sn,Tn,In);ui=ce.createElement(Yt,{expanded:Xr,className:_e()("".concat(Lr,"-expanded-row"),"".concat(Lr,"-expanded-row-level-").concat(In+1),li),prefixCls:Lr,component:Qn,cellComponent:ir,colSpan:vr.length,isEmpty:!1},Ei)}return ce.createElement(ce.Fragment,null,ho,ui)}en.displayName="BodyRow";var cn=ue(en);function yn(_t){var Gt=_t.columnKey,rn=_t.onColumnResize,sn=ce.useRef();return ce.useEffect(function(){sn.current&&rn(Gt,sn.current.offsetWidth)},[]),ce.createElement(We.Z,{data:Gt},ce.createElement("td",{ref:sn,style:{padding:0,border:0,height:0}},ce.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function On(_t){var Gt=_t.prefixCls,rn=_t.columnsKey,sn=_t.onColumnResize;return ce.createElement("tr",{"aria-hidden":"true",className:"".concat(Gt,"-measure-row"),style:{height:0,fontSize:0}},ce.createElement(We.Z.Collection,{onBatchResize:function(pn){pn.forEach(function(Bn){var Rn=Bn.data,In=Bn.size;sn(Rn,In.offsetWidth)})}},rn.map(function(Tn){return ce.createElement(yn,{key:Tn,columnKey:Tn,onColumnResize:sn})})))}function or(_t){var Gt=_t.data,rn=_t.measureColumnWidth,sn=Se(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Tn=sn.prefixCls,pn=sn.getComponent,Bn=sn.onColumnResize,Rn=sn.flattenColumns,In=sn.getRowKey,Qn=sn.expandedKeys,ir=sn.childrenColumnName,tr=sn.emptyNode,Ir=Ot(Gt,ir,Qn,In),Lr=ce.useRef({renderWithProps:!1}),vr=pn(["body","wrapper"],"tbody"),ti=pn(["body","row"],"tr"),Cr=pn(["body","cell"],"td"),Yr=pn(["body","cell"],"th"),Xr;Gt.length?Xr=Ir.map(function(Ai,Wi){var oi=Ai.record,Ni=Ai.indent,ho=Ai.index,ui=In(oi,Wi);return ce.createElement(cn,{key:ui,rowKey:ui,record:oi,index:Wi,renderIndex:ho,rowComponent:ti,cellComponent:Cr,scopeCellComponent:Yr,getRowKey:In,indent:Ni})}):Xr=ce.createElement(Yt,{expanded:!0,className:"".concat(Tn,"-placeholder"),prefixCls:Tn,component:ti,cellComponent:Cr,colSpan:Rn.length,isEmpty:!0},tr);var hi=pt(Rn);return ce.createElement(St.Provider,{value:Lr.current},ce.createElement(vr,{className:"".concat(Tn,"-tbody")},rn&&ce.createElement(On,{prefixCls:Tn,columnsKey:hi,onColumnResize:Bn}),Xr))}or.displayName="Body";var er=ue(or),Tr=["expandable"],Kn="RC_TABLE_INTERNAL_COL_DEFINE";function Nr(_t){var Gt=_t.expandable,rn=(0,at.Z)(_t,Tr),sn;return"expandable"in _t?sn=(0,De.Z)((0,De.Z)({},rn),Gt):sn=rn,sn.showExpandColumn===!1&&(sn.expandIconColumnIndex=-1),sn}var kr=["columnType"];function Ur(_t){for(var Gt=_t.colWidths,rn=_t.columns,sn=_t.columCount,Tn=[],pn=sn||rn.length,Bn=!1,Rn=pn-1;Rn>=0;Rn-=1){var In=Gt[Rn],Qn=rn&&rn[Rn],ir=Qn&&Qn[Kn];if(In||ir||Bn){var tr=ir||{},Ir=tr.columnType,Lr=(0,at.Z)(tr,kr);Tn.unshift(ce.createElement("col",(0,Pe.Z)({key:Rn,style:{width:In}},Lr))),Bn=!0}}return ce.createElement("colgroup",null,Tn)}var Jr=Ur,Mr=Ge(19127),di=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Dr(_t,Gt){return(0,ce.useMemo)(function(){for(var rn=[],sn=0;sn<Gt;sn+=1){var Tn=_t[sn];if(Tn!==void 0)rn[sn]=Tn;else return null}return rn},[_t.join("_"),Gt])}var ot=ce.forwardRef(function(_t,Gt){var rn=_t.className,sn=_t.noData,Tn=_t.columns,pn=_t.flattenColumns,Bn=_t.colWidths,Rn=_t.columCount,In=_t.stickyOffsets,Qn=_t.direction,ir=_t.fixHeader,tr=_t.stickyTopOffset,Ir=_t.stickyBottomOffset,Lr=_t.stickyClassName,vr=_t.onScroll,ti=_t.maxContentScroll,Cr=_t.children,Yr=(0,at.Z)(_t,di),Xr=Se(Ce,["prefixCls","scrollbarSize","isSticky"]),hi=Xr.prefixCls,Ai=Xr.scrollbarSize,Wi=Xr.isSticky,oi=Wi&&!ir?0:Ai,Ni=ce.useRef(null),ho=ce.useCallback(function(Ji){(0,me.mH)(Gt,Ji),(0,me.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,Mr.Z)(Tn),[li]):Tn},[oi,Tn]),yi=(0,ce.useMemo)(function(){return oi?[].concat((0,Mr.Z)(pn),[li]):pn},[oi,pn]),Ri=(0,ce.useMemo)(function(){var Ji=In.right,ai=In.left;return(0,De.Z)((0,De.Z)({},In),{},{left:Qn==="rtl"?[].concat((0,Mr.Z)(ai.map(function(po){return po+oi})),[0]):ai,right:Qn==="rtl"?Ji:[].concat((0,Mr.Z)(Ji.map(function(po){return po+oi})),[0]),isSticky:Wi})},[oi,In,Wi]),Xi=Dr(Bn,Rn);return ce.createElement("div",{style:(0,De.Z)({overflow:"hidden"},Wi?{top:tr,bottom:Ir}:{}),ref:ho,className:_e()(rn,(0,Re.Z)({},Lr,!!Lr))},ce.createElement("table",{style:{tableLayout:"fixed",visibility:sn||Xi?null:"hidden"}},(!sn||!ti||ui)&&ce.createElement(Jr,{colWidths:Xi?[].concat((0,Mr.Z)(Xi),[oi]):[],columCount:Rn+1,columns:yi}),Cr((0,De.Z)((0,De.Z)({},Yr),{},{stickyOffsets:Ri,columns:Gr,flattenColumns:yi}))))});ot.displayName="FixedHolder";var Ci=ce.memo(ot);function xi(_t){var Gt=_t.cells,rn=_t.stickyOffsets,sn=_t.flattenColumns,Tn=_t.rowComponent,pn=_t.cellComponent,Bn=_t.tdCellComponent,Rn=_t.onHeaderRow,In=_t.index,Qn=Se(Ce,["prefixCls","direction"]),ir=Qn.prefixCls,tr=Qn.direction,Ir;Rn&&(Ir=Rn(Gt.map(function(vr){return vr.column}),In));var Lr=pt(Gt.map(function(vr){return vr.column}));return ce.createElement(Tn,Ir,Gt.map(function(vr,ti){var Cr=vr.column,Yr=Pt(vr.colStart,vr.colEnd,sn,rn,tr,Cr),Xr;return Cr&&Cr.onHeaderCell&&(Xr=vr.column.onHeaderCell(Cr)),ce.createElement(Ut,(0,Pe.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:Lr[ti]},Yr,{additionalProps:Xr,rowType:"header"}))}))}xi.displayName="HeaderRow";var pr=xi;function Pr(_t){var Gt=[];function rn(Bn,Rn){var In=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Gt[In]=Gt[In]||[];var Qn=Rn,ir=Bn.filter(Boolean).map(function(tr){var Ir={key:tr.key,className:tr.className||"",children:tr.title,column:tr,colStart:Qn},Lr=1,vr=tr.children;return vr&&vr.length>0&&(Lr=rn(vr,Qn,In+1).reduce(function(ti,Cr){return ti+Cr},0),Ir.hasSubColumns=!0),"colSpan"in tr&&(Lr=tr.colSpan),"rowSpan"in tr&&(Ir.rowSpan=tr.rowSpan),Ir.colSpan=Lr,Ir.colEnd=Ir.colStart+Lr-1,Gt[In].push(Ir),Qn+=Lr,Lr});return ir}rn(_t,0);for(var sn=Gt.length,Tn=function(Rn){Gt[Rn].forEach(function(In){!("rowSpan"in In)&&!In.hasSubColumns&&(In.rowSpan=sn-Rn)})},pn=0;pn<sn;pn+=1)Tn(pn);return Gt}function jr(_t){var Gt=_t.stickyOffsets,rn=_t.columns,sn=_t.flattenColumns,Tn=_t.onHeaderRow,pn=Se(Ce,["prefixCls","getComponent"]),Bn=pn.prefixCls,Rn=pn.getComponent,In=ce.useMemo(function(){return Pr(rn)},[rn]),Qn=Rn(["header","wrapper"],"thead"),ir=Rn(["header","row"],"tr"),tr=Rn(["header","cell"],"th"),Ir=Rn(["header","cell"],"td");return ce.createElement(Qn,{className:"".concat(Bn,"-thead")},In.map(function(Lr,vr){var ti=ce.createElement(pr,{key:vr,flattenColumns:sn,cells:Lr,stickyOffsets:Gt,rowComponent:ir,cellComponent:tr,tdCellComponent:Ir,onHeaderRow:Tn,index:vr});return ti}))}var Li=ue(jr),nr=Ge(11592);function ar(_t){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Gt=="number"?Gt:Gt.endsWith("%")?_t*parseFloat(Gt)/100:null}function nn(_t,Gt){return ce.useMemo(function(){if(Gt&&Gt>0){var rn=0,sn=0;_t.forEach(function(Qn){var ir=ar(Gt,Qn.width);ir?rn+=ir:sn+=1});var Tn=Gt-rn,pn=sn,Bn=Tn/sn,Rn=0,In=_t.map(function(Qn){var ir=(0,De.Z)({},Qn),tr=ar(Gt,ir.width);if(tr)ir.width=tr;else{var Ir=Math.floor(Bn);ir.width=pn===1?Tn:Ir,Tn-=Ir,pn-=1}return Rn+=ir.width,ir});return[In,Rn]}return[_t,Gt]},[_t,Gt])}var qt=["children"],Tt=["fixed"];function ln(_t){return(0,nr.Z)(_t).filter(function(Gt){return ce.isValidElement(Gt)}).map(function(Gt){var rn=Gt.key,sn=Gt.props,Tn=sn.children,pn=(0,at.Z)(sn,qt),Bn=(0,De.Z)({key:rn},pn);return Tn&&(Bn.children=ln(Tn)),Bn})}function Cn(_t){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return _t.filter(function(rn){return rn&&(0,Ne.Z)(rn)==="object"}).reduce(function(rn,sn,Tn){var pn=sn.fixed,Bn=pn===!0?"left":pn,Rn="".concat(Gt,"-").concat(Tn),In=sn.children;return In&&In.length>0?[].concat((0,Mr.Z)(rn),(0,Mr.Z)(Cn(In,Rn).map(function(Qn){return(0,De.Z)({fixed:Bn},Qn)}))):[].concat((0,Mr.Z)(rn),[(0,De.Z)((0,De.Z)({key:Rn},sn),{},{fixed:Bn})])},[])}function Xt(_t){for(var Gt=!0,rn=0;rn<_t.length;rn+=1){var sn=_t[rn];if(Gt&&sn.fixed!=="left")Gt=!1;else if(!Gt&&sn.fixed==="left"){warning(!1,"Index ".concat(rn-1," of `columns` missing `fixed='left'` prop."));break}}for(var Tn=!0,pn=_t.length-1;pn>=0;pn-=1){var Bn=_t[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 Rt(_t){return _t.map(function(Gt){var rn=Gt.fixed,sn=(0,at.Z)(Gt,Tt),Tn=rn;return rn==="left"?Tn="right":rn==="right"&&(Tn="left"),(0,De.Z)({fixed:Tn},sn)})}function fn(_t,Gt){var rn=_t.prefixCls,sn=_t.columns,Tn=_t.children,pn=_t.expandable,Bn=_t.expandedKeys,Rn=_t.columnTitle,In=_t.getRowKey,Qn=_t.onTriggerExpand,ir=_t.expandIcon,tr=_t.rowExpandable,Ir=_t.expandIconColumnIndex,Lr=_t.direction,vr=_t.expandRowByClick,ti=_t.columnWidth,Cr=_t.fixed,Yr=_t.scrollWidth,Xr=ce.useMemo(function(){return sn||ln(Tn)},[sn,Tn]),hi=ce.useMemo(function(){if(pn){var Ei,li=Xr.slice();if(!li.includes(et)){var Gr=Ir||0;Gr>=0&&li.splice(Gr,0,et)}var yi=li.indexOf(et);li=li.filter(function(ai,po){return ai!==et||po===yi});var Ri=Xr[yi],Xi;(Cr==="left"||Cr)&&!Ir?Xi="left":(Cr==="right"||Cr)&&Ir===Xr.length?Xi="right":Xi=Ri?Ri.fixed:null;var Ji=(Ei={},(0,Re.Z)(Ei,Kn,{className:"".concat(rn,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Re.Z)(Ei,"title",Rn),(0,Re.Z)(Ei,"fixed",Xi),(0,Re.Z)(Ei,"className","".concat(rn,"-row-expand-icon-cell")),(0,Re.Z)(Ei,"width",ti),(0,Re.Z)(Ei,"render",function(po,wo,Jo){var Oo=In(wo,Jo),ka=Bn.has(Oo),Ea=tr?tr(wo):!0,vo=ir({prefixCls:rn,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===et?Ji:ai})}return Xr.filter(function(ai){return ai!==et})},[pn,Xr,In,Bn,ir,Lr]),Ai=ce.useMemo(function(){var Ei=hi;return Gt&&(Ei=Gt(Ei)),Ei.length||(Ei=[{render:function(){return null}}]),Ei},[Gt,hi,Lr]),Wi=ce.useMemo(function(){return Lr==="rtl"?Rt(Cn(Ai)):Cn(Ai)},[Ai,Lr,Yr]),oi=nn(Wi,Yr),Ni=(0,oe.Z)(oi,2),ho=Ni[0],ui=Ni[1];return[Ai,ho,ui]}var un=fn;function Gn(_t){var Gt,rn=_t.prefixCls,sn=_t.record,Tn=_t.onExpand,pn=_t.expanded,Bn=_t.expandable,Rn="".concat(rn,"-row-expand-icon");if(!Bn)return ce.createElement("span",{className:_e()(Rn,"".concat(rn,"-row-spaced"))});var In=function(ir){Tn(sn,ir),ir.stopPropagation()};return ce.createElement("span",{className:_e()(Rn,(Gt={},(0,Re.Z)(Gt,"".concat(rn,"-row-expanded"),pn),(0,Re.Z)(Gt,"".concat(rn,"-row-collapsed"),!pn),Gt)),onClick:In})}function Xn(_t,Gt,rn){var sn=[];function Tn(pn){(pn||[]).forEach(function(Bn,Rn){sn.push(Gt(Bn,Rn)),Tn(Bn[rn])})}return Tn(_t),sn}function $t(_t,Gt,rn){var sn=Nr(_t),Tn=sn.expandIcon,pn=sn.expandedRowKeys,Bn=sn.defaultExpandedRowKeys,Rn=sn.defaultExpandAllRows,In=sn.expandedRowRender,Qn=sn.onExpand,ir=sn.onExpandedRowsChange,tr=sn.childrenColumnName,Ir=Tn||Gn,Lr=tr||"children",vr=ce.useMemo(function(){return In?"row":_t.expandable&&_t.internalHooks===Mt&&_t.expandable.__PARENT_RENDER_ICON__||Gt.some(function(Wi){return Wi&&(0,Ne.Z)(Wi)==="object"&&Wi[Lr]})?"nest":!1},[!!In,Gt]),ti=ce.useState(function(){return Bn||(Rn?Xn(Gt,rn,Lr):[])}),Cr=(0,oe.Z)(ti,2),Yr=Cr[0],Xr=Cr[1],hi=ce.useMemo(function(){return new Set(pn||Yr||[])},[pn,Yr]),Ai=ce.useCallback(function(Wi){var oi=rn(Wi,Gt.indexOf(Wi)),Ni,ho=hi.has(oi);ho?(hi.delete(oi),Ni=(0,Mr.Z)(hi)):Ni=[].concat((0,Mr.Z)(hi),[oi]),Xr(Ni),Qn&&Qn(!ho,Wi),ir&&ir(Ni)},[rn,hi,Gt,Qn,ir]);return[sn,vr,hi,Ir,Lr,Ai]}function kn(_t,Gt,rn,sn){var Tn=_t.map(function(pn,Bn){return Pt(Bn,Bn,_t,Gt,rn,sn==null?void 0:sn[Bn])});return(0,Ve.Z)(function(){return Tn},[Tn],function(pn,Bn){return!(0,ve.Z)(pn,Bn)})}function Wn(_t){var Gt=(0,ce.useRef)(_t),rn=(0,ce.useState)({}),sn=(0,oe.Z)(rn,2),Tn=sn[1],pn=(0,ce.useRef)(null),Bn=(0,ce.useRef)([]);function Rn(In){Bn.current.push(In);var Qn=Promise.resolve();pn.current=Qn,Qn.then(function(){if(pn.current===Qn){var ir=Bn.current,tr=Gt.current;Bn.current=[],ir.forEach(function(Ir){Gt.current=Ir(Gt.current)}),pn.current=null,tr!==Gt.current&&Tn({})}})}return(0,ce.useEffect)(function(){return function(){pn.current=null}},[]),[Gt.current,Rn]}function lr(_t){var Gt=(0,ce.useRef)(_t||null),rn=(0,ce.useRef)();function sn(){window.clearTimeout(rn.current)}function Tn(Bn){Gt.current=Bn,sn(),rn.current=window.setTimeout(function(){Gt.current=null,rn.current=void 0},100)}function pn(){return Gt.current}return(0,ce.useEffect)(function(){return sn},[]),[Tn,pn]}function on(){var _t=ce.useState(-1),Gt=(0,oe.Z)(_t,2),rn=Gt[0],sn=Gt[1],Tn=ce.useState(-1),pn=(0,oe.Z)(Tn,2),Bn=pn[0],Rn=pn[1],In=ce.useCallback(function(Qn,ir){sn(Qn),Rn(ir)},[]);return[rn,Bn,In]}var Mn=Ge(47273),an=(0,Mn.Z)()?window:null;function xn(_t,Gt){var rn=(0,Ne.Z)(_t)==="object"?_t:{},sn=rn.offsetHeader,Tn=sn===void 0?0:sn,pn=rn.offsetSummary,Bn=pn===void 0?0:pn,Rn=rn.offsetScroll,In=Rn===void 0?0:Rn,Qn=rn.getContainer,ir=Qn===void 0?function(){return an}:Qn,tr=ir()||an;return ce.useMemo(function(){var Ir=!!_t;return{isSticky:Ir,stickyClassName:Ir?"".concat(Gt,"-sticky-holder"):"",offsetHeader:Tn,offsetSummary:Bn,offsetScroll:In,container:tr}},[In,Tn,Bn,Gt,tr])}function gn(_t,Gt,rn){var sn=(0,ce.useMemo)(function(){for(var Tn=[],pn=[],Bn=0,Rn=0,In=0;In<Gt;In+=1)if(rn==="rtl"){pn[In]=Rn,Rn+=_t[In]||0;var Qn=Gt-In-1;Tn[Qn]=Bn,Bn+=_t[Qn]||0}else{Tn[In]=Bn,Bn+=_t[In]||0;var ir=Gt-In-1;pn[ir]=Rn,Rn+=_t[ir]||0}return{left:Tn,right:pn}},[_t,Gt,rn]);return sn}var Sn=gn;function An(_t){var Gt=_t.className,rn=_t.children;return ce.createElement("div",{className:Gt},rn)}var Nn=An,Fn=Ge(8224),zn=Ge(55468),xr=function(Gt,rn){var sn,Tn,pn=Gt.scrollBodyRef,Bn=Gt.onScroll,Rn=Gt.offsetScroll,In=Gt.container,Qn=Se(Ce,"prefixCls"),ir=((sn=pn.current)===null||sn===void 0?void 0:sn.scrollWidth)||0,tr=((Tn=pn.current)===null||Tn===void 0?void 0:Tn.clientWidth)||0,Ir=ir&&tr*(tr/ir),Lr=ce.useRef(),vr=Wn({scrollLeft:0,isHiddenScrollBar:!1}),ti=(0,oe.Z)(vr,2),Cr=ti[0],Yr=ti[1],Xr=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(),Xr.current.delta=yi.pageX-Cr.scrollLeft,Xr.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=Xr.current.x+yi.pageX-Xr.current.x-Xr.current.delta;ai<=0&&(ai=0),ai+Ir>=tr&&(ai=tr-Ir),Bn({scrollLeft:ai/tr*(ir+2)}),Xr.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,Ke.Z)()<=Xi||yi>=Xi-Rn?Yr(function(Ji){return(0,De.Z)((0,De.Z)({},Ji),{},{isHiddenScrollBar:!0})}):Yr(function(Ji){return(0,De.Z)((0,De.Z)({},Ji),{},{isHiddenScrollBar:!1})})}},li=function(yi){Yr(function(Ri){return(0,De.Z)((0,De.Z)({},Ri),{},{scrollLeft:yi/ir*tr||0})})};return ce.useImperativeHandle(rn,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()}},[Ir,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||Yr(function(Gr){var yi=pn.current;return yi?(0,De.Z)((0,De.Z)({},Gr),{},{scrollLeft:yi.scrollLeft/yi.scrollWidth*yi.clientWidth}):Gr})},[Cr.isHiddenScrollBar]),ir<=tr||!Ir||Cr.isHiddenScrollBar?null:ce.createElement("div",{style:{height:(0,Ke.Z)(),width:tr,bottom:Rn},className:"".concat(Qn,"-sticky-scroll")},ce.createElement("div",{onMouseDown:ho,ref:Lr,className:_e()("".concat(Qn,"-sticky-scroll-bar"),(0,Re.Z)({},"".concat(Qn,"-sticky-scroll-bar-active"),Wi)),style:{width:"".concat(Ir,"px"),transform:"translate3d(".concat(Cr.scrollLeft,"px, 0, 0)")}}))},mn=ce.forwardRef(xr);function Fr(_t){return null}var Qr=Fr;function Br(_t){return null}var bn=Br,Jn="rc-table",sr=[],Sr={};function mr(){return"No Data"}function Kr(_t){var Gt,rn=(0,De.Z)({rowKey:"key",prefixCls:Jn,emptyText:mr},_t),sn=rn.prefixCls,Tn=rn.className,pn=rn.rowClassName,Bn=rn.style,Rn=rn.data,In=rn.rowKey,Qn=rn.scroll,ir=rn.tableLayout,tr=rn.direction,Ir=rn.title,Lr=rn.footer,vr=rn.summary,ti=rn.caption,Cr=rn.id,Yr=rn.showHeader,Xr=rn.components,hi=rn.emptyText,Ai=rn.onRow,Wi=rn.onHeaderRow,oi=rn.internalHooks,Ni=rn.transformColumns,ho=rn.internalRefs,ui=rn.tailor,Ei=rn.sticky,li=Rn||sr,Gr=!!li.length,yi=oi===Mt,Ri=ce.useCallback(function(ea,Ta){return(0,Qe.Z)(Xr,ea)||Ta},[Xr]),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=$t(rn,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,De.Z)((0,De.Z)((0,De.Z)({},rn),vo),{},{expandable:!!vo.expandedRowRender,columnTitle:vo.columnTitle,expandedKeys:Uo,getRowKey:Xi,onTriggerExpand:ns,expandIcon:Na,expandIconColumnIndex:vo.expandIconColumnIndex,direction:tr,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=Sn(ta,Bo.length,tr),Ga=Qn&&wt(Qn.y),fa=Qn&&wt(ss)||!!vo.fixed,Gl=fa&&Bo.some(function(ea){var Ta=ea.fixed;return Ta}),oc=ce.useRef(),tu=xn(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===nt&&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,Be.Z)(Qo.current)&&ql(function(js){if(js.get(ea)!==Ta){var nu=new Map(js);return nu.set(ea,Ta),nu}return js})},[]),hn=lr(null),Pc=(0,oe.Z)(hn,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,ze.Z)(function(ea){var Ta=ea.currentTarget,js=ea.scrollLeft,nu=tr==="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,Rn,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,Ke.o)(qa.current).width):df((0,Ke.o)(ps.current).width)),Wl((0,Te.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(Ue,ea,Sa))},[Go,Sa]),pf=ce.useCallback(function(ea){return ce.createElement(Ue,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(er,{data:li,measureColumnWidth:Ga||fa||Tu}),Od=ce.createElement(Jr,{colWidths:Bo.map(function(ea){var Ta=ea.width;return Ta}),columns:Bo}),Ul=ti!=null?ce.createElement("caption",{className:"".concat(sn,"-caption")},ti):void 0,yh=(0,gt.Z)(rn,{data:!0}),Ad=(0,gt.Z)(rn,{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,De.Z)((0,De.Z)({},vs),gl),onScroll:Yc,ref:qa,className:_e()("".concat(sn,"-body"))},ce.createElement(Mu,(0,Pe.Z)({style:(0,De.Z)((0,De.Z)({},pu),{},{tableLayout:Cc})},Ad),Ul,Od,Nd,!Go&&Sa&&ce.createElement(Ue,{stickyOffsets:Ts,flattenColumns:Bo,columns:Fo},Sa)));var Ec=(0,De.Z)((0,De.Z)((0,De.Z)({noData:!li.length,maxContentScroll:fa&&ss==="max-content"},Jc),Hs),{},{direction:tr,stickyClassName:ya,onScroll:Yc});vh=ce.createElement(ce.Fragment,null,Yr!==!1&&ce.createElement(Ci,(0,Pe.Z)({},Ec,{stickyTopOffset:$u,className:"".concat(sn,"-header"),ref:Ps}),mh),jd,Go&&Go!=="top"&&ce.createElement(Ci,(0,Pe.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,De.Z)((0,De.Z)({},vs),gl),className:_e()("".concat(sn,"-content")),onScroll:Yc,ref:qa},ce.createElement(Mu,(0,Pe.Z)({style:(0,De.Z)((0,De.Z)({},pu),{},{tableLayout:Cc})},Ad),Ul,Od,Yr!==!1&&ce.createElement(Li,(0,Pe.Z)({},Jc,Hs)),Nd,Sa&&ce.createElement(Ue,{stickyOffsets:Ts,flattenColumns:Bo,columns:Fo},Sa)));var ol=ce.createElement("div",(0,Pe.Z)({className:_e()(sn,Tn,(Gt={},(0,Re.Z)(Gt,"".concat(sn,"-rtl"),tr==="rtl"),(0,Re.Z)(Gt,"".concat(sn,"-ping-left"),ua),(0,Re.Z)(Gt,"".concat(sn,"-ping-right"),da),(0,Re.Z)(Gt,"".concat(sn,"-layout-fixed"),ir==="fixed"),(0,Re.Z)(Gt,"".concat(sn,"-fixed-header"),Ga),(0,Re.Z)(Gt,"".concat(sn,"-fixed-column"),Gl),(0,Re.Z)(Gt,"".concat(sn,"-scroll-horizontal"),fa),(0,Re.Z)(Gt,"".concat(sn,"-has-fix-left"),Bo[0]&&Bo[0].fixed),(0,Re.Z)(Gt,"".concat(sn,"-has-fix-right"),Bo[Bo.length-1]&&Bo[Bo.length-1].fixed==="right"),Gt)),style:Bn,id:Cr,ref:Qo},yh),Ir&&ce.createElement(Nn,{className:"".concat(sn,"-title")},Ir(li)),ce.createElement("div",{ref:ps,className:"".concat(sn,"-container")},vh),Lr&&ce.createElement(Nn,{className:"".concat(sn,"-footer")},Lr(li)));fa&&(ol=ce.createElement(We.Z,{onResize:Kp},ol));var Id=kn(Bo,Ts,tr,Fo),us=ce.useMemo(function(){return{scrollX:ss,prefixCls:sn,getComponent:Ri,scrollbarSize:Vh,direction:tr,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,tr,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(_t){return le(Kr,_t)}var Rr=ri();Rr.EXPAND_COLUMN=et,Rr.INTERNAL_HOOKS=Mt,Rr.Column=Qr,Rr.ColumnGroup=bn,Rr.Summary=$e;var br=Rr,ur=Ge(45680),vn=Me(null),cr=Me(null);function wn(_t,Gt,rn){var sn=Gt||1;return rn[_t+sn]-(rn[_t]||0)}function zr(_t){var Gt=_t.rowInfo,rn=_t.column,sn=_t.colIndex,Tn=_t.indent,pn=_t.index,Bn=_t.renderIndex,Rn=_t.record,In=_t.style,Qn=_t.className,ir=_t.inverse,tr=_t.getHeight,Ir=rn.render,Lr=rn.dataIndex,vr=rn.className,ti=rn.width,Cr=Se(cr,["columnsOffset"]),Yr=Cr.columnsOffset,Xr=Kt(Gt,rn,sn,Tn,pn),hi=Xr.key,Ai=Xr.fixedInfo,Wi=Xr.appendCellNode,oi=Xr.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=wn(Gr,ui,Yr),Ri=ui>1?ti-yi:0,Xi=(0,De.Z)((0,De.Z)((0,De.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=tr==null?void 0:tr(li));var ai=Ji?function(){return null}:Ir,po={};return(li===0||ui===0)&&(po.rowSpan=1,po.colSpan=1),ce.createElement(Ut,(0,Pe.Z)({className:_e()(vr,Qn),ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:"div",prefixCls:Gt.prefixCls,key:hi,record:Rn,index:pn,renderIndex:Bn,dataIndex:Lr,render:ai,shouldCellUpdate:rn.shouldCellUpdate},Ai,{appendNode:Wi,additionalProps:(0,De.Z)((0,De.Z)({},oi),{},{style:Xi},po)}))}var $i=zr,Mi=["data","index","className","rowKey","style","extra","getHeight"],yo=ce.forwardRef(function(_t,Gt){var rn=_t.data,sn=_t.index,Tn=_t.className,pn=_t.rowKey,Bn=_t.style,Rn=_t.extra,In=_t.getHeight,Qn=(0,at.Z)(_t,Mi),ir=rn.record,tr=rn.indent,Ir=rn.index,Lr=Se(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),vr=Lr.scrollX,ti=Lr.flattenColumns,Cr=Lr.prefixCls,Yr=Lr.fixColumn,Xr=Lr.componentWidth,hi=jt(ir,pn,sn,tr),Ai=hi.rowSupportExpand,Wi=hi.expanded,oi=hi.rowProps,Ni=hi.expandedRowRender,ho=hi.expandedRowClassName,ui;if(Ai&&Wi){var Ei=Ni(ir,sn,tr+1,Wi),li=ho==null?void 0:ho(ir,sn,tr),Gr={};Yr&&(Gr={style:(0,Re.Z)({},"--virtual-width","".concat(Xr,"px"))});var yi="".concat(Cr,"-expanded-row-cell");ui=ce.createElement("div",{className:_e()("".concat(Cr,"-expanded-row"),"".concat(Cr,"-expanded-row-level-").concat(tr+1),li)},ce.createElement(Ut,{component:"div",prefixCls:Cr,className:_e()(yi,(0,Re.Z)({},"".concat(yi,"-fixed"),Yr)),additionalProps:Gr},Ei))}var Ri=(0,De.Z)((0,De.Z)({},Bn),{},{width:vr});Rn&&(Ri.position="absolute",Ri.pointerEvents="none");var Xi=ce.createElement("div",(0,Pe.Z)({},oi,Qn,{ref:Ai?null:Gt,className:_e()(Tn,"".concat(Cr,"-row"),oi==null?void 0:oi.className,(0,Re.Z)({},"".concat(Cr,"-row-extra"),Rn)),style:(0,De.Z)((0,De.Z)({},Ri),oi==null?void 0:oi.style)}),ti.map(function(Ji,ai){return ce.createElement($i,{key:ai,rowInfo:hi,column:Ji,colIndex:ai,indent:tr,index:sn,renderIndex:Ir,record:ir,inverse:Rn,getHeight:In})}));return Ai?ce.createElement("div",{ref:Gt},Xi,ui):Xi}),no=ue(yo),Wr=no,Hr=ce.forwardRef(function(_t,Gt){var rn=_t.data,sn=_t.onScroll,Tn=Se(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),pn=Tn.flattenColumns,Bn=Tn.onColumnResize,Rn=Tn.getRowKey,In=Tn.expandedKeys,Qn=Tn.prefixCls,ir=Tn.childrenColumnName,tr=Tn.emptyNode,Ir=Tn.scrollX,Lr=Se(vn),vr=Lr.scrollY,ti=Lr.listItemHeight,Cr=ce.useRef(),Yr=Ot(rn,ir,In,Rn),Xr=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 Xr.map(function(ui){return ui[2]})},[Xr]);ce.useEffect(function(){Xr.forEach(function(ui){var Ei=(0,oe.Z)(ui,2),li=Ei[0],Gr=Ei[1];Bn(li,Gr)})},[Xr]),ce.useImperativeHandle(Gt,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=Yr[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<Yr.length;Ea+=1){var vo=ka(Ea);if(vo==="break")break}for(var Hi=[],Uo=function(Vi){var qi=Yr[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=Yr[Qi],qi=Rn(Vi.record,Qi),ji=function(fo){var Fo=Qi+fo-1,Bo=Rn(Yr[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 Yr.length?ho=ce.createElement(ur.Z,{fullHeight:!1,ref:Cr,className:_e()(Ni,"".concat(Ni,"-virtual")),height:vr,itemHeight:ti||24,data:Yr,itemKey:function(Ei){return Rn(Ei.record)},scrollWidth:Ir,onVirtualScroll:function(Ei){var li=Ei.x;sn({scrollLeft:li})},extraRender:Wi},function(ui,Ei,li){var Gr=Rn(ui.record,Ei);return ce.createElement(Wr,(0,Pe.Z)({data:ui,rowKey:Gr,index:Ei},li))}):ho=ce.createElement("div",{className:_e()("".concat(Qn,"-placeholder"))},ce.createElement(Ut,{component:"div",prefixCls:Qn},tr)),ce.createElement(cr.Provider,{value:oi},ho)}),wi=ue(Hr),vi=wi,fr=function(Gt,rn){var sn=rn.ref,Tn=rn.onScroll;return ce.createElement(vi,{ref:sn,data:Gt,onScroll:Tn})},At=100;function Fi(_t){var Gt=_t.columns,rn=_t.scroll,sn=_t.prefixCls,Tn=sn===void 0?Jn:sn,pn=_t.className,Bn=_t.listItemHeight,Rn=rn||{},In=Rn.x,Qn=Rn.y;typeof In!="number"&&(In=((Gt||[]).length+1)*At),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,Pe.Z)({},_t,{className:_e()(pn,"".concat(Tn,"-virtual")),scroll:(0,De.Z)((0,De.Z)({},rn),{},{x:In}),components:{body:fr},columns:Gt,internalHooks:Mt,tailor:!0})))}function Ki(_t){return le(Fi,_t)}var gi=Ki(),oo=null;function So(_t){return null}var qr=So;function ii(_t){return null}var Oi=ii,Pi=Ge(2738),co=Ge(68031),To=Ge(36355),Vr=Ge(93891),Zr=Ge(19716),Yn=Ge(8628),ci=Ge(31724),ro=Ge(58421),Wo=Ge(71418),_o=Ge(88088);function Xo(_t){return function(rn){let{prefixCls:sn,onExpand:Tn,record:pn,expanded:Bn,expandable:Rn}=rn;const In=`${sn}-row-expand-icon`;return ce.createElement("button",{type:"button",onClick:Qn=>{Tn(pn,Qn),Qn.stopPropagation()},className:_e()(In,{[`${In}-spaced`]:!Rn,[`${In}-expanded`]:Rn&&Bn,[`${In}-collapsed`]:Rn&&!Bn}),"aria-label":Bn?_t.collapse:_t.expand,"aria-expanded":Bn})}}var Pa=Xo;function na(_t,Gt){return"key"in _t&&_t.key!==void 0&&_t.key!==null?_t.key:_t.dataIndex?Array.isArray(_t.dataIndex)?_t.dataIndex.join("."):_t.dataIndex:Gt}function os(_t,Gt){return Gt?`${Gt}-${_t}`:`${_t}`}function Da(_t,Gt){return typeof _t=="function"?_t(Gt):_t}function fs(_t,Gt){const rn=Da(_t,Gt);return Object.prototype.toString.call(rn)==="[object Object]"?"":rn}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=Ge(7657),el=function(Gt,rn){return ce.createElement(rc.Z,(0,Pe.Z)({},Gt,{ref:rn,icon:Fa}))},xo=ce.forwardRef(el),eo=xo,ga=Ge(56762);function jo(_t){const Gt=ce.useRef(_t),rn=(0,ga.Z)();return[()=>Gt.current,sn=>{Gt.current=sn,rn()}]}var Yi=Ge(3113),No=Ge(24905),xs=Ge(38854),bi=Ge(64165),so=Ge(20834),io=Ge(40875),Or=Ge(5112),Ba=Ge(17574),Ra=Ge(47472),Cs=Ge(92832);function Il(_t){let{value:Gt,onChange:rn,filterSearch:sn,tablePrefixCls:Tn,locale:pn}=_t;return sn?ce.createElement("div",{className:`${Tn}-filter-dropdown-search`},ce.createElement(Cs.default,{prefix:ce.createElement(Ra.Z,null),placeholder:pn.filterSearchPlaceholder,onChange:rn,value:Gt,htmlSize:1,className:`${Tn}-filter-dropdown-search-input`})):null}var Ql=Il,wr=Ge(10228);const aa=_t=>{const{keyCode:Gt}=_t;Gt===wr.Z.ENTER&&_t.stopPropagation()};var Pl=ce.forwardRef((_t,Gt)=>ce.createElement("div",{className:_t.className,onClick:rn=>rn.stopPropagation(),onKeyDown:aa,ref:Gt},_t.children));function Dl(_t){let Gt=[];return(_t||[]).forEach(rn=>{let{value:sn,children:Tn}=rn;Gt.push(sn),Tn&&(Gt=[].concat((0,Mr.Z)(Gt),(0,Mr.Z)(Dl(Tn))))}),Gt}function Fl(_t){return _t.some(Gt=>{let{children:rn}=Gt;return rn})}function Bi(_t,Gt){return typeof Gt=="string"||typeof Gt=="number"?Gt==null?void 0:Gt.toString().toLowerCase().includes(_t.trim().toLowerCase()):!1}function mc(_t){let{filters:Gt,prefixCls:rn,filteredKeys:sn,filterMultiple:Tn,searchValue:pn,filterSearch:Bn}=_t;return Gt.map((Rn,In)=>{const Qn=String(Rn.value);if(Rn.children)return{key:Qn||In,label:Rn.text,popupClassName:`${rn}-dropdown-submenu`,children:mc({filters:Rn.children,prefixCls:rn,filteredKeys:sn,filterMultiple:Tn,searchValue:pn,filterSearch:Bn})};const ir=Tn?No.default:Or.ZP,tr={key:Rn.value!==void 0?Qn:In,label:ce.createElement(ce.Fragment,null,ce.createElement(ir,{checked:sn.includes(Qn)}),ce.createElement("span",null,Rn.text))};return pn.trim()?typeof Bn=="function"?Bn(pn,Rn)?tr:null:Bi(pn,Rn.text)?tr:null:tr})}function tl(_t){var Gt,rn;const{tablePrefixCls:sn,prefixCls:Tn,column:pn,dropdownPrefixCls:Bn,columnKey:Rn,filterMultiple:In,filterMode:Qn="menu",filterSearch:ir=!1,filterState:tr,triggerFilter:Ir,locale:Lr,children:vr,getPopupContainer:ti}=_t,{filterDropdownOpen:Cr,onFilterDropdownOpenChange:Yr,filterResetToDefaultFilteredValue:Xr,defaultFilteredValue:hi,filterDropdownVisible:Ai,onFilterDropdownVisibleChange:Wi}=pn,[oi,Ni]=ce.useState(!1),ho=!!(tr&&(!((Gt=tr.filteredKeys)===null||Gt===void 0)&&Gt.length||tr.forceFiltered)),ui=Ii=>{Ni(Ii),Yr==null||Yr(Ii),Wi==null||Wi(Ii)},Ei=(rn=Cr!=null?Cr:Ai)!==null&&rn!==void 0?rn:oi,li=tr==null?void 0:tr.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&&(!tr||!tr.filteredKeys)||(0,ve.Z)(fo,tr==null?void 0:tr.filteredKeys,!0))return null;Ir({column:pn,key:Rn,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(Xr?(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=_e()({[`${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:Lr.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:Lr}),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},Lr.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:Lr}),ce.createElement(so.default,{selectable:!0,multiple:In,prefixCls:`${Bn}-menu`,className:Na,onSelect:Ri,onDeselect:Ri,selectedKeys:Ii,getPopupContainer:ti,openKeys:Ji,onOpenChange:po,items:mc({filters:pn.filters||[],filterSearch:ir,prefixCls:Tn,filteredKeys:Gr(),filterMultiple:In,searchValue:wo})})),Fo=()=>Xr?(0,ve.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()},Lr.filterReset),ce.createElement(Yi.ZP,{type:"primary",size:"small",onClick:Ea},Lr.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:ti,placement:Vo==="rtl"?"bottomLeft":"bottomRight"},ce.createElement("span",{role:"button",tabIndex:-1,className:_e()(`${Tn}-trigger`,{active:ho}),onClick:Ii=>{Ii.stopPropagation()}},ji)))}var nl=tl;function As(_t,Gt,rn){let sn=[];return(_t||[]).forEach((Tn,pn)=>{var Bn;const Rn=os(pn,rn);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,Rn),filteredKeys:In,forceFiltered:Tn.filtered})}else sn.push({column:Tn,key:na(Tn,Rn),filteredKeys:Gt&&Tn.defaultFilteredValue?Tn.defaultFilteredValue:void 0,forceFiltered:Tn.filtered});"children"in Tn&&(sn=[].concat((0,Mr.Z)(sn),(0,Mr.Z)(As(Tn.children,Gt,Rn))))}),sn}function Cu(_t,Gt,rn,sn,Tn,pn,Bn,Rn){return rn.map((In,Qn)=>{const ir=os(Qn,Rn),{filterMultiple:tr=!0,filterMode:Ir,filterSearch:Lr}=In;let vr=In;if(vr.filters||vr.filterDropdown){const ti=na(vr,ir),Cr=sn.find(Yr=>{let{key:Xr}=Yr;return ti===Xr});vr=Object.assign(Object.assign({},vr),{title:Yr=>ce.createElement(nl,{tablePrefixCls:_t,prefixCls:`${_t}-filter`,dropdownPrefixCls:Gt,column:vr,columnKey:ti,filterState:Cr,filterMultiple:tr,filterMode:Ir,filterSearch:Lr,triggerFilter:pn,locale:Tn,getPopupContainer:Bn},Da(In.title,Yr))})}return"children"in vr&&(vr=Object.assign(Object.assign({},vr),{children:Cu(_t,Gt,vr.children,sn,Tn,pn,Bn,ir)})),vr})}function Bu(_t){const Gt={};return _t.forEach(rn=>{let{key:sn,filteredKeys:Tn,column:pn}=rn;const{filters:Bn,filterDropdown:Rn}=pn;if(Rn)Gt[sn]=Tn||null;else if(Array.isArray(Tn)){const In=Dl(Bn);Gt[sn]=In.filter(Qn=>Tn.includes(String(Qn)))}else Gt[sn]=null}),Gt}function _s(_t,Gt){return Gt.reduce((rn,sn)=>{const{column:{onFilter:Tn,filters:pn},filteredKeys:Bn}=sn;return Tn&&Bn&&Bn.length?rn.filter(Rn=>Bn.some(In=>{const Qn=Dl(pn),ir=Qn.findIndex(Ir=>String(Ir)===String(In)),tr=ir!==-1?Qn[ir]:In;return Tn(tr,Rn)})):rn},_t)}const dl=_t=>_t.flatMap(Gt=>"children"in Gt?[Gt].concat((0,Mr.Z)(dl(Gt.children||[]))):[Gt]);function Hc(_t){let{prefixCls:Gt,dropdownPrefixCls:rn,mergedColumns:sn,onFilterChange:Tn,getPopupContainer:pn,locale:Bn}=_t;const Rn=ce.useMemo(()=>dl(sn||[]),[sn]),[In,Qn]=ce.useState(()=>As(Rn,!0)),ir=ce.useMemo(()=>{const vr=As(Rn,!1);if(vr.length===0)return vr;let ti=!0,Cr=!0;if(vr.forEach(Yr=>{let{filteredKeys:Xr}=Yr;Xr!==void 0?ti=!1:Cr=!1}),ti){const Yr=(Rn||[]).map((Xr,hi)=>na(Xr,os(hi)));return In.filter(Xr=>{let{key:hi}=Xr;return Yr.includes(hi)}).map(Xr=>{const hi=Rn[Yr.findIndex(Ai=>Ai===Xr.key)];return Object.assign(Object.assign({},Xr),{column:Object.assign(Object.assign({},Xr.column),hi),forceFiltered:hi.filtered})})}return vr},[Rn,In]),tr=ce.useMemo(()=>Bu(ir),[ir]),Ir=vr=>{const ti=ir.filter(Cr=>{let{key:Yr}=Cr;return Yr!==vr.key});ti.push(vr),Qn(ti),Tn(Bu(ti),ti)};return[vr=>Cu(Gt,rn,vr,ir,Bn,Ir,pn),ir,tr]}var hh=Hc;function Gc(_t,Gt,rn){const sn=ce.useRef({});function Tn(pn){if(!sn.current||sn.current.data!==_t||sn.current.childrenColumnName!==Gt||sn.current.getRowKey!==rn){let Rn=function(In){In.forEach((Qn,ir)=>{const tr=rn(Qn,ir);Bn.set(tr,Qn),Qn&&typeof Qn=="object"&&Gt in Qn&&Rn(Qn[Gt]||[])})};const Bn=new Map;Rn(_t),sn.current={data:_t,childrenColumnName:Gt,kvMap:Bn,getRowKey:rn}}return sn.current.kvMap.get(pn)}return[Tn]}var Wh=Ge(50371),Wc=function(_t,Gt){var rn={};for(var sn in _t)Object.prototype.hasOwnProperty.call(_t,sn)&&Gt.indexOf(sn)<0&&(rn[sn]=_t[sn]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tn=0,sn=Object.getOwnPropertySymbols(_t);Tn<sn.length;Tn++)Gt.indexOf(sn[Tn])<0&&Object.prototype.propertyIsEnumerable.call(_t,sn[Tn])&&(rn[sn[Tn]]=_t[sn[Tn]]);return rn};const vc=10;function Ru(_t,Gt){const rn={current:_t.current,pageSize:_t.pageSize};return Object.keys(Gt&&typeof Gt=="object"?Gt:{}).forEach(Tn=>{const pn=_t[Tn];typeof pn!="function"&&(rn[Tn]=pn)}),rn}function Bl(_t,Gt,rn){const sn=rn&&typeof rn=="object"?rn:{},{total:Tn=0}=sn,pn=Wc(sn,["total"]),[Bn,Rn]=(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:_t}),Qn=Math.ceil((Tn||_t)/In.pageSize);In.current>Qn&&(In.current=Qn||1);const ir=(Ir,Lr)=>{Rn({current:Ir!=null?Ir:1,pageSize:Lr||In.pageSize})},tr=(Ir,Lr)=>{var vr;rn&&((vr=rn.onChange)===null||vr===void 0||vr.call(rn,Ir,Lr)),ir(Ir,Lr),Gt(Ir,Lr||(In==null?void 0:In.pageSize))};return rn===!1?[{},()=>{}]:[Object.assign(Object.assign({},In),{onChange:tr}),ir]}var dh=Bl,Uc=Ge(84105),yc=Ge(35654),to=Ge(90782),Io=Ge(71430),Es=Ge(18929);const Xa={},_a="SELECT_ALL",ca="SELECT_INVERT",Ca="SELECT_NONE",Ka=[],za=(_t,Gt)=>{let rn=[];return(Gt||[]).forEach(sn=>{rn.push(sn),sn&&typeof sn=="object"&&_t in sn&&(rn=[].concat((0,Mr.Z)(rn),(0,Mr.Z)(za(_t,sn[_t]))))}),rn};var Rl=(_t,Gt)=>{const{preserveSelectedRowKeys:rn,selectedRowKeys:sn,defaultSelectedRowKeys:Tn,getCheckboxProps:pn,onChange:Bn,onSelect:Rn,onSelectAll:In,onSelectInvert:Qn,onSelectNone:ir,onSelectMultiple:tr,columnWidth:Ir,type:Lr,selections:vr,fixed:ti,renderCell:Cr,hideSelectAll:Yr,checkStrictly:Xr=!0}=Gt||{},{prefixCls:hi,data:Ai,pageData:Wi,getRecordByKey:oi,getRowKey:Ni,expandType:ho,childrenColumnName:ui,locale:Ei,getPopupContainer:li}=_t,[Gr,yi]=(0,Es.Z)(sn||Tn||Ka,{value:sn}),Ri=ce.useRef(new Map),Xi=(0,ce.useCallback)(Qi=>{if(rn){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,rn]);ce.useEffect(()=>{Xi(Gr)},[Gr]);const{keyEntities:Ji}=(0,ce.useMemo)(()=>{if(Xr)return{keyEntities:null};let Qi=Ai;if(rn){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,Mr.Z)(Qi),(0,Mr.Z)(qi))}return(0,Io.I8)(Qi,{externalGetKey:Ni,childrenPropName:ui})},[Ai,Ni,Xr,ui,rn]),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(Xr)return[Gr||[],[]];const{checkedKeys:Qi,halfCheckedKeys:Vi}=(0,to.S)(Gr,!0,Ji,wo);return[Qi||[],Vi]},[Gr,Xr,Ji,wo]),ka=(0,ce.useMemo)(()=>{const Qi=Lr==="radio"?Jo.slice(0,1):Jo;return new Set(Qi)},[Jo,Lr]),Ea=(0,ce.useMemo)(()=>Lr==="radio"?new Set:new Set(Oo),[Oo,Lr]),[vo,Hi]=(0,ce.useState)(null);ce.useEffect(()=>{Gt||yi(Ka)},[!!Gt]);const Uo=(0,ce.useCallback)((Qi,Vi)=>{let qi,ji;Xi(Qi),rn?(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,rn]),Na=(0,ce.useCallback)((Qi,Vi,qi,ji)=>{if(Rn){const Vo=qi.map(Ii=>oi(Ii));Rn(oi(Qi),Vi,Vo,ji)}Uo(qi,"single")},[Rn,oi,Uo]),va=(0,ce.useMemo)(()=>!vr||Yr?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(!Gt)return Qi.filter(qo=>qo!==Xa);let qi=(0,Mr.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(Lr!=="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=!Yr&&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;Lr==="radio"?bs=(qo,ia,ua)=>{const Za=Ni(ia,ua),gs=ji.has(Za);return{node:ce.createElement(Or.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&&Xr){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&&Xr){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);tr==null||tr(!Lo,Ga.map(fa=>oi(fa)),Ts.map(fa=>oi(fa))),Uo(Ga,"multiple")}else{const ta=Jo;if(Xr){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,Mr.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[Kn])===null||ia===void 0?void 0:ia.columnType)==="EXPAND_COLUMN"})===0){const[qo,...ia]=qi;qi=[qo,Xa].concat((0,Mr.Z)(ia))}else qi=[Xa].concat((0,Mr.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=ti;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[Kn])===null||Vi===void 0?void 0:Vi.columnType)==="EXPAND_COLUMN"&&Qo.fixed===void 0&&(Qo.fixed=qa);const ps=_e()(`${hi}-selection-col`,{[`${hi}-selection-col-with-dropdown`]:vr&&Lr==="checkbox"}),Uu={fixed:qa,width:Ir,className:`${hi}-selection-column`,title:Gt.columnTitle||Bo,render:ss,onCell:Gt.onCell,[Kn]:{className:ps}};return qi.map(qo=>qo===Xa?Uu:qo)},[Ni,ai,Gt,Jo,ka,Ea,Ir,va,ho,vo,po,tr,Na,wo]),ka]},Ma=Ge(89489),wd=Ge(59477),bd=Ge(6848);const $c="ascend",pi="descend";function fh(_t){return typeof _t.sorter=="object"&&typeof _t.sorter.multiple=="number"?_t.sorter.multiple:!1}function tn(_t){return typeof _t=="function"?_t:_t&&typeof _t=="object"&&_t.compare?_t.compare:!1}function Zn(_t,Gt){return Gt?_t[_t.indexOf(Gt)+1]:_t[0]}function Pd(_t,Gt,rn){let sn=[];function Tn(pn,Bn){sn.push({column:pn,key:na(pn,Bn),multiplePriority:fh(pn),sortOrder:pn.sortOrder})}return(_t||[]).forEach((pn,Bn)=>{const Rn=os(Bn,rn);pn.children?("sortOrder"in pn&&Tn(pn,Rn),sn=[].concat((0,Mr.Z)(sn),(0,Mr.Z)(Pd(pn.children,Gt,Rn)))):pn.sorter&&("sortOrder"in pn?Tn(pn,Rn):Gt&&pn.defaultSortOrder&&sn.push({column:pn,key:na(pn,Rn),multiplePriority:fh(pn),sortOrder:pn.defaultSortOrder}))}),sn}function af(_t,Gt,rn,sn,Tn,pn,Bn,Rn){return(Gt||[]).map((In,Qn)=>{const ir=os(Qn,Rn);let tr=In;if(tr.sorter){const Ir=tr.sortDirections||Tn,Lr=tr.showSorterTooltip===void 0?Bn:tr.showSorterTooltip,vr=na(tr,ir),ti=rn.find(ho=>{let{key:ui}=ho;return ui===vr}),Cr=ti?ti.sortOrder:null,Yr=Zn(Ir,Cr);let Xr;if(In.sortIcon)Xr=In.sortIcon({sortOrder:Cr});else{const ho=Ir.includes($c)&&ce.createElement(wd.Z,{className:_e()(`${_t}-column-sorter-up`,{active:Cr===$c})}),ui=Ir.includes(pi)&&ce.createElement(Ma.Z,{className:_e()(`${_t}-column-sorter-down`,{active:Cr===pi})});Xr=ce.createElement("span",{className:_e()(`${_t}-column-sorter`,{[`${_t}-column-sorter-full`]:!!(ho&&ui)})},ce.createElement("span",{className:`${_t}-column-sorter-inner`,"aria-hidden":"true"},ho,ui))}const{cancelSort:hi,triggerAsc:Ai,triggerDesc:Wi}=pn||{};let oi=hi;Yr===pi?oi=Wi:Yr===$c&&(oi=Ai);const Ni=typeof Lr=="object"?Lr:{title:oi};tr=Object.assign(Object.assign({},tr),{className:_e()(tr.className,{[`${_t}-column-sort`]:Cr}),title:ho=>{const ui=ce.createElement("div",{className:`${_t}-column-sorters`},ce.createElement("span",{className:`${_t}-column-title`},Da(In.title,ho)),Xr);return Lr?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:Yr,multiplePriority:fh(In)}),Ei==null||Ei(Ri)},ui.onKeyDown=Ri=>{Ri.keyCode===wr.Z.ENTER&&(sn({column:In,key:vr,sortOrder:Yr,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=_e()(ui.className,`${_t}-column-has-sorters`),ui.tabIndex=0,In.ellipsis&&(ui.title=(Gr!=null?Gr:"").toString()),ui}})}return"children"in tr&&(tr=Object.assign(Object.assign({},tr),{children:af(_t,tr.children,rn,sn,Tn,pn,Bn,ir)})),tr})}function zu(_t){const{column:Gt,sortOrder:rn}=_t;return{column:Gt,order:rn,field:Gt.dataIndex,columnKey:Gt.key}}function Hu(_t){const Gt=_t.filter(rn=>{let{sortOrder:sn}=rn;return sn}).map(zu);return Gt.length===0&&_t.length?Object.assign(Object.assign({},zu(_t[_t.length-1])),{column:void 0}):Gt.length<=1?Gt[0]||{}:Gt}function ic(_t,Gt,rn){const sn=Gt.slice().sort((Bn,Rn)=>Rn.multiplePriority-Bn.multiplePriority),Tn=_t.slice(),pn=sn.filter(Bn=>{let{column:{sorter:Rn},sortOrder:In}=Bn;return tn(Rn)&&In});return pn.length?Tn.sort((Bn,Rn)=>{for(let In=0;In<pn.length;In+=1){const Qn=pn[In],{column:{sorter:ir},sortOrder:tr}=Qn,Ir=tn(ir);if(Ir&&tr){const Lr=Ir(Bn,Rn,tr);if(Lr!==0)return tr===$c?Lr:-Lr}}return 0}).map(Bn=>{const Rn=Bn[rn];return Rn?Object.assign(Object.assign({},Bn),{[rn]:ic(Rn,Gt,rn)}):Bn}):Tn}function Cd(_t){let{prefixCls:Gt,mergedColumns:rn,onSorterChange:sn,sortDirections:Tn,tableLocale:pn,showSorterTooltip:Bn}=_t;const[Rn,In]=ce.useState(Pd(rn,!0)),Qn=ce.useMemo(()=>{let vr=!0;const ti=Pd(rn,!1);if(!ti.length)return Rn;const Cr=[];function Yr(hi){vr?Cr.push(hi):Cr.push(Object.assign(Object.assign({},hi),{sortOrder:null}))}let Xr=null;return ti.forEach(hi=>{Xr===null?(Yr(hi),hi.sortOrder&&(hi.multiplePriority===!1?vr=!1:Xr=!0)):(Xr&&hi.multiplePriority!==!1||(vr=!1),Yr(hi))}),Cr},[rn,Rn]),ir=ce.useMemo(()=>{const vr=Qn.map(ti=>{let{column:Cr,sortOrder:Yr}=ti;return{column:Cr,order:Yr}});return{sortColumns:vr,sortColumn:vr[0]&&vr[0].column,sortOrder:vr[0]&&vr[0].order}},[Qn]);function tr(vr){let ti;vr.multiplePriority===!1||!Qn.length||Qn[0].multiplePriority===!1?ti=[vr]:ti=[].concat((0,Mr.Z)(Qn.filter(Cr=>{let{key:Yr}=Cr;return Yr!==vr.key})),[vr]),In(ti),sn(Hu(ti),ti)}return[vr=>af(Gt,vr,Qn,tr,Tn,pn,Bn),Qn,ir,()=>Hu(Qn)]}function ph(_t,Gt){return _t.map(rn=>{const sn=Object.assign({},rn);return sn.title=Da(rn.title,Gt),"children"in sn&&(sn.children=ph(sn.children,Gt)),sn})}function Ha(_t){return[ce.useCallback(rn=>ph(rn,_t),[_t])]}var Gi=ri((_t,Gt)=>{const{_renderTimes:rn}=_t,{_renderTimes:sn}=Gt;return rn!==sn}),rl=Ki((_t,Gt)=>{const{_renderTimes:rn}=_t,{_renderTimes:sn}=Gt;return rn!==sn}),zs=Ge(64993),ma=Ge(17313),Po=Ge(83116),as=Ge(37613),ha=_t=>{const{componentCls:Gt}=_t,rn=`${_t.lineWidth}px ${_t.lineType} ${_t.tableBorderColor}`,sn=(Tn,pn,Bn)=>({[`&${Gt}-${Tn}`]:{[`> ${Gt}-container`]:{[`> ${Gt}-content, > ${Gt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Gt}-expanded-row-fixed`]:{margin:`-${pn}px -${Bn+_t.lineWidth}px`}}}}}});return{[`${Gt}-wrapper`]:{[`${Gt}${Gt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Gt}-title`]:{border:rn,borderBottom:0},[`> ${Gt}-container`]:{borderInlineStart:rn,borderTop:rn,[`
|
|
|
> ${Gt}-content,
|
|
|
> ${Gt}-header,
|
|
|
> ${Gt}-body,
|
|
|
> ${Gt}-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:rn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:rn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Gt}-cell-fix-right-first::after`]:{borderInlineEnd:rn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Gt}-expanded-row-fixed`]:{margin:`-${_t.tablePaddingVertical}px -${_t.tablePaddingHorizontal+_t.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:_t.lineWidth,bottom:0,borderInlineEnd:rn,content:'""'}}}}}},[`&${Gt}-scroll-horizontal`]:{[`> ${Gt}-container > ${Gt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Gt}-expanded-row,
|
|
|
> tr${Gt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},sn("middle",_t.tablePaddingVerticalMiddle,_t.tablePaddingHorizontalMiddle)),sn("small",_t.tablePaddingVerticalSmall,_t.tablePaddingHorizontalSmall)),{[`> ${Gt}-footer`]:{border:rn,borderTop:0}}),[`${Gt}-cell`]:{[`${Gt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${_t.lineWidth}px 0 ${_t.lineWidth}px ${_t.tableHeaderBg}`}},[`${Gt}-bordered ${Gt}-cell-scrollbar`]:{borderInlineEnd:rn}}}},ws=_t=>{const{componentCls:Gt}=_t;return{[`${Gt}-wrapper`]:{[`${Gt}-cell-ellipsis`]:Object.assign(Object.assign({},ma.vS),{wordBreak:"keep-all",[`
|
|
|
&${Gt}-cell-fix-left-last,
|
|
|
&${Gt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Gt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Gt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},zo=_t=>{const{componentCls:Gt}=_t;return{[`${Gt}-wrapper`]:{[`${Gt}-tbody > tr${Gt}-placeholder`]:{textAlign:"center",color:_t.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:_t.colorBgContainer}}}}},il=Ge(15969),la=_t=>{const{componentCls:Gt,antCls:rn,controlInteractiveSize:sn,motionDurationSlow:Tn,lineWidth:pn,paddingXS:Bn,lineType:Rn,tableBorderColor:In,tableExpandIconBg:Qn,tableExpandColumnWidth:ir,borderRadius:tr,fontSize:Ir,fontSizeSM:Lr,lineHeight:vr,tablePaddingVertical:ti,tablePaddingHorizontal:Cr,tableExpandedRowBg:Yr,paddingXXS:Xr}=_t,hi=sn/2-pn,Ai=hi*2+pn*3,Wi=`${pn}px ${Rn} ${In}`,oi=Xr-pn;return{[`${Gt}-wrapper`]:{[`${Gt}-expand-icon-col`]:{width:ir},[`${Gt}-row-expand-icon-cell`]:{textAlign:"center",[`${Gt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Gt}-row-indent`]:{height:1,float:"left"},[`${Gt}-row-expand-icon`]:Object.assign(Object.assign({},(0,il.N)(_t)),{position:"relative",float:"left",boxSizing:"border-box",width:Ai,height:Ai,padding:0,color:"inherit",lineHeight:`${Ai}px`,background:Qn,border:Wi,borderRadius:tr,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"}}),[`${Gt}-row-indent + ${Gt}-row-expand-icon`]:{marginTop:(Ir*vr-pn*3)/2-Math.ceil((Lr*1.4-pn*3)/2),marginInlineEnd:Bn},[`tr${Gt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Yr}},[`${rn}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Gt}-expanded-row-fixed`]:{position:"relative",margin:`-${ti}px -${Cr}px`,padding:`${ti}px ${Cr}px`}}}},Va=_t=>{const{componentCls:Gt,antCls:rn,iconCls:sn,tableFilterDropdownWidth:Tn,tableFilterDropdownSearchWidth:pn,paddingXXS:Bn,paddingXS:Rn,colorText:In,lineWidth:Qn,lineType:ir,tableBorderColor:tr,tableHeaderIconColor:Ir,fontSizeSM:Lr,tablePaddingHorizontal:vr,borderRadius:ti,motionDurationSlow:Cr,colorTextDescription:Yr,colorPrimary:Xr,tableHeaderFilterActiveBg:hi,colorTextDisabled:Ai,tableFilterDropdownBg:Wi,tableFilterDropdownHeight:oi,controlItemBgHover:Ni,controlItemBgActive:ho,boxShadowSecondary:ui,filterDropdownMenuBg:Ei}=_t,li=`${rn}-dropdown`,Gr=`${Gt}-filter-dropdown`,yi=`${rn}-tree`,Ri=`${Qn}px ${ir} ${tr}`;return[{[`${Gt}-wrapper`]:{[`${Gt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Gt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Bn,marginInline:`${Bn}px ${-vr/2}px`,padding:`0 ${Bn}px`,color:Ir,fontSize:Lr,borderRadius:ti,cursor:"pointer",transition:`all ${Cr}`,"&:hover":{color:Yr,background:hi},"&.active":{color:Xr}}}},{[`${rn}-dropdown`]:{[Gr]:Object.assign(Object.assign({},(0,ma.Wf)(_t)),{minWidth:Tn,backgroundColor:Wi,borderRadius:ti,boxShadow:ui,overflow:"hidden",[`${li}-menu`]:{maxHeight:oi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ei,"&:empty::after":{display:"block",padding:`${Rn}px 0`,color:Ai,fontSize:Lr,textAlign:"center",content:'"Not Found"'}},[`${Gr}-tree`]:{paddingBlock:`${Rn}px 0`,paddingInline:Rn,[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:Rn,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:`${Rn-Qn}px ${Rn}px`,overflow:"hidden",borderTop:Ri}})}},{[`${rn}-dropdown ${Gr}, ${Gr}-submenu`]:{[`${rn}-checkbox-wrapper + span`]:{paddingInlineStart:Rn,color:In},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Vc=_t=>{const{componentCls:Gt,lineWidth:rn,colorSplit:sn,motionDurationSlow:Tn,zIndexTableFixed:pn,tableBg:Bn,zIndexTableSticky:Rn}=_t,In=sn;return{[`${Gt}-wrapper`]:{[`
|
|
|
${Gt}-cell-fix-left,
|
|
|
${Gt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:pn,background:Bn},[`
|
|
|
${Gt}-cell-fix-left-first::after,
|
|
|
${Gt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-rn,width:30,transform:"translateX(100%)",transition:`box-shadow ${Tn}`,content:'""',pointerEvents:"none"},[`${Gt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Gt}-cell-fix-right-first::after,
|
|
|
${Gt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-rn,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Tn}`,content:'""',pointerEvents:"none"},[`${Gt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Rn+1,width:30,transition:`box-shadow ${Tn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Gt}-ping-left`]:{[`&:not(${Gt}-has-fix-left) ${Gt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${In}`}},[`
|
|
|
${Gt}-cell-fix-left-first::after,
|
|
|
${Gt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${In}`},[`${Gt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Gt}-ping-right`]:{[`&:not(${Gt}-has-fix-right) ${Gt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${In}`}},[`
|
|
|
${Gt}-cell-fix-right-first::after,
|
|
|
${Gt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${In}`}}}}},Wf=_t=>{const{componentCls:Gt,antCls:rn}=_t;return{[`${Gt}-wrapper`]:{[`${Gt}-pagination${rn}-pagination`]:{margin:`${_t.margin}px 0`},[`${Gt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:_t.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Uf=_t=>{const{componentCls:Gt,tableRadius:rn}=_t;return{[`${Gt}-wrapper`]:{[Gt]:{[`${Gt}-title, ${Gt}-header`]:{borderRadius:`${rn}px ${rn}px 0 0`},[`${Gt}-title + ${Gt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Gt}-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:rn,borderStartEndRadius:rn,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:rn},"> *:last-child":{borderStartEndRadius:rn}}},"&-footer":{borderRadius:`0 0 ${rn}px ${rn}px`}}}}},$h=_t=>{const{componentCls:Gt}=_t;return{[`${Gt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Gt}-pagination-left`]:{justifyContent:"flex-end"},[`${Gt}-pagination-right`]:{justifyContent:"flex-start"},[`${Gt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Gt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Gt}-row-indent`]:{float:"right"}}}}},Ed=_t=>{const{componentCls:Gt,antCls:rn,iconCls:sn,fontSizeIcon:Tn,padding:pn,paddingXS:Bn,tableHeaderIconColor:Rn,tableHeaderIconColorHover:In,tableSelectionColumnWidth:Qn}=_t;return{[`${Gt}-wrapper`]:{[`${Gt}-selection-col`]:{width:Qn,[`&${Gt}-selection-col-with-dropdown`]:{width:Qn+Tn+pn/4}},[`${Gt}-bordered ${Gt}-selection-col`]:{width:Qn+Bn*2,[`&${Gt}-selection-col-with-dropdown`]:{width:Qn+Tn+pn/4+Bn*2}},[`
|
|
|
table tr th${Gt}-selection-column,
|
|
|
table tr td${Gt}-selection-column
|
|
|
`]:{paddingInlineEnd:_t.paddingXS,paddingInlineStart:_t.paddingXS,textAlign:"center",[`${rn}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Gt}-selection-column${Gt}-cell-fix-left`]:{zIndex:_t.zIndexTableFixed+1},[`table tr th${Gt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Gt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Gt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${_t.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${_t.tablePaddingHorizontal/4}px`,[sn]:{color:Rn,fontSize:Tn,verticalAlign:"baseline","&:hover":{color:In}}}}}},Zc=_t=>{const{componentCls:Gt}=_t,rn=(sn,Tn,pn,Bn)=>({[`${Gt}${Gt}-${sn}`]:{fontSize:Bn,[`
|
|
|
${Gt}-title,
|
|
|
${Gt}-footer,
|
|
|
${Gt}-cell,
|
|
|
${Gt}-thead > tr > th,
|
|
|
${Gt}-tbody > tr > th,
|
|
|
${Gt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Tn}px ${pn}px`},[`${Gt}-filter-trigger`]:{marginInlineEnd:`-${pn/2}px`},[`${Gt}-expanded-row-fixed`]:{margin:`-${Tn}px -${pn}px`},[`${Gt}-tbody`]:{[`${Gt}-wrapper:only-child ${Gt}`]:{marginBlock:`-${Tn}px`,marginInline:`${_t.tableExpandColumnWidth-pn}px -${pn}px`}},[`${Gt}-selection-column`]:{paddingInlineStart:`${pn/4}px`}}});return{[`${Gt}-wrapper`]:Object.assign(Object.assign({},rn("middle",_t.tablePaddingVerticalMiddle,_t.tablePaddingHorizontalMiddle,_t.tableFontSizeMiddle)),rn("small",_t.tablePaddingVerticalSmall,_t.tablePaddingHorizontalSmall,_t.tableFontSizeSmall))}},Gu=_t=>{const{componentCls:Gt,marginXXS:rn,fontSizeIcon:sn,tableHeaderIconColor:Tn,tableHeaderIconColorHover:pn}=_t;return{[`${Gt}-wrapper`]:{[`${Gt}-thead th${Gt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${_t.motionDurationSlow}`,"&:hover":{background:_t.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:_t.colorPrimary},[`
|
|
|
&${Gt}-cell-fix-left:hover,
|
|
|
&${Gt}-cell-fix-right:hover
|
|
|
`]:{background:_t.tableFixedHeaderSortActiveBg}},[`${Gt}-thead th${Gt}-column-sort`]:{background:_t.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Gt}-column-sort`]:{background:_t.tableBodySortBg},[`${Gt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Gt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Gt}-column-sorter`]:{marginInlineStart:rn,color:Tn,fontSize:0,transition:`color ${_t.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:sn,"&.active":{color:_t.colorPrimary}},[`${Gt}-column-sorter-up + ${Gt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Gt}-column-sorters:hover ${Gt}-column-sorter`]:{color:pn}}}},Xc=_t=>{const{componentCls:Gt,opacityLoading:rn,tableScrollThumbBg:sn,tableScrollThumbBgHover:Tn,tableScrollThumbSize:pn,tableScrollBg:Bn,zIndexTableSticky:Rn,stickyScrollBarBorderRadius:In}=_t,Qn=`${_t.lineWidth}px ${_t.lineType} ${_t.tableBorderColor}`;return{[`${Gt}-wrapper`]:{[`${Gt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Rn,background:_t.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${pn}px !important`,zIndex:Rn,display:"flex",alignItems:"center",background:Bn,borderTop:Qn,opacity:rn,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:pn,backgroundColor:sn,borderRadius:In,transition:`all ${_t.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Tn}}}}}}},Wu=_t=>{const{componentCls:Gt,lineWidth:rn,tableBorderColor:sn}=_t,Tn=`${rn}px ${_t.lineType} ${sn}`;return{[`${Gt}-wrapper`]:{[`${Gt}-summary`]:{position:"relative",zIndex:_t.zIndexTableFixed,background:_t.tableBg,"> tr":{"> th, > td":{borderBottom:Tn}}},[`div${Gt}-summary`]:{boxShadow:`0 -${rn}px 0 ${sn}`}}}},xc=_t=>{const{componentCls:Gt}=_t,rn=`${_t.lineWidth}px ${_t.lineType} ${_t.tableBorderColor}`,sn=`${Gt}-expanded-row-cell`;return{[`${Gt}-wrapper`]:{[`${Gt}-tbody-virtual`]:{[`${Gt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Gt}-cell`]:{borderBottom:rn},[`${Gt}-expanded-row`]:{[`${sn}${sn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${_t.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Gt}-bordered`]:{[`${Gt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:rn,position:"absolute"},[`${Gt}-cell`]:{borderInlineEnd:rn,[`&${Gt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-_t.lineWidth,borderInlineStart:rn}}}}}}};const Eu=_t=>{const{componentCls:Gt,fontWeightStrong:rn,tablePaddingVertical:sn,tablePaddingHorizontal:Tn,lineWidth:pn,lineType:Bn,tableBorderColor:Rn,tableFontSize:In,tableBg:Qn,tableRadius:ir,tableHeaderTextColor:tr,motionDurationMid:Ir,tableHeaderBg:Lr,tableHeaderCellSplitColor:vr,tableRowHoverBg:ti,tableSelectedRowBg:Cr,tableSelectedRowHoverBg:Yr,tableFooterTextColor:Xr,tableFooterBg:hi,paddingContentVerticalLG:Ai}=_t,Wi=`${pn}px ${Bn} ${Rn}`;return{[`${Gt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ma.dF)()),{[Gt]:Object.assign(Object.assign({},(0,ma.Wf)(_t)),{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},[`
|
|
|
${Gt}-cell,
|
|
|
${Gt}-thead > tr > th,
|
|
|
${Gt}-tbody > tr > th,
|
|
|
${Gt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Ai}px ${Tn}px`,overflowWrap:"break-word"},[`${Gt}-title`]:{padding:`${sn}px ${Tn}px`},[`${Gt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:tr,fontWeight:rn,textAlign:"start",background:Lr,borderBottom:Wi,transition:`background ${Ir} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Gt}-selection-column):not(${Gt}-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 ${Ir}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Gt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ir}, border-color ${Ir}`,borderBottom:Wi,[`
|
|
|
> ${Gt}-wrapper:only-child,
|
|
|
> ${Gt}-expanded-row-fixed > ${Gt}-wrapper:only-child
|
|
|
`]:{[Gt]:{marginBlock:`-${sn}px`,marginInline:`${_t.tableExpandColumnWidth-Tn}px -${Tn}px`,[`${Gt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:tr,fontWeight:rn,textAlign:"start",background:Lr,borderBottom:Wi,transition:`background ${Ir} ease`},[`
|
|
|
&${Gt}-row:hover > th,
|
|
|
&${Gt}-row:hover > td,
|
|
|
> th${Gt}-cell-row-hover,
|
|
|
> td${Gt}-cell-row-hover
|
|
|
`]:{background:ti},[`&${Gt}-row-selected`]:{"> th, > td":{background:Cr},"&:hover > th, &:hover > td":{background:Yr}}}},[`${Gt}-footer`]:{padding:`${sn}px ${Tn}px`,color:Xr,background:hi}})}};var wc=(0,Po.Z)("Table",_t=>{const{colorTextHeading:Gt,colorSplit:rn,colorIcon:sn,colorIconHover:Tn,opacityLoading:pn,colorBgContainer:Bn,controlInteractiveSize:Rn,headerBg:In,headerColor:Qn,headerSortActiveBg:ir,headerSortHoverBg:tr,bodySortBg:Ir,rowHoverBg:Lr,rowSelectedBg:vr,rowSelectedHoverBg:ti,rowExpandedBg:Cr,cellPaddingBlock:Yr,cellPaddingInline:Xr,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}=_t,Oo=new zs.C(sn),ka=new zs.C(Tn),Ea=2,vo=(0,as.TS)(_t,{tableFontSize:li,tableBg:Bn,tableRadius:Ei,tablePaddingVertical:Yr,tablePaddingHorizontal:Xr,tablePaddingVerticalMiddle:hi,tablePaddingHorizontalMiddle:Ai,tablePaddingVerticalSmall:Wi,tablePaddingHorizontalSmall:oi,tableBorderColor:Ni,tableHeaderTextColor:Qn,tableHeaderBg:In,tableFooterTextColor:ui,tableFooterBg:ho,tableHeaderCellSplitColor:Ri,tableHeaderSortBg:ir,tableHeaderSortHoverBg:tr,tableHeaderIconColor:Oo.clone().setAlpha(Oo.getAlpha()*pn).toRgbString(),tableHeaderIconColorHover:ka.clone().setAlpha(ka.getAlpha()*pn).toRgbString(),tableBodySortBg:Ir,tableFixedHeaderSortActiveBg:Xi,tableHeaderFilterActiveBg:Ji,tableFilterDropdownBg:ai,tableRowHoverBg:Lr,tableSelectedRowBg:vr,tableSelectedRowHoverBg:ti,zIndexTableFixed:Ea,zIndexTableSticky:Ea+1,tableFontSizeMiddle:Gr,tableFontSizeSmall:yi,tableSelectionColumnWidth:wo,tableExpandIconBg:po,tableExpandColumnWidth:Rn+2*_t.padding,tableExpandedRowBg:Cr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Jo,tableScrollThumbBgHover:Gt,tableScrollBg:rn});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)]},_t=>{const{colorFillAlter:Gt,colorBgContainer:rn,colorTextHeading:sn,colorFillSecondary:Tn,colorFillContent:pn,controlItemBgActive:Bn,controlItemBgActiveHover:Rn,padding:In,paddingSM:Qn,paddingXS:ir,colorBorderSecondary:tr,borderRadiusLG:Ir,fontSize:Lr,controlHeight:vr,colorTextPlaceholder:ti}=_t,Cr=new zs.C(Tn).onBackground(rn).toHexShortString(),Yr=new zs.C(pn).onBackground(rn).toHexShortString(),Xr=new zs.C(Gt).onBackground(rn).toHexShortString();return{headerBg:Xr,headerColor:sn,headerSortActiveBg:Cr,headerSortHoverBg:Yr,bodySortBg:Xr,rowHoverBg:Xr,rowSelectedBg:Bn,rowSelectedHoverBg:Rn,rowExpandedBg:Gt,cellPaddingBlock:In,cellPaddingInline:In,cellPaddingBlockMD:Qn,cellPaddingInlineMD:ir,cellPaddingBlockSM:ir,cellPaddingInlineSM:ir,borderColor:tr,headerBorderRadius:Ir,footerBg:Xr,footerColor:sn,cellFontSize:Lr,cellFontSizeMD:Lr,cellFontSizeSM:Lr,headerSplitColor:tr,fixedHeaderSortActiveBg:Cr,headerFilterHoverBg:pn,filterDropdownMenuBg:rn,filterDropdownBg:rn,expandIconBg:rn,selectionColumnWidth:vr,stickyScrollBarBg:ti,stickyScrollBarBorderRadius:100}});const Td=[],lf=(_t,Gt)=>{const{prefixCls:rn,className:sn,rootClassName:Tn,style:pn,size:Bn,bordered:Rn,dropdownPrefixCls:In,dataSource:Qn,pagination:ir,rowSelection:tr,rowKey:Ir="key",rowClassName:Lr,columns:vr,children:ti,childrenColumnName:Cr,onChange:Yr,getPopupContainer:Xr,loading:hi,expandIcon:Ai,expandable:Wi,expandedRowRender:oi,expandIconColumnIndex:Ni,indentSize:ho,scroll:ui,sortDirections:Ei,locale:li,showSorterTooltip:Gr=!0,virtual:yi}=_t,Ri=ce.useMemo(()=>vr||ln(ti),[vr,ti]),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)(_t,["className","style","columns"]),{locale:wo=ci.Z,direction:Jo,table:Oo,renderEmpty:ka,getPrefixCls:Ea,getPopupContainer:vo}=ce.useContext(To.E_),Hi=(0,Zr.Z)(Bn),Uo=Object.assign(Object.assign({},wo.Table),li),Na=Qn||Td,va=Ea("table",rn),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 Ir=="function"?Ir:Zo=>Zo==null?void 0:Zo[Ir],[Ir]),[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}),Yr==null||Yr(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:Xr||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:Xr||vo},tr),El=(Zo,ya,ls)=>{let Sa;return typeof Lr=="function"?Sa=_e()(Lr(Zo,ya,ls)):Sa=_e()(Lr),_e()({[`${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=tr?1:0:Qi.expandIconColumnIndex>0&&tr&&(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:_e()(`${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=_e()(`${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(Vr.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:Gt,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:_e()({[`${va}-middle`]:Hi==="middle",[`${va}-small`]:Hi==="small",[`${va}-bordered`]:Rn,[`${va}-empty`]:Na.length===0}),data:ms,rowKey:Vo,rowClassName:El,emptyText:tu,internalHooks:Mt,internalRefs:ji,transformColumns:ql})),Hl)))};var uf=ce.forwardRef(lf);const Vf=(_t,Gt)=>{const rn=ce.useRef(0);return rn.current+=1,ce.createElement(uf,Object.assign({},_t,{ref:Gt,_renderTimes:rn.current}))},fl=ce.forwardRef(Vf);fl.SELECTION_COLUMN=Xa,fl.EXPAND_COLUMN=et,fl.SELECTION_ALL=_a,fl.SELECTION_INVERT=ca,fl.SELECTION_NONE=Ca,fl.Column=qr,fl.ColumnGroup=Oi,fl.Summary=$e;var bc=fl,$p=bc},17574:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{default:function(){return qe}});var et=Ge(43858),Mt=Ge(19127),oe=Ge(52671),ze=Ge(8657),je=Ge(96663),ve=Ge(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,Me=Ge(7657),Se=function(pt,wt){return ve.createElement(Me.Z,(0,je.Z)({},pt,{ref:wt,icon:we}))},Pe=ve.forwardRef(Se),me=Pe,xe=Ge(92310),fe=Ge.n(xe),z=Ge(35654),ee=Ge(71430),ae=Ge(36355),re=Ge(56082),le=Ge(62892),ue=Ge(20648);const pe=4;function be(it){const{dropPosition:pt,dropLevelOffset:wt,prefixCls:xt,indent:ft,direction:mt="ltr"}=it,yt=mt==="ltr"?"left":"right",It=mt==="ltr"?"right":"left",kt={[yt]:-wt*ft+pe,[It]:0};switch(pt){case-1:kt.top=-3;break;case 1:kt.bottom=-3;break;default:kt.bottom=-3,kt[yt]=ft+pe;break}return ve.createElement("div",{style:kt,className:`${xt}-drop-indicator`})}var Ce=Ge(71997),Oe=ve.forwardRef((it,pt)=>{const{getPrefixCls:wt,direction:xt,virtual:ft,tree:mt}=ve.useContext(ae.E_),{prefixCls:yt,className:It,showIcon:kt=!1,showLine:Ut,switcherIcon:Pt,blockNode:Ct=!1,children:st,checkable:bt=!1,selectable:at=!0,draggable:ct,motion:Lt,style:vt}=it,nt=wt("tree",yt),Xe=wt(),Ue=Lt!=null?Lt:Object.assign(Object.assign({},(0,le.Z)(Xe)),{motionAppear:!1}),$e=Object.assign(Object.assign({},it),{checkable:bt,selectable:at,showIcon:kt,motion:Ue,blockNode:Ct,showLine:!!Ut,dropIndicatorRender:be}),[tt,We]=(0,ue.ZP)(nt),Be=ve.useMemo(()=>{if(!ct)return!1;let Ke={};switch(typeof ct){case"function":Ke.nodeDraggable=ct;break;case"object":Ke=Object.assign({},ct);break;default:break}return Ke.icon!==!1&&(Ke.icon=Ke.icon||ve.createElement(re.Z,null)),Ke},[ct]),Te=Ke=>ve.createElement(Ce.Z,{prefixCls:nt,switcherIcon:Pt,treeNodeProps:Ke,showLine:Ut});return tt(ve.createElement(et.Z,Object.assign({itemHeight:20,ref:pt,virtual:ft},$e,{style:Object.assign(Object.assign({},mt==null?void 0:mt.style),vt),prefixCls:nt,className:fe()({[`${nt}-icon-hide`]:!kt,[`${nt}-block-node`]:Ct,[`${nt}-unselectable`]:!at,[`${nt}-rtl`]:xt==="rtl"},mt==null?void 0:mt.className,It,We),direction:xt,checkable:bt&&ve.createElement("span",{className:`${nt}-checkbox-inner`}),selectable:at,switcherIcon:Te,draggable:Be}),st))}),Le;(function(it){it[it.None=0]="None",it[it.Start=1]="Start",it[it.End=2]="End"})(Le||(Le={}));function Ne(it,pt){function wt(xt){const{key:ft,children:mt}=xt;pt(ft,xt)!==!1&&Ne(mt||[],pt)}it.forEach(wt)}function De(it){let{treeData:pt,expandedKeys:wt,startKey:xt,endKey:ft}=it;const mt=[];let yt=Le.None;if(xt&&xt===ft)return[xt];if(!xt||!ft)return[];function It(kt){return kt===xt||kt===ft}return Ne(pt,kt=>{if(yt===Le.End)return!1;if(It(kt)){if(mt.push(kt),yt===Le.None)yt=Le.Start;else if(yt===Le.Start)return yt=Le.End,!1}else yt===Le.Start&&mt.push(kt);return wt.includes(kt)}),mt}function Re(it,pt){const wt=(0,Mt.Z)(pt),xt=[];return Ne(it,(ft,mt)=>{const yt=wt.indexOf(ft);return yt!==-1&&(xt.push(mt),wt.splice(yt,1)),!!wt.length}),xt}var Je=function(it,pt){var wt={};for(var xt in it)Object.prototype.hasOwnProperty.call(it,xt)&&pt.indexOf(xt)<0&&(wt[xt]=it[xt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,xt=Object.getOwnPropertySymbols(it);ft<xt.length;ft++)pt.indexOf(xt[ft])<0&&Object.prototype.propertyIsEnumerable.call(it,xt[ft])&&(wt[xt[ft]]=it[xt[ft]]);return wt};function _e(it){const{isLeaf:pt,expanded:wt}=it;return pt?ve.createElement(oe.Z,null):wt?ve.createElement(ze.Z,null):ve.createElement(me,null)}function Ve(it){let{treeData:pt,children:wt}=it;return pt||(0,ee.zn)(wt)}const Qe=(it,pt)=>{var{defaultExpandAll:wt,defaultExpandParent:xt,defaultExpandedKeys:ft}=it,mt=Je(it,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const yt=ve.useRef(),It=ve.useRef(),kt=()=>{const{keyEntities:Be}=(0,ee.I8)(Ve(mt));let Te;return wt?Te=Object.keys(Be):xt?Te=(0,z.r7)(mt.expandedKeys||ft||[],Be):Te=mt.expandedKeys||ft,Te},[Ut,Pt]=ve.useState(mt.selectedKeys||mt.defaultSelectedKeys||[]),[Ct,st]=ve.useState(()=>kt());ve.useEffect(()=>{"selectedKeys"in mt&&Pt(mt.selectedKeys)},[mt.selectedKeys]),ve.useEffect(()=>{"expandedKeys"in mt&&st(mt.expandedKeys)},[mt.expandedKeys]);const bt=(Be,Te)=>{var Ke;return"expandedKeys"in mt||st(Be),(Ke=mt.onExpand)===null||Ke===void 0?void 0:Ke.call(mt,Be,Te)},at=(Be,Te)=>{var Ke;const{multiple:gt}=mt,{node:Ze,nativeEvent:Ot}=Te,{key:zt=""}=Ze,Yt=Ve(mt),jt=Object.assign(Object.assign({},Te),{selected:!0}),Kt=(Ot==null?void 0:Ot.ctrlKey)||(Ot==null?void 0:Ot.metaKey),en=Ot==null?void 0:Ot.shiftKey;let cn;gt&&Kt?(cn=Be,yt.current=zt,It.current=cn,jt.selectedNodes=Re(Yt,cn)):gt&&en?(cn=Array.from(new Set([].concat((0,Mt.Z)(It.current||[]),(0,Mt.Z)(De({treeData:Yt,expandedKeys:Ct,startKey:zt,endKey:yt.current}))))),jt.selectedNodes=Re(Yt,cn)):(cn=[zt],yt.current=zt,It.current=cn,jt.selectedNodes=Re(Yt,cn)),(Ke=mt.onSelect)===null||Ke===void 0||Ke.call(mt,cn,jt),"selectedKeys"in mt||Pt(cn)},{getPrefixCls:ct,direction:Lt}=ve.useContext(ae.E_),{prefixCls:vt,className:nt,showIcon:Xe=!0,expandAction:Ue="click"}=mt,$e=Je(mt,["prefixCls","className","showIcon","expandAction"]),tt=ct("tree",vt),We=fe()(`${tt}-directory`,{[`${tt}-directory-rtl`]:Lt==="rtl"},nt);return ve.createElement(Oe,Object.assign({icon:_e,ref:pt,blockNode:!0},$e,{showIcon:Xe,expandAction:Ue,prefixCls:tt,className:We,expandedKeys:Ct,selectedKeys:Ut,onSelect:at,onExpand:bt}))};var dt=ve.forwardRef(Qe);const St=Oe;St.DirectoryTree=dt,St.TreeNode=et.O;var qe=St},20648:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{TM:function(){return xe},Yk:function(){return me}});var et=Ge(93083),Mt=Ge(98447),oe=Ge(17313),ze=Ge(8378),je=Ge(37613),ve=Ge(83116);const ce=new et.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}`}}}),Me=(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"},Me(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`}}}}})}},Pe=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"}}}}}},me=(fe,z)=>{const ee=`.${fe}`,ae=`${ee}-treenode`,re=z.paddingXS/2,le=(0,je.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[Se(fe,le),Pe(le)]},xe=fe=>{const{controlHeightSM:z}=fe;return{titleHeight:z,nodeHoverBg:fe.controlItemBgHover,nodeSelectedBg:fe.controlItemBgActive}};Pn.ZP=(0,ve.Z)("Tree",(fe,z)=>{let{prefixCls:ee}=z;return[{[fe.componentCls]:(0,Mt.C2)(`${ee}-checkbox`,fe)},me(ee,fe),(0,ze.Z)(fe)]},fe=>{const{colorTextLightSolid:z,colorPrimary:ee}=fe;return Object.assign(Object.assign({},xe(fe)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},71997:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return ae}});var et=Ge(96663),Mt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ze=oe,je=Ge(7657),ve=function(le,ue){return Mt.createElement(je.Z,(0,et.Z)({},le,{ref:ue,icon:ze}))},ce=Mt.forwardRef(ve),we=ce,Me=Ge(52671),Se=Ge(58617),Pe=Ge(15075),me=Ge(43531),xe=Ge(92310),fe=Ge.n(xe),z=Ge(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:be}=re,{isLeaf:Ce,expanded:Ie,loading:Oe}=pe;if(Oe)return Mt.createElement(Se.Z,{className:`${le}-switcher-loading-icon`});let Le;if(be&&typeof be=="object"&&(Le=be.showLeafIcon),Ce){if(!be)return null;if(typeof Le!="boolean"&&Le){const Re=typeof Le=="function"?Le(pe):Le,Je=`${le}-switcher-line-custom-icon`;return(0,z.l$)(Re)?(0,z.Tm)(Re,{className:fe()(Re.props.className||"",Je)}):Re}return Le?Mt.createElement(Me.Z,{className:`${le}-switcher-line-icon`}):Mt.createElement("span",{className:`${le}-switcher-leaf-line`})}const Ne=`${le}-switcher-icon`,De=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(De)?(0,z.Tm)(De,{className:fe()(De.props.className||"",Ne)}):De!==void 0?De:be?Ie?Mt.createElement(Pe.Z,{className:`${le}-switcher-line-icon`}):Mt.createElement(me.Z,{className:`${le}-switcher-line-icon`}):Mt.createElement(we,{className:Ne})}},54580:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{default:function(){return Mn}});var et=Ge(59301),Mt=Ge(19127),oe=Ge(92310),ze=Ge.n(oe),je=Ge(96663),ve=Ge(52884),ce=Ge(95727),we=Ge(65711),Me=Ge(85745),Se=Ge(90493),Pe=Ge(6620),me=Ge(49581),xe=Ge(20135),fe=Ge(73324),z=Ge(26112);function ee(an,xn){var gn="cannot ".concat(an.method," ").concat(an.action," ").concat(xn.status,"'"),Sn=new Error(gn);return Sn.status=xn.status,Sn.method=an.method,Sn.url=an.action,Sn}function ae(an){var xn=an.responseText||an.response;if(!xn)return xn;try{return JSON.parse(xn)}catch(gn){return xn}}function re(an){var xn=new XMLHttpRequest;an.onProgress&&xn.upload&&(xn.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(An){var Nn=an.data[An];if(Array.isArray(Nn)){Nn.forEach(function(Fn){gn.append("".concat(An,"[]"),Fn)});return}gn.append(An,Nn)}),an.file instanceof Blob?gn.append(an.filename,an.file,an.file.name):gn.append(an.filename,an.file),xn.onerror=function(Nn){an.onError(Nn)},xn.onload=function(){return xn.status<200||xn.status>=300?an.onError(ee(an,xn),ae(xn)):an.onSuccess(ae(xn),xn)},xn.open(an.method,an.action,!0),an.withCredentials&&"withCredentials"in xn&&(xn.withCredentials=!0);var Sn=an.headers||{};return Sn["X-Requested-With"]!==null&&xn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Sn).forEach(function(An){Sn[An]!==null&&xn.setRequestHeader(An,Sn[An])}),xn.send(gn),{abort:function(){xn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var be=Ge(48736),Ce=function(an,xn){if(an&&xn){var gn=Array.isArray(xn)?xn:xn.split(","),Sn=an.name||"",An=an.type||"",Nn=An.replace(/\/.*$/,"");return gn.some(function(Fn){var zn=Fn.trim();if(/^\*(\/\*)?$/.test(Fn))return!0;if(zn.charAt(0)==="."){var xr=Sn.toLowerCase(),mn=zn.toLowerCase(),Fr=[mn];return(mn===".jpg"||mn===".jpeg")&&(Fr=[".jpg",".jpeg"]),Fr.some(function(Qr){return xr.endsWith(Qr)})}return/\/\*$/.test(zn)?Nn===zn.replace(/\/.*$/,""):An===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 Ie(an,xn){var gn=an.createReader(),Sn=[];function An(){gn.readEntries(function(Nn){var Fn=Array.prototype.slice.apply(Nn);Sn=Sn.concat(Fn);var zn=!Fn.length;zn?xn(Sn):An()})}An()}var Oe=function(xn,gn,Sn){var An=function Nn(Fn,zn){Fn&&(Fn.path=zn||"",Fn.isFile?Fn.file(function(xr){Sn(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&&Ie(Fn,function(xr){xr.forEach(function(mn){Nn(mn,"".concat(zn).concat(Fn.name,"/"))})}))};xn.forEach(function(Nn){An(Nn.webkitGetAsEntry())})},Le=Oe,Ne=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],De=function(an){(0,we.Z)(gn,an);var xn=(0,Me.Z)(gn);function gn(){var Sn;(0,ve.Z)(this,gn);for(var An=arguments.length,Nn=new Array(An),Fn=0;Fn<An;Fn++)Nn[Fn]=arguments[Fn];return Sn=xn.call.apply(xn,[this].concat(Nn)),Sn.state={uid:pe()},Sn.reqs={},Sn.fileInput=void 0,Sn._isMounted=void 0,Sn.onChange=function(zn){var xr=Sn.props,mn=xr.accept,Fr=xr.directory,Qr=zn.target.files,Br=(0,Mt.Z)(Qr).filter(function(bn){return!Fr||Ce(bn,mn)});Sn.uploadFiles(Br),Sn.reset()},Sn.onClick=function(zn){var xr=Sn.fileInput;if(xr){var mn=zn.target,Fr=Sn.props.onClick;if(mn&&mn.tagName==="BUTTON"){var Qr=xr.parentNode;Qr.focus(),mn.blur()}xr.click(),Fr&&Fr(zn)}},Sn.onKeyDown=function(zn){zn.key==="Enter"&&Sn.onClick(zn)},Sn.onFileDrop=function(zn){var xr=Sn.props.multiple;if(zn.preventDefault(),zn.type!=="dragover")if(Sn.props.directory)Le(Array.prototype.slice.call(zn.dataTransfer.items),Sn.uploadFiles,function(Fr){return Ce(Fr,Sn.props.accept)});else{var mn=(0,Mt.Z)(zn.dataTransfer.files).filter(function(Fr){return Ce(Fr,Sn.props.accept)});xr===!1&&(mn=mn.slice(0,1)),Sn.uploadFiles(mn)}},Sn.uploadFiles=function(zn){var xr=(0,Mt.Z)(zn),mn=xr.map(function(Fr){return Fr.uid=pe(),Sn.processFile(Fr,xr)});Promise.all(mn).then(function(Fr){var Qr=Sn.props.onBatchStart;Qr==null||Qr(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){Sn.post(Br)})})},Sn.processFile=function(){var zn=(0,fe.Z)((0,me.Z)().mark(function xr(mn,Fr){var Qr,Br,bn,Jn,sr,Sr,mr,Kr,ri;return(0,me.Z)().wrap(function(br){for(;;)switch(br.prev=br.next){case 0:if(Qr=Sn.props.beforeUpload,Br=mn,!Qr){br.next=14;break}return br.prev=3,br.next=6,Qr(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=Sn.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=Sn.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?Kr=mr:Kr=new File([mr],mn.name,{type:mn.type}),ri=Kr,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)}}(),Sn.saveFileInput=function(zn){Sn.fileInput=zn},Sn}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(An){var Nn=this,Fn=An.data,zn=An.origin,xr=An.action,mn=An.parsedFile;if(this._isMounted){var Fr=this.props,Qr=Fr.onStart,Br=Fr.customRequest,bn=Fr.name,Jn=Fr.headers,sr=Fr.withCredentials,Sr=Fr.method,mr=zn.uid,Kr=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]}};Qr(zn),this.reqs[mr]=Kr(ri)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(An){var Nn=this.reqs;if(An){var Fn=An.uid?An.uid:An;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 An=this.props,Nn=An.component,Fn=An.prefixCls,zn=An.className,xr=An.disabled,mn=An.id,Fr=An.style,Qr=An.multiple,Br=An.accept,bn=An.capture,Jn=An.children,sr=An.directory,Sr=An.openFileDialogOnClick,mr=An.onMouseEnter,Kr=An.onMouseLeave,ri=(0,Pe.Z)(An,Ne),Rr=ze()((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:Kr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return et.createElement(Nn,(0,je.Z)({},ur,{className:Rr,role:"button",style:Fr}),et.createElement("input",(0,je.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:Qr,onChange:this.onChange},bn!=null?{capture:bn}:{})),Jn)}}]),gn}(et.Component),Re=De;function Je(){}var _e=function(an){(0,we.Z)(gn,an);var xn=(0,Me.Z)(gn);function gn(){var Sn;(0,ve.Z)(this,gn);for(var An=arguments.length,Nn=new Array(An),Fn=0;Fn<An;Fn++)Nn[Fn]=arguments[Fn];return Sn=xn.call.apply(xn,[this].concat(Nn)),Sn.uploader=void 0,Sn.saveUploader=function(zn){Sn.uploader=zn},Sn}return(0,ce.Z)(gn,[{key:"abort",value:function(An){this.uploader.abort(An)}},{key:"render",value:function(){return et.createElement(Re,(0,je.Z)({},this.props,{ref:this.saveUploader}))}}]),gn}(et.Component);_e.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Je,onError:Je,onSuccess:Je,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ve=_e,Qe=Ve,ut=Ge(18929),dt=Ge(4676),St=Ge(36355),qe=Ge(1684),it=Ge(9763),pt=Ge(31724),wt={icon:function(xn,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:xn}}]}},name:"file",theme:"twotone"},xt=wt,ft=Ge(7657),mt=function(xn,gn){return et.createElement(ft.Z,(0,je.Z)({},xn,{ref:gn,icon:xt}))},yt=et.forwardRef(mt),It=yt,kt=Ge(58617),Ut={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"},Pt=Ut,Ct=function(xn,gn){return et.createElement(ft.Z,(0,je.Z)({},xn,{ref:gn,icon:Pt}))},st=et.forwardRef(Ct),bt=st,at={icon:function(xn,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:xn}},{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:xn}}]}},name:"picture",theme:"twotone"},ct=at,Lt=function(xn,gn){return et.createElement(ft.Z,(0,je.Z)({},xn,{ref:gn,icon:ct}))},vt=et.forwardRef(Lt),nt=vt,Xe=Ge(77900),Ue=Ge(56762),$e=Ge(62892),tt=Ge(92343),We=Ge(3113);function Be(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 Te(an,xn){const gn=(0,Mt.Z)(xn),Sn=gn.findIndex(An=>{let{uid:Nn}=An;return Nn===an.uid});return Sn===-1?gn.push(an):gn[Sn]=an,gn}function Ke(an,xn){const gn=an.uid!==void 0?"uid":"name";return xn.filter(Sn=>Sn[gn]===an[gn])[0]}function gt(an,xn){const gn=an.uid!==void 0?"uid":"name",Sn=xn.filter(An=>An[gn]!==an[gn]);return Sn.length===xn.length?null:Sn}const Ze=function(){const xn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Sn=xn[xn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Sn)||[""])[0]},Ot=an=>an.indexOf("image/")===0,zt=an=>{if(an.type&&!an.thumbUrl)return Ot(an.type);const xn=an.thumbUrl||an.url||"",gn=Ze(xn);return/^data:image\//.test(xn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(gn)?!0:!(/^data:/.test(xn)||gn)},Yt=200;function jt(an){return new Promise(xn=>{if(!an.type||!Ot(an.type)){xn("");return}const gn=document.createElement("canvas");gn.width=Yt,gn.height=Yt,gn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yt}px; height: ${Yt}px; z-index: 9999; display: none;`,document.body.appendChild(gn);const Sn=gn.getContext("2d"),An=new Image;if(An.onload=()=>{const{width:Nn,height:Fn}=An;let zn=Yt,xr=Yt,mn=0,Fr=0;Nn>Fn?(xr=Fn*(Yt/Nn),Fr=-(xr-zn)/2):(zn=Nn*(Yt/Fn),mn=-(zn-xr)/2),Sn.drawImage(An,mn,Fr,zn,xr);const Qr=gn.toDataURL();document.body.removeChild(gn),window.URL.revokeObjectURL(An.src),xn(Qr)},An.crossOrigin="anonymous",an.type.startsWith("image/svg+xml")){const Nn=new FileReader;Nn.onload=()=>{Nn.result&&(An.src=Nn.result)},Nn.readAsDataURL(an)}else if(an.type.startsWith("image/gif")){const Nn=new FileReader;Nn.onload=()=>{Nn.result&&xn(Nn.result)},Nn.readAsDataURL(an)}else An.src=window.URL.createObjectURL(an)})}var Kt=Ge(26227),en=Ge(41464),cn=Ge(15277),yn=Ge(93948),On=Ge(6848),er=et.forwardRef((an,xn)=>{let{prefixCls:gn,className:Sn,style:An,locale:Nn,listType:Fn,file:zn,items:xr,progress:mn,iconRender:Fr,actionIconRender:Qr,itemRender:Br,isImgUrl:bn,showPreviewIcon:Jn,showRemoveIcon:sr,showDownloadIcon:Sr,previewIcon:mr,removeIcon:Kr,downloadIcon:ri,onPreview:Rr,onDownload:br,onClose:ur}=an;var vn,cr;const{status:wn}=zn,[zr,$i]=et.useState(wn);et.useEffect(()=>{wn!=="removed"&&$i(wn)},[wn]);const[Mi,yo]=et.useState(!1);et.useEffect(()=>{const To=setTimeout(()=>{yo(!0)},300);return()=>{clearTimeout(To)}},[]);const no=Fr(zn);let Wr=et.createElement("div",{className:`${gn}-icon`},no);if(Fn==="picture"||Fn==="picture-card"||Fn==="picture-circle")if(zr==="uploading"||!zn.thumbUrl&&!zn.url){const To=ze()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:zr!=="uploading"});Wr=et.createElement("div",{className:To},no)}else{const To=bn!=null&&bn(zn)?et.createElement("img",{src:zn.thumbUrl||zn.url,alt:zn.name,className:`${gn}-list-item-image`,crossOrigin:zn.crossOrigin}):no,Vr=ze()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:bn&&!bn(zn)});Wr=et.createElement("a",{className:Vr,onClick:Zr=>Rr(zn,Zr),href:zn.url||zn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},To)}const Hr=ze()(`${gn}-list-item`,`${gn}-list-item-${zr}`),wi=typeof zn.linkProps=="string"?JSON.parse(zn.linkProps):zn.linkProps,vi=sr?Qr((typeof Kr=="function"?Kr(zn):Kr)||et.createElement(Kt.Z,null),()=>ur(zn),gn,Nn.removeFile):null,fr=Sr&&zr==="done"?Qr((typeof ri=="function"?ri(zn):ri)||et.createElement(en.Z,null),()=>br(zn),gn,Nn.downloadFile):null,At=Fn!=="picture-card"&&Fn!=="picture-circle"&&et.createElement("span",{key:"download-delete",className:ze()(`${gn}-list-item-actions`,{picture:Fn==="picture"})},fr,vi),Fi=ze()(`${gn}-list-item-name`),Ki=zn.url?[et.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),At]:[et.createElement("span",{key:"view",className:Fi,onClick:To=>Rr(zn,To),title:zn.name},zn.name),At],gi={pointerEvents:"none",opacity:.5},oo=Jn?et.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||et.createElement(cn.Z,null)):null,So=(Fn==="picture-card"||Fn==="picture-circle")&&zr!=="uploading"&&et.createElement("span",{className:`${gn}-list-item-actions`},oo,zr==="done"&&fr,vi),{getPrefixCls:qr}=et.useContext(St.E_),ii=qr(),Oi=et.createElement("div",{className:Hr},Wr,Ki,So,Mi&&et.createElement(Xe.default,{motionName:`${ii}-fade`,visible:zr==="uploading",motionDeadline:2e3},To=>{let{className:Vr}=To;const Zr="percent"in zn?et.createElement(yn.Z,Object.assign({},mn,{type:"line",percent:zn.percent,"aria-label":zn["aria-label"],"aria-labelledby":zn["aria-labelledby"]})):null;return et.createElement("div",{className:ze()(`${gn}-list-item-progress`,Vr)},Zr)})),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"?et.createElement(On.Z,{title:Pi,getPopupContainer:To=>To.parentNode},Oi):Oi;return et.createElement("div",{className:ze()(`${gn}-list-item-container`,Sn),style:An,ref:xn},Br?Br(co,zn,xr,{download:br.bind(null,zn),preview:Rr.bind(null,zn),remove:ur.bind(null,zn)}):co)});const Tr=(an,xn)=>{const{listType:gn="text",previewFile:Sn=jt,onPreview:An,onDownload:Nn,onRemove:Fn,locale:zn,iconRender:xr,isImageUrl:mn=zt,prefixCls:Fr,items:Qr=[],showPreviewIcon:Br=!0,showRemoveIcon:bn=!0,showDownloadIcon:Jn=!1,removeIcon:sr,previewIcon:Sr,downloadIcon:mr,progress:Kr={size:[-1,2],showInfo:!1},appendAction:ri,appendActionVisible:Rr=!0,itemRender:br,disabled:ur}=an,vn=(0,Ue.Z)(),[cr,wn]=et.useState(!1);et.useEffect(()=>{gn!=="picture"&&gn!=="picture-card"&&gn!=="picture-circle"||(Qr||[]).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="",Sn&&Sn(gi.originFileObj).then(oo=>{gi.thumbUrl=oo||"",vn()}))})},[gn,Qr,Sn]),et.useEffect(()=>{wn(!0)},[]);const zr=(gi,oo)=>{if(An)return oo==null||oo.preventDefault(),An(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)?et.createElement(nt,null):et.createElement(It,null);let qr=oo?et.createElement(kt.Z,null):et.createElement(bt,null);return gn==="picture"?qr=oo?et.createElement(kt.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,tt.l$)(gi)&&gi.props.onClick&&gi.props.onClick(Oi)},className:`${So}-list-item-action`,disabled:ur};if((0,tt.l$)(gi)){const Oi=(0,tt.Tm)(gi,Object.assign(Object.assign({},gi.props),{onClick:()=>{}}));return et.createElement(We.ZP,Object.assign({},ii,{icon:Oi}))}return et.createElement(We.ZP,Object.assign({},ii),et.createElement("span",null,gi))};et.useImperativeHandle(xn,()=>({handlePreview:zr,handleDownload:$i}));const{getPrefixCls:Wr}=et.useContext(St.E_),Hr=Wr("upload",Fr),wi=Wr(),vi=ze()(`${Hr}-list`,`${Hr}-list-${gn}`),fr=(0,Mt.Z)(Qr.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=et.useMemo(()=>{const gi=Object.assign({},(0,$e.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)),et.createElement("div",{className:vi},et.createElement(Xe.CSSMotionList,Object.assign({},Fi,{component:!1}),gi=>{let{key:oo,file:So,className:qr,style:ii}=gi;return et.createElement(er,{key:oo,locale:zn,prefixCls:Hr,className:qr,style:ii,file:So,items:Qr,progress:Kr,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&&et.createElement(Xe.default,Object.assign({},Fi,{visible:Rr,forceRender:!0}),gi=>{let{className:oo,style:So}=gi;return(0,tt.Tm)(ri,qr=>({className:ze()(qr.className,oo),style:Object.assign(Object.assign(Object.assign({},So),{pointerEvents:oo?"none":void 0}),qr.style)}))}))};var Nr=et.forwardRef(Tr),kr=Ge(17313),Ur=Ge(8378),Jr=Ge(83116),Mr=Ge(37613),Dr=an=>{const{componentCls:xn,iconCls:gn}=an;return{[`${xn}-wrapper`]:{[`${xn}-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}`,[xn]:{padding:`${an.padding}px 0`},[`${xn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${xn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${xn}-disabled):hover`]:{borderColor:an.colorPrimaryHover},[`p${xn}-drag-icon`]:{marginBottom:an.margin,[gn]:{color:an.colorPrimary,fontSize:an.uploadThumbnailSize}},[`p${xn}-text`]:{margin:`0 0 ${an.marginXXS}px`,color:an.colorTextHeading,fontSize:an.fontSizeLG},[`p${xn}-hint`]:{color:an.colorTextDescription,fontSize:an.fontSize},[`&${xn}-disabled`]:{cursor:"not-allowed",[`p${xn}-drag-icon ${gn},
|
|
|
p${xn}-text,
|
|
|
p${xn}-hint
|
|
|
`]:{color:an.colorTextDisabled}}}}}},Ci=an=>{const{componentCls:xn,antCls:gn,iconCls:Sn,fontSize:An,lineHeight:Nn}=an,Fn=`${xn}-list-item`,zn=`${Fn}-actions`,xr=`${Fn}-action`,mn=Math.round(An*Nn);return{[`${xn}-wrapper`]:{[`${xn}-list`]:Object.assign(Object.assign({},(0,kr.dF)()),{lineHeight:an.lineHeight,[Fn]:{position:"relative",height:an.lineHeight*An,marginTop:an.marginXS,fontSize:An,display:"flex",alignItems:"center",transition:`background-color ${an.motionDurationSlow}`,"&:hover":{backgroundColor:an.controlItemBgHover},[`${Fn}-name`]:Object.assign(Object.assign({},kr.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},[Sn]:{color:an.actionsColor,transition:`all ${an.motionDurationSlow}`},[`&:hover ${Sn}`]:{color:an.colorText}},[`${xn}-icon ${Sn}`]:{color:an.colorTextDescription,fontSize:An},[`${Fn}-progress`]:{position:"absolute",bottom:-an.uploadProgressOffset,width:"100%",paddingInlineStart:An+an.paddingXS,fontSize:An,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Fn}:hover ${xr}`]:{opacity:1,color:an.colorText},[`${Fn}-error`]:{color:an.colorError,[`${Fn}-name, ${xn}-icon ${Sn}`]:{color:an.colorError},[zn]:{[`${Sn}, ${Sn}:hover`]:{color:an.colorError},[xr]:{opacity:1}}},[`${xn}-list-item-container`]:{transition:`opacity ${an.motionDurationSlow}, height ${an.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xi=Ge(93083),pr=Ge(1950);const Pr=new xi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),jr=new xi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var nr=an=>{const{componentCls:xn}=an,gn=`${xn}-animate-inline`;return[{[`${xn}-wrapper`]:{[`${gn}-appear, ${gn}-enter, ${gn}-leave`]:{animationDuration:an.motionDurationSlow,animationTimingFunction:an.motionEaseInOutCirc,animationFillMode:"forwards"},[`${gn}-appear, ${gn}-enter`]:{animationName:Pr},[`${gn}-leave`]:{animationName:jr}}},{[`${xn}-wrapper`]:(0,pr.J$)(an)},Pr,jr]},ar=Ge(93398),nn=Ge(64993);const qt=an=>{const{componentCls:xn,iconCls:gn,uploadThumbnailSize:Sn,uploadProgressOffset:An}=an,Nn=`${xn}-list`,Fn=`${Nn}-item`;return{[`${xn}-wrapper`]:{[`
|
|
|
${Nn}${Nn}-picture,
|
|
|
${Nn}${Nn}-picture-card,
|
|
|
${Nn}${Nn}-picture-circle
|
|
|
`]:{[Fn]:{position:"relative",height:Sn+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({},kr.vS),{width:Sn,height:Sn,lineHeight:`${Sn+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:An,width:`calc(100% - ${an.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Sn+an.paddingXS}},[`${Fn}-error`]:{borderColor:an.colorError,[`${Fn}-thumbnail ${gn}`]:{[`svg path[fill='${ar.blue[0]}']`]:{fill:an.colorErrorBg},[`svg path[fill='${ar.blue.primary}']`]:{fill:an.colorError}}},[`${Fn}-uploading`]:{borderStyle:"dashed",[`${Fn}-name`]:{marginBottom:An}}},[`${Nn}${Nn}-picture-circle ${Fn}`]:{[`&, &::before, ${Fn}-thumbnail`]:{borderRadius:"50%"}}}}},Tt=an=>{const{componentCls:xn,iconCls:gn,fontSizeLG:Sn,colorTextLightSolid:An}=an,Nn=`${xn}-list`,Fn=`${Nn}-item`,zn=an.uploadPicCardSize;return{[`
|
|
|
${xn}-wrapper${xn}-picture-card-wrapper,
|
|
|
${xn}-wrapper${xn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,kr.dF)()),{display:"inline-block",width:"100%",[`${xn}${xn}-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}`,[`> ${xn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${xn}-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:Sn,margin:`0 ${an.marginXXS}px`,fontSize:Sn,cursor:"pointer",transition:`all ${an.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Fn}-actions, ${Fn}-actions:hover`]:{[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{color:new nn.C(An).setAlpha(.65).toRgbString(),"&:hover":{color:An}}},[`${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}}}),[`${xn}-wrapper${xn}-picture-circle-wrapper`]:{[`${xn}${xn}-select`]:{borderRadius:"50%"}}}};var Cn=an=>{const{componentCls:xn}=an;return{[`${xn}-rtl`]:{direction:"rtl"}}};const Xt=an=>{const{componentCls:xn,colorTextDisabled:gn}=an;return{[`${xn}-wrapper`]:Object.assign(Object.assign({},(0,kr.Wf)(an)),{[xn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${xn}-select`]:{display:"inline-block"},[`${xn}-disabled`]:{color:gn,cursor:"not-allowed"}})}};var Rt=(0,Jr.Z)("Upload",an=>{const{fontSizeHeading3:xn,fontSize:gn,lineHeight:Sn,lineWidth:An,controlHeightLG:Nn}=an,Fn=Math.round(gn*Sn),zn=(0,Mr.TS)(an,{uploadThumbnailSize:xn*2,uploadProgressOffset:Fn/2+An,uploadPicCardSize:Nn*2.55});return[Xt(zn),Dr(zn),qt(zn),Tt(zn),Ci(zn),nr(zn),Cn(zn),(0,Ur.Z)(zn)]},an=>({actionsColor:an.colorTextDescription})),fn=function(an,xn,gn,Sn){function An(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(Sn.next(Fr))}catch(Qr){Fn(Qr)}}function xr(Fr){try{mn(Sn.throw(Fr))}catch(Qr){Fn(Qr)}}function mn(Fr){Fr.done?Nn(Fr.value):An(Fr.value).then(zn,xr)}mn((Sn=Sn.apply(an,xn||[])).next())})};const un=`__LIST_IGNORE_${Date.now()}__`,Gn=(an,xn)=>{const{fileList:gn,defaultFileList:Sn,onRemove:An,showUploadList:Nn=!0,listType:Fn="text",onPreview:zn,onDownload:xr,onChange:mn,onDrop:Fr,previewFile:Qr,disabled:Br,locale:bn,iconRender:Jn,isImageUrl:sr,progress:Sr,prefixCls:mr,className:Kr,type:ri="select",children:Rr,style:br,itemRender:ur,maxCount:vn,data:cr={},multiple:wn=!1,action:zr="",accept:$i="",supportServerRender:Mi=!0,rootClassName:yo}=an,no=et.useContext(qe.Z),Wr=Br!=null?Br:no,[Hr,wi]=(0,ut.Z)(Sn||[],{value:gn,postState:xo=>xo!=null?xo:[]}),[vi,fr]=et.useState("drop"),At=et.useRef(null);et.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,Mt.Z)(eo),Yi=!1;vn===1?jo=jo.slice(-1):vn&&(Yi=jo.length>vn,jo=jo.slice(0,vn)),(0,dt.flushSync)(()=>{wi(jo)});const No={file:xo,fileList:jo};ga&&(No.event=ga),(!Yi||jo.some(xs=>xs.uid===xo.uid))&&(0,dt.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=>Be(Yi.file));let jo=(0,Mt.Z)(Hr);ga.forEach(Yi=>{jo=Te(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(!Ke(eo,Hr))return;const jo=Be(eo);jo.status="done",jo.percent=100,jo.response=xo,jo.xhr=ga;const Yi=Te(jo,Hr);Fi(jo,Yi)},So=(xo,eo)=>{if(!Ke(eo,Hr))return;const ga=Be(eo);ga.status="uploading",ga.percent=xo.percent;const jo=Te(ga,Hr);Fi(ga,jo,xo)},qr=(xo,eo,ga)=>{if(!Ke(ga,Hr))return;const jo=Be(ga);jo.error=xo,jo.response=eo,jo.status="error";const Yi=Te(jo,Hr);Fi(jo,Yi)},ii=xo=>{let eo;Promise.resolve(typeof An=="function"?An(xo):An).then(ga=>{var jo;if(ga===!1)return;const Yi=gt(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=At.current)===null||jo===void 0||jo.abort(eo),Fi(eo,Yi))})},Oi=xo=>{fr(xo.type),xo.type==="drop"&&(Fr==null||Fr(xo))};et.useImperativeHandle(xn,()=>({onBatchStart:gi,onSuccess:oo,onProgress:So,onError:qr,fileList:Hr,upload:At.current}));const{getPrefixCls:Pi,direction:co,upload:To}=et.useContext(St.E_),Vr=Pi("upload",mr),Zr=Object.assign(Object.assign({onBatchStart:gi,onError:qr,onProgress:So,onSuccess:oo},an),{data:cr,multiple:wn,action:zr,accept:$i,supportServerRender:Mi,prefixCls:Vr,disabled:Wr,beforeUpload:Ki,onChange:void 0});delete Zr.className,delete Zr.style,(!Rr||Wr)&&delete Zr.id;const[Yn,ci]=Rt(Vr),[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?et.createElement(Nr,{prefixCls:Vr,listType:Fn,items:Hr,previewFile:Qr,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=ze()(`${Vr}-wrapper`,Kr,yo,ci,To==null?void 0:To.className,{[`${Vr}-rtl`]:co==="rtl",[`${Vr}-picture-card-wrapper`]:Fn==="picture-card",[`${Vr}-picture-circle-wrapper`]:Fn==="picture-circle"}),Ln=Object.assign(Object.assign({},To==null?void 0:To.style),br);if(ri==="drag"){const xo=ze()(ci,Vr,`${Vr}-drag`,{[`${Vr}-drag-uploading`]:Hr.some(eo=>eo.status==="uploading"),[`${Vr}-drag-hover`]:vi==="dragover",[`${Vr}-disabled`]:Wr,[`${Vr}-rtl`]:co==="rtl"});return Yn(et.createElement("span",{className:fs},et.createElement("div",{className:xo,style:Ln,onDrop:Oi,onDragOver:Oi,onDragLeave:Oi},et.createElement(Qe,Object.assign({},Zr,{ref:At,className:`${Vr}-btn`}),et.createElement("div",{className:`${Vr}-drag-container`},Rr))),Da()))}const Fa=ze()(Vr,`${Vr}-select`,{[`${Vr}-disabled`]:Wr}),el=(xo=>et.createElement("div",{className:Fa,style:xo},et.createElement(Qe,Object.assign({},Zr,{ref:At}))))(Rr?void 0:{display:"none"});return Yn(Fn==="picture-card"||Fn==="picture-circle"?et.createElement("span",{className:fs},Da(el,!!Rr)):et.createElement("span",{className:fs},el,Da()))};var $t=et.forwardRef(Gn),kn=function(an,xn){var gn={};for(var Sn in an)Object.prototype.hasOwnProperty.call(an,Sn)&&xn.indexOf(Sn)<0&&(gn[Sn]=an[Sn]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,Sn=Object.getOwnPropertySymbols(an);An<Sn.length;An++)xn.indexOf(Sn[An])<0&&Object.prototype.propertyIsEnumerable.call(an,Sn[An])&&(gn[Sn[An]]=an[Sn[An]]);return gn},lr=et.forwardRef((an,xn)=>{var{style:gn,height:Sn}=an,An=kn(an,["style","height"]);return et.createElement($t,Object.assign({ref:xn},An,{type:"drag",style:Object.assign(Object.assign({},gn),{height:Sn})}))});const on=$t;on.Dragger=lr,on.LIST_IGNORE=un;var Mn=on},99498:function(_n,Pn,Ge){(function(et){et(Ge(89780))})(function(et){et.defineOption("placeholder","",function(we,Me,Se){var Pe=Se&&Se!=et.Init;if(Me&&!Pe)we.on("blur",je),we.on("change",ve),we.on("swapDoc",ve),et.on(we.getInputField(),"compositionupdate",we.state.placeholderCompose=function(){ze(we)}),ve(we);else if(!Me&&Pe){we.off("blur",je),we.off("change",ve),we.off("swapDoc",ve),et.off(we.getInputField(),"compositionupdate",we.state.placeholderCompose),Mt(we);var me=we.getWrapperElement();me.className=me.className.replace(" CodeMirror-empty","")}Me&&!we.hasFocus()&&je(we)});function Mt(we){we.state.placeholder&&(we.state.placeholder.parentNode.removeChild(we.state.placeholder),we.state.placeholder=null)}function oe(we){Mt(we);var Me=we.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=we.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var Se=we.getOption("placeholder");typeof Se=="string"&&(Se=document.createTextNode(Se)),Me.appendChild(Se),we.display.lineSpace.insertBefore(Me,we.display.lineSpace.firstChild)}function ze(we){setTimeout(function(){var Me=!1,Se=we.getInputField();Se.nodeName=="TEXTAREA"?Me=!Se.value:we.lineCount()==1&&(Me=!/[^\u200b]/.test(Se.querySelector(".CodeMirror-line").textContent)),Me?oe(we):Mt(we)},20)}function je(we){ce(we)&&oe(we)}function ve(we){var Me=we.getWrapperElement(),Se=ce(we);Me.className=Me.className.replace(" CodeMirror-empty","")+(Se?" CodeMirror-empty":""),Se?oe(we):Mt(we)}function ce(we){return we.lineCount()===1&&we.getLine(0)===""}})},25717:function(_n,Pn,Ge){(function(et){et(Ge(89780))})(function(et){var Mt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=et.Pos;et.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=et.Init&&(z.removeKeyMap(je),z.state.closeBrackets=null),ee&&(ve(ze(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(je))});function ze(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:Mt[ee]}var je={Backspace:Me,Enter:Se};function ve(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";je[re]||(je[re]=ce(ae))}}ve(Mt.pairs+"`");function ce(z){return function(ee){return me(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 Me(z){var ee=we(z);if(!ee||z.getOption("disableInput"))return et.Pass;for(var ae=ze(ee,"pairs"),re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return et.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return et.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&&ze(ee,"explode");if(!ae||z.getOption("disableInput"))return et.Pass;for(var re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return et.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return et.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 Pe(z){var ee=et.cmpPos(z.anchor,z.head)>0;return{anchor:new oe(z.anchor.line,z.anchor.ch+(ee?-1:1)),head:new oe(z.head.line,z.head.ch+(ee?1:-1))}}function me(z,ee){var ae=we(z);if(!ae||z.getOption("disableInput"))return et.Pass;var re=ze(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return et.Pass;for(var ue=ze(ae,"closeBefore"),pe=ze(ae,"triples"),be=re.charAt(le+1)==ee,Ce=z.listSelections(),Ie=le%2==0,Oe,Le=0;Le<Ce.length;Le++){var Ne=Ce[Le],De=Ne.head,Re,Je=z.getRange(De,oe(De.line,De.ch+1));if(Ie&&!Ne.empty())Re="surround";else if((be||!Ie)&&Je==ee)be&&fe(z,De)?Re="both":pe.indexOf(ee)>=0&&z.getRange(De,oe(De.line,De.ch+3))==ee+ee+ee?Re="skipThree":Re="skip";else if(be&&De.ch>1&&pe.indexOf(ee)>=0&&z.getRange(oe(De.line,De.ch-2),De)==ee+ee){if(De.ch>2&&/\bstring/.test(z.getTokenTypeAt(oe(De.line,De.ch-2))))return et.Pass;Re="addFour"}else if(be){var _e=De.ch==0?" ":z.getRange(oe(De.line,De.ch-1),De);if(!et.isWordChar(Je)&&_e!=ee&&!et.isWordChar(_e))Re="both";else return et.Pass}else if(Ie&&(Je.length===0||/\s/.test(Je)||ue.indexOf(Je)>-1))Re="both";else return et.Pass;if(!Oe)Oe=Re;else if(Oe!=Re)return et.Pass}var Ve=le%2?re.charAt(le-1):ee,Qe=le%2?ee:re.charAt(le+1);z.operation(function(){if(Oe=="skip")z.execCommand("goCharRight");else if(Oe=="skipThree")for(var ut=0;ut<3;ut++)z.execCommand("goCharRight");else if(Oe=="surround"){for(var dt=z.getSelections(),ut=0;ut<dt.length;ut++)dt[ut]=Ve+dt[ut]+Qe;z.replaceSelections(dt,"around"),dt=z.listSelections().slice();for(var ut=0;ut<dt.length;ut++)dt[ut]=Pe(dt[ut]);z.setSelections(dt)}else Oe=="both"?(z.replaceSelection(Ve+Qe,null),z.triggerElectric(Ve+Qe),z.execCommand("goCharLeft")):Oe=="addFour"&&(z.replaceSelection(Ve+Ve+Ve+Ve,"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(_n,Pn,Ge){(function(et){et(Ge(89780),Ge(32855))})(function(et){et.defineOption("autoCloseTags",!1,function(Me,Se,Pe){if(Pe!=et.Init&&Pe&&Me.removeKeyMap("autoCloseTags"),!!Se){var me={name:"autoCloseTags"};(typeof Se!="object"||Se.whenClosing!==!1)&&(me["'/'"]=function(xe){return ve(xe)}),(typeof Se!="object"||Se.whenOpening!==!1)&&(me["'>'"]=function(xe){return ze(xe)}),Me.addKeyMap(me)}});var Mt=["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 ze(Me){if(Me.getOption("disableInput"))return et.Pass;for(var Se=Me.listSelections(),Pe=[],me=Me.getOption("autoCloseTags"),xe=0;xe<Se.length;xe++){if(!Se[xe].empty())return et.Pass;var fe=Se[xe].head,z=Me.getTokenAt(fe),ee=et.innerMode(Me.getMode(),z.state),ae=ee.state,re=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ae),le=re&&re.name;if(!le)return et.Pass;var ue=ee.mode.configuration=="html",pe=typeof me=="object"&&me.dontCloseTags||ue&&Mt,be=typeof me=="object"&&me.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(Me,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,fe,!0))return et.Pass;var Ie=typeof me=="object"&&me.emptyTags;if(Ie&&ce(Ie,le)>-1){Pe[xe]={text:"/>",newPos:et.Pos(fe.line,fe.ch+2)};continue}var Oe=be&&ce(be,Ce)>-1;Pe[xe]={indent:Oe,text:">"+(Oe?`
|
|
|
|
|
|
`:"")+"</"+le+">",newPos:Oe?et.Pos(fe.line+1,0):et.Pos(fe.line,fe.ch+1)}}for(var Le=typeof me=="object"&&me.dontIndentOnAutoClose,xe=Se.length-1;xe>=0;xe--){var Ne=Pe[xe];Me.replaceRange(Ne.text,Se[xe].head,Se[xe].anchor,"+insert");var De=Me.listSelections().slice(0);De[xe]={head:Ne.newPos,anchor:Ne.newPos},Me.setSelections(De),!Le&&Ne.indent&&(Me.indentLine(Ne.newPos.line,null,!0),Me.indentLine(Ne.newPos.line+1,null,!0))}}function je(Me,Se){for(var Pe=Me.listSelections(),me=[],xe=Se?"/":"</",fe=Me.getOption("autoCloseTags"),z=typeof fe=="object"&&fe.dontIndentOnSlash,ee=0;ee<Pe.length;ee++){if(!Pe[ee].empty())return et.Pass;var ae=Pe[ee].head,re=Me.getTokenAt(ae),le=et.innerMode(Me.getMode(),re.state),ue=le.state;if(Se&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=ae.ch-1))return et.Pass;var pe,be=le.mode.name!="xml"&&Me.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(Me,Ce,Ce[Ce.length-1],ae))return et.Pass;pe=xe+Ce[Ce.length-1]}Me.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),me[ee]=pe}if(Me.replaceSelections(me),Pe=Me.listSelections(),!z)for(var ee=0;ee<Pe.length;ee++)(ee==Pe.length-1||Pe[ee].head.line<Pe[ee+1].head.line)&&Me.indentLine(Pe[ee].head.line)}function ve(Me){return Me.getOption("disableInput")?et.Pass:je(Me,!0)}et.commands.closeTag=function(Me){return je(Me)};function ce(Me,Se){if(Me.indexOf)return Me.indexOf(Se);for(var Pe=0,me=Me.length;Pe<me;++Pe)if(Me[Pe]==Se)return Pe;return-1}function we(Me,Se,Pe,me,xe){if(!et.scanForClosingTag)return!1;var fe=Math.min(Me.lastLine()+1,me.line+500),z=et.scanForClosingTag(Me,me,null,fe);if(!z||z.tag!=Pe)return!1;for(var ee=xe?1:0,ae=Se.length-1;ae>=0&&Se[ae]==Pe;ae--)++ee;me=z.to;for(var ae=1;ae<ee;ae++){var re=et.scanForClosingTag(Me,me,null,fe);if(!re||re.tag!=Pe)return!1;me=re.to}return!0}})},32855:function(_n,Pn,Ge){(function(et){et(Ge(89780))})(function(et){"use strict";var Mt=et.Pos;function oe(ae,re){return ae.line-re.line||ae.ch-re.ch}var ze="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",je=ze+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ve=new RegExp("<(/?)(["+ze+"]["+je+"]*)","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(Mt(ae.line,re));return le&&/\btag\b/.test(le)}function Me(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 Pe(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Me(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 me(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}ve.lastIndex=re,ae.ch=re;var le=ve.exec(ae.text);if(le&&le.index==re)return le}}function xe(ae){for(;;){ve.lastIndex=ae.ch;var re=ve.exec(ae.text);if(!re){if(Me(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=Pe(ae)))return;if(pe!="selfClose")if(ue[1]){for(var Ie=le.length-1;Ie>=0;--Ie)if(le[Ie]==ue[2]){le.length=Ie;break}if(Ie<0&&(!re||re==ue[2]))return{tag:ue[2],from:Mt(be,Ce),to:Mt(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"){me(ae);continue}var pe=ae.line,be=ae.ch,Ce=me(ae);if(!Ce)return;if(Ce[1])le.push(Ce[2]);else{for(var Ie=le.length-1;Ie>=0;--Ie)if(le[Ie]==Ce[2]){le.length=Ie;break}if(Ie<0&&(!re||re==Ce[2]))return{tag:Ce[2],from:Mt(ae.line,ae.ch),to:Mt(pe,be)}}}}et.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=Pe(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var be=Mt(le.line,le.ch),Ce=z(le,ue[2]);return Ce&&oe(Ce.from,be)>0?{from:be,to:Ce.from}:null}}}),et.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=Pe(ue),be=pe&&Mt(ue.line,ue.ch),Ce=pe&&me(ue);if(!(!pe||!Ce||oe(ue,re)>0)){var Ie={from:Mt(ue.line,ue.ch),to:be,tag:Ce[2]};return pe=="selfClose"?{open:Ie,close:null,at:"open"}:Ce[1]?{open:ee(ue,Ce[2]),close:Ie,at:"close"}:(ue=new ce(ae,be.line,be.ch,le),{open:Ie,close:z(ue,Ce[2]),at:"open"})}}},et.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),Ie=z(Ce,be.tag);if(Ie)return{open:be,close:Ie}}},et.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(_n){(function(Pn,Ge){_n.exports=Ge()})(this,function(){"use strict";var Pn=navigator.userAgent,Ge=navigator.platform,et=/gecko\/\d/i.test(Pn),Mt=/MSIE \d/.test(Pn),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pn),ze=/Edge\/(\d+)/.exec(Pn),je=Mt||oe||ze,ve=je&&(Mt?document.documentMode||6:+(ze||oe)[1]),ce=!ze&&/WebKit\//.test(Pn),we=ce&&/Qt\/\d+\.\d+/.test(Pn),Me=!ze&&/Chrome\//.test(Pn),Se=/Opera\//.test(Pn),Pe=/Apple Computer/.test(navigator.vendor),me=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Pn),xe=/PhantomJS/.test(Pn),fe=!ze&&/AppleWebKit/.test(Pn)&&/Mobile\/\w+/.test(Pn),z=/Android/.test(Pn),ee=fe||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Pn),ae=fe||/Mac/.test(Ge),re=/\bCrOS\b/.test(Pn),le=/win/i.test(Ge),ue=Se&&Pn.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=et||je&&ve>=9;function Ce(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ie=function(ie,de){var ke=ie.className,Ee=Ce(de).exec(ke);if(Ee){var Fe=ke.slice(Ee.index+Ee[0].length);ie.className=ke.slice(0,Ee.index)+(Fe?Ee[1]+Fe:"")}};function Oe(ie){for(var de=ie.childNodes.length;de>0;--de)ie.removeChild(ie.firstChild);return ie}function Le(ie,de){return Oe(ie).appendChild(de)}function Ne(ie,de,ke,Ee){var Fe=document.createElement(ie);if(ke&&(Fe.className=ke),Ee&&(Fe.style.cssText=Ee),typeof de=="string")Fe.appendChild(document.createTextNode(de));else if(de)for(var lt=0;lt<de.length;++lt)Fe.appendChild(de[lt]);return Fe}function De(ie,de,ke,Ee){var Fe=Ne(ie,de,ke,Ee);return Fe.setAttribute("role","presentation"),Fe}var Re;document.createRange?Re=function(ie,de,ke,Ee){var Fe=document.createRange();return Fe.setEnd(Ee||ie,ke),Fe.setStart(ie,de),Fe}:Re=function(ie,de,ke){var Ee=document.body.createTextRange();try{Ee.moveToElementText(ie.parentNode)}catch(Fe){return Ee}return Ee.collapse(!0),Ee.moveEnd("character",ke),Ee.moveStart("character",de),Ee};function Je(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 _e(){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 Ve(ie,de){var ke=ie.className;Ce(de).test(ke)||(ie.className+=(ke?" ":"")+de)}function Qe(ie,de){for(var ke=ie.split(" "),Ee=0;Ee<ke.length;Ee++)ke[Ee]&&!Ce(ke[Ee]).test(de)&&(de+=" "+ke[Ee]);return de}var ut=function(ie){ie.select()};fe?ut=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:je&&(ut=function(ie){try{ie.select()}catch(de){}});function dt(ie){var de=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,de)}}function St(ie,de,ke){de||(de={});for(var Ee in ie)ie.hasOwnProperty(Ee)&&(ke!==!1||!de.hasOwnProperty(Ee))&&(de[Ee]=ie[Ee]);return de}function qe(ie,de,ke,Ee,Fe){de==null&&(de=ie.search(/[^\s\u00a0]/),de==-1&&(de=ie.length));for(var lt=Ee||0,Et=Fe||0;;){var Bt=ie.indexOf(" ",lt);if(Bt<0||Bt>=de)return Et+(de-lt);Et+=Bt-lt,Et+=ke-Et%ke,lt=Bt+1}}var it=function(){this.id=null,this.f=null,this.time=0,this.handler=dt(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 ke=+new Date+ie;(!this.id||ke<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ke)};function pt(ie,de){for(var ke=0;ke<ie.length;++ke)if(ie[ke]==de)return ke;return-1}var wt=50,xt={toString:function(){return"CodeMirror.Pass"}},ft={scroll:!1},mt={origin:"*mouse"},yt={origin:"+move"};function It(ie,de,ke){for(var Ee=0,Fe=0;;){var lt=ie.indexOf(" ",Ee);lt==-1&&(lt=ie.length);var Et=lt-Ee;if(lt==ie.length||Fe+Et>=de)return Ee+Math.min(Et,de-Fe);if(Fe+=lt-Ee,Fe+=ke-Fe%ke,Ee=lt+1,Fe>=de)return Ee}}var kt=[""];function Ut(ie){for(;kt.length<=ie;)kt.push(Pt(kt)+" ");return kt[ie]}function Pt(ie){return ie[ie.length-1]}function Ct(ie,de){for(var ke=[],Ee=0;Ee<ie.length;Ee++)ke[Ee]=de(ie[Ee],Ee);return ke}function st(ie,de,ke){for(var Ee=0,Fe=ke(de);Ee<ie.length&&ke(ie[Ee])<=Fe;)Ee++;ie.splice(Ee,0,de)}function bt(){}function at(ie,de){var ke;return Object.create?ke=Object.create(ie):(bt.prototype=ie,ke=new bt),de&&St(de,ke),ke}var ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Lt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||ct.test(ie))}function vt(ie,de){return de?de.source.indexOf("\\w")>-1&&Lt(ie)?!0:de.test(ie):Lt(ie)}function nt(ie){for(var de in ie)if(ie.hasOwnProperty(de)&&ie[de])return!1;return!0}var Xe=/[\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 Ue(ie){return ie.charCodeAt(0)>=768&&Xe.test(ie)}function $e(ie,de,ke){for(;(ke<0?de>0:de<ie.length)&&Ue(ie.charAt(de));)de+=ke;return de}function tt(ie,de,ke){for(var Ee=de>ke?-1:1;;){if(de==ke)return de;var Fe=(de+ke)/2,lt=Ee<0?Math.ceil(Fe):Math.floor(Fe);if(lt==de)return ie(lt)?de:ke;ie(lt)?ke=lt:de=lt+Ee}}function We(ie,de,ke,Ee){if(!ie)return Ee(de,ke,"ltr",0);for(var Fe=!1,lt=0;lt<ie.length;++lt){var Et=ie[lt];(Et.from<ke&&Et.to>de||de==ke&&Et.to==de)&&(Ee(Math.max(Et.from,de),Math.min(Et.to,ke),Et.level==1?"rtl":"ltr",lt),Fe=!0)}Fe||Ee(de,ke,"ltr")}var Be=null;function Te(ie,de,ke){var Ee;Be=null;for(var Fe=0;Fe<ie.length;++Fe){var lt=ie[Fe];if(lt.from<de&<.to>de)return Fe;lt.to==de&&(lt.from!=lt.to&&ke=="before"?Ee=Fe:Be=Fe),lt.from==de&&(lt.from!=lt.to&&ke!="before"?Ee=Fe:Be=Fe)}return Ee!=null?Ee:Be}var Ke=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",de="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ke(Zt){return Zt<=247?ie.charAt(Zt):1424<=Zt&&Zt<=1524?"R":1536<=Zt&&Zt<=1785?de.charAt(Zt-1536):1774<=Zt&&Zt<=2220?"r":8192<=Zt&&Zt<=8203?"w":Zt==8204?"b":"L"}var Ee=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Fe=/[stwN]/,lt=/[LRr]/,Et=/[Lb1n]/,Bt=/[1n]/;function Dt(Zt,En,Qt){this.level=Zt,this.from=En,this.to=Qt}return function(Zt,En){var Qt=En=="ltr"?"L":"R";if(Zt.length==0||En=="ltr"&&!Ee.test(Zt))return!1;for(var Hn=Zt.length,Dn=[],gr=0;gr<Hn;++gr)Dn.push(ke(Zt.charCodeAt(gr)));for(var Er=0,_r=Qt;Er<Hn;++Er){var si=Dn[Er];si=="m"?Dn[Er]=_r:_r=si}for(var ki=0,Si=Qt;ki<Hn;++ki){var _i=Dn[ki];_i=="1"&&Si=="r"?Dn[ki]="n":lt.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=Qt;ks<Hn;++ks){var al=Dn[ks];iu=="L"&&al=="1"?Dn[ks]="L":lt.test(al)&&(iu=al)}for(var Ns=0;Ns<Hn;++Ns)if(Fe.test(Dn[Ns])){var oa=void 0;for(oa=Ns+1;oa<Hn&&Fe.test(Dn[oa]);++oa);for(var cs=(Ns?Dn[Ns-1]:Qt)=="L",Gs=(oa<Hn?Dn[oa]:Qt)=="L",sl=cs==Gs?cs?"L":"R":Qt,Vu=Ns;Vu<oa;++Vu)Dn[Vu]=sl;Ns=oa-1}for(var is=[],Lu,ys=0;ys<Hn;)if(Et.test(Dn[ys])){var xf=ys;for(++ys;ys<Hn&&Et.test(Dn[ys]);++ys);is.push(new Dt(0,xf,ys))}else{var mu=ys,ou=is.length,Vl=En=="rtl"?1:0;for(++ys;ys<Hn&&Dn[ys]!="L";++ys);for(var Aa=mu;Aa<ys;)if(Bt.test(Dn[Aa])){mu<Aa&&(is.splice(ou,0,new Dt(1,mu,Aa)),ou+=Vl);var Ws=Aa;for(++Aa;Aa<ys&&Bt.test(Dn[Aa]);++Aa);is.splice(ou,0,new Dt(2,Ws,Aa)),ou+=Vl,mu=Aa}else++Aa;mu<ys&&is.splice(ou,0,new Dt(1,mu,ys))}return En=="ltr"&&(is[0].level==1&&(Lu=Zt.match(/^\s+/))&&(is[0].from=Lu[0].length,is.unshift(new Dt(0,0,Lu[0].length))),Pt(is).level==1&&(Lu=Zt.match(/\s+$/))&&(Pt(is).to-=Lu[0].length,is.push(new Dt(0,Hn-Lu[0].length,Hn)))),En=="rtl"?is.reverse():is}}();function gt(ie,de){var ke=ie.order;return ke==null&&(ke=ie.order=Ke(ie.text,de)),ke}var Ze=[],Ot=function(ie,de,ke){if(ie.addEventListener)ie.addEventListener(de,ke,!1);else if(ie.attachEvent)ie.attachEvent("on"+de,ke);else{var Ee=ie._handlers||(ie._handlers={});Ee[de]=(Ee[de]||Ze).concat(ke)}};function zt(ie,de){return ie._handlers&&ie._handlers[de]||Ze}function Yt(ie,de,ke){if(ie.removeEventListener)ie.removeEventListener(de,ke,!1);else if(ie.detachEvent)ie.detachEvent("on"+de,ke);else{var Ee=ie._handlers,Fe=Ee&&Ee[de];if(Fe){var lt=pt(Fe,ke);lt>-1&&(Ee[de]=Fe.slice(0,lt).concat(Fe.slice(lt+1)))}}}function jt(ie,de){var ke=zt(ie,de);if(ke.length)for(var Ee=Array.prototype.slice.call(arguments,2),Fe=0;Fe<ke.length;++Fe)ke[Fe].apply(null,Ee)}function Kt(ie,de,ke){return typeof de=="string"&&(de={type:de,preventDefault:function(){this.defaultPrevented=!0}}),jt(ie,ke||de.type,ie,de),er(de)||de.codemirrorIgnore}function en(ie){var de=ie._handlers&&ie._handlers.cursorActivity;if(de)for(var ke=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),Ee=0;Ee<de.length;++Ee)pt(ke,de[Ee])==-1&&ke.push(de[Ee])}function cn(ie,de){return zt(ie,de).length>0}function yn(ie){ie.prototype.on=function(de,ke){Ot(this,de,ke)},ie.prototype.off=function(de,ke){Yt(this,de,ke)}}function On(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function or(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function er(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Tr(ie){On(ie),or(ie)}function Kn(ie){return ie.target||ie.srcElement}function Nr(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 kr=function(){if(je&&ve<9)return!1;var ie=Ne("div");return"draggable"in ie||"dragDrop"in ie}(),Ur;function Jr(ie){if(Ur==null){var de=Ne("span","\u200B");Le(ie,Ne("span",[de,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Ur=de.offsetWidth<=1&&de.offsetHeight>2&&!(je&&ve<8))}var ke=Ur?Ne("span","\u200B"):Ne("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ke.setAttribute("cm-text",""),ke}var Mr;function di(ie){if(Mr!=null)return Mr;var de=Le(ie,document.createTextNode("A\u062EA")),ke=Re(de,0,1).getBoundingClientRect(),Ee=Re(de,1,2).getBoundingClientRect();return Oe(ie),!ke||ke.left==ke.right?!1:Mr=Ee.right-ke.right<3}var Dr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var de=0,ke=[],Ee=ie.length;de<=Ee;){var Fe=ie.indexOf(`
|
|
|
`,de);Fe==-1&&(Fe=ie.length);var lt=ie.slice(de,ie.charAt(Fe-1)=="\r"?Fe-1:Fe),Et=lt.indexOf("\r");Et!=-1?(ke.push(lt.slice(0,Et)),de+=Et+1):(ke.push(lt),de=Fe+1)}return ke}: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(ke){}return!de||de.parentElement()!=ie?!1:de.compareEndPoints("StartToEnd",de)!=0},Ci=function(){var ie=Ne("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=Le(ie,Ne("span","x")),ke=de.getBoundingClientRect(),Ee=Re(de,0,1).getBoundingClientRect();return xi=Math.abs(ke.left-Ee.left)>1}var Pr={},jr={};function Li(ie,de){arguments.length>2&&(de.dependencies=Array.prototype.slice.call(arguments,2)),Pr[ie]=de}function nr(ie,de){jr[ie]=de}function ar(ie){if(typeof ie=="string"&&jr.hasOwnProperty(ie))ie=jr[ie];else if(ie&&typeof ie.name=="string"&&jr.hasOwnProperty(ie.name)){var de=jr[ie.name];typeof de=="string"&&(de={name:de}),ie=at(de,ie),ie.name=de.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return ar("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return ar("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function nn(ie,de){de=ar(de);var ke=Pr[de.name];if(!ke)return nn(ie,"text/plain");var Ee=ke(ie,de);if(qt.hasOwnProperty(de.name)){var Fe=qt[de.name];for(var lt in Fe)Fe.hasOwnProperty(lt)&&(Ee.hasOwnProperty(lt)&&(Ee["_"+lt]=Ee[lt]),Ee[lt]=Fe[lt])}if(Ee.name=de.name,de.helperType&&(Ee.helperType=de.helperType),de.modeProps)for(var Et in de.modeProps)Ee[Et]=de.modeProps[Et];return Ee}var qt={};function Tt(ie,de){var ke=qt.hasOwnProperty(ie)?qt[ie]:qt[ie]={};St(de,ke)}function ln(ie,de){if(de===!0)return de;if(ie.copyState)return ie.copyState(de);var ke={};for(var Ee in de){var Fe=de[Ee];Fe instanceof Array&&(Fe=Fe.concat([])),ke[Ee]=Fe}return ke}function Cn(ie,de){for(var ke;ie.innerMode&&(ke=ie.innerMode(de),!(!ke||ke.mode==ie));)de=ke.state,ie=ke.mode;return ke||{mode:ie,state:de}}function Xt(ie,de,ke){return ie.startState?ie.startState(de,ke):!0}var Rt=function(ie,de,ke){this.pos=this.start=0,this.string=ie,this.tabSize=de||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ke};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rt.prototype.eat=function(ie){var de=this.string.charAt(this.pos),ke;if(typeof ie=="string"?ke=de==ie:ke=de&&(ie.test?ie.test(de):ie(de)),ke)return++this.pos,de},Rt.prototype.eatWhile=function(ie){for(var de=this.pos;this.eat(ie););return this.pos>de},Rt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(ie){var de=this.string.indexOf(ie,this.pos);if(de>-1)return this.pos=de,!0},Rt.prototype.backUp=function(ie){this.pos-=ie},Rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.indentation=function(){return qe(this.string,null,this.tabSize)-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.match=function(ie,de,ke){if(typeof ie=="string"){var Ee=function(Et){return ke?Et.toLowerCase():Et},Fe=this.string.substr(this.pos,ie.length);if(Ee(Fe)==Ee(ie))return de!==!1&&(this.pos+=ie.length),!0}else{var lt=this.string.slice(this.pos).match(ie);return lt&<.index>0?null:(lt&&de!==!1&&(this.pos+=lt[0].length),lt)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(ie,de){this.lineStart+=ie;try{return de()}finally{this.lineStart-=ie}},Rt.prototype.lookAhead=function(ie){var de=this.lineOracle;return de&&de.lookAhead(ie)},Rt.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 ke=ie;!ke.lines;)for(var Ee=0;;++Ee){var Fe=ke.children[Ee],lt=Fe.chunkSize();if(de<lt){ke=Fe;break}de-=lt}return ke.lines[de]}function un(ie,de,ke){var Ee=[],Fe=de.line;return ie.iter(de.line,ke.line+1,function(lt){var Et=lt.text;Fe==ke.line&&(Et=Et.slice(0,ke.ch)),Fe==de.line&&(Et=Et.slice(de.ch)),Ee.push(Et),++Fe}),Ee}function Gn(ie,de,ke){var Ee=[];return ie.iter(de,ke,function(Fe){Ee.push(Fe.text)}),Ee}function Xn(ie,de){var ke=de-ie.height;if(ke)for(var Ee=ie;Ee;Ee=Ee.parent)Ee.height+=ke}function $t(ie){if(ie.parent==null)return null;for(var de=ie.parent,ke=pt(de.lines,ie),Ee=de.parent;Ee;de=Ee,Ee=Ee.parent)for(var Fe=0;Ee.children[Fe]!=de;++Fe)ke+=Ee.children[Fe].chunkSize();return ke+de.first}function kn(ie,de){var ke=ie.first;e:do{for(var Ee=0;Ee<ie.children.length;++Ee){var Fe=ie.children[Ee],lt=Fe.height;if(de<lt){ie=Fe;continue e}de-=lt,ke+=Fe.chunkSize()}return ke}while(!ie.lines);for(var Et=0;Et<ie.lines.length;++Et){var Bt=ie.lines[Et],Dt=Bt.height;if(de<Dt)break;de-=Dt}return ke+Et}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,ke){if(ke===void 0&&(ke=null),!(this instanceof on))return new on(ie,de,ke);this.line=ie,this.ch=de,this.sticky=ke}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 xn(ie){return on(ie.line,ie.ch)}function gn(ie,de){return Mn(ie,de)<0?de:ie}function Sn(ie,de){return Mn(ie,de)<0?ie:de}function An(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 ke=ie.first+ie.size-1;return de.line>ke?on(ke,fn(ie,ke).text.length):Fn(de,fn(ie,de.line).text.length)}function Fn(ie,de){var ke=ie.ch;return ke==null||ke>de?on(ie.line,de):ke<0?on(ie.line,0):ie}function zn(ie,de){for(var ke=[],Ee=0;Ee<de.length;Ee++)ke[Ee]=Nn(ie,de[Ee]);return ke}var xr=function(ie,de){this.state=ie,this.lookAhead=de},mn=function(ie,de,ke,Ee){this.state=de,this.doc=ie,this.line=ke,this.maxLookAhead=Ee||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,ke){return de instanceof xr?new mn(ie,ln(ie.mode,de.state),ke,de.lookAhead):new mn(ie,ln(ie.mode,de),ke)},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,ke,Ee){var Fe=[ie.state.modeGen],lt={};ri(ie,de.text,ie.doc.mode,ke,function(Zt,En){return Fe.push(Zt,En)},lt,Ee);for(var Et=ke.state,Bt=function(Zt){ke.baseTokens=Fe;var En=ie.state.overlays[Zt],Qt=1,Hn=0;ke.state=!0,ri(ie,de.text,En.mode,ke,function(Dn,gr){for(var Er=Qt;Hn<Dn;){var _r=Fe[Qt];_r>Dn&&Fe.splice(Qt,1,Dn,Fe[Qt+1],_r),Qt+=2,Hn=Math.min(Dn,_r)}if(gr)if(En.opaque)Fe.splice(Er,Qt-Er,Dn,"overlay "+gr),Qt=Er+2;else for(;Er<Qt;Er+=2){var si=Fe[Er+1];Fe[Er+1]=(si?si+" ":"")+"overlay "+gr}},lt),ke.state=Et,ke.baseTokens=null,ke.baseTokenPos=1},Dt=0;Dt<ie.state.overlays.length;++Dt)Bt(Dt);return{styles:Fe,classes:lt.bgClass||lt.textClass?lt:null}}function Qr(ie,de,ke){if(!de.styles||de.styles[0]!=ie.state.modeGen){var Ee=Br(ie,$t(de)),Fe=de.text.length>ie.options.maxHighlightLength&&ln(ie.doc.mode,Ee.state),lt=Fr(ie,de,Ee);Fe&&(Ee.state=Fe),de.stateAfter=Ee.save(!Fe),de.styles=lt.styles,lt.classes?de.styleClasses=lt.classes:de.styleClasses&&(de.styleClasses=null),ke===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return de.styles}function Br(ie,de,ke){var Ee=ie.doc,Fe=ie.display;if(!Ee.mode.startState)return new mn(Ee,!0,de);var lt=Rr(ie,de,ke),Et=lt>Ee.first&&fn(Ee,lt-1).stateAfter,Bt=Et?mn.fromSaved(Ee,Et,lt):new mn(Ee,Xt(Ee.mode),lt);return Ee.iter(lt,de,function(Dt){bn(ie,Dt.text,Bt);var Zt=Bt.line;Dt.stateAfter=Zt==de-1||Zt%5==0||Zt>=Fe.viewFrom&&Zt<Fe.viewTo?Bt.save():null,Bt.nextLine()}),ke&&(Ee.modeFrontier=Bt.line),Bt}function bn(ie,de,ke,Ee){var Fe=ie.doc.mode,lt=new Rt(de,ie.options.tabSize,ke);for(lt.start=lt.pos=Ee||0,de==""&&Jn(Fe,ke.state);!lt.eol();)sr(Fe,lt,ke.state),lt.start=lt.pos}function Jn(ie,de){if(ie.blankLine)return ie.blankLine(de);if(ie.innerMode){var ke=Cn(ie,de);if(ke.mode.blankLine)return ke.mode.blankLine(ke.state)}}function sr(ie,de,ke,Ee){for(var Fe=0;Fe<10;Fe++){Ee&&(Ee[0]=Cn(ie,ke).mode);var lt=ie.token(de,ke);if(de.pos>de.start)return lt}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Sr=function(ie,de,ke){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=de||null,this.state=ke};function mr(ie,de,ke,Ee){var Fe=ie.doc,lt=Fe.mode,Et;de=Nn(Fe,de);var Bt=fn(Fe,de.line),Dt=Br(ie,de.line,ke),Zt=new Rt(Bt.text,ie.options.tabSize,Dt),En;for(Ee&&(En=[]);(Ee||Zt.pos<de.ch)&&!Zt.eol();)Zt.start=Zt.pos,Et=sr(lt,Zt,Dt.state),Ee&&En.push(new Sr(Zt,Et,ln(Fe.mode,Dt.state)));return Ee?En:new Sr(Zt,Et,Dt.state)}function Kr(ie,de){if(ie)for(;;){var ke=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ke)break;ie=ie.slice(0,ke.index)+ie.slice(ke.index+ke[0].length);var Ee=ke[1]?"bgClass":"textClass";de[Ee]==null?de[Ee]=ke[2]:new RegExp("(?:^|\\s)"+ke[2]+"(?:$|\\s)").test(de[Ee])||(de[Ee]+=" "+ke[2])}return ie}function ri(ie,de,ke,Ee,Fe,lt,Et){var Bt=ke.flattenSpans;Bt==null&&(Bt=ie.options.flattenSpans);var Dt=0,Zt=null,En=new Rt(de,ie.options.tabSize,Ee),Qt,Hn=ie.options.addModeClass&&[null];for(de==""&&Kr(Jn(ke,Ee.state),lt);!En.eol();){if(En.pos>ie.options.maxHighlightLength?(Bt=!1,Et&&bn(ie,de,Ee,En.pos),En.pos=de.length,Qt=null):Qt=Kr(sr(ke,En,Ee.state,Hn),lt),Hn){var Dn=Hn[0].name;Dn&&(Qt="m-"+(Qt?Dn+" "+Qt:Dn))}if(!Bt||Zt!=Qt){for(;Dt<En.start;)Dt=Math.min(En.start,Dt+5e3),Fe(Dt,Zt);Zt=Qt}En.start=En.pos}for(;Dt<En.pos;){var gr=Math.min(En.pos,Dt+5e3);Fe(gr,Zt),Dt=gr}}function Rr(ie,de,ke){for(var Ee,Fe,lt=ie.doc,Et=ke?-1:de-(ie.doc.mode.innerMode?1e3:100),Bt=de;Bt>Et;--Bt){if(Bt<=lt.first)return lt.first;var Dt=fn(lt,Bt-1),Zt=Dt.stateAfter;if(Zt&&(!ke||Bt+(Zt instanceof xr?Zt.lookAhead:0)<=lt.modeFrontier))return Bt;var En=qe(Dt.text,null,ie.options.tabSize);(Fe==null||Ee>En)&&(Fe=Bt-1,Ee=En)}return Fe}function br(ie,de){if(ie.modeFrontier=Math.min(ie.modeFrontier,de),!(ie.highlightFrontier<de-10)){for(var ke=ie.first,Ee=de-1;Ee>ke;Ee--){var Fe=fn(ie,Ee).stateAfter;if(Fe&&(!(Fe instanceof xr)||Ee+Fe.lookAhead<de)){ke=Ee+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ke)}}var ur=!1,vn=!1;function cr(){ur=!0}function wn(){vn=!0}function zr(ie,de,ke){this.marker=ie,this.from=de,this.to=ke}function $i(ie,de){if(ie)for(var ke=0;ke<ie.length;++ke){var Ee=ie[ke];if(Ee.marker==de)return Ee}}function Mi(ie,de){for(var ke,Ee=0;Ee<ie.length;++Ee)ie[Ee]!=de&&(ke||(ke=[])).push(ie[Ee]);return ke}function yo(ie,de){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([de]):[de],de.marker.attachLine(ie)}function no(ie,de,ke){var Ee;if(ie)for(var Fe=0;Fe<ie.length;++Fe){var lt=ie[Fe],Et=lt.marker,Bt=lt.from==null||(Et.inclusiveLeft?lt.from<=de:lt.from<de);if(Bt||lt.from==de&&Et.type=="bookmark"&&(!ke||!lt.marker.insertLeft)){var Dt=lt.to==null||(Et.inclusiveRight?lt.to>=de:lt.to>de);(Ee||(Ee=[])).push(new zr(Et,lt.from,Dt?null:lt.to))}}return Ee}function Wr(ie,de,ke){var Ee;if(ie)for(var Fe=0;Fe<ie.length;++Fe){var lt=ie[Fe],Et=lt.marker,Bt=lt.to==null||(Et.inclusiveRight?lt.to>=de:lt.to>de);if(Bt||lt.from==de&&Et.type=="bookmark"&&(!ke||lt.marker.insertLeft)){var Dt=lt.from==null||(Et.inclusiveLeft?lt.from<=de:lt.from<de);(Ee||(Ee=[])).push(new zr(Et,Dt?null:lt.from-de,lt.to==null?null:lt.to-de))}}return Ee}function Hr(ie,de){if(de.full)return null;var ke=Wn(ie,de.from.line)&&fn(ie,de.from.line).markedSpans,Ee=Wn(ie,de.to.line)&&fn(ie,de.to.line).markedSpans;if(!ke&&!Ee)return null;var Fe=de.from.ch,lt=de.to.ch,Et=Mn(de.from,de.to)==0,Bt=no(ke,Fe,Et),Dt=Wr(Ee,lt,Et),Zt=de.text.length==1,En=Pt(de.text).length+(Zt?Fe:0);if(Bt)for(var Qt=0;Qt<Bt.length;++Qt){var Hn=Bt[Qt];if(Hn.to==null){var Dn=$i(Dt,Hn.marker);Dn?Zt&&(Hn.to=Dn.to==null?null:Dn.to+En):Hn.to=Fe}}if(Dt)for(var gr=0;gr<Dt.length;++gr){var Er=Dt[gr];if(Er.to!=null&&(Er.to+=En),Er.from==null){var _r=$i(Bt,Er.marker);_r||(Er.from=En,Zt&&(Bt||(Bt=[])).push(Er))}else Er.from+=En,Zt&&(Bt||(Bt=[])).push(Er)}Bt&&(Bt=wi(Bt)),Dt&&Dt!=Bt&&(Dt=wi(Dt));var si=[Bt];if(!Zt){var ki=de.text.length-2,Si;if(ki>0&&Bt)for(var _i=0;_i<Bt.length;++_i)Bt[_i].to==null&&(Si||(Si=[])).push(new zr(Bt[_i].marker,null,null));for(var mo=0;mo<ki;++mo)si.push(Si);si.push(Dt)}return si}function wi(ie){for(var de=0;de<ie.length;++de){var ke=ie[de];ke.from!=null&&ke.from==ke.to&&ke.marker.clearWhenEmpty!==!1&&ie.splice(de--,1)}return ie.length?ie:null}function vi(ie,de,ke){var Ee=null;if(ie.iter(de.line,ke.line+1,function(Dn){if(Dn.markedSpans)for(var gr=0;gr<Dn.markedSpans.length;++gr){var Er=Dn.markedSpans[gr].marker;Er.readOnly&&(!Ee||pt(Ee,Er)==-1)&&(Ee||(Ee=[])).push(Er)}}),!Ee)return null;for(var Fe=[{from:de,to:ke}],lt=0;lt<Ee.length;++lt)for(var Et=Ee[lt],Bt=Et.find(0),Dt=0;Dt<Fe.length;++Dt){var Zt=Fe[Dt];if(!(Mn(Zt.to,Bt.from)<0||Mn(Zt.from,Bt.to)>0)){var En=[Dt,1],Qt=Mn(Zt.from,Bt.from),Hn=Mn(Zt.to,Bt.to);(Qt<0||!Et.inclusiveLeft&&!Qt)&&En.push({from:Zt.from,to:Bt.from}),(Hn>0||!Et.inclusiveRight&&!Hn)&&En.push({from:Bt.to,to:Zt.to}),Fe.splice.apply(Fe,En),Dt+=En.length-3}}return Fe}function fr(ie){var de=ie.markedSpans;if(de){for(var ke=0;ke<de.length;++ke)de[ke].marker.detachLine(ie);ie.markedSpans=null}}function At(ie,de){if(de){for(var ke=0;ke<de.length;++ke)de[ke].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 ke=ie.lines.length-de.lines.length;if(ke!=0)return ke;var Ee=ie.find(),Fe=de.find(),lt=Mn(Ee.from,Fe.from)||Fi(ie)-Fi(de);if(lt)return-lt;var Et=Mn(Ee.to,Fe.to)||Ki(ie)-Ki(de);return Et||de.id-ie.id}function oo(ie,de){var ke=vn&&ie.markedSpans,Ee;if(ke)for(var Fe=void 0,lt=0;lt<ke.length;++lt)Fe=ke[lt],Fe.marker.collapsed&&(de?Fe.from:Fe.to)==null&&(!Ee||gi(Ee,Fe.marker)<0)&&(Ee=Fe.marker);return Ee}function So(ie){return oo(ie,!0)}function qr(ie){return oo(ie,!1)}function ii(ie,de){var ke=vn&&ie.markedSpans,Ee;if(ke)for(var Fe=0;Fe<ke.length;++Fe){var lt=ke[Fe];lt.marker.collapsed&&(lt.from==null||lt.from<de)&&(lt.to==null||lt.to>de)&&(!Ee||gi(Ee,lt.marker)<0)&&(Ee=lt.marker)}return Ee}function Oi(ie,de,ke,Ee,Fe){var lt=fn(ie,de),Et=vn&<.markedSpans;if(Et)for(var Bt=0;Bt<Et.length;++Bt){var Dt=Et[Bt];if(Dt.marker.collapsed){var Zt=Dt.marker.find(0),En=Mn(Zt.from,ke)||Fi(Dt.marker)-Fi(Fe),Qt=Mn(Zt.to,Ee)||Ki(Dt.marker)-Ki(Fe);if(!(En>=0&&Qt<=0||En<=0&&Qt>=0)&&(En<=0&&(Dt.marker.inclusiveRight&&Fe.inclusiveLeft?Mn(Zt.to,ke)>=0:Mn(Zt.to,ke)>0)||En>=0&&(Dt.marker.inclusiveRight&&Fe.inclusiveLeft?Mn(Zt.from,Ee)<=0:Mn(Zt.from,Ee)<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,ke;de=qr(ie);)ie=de.find(1,!0).line,(ke||(ke=[])).push(ie);return ke}function Vr(ie,de){var ke=fn(ie,de),Ee=Pi(ke);return ke==Ee?de:$t(Ee)}function Zr(ie,de){if(de>ie.lastLine())return de;var ke=fn(ie,de),Ee;if(!Yn(ie,ke))return de;for(;Ee=qr(ke);)ke=Ee.find(1,!0).line;return $t(ke)+1}function Yn(ie,de){var ke=vn&&de.markedSpans;if(ke){for(var Ee=void 0,Fe=0;Fe<ke.length;++Fe)if(Ee=ke[Fe],!!Ee.marker.collapsed){if(Ee.from==null)return!0;if(!Ee.marker.widgetNode&&Ee.from==0&&Ee.marker.inclusiveLeft&&ci(ie,de,Ee))return!0}}}function ci(ie,de,ke){if(ke.to==null){var Ee=ke.marker.find(1,!0);return ci(ie,Ee.line,$i(Ee.line.markedSpans,ke.marker))}if(ke.marker.inclusiveRight&&ke.to==de.text.length)return!0;for(var Fe=void 0,lt=0;lt<de.markedSpans.length;++lt)if(Fe=de.markedSpans[lt],Fe.marker.collapsed&&!Fe.marker.widgetNode&&Fe.from==ke.to&&(Fe.to==null||Fe.to!=ke.from)&&(Fe.marker.inclusiveLeft||ke.marker.inclusiveRight)&&ci(ie,de,Fe))return!0}function ro(ie){ie=Pi(ie);for(var de=0,ke=ie.parent,Ee=0;Ee<ke.lines.length;++Ee){var Fe=ke.lines[Ee];if(Fe==ie)break;de+=Fe.height}for(var lt=ke.parent;lt;ke=lt,lt=ke.parent)for(var Et=0;Et<lt.children.length;++Et){var Bt=lt.children[Et];if(Bt==ke)break;de+=Bt.height}return de}function Wo(ie){if(ie.height==0)return 0;for(var de=ie.text.length,ke,Ee=ie;ke=So(Ee);){var Fe=ke.find(0,!0);Ee=Fe.from.line,de+=Fe.from.ch-Fe.to.ch}for(Ee=ie;ke=qr(Ee);){var lt=ke.find(0,!0);de-=Ee.text.length-lt.from.ch,Ee=lt.to.line,de+=Ee.text.length-lt.to.ch}return de}function _o(ie){var de=ie.display,ke=ie.doc;de.maxLine=fn(ke,ke.first),de.maxLineLength=Wo(de.maxLine),de.maxLineChanged=!0,ke.iter(function(Ee){var Fe=Wo(Ee);Fe>de.maxLineLength&&(de.maxLineLength=Fe,de.maxLine=Ee)})}var Xo=function(ie,de,ke){this.text=ie,At(this,de),this.height=ke?ke(this):1};Xo.prototype.lineNo=function(){return $t(this)},yn(Xo);function Pa(ie,de,ke,Ee){ie.text=de,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),fr(ie),At(ie,ke);var Fe=Ee?Ee(ie):1;Fe!=ie.height&&Xn(ie,Fe)}function na(ie){ie.parent=null,fr(ie)}var os={},Da={};function fs(ie,de){if(!ie||/^\s*$/.test(ie))return null;var ke=de.addModeClass?Da:os;return ke[ie]||(ke[ie]=ie.replace(/\S+/g,"cm-$&"))}function Ln(ie,de){var ke=De("span",null,null,ce?"padding-right: .1px":null),Ee={pre:De("pre",[ke],"CodeMirror-line"),content:ke,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};de.measure={};for(var Fe=0;Fe<=(de.rest?de.rest.length:0);Fe++){var lt=Fe?de.rest[Fe-1]:de.line,Et=void 0;Ee.pos=0,Ee.addToken=rc,di(ie.display.measure)&&(Et=gt(lt,ie.doc.direction))&&(Ee.addToken=xo(Ee.addToken,Et)),Ee.map=[];var Bt=de!=ie.display.externalMeasured&&$t(lt);ga(lt,Ee,Qr(ie,lt,Bt)),lt.styleClasses&&(lt.styleClasses.bgClass&&(Ee.bgClass=Qe(lt.styleClasses.bgClass,Ee.bgClass||"")),lt.styleClasses.textClass&&(Ee.textClass=Qe(lt.styleClasses.textClass,Ee.textClass||""))),Ee.map.length==0&&Ee.map.push(0,0,Ee.content.appendChild(Jr(ie.display.measure))),Fe==0?(de.measure.map=Ee.map,de.measure.cache={}):((de.measure.maps||(de.measure.maps=[])).push(Ee.map),(de.measure.caches||(de.measure.caches=[])).push({}))}if(ce){var Dt=Ee.content.lastChild;(/\bcm-tab\b/.test(Dt.className)||Dt.querySelector&&Dt.querySelector(".cm-tab"))&&(Ee.content.className="cm-tab-wrap-hack")}return jt(ie,"renderLine",ie,de.line,Ee.pre),Ee.pre.className&&(Ee.textClass=Qe(Ee.pre.className,Ee.textClass||"")),Ee}function Fa(ie){var de=Ne("span","\u2022","cm-invalidchar");return de.title="\\u"+ie.charCodeAt(0).toString(16),de.setAttribute("aria-label",de.title),de}function rc(ie,de,ke,Ee,Fe,lt,Et){if(de){var Bt=ie.splitSpaces?el(de,ie.trailingSpace):de,Dt=ie.cm.state.specialChars,Zt=!1,En;if(!Dt.test(de))ie.col+=de.length,En=document.createTextNode(Bt),ie.map.push(ie.pos,ie.pos+de.length,En),je&&ve<9&&(Zt=!0),ie.pos+=de.length;else{En=document.createDocumentFragment();for(var Qt=0;;){Dt.lastIndex=Qt;var Hn=Dt.exec(de),Dn=Hn?Hn.index-Qt:de.length-Qt;if(Dn){var gr=document.createTextNode(Bt.slice(Qt,Qt+Dn));je&&ve<9?En.appendChild(Ne("span",[gr])):En.appendChild(gr),ie.map.push(ie.pos,ie.pos+Dn,gr),ie.col+=Dn,ie.pos+=Dn}if(!Hn)break;Qt+=Dn+1;var Er=void 0;if(Hn[0]==" "){var _r=ie.cm.options.tabSize,si=_r-ie.col%_r;Er=En.appendChild(Ne("span",Ut(si),"cm-tab")),Er.setAttribute("role","presentation"),Er.setAttribute("cm-text"," "),ie.col+=si}else Hn[0]=="\r"||Hn[0]==`
|
|
|
`?(Er=En.appendChild(Ne("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]),je&&ve<9?En.appendChild(Ne("span",[Er])):En.appendChild(Er),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Er),ie.pos++}}if(ie.trailingSpace=Bt.charCodeAt(de.length-1)==32,ke||Ee||Fe||Zt||lt||Et){var ki=ke||"";Ee&&(ki+=Ee),Fe&&(ki+=Fe);var Si=Ne("span",[En],ki,lt);if(Et)for(var _i in Et)Et.hasOwnProperty(_i)&&_i!="style"&&_i!="class"&&Si.setAttribute(_i,Et[_i]);return ie.content.appendChild(Si)}ie.content.appendChild(En)}}function el(ie,de){if(ie.length>1&&!/ /.test(ie))return ie;for(var ke=de,Ee="",Fe=0;Fe<ie.length;Fe++){var lt=ie.charAt(Fe);lt==" "&&ke&&(Fe==ie.length-1||ie.charCodeAt(Fe+1)==32)&&(lt="\xA0"),Ee+=lt,ke=lt==" "}return Ee}function xo(ie,de){return function(ke,Ee,Fe,lt,Et,Bt,Dt){Fe=Fe?Fe+" cm-force-border":"cm-force-border";for(var Zt=ke.pos,En=Zt+Ee.length;;){for(var Qt=void 0,Hn=0;Hn<de.length&&(Qt=de[Hn],!(Qt.to>Zt&&Qt.from<=Zt));Hn++);if(Qt.to>=En)return ie(ke,Ee,Fe,lt,Et,Bt,Dt);ie(ke,Ee.slice(0,Qt.to-Zt),Fe,lt,null,Bt,Dt),lt=null,Ee=Ee.slice(Qt.to-Zt),Zt=Qt.to}}}function eo(ie,de,ke,Ee){var Fe=!Ee&&ke.widgetNode;Fe&&ie.map.push(ie.pos,ie.pos+de,Fe),!Ee&&ie.cm.display.input.needsContentAttribute&&(Fe||(Fe=ie.content.appendChild(document.createElement("span"))),Fe.setAttribute("cm-marker",ke.id)),Fe&&(ie.cm.display.input.setUneditable(Fe),ie.content.appendChild(Fe)),ie.pos+=de,ie.trailingSpace=!1}function ga(ie,de,ke){var Ee=ie.markedSpans,Fe=ie.text,lt=0;if(!Ee){for(var Et=1;Et<ke.length;Et+=2)de.addToken(de,Fe.slice(lt,lt=ke[Et]),fs(ke[Et+1],de.cm.options));return}for(var Bt=Fe.length,Dt=0,Zt=1,En="",Qt,Hn,Dn=0,gr,Er,_r,si,ki;;){if(Dn==Dt){gr=Er=_r=Hn="",ki=null,si=null,Dn=1/0;for(var Si=[],_i=void 0,mo=0;mo<Ee.length;++mo){var mi=Ee[mo],ko=mi.marker;if(ko.type=="bookmark"&&mi.from==Dt&&ko.widgetNode)Si.push(ko);else if(mi.from<=Dt&&(mi.to==null||mi.to>Dt||ko.collapsed&&mi.to==Dt&&mi.from==Dt)){if(mi.to!=null&&mi.to!=Dt&&Dn>mi.to&&(Dn=mi.to,Er=""),ko.className&&(gr+=" "+ko.className),ko.css&&(Hn=(Hn?Hn+";":"")+ko.css),ko.startStyle&&mi.from==Dt&&(_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>Dt&&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==Dt)for(var rs=0;rs<Si.length;++rs)eo(de,0,Si[rs]);if(si&&(si.from||0)==Dt){if(eo(de,(si.to==null?Bt+1:si.to)-Dt,si.marker,si.from==null),si.to==null)return;si.to==Dt&&(si=!1)}}if(Dt>=Bt)break;for(var Kl=Math.min(Bt,Dn);;){if(En){var vl=Dt+En.length;if(!si){var ks=vl>Kl?En.slice(0,Kl-Dt):En;de.addToken(de,ks,Qt?Qt+gr:gr,_r,Dt+ks.length==Dn?Er:"",Hn,ki)}if(vl>=Kl){En=En.slice(Kl-Dt),Dt=Kl;break}Dt=vl,_r=""}En=Fe.slice(lt,lt=ke[Zt++]),Qt=fs(ke[Zt++],de.cm.options)}}}function jo(ie,de,ke){this.line=de,this.rest=To(de),this.size=this.rest?$t(Pt(this.rest))-ke+1:1,this.node=this.text=null,this.hidden=Yn(ie,de)}function Yi(ie,de,ke){for(var Ee=[],Fe,lt=de;lt<ke;lt=Fe){var Et=new jo(ie.doc,fn(ie.doc,lt),lt);Fe=lt+Et.size,Ee.push(Et)}return Ee}var No=null;function xs(ie){No?No.ops.push(ie):ie.ownsGroup=No={ops:[ie],delayedCallbacks:[]}}function bi(ie){var de=ie.delayedCallbacks,ke=0;do{for(;ke<de.length;ke++)de[ke].call(null);for(var Ee=0;Ee<ie.ops.length;Ee++){var Fe=ie.ops[Ee];if(Fe.cursorActivityHandlers)for(;Fe.cursorActivityCalled<Fe.cursorActivityHandlers.length;)Fe.cursorActivityHandlers[Fe.cursorActivityCalled++].call(null,Fe.cm)}}while(ke<de.length)}function so(ie,de){var ke=ie.ownsGroup;if(ke)try{bi(ke)}finally{No=null,de(ke)}}var io=null;function Or(ie,de){var ke=zt(ie,de);if(ke.length){var Ee=Array.prototype.slice.call(arguments,2),Fe;No?Fe=No.delayedCallbacks:io?Fe=io:(Fe=io=[],setTimeout(Ba,0));for(var lt=function(Bt){Fe.push(function(){return ke[Bt].apply(null,Ee)})},Et=0;Et<ke.length;++Et)lt(Et)}}function Ba(){var ie=io;io=null;for(var de=0;de<ie.length;++de)ie[de]()}function Ra(ie,de,ke,Ee){for(var Fe=0;Fe<de.changes.length;Fe++){var lt=de.changes[Fe];lt=="text"?wr(ie,de):lt=="gutter"?$a(ie,de,ke,Ee):lt=="class"?aa(ie,de):lt=="widget"&&Pl(ie,de,Ee)}de.changes=null}function Cs(ie){return ie.node==ie.text&&(ie.node=Ne("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),je&&ve<8&&(ie.node.style.zIndex=2)),ie.node}function Il(ie,de){var ke=de.bgClass?de.bgClass+" "+(de.line.bgClass||""):de.line.bgClass;if(ke&&(ke+=" CodeMirror-linebackground"),de.background)ke?de.background.className=ke:(de.background.parentNode.removeChild(de.background),de.background=null);else if(ke){var Ee=Cs(de);de.background=Ee.insertBefore(Ne("div",null,ke),Ee.firstChild),ie.display.input.setUneditable(de.background)}}function Ql(ie,de){var ke=ie.display.externalMeasured;return ke&&ke.line==de.line?(ie.display.externalMeasured=null,de.measure=ke.measure,ke.built):Ln(ie,de)}function wr(ie,de){var ke=de.text.className,Ee=Ql(ie,de);de.text==de.node&&(de.node=Ee.pre),de.text.parentNode.replaceChild(Ee.pre,de.text),de.text=Ee.pre,Ee.bgClass!=de.bgClass||Ee.textClass!=de.textClass?(de.bgClass=Ee.bgClass,de.textClass=Ee.textClass,aa(ie,de)):ke&&(de.text.className=ke)}function aa(ie,de){Il(ie,de),de.line.wrapClass?Cs(de).className=de.line.wrapClass:de.node!=de.text&&(de.node.className="");var ke=de.textClass?de.textClass+" "+(de.line.textClass||""):de.line.textClass;de.text.className=ke||""}function $a(ie,de,ke,Ee){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 Fe=Cs(de);de.gutterBackground=Ne("div",null,"CodeMirror-gutter-background "+de.line.gutterClass,"left: "+(ie.options.fixedGutter?Ee.fixedPos:-Ee.gutterTotalWidth)+"px; width: "+Ee.gutterTotalWidth+"px"),ie.display.input.setUneditable(de.gutterBackground),Fe.insertBefore(de.gutterBackground,de.text)}var lt=de.line.gutterMarkers;if(ie.options.lineNumbers||lt){var Et=Cs(de),Bt=de.gutter=Ne("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?Ee.fixedPos:-Ee.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Bt),Et.insertBefore(Bt,de.text),de.line.gutterClass&&(Bt.className+=" "+de.line.gutterClass),ie.options.lineNumbers&&(!lt||!lt["CodeMirror-linenumbers"])&&(de.lineNumber=Bt.appendChild(Ne("div",lr(ie.options,ke),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Ee.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),lt)for(var Dt=0;Dt<ie.display.gutterSpecs.length;++Dt){var Zt=ie.display.gutterSpecs[Dt].className,En=lt.hasOwnProperty(Zt)&<[Zt];En&&Bt.appendChild(Ne("div",[En],"CodeMirror-gutter-elt","left: "+Ee.gutterLeft[Zt]+"px; width: "+Ee.gutterWidth[Zt]+"px"))}}}function Pl(ie,de,ke){de.alignable&&(de.alignable=null);for(var Ee=Ce("CodeMirror-linewidget"),Fe=de.node.firstChild,lt=void 0;Fe;Fe=lt)lt=Fe.nextSibling,Ee.test(Fe.className)&&de.node.removeChild(Fe);Fl(ie,de,ke)}function Dl(ie,de,ke,Ee){var Fe=Ql(ie,de);return de.text=de.node=Fe.pre,Fe.bgClass&&(de.bgClass=Fe.bgClass),Fe.textClass&&(de.textClass=Fe.textClass),aa(ie,de),$a(ie,de,ke,Ee),Fl(ie,de,Ee),de.node}function Fl(ie,de,ke){if(Bi(ie,de.line,de,ke,!0),de.rest)for(var Ee=0;Ee<de.rest.length;Ee++)Bi(ie,de.rest[Ee],de,ke,!1)}function Bi(ie,de,ke,Ee,Fe){if(de.widgets)for(var lt=Cs(ke),Et=0,Bt=de.widgets;Et<Bt.length;++Et){var Dt=Bt[Et],Zt=Ne("div",[Dt.node],"CodeMirror-linewidget"+(Dt.className?" "+Dt.className:""));Dt.handleMouseEvents||Zt.setAttribute("cm-ignore-events","true"),mc(Dt,Zt,ke,Ee),ie.display.input.setUneditable(Zt),Fe&&Dt.above?lt.insertBefore(Zt,ke.gutter||ke.text):lt.appendChild(Zt),Or(Dt,"redraw")}}function mc(ie,de,ke,Ee){if(ie.noHScroll){(ke.alignable||(ke.alignable=[])).push(de);var Fe=Ee.wrapperWidth;de.style.left=Ee.fixedPos+"px",ie.coverGutter||(Fe-=Ee.gutterTotalWidth,de.style.paddingLeft=Ee.gutterTotalWidth+"px"),de.style.width=Fe+"px"}ie.coverGutter&&(de.style.zIndex=5,de.style.position="relative",ie.noHScroll||(de.style.marginLeft=-Ee.gutterTotalWidth+"px"))}function tl(ie){if(ie.height!=null)return ie.height;var de=ie.doc.cm;if(!de)return 0;if(!Je(document.body,ie.node)){var ke="position: relative;";ie.coverGutter&&(ke+="margin-left: -"+de.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ke+="width: "+de.display.wrapper.clientWidth+"px;"),Le(de.display.measure,Ne("div",[ie.node],null,ke))}return ie.height=ie.node.parentNode.offsetHeight}function nl(ie,de){for(var ke=Kn(de);ke!=ie.wrapper;ke=ke.parentNode)if(!ke||ke.nodeType==1&&ke.getAttribute("cm-ignore-events")=="true"||ke.parentNode==ie.sizer&&ke!=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=Le(ie.measure,Ne("pre","x","CodeMirror-line-like")),ke=window.getComputedStyle?window.getComputedStyle(de):de.currentStyle,Ee={left:parseInt(ke.paddingLeft),right:parseInt(ke.paddingRight)};return!isNaN(Ee.left)&&!isNaN(Ee.right)&&(ie.cachedPaddingH=Ee),Ee}function _s(ie){return wt-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,ke){var Ee=ie.options.lineWrapping,Fe=Ee&&dl(ie);if(!de.measure.heights||Ee&&de.measure.width!=Fe){var lt=de.measure.heights=[];if(Ee){de.measure.width=Fe;for(var Et=de.text.firstChild.getClientRects(),Bt=0;Bt<Et.length-1;Bt++){var Dt=Et[Bt],Zt=Et[Bt+1];Math.abs(Dt.bottom-Zt.bottom)>2&<.push((Dt.bottom+Zt.top)/2-ke.top)}}lt.push(ke.bottom-ke.top)}}function Gc(ie,de,ke){if(ie.line==de)return{map:ie.measure.map,cache:ie.measure.cache};for(var Ee=0;Ee<ie.rest.length;Ee++)if(ie.rest[Ee]==de)return{map:ie.measure.maps[Ee],cache:ie.measure.caches[Ee]};for(var Fe=0;Fe<ie.rest.length;Fe++)if($t(ie.rest[Fe])>ke)return{map:ie.measure.maps[Fe],cache:ie.measure.caches[Fe],before:!0}}function Wh(ie,de){de=Pi(de);var ke=$t(de),Ee=ie.display.externalMeasured=new jo(ie.doc,de,ke);Ee.lineN=ke;var Fe=Ee.built=Ln(ie,Ee);return Ee.text=Fe.pre,Le(ie.display.lineMeasure,Fe.pre),Ee}function Wc(ie,de,ke,Ee){return Bl(ie,Ru(ie,de),ke,Ee)}function vc(ie,de){if(de>=ie.display.viewFrom&&de<ie.display.viewTo)return ie.display.view[zs(ie,de)];var ke=ie.display.externalMeasured;if(ke&&de>=ke.lineN&&de<ke.lineN+ke.size)return ke}function Ru(ie,de){var ke=$t(de),Ee=vc(ie,ke);Ee&&!Ee.text?Ee=null:Ee&&Ee.changes&&(Ra(ie,Ee,ke,Cd(ie)),ie.curOp.forceUpdate=!0),Ee||(Ee=Wh(ie,de));var Fe=Gc(Ee,de,ke);return{line:de,view:Ee,rect:null,map:Fe.map,cache:Fe.cache,before:Fe.before,hasHeights:!1}}function Bl(ie,de,ke,Ee,Fe){de.before&&(ke=-1);var lt=ke+(Ee||""),Et;return de.cache.hasOwnProperty(lt)?Et=de.cache[lt]:(de.rect||(de.rect=de.view.text.getBoundingClientRect()),de.hasHeights||(hh(ie,de.view,de.rect),de.hasHeights=!0),Et=to(ie,de,ke,Ee),Et.bogus||(de.cache[lt]=Et)),{left:Et.left,right:Et.right,top:Fe?Et.rtop:Et.top,bottom:Fe?Et.rbottom:Et.bottom}}var dh={left:0,right:0,top:0,bottom:0};function Uc(ie,de,ke){for(var Ee,Fe,lt,Et,Bt,Dt,Zt=0;Zt<ie.length;Zt+=3)if(Bt=ie[Zt],Dt=ie[Zt+1],de<Bt?(Fe=0,lt=1,Et="left"):de<Dt?(Fe=de-Bt,lt=Fe+1):(Zt==ie.length-3||de==Dt&&ie[Zt+3]>de)&&(lt=Dt-Bt,Fe=lt-1,de>=Dt&&(Et="right")),Fe!=null){if(Ee=ie[Zt+2],Bt==Dt&&ke==(Ee.insertLeft?"left":"right")&&(Et=ke),ke=="left"&&Fe==0)for(;Zt&&ie[Zt-2]==ie[Zt-3]&&ie[Zt-1].insertLeft;)Ee=ie[(Zt-=3)+2],Et="left";if(ke=="right"&&Fe==Dt-Bt)for(;Zt<ie.length-3&&ie[Zt+3]==ie[Zt+4]&&!ie[Zt+5].insertLeft;)Ee=ie[(Zt+=3)+2],Et="right";break}return{node:Ee,start:Fe,end:lt,collapse:Et,coverStart:Bt,coverEnd:Dt}}function yc(ie,de){var ke=dh;if(de=="left")for(var Ee=0;Ee<ie.length&&(ke=ie[Ee]).left==ke.right;Ee++);else for(var Fe=ie.length-1;Fe>=0&&(ke=ie[Fe]).left==ke.right;Fe--);return ke}function to(ie,de,ke,Ee){var Fe=Uc(de.map,ke,Ee),lt=Fe.node,Et=Fe.start,Bt=Fe.end,Dt=Fe.collapse,Zt;if(lt.nodeType==3){for(var En=0;En<4;En++){for(;Et&&Ue(de.line.text.charAt(Fe.coverStart+Et));)--Et;for(;Fe.coverStart+Bt<Fe.coverEnd&&Ue(de.line.text.charAt(Fe.coverStart+Bt));)++Bt;if(je&&ve<9&&Et==0&&Bt==Fe.coverEnd-Fe.coverStart?Zt=lt.parentNode.getBoundingClientRect():Zt=yc(Re(lt,Et,Bt).getClientRects(),Ee),Zt.left||Zt.right||Et==0)break;Bt=Et,Et=Et-1,Dt="right"}je&&ve<11&&(Zt=Io(ie.display.measure,Zt))}else{Et>0&&(Dt=Ee="right");var Qt;ie.options.lineWrapping&&(Qt=lt.getClientRects()).length>1?Zt=Qt[Ee=="right"?Qt.length-1:0]:Zt=lt.getBoundingClientRect()}if(je&&ve<9&&!Et&&(!Zt||!Zt.left&&!Zt.right)){var Hn=lt.parentNode.getClientRects()[0];Hn?Zt={left:Hn.left,right:Hn.left+ic(ie.display),top:Hn.top,bottom:Hn.bottom}:Zt=dh}for(var Dn=Zt.top-de.rect.top,gr=Zt.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:(Dt=="right"?Zt.right:Zt.left)-de.rect.left,right:(Dt=="left"?Zt.left:Zt.right)-de.rect.left,top:ki,bottom:Si};return!Zt.left&&!Zt.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 ke=screen.logicalXDPI/screen.deviceXDPI,Ee=screen.logicalYDPI/screen.deviceYDPI;return{left:de.left*ke,right:de.right*ke,top:de.top*Ee,bottom:de.bottom*Ee}}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,Oe(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 Me&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ca(){return Me&&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 ke=0;ke<ie.widgets.length;++ke)ie.widgets[ke].above&&(de+=tl(ie.widgets[ke]));return de}function za(ie,de,ke,Ee,Fe){if(!Fe){var lt=Ka(de);ke.top+=lt,ke.bottom+=lt}if(Ee=="line")return ke;Ee||(Ee="local");var Et=ro(de);if(Ee=="local"?Et+=As(ie.display):Et-=ie.display.viewOffset,Ee=="page"||Ee=="window"){var Bt=ie.display.lineSpace.getBoundingClientRect();Et+=Bt.top+(Ee=="window"?0:Ca());var Dt=Bt.left+(Ee=="window"?0:ca());ke.left+=Dt,ke.right+=Dt}return ke.top+=Et,ke.bottom+=Et,ke}function _u(ie,de,ke){if(ke=="div")return de;var Ee=de.left,Fe=de.top;if(ke=="page")Ee-=ca(),Fe-=Ca();else if(ke=="local"||!ke){var lt=ie.display.sizer.getBoundingClientRect();Ee+=lt.left,Fe+=lt.top}var Et=ie.display.lineSpace.getBoundingClientRect();return{left:Ee-Et.left,top:Fe-Et.top}}function Rl(ie,de,ke,Ee,Fe){return Ee||(Ee=fn(ie.doc,de.line)),za(ie,Ee,Wc(ie,Ee,de.ch,Fe),ke)}function Ma(ie,de,ke,Ee,Fe,lt){Ee=Ee||fn(ie.doc,de.line),Fe||(Fe=Ru(ie,Ee));function Et(gr,Er){var _r=Bl(ie,Fe,gr,Er?"right":"left",lt);return Er?_r.left=_r.right:_r.right=_r.left,za(ie,Ee,_r,ke)}var Bt=gt(Ee,ie.doc.direction),Dt=de.ch,Zt=de.sticky;if(Dt>=Ee.text.length?(Dt=Ee.text.length,Zt="before"):Dt<=0&&(Dt=0,Zt="after"),!Bt)return Et(Zt=="before"?Dt-1:Dt,Zt=="before");function En(gr,Er,_r){var si=Bt[Er],ki=si.level==1;return Et(_r?gr-1:gr,ki!=_r)}var Qt=Te(Bt,Dt,Zt),Hn=Be,Dn=En(Dt,Qt,Zt=="before");return Hn!=null&&(Dn.other=En(Dt,Hn,Zt!="before")),Dn}function wd(ie,de){var ke=0;de=Nn(ie.doc,de),ie.options.lineWrapping||(ke=ic(ie.display)*de.ch);var Ee=fn(ie.doc,de.line),Fe=ro(Ee)+As(ie.display);return{left:ke,right:ke,top:Fe,bottom:Fe+Ee.height}}function bd(ie,de,ke,Ee,Fe){var lt=on(ie,de,ke);return lt.xRel=Fe,Ee&&(lt.outside=Ee),lt}function $c(ie,de,ke){var Ee=ie.doc;if(ke+=ie.display.viewOffset,ke<0)return bd(Ee.first,0,null,-1,-1);var Fe=kn(Ee,ke),lt=Ee.first+Ee.size-1;if(Fe>lt)return bd(Ee.first+Ee.size-1,fn(Ee,lt).text.length,null,1,1);de<0&&(de=0);for(var Et=fn(Ee,Fe);;){var Bt=Zn(ie,Et,Fe,de,ke),Dt=ii(Et,Bt.ch+(Bt.xRel>0||Bt.outside>0?1:0));if(!Dt)return Bt;var Zt=Dt.find(1);if(Zt.line==Fe)return Zt;Et=fn(Ee,Fe=Zt.line)}}function pi(ie,de,ke,Ee){Ee-=Ka(de);var Fe=de.text.length,lt=tt(function(Et){return Bl(ie,ke,Et-1).bottom<=Ee},Fe,0);return Fe=tt(function(Et){return Bl(ie,ke,Et).top>Ee},lt,Fe),{begin:lt,end:Fe}}function fh(ie,de,ke,Ee){ke||(ke=Ru(ie,de));var Fe=za(ie,de,Bl(ie,ke,Ee),"line").top;return pi(ie,de,ke,Fe)}function tn(ie,de,ke,Ee){return ie.bottom<=ke?!1:ie.top>ke?!0:(Ee?ie.left:ie.right)>de}function Zn(ie,de,ke,Ee,Fe){Fe-=ro(de);var lt=Ru(ie,de),Et=Ka(de),Bt=0,Dt=de.text.length,Zt=!0,En=gt(de,ie.doc.direction);if(En){var Qt=(ie.options.lineWrapping?af:Pd)(ie,de,ke,lt,En,Ee,Fe);Zt=Qt.level!=1,Bt=Zt?Qt.from:Qt.to-1,Dt=Zt?Qt.to:Qt.from-1}var Hn=null,Dn=null,gr=tt(function(mo){var mi=Bl(ie,lt,mo);return mi.top+=Et,mi.bottom+=Et,tn(mi,Ee,Fe,!1)?(mi.top<=Fe&&mi.left<=Ee&&(Hn=mo,Dn=mi),!0):!1},Bt,Dt),Er,_r,si=!1;if(Dn){var ki=Ee-Dn.left<Dn.right-Ee,Si=ki==Zt;gr=Hn+(Si?0:1),_r=Si?"after":"before",Er=ki?Dn.left:Dn.right}else{!Zt&&(gr==Dt||gr==Bt)&&gr++,_r=gr==0?"after":gr==de.text.length?"before":Bl(ie,lt,gr-(Zt?1:0)).bottom+Et<=Fe==Zt?"after":"before";var _i=Ma(ie,on(ke,gr,_r),"line",de,lt);Er=_i.left,si=Fe<_i.top?-1:Fe>=_i.bottom?1:0}return gr=$e(de.text,gr,1),bd(ke,gr,_r,si,Ee-Er)}function Pd(ie,de,ke,Ee,Fe,lt,Et){var Bt=tt(function(Qt){var Hn=Fe[Qt],Dn=Hn.level!=1;return tn(Ma(ie,on(ke,Dn?Hn.to:Hn.from,Dn?"before":"after"),"line",de,Ee),lt,Et,!0)},0,Fe.length-1),Dt=Fe[Bt];if(Bt>0){var Zt=Dt.level!=1,En=Ma(ie,on(ke,Zt?Dt.from:Dt.to,Zt?"after":"before"),"line",de,Ee);tn(En,lt,Et,!0)&&En.top>Et&&(Dt=Fe[Bt-1])}return Dt}function af(ie,de,ke,Ee,Fe,lt,Et){var Bt=pi(ie,de,Ee,Et),Dt=Bt.begin,Zt=Bt.end;/\s/.test(de.text.charAt(Zt-1))&&Zt--;for(var En=null,Qt=null,Hn=0;Hn<Fe.length;Hn++){var Dn=Fe[Hn];if(!(Dn.from>=Zt||Dn.to<=Dt)){var gr=Dn.level!=1,Er=Bl(ie,Ee,gr?Math.min(Zt,Dn.to)-1:Math.max(Dt,Dn.from)).right,_r=Er<lt?lt-Er+1e9:Er-lt;(!En||Qt>_r)&&(En=Dn,Qt=_r)}}return En||(En=Fe[Fe.length-1]),En.from<Dt&&(En={from:Dt,to:En.to,level:En.level}),En.to>Zt&&(En={from:En.from,to:Zt,level:En.level}),En}var zu;function Hu(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(zu==null){zu=Ne("pre",null,"CodeMirror-line-like");for(var de=0;de<49;++de)zu.appendChild(document.createTextNode("x")),zu.appendChild(Ne("br"));zu.appendChild(document.createTextNode("x"))}Le(ie.measure,zu);var ke=zu.offsetHeight/50;return ke>3&&(ie.cachedTextHeight=ke),Oe(ie.measure),ke||1}function ic(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var de=Ne("span","xxxxxxxxxx"),ke=Ne("pre",[de],"CodeMirror-line-like");Le(ie.measure,ke);var Ee=de.getBoundingClientRect(),Fe=(Ee.right-Ee.left)/10;return Fe>2&&(ie.cachedCharWidth=Fe),Fe||10}function Cd(ie){for(var de=ie.display,ke={},Ee={},Fe=de.gutters.clientLeft,lt=de.gutters.firstChild,Et=0;lt;lt=lt.nextSibling,++Et){var Bt=ie.display.gutterSpecs[Et].className;ke[Bt]=lt.offsetLeft+lt.clientLeft+Fe,Ee[Bt]=lt.clientWidth}return{fixedPos:ph(de),gutterTotalWidth:de.gutters.offsetWidth,gutterLeft:ke,gutterWidth:Ee,wrapperWidth:de.wrapper.clientWidth}}function ph(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Ha(ie){var de=Hu(ie.display),ke=ie.options.lineWrapping,Ee=ke&&Math.max(5,ie.display.scroller.clientWidth/ic(ie.display)-3);return function(Fe){if(Yn(ie.doc,Fe))return 0;var lt=0;if(Fe.widgets)for(var Et=0;Et<Fe.widgets.length;Et++)Fe.widgets[Et].height&&(lt+=Fe.widgets[Et].height);return ke?lt+(Math.ceil(Fe.text.length/Ee)||1)*de:lt+de}}function Gi(ie){var de=ie.doc,ke=Ha(ie);de.iter(function(Ee){var Fe=ke(Ee);Fe!=Ee.height&&Xn(Ee,Fe)})}function rl(ie,de,ke,Ee){var Fe=ie.display;if(!ke&&Kn(de).getAttribute("cm-not-content")=="true")return null;var lt,Et,Bt=Fe.lineSpace.getBoundingClientRect();try{lt=de.clientX-Bt.left,Et=de.clientY-Bt.top}catch(Qt){return null}var Dt=$c(ie,lt,Et),Zt;if(Ee&&Dt.xRel>0&&(Zt=fn(ie.doc,Dt.line).text).length==Dt.ch){var En=qe(Zt,Zt.length,ie.options.tabSize)-Zt.length;Dt=on(Dt.line,Math.max(0,Math.round((lt-Bu(ie.display).left)/ic(ie.display))-En))}return Dt}function zs(ie,de){if(de>=ie.display.viewTo||(de-=ie.display.viewFrom,de<0))return null;for(var ke=ie.display.view,Ee=0;Ee<ke.length;Ee++)if(de-=ke[Ee].size,de<0)return Ee}function ma(ie,de,ke,Ee){de==null&&(de=ie.doc.first),ke==null&&(ke=ie.doc.first+ie.doc.size),Ee||(Ee=0);var Fe=ie.display;if(Ee&&ke<Fe.viewTo&&(Fe.updateLineNumbers==null||Fe.updateLineNumbers>de)&&(Fe.updateLineNumbers=de),ie.curOp.viewChanged=!0,de>=Fe.viewTo)vn&&Vr(ie.doc,de)<Fe.viewTo&&as(ie);else if(ke<=Fe.viewFrom)vn&&Zr(ie.doc,ke+Ee)>Fe.viewFrom?as(ie):(Fe.viewFrom+=Ee,Fe.viewTo+=Ee);else if(de<=Fe.viewFrom&&ke>=Fe.viewTo)as(ie);else if(de<=Fe.viewFrom){var lt=Cl(ie,ke,ke+Ee,1);lt?(Fe.view=Fe.view.slice(lt.index),Fe.viewFrom=lt.lineN,Fe.viewTo+=Ee):as(ie)}else if(ke>=Fe.viewTo){var Et=Cl(ie,de,de,-1);Et?(Fe.view=Fe.view.slice(0,Et.index),Fe.viewTo=Et.lineN):as(ie)}else{var Bt=Cl(ie,de,de,-1),Dt=Cl(ie,ke,ke+Ee,1);Bt&&Dt?(Fe.view=Fe.view.slice(0,Bt.index).concat(Yi(ie,Bt.lineN,Dt.lineN)).concat(Fe.view.slice(Dt.index)),Fe.viewTo+=Ee):as(ie)}var Zt=Fe.externalMeasured;Zt&&(ke<Zt.lineN?Zt.lineN+=Ee:de<Zt.lineN+Zt.size&&(Fe.externalMeasured=null))}function Po(ie,de,ke){ie.curOp.viewChanged=!0;var Ee=ie.display,Fe=ie.display.externalMeasured;if(Fe&&de>=Fe.lineN&&de<Fe.lineN+Fe.size&&(Ee.externalMeasured=null),!(de<Ee.viewFrom||de>=Ee.viewTo)){var lt=Ee.view[zs(ie,de)];if(lt.node!=null){var Et=lt.changes||(lt.changes=[]);pt(Et,ke)==-1&&Et.push(ke)}}}function as(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Cl(ie,de,ke,Ee){var Fe=zs(ie,de),lt,Et=ie.display.view;if(!vn||ke==ie.doc.first+ie.doc.size)return{index:Fe,lineN:ke};for(var Bt=ie.display.viewFrom,Dt=0;Dt<Fe;Dt++)Bt+=Et[Dt].size;if(Bt!=de){if(Ee>0){if(Fe==Et.length-1)return null;lt=Bt+Et[Fe].size-de,Fe++}else lt=Bt-de;de+=lt,ke+=lt}for(;Vr(ie.doc,ke)!=ke;){if(Fe==(Ee<0?0:Et.length-1))return null;ke+=Ee*Et[Fe-(Ee<0?1:0)].size,Fe+=Ee}return{index:Fe,lineN:ke}}function ha(ie,de,ke){var Ee=ie.display,Fe=Ee.view;Fe.length==0||de>=Ee.viewTo||ke<=Ee.viewFrom?(Ee.view=Yi(ie,de,ke),Ee.viewFrom=de):(Ee.viewFrom>de?Ee.view=Yi(ie,de,Ee.viewFrom).concat(Ee.view):Ee.viewFrom<de&&(Ee.view=Ee.view.slice(zs(ie,de))),Ee.viewFrom=de,Ee.viewTo<ke?Ee.view=Ee.view.concat(Yi(ie,Ee.viewTo,ke)):Ee.viewTo>ke&&(Ee.view=Ee.view.slice(0,zs(ie,ke)))),Ee.viewTo=ke}function _l(ie){for(var de=ie.display.view,ke=0,Ee=0;Ee<de.length;Ee++){var Fe=de[Ee];!Fe.hidden&&(!Fe.node||Fe.changes)&&++ke}return ke}function ws(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Kc(ie,de){de===void 0&&(de=!0);for(var ke=ie.doc,Ee={},Fe=Ee.cursors=document.createDocumentFragment(),lt=Ee.selection=document.createDocumentFragment(),Et=0;Et<ke.sel.ranges.length;Et++)if(!(!de&&Et==ke.sel.primIndex)){var Bt=ke.sel.ranges[Et];if(!(Bt.from().line>=ie.display.viewTo||Bt.to().line<ie.display.viewFrom)){var Dt=Bt.empty();(Dt||ie.options.showCursorWhenSelecting)&&zo(ie,Bt.head,Fe),Dt||Ho(ie,Bt,lt)}}return Ee}function zo(ie,de,ke){var Ee=Ma(ie,de,"div",null,null,!ie.options.singleCursorHeightPerLine),Fe=ke.appendChild(Ne("div","\xA0","CodeMirror-cursor"));if(Fe.style.left=Ee.left+"px",Fe.style.top=Ee.top+"px",Fe.style.height=Math.max(0,Ee.bottom-Ee.top)*ie.options.cursorHeight+"px",Ee.other){var lt=ke.appendChild(Ne("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));lt.style.display="",lt.style.left=Ee.other.left+"px",lt.style.top=Ee.other.top+"px",lt.style.height=(Ee.other.bottom-Ee.other.top)*.85+"px"}}function il(ie,de){return ie.top-de.top||ie.left-de.left}function Ho(ie,de,ke){var Ee=ie.display,Fe=ie.doc,lt=document.createDocumentFragment(),Et=Bu(ie.display),Bt=Et.left,Dt=Math.max(Ee.sizerWidth,dl(ie)-Ee.sizer.offsetLeft)-Et.right,Zt=Fe.direction=="ltr";function En(Si,_i,mo,mi){_i<0&&(_i=0),_i=Math.round(_i),mi=Math.round(mi),lt.appendChild(Ne("div",null,"CodeMirror-selected","position: absolute; left: "+Si+`px;
|
|
|
top: `+_i+"px; width: "+(mo==null?Dt-Si:mo)+`px;
|
|
|
height: `+(mi-_i)+"px"))}function Qt(Si,_i,mo){var mi=fn(Fe,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=gt(mi,Fe.direction);return We(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=(Zt?sl:Vu)&&is,xf=(Zt?Vu:sl)&&Lu,mu=ys?Bt:(oa?cs:Gs).left,ou=xf?Dt:(oa?Gs:cs).right;En(mu,cs.top,ou-mu,cs.bottom)}else{var Vl,Aa,Ws,Mc;oa?(Vl=Zt&&sl&&is?Bt:cs.left,Aa=Zt?Dt:Kl(ks,al,"before"),Ws=Zt?Bt:Kl(iu,al,"after"),Mc=Zt&&Vu&&Lu?Dt:Gs.right):(Vl=Zt?Kl(ks,al,"before"):Bt,Aa=!Zt&&sl&&is?Dt:cs.right,Ws=!Zt&&Vu&&Lu?Bt:Gs.left,Mc=Zt?Kl(iu,al,"after"):Dt),En(Vl,cs.top,Aa-Vl,cs.bottom),cs.bottom<Gs.top&&En(Bt,cs.bottom,null,Gs.top),En(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)Qt(Hn.line,Hn.ch,Dn.ch);else{var gr=fn(Fe,Hn.line),Er=fn(Fe,Dn.line),_r=Pi(gr)==Pi(Er),si=Qt(Hn.line,Hn.ch,_r?gr.text.length+1:null).end,ki=Qt(Dn.line,_r?0:null,Dn.ch).start;_r&&(si.top<ki.top-2?(En(si.right,si.top,null,si.bottom),En(Bt,ki.top,ki.left,ki.bottom)):En(si.right,si.top,ki.left-si.right,si.bottom)),si.bottom<ki.top&&En(Bt,si.bottom,null,ki.top)}ke.appendChild(lt)}function la(ie){if(ie.state.focused){var de=ie.display;clearInterval(de.blinker);var ke=!0;de.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?de.blinker=setInterval(function(){ie.hasFocus()||Vc(ie),de.cursorDiv.style.visibility=(ke=!ke)?"":"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||(jt(ie,"focus",ie,de),ie.state.focused=!0,Ve(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&&(jt(ie,"blur",ie,de),ie.state.focused=!1,Ie(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,ke=de.lineDiv.offsetTop,Ee=0;Ee<de.view.length;Ee++){var Fe=de.view[Ee],lt=ie.options.lineWrapping,Et=void 0,Bt=0;if(!Fe.hidden){if(je&&ve<8){var Dt=Fe.node.offsetTop+Fe.node.offsetHeight;Et=Dt-ke,ke=Dt}else{var Zt=Fe.node.getBoundingClientRect();Et=Zt.bottom-Zt.top,!lt&&Fe.text.firstChild&&(Bt=Fe.text.firstChild.getBoundingClientRect().right-Zt.left-1)}var En=Fe.line.height-Et;if((En>.005||En<-.005)&&(Xn(Fe.line,Et),Wf(Fe.line),Fe.rest))for(var Qt=0;Qt<Fe.rest.length;Qt++)Wf(Fe.rest[Qt]);if(Bt>ie.display.sizerWidth){var Hn=Math.ceil(Bt/ic(ie.display));Hn>ie.display.maxLineLength&&(ie.display.maxLineLength=Hn,ie.display.maxLine=Fe.line,ie.display.maxLineChanged=!0)}}}}function Wf(ie){if(ie.widgets)for(var de=0;de<ie.widgets.length;++de){var ke=ie.widgets[de],Ee=ke.node.parentNode;Ee&&(ke.height=Ee.offsetHeight)}}function Do(ie,de,ke){var Ee=ke&&ke.top!=null?Math.max(0,ke.top):ie.scroller.scrollTop;Ee=Math.floor(Ee-As(ie));var Fe=ke&&ke.bottom!=null?ke.bottom:Ee+ie.wrapper.clientHeight,lt=kn(de,Ee),Et=kn(de,Fe);if(ke&&ke.ensure){var Bt=ke.ensure.from.line,Dt=ke.ensure.to.line;Bt<lt?(lt=Bt,Et=kn(de,ro(fn(de,Bt))+ie.wrapper.clientHeight)):Math.min(Dt,de.lastLine())>=Et&&(lt=kn(de,ro(fn(de,Dt))-ie.wrapper.clientHeight),Et=Dt)}return{from:lt,to:Math.max(Et,lt+1)}}function Uf(ie,de){if(!Kt(ie,"scrollCursorIntoView")){var ke=ie.display,Ee=ke.sizer.getBoundingClientRect(),Fe=null;if(de.top+Ee.top<0?Fe=!0:de.bottom+Ee.top>(window.innerHeight||document.documentElement.clientHeight)&&(Fe=!1),Fe!=null&&!xe){var lt=Ne("div","\u200B",null,`position: absolute;
|
|
|
top: `+(de.top-ke.viewOffset-As(ie.display))+`px;
|
|
|
height: `+(de.bottom-de.top+_s(ie)+ke.barHeight)+`px;
|
|
|
left: `+de.left+"px; width: "+Math.max(2,de.right-de.left)+"px;");ie.display.lineSpace.appendChild(lt),lt.scrollIntoView(Fe),ie.display.lineSpace.removeChild(lt)}}}function Uh(ie,de,ke,Ee){Ee==null&&(Ee=0);var Fe;!ie.options.lineWrapping&&de==ke&&(de=de.ch?on(de.line,de.sticky=="before"?de.ch-1:de.ch,"after"):de,ke=de.sticky=="before"?on(de.line,de.ch+1,"before"):de);for(var lt=0;lt<5;lt++){var Et=!1,Bt=Ma(ie,de),Dt=!ke||ke==de?Bt:Ma(ie,ke);Fe={left:Math.min(Bt.left,Dt.left),top:Math.min(Bt.top,Dt.top)-Ee,right:Math.max(Bt.left,Dt.left),bottom:Math.max(Bt.bottom,Dt.bottom)+Ee};var Zt=$f(ie,Fe),En=ie.doc.scrollTop,Qt=ie.doc.scrollLeft;if(Zt.scrollTop!=null&&(Xc(ie,Zt.scrollTop),Math.abs(ie.doc.scrollTop-En)>1&&(Et=!0)),Zt.scrollLeft!=null&&(Wu(ie,Zt.scrollLeft),Math.abs(ie.doc.scrollLeft-Qt)>1&&(Et=!0)),!Et)break}return Fe}function $h(ie,de){var ke=$f(ie,de);ke.scrollTop!=null&&Xc(ie,ke.scrollTop),ke.scrollLeft!=null&&Wu(ie,ke.scrollLeft)}function $f(ie,de){var ke=ie.display,Ee=Hu(ie.display);de.top<0&&(de.top=0);var Fe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ke.scroller.scrollTop,lt=Hc(ie),Et={};de.bottom-de.top>lt&&(de.bottom=de.top+lt);var Bt=ie.doc.height+Cu(ke),Dt=de.top<Ee,Zt=de.bottom>Bt-Ee;if(de.top<Fe)Et.scrollTop=Dt?0:de.top;else if(de.bottom>Fe+lt){var En=Math.min(de.top,(Zt?Bt:de.bottom)-lt);En!=Fe&&(Et.scrollTop=En)}var Qt=ie.options.fixedGutter?0:ke.gutters.offsetWidth,Hn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ke.scroller.scrollLeft-Qt,Dn=dl(ie)-ke.gutters.offsetWidth,gr=de.right-de.left>Dn;return gr&&(de.right=de.left+Dn),de.left<10?Et.scrollLeft=0:de.left<Hn?Et.scrollLeft=Math.max(0,de.left+Qt-(gr?0:10)):de.right>Dn+Hn-3&&(Et.scrollLeft=de.right+(gr?0:10)-Dn),Et}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,ke){(de!=null||ke!=null)&&Gu(ie),de!=null&&(ie.curOp.scrollLeft=de),ke!=null&&(ie.curOp.scrollTop=ke)}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 ke=wd(ie,de.from),Ee=wd(ie,de.to);sf(ie,ke,Ee,de.margin)}}function sf(ie,de,ke,Ee){var Fe=$f(ie,{left:Math.min(de.left,ke.left),top:Math.min(de.top,ke.top)-Ee,right:Math.max(de.right,ke.right),bottom:Math.max(de.bottom,ke.bottom)+Ee});Zc(ie,Fe.scrollLeft,Fe.scrollTop)}function Xc(ie,de){Math.abs(ie.doc.scrollTop-de)<2||(et||Yr(ie,{top:de}),Kf(ie,de,!0),et&&Yr(ie),Qn(ie,100))}function Kf(ie,de,ke){de=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,de)),!(ie.display.scroller.scrollTop==de&&!ke)&&(ie.doc.scrollTop=de,ie.display.scrollbars.setScrollTop(de),ie.display.scroller.scrollTop!=de&&(ie.display.scroller.scrollTop=de))}function Wu(ie,de,ke,Ee){de=Math.max(0,Math.min(de,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ke?de==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-de)<2)&&!Ee)&&(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,ke=de.gutters.offsetWidth,Ee=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?ke:0,docHeight:Ee,scrollHeight:Ee+_s(ie)+de.barHeight,nativeBarWidth:de.nativeBarWidth,gutterWidth:ke}}var xc=function(ie,de,ke){this.cm=ke;var Ee=this.vert=Ne("div",[Ne("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Fe=this.horiz=Ne("div",[Ne("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Ee.tabIndex=Fe.tabIndex=-1,ie(Ee),ie(Fe),Ot(Ee,"scroll",function(){Ee.clientHeight&&de(Ee.scrollTop,"vertical")}),Ot(Fe,"scroll",function(){Fe.clientWidth&&de(Fe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,je&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xc.prototype.update=function(ie){var de=ie.scrollWidth>ie.clientWidth+1,ke=ie.scrollHeight>ie.clientHeight+1,Ee=ie.nativeBarWidth;if(ke){this.vert.style.display="block",this.vert.style.bottom=de?Ee+"px":"0";var Fe=ie.viewHeight-(de?Ee:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Fe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(de){this.horiz.style.display="block",this.horiz.style.right=ke?Ee+"px":"0",this.horiz.style.left=ie.barLeft+"px";var lt=ie.viewWidth-ie.barLeft-(ke?Ee:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+lt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(Ee==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ke?Ee:0,bottom:de?Ee: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&&!me?"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,ke){ie.style.pointerEvents="auto";function Ee(){var Fe=ie.getBoundingClientRect(),lt=ke=="vert"?document.elementFromPoint(Fe.right-1,(Fe.top+Fe.bottom)/2):document.elementFromPoint((Fe.right+Fe.left)/2,Fe.bottom-1);lt!=ie?ie.style.pointerEvents="none":de.set(1e3,Ee)}de.set(1e3,Ee)},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 ke=ie.display.barWidth,Ee=ie.display.barHeight;Td(ie,de);for(var Fe=0;Fe<4&&ke!=ie.display.barWidth||Ee!=ie.display.barHeight;Fe++)ke!=ie.display.barWidth&&ie.options.lineWrapping&&zi(ie),Td(ie,fu(ie)),ke=ie.display.barWidth,Ee=ie.display.barHeight}function Td(ie,de){var ke=ie.display,Ee=ke.scrollbars.update(de);ke.sizer.style.paddingRight=(ke.barWidth=Ee.right)+"px",ke.sizer.style.paddingBottom=(ke.barHeight=Ee.bottom)+"px",ke.heightForcer.style.borderBottom=Ee.bottom+"px solid transparent",Ee.right&&Ee.bottom?(ke.scrollbarFiller.style.display="block",ke.scrollbarFiller.style.height=Ee.bottom+"px",ke.scrollbarFiller.style.width=Ee.right+"px"):ke.scrollbarFiller.style.display="",Ee.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ke.gutterFiller.style.display="block",ke.gutterFiller.style.height=Ee.bottom+"px",ke.gutterFiller.style.width=de.gutterWidth+"px"):ke.gutterFiller.style.display=""}var lf={native:xc,null:Eu};function uf(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ie(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),Ot(de,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),de.setAttribute("cm-not-content","true")},function(de,ke){ke=="horizontal"?Wu(ie,de):Xc(ie,de)},ie),ie.display.scrollbars.addClass&&Ve(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(ke){for(var Ee=0;Ee<ke.ops.length;Ee++)ke.ops[Ee].cm.curOp=null;$p(ke)})}function $p(ie){for(var de=ie.ops,ke=0;ke<de.length;ke++)_t(de[ke]);for(var Ee=0;Ee<de.length;Ee++)Gt(de[Ee]);for(var Fe=0;Fe<de.length;Fe++)rn(de[Fe]);for(var lt=0;lt<de.length;lt++)sn(de[lt]);for(var Et=0;Et<de.length;Et++)Tn(de[Et])}function _t(ie){var de=ie.cm,ke=de.display;Ir(de),ie.updateMaxLine&&_o(de),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ke.viewFrom||ie.scrollToPos.to.line>=ke.viewTo)||ke.maxLineChanged&&de.options.lineWrapping,ie.update=ie.mustUpdate&&new tr(de,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Gt(ie){ie.updatedDisplay=ie.mustUpdate&&ti(ie.cm,ie.update)}function rn(ie){var de=ie.cm,ke=de.display;ie.updatedDisplay&&zi(de),ie.barMeasure=fu(de),ke.maxLineChanged&&!de.options.lineWrapping&&(ie.adjustWidthTo=Wc(de,ke.maxLine,ke.maxLine.text.length).left+3,de.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ke.scroller.clientWidth,ke.sizer.offsetLeft+ie.adjustWidthTo+_s(de)+de.display.barWidth),ie.maxScrollLeft=Math.max(0,ke.sizer.offsetLeft+ie.adjustWidthTo-dl(de))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ke.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 ke=ie.focus&&ie.focus==_e();ie.preparedSelection&&de.display.input.showSelection(ie.preparedSelection,ke),(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),ke&&La(ie.cm)}function Tn(ie){var de=ie.cm,ke=de.display,Ee=de.doc;if(ie.updatedDisplay&&Cr(de,ie.update),ke.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ke.wheelStartX=ke.wheelStartY=null),ie.scrollTop!=null&&Kf(de,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Wu(de,ie.scrollLeft,!0,!0),ie.scrollToPos){var Fe=Uh(de,Nn(Ee,ie.scrollToPos.from),Nn(Ee,ie.scrollToPos.to),ie.scrollToPos.margin);Uf(de,Fe)}var lt=ie.maybeHiddenMarkers,Et=ie.maybeUnhiddenMarkers;if(lt)for(var Bt=0;Bt<lt.length;++Bt)lt[Bt].lines.length||jt(lt[Bt],"hide");if(Et)for(var Dt=0;Dt<Et.length;++Dt)Et[Dt].lines.length&&jt(Et[Dt],"unhide");ke.wrapper.offsetHeight&&(Ee.scrollTop=de.display.scroller.scrollTop),ie.changeObjs&&jt(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 Rn(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,dt(ir,ie))}function ir(ie){var de=ie.doc;if(!(de.highlightFrontier>=ie.display.viewTo)){var ke=+new Date+ie.options.workTime,Ee=Br(ie,de.highlightFrontier),Fe=[];de.iter(Ee.line,Math.min(de.first+de.size,ie.display.viewTo+500),function(lt){if(Ee.line>=ie.display.viewFrom){var Et=lt.styles,Bt=lt.text.length>ie.options.maxHighlightLength?ln(de.mode,Ee.state):null,Dt=Fr(ie,lt,Ee,!0);Bt&&(Ee.state=Bt),lt.styles=Dt.styles;var Zt=lt.styleClasses,En=Dt.classes;En?lt.styleClasses=En:Zt&&(lt.styleClasses=null);for(var Qt=!Et||Et.length!=lt.styles.length||Zt!=En&&(!Zt||!En||Zt.bgClass!=En.bgClass||Zt.textClass!=En.textClass),Hn=0;!Qt&&Hn<Et.length;++Hn)Qt=Et[Hn]!=lt.styles[Hn];Qt&&Fe.push(Ee.line),lt.stateAfter=Ee.save(),Ee.nextLine()}else lt.text.length<=ie.options.maxHighlightLength&&bn(ie,lt.text,Ee),lt.stateAfter=Ee.line%5==0?Ee.save():null,Ee.nextLine();if(+new Date>ke)return Qn(ie,ie.options.workDelay),!0}),de.highlightFrontier=Ee.line,de.modeFrontier=Math.max(de.modeFrontier,Ee.line),Fe.length&&pn(ie,function(){for(var lt=0;lt<Fe.length;lt++)Po(ie,Fe[lt],"text")})}}var tr=function(ie,de,ke){var Ee=ie.display;this.viewport=de,this.visible=Do(Ee,ie.doc,de),this.editorIsHidden=!Ee.wrapper.offsetWidth,this.wrapperHeight=Ee.wrapper.clientHeight,this.wrapperWidth=Ee.wrapper.clientWidth,this.oldDisplayWidth=dl(ie),this.force=ke,this.dims=Cd(ie),this.events=[]};tr.prototype.signal=function(ie,de){cn(ie,de)&&this.events.push(arguments)},tr.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)jt.apply(null,this.events[ie])};function Ir(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 Lr(ie){if(ie.hasFocus())return null;var de=_e();if(!de||!Je(ie.display.lineDiv,de))return null;var ke={activeElt:de};if(window.getSelection){var Ee=window.getSelection();Ee.anchorNode&&Ee.extend&&Je(ie.display.lineDiv,Ee.anchorNode)&&(ke.anchorNode=Ee.anchorNode,ke.anchorOffset=Ee.anchorOffset,ke.focusNode=Ee.focusNode,ke.focusOffset=Ee.focusOffset)}return ke}function vr(ie){if(!(!ie||!ie.activeElt||ie.activeElt==_e())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Je(document.body,ie.anchorNode)&&Je(document.body,ie.focusNode))){var de=window.getSelection(),ke=document.createRange();ke.setEnd(ie.anchorNode,ie.anchorOffset),ke.collapse(!1),de.removeAllRanges(),de.addRange(ke),de.extend(ie.focusNode,ie.focusOffset)}}function ti(ie,de){var ke=ie.display,Ee=ie.doc;if(de.editorIsHidden)return as(ie),!1;if(!de.force&&de.visible.from>=ke.viewFrom&&de.visible.to<=ke.viewTo&&(ke.updateLineNumbers==null||ke.updateLineNumbers>=ke.viewTo)&&ke.renderedView==ke.view&&_l(ie)==0)return!1;oi(ie)&&(as(ie),de.dims=Cd(ie));var Fe=Ee.first+Ee.size,lt=Math.max(de.visible.from-ie.options.viewportMargin,Ee.first),Et=Math.min(Fe,de.visible.to+ie.options.viewportMargin);ke.viewFrom<lt&<-ke.viewFrom<20&&(lt=Math.max(Ee.first,ke.viewFrom)),ke.viewTo>Et&&ke.viewTo-Et<20&&(Et=Math.min(Fe,ke.viewTo)),vn&&(lt=Vr(ie.doc,lt),Et=Zr(ie.doc,Et));var Bt=lt!=ke.viewFrom||Et!=ke.viewTo||ke.lastWrapHeight!=de.wrapperHeight||ke.lastWrapWidth!=de.wrapperWidth;ha(ie,lt,Et),ke.viewOffset=ro(fn(ie.doc,ke.viewFrom)),ie.display.mover.style.top=ke.viewOffset+"px";var Dt=_l(ie);if(!Bt&&Dt==0&&!de.force&&ke.renderedView==ke.view&&(ke.updateLineNumbers==null||ke.updateLineNumbers>=ke.viewTo))return!1;var Zt=Lr(ie);return Dt>4&&(ke.lineDiv.style.display="none"),Xr(ie,ke.updateLineNumbers,de.dims),Dt>4&&(ke.lineDiv.style.display=""),ke.renderedView=ke.view,vr(Zt),Oe(ke.cursorDiv),Oe(ke.selectionDiv),ke.gutters.style.height=ke.sizer.style.minHeight=0,Bt&&(ke.lastWrapHeight=de.wrapperHeight,ke.lastWrapWidth=de.wrapperWidth,Qn(ie,400)),ke.updateLineNumbers=null,!0}function Cr(ie,de){for(var ke=de.viewport,Ee=!0;;Ee=!1){if(!Ee||!ie.options.lineWrapping||de.oldDisplayWidth==dl(ie)){if(ke&&ke.top!=null&&(ke={top:Math.min(ie.doc.height+Cu(ie.display)-Hc(ie),ke.top)}),de.visible=Do(ie.display,ie.doc,ke),de.visible.from>=ie.display.viewFrom&&de.visible.to<=ie.display.viewTo)break}else Ee&&(de.visible=Do(ie.display,ie.doc,ke));if(!ti(ie,de))break;zi(ie);var Fe=fu(ie);ws(ie),wc(ie,Fe),Ai(ie,Fe),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 Yr(ie,de){var ke=new tr(ie,de);if(ti(ie,ke)){zi(ie),Cr(ie,ke);var Ee=fu(ie);ws(ie),wc(ie,Ee),Ai(ie,Ee),ke.finish()}}function Xr(ie,de,ke){var Ee=ie.display,Fe=ie.options.lineNumbers,lt=Ee.lineDiv,Et=lt.firstChild;function Bt(gr){var Er=gr.nextSibling;return ce&&ae&&ie.display.currentWheelTarget==gr?gr.style.display="none":gr.parentNode.removeChild(gr),Er}for(var Dt=Ee.view,Zt=Ee.viewFrom,En=0;En<Dt.length;En++){var Qt=Dt[En];if(!Qt.hidden)if(!Qt.node||Qt.node.parentNode!=lt){var Hn=Dl(ie,Qt,Zt,ke);lt.insertBefore(Hn,Et)}else{for(;Et!=Qt.node;)Et=Bt(Et);var Dn=Fe&&de!=null&&de<=Zt&&Qt.lineNumber;Qt.changes&&(pt(Qt.changes,"gutter")>-1&&(Dn=!1),Ra(ie,Qt,Zt,ke)),Dn&&(Oe(Qt.lineNumber),Qt.lineNumber.appendChild(document.createTextNode(lr(ie.options,Zt)))),Et=Qt.node.nextSibling}Zt+=Qt.size}for(;Et;)Et=Bt(Et)}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,ke=de.view;if(!(!de.alignWidgets&&(!de.gutters.firstChild||!ie.options.fixedGutter))){for(var Ee=ph(de)-de.scroller.scrollLeft+ie.doc.scrollLeft,Fe=de.gutters.offsetWidth,lt=Ee+"px",Et=0;Et<ke.length;Et++)if(!ke[Et].hidden){ie.options.fixedGutter&&(ke[Et].gutter&&(ke[Et].gutter.style.left=lt),ke[Et].gutterBackground&&(ke[Et].gutterBackground.style.left=lt));var Bt=ke[Et].alignable;if(Bt)for(var Dt=0;Dt<Bt.length;Dt++)Bt[Dt].style.left=lt}ie.options.fixedGutter&&(de.gutters.style.left=Ee+Fe+"px")}}function oi(ie){if(!ie.options.lineNumbers)return!1;var de=ie.doc,ke=lr(ie.options,de.first+de.size-1),Ee=ie.display;if(ke.length!=Ee.lineNumChars){var Fe=Ee.measure.appendChild(Ne("div",[Ne("div",ke)],"CodeMirror-linenumber CodeMirror-gutter-elt")),lt=Fe.firstChild.offsetWidth,Et=Fe.offsetWidth-lt;return Ee.lineGutter.style.width="",Ee.lineNumInnerWidth=Math.max(lt,Ee.lineGutter.offsetWidth-Et)+1,Ee.lineNumWidth=Ee.lineNumInnerWidth+Et,Ee.lineNumChars=Ee.lineNumInnerWidth?ke.length:-1,Ee.lineGutter.style.width=Ee.lineNumWidth+"px",hi(ie.display),!0}return!1}function Ni(ie,de){for(var ke=[],Ee=!1,Fe=0;Fe<ie.length;Fe++){var lt=ie[Fe],Et=null;if(typeof lt!="string"&&(Et=lt.style,lt=lt.className),lt=="CodeMirror-linenumbers")if(de)Ee=!0;else continue;ke.push({className:lt,style:Et})}return de&&!Ee&&ke.push({className:"CodeMirror-linenumbers",style:null}),ke}function ho(ie){var de=ie.gutters,ke=ie.gutterSpecs;Oe(de),ie.lineGutter=null;for(var Ee=0;Ee<ke.length;++Ee){var Fe=ke[Ee],lt=Fe.className,Et=Fe.style,Bt=de.appendChild(Ne("div",null,"CodeMirror-gutter "+lt));Et&&(Bt.style.cssText=Et),lt=="CodeMirror-linenumbers"&&(ie.lineGutter=Bt,Bt.style.width=(ie.lineNumWidth||1)+"px")}de.style.display=ke.length?"":"none",hi(ie)}function ui(ie){ho(ie.display),ma(ie),Wi(ie)}function Ei(ie,de,ke,Ee){var Fe=this;this.input=ke,Fe.scrollbarFiller=Ne("div",null,"CodeMirror-scrollbar-filler"),Fe.scrollbarFiller.setAttribute("cm-not-content","true"),Fe.gutterFiller=Ne("div",null,"CodeMirror-gutter-filler"),Fe.gutterFiller.setAttribute("cm-not-content","true"),Fe.lineDiv=De("div",null,"CodeMirror-code"),Fe.selectionDiv=Ne("div",null,null,"position: relative; z-index: 1"),Fe.cursorDiv=Ne("div",null,"CodeMirror-cursors"),Fe.measure=Ne("div",null,"CodeMirror-measure"),Fe.lineMeasure=Ne("div",null,"CodeMirror-measure"),Fe.lineSpace=De("div",[Fe.measure,Fe.lineMeasure,Fe.selectionDiv,Fe.cursorDiv,Fe.lineDiv],null,"position: relative; outline: none");var lt=De("div",[Fe.lineSpace],"CodeMirror-lines");Fe.mover=Ne("div",[lt],null,"position: relative"),Fe.sizer=Ne("div",[Fe.mover],"CodeMirror-sizer"),Fe.sizerWidth=null,Fe.heightForcer=Ne("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),Fe.gutters=Ne("div",null,"CodeMirror-gutters"),Fe.lineGutter=null,Fe.scroller=Ne("div",[Fe.sizer,Fe.heightForcer,Fe.gutters],"CodeMirror-scroll"),Fe.scroller.setAttribute("tabIndex","-1"),Fe.wrapper=Ne("div",[Fe.scrollbarFiller,Fe.gutterFiller,Fe.scroller],"CodeMirror"),je&&ve<8&&(Fe.gutters.style.zIndex=-1,Fe.scroller.style.paddingRight=0),!ce&&!(et&&ee)&&(Fe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Fe.wrapper):ie(Fe.wrapper)),Fe.viewFrom=Fe.viewTo=de.first,Fe.reportedViewFrom=Fe.reportedViewTo=de.first,Fe.view=[],Fe.renderedView=null,Fe.externalMeasured=null,Fe.viewOffset=0,Fe.lastWrapHeight=Fe.lastWrapWidth=0,Fe.updateLineNumbers=null,Fe.nativeBarWidth=Fe.barHeight=Fe.barWidth=0,Fe.scrollbarsClipped=!1,Fe.lineNumWidth=Fe.lineNumInnerWidth=Fe.lineNumChars=null,Fe.alignWidgets=!1,Fe.cachedCharWidth=Fe.cachedTextHeight=Fe.cachedPaddingH=null,Fe.maxLine=null,Fe.maxLineLength=0,Fe.maxLineChanged=!1,Fe.wheelDX=Fe.wheelDY=Fe.wheelStartX=Fe.wheelStartY=null,Fe.shift=!1,Fe.selForContextMenu=null,Fe.activeTouch=null,Fe.gutterSpecs=Ni(Ee.gutters,Ee.lineNumbers),ho(Fe),ke.init(Fe)}var li=0,Gr=null;je?Gr=-.53:et?Gr=15:Me?Gr=-.7:Pe&&(Gr=-1/3);function yi(ie){var de=ie.wheelDeltaX,ke=ie.wheelDeltaY;return de==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(de=ie.detail),ke==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ke=ie.detail:ke==null&&(ke=ie.wheelDelta),{x:de,y:ke}}function Ri(ie){var de=yi(ie);return de.x*=Gr,de.y*=Gr,de}function Xi(ie,de){var ke=yi(de),Ee=ke.x,Fe=ke.y,lt=ie.display,Et=lt.scroller,Bt=Et.scrollWidth>Et.clientWidth,Dt=Et.scrollHeight>Et.clientHeight;if(Ee&&Bt||Fe&&Dt){if(Fe&&ae&&ce){e:for(var Zt=de.target,En=lt.view;Zt!=Et;Zt=Zt.parentNode)for(var Qt=0;Qt<En.length;Qt++)if(En[Qt].node==Zt){ie.display.currentWheelTarget=Zt;break e}}if(Ee&&!et&&!Se&&Gr!=null){Fe&&Dt&&Xc(ie,Math.max(0,Et.scrollTop+Fe*Gr)),Wu(ie,Math.max(0,Et.scrollLeft+Ee*Gr)),(!Fe||Fe&&Dt)&&On(de),lt.wheelStartX=null;return}if(Fe&&Gr!=null){var Hn=Fe*Gr,Dn=ie.doc.scrollTop,gr=Dn+lt.wrapper.clientHeight;Hn<0?Dn=Math.max(0,Dn+Hn-50):gr=Math.min(ie.doc.height,gr+Hn+50),Yr(ie,{top:Dn,bottom:gr})}li<20&&(lt.wheelStartX==null?(lt.wheelStartX=Et.scrollLeft,lt.wheelStartY=Et.scrollTop,lt.wheelDX=Ee,lt.wheelDY=Fe,setTimeout(function(){if(lt.wheelStartX!=null){var Er=Et.scrollLeft-lt.wheelStartX,_r=Et.scrollTop-lt.wheelStartY,si=_r&<.wheelDY&&_r/lt.wheelDY||Er&<.wheelDX&&Er/lt.wheelDX;lt.wheelStartX=lt.wheelStartY=null,si&&(Gr=(Gr*li+si)/(li+1),++li)}},200)):(lt.wheelDX+=Ee,lt.wheelDY+=Fe))}}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 ke=this.ranges[de],Ee=ie.ranges[de];if(!an(ke.anchor,Ee.anchor)||!an(ke.head,Ee.head))return!1}return!0},Ji.prototype.deepCopy=function(){for(var ie=[],de=0;de<this.ranges.length;de++)ie[de]=new ai(xn(this.ranges[de].anchor),xn(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 ke=0;ke<this.ranges.length;ke++){var Ee=this.ranges[ke];if(Mn(de,Ee.from())>=0&&Mn(ie,Ee.to())<=0)return ke}return-1};var ai=function(ie,de){this.anchor=ie,this.head=de};ai.prototype.from=function(){return Sn(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,ke){var Ee=ie&&ie.options.selectionsMayTouch,Fe=de[ke];de.sort(function(Hn,Dn){return Mn(Hn.from(),Dn.from())}),ke=pt(de,Fe);for(var lt=1;lt<de.length;lt++){var Et=de[lt],Bt=de[lt-1],Dt=Mn(Bt.to(),Et.from());if(Ee&&!Et.empty()?Dt>0:Dt>=0){var Zt=Sn(Bt.from(),Et.from()),En=gn(Bt.to(),Et.to()),Qt=Bt.empty()?Et.from()==Et.head:Bt.from()==Bt.head;lt<=ke&&--ke,de.splice(--lt,2,new ai(Qt?En:Zt,Qt?Zt:En))}}return new Ji(de,ke)}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,Pt(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 ke=ie.line+de.text.length-(de.to.line-de.from.line)-1,Ee=ie.ch;return ie.line==de.to.line&&(Ee+=Jo(de).ch-de.to.ch),on(ke,Ee)}function ka(ie,de){for(var ke=[],Ee=0;Ee<ie.sel.ranges.length;Ee++){var Fe=ie.sel.ranges[Ee];ke.push(new ai(Oo(Fe.anchor,de),Oo(Fe.head,de)))}return po(ie.cm,ke,ie.sel.primIndex)}function Ea(ie,de,ke){return ie.line==de.line?on(ke.line,ie.ch-de.ch+ke.ch):on(ke.line+(ie.line-de.line),ie.ch)}function vo(ie,de,ke){for(var Ee=[],Fe=on(ie.first,0),lt=Fe,Et=0;Et<de.length;Et++){var Bt=de[Et],Dt=Ea(Bt.from,Fe,lt),Zt=Ea(Jo(Bt),Fe,lt);if(Fe=Bt.to,lt=Zt,ke=="around"){var En=ie.sel.ranges[Et],Qt=Mn(En.head,En.anchor)<0;Ee[Et]=new ai(Qt?Zt:Dt,Qt?Dt:Zt)}else Ee[Et]=new ai(Dt,Dt)}return new Ji(Ee,ie.sel.primIndex)}function Hi(ie){ie.doc.mode=nn(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&&Pt(de.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function va(ie,de,ke,Ee){function Fe(ki){return ke?ke[ki]:null}function lt(ki,Si,_i){Pa(ki,Si,_i,Ee),Or(ki,"change",ki,de)}function Et(ki,Si){for(var _i=[],mo=ki;mo<Si;++mo)_i.push(new Xo(Zt[mo],Fe(mo),Ee));return _i}var Bt=de.from,Dt=de.to,Zt=de.text,En=fn(ie,Bt.line),Qt=fn(ie,Dt.line),Hn=Pt(Zt),Dn=Fe(Zt.length-1),gr=Dt.line-Bt.line;if(de.full)ie.insert(0,Et(0,Zt.length)),ie.remove(Zt.length,ie.size-Zt.length);else if(Na(ie,de)){var Er=Et(0,Zt.length-1);lt(Qt,Qt.text,Dn),gr&&ie.remove(Bt.line,gr),Er.length&&ie.insert(Bt.line,Er)}else if(En==Qt)if(Zt.length==1)lt(En,En.text.slice(0,Bt.ch)+Hn+En.text.slice(Dt.ch),Dn);else{var _r=Et(1,Zt.length-1);_r.push(new Xo(Hn+En.text.slice(Dt.ch),Dn,Ee)),lt(En,En.text.slice(0,Bt.ch)+Zt[0],Fe(0)),ie.insert(Bt.line+1,_r)}else if(Zt.length==1)lt(En,En.text.slice(0,Bt.ch)+Zt[0]+Qt.text.slice(Dt.ch),Fe(0)),ie.remove(Bt.line+1,gr);else{lt(En,En.text.slice(0,Bt.ch)+Zt[0],Fe(0)),lt(Qt,Hn+Qt.text.slice(Dt.ch),Dn);var si=Et(1,Zt.length-1);gr>1&&ie.remove(Bt.line+1,gr-1),ie.insert(Bt.line+1,si)}Or(ie,"change",ie,de)}function ns(ie,de,ke){function Ee(Fe,lt,Et){if(Fe.linked)for(var Bt=0;Bt<Fe.linked.length;++Bt){var Dt=Fe.linked[Bt];if(Dt.doc!=lt){var Zt=Et&&Dt.sharedHist;ke&&!Zt||(de(Dt.doc,Zt),Ee(Dt.doc,Fe,Zt))}}}Ee(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"?Ve:Ie)(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 ke={from:xn(de.from),to:Jo(de),text:un(ie,de.from,de.to)};return Hs(ie,ke,de.from.line,de.to.line+1),ns(ie,function(Ee){return Hs(Ee,ke,de.from.line,de.to.line+1)},!0),ke}function Ii(ie){for(;ie.length;){var de=Pt(ie);if(de.ranges)ie.pop();else break}}function fo(ie,de){if(de)return Ii(ie.done),Pt(ie.done);if(ie.done.length&&!Pt(ie.done).ranges)return Pt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Pt(ie.done)}function Fo(ie,de,ke,Ee){var Fe=ie.history;Fe.undone.length=0;var lt=+new Date,Et,Bt;if((Fe.lastOp==Ee||Fe.lastOrigin==de.origin&&de.origin&&(de.origin.charAt(0)=="+"&&Fe.lastModTime>lt-(ie.cm?ie.cm.options.historyEventDelay:500)||de.origin.charAt(0)=="*"))&&(Et=fo(Fe,Fe.lastOp==Ee)))Bt=Pt(Et.changes),Mn(de.from,de.to)==0&&Mn(de.from,Bt.to)==0?Bt.to=Jo(de):Et.changes.push(Vo(ie,de));else{var Dt=Pt(Fe.done);for((!Dt||!Dt.ranges)&&ss(ie.sel,Fe.done),Et={changes:[Vo(ie,de)],generation:Fe.generation},Fe.done.push(Et);Fe.done.length>Fe.undoDepth;)Fe.done.shift(),Fe.done[0].ranges||Fe.done.shift()}Fe.done.push(ke),Fe.generation=++Fe.maxGeneration,Fe.lastModTime=Fe.lastSelTime=lt,Fe.lastOp=Fe.lastSelOp=Ee,Fe.lastOrigin=Fe.lastSelOrigin=de.origin,Bt||jt(ie,"historyAdded")}function Bo(ie,de,ke,Ee){var Fe=de.charAt(0);return Fe=="*"||Fe=="+"&&ke.ranges.length==Ee.ranges.length&&ke.somethingSelected()==Ee.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function bs(ie,de,ke,Ee){var Fe=ie.history,lt=Ee&&Ee.origin;ke==Fe.lastSelOp||lt&&Fe.lastSelOrigin==lt&&(Fe.lastModTime==Fe.lastSelTime&&Fe.lastOrigin==lt||Bo(ie,lt,Pt(Fe.done),de))?Fe.done[Fe.done.length-1]=de:ss(de,Fe.done),Fe.lastSelTime=+new Date,Fe.lastSelOrigin=lt,Fe.lastSelOp=ke,Ee&&Ee.clearRedo!==!1&&Ii(Fe.undone)}function ss(ie,de){var ke=Pt(de);ke&&ke.ranges&&ke.equals(ie)||de.push(ie)}function Hs(ie,de,ke,Ee){var Fe=de["spans_"+ie.id],lt=0;ie.iter(Math.max(ie.first,ke),Math.min(ie.first+ie.size,Ee),function(Et){Et.markedSpans&&((Fe||(Fe=de["spans_"+ie.id]={}))[lt]=Et.markedSpans),++lt})}function Qo(ie){if(!ie)return null;for(var de,ke=0;ke<ie.length;++ke)ie[ke].marker.explicitlyCleared?de||(de=ie.slice(0,ke)):de&&de.push(ie[ke]);return de?de.length?de:null:ie}function Ps(ie,de){var ke=de["spans_"+ie.id];if(!ke)return null;for(var Ee=[],Fe=0;Fe<de.text.length;++Fe)Ee.push(Qo(ke[Fe]));return Ee}function qa(ie,de){var ke=Ps(ie,de),Ee=Hr(ie,de);if(!ke)return Ee;if(!Ee)return ke;for(var Fe=0;Fe<ke.length;++Fe){var lt=ke[Fe],Et=Ee[Fe];if(lt&&Et)e:for(var Bt=0;Bt<Et.length;++Bt){for(var Dt=Et[Bt],Zt=0;Zt<lt.length;++Zt)if(lt[Zt].marker==Dt.marker)continue e;lt.push(Dt)}else Et&&(ke[Fe]=Et)}return ke}function ps(ie,de,ke){for(var Ee=[],Fe=0;Fe<ie.length;++Fe){var lt=ie[Fe];if(lt.ranges){Ee.push(ke?Ji.prototype.deepCopy.call(lt):lt);continue}var Et=lt.changes,Bt=[];Ee.push({changes:Bt});for(var Dt=0;Dt<Et.length;++Dt){var Zt=Et[Dt],En=void 0;if(Bt.push({from:Zt.from,to:Zt.to,text:Zt.text}),de)for(var Qt in Zt)(En=Qt.match(/^spans_(\d+)$/))&&pt(de,Number(En[1]))>-1&&(Pt(Bt)[Qt]=Zt[Qt],delete Zt[Qt])}}return Ee}function Uu(ie,de,ke,Ee){if(Ee){var Fe=ie.anchor;if(ke){var lt=Mn(de,Fe)<0;lt!=Mn(ke,Fe)<0?(Fe=de,de=ke):lt!=Mn(de,ke)<0&&(de=ke)}return new ai(Fe,de)}else return new ai(ke||de,de)}function qo(ie,de,ke,Ee,Fe){Fe==null&&(Fe=ie.cm&&(ie.cm.display.shift||ie.extend)),da(ie,new Ji([Uu(ie.sel.primary(),de,ke,Fe)],0),Ee)}function ia(ie,de,ke){for(var Ee=[],Fe=ie.cm&&(ie.cm.display.shift||ie.extend),lt=0;lt<ie.sel.ranges.length;lt++)Ee[lt]=Uu(ie.sel.ranges[lt],de[lt],null,Fe);var Et=po(ie.cm,Ee,ie.sel.primIndex);da(ie,Et,ke)}function ua(ie,de,ke,Ee){var Fe=ie.sel.ranges.slice(0);Fe[de]=ke,da(ie,po(ie.cm,Fe,ie.sel.primIndex),Ee)}function Za(ie,de,ke,Ee){da(ie,wo(de,ke),Ee)}function gs(ie,de,ke){var Ee={ranges:de.ranges,update:function(Fe){this.ranges=[];for(var lt=0;lt<Fe.length;lt++)this.ranges[lt]=new ai(Nn(ie,Fe[lt].anchor),Nn(ie,Fe[lt].head))},origin:ke&&ke.origin};return jt(ie,"beforeSelectionChange",ie,Ee),ie.cm&&jt(ie.cm,"beforeSelectionChange",ie.cm,Ee),Ee.ranges!=de.ranges?po(ie.cm,Ee.ranges,Ee.ranges.length-1):de}function Lo(ie,de,ke){var Ee=ie.history.done,Fe=Pt(Ee);Fe&&Fe.ranges?(Ee[Ee.length-1]=de,ms(ie,de,ke)):da(ie,de,ke)}function da(ie,de,ke){ms(ie,de,ke),bs(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ke)}function ms(ie,de,ke){(cn(ie,"beforeSelectionChange")||ie.cm&&cn(ie.cm,"beforeSelectionChange"))&&(de=gs(ie,de,ke));var Ee=ke&&ke.bias||(Mn(de.primary().head,ie.sel.primary().head)<0?-1:1);pl(ie,El(ie,de,Ee,!0)),!(ke&&ke.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,en(ie.cm)),Or(ie,"cursorActivity",ie))}function zl(ie){pl(ie,El(ie,ie.sel,null,!1))}function El(ie,de,ke,Ee){for(var Fe,lt=0;lt<de.ranges.length;lt++){var Et=de.ranges[lt],Bt=de.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[lt],Dt=eu(ie,Et.anchor,Bt&&Bt.anchor,ke,Ee),Zt=eu(ie,Et.head,Bt&&Bt.head,ke,Ee);(Fe||Dt!=Et.anchor||Zt!=Et.head)&&(Fe||(Fe=de.ranges.slice(0,lt)),Fe[lt]=new ai(Dt,Zt))}return Fe?po(ie.cm,Fe,de.primIndex):de}function ql(ie,de,ke,Ee,Fe){var lt=fn(ie,de.line);if(lt.markedSpans)for(var Et=0;Et<lt.markedSpans.length;++Et){var Bt=lt.markedSpans[Et],Dt=Bt.marker,Zt="selectLeft"in Dt?!Dt.selectLeft:Dt.inclusiveLeft,En="selectRight"in Dt?!Dt.selectRight:Dt.inclusiveRight;if((Bt.from==null||(Zt?Bt.from<=de.ch:Bt.from<de.ch))&&(Bt.to==null||(En?Bt.to>=de.ch:Bt.to>de.ch))){if(Fe&&(jt(Dt,"beforeCursorEnter"),Dt.explicitlyCleared))if(lt.markedSpans){--Et;continue}else break;if(!Dt.atomic)continue;if(ke){var Qt=Dt.find(Ee<0?1:-1),Hn=void 0;if((Ee<0?En:Zt)&&(Qt=Hl(ie,Qt,-Ee,Qt&&Qt.line==de.line?lt:null)),Qt&&Qt.line==de.line&&(Hn=Mn(Qt,ke))&&(Ee<0?Hn<0:Hn>0))return ql(ie,Qt,de,Ee,Fe)}var Dn=Dt.find(Ee<0?-1:1);return(Ee<0?Zt:En)&&(Dn=Hl(ie,Dn,Ee,Dn.line==de.line?lt:null)),Dn?ql(ie,Dn,de,Ee,Fe):null}}return de}function eu(ie,de,ke,Ee,Fe){var lt=Ee||1,Et=ql(ie,de,ke,lt,Fe)||!Fe&&ql(ie,de,ke,lt,!0)||ql(ie,de,ke,-lt,Fe)||!Fe&&ql(ie,de,ke,-lt,!0);return Et||(ie.cantEdit=!0,on(ie.first,0))}function Hl(ie,de,ke,Ee){return ke<0&&de.ch==0?de.line>ie.first?Nn(ie,on(de.line-1)):null:ke>0&&de.ch==(Ee||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+ke)}function ta(ie){ie.setSelection(on(ie.firstLine(),0),on(ie.lastLine()),ft)}function Ts(ie,de,ke){var Ee={canceled:!1,from:de.from,to:de.to,text:de.text,origin:de.origin,cancel:function(){return Ee.canceled=!0}};return ke&&(Ee.update=function(Fe,lt,Et,Bt){Fe&&(Ee.from=Nn(ie,Fe)),lt&&(Ee.to=Nn(ie,lt)),Et&&(Ee.text=Et),Bt!==void 0&&(Ee.origin=Bt)}),jt(ie,"beforeChange",ie,Ee),ie.cm&&jt(ie.cm,"beforeChange",ie.cm,Ee),Ee.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:Ee.from,to:Ee.to,text:Ee.text,origin:Ee.origin}}function Ga(ie,de,ke){if(ie.cm){if(!ie.cm.curOp)return Bn(ie.cm,Ga)(ie,de,ke);if(ie.cm.state.suppressEdits)return}if(!((cn(ie,"beforeChange")||ie.cm&&cn(ie.cm,"beforeChange"))&&(de=Ts(ie,de,!0),!de))){var Ee=ur&&!ke&&vi(ie,de.from,de.to);if(Ee)for(var Fe=Ee.length-1;Fe>=0;--Fe)fa(ie,{from:Ee[Fe].from,to:Ee[Fe].to,text:Fe?[""]: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 ke=ka(ie,de);Fo(ie,de,ke,ie.cm?ie.cm.curOp.id:NaN),tu(ie,de,ke,Hr(ie,de));var Ee=[];ns(ie,function(Fe,lt){!lt&&pt(Ee,Fe.history)==-1&&(ya(Fe.history,de),Ee.push(Fe.history)),tu(Fe,de,null,Hr(Fe,de))})}}function Gl(ie,de,ke){var Ee=ie.cm&&ie.cm.state.suppressEdits;if(!(Ee&&!ke)){for(var Fe=ie.history,lt,Et=ie.sel,Bt=de=="undo"?Fe.done:Fe.undone,Dt=de=="undo"?Fe.undone:Fe.done,Zt=0;Zt<Bt.length&&(lt=Bt[Zt],!(ke?lt.ranges&&!lt.equals(ie.sel):!lt.ranges));Zt++);if(Zt!=Bt.length){for(Fe.lastOrigin=Fe.lastSelOrigin=null;;)if(lt=Bt.pop(),lt.ranges){if(ss(lt,Dt),ke&&!lt.equals(ie.sel)){da(ie,lt,{clearRedo:!1});return}Et=lt}else if(Ee){Bt.push(lt);return}else break;var En=[];ss(Et,Dt),Dt.push({changes:En,generation:Fe.generation}),Fe.generation=lt.generation||++Fe.maxGeneration;for(var Qt=cn(ie,"beforeChange")||ie.cm&&cn(ie.cm,"beforeChange"),Hn=function(Er){var _r=lt.changes[Er];if(_r.origin=de,Qt&&!Ts(ie,_r,!1))return Bt.length=0,{};En.push(Vo(ie,_r));var si=Er?ka(ie,_r):Pt(Bt);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=lt.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(Ct(ie.sel.ranges,function(Fe){return new ai(on(Fe.anchor.line+de,Fe.anchor.ch),on(Fe.head.line+de,Fe.head.ch))}),ie.sel.primIndex),ie.cm)){ma(ie.cm,ie.first,ie.first-de,de);for(var ke=ie.cm.display,Ee=ke.viewFrom;Ee<ke.viewTo;Ee++)Po(ie.cm,Ee,"gutter")}}function tu(ie,de,ke,Ee){if(ie.cm&&!ie.cm.curOp)return Bn(ie.cm,tu)(ie,de,ke,Ee);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 Fe=de.text.length-1-(ie.first-de.from.line);oc(ie,Fe),de={from:on(ie.first,0),to:on(de.to.line+Fe,de.to.ch),text:[Pt(de.text)],origin:de.origin}}var lt=ie.lastLine();de.to.line>lt&&(de={from:de.from,to:on(lt,fn(ie,lt).text.length),text:[de.text[0]],origin:de.origin}),de.removed=un(ie,de.from,de.to),ke||(ke=ka(ie,de)),ie.cm?Tu(ie.cm,de,Ee):va(ie,de,Ee),ms(ie,ke,ft),ie.cantEdit&&eu(ie,on(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Tu(ie,de,ke){var Ee=ie.doc,Fe=ie.display,lt=de.from,Et=de.to,Bt=!1,Dt=lt.line;ie.options.lineWrapping||(Dt=$t(Pi(fn(Ee,lt.line))),Ee.iter(Dt,Et.line+1,function(Dn){if(Dn==Fe.maxLine)return Bt=!0,!0})),Ee.sel.contains(de.from,de.to)>-1&&en(ie),va(Ee,de,ke,Ha(ie)),ie.options.lineWrapping||(Ee.iter(Dt,lt.line+de.text.length,function(Dn){var gr=Wo(Dn);gr>Fe.maxLineLength&&(Fe.maxLine=Dn,Fe.maxLineLength=gr,Fe.maxLineChanged=!0,Bt=!1)}),Bt&&(ie.curOp.updateMaxLine=!0)),br(Ee,lt.line),Qn(ie,400);var Zt=de.text.length-(Et.line-lt.line)-1;de.full?ma(ie):lt.line==Et.line&&de.text.length==1&&!Na(ie.doc,de)?Po(ie,lt.line,"text"):ma(ie,lt.line,Et.line+1,Zt);var En=cn(ie,"changes"),Qt=cn(ie,"change");if(Qt||En){var Hn={from:lt,to:Et,text:de.text,removed:de.removed,origin:de.origin};Qt&&Or(ie,"change",ie,Hn),En&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Hn)}ie.display.selForContextMenu=null}function $u(ie,de,ke,Ee,Fe){var lt;Ee||(Ee=ke),Mn(Ee,ke)<0&&(lt=[Ee,ke],ke=lt[0],Ee=lt[1]),typeof de=="string"&&(de=ie.splitLines(de)),Ga(ie,{from:ke,to:Ee,text:de,origin:Fe})}function Tl(ie,de,ke,Ee){ke<ie.line?ie.line+=Ee:de<ie.line&&(ie.line=de,ie.ch=0)}function Zo(ie,de,ke,Ee){for(var Fe=0;Fe<ie.length;++Fe){var lt=ie[Fe],Et=!0;if(lt.ranges){lt.copied||(lt=ie[Fe]=lt.deepCopy(),lt.copied=!0);for(var Bt=0;Bt<lt.ranges.length;Bt++)Tl(lt.ranges[Bt].anchor,de,ke,Ee),Tl(lt.ranges[Bt].head,de,ke,Ee);continue}for(var Dt=0;Dt<lt.changes.length;++Dt){var Zt=lt.changes[Dt];if(ke<Zt.from.line)Zt.from=on(Zt.from.line+Ee,Zt.from.ch),Zt.to=on(Zt.to.line+Ee,Zt.to.ch);else if(de<=Zt.to.line){Et=!1;break}}Et||(ie.splice(0,Fe+1),Fe=0)}}function ya(ie,de){var ke=de.from.line,Ee=de.to.line,Fe=de.text.length-(Ee-ke)-1;Zo(ie.done,ke,Ee,Fe),Zo(ie.undone,ke,Ee,Fe)}function ls(ie,de,ke,Ee){var Fe=de,lt=de;return typeof de=="number"?lt=fn(ie,An(ie,de)):Fe=$t(de),Fe==null?null:(Ee(lt,Fe)&&ie.cm&&Po(ie.cm,Fe,ke),lt)}function Sa(ie){this.lines=ie,this.parent=null;for(var de=0,ke=0;ke<ie.length;++ke)ie[ke].parent=this,de+=ie[ke].height;this.height=de}Sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,de){for(var ke=ie,Ee=ie+de;ke<Ee;++ke){var Fe=this.lines[ke];this.height-=Fe.height,na(Fe),Or(Fe,"delete")}this.lines.splice(ie,de)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,de,ke){this.height+=ke,this.lines=this.lines.slice(0,ie).concat(de).concat(this.lines.slice(ie));for(var Ee=0;Ee<de.length;++Ee)de[Ee].parent=this},iterN:function(ie,de,ke){for(var Ee=ie+de;ie<Ee;++ie)if(ke(this.lines[ie]))return!0}};function Go(ie){this.children=ie;for(var de=0,ke=0,Ee=0;Ee<ie.length;++Ee){var Fe=ie[Ee];de+=Fe.chunkSize(),ke+=Fe.height,Fe.parent=this}this.size=de,this.height=ke,this.parent=null}Go.prototype={chunkSize:function(){return this.size},removeInner:function(ie,de){this.size-=de;for(var ke=0;ke<this.children.length;++ke){var Ee=this.children[ke],Fe=Ee.chunkSize();if(ie<Fe){var lt=Math.min(de,Fe-ie),Et=Ee.height;if(Ee.removeInner(ie,lt),this.height-=Et-Ee.height,Fe==lt&&(this.children.splice(ke--,1),Ee.parent=null),(de-=lt)==0)break;ie=0}else ie-=Fe}if(this.size-de<25&&(this.children.length>1||!(this.children[0]instanceof Sa))){var Bt=[];this.collapse(Bt),this.children=[new Sa(Bt)],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,ke){this.size+=de.length,this.height+=ke;for(var Ee=0;Ee<this.children.length;++Ee){var Fe=this.children[Ee],lt=Fe.chunkSize();if(ie<=lt){if(Fe.insertInner(ie,de,ke),Fe.lines&&Fe.lines.length>50){for(var Et=Fe.lines.length%25+25,Bt=Et;Bt<Fe.lines.length;){var Dt=new Sa(Fe.lines.slice(Bt,Bt+=25));Fe.height-=Dt.height,this.children.splice(++Ee,0,Dt),Dt.parent=this}Fe.lines=Fe.lines.slice(0,Et),this.maybeSpill()}break}ie-=lt}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var de=ie.children.splice(ie.children.length-5,5),ke=new Go(de);if(ie.parent){ie.size-=ke.size,ie.height-=ke.height;var Fe=pt(ie.parent.children,ie);ie.parent.children.splice(Fe+1,0,ke)}else{var Ee=new Go(ie.children);Ee.parent=ie,ie.children=[Ee,ke],ie=Ee}ke.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,de,ke){for(var Ee=0;Ee<this.children.length;++Ee){var Fe=this.children[Ee],lt=Fe.chunkSize();if(ie<lt){var Et=Math.min(de,lt-ie);if(Fe.iterN(ie,Et,ke))return!0;if((de-=Et)==0)break;ie=0}else ie-=lt}}};var vs=function(ie,de,ke){if(ke)for(var Ee in ke)ke.hasOwnProperty(Ee)&&(this[Ee]=ke[Ee]);this.doc=ie,this.node=de};vs.prototype.clear=function(){var ie=this.doc.cm,de=this.line.widgets,ke=this.line,Ee=$t(ke);if(!(Ee==null||!de)){for(var Fe=0;Fe<de.length;++Fe)de[Fe]==this&&de.splice(Fe--,1);de.length||(ke.widgets=null);var lt=tl(this);Xn(ke,Math.max(0,ke.height-lt)),ie&&(pn(ie,function(){gl(ie,ke,-lt),Po(ie,Ee,"widget")}),Or(ie,"lineWidgetCleared",ie,this,Ee))}},vs.prototype.changed=function(){var ie=this,de=this.height,ke=this.doc.cm,Ee=this.line;this.height=null;var Fe=tl(this)-de;Fe&&(Yn(this.doc,Ee)||Xn(Ee,Ee.height+Fe),ke&&pn(ke,function(){ke.curOp.forceUpdate=!0,gl(ke,Ee,Fe),Or(ke,"lineWidgetChanged",ke,ie,$t(Ee))}))},yn(vs);function gl(ie,de,ke){ro(de)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Ed(ie,ke)}function pu(ie,de,ke,Ee){var Fe=new vs(ie,ke,Ee),lt=ie.cm;return lt&&Fe.noHScroll&&(lt.display.alignWidgets=!0),ls(ie,de,"widget",function(Et){var Bt=Et.widgets||(Et.widgets=[]);if(Fe.insertAt==null?Bt.push(Fe):Bt.splice(Math.min(Bt.length-1,Math.max(0,Fe.insertAt)),0,Fe),Fe.line=Et,lt&&!Yn(ie,Et)){var Dt=ro(Et)<ie.scrollTop;Xn(Et,Et.height+tl(Fe)),Dt&&Ed(lt,Fe.height),lt.curOp.forceUpdate=!0}return!0}),lt&&Or(lt,"lineWidgetAdded",lt,Fe,typeof de=="number"?de:$t(de)),Fe}var cf=0,hn=function(ie,de){this.lines=[],this.type=de,this.doc=ie,this.id=++cf};hn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,de=ie&&!ie.curOp;if(de&&fl(ie),cn(this,"clear")){var ke=this.find();ke&&Or(this,"clear",ke.from,ke.to)}for(var Ee=null,Fe=null,lt=0;lt<this.lines.length;++lt){var Et=this.lines[lt],Bt=$i(Et.markedSpans,this);ie&&!this.collapsed?Po(ie,$t(Et),"text"):ie&&(Bt.to!=null&&(Fe=$t(Et)),Bt.from!=null&&(Ee=$t(Et))),Et.markedSpans=Mi(Et.markedSpans,Bt),Bt.from==null&&this.collapsed&&!Yn(this.doc,Et)&&ie&&Xn(Et,Hu(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Dt=0;Dt<this.lines.length;++Dt){var Zt=Pi(this.lines[Dt]),En=Wo(Zt);En>ie.display.maxLineLength&&(ie.display.maxLine=Zt,ie.display.maxLineLength=En,ie.display.maxLineChanged=!0)}Ee!=null&&ie&&this.collapsed&&ma(ie,Ee,Fe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&zl(ie.doc)),ie&&Or(ie,"markerCleared",ie,this,Ee,Fe),de&&bc(ie),this.parent&&this.parent.clear()}},hn.prototype.find=function(ie,de){ie==null&&this.type=="bookmark"&&(ie=1);for(var ke,Ee,Fe=0;Fe<this.lines.length;++Fe){var lt=this.lines[Fe],Et=$i(lt.markedSpans,this);if(Et.from!=null&&(ke=on(de?lt:$t(lt),Et.from),ie==-1))return ke;if(Et.to!=null&&(Ee=on(de?lt:$t(lt),Et.to),ie==1))return Ee}return ke&&{from:ke,to:Ee}},hn.prototype.changed=function(){var ie=this,de=this.find(-1,!0),ke=this,Ee=this.doc.cm;!de||!Ee||pn(Ee,function(){var Fe=de.line,lt=$t(de.line),Et=vc(Ee,lt);if(Et&&(Es(Et),Ee.curOp.selectionChanged=Ee.curOp.forceUpdate=!0),Ee.curOp.updateMaxLine=!0,!Yn(ke.doc,Fe)&&ke.height!=null){var Bt=ke.height;ke.height=null;var Dt=tl(ke)-Bt;Dt&&Xn(Fe,Fe.height+Dt)}Or(Ee,"markerChanged",Ee,ie)})},hn.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)},hn.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)}},yn(hn);function Pc(ie,de,ke,Ee,Fe){if(Ee&&Ee.shared)return hf(ie,de,ke,Ee,Fe);if(ie.cm&&!ie.cm.curOp)return Bn(ie.cm,Pc)(ie,de,ke,Ee,Fe);var lt=new hn(ie,Fe),Et=Mn(de,ke);if(Ee&&St(Ee,lt,!1),Et>0||Et==0&<.clearWhenEmpty!==!1)return lt;if(lt.replacedWith&&(lt.collapsed=!0,lt.widgetNode=De("span",[lt.replacedWith],"CodeMirror-widget"),Ee.handleMouseEvents||lt.widgetNode.setAttribute("cm-ignore-events","true"),Ee.insertLeft&&(lt.widgetNode.insertLeft=!0)),lt.collapsed){if(Oi(ie,de.line,de,ke,lt)||de.line!=ke.line&&Oi(ie,ke.line,de,ke,lt))throw new Error("Inserting collapsed marker partially overlapping an existing one");wn()}lt.addToHistory&&Fo(ie,{from:de,to:ke,origin:"markText"},ie.sel,NaN);var Bt=de.line,Dt=ie.cm,Zt;if(ie.iter(Bt,ke.line+1,function(Qt){Dt&<.collapsed&&!Dt.options.lineWrapping&&Pi(Qt)==Dt.display.maxLine&&(Zt=!0),lt.collapsed&&Bt!=de.line&&Xn(Qt,0),yo(Qt,new zr(lt,Bt==de.line?de.ch:null,Bt==ke.line?ke.ch:null)),++Bt}),lt.collapsed&&ie.iter(de.line,ke.line+1,function(Qt){Yn(ie,Qt)&&Xn(Qt,0)}),lt.clearOnEnter&&Ot(lt,"beforeCursorEnter",function(){return lt.clear()}),lt.readOnly&&(cr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),lt.collapsed&&(lt.id=++cf,lt.atomic=!0),Dt){if(Zt&&(Dt.curOp.updateMaxLine=!0),lt.collapsed)ma(Dt,de.line,ke.line+1);else if(lt.className||lt.startStyle||lt.endStyle||lt.css||lt.attributes||lt.title)for(var En=de.line;En<=ke.line;En++)Po(Dt,En,"text");lt.atomic&&zl(Dt.doc),Or(Dt,"markerAdded",Dt,lt)}return lt}var Ku=function(ie,de){this.markers=ie,this.primary=de;for(var ke=0;ke<ie.length;++ke)ie[ke].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();Or(this,"clear")}},Ku.prototype.find=function(ie,de){return this.primary.find(ie,de)},yn(Ku);function hf(ie,de,ke,Ee,Fe){Ee=St(Ee),Ee.shared=!1;var lt=[Pc(ie,de,ke,Ee,Fe)],Et=lt[0],Bt=Ee.widgetNode;return ns(ie,function(Dt){Bt&&(Ee.widgetNode=Bt.cloneNode(!0)),lt.push(Pc(Dt,Nn(Dt,de),Nn(Dt,ke),Ee,Fe));for(var Zt=0;Zt<Dt.linked.length;++Zt)if(Dt.linked[Zt].isParent)return;Et=Pt(lt)}),new Ku(lt,Et)}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 ke=0;ke<de.length;ke++){var Ee=de[ke],Fe=Ee.find(),lt=ie.clipPos(Fe.from),Et=ie.clipPos(Fe.to);if(Mn(lt,Et)){var Bt=Pc(ie,lt,Et,Ee.primary,Ee.primary.type);Ee.markers.push(Bt),Bt.parent=Ee}}}function Md(ie){for(var de=function(Ee){var Fe=ie[Ee],lt=[Fe.primary.doc];ns(Fe.primary.doc,function(Dt){return lt.push(Dt)});for(var Et=0;Et<Fe.markers.length;Et++){var Bt=Fe.markers[Et];pt(lt,Bt.doc)==-1&&(Bt.parent=null,Fe.markers.splice(Et--,1))}},ke=0;ke<ie.length;ke++)de(ke)}var Kp=0,Ms=function(ie,de,ke,Ee,Fe){if(!(this instanceof Ms))return new Ms(ie,de,ke,Ee,Fe);ke==null&&(ke=0),Go.call(this,[new Sa([new Xo("",null)])]),this.first=ke,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ke;var lt=on(ke,0);this.sel=wo(lt),this.history=new ji(null),this.id=++Kp,this.modeOption=de,this.lineSep=Ee,this.direction=Fe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),va(this,{from:lt,to:lt,text:ie}),da(this,wo(lt),ft)};Ms.prototype=at(Go.prototype,{constructor:Ms,iter:function(ie,de,ke){ke?this.iterN(ie-this.first,de-ie,ke):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,de){for(var ke=0,Ee=0;Ee<de.length;++Ee)ke+=de[Ee].height;this.insertInner(ie-this.first,de,ke)},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),ke=this.first+this.size-1;Ga(this,{from:de,to:on(ke,fn(this,ke).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,ke,Ee){de=Nn(this,de),ke=ke?Nn(this,ke):de,$u(this,ie,de,ke,Ee)},getRange:function(ie,de,ke){var Ee=un(this,Nn(this,ie),Nn(this,de));return ke===!1?Ee:Ee.join(ke||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 $t(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(),ke;return ie==null||ie=="head"?ke=de.head:ie=="anchor"?ke=de.anchor:ie=="end"||ie=="to"||ie===!1?ke=de.to():ke=de.from(),ke},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:In(function(ie,de,ke){Za(this,Nn(this,typeof ie=="number"?on(ie,de||0):ie),null,ke)}),setSelection:In(function(ie,de,ke){Za(this,Nn(this,ie),Nn(this,de||ie),ke)}),extendSelection:In(function(ie,de,ke){qo(this,Nn(this,ie),de&&Nn(this,de),ke)}),extendSelections:In(function(ie,de){ia(this,zn(this,ie),de)}),extendSelectionsBy:In(function(ie,de){var ke=Ct(this.sel.ranges,ie);ia(this,zn(this,ke),de)}),setSelections:In(function(ie,de,ke){if(ie.length){for(var Ee=[],Fe=0;Fe<ie.length;Fe++)Ee[Fe]=new ai(Nn(this,ie[Fe].anchor),Nn(this,ie[Fe].head));de==null&&(de=Math.min(ie.length-1,this.sel.primIndex)),da(this,po(this.cm,Ee,de),ke)}}),addSelection:In(function(ie,de,ke){var Ee=this.sel.ranges.slice(0);Ee.push(new ai(Nn(this,ie),Nn(this,de||ie))),da(this,po(this.cm,Ee,Ee.length-1),ke)}),getSelection:function(ie){for(var de=this.sel.ranges,ke,Ee=0;Ee<de.length;Ee++){var Fe=un(this,de[Ee].from(),de[Ee].to());ke=ke?ke.concat(Fe):Fe}return ie===!1?ke:ke.join(ie||this.lineSeparator())},getSelections:function(ie){for(var de=[],ke=this.sel.ranges,Ee=0;Ee<ke.length;Ee++){var Fe=un(this,ke[Ee].from(),ke[Ee].to());ie!==!1&&(Fe=Fe.join(ie||this.lineSeparator())),de[Ee]=Fe}return de},replaceSelection:function(ie,de,ke){for(var Ee=[],Fe=0;Fe<this.sel.ranges.length;Fe++)Ee[Fe]=ie;this.replaceSelections(Ee,de,ke||"+input")},replaceSelections:In(function(ie,de,ke){for(var Ee=[],Fe=this.sel,lt=0;lt<Fe.ranges.length;lt++){var Et=Fe.ranges[lt];Ee[lt]={from:Et.from(),to:Et.to(),text:this.splitLines(ie[lt]),origin:ke}}for(var Bt=de&&de!="end"&&vo(this,Ee,de),Dt=Ee.length-1;Dt>=0;Dt--)Ga(this,Ee[Dt]);Bt?Lo(this,Bt):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,ke=0,Ee=0;Ee<ie.done.length;Ee++)ie.done[Ee].ranges||++de;for(var Fe=0;Fe<ie.undone.length;Fe++)ie.undone[Fe].ranges||++ke;return{undo:de,redo:ke}},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,ke){return ls(this,ie,"gutter",function(Ee){var Fe=Ee.gutterMarkers||(Ee.gutterMarkers={});return Fe[de]=ke,!ke&&nt(Fe)&&(Ee.gutterMarkers=null),!0})}),clearGutter:In(function(ie){var de=this;this.iter(function(ke){ke.gutterMarkers&&ke.gutterMarkers[ie]&&ls(de,ke,"gutter",function(){return ke.gutterMarkers[ie]=null,nt(ke.gutterMarkers)&&(ke.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=$t(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,ke){return ls(this,ie,de=="gutter"?"gutter":"class",function(Ee){var Fe=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass";if(!Ee[Fe])Ee[Fe]=ke;else{if(Ce(ke).test(Ee[Fe]))return!1;Ee[Fe]+=" "+ke}return!0})}),removeLineClass:In(function(ie,de,ke){return ls(this,ie,de=="gutter"?"gutter":"class",function(Ee){var Fe=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass",lt=Ee[Fe];if(lt)if(ke==null)Ee[Fe]=null;else{var Et=lt.match(Ce(ke));if(!Et)return!1;var Bt=Et.index+Et[0].length;Ee[Fe]=lt.slice(0,Et.index)+(!Et.index||Bt==lt.length?"":" ")+lt.slice(Bt)||null}else return!1;return!0})}),addLineWidget:In(function(ie,de,ke){return pu(this,ie,de,ke)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,de,ke){return Pc(this,Nn(this,ie),Nn(this,de),ke,ke&&ke.type||"range")},setBookmark:function(ie,de){var ke={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,ke,"bookmark")},findMarksAt:function(ie){ie=Nn(this,ie);var de=[],ke=fn(this,ie.line).markedSpans;if(ke)for(var Ee=0;Ee<ke.length;++Ee){var Fe=ke[Ee];(Fe.from==null||Fe.from<=ie.ch)&&(Fe.to==null||Fe.to>=ie.ch)&&de.push(Fe.marker.parent||Fe.marker)}return de},findMarks:function(ie,de,ke){ie=Nn(this,ie),de=Nn(this,de);var Ee=[],Fe=ie.line;return this.iter(ie.line,de.line+1,function(lt){var Et=lt.markedSpans;if(Et)for(var Bt=0;Bt<Et.length;Bt++){var Dt=Et[Bt];!(Dt.to!=null&&Fe==ie.line&&ie.ch>=Dt.to||Dt.from==null&&Fe!=ie.line||Dt.from!=null&&Fe==de.line&&Dt.from>=de.ch)&&(!ke||ke(Dt.marker))&&Ee.push(Dt.marker.parent||Dt.marker)}++Fe}),Ee},getAllMarks:function(){var ie=[];return this.iter(function(de){var ke=de.markedSpans;if(ke)for(var Ee=0;Ee<ke.length;++Ee)ke[Ee].from!=null&&ie.push(ke[Ee].marker)}),ie},posFromIndex:function(ie){var de,ke=this.first,Ee=this.lineSeparator().length;return this.iter(function(Fe){var lt=Fe.text.length+Ee;if(lt>ie)return de=ie,!0;ie-=lt,++ke}),Nn(this,on(ke,de))},indexFromPos:function(ie){ie=Nn(this,ie);var de=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ke=this.lineSeparator().length;return this.iter(this.first,ie.line,function(Ee){de+=Ee.text.length+ke}),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,ke=this.first+this.size;ie.from!=null&&ie.from>de&&(de=ie.from),ie.to!=null&&ie.to<ke&&(ke=ie.to);var Ee=new Ms(Gn(this,de,ke),ie.mode||this.modeOption,de,this.lineSep,this.direction);return ie.sharedHist&&(Ee.history=this.history),(this.linked||(this.linked=[])).push({doc:Ee,sharedHist:ie.sharedHist}),Ee.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Yc(Ee,gh(this)),Ee},unlinkDoc:function(ie){if(ie instanceof ra&&(ie=ie.doc),this.linked)for(var de=0;de<this.linked.length;++de){var ke=this.linked[de];if(ke.doc==ie){this.linked.splice(de,1),ie.unlinkDoc(this),Md(gh(this));break}}if(ie.history==this.history){var Ee=[ie.id];ns(ie,function(Fe){return Ee.push(Fe.id)},!0),ie.history=new ji(null),ie.history.done=ps(this.history.done,Ee),ie.history.undone=ps(this.history.undone,Ee)}},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):Dr(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),!(Kt(de,ie)||nl(de.display,ie))){On(ie),je&&(Kh=+new Date);var ke=rl(de,ie,!0),Ee=ie.dataTransfer.files;if(!(!ke||de.isReadOnly()))if(Ee&&Ee.length&&window.FileReader&&window.File)for(var Fe=Ee.length,lt=Array(Fe),Et=0,Bt=function(){++Et==Fe&&Bn(de,function(){ke=Nn(de.doc,ke);var Dn={from:ke,to:ke,text:de.doc.splitLines(lt.filter(function(gr){return gr!=null}).join(de.doc.lineSeparator())),origin:"paste"};Ga(de.doc,Dn),Lo(de.doc,wo(Nn(de.doc,ke),Nn(de.doc,Jo(Dn))))})()},Dt=function(Dn,gr){if(de.options.allowDropFileTypes&&pt(de.options.allowDropFileTypes,Dn.type)==-1){Bt();return}var Er=new FileReader;Er.onerror=function(){return Bt()},Er.onload=function(){var _r=Er.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(_r)){Bt();return}lt[gr]=_r,Bt()},Er.readAsText(Dn)},Zt=0;Zt<Ee.length;Zt++)Dt(Ee[Zt],Zt);else{if(de.state.draggingText&&de.doc.sel.contains(ke)>-1){de.state.draggingText(ie),setTimeout(function(){return de.display.input.focus()},20);return}try{var En=ie.dataTransfer.getData("Text");if(En){var Qt;if(de.state.draggingText&&!de.state.draggingText.copy&&(Qt=de.listSelections()),ms(de.doc,wo(ke,ke)),Qt)for(var Hn=0;Hn<Qt.length;++Hn)$u(de.doc,"",Qt[Hn].anchor,Qt[Hn].head,"drag");de.replaceSelection(En,"around","paste"),de.display.input.focus()}}catch(Dn){}}}}function Vh(ie,de){if(je&&(!ie.state.draggingText||+new Date-Kh<100)){Tr(de);return}if(!(Kt(ie,de)||nl(ie.display,de))&&(de.dataTransfer.setData("Text",ie.getSelection()),de.dataTransfer.effectAllowed="copyMove",de.dataTransfer.setDragImage&&!Pe)){var ke=Ne("img",null,null,"position: fixed; left: 0; top: 0;");ke.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Se&&(ke.width=ke.height=1,ie.display.wrapper.appendChild(ke),ke._top=ke.offsetTop),de.dataTransfer.setDragImage(ke,0,0),Se&&ke.parentNode.removeChild(ke)}}function df(ie,de){var ke=rl(ie,de);if(ke){var Ee=document.createDocumentFragment();zo(ie,ke,Ee),ie.display.dragCursor||(ie.display.dragCursor=Ne("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Le(ie.display.dragCursor,Ee)}}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"),ke=[],Ee=0;Ee<de.length;Ee++){var Fe=de[Ee].CodeMirror;Fe&&ke.push(Fe)}ke.length&&ke[0].operation(function(){for(var lt=0;lt<ke.length;lt++)ie(ke[lt])})}}var kd=!1;function Wl(){kd||(mh(),kd=!0)}function mh(){var ie;Ot(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,ff(pf)},100))}),Ot(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 ke,Ee,Fe,lt,Et=0;Et<de.length-1;Et++){var Bt=de[Et];if(/^(cmd|meta|m)$/i.test(Bt))lt=!0;else if(/^a(lt)?$/i.test(Bt))ke=!0;else if(/^(c|ctrl|control)$/i.test(Bt))Ee=!0;else if(/^s(hift)?$/i.test(Bt))Fe=!0;else throw new Error("Unrecognized modifier name: "+Bt)}return ke&&(ie="Alt-"+ie),Ee&&(ie="Ctrl-"+ie),lt&&(ie="Cmd-"+ie),Fe&&(ie="Shift-"+ie),ie}function Od(ie){var de={};for(var ke in ie)if(ie.hasOwnProperty(ke)){var Ee=ie[ke];if(/^(name|fallthrough|(de|at)tach)$/.test(ke))continue;if(Ee=="..."){delete ie[ke];continue}for(var Fe=Ct(ke.split(" "),Nd),lt=0;lt<Fe.length;lt++){var Et=void 0,Bt=void 0;lt==Fe.length-1?(Bt=Fe.join(" "),Et=Ee):(Bt=Fe.slice(0,lt+1).join(" "),Et="...");var Dt=de[Bt];if(!Dt)de[Bt]=Et;else if(Dt!=Et)throw new Error("Inconsistent bindings for "+Bt)}delete ie[ke]}for(var Zt in de)ie[Zt]=de[Zt];return ie}function Ul(ie,de,ke,Ee){de=Ec(de);var Fe=de.call?de.call(ie,Ee):de[ie];if(Fe===!1)return"nothing";if(Fe==="...")return"multi";if(Fe!=null&&ke(Fe))return"handled";if(de.fallthrough){if(Object.prototype.toString.call(de.fallthrough)!="[object Array]")return Ul(ie,de.fallthrough,ke,Ee);for(var lt=0;lt<de.fallthrough.length;lt++){var Et=Ul(ie,de.fallthrough[lt],ke,Ee);if(Et)return Et}}}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,ke){var Ee=ie;return de.altKey&&Ee!="Alt"&&(ie="Alt-"+ie),(pe?de.metaKey:de.ctrlKey)&&Ee!="Ctrl"&&(ie="Ctrl-"+ie),(pe?de.ctrlKey:de.metaKey)&&Ee!="Mod"&&(ie="Cmd-"+ie),!ke&&de.shiftKey&&Ee!="Shift"&&(ie="Shift-"+ie),ie}function jd(ie,de){if(Se&&ie.keyCode==34&&ie.char)return!1;var ke=Mu[ie.keyCode];return ke==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ke=ie.code),Ad(ke,ie,de))}function Ec(ie){return typeof ie=="string"?ml[ie]:ie}function ol(ie,de){for(var ke=ie.doc.sel.ranges,Ee=[],Fe=0;Fe<ke.length;Fe++){for(var lt=de(ke[Fe]);Ee.length&&Mn(lt.from,Pt(Ee).to)<=0;){var Et=Ee.pop();if(Mn(Et.from,lt.from)<0){lt.from=Et.from;break}}Ee.push(lt)}pn(ie,function(){for(var Bt=Ee.length-1;Bt>=0;Bt--)$u(ie.doc,"",Ee[Bt].from,Ee[Bt].to,"+delete");Sc(ie)})}function Id(ie,de,ke){var Ee=$e(ie.text,de+ke,ke);return Ee<0||Ee>ie.text.length?null:Ee}function us(ie,de,ke){var Ee=Id(ie,de.ch,ke);return Ee==null?null:new on(de.line,Ee,ke<0?"after":"before")}function ea(ie,de,ke,Ee,Fe){if(ie){de.doc.direction=="rtl"&&(Fe=-Fe);var lt=gt(ke,de.doc.direction);if(lt){var Et=Fe<0?Pt(lt):lt[0],Bt=Fe<0==(Et.level==1),Dt=Bt?"after":"before",Zt;if(Et.level>0||de.doc.direction=="rtl"){var En=Ru(de,ke);Zt=Fe<0?ke.text.length-1:0;var Qt=Bl(de,En,Zt).top;Zt=tt(function(Hn){return Bl(de,En,Hn).top==Qt},Fe<0==(Et.level==1)?Et.from:Et.to-1,Zt),Dt=="before"&&(Zt=Id(ke,Zt,1))}else Zt=Fe<0?Et.to:Et.from;return new on(Ee,Zt,Dt)}}return new on(Ee,Fe<0?ke.text.length:0,Fe<0?"before":"after")}function Ta(ie,de,ke,Ee){var Fe=gt(de,ie.doc.direction);if(!Fe)return us(de,ke,Ee);ke.ch>=de.text.length?(ke.ch=de.text.length,ke.sticky="before"):ke.ch<=0&&(ke.ch=0,ke.sticky="after");var lt=Te(Fe,ke.ch,ke.sticky),Et=Fe[lt];if(ie.doc.direction=="ltr"&&Et.level%2==0&&(Ee>0?Et.to>ke.ch:Et.from<ke.ch))return us(de,ke,Ee);var Bt=function(si,ki){return Id(de,si instanceof on?si.ch:si,ki)},Dt,Zt=function(si){return ie.options.lineWrapping?(Dt=Dt||Ru(ie,de),fh(ie,de,Dt,si)):{begin:0,end:de.text.length}},En=Zt(ke.sticky=="before"?Bt(ke,-1):ke.ch);if(ie.doc.direction=="rtl"||Et.level==1){var Qt=Et.level==1==Ee<0,Hn=Bt(ke,Qt?1:-1);if(Hn!=null&&(Qt?Hn<=Et.to&&Hn<=En.end:Hn>=Et.from&&Hn>=En.begin)){var Dn=Qt?"before":"after";return new on(ke.line,Hn,Dn)}}var gr=function(si,ki,Si){for(var _i=function(Ya,Ds){return Ds?new on(ke.line,Bt(Ya,1),"before"):new on(ke.line,Ya,"after")};si>=0&&si<Fe.length;si+=ki){var mo=Fe[si],mi=ki>0==(mo.level!=1),ko=mi?Si.begin:Bt(Si.end,-1);if(mo.from<=ko&&ko<mo.to||(ko=mi?mo.from:Bt(mo.to,-1),Si.begin<=ko&&ko<Si.end))return _i(ko,mi)}},Er=gr(lt+Ee,Ee,En);if(Er)return Er;var _r=Ee>0?En.end:Bt(En.begin,-1);return _r!=null&&!(Ee>0&&_r==de.text.length)&&(Er=gr(Ee>0?0:Fe.length-1,Ee,Zt(_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 ke=fn(ie.doc,de.head.line).text.length;return de.head.ch==ke&&de.head.line<ie.lastLine()?{from:de.head,to:on(de.head.line+1,0)}:{from:de.head,to:on(de.head.line,ke)}}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 ke=ie.charCoords(de.head,"div").top+5,Ee=ie.coordsChar({left:0,top:ke},"div");return{from:Ee,to:de.from()}})},delWrappedLineRight:function(ie){return ol(ie,function(de){var ke=ie.charCoords(de.head,"div").top+5,Ee=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ke},"div");return{from:de.from(),to:Ee}})},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 ke=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ke},"div")},yt)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(de){var ke=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:0,top:ke},"div")},yt)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(de){var ke=ie.cursorCoords(de.head,"div").top+5,Ee=ie.coordsChar({left:0,top:ke},"div");return Ee.ch<ie.getLine(Ee.line).search(/\S/)?Dd(ie,de.head):Ee},yt)},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=[],ke=ie.listSelections(),Ee=ie.options.tabSize,Fe=0;Fe<ke.length;Fe++){var lt=ke[Fe].from(),Et=qe(ie.getLine(lt.line),lt.ch,Ee);de.push(Ut(Ee-Et%Ee))}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(),ke=[],Ee=0;Ee<de.length;Ee++)if(de[Ee].empty()){var Fe=de[Ee].head,lt=fn(ie.doc,Fe.line).text;if(lt){if(Fe.ch==lt.length&&(Fe=new on(Fe.line,Fe.ch-1)),Fe.ch>0)Fe=new on(Fe.line,Fe.ch+1),ie.replaceRange(lt.charAt(Fe.ch-1)+lt.charAt(Fe.ch-2),on(Fe.line,Fe.ch-2),Fe,"+transpose");else if(Fe.line>ie.doc.first){var Et=fn(ie.doc,Fe.line-1).text;Et&&(Fe=new on(Fe.line,1),ie.replaceRange(lt.charAt(0)+ie.doc.lineSeparator()+Et.charAt(Et.length-1),on(Fe.line-1,Et.length-1),Fe,"+transpose"))}}ke.push(new ai(Fe,Fe))}ie.setSelections(ke)})},newlineAndIndent:function(ie){return pn(ie,function(){for(var de=ie.listSelections(),ke=de.length-1;ke>=0;ke--)ie.replaceRange(ie.doc.lineSeparator(),de[ke].anchor,de[ke].head,"+input");de=ie.listSelections();for(var Ee=0;Ee<de.length;Ee++)ie.indentLine(de[Ee].from().line,null,!0);Sc(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function nu(ie,de){var ke=fn(ie.doc,de),Ee=Pi(ke);return Ee!=ke&&(de=$t(Ee)),ea(!0,ie,Ee,de,1)}function ru(ie,de){var ke=fn(ie.doc,de),Ee=co(ke);return Ee!=ke&&(de=$t(Ee)),ea(!0,ie,ke,de,-1)}function Dd(ie,de){var ke=nu(ie,de.line),Ee=fn(ie.doc,ke.line),Fe=gt(Ee,ie.doc.direction);if(!Fe||Fe[0].level==0){var lt=Math.max(ke.ch,Ee.text.search(/\S/)),Et=de.line==ke.line&&de.ch<=lt&&de.ch;return on(ke.line,Et?0:lt,ke.sticky)}return ke}function Tc(ie,de,ke){if(typeof de=="string"&&(de=js[de],!de))return!1;ie.display.input.ensurePolled();var Ee=ie.display.shift,Fe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ke&&(ie.display.shift=!1),Fe=de(ie)!=xt}finally{ie.display.shift=Ee,ie.state.suppressEdits=!1}return Fe}function Zh(ie,de,ke){for(var Ee=0;Ee<ie.state.keyMaps.length;Ee++){var Fe=Ul(de,ie.state.keyMaps[Ee],ke,ie);if(Fe)return Fe}return ie.options.extraKeys&&Ul(de,ie.options.extraKeys,ke,ie)||Ul(de,ie.options.keyMap,ke,ie)}var gu=new it;function ac(ie,de,ke,Ee){var Fe=ie.state.keySeq;if(Fe){if(yh(de))return"handled";if(/\'$/.test(de)?ie.state.keySeq=null:gu.set(50,function(){ie.state.keySeq==Fe&&(ie.state.keySeq=null,ie.display.input.reset())}),Xf(ie,Fe+" "+de,ke,Ee))return!0}return Xf(ie,de,ke,Ee)}function Xf(ie,de,ke,Ee){var Fe=Zh(ie,de,Ee);return Fe=="multi"&&(ie.state.keySeq=de),Fe=="handled"&&Or(ie,"keyHandled",ie,de,ke),(Fe=="handled"||Fe=="multi")&&(On(ke),la(ie)),!!Fe}function Yf(ie,de){var ke=jd(de,!0);return ke?de.shiftKey&&!ie.state.keySeq?ac(ie,"Shift-"+ke,de,function(Ee){return Tc(ie,Ee,!0)})||ac(ie,ke,de,function(Ee){if(typeof Ee=="string"?/^go[A-Z]/.test(Ee):Ee.motion)return Tc(ie,Ee)}):ac(ie,ke,de,function(Ee){return Tc(ie,Ee)}):!1}function Jf(ie,de,ke){return ac(ie,"'"+ke+"'",de,function(Ee){return Tc(ie,Ee,!0)})}var Xh=null;function Vp(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&(de.curOp.focus=_e(),!Kt(de,ie))){je&&ve<11&&ie.keyCode==27&&(ie.returnValue=!1);var ke=ie.keyCode;de.display.shift=ke==16||ie.shiftKey;var Ee=Yf(de,ie);Se&&(Xh=Ee?ke:null,!Ee&&ke==88&&!Ci&&(ae?ie.metaKey:ie.ctrlKey)&&de.replaceSelection("",null,"cut")),et&&!ae&&!Ee&&ke==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ke==18&&!/\bCodeMirror-crosshair\b/.test(de.display.lineDiv.className)&&Zp(de)}}function Zp(ie){var de=ie.display.lineDiv;Ve(de,"CodeMirror-crosshair");function ke(Ee){(Ee.keyCode==18||!Ee.altKey)&&(Ie(de,"CodeMirror-crosshair"),Yt(document,"keyup",ke),Yt(document,"mouseover",ke))}Ot(document,"keyup",ke),Ot(document,"mouseover",ke)}function Xp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Kt(this,ie)}function sc(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&!(nl(de.display,ie)||Kt(de,ie)||ie.ctrlKey&&!ie.altKey||ae&&ie.metaKey)){var ke=ie.keyCode,Ee=ie.charCode;if(Se&&ke==Xh){Xh=null,On(ie);return}if(!(Se&&(!ie.which||ie.which<10)&&Yf(de,ie))){var Fe=String.fromCharCode(Ee==null?ke:Ee);Fe!="\b"&&(Jf(de,ie,Fe)||de.display.input.onKeyPress(ie))}}}var om=400,Yp=function(ie,de,ke){this.time=ie,this.pos=de,this.button=ke};Yp.prototype.compare=function(ie,de,ke){return this.time+om>ie&&Mn(de,this.pos)==0&&ke==this.button};var Fd,Yh;function Jp(ie,de){var ke=+new Date;return Yh&&Yh.compare(ke,ie,de)?(Fd=Yh=null,"triple"):Fd&&Fd.compare(ke,ie,de)?(Yh=new Yp(ke,ie,de),Fd=null,"double"):(Fd=new Yp(ke,ie,de),Yh=null,"single")}function lc(ie){var de=this,ke=de.display;if(!(Kt(de,ie)||ke.activeTouch&&ke.input.supportsTouch())){if(ke.input.ensurePolled(),ke.shift=ie.shiftKey,nl(ke,ie)){ce||(ke.scroller.draggable=!1,setTimeout(function(){return ke.scroller.draggable=!0},100));return}if(!ep(de,ie)){var Ee=rl(de,ie),Fe=Nr(ie),lt=Ee?Jp(Ee,Fe):"single";window.focus(),Fe==1&&de.state.selectingText&&de.state.selectingText(ie),!(Ee&&Qp(de,Fe,Ee,lt,ie))&&(Fe==1?Ee?am(de,Ee,lt,ie):Kn(ie)==ke.scroller&&On(ie):Fe==2?(Ee&&qo(de.doc,Ee),setTimeout(function(){return ke.input.focus()},20)):Fe==3&&(be?de.display.input.onContextMenu(ie):Va(de)))}}}function Qp(ie,de,ke,Ee,Fe){var lt="Click";return Ee=="double"?lt="Double"+lt:Ee=="triple"&&(lt="Triple"+lt),lt=(de==1?"Left":de==2?"Middle":"Right")+lt,ac(ie,Ad(lt,Fe),Fe,function(Et){if(typeof Et=="string"&&(Et=js[Et]),!Et)return!1;var Bt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Bt=Et(ie,ke)!=xt}finally{ie.state.suppressEdits=!1}return Bt})}function Qf(ie,de,ke){var Ee=ie.getOption("configureMouse"),Fe=Ee?Ee(ie,de,ke):{};if(Fe.unit==null){var lt=re?ke.shiftKey&&ke.metaKey:ke.altKey;Fe.unit=lt?"rectangle":de=="single"?"char":de=="double"?"word":"line"}return(Fe.extend==null||ie.doc.extend)&&(Fe.extend=ie.doc.extend||ke.shiftKey),Fe.addNew==null&&(Fe.addNew=ae?ke.metaKey:ke.ctrlKey),Fe.moveOnDrag==null&&(Fe.moveOnDrag=!(ae?ke.altKey:ke.ctrlKey)),Fe}function am(ie,de,ke,Ee){je?setTimeout(dt(La,ie),0):ie.curOp.focus=_e();var Fe=Qf(ie,ke,Ee),lt=ie.doc.sel,Et;ie.options.dragDrop&&kr&&!ie.isReadOnly()&&ke=="single"&&(Et=lt.contains(de))>-1&&(Mn((Et=lt.ranges[Et]).from(),de)<0||de.xRel>0)&&(Mn(Et.to(),de)>0||de.xRel<0)?qp(ie,Ee,de,Fe):nv(ie,Ee,de,Fe)}function qp(ie,de,ke,Ee){var Fe=ie.display,lt=!1,Et=Bn(ie,function(Zt){ce&&(Fe.scroller.draggable=!1),ie.state.draggingText=!1,Yt(Fe.wrapper.ownerDocument,"mouseup",Et),Yt(Fe.wrapper.ownerDocument,"mousemove",Bt),Yt(Fe.scroller,"dragstart",Dt),Yt(Fe.scroller,"drop",Et),lt||(On(Zt),Ee.addNew||qo(ie.doc,ke,null,null,Ee.extend),ce&&!Pe||je&&ve==9?setTimeout(function(){Fe.wrapper.ownerDocument.body.focus({preventScroll:!0}),Fe.input.focus()},20):Fe.input.focus())}),Bt=function(Zt){lt=lt||Math.abs(de.clientX-Zt.clientX)+Math.abs(de.clientY-Zt.clientY)>=10},Dt=function(){return lt=!0};ce&&(Fe.scroller.draggable=!0),ie.state.draggingText=Et,Et.copy=!Ee.moveOnDrag,Fe.scroller.dragDrop&&Fe.scroller.dragDrop(),Ot(Fe.wrapper.ownerDocument,"mouseup",Et),Ot(Fe.wrapper.ownerDocument,"mousemove",Bt),Ot(Fe.scroller,"dragstart",Dt),Ot(Fe.scroller,"drop",Et),Va(ie),setTimeout(function(){return Fe.input.focus()},20)}function eg(ie,de,ke){if(ke=="char")return new ai(de,de);if(ke=="word")return ie.findWordAt(de);if(ke=="line")return new ai(on(de.line,0),Nn(ie.doc,on(de.line+1,0)));var Ee=ke(ie,de);return new ai(Ee.from,Ee.to)}function nv(ie,de,ke,Ee){var Fe=ie.display,lt=ie.doc;On(de);var Et,Bt,Dt=lt.sel,Zt=Dt.ranges;if(Ee.addNew&&!Ee.extend?(Bt=lt.sel.contains(ke),Bt>-1?Et=Zt[Bt]:Et=new ai(ke,ke)):(Et=lt.sel.primary(),Bt=lt.sel.primIndex),Ee.unit=="rectangle")Ee.addNew||(Et=new ai(ke,ke)),ke=rl(ie,de,!0,!0),Bt=-1;else{var En=eg(ie,ke,Ee.unit);Ee.extend?Et=Uu(Et,En.anchor,En.head,Ee.extend):Et=En}Ee.addNew?Bt==-1?(Bt=Zt.length,da(lt,po(ie,Zt.concat([Et]),Bt),{scroll:!1,origin:"*mouse"})):Zt.length>1&&Zt[Bt].empty()&&Ee.unit=="char"&&!Ee.extend?(da(lt,po(ie,Zt.slice(0,Bt).concat(Zt.slice(Bt+1)),0),{scroll:!1,origin:"*mouse"}),Dt=lt.sel):ua(lt,Bt,Et,mt):(Bt=0,da(lt,new Ji([Et],0),mt),Dt=lt.sel);var Qt=ke;function Hn(Si){if(Mn(Qt,Si)!=0)if(Qt=Si,Ee.unit=="rectangle"){for(var _i=[],mo=ie.options.tabSize,mi=qe(fn(lt,ke.line).text,ke.ch,mo),ko=qe(fn(lt,Si.line).text,Si.ch,mo),Ya=Math.min(mi,ko),Ds=Math.max(mi,ko),rs=Math.min(ke.line,Si.line),Kl=Math.min(ie.lastLine(),Math.max(ke.line,Si.line));rs<=Kl;rs++){var vl=fn(lt,rs).text,ks=It(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,It(vl,Ds,mo))))}_i.length||_i.push(new ai(ke,ke)),da(lt,po(ie,Dt.ranges.slice(0,Bt).concat(_i),Bt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Si)}else{var iu=Et,al=eg(ie,Si,Ee.unit),Ns=iu.anchor,oa;Mn(al.anchor,Ns)>0?(oa=al.head,Ns=Sn(iu.from(),al.anchor)):(oa=al.anchor,Ns=gn(iu.to(),al.head));var cs=Dt.ranges.slice(0);cs[Bt]=sm(ie,new ai(Nn(lt,Ns),oa)),da(lt,po(ie,cs,Bt),mt)}}var Dn=Fe.wrapper.getBoundingClientRect(),gr=0;function Er(Si){var _i=++gr,mo=rl(ie,Si,!0,Ee.unit=="rectangle");if(mo)if(Mn(mo,Qt)!=0){ie.curOp.focus=_e(),Hn(mo);var mi=Do(Fe,lt);(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&&(Fe.scroller.scrollTop+=ko,Er(Si))}),50)}}function _r(Si){ie.state.selectingText=!1,gr=1/0,Si&&(On(Si),Fe.input.focus()),Yt(Fe.wrapper.ownerDocument,"mousemove",si),Yt(Fe.wrapper.ownerDocument,"mouseup",ki),lt.history.lastSelOrigin=null}var si=Bn(ie,function(Si){Si.buttons===0||!Nr(Si)?_r(Si):Er(Si)}),ki=Bn(ie,_r);ie.state.selectingText=ki,Ot(Fe.wrapper.ownerDocument,"mousemove",si),Ot(Fe.wrapper.ownerDocument,"mouseup",ki)}function sm(ie,de){var ke=de.anchor,Ee=de.head,Fe=fn(ie.doc,ke.line);if(Mn(ke,Ee)==0&&ke.sticky==Ee.sticky)return de;var lt=gt(Fe);if(!lt)return de;var Et=Te(lt,ke.ch,ke.sticky),Bt=lt[Et];if(Bt.from!=ke.ch&&Bt.to!=ke.ch)return de;var Dt=Et+(Bt.from==ke.ch==(Bt.level!=1)?0:1);if(Dt==0||Dt==lt.length)return de;var Zt;if(Ee.line!=ke.line)Zt=(Ee.line-ke.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var En=Te(lt,Ee.ch,Ee.sticky),Qt=En-Et||(Ee.ch-ke.ch)*(Bt.level==1?-1:1);En==Dt-1||En==Dt?Zt=Qt<0:Zt=Qt>0}var Hn=lt[Dt+(Zt?-1:0)],Dn=Zt==(Hn.level==1),gr=Dn?Hn.from:Hn.to,Er=Dn?"after":"before";return ke.ch==gr&&ke.sticky==Er?de:new ai(new on(ke.line,gr,Er),Ee)}function qf(ie,de,ke,Ee){var Fe,lt;if(de.touches)Fe=de.touches[0].clientX,lt=de.touches[0].clientY;else try{Fe=de.clientX,lt=de.clientY}catch(Hn){return!1}if(Fe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;Ee&&On(de);var Et=ie.display,Bt=Et.lineDiv.getBoundingClientRect();if(lt>Bt.bottom||!cn(ie,ke))return er(de);lt-=Bt.top-Et.viewOffset;for(var Dt=0;Dt<ie.display.gutterSpecs.length;++Dt){var Zt=Et.gutters.childNodes[Dt];if(Zt&&Zt.getBoundingClientRect().right>=Fe){var En=kn(ie.doc,lt),Qt=ie.display.gutterSpecs[Dt];return jt(ie,ke,ie,En,Qt.className,de),er(de)}}}function ep(ie,de){return qf(ie,de,"gutterClick",!0)}function tp(ie,de){nl(ie.display,de)||lm(ie,de)||Kt(ie,de,"contextmenu")||be||ie.display.input.onContextMenu(de)}function lm(ie,de){return cn(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 ke(Ee,Fe,lt,Et){ie.defaults[Ee]=Fe,lt&&(de[Ee]=Et?function(Bt,Dt,Zt){Zt!=Sh&<(Bt,Dt,Zt)}:lt)}ie.defineOption=ke,ie.Init=Sh,ke("value","",function(Ee,Fe){return Ee.setValue(Fe)},!0),ke("mode",null,function(Ee,Fe){Ee.doc.modeOption=Fe,Hi(Ee)},!0),ke("indentUnit",2,Hi,!0),ke("indentWithTabs",!1),ke("smartIndent",!0),ke("tabSize",4,function(Ee){Uo(Ee),_a(Ee),ma(Ee)},!0),ke("lineSeparator",null,function(Ee,Fe){if(Ee.doc.lineSep=Fe,!!Fe){var lt=[],Et=Ee.doc.first;Ee.doc.iter(function(Dt){for(var Zt=0;;){var En=Dt.text.indexOf(Fe,Zt);if(En==-1)break;Zt=En+Fe.length,lt.push(on(Et,En))}Et++});for(var Bt=lt.length-1;Bt>=0;Bt--)$u(Ee.doc,Fe,lt[Bt],on(lt[Bt].line,lt[Bt].ch+Fe.length))}}),ke("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Ee,Fe,lt){Ee.state.specialChars=new RegExp(Fe.source+(Fe.test(" ")?"":"| "),"g"),lt!=Sh&&Ee.refresh()}),ke("specialCharPlaceholder",Fa,function(Ee){return Ee.refresh()},!0),ke("electricChars",!0),ke("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ke("spellcheck",!1,function(Ee,Fe){return Ee.getInputField().spellcheck=Fe},!0),ke("autocorrect",!1,function(Ee,Fe){return Ee.getInputField().autocorrect=Fe},!0),ke("autocapitalize",!1,function(Ee,Fe){return Ee.getInputField().autocapitalize=Fe},!0),ke("rtlMoveVisually",!le),ke("wholeLineUpdateBefore",!0),ke("theme","default",function(Ee){np(Ee),ui(Ee)},!0),ke("keyMap","default",function(Ee,Fe,lt){var Et=Ec(Fe),Bt=lt!=Sh&&Ec(lt);Bt&&Bt.detach&&Bt.detach(Ee,Et),Et.attach&&Et.attach(Ee,Bt||null)}),ke("extraKeys",null),ke("configureMouse",null),ke("lineWrapping",!1,cm,!0),ke("gutters",[],function(Ee,Fe){Ee.display.gutterSpecs=Ni(Fe,Ee.options.lineNumbers),ui(Ee)},!0),ke("fixedGutter",!0,function(Ee,Fe){Ee.display.gutters.style.left=Fe?ph(Ee.display)+"px":"0",Ee.refresh()},!0),ke("coverGutterNextToScrollbar",!1,function(Ee){return wc(Ee)},!0),ke("scrollbarStyle","native",function(Ee){uf(Ee),wc(Ee),Ee.display.scrollbars.setScrollTop(Ee.doc.scrollTop),Ee.display.scrollbars.setScrollLeft(Ee.doc.scrollLeft)},!0),ke("lineNumbers",!1,function(Ee,Fe){Ee.display.gutterSpecs=Ni(Ee.options.gutters,Fe),ui(Ee)},!0),ke("firstLineNumber",1,ui,!0),ke("lineNumberFormatter",function(Ee){return Ee},ui,!0),ke("showCursorWhenSelecting",!1,ws,!0),ke("resetSelectionOnContextMenu",!0),ke("lineWiseCopyCut",!0),ke("pasteLinesPerSelection",!0),ke("selectionsMayTouch",!1),ke("readOnly",!1,function(Ee,Fe){Fe=="nocursor"&&(Vc(Ee),Ee.display.input.blur()),Ee.display.input.readOnlyChanged(Fe)}),ke("screenReaderLabel",null,function(Ee,Fe){Fe=Fe===""?null:Fe,Ee.display.input.screenReaderLabelChanged(Fe)}),ke("disableInput",!1,function(Ee,Fe){Fe||Ee.display.input.reset()},!0),ke("dragDrop",!0,rp),ke("allowDropFileTypes",null),ke("cursorBlinkRate",530),ke("cursorScrollMargin",0),ke("cursorHeight",1,ws,!0),ke("singleCursorHeightPerLine",!0,ws,!0),ke("workTime",100),ke("workDelay",100),ke("flattenSpans",!0,Uo,!0),ke("addModeClass",!1,Uo,!0),ke("pollInterval",100),ke("undoDepth",200,function(Ee,Fe){return Ee.doc.history.undoDepth=Fe}),ke("historyEventDelay",1250),ke("viewportMargin",10,function(Ee){return Ee.refresh()},!0),ke("maxHighlightLength",1e4,Uo,!0),ke("moveInputWithCursor",!0,function(Ee,Fe){Fe||Ee.display.input.resetPosition()}),ke("tabindex",null,function(Ee,Fe){return Ee.display.input.getField().tabIndex=Fe||""}),ke("autofocus",null),ke("direction","ltr",function(Ee,Fe){return Ee.doc.setDirection(Fe)},!0),ke("phrases",null)}function rp(ie,de,ke){var Ee=ke&&ke!=Sh;if(!de!=!Ee){var Fe=ie.display.dragFunctions,lt=de?Ot:Yt;lt(ie.display.scroller,"dragstart",Fe.start),lt(ie.display.scroller,"dragenter",Fe.enter),lt(ie.display.scroller,"dragover",Fe.over),lt(ie.display.scroller,"dragleave",Fe.leave),lt(ie.display.scroller,"drop",Fe.drop)}}function cm(ie){ie.options.lineWrapping?(Ve(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ie(ie.display.wrapper,"CodeMirror-wrap"),_o(ie)),Gi(ie),ma(ie),_a(ie),setTimeout(function(){return wc(ie)},100)}function ra(ie,de){var ke=this;if(!(this instanceof ra))return new ra(ie,de);this.options=de=de?St(de):{},St(tg,de,!1);var Ee=de.value;typeof Ee=="string"?Ee=new Ms(Ee,de.mode,null,de.lineSeparator,de.direction):de.mode&&(Ee.modeOption=de.mode),this.doc=Ee;var Fe=new ra.inputStyles[de.inputStyle](this),lt=this.display=new Ei(ie,Ee,Fe,de);lt.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&<.input.focus(),je&&ve<11&&setTimeout(function(){return ke.display.input.reset(!0)},20),Bd(this),Wl(),fl(this),this.curOp.forceUpdate=!0,Qi(this,Ee),de.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ke.hasFocus()&&!ke.state.focused&&$o(ke)},20):Vc(this);for(var Et in gf)gf.hasOwnProperty(Et)&&gf[Et](this,de[Et],Sh);oi(this),de.finishInit&&de.finishInit(this);for(var Bt=0;Bt<Jh.length;++Bt)Jh[Bt](this);bc(this),ce&&de.lineWrapping&&getComputedStyle(lt.lineDiv).textRendering=="optimizelegibility"&&(lt.lineDiv.style.textRendering="auto")}ra.defaults=tg,ra.optionHandlers=gf;function Bd(ie){var de=ie.display;Ot(de.scroller,"mousedown",Bn(ie,lc)),je&&ve<11?Ot(de.scroller,"dblclick",Bn(ie,function(Dt){if(!Kt(ie,Dt)){var Zt=rl(ie,Dt);if(!(!Zt||ep(ie,Dt)||nl(ie.display,Dt))){On(Dt);var En=ie.findWordAt(Zt);qo(ie.doc,En.anchor,En.head)}}})):Ot(de.scroller,"dblclick",function(Dt){return Kt(ie,Dt)||On(Dt)}),Ot(de.scroller,"contextmenu",function(Dt){return tp(ie,Dt)}),Ot(de.input.getField(),"contextmenu",function(Dt){de.scroller.contains(Dt.target)||tp(ie,Dt)});var ke,Ee={end:0};function Fe(){de.activeTouch&&(ke=setTimeout(function(){return de.activeTouch=null},1e3),Ee=de.activeTouch,Ee.end=+new Date)}function lt(Dt){if(Dt.touches.length!=1)return!1;var Zt=Dt.touches[0];return Zt.radiusX<=1&&Zt.radiusY<=1}function Et(Dt,Zt){if(Zt.left==null)return!0;var En=Zt.left-Dt.left,Qt=Zt.top-Dt.top;return En*En+Qt*Qt>20*20}Ot(de.scroller,"touchstart",function(Dt){if(!Kt(ie,Dt)&&!lt(Dt)&&!ep(ie,Dt)){de.input.ensurePolled(),clearTimeout(ke);var Zt=+new Date;de.activeTouch={start:Zt,moved:!1,prev:Zt-Ee.end<=300?Ee:null},Dt.touches.length==1&&(de.activeTouch.left=Dt.touches[0].pageX,de.activeTouch.top=Dt.touches[0].pageY)}}),Ot(de.scroller,"touchmove",function(){de.activeTouch&&(de.activeTouch.moved=!0)}),Ot(de.scroller,"touchend",function(Dt){var Zt=de.activeTouch;if(Zt&&!nl(de,Dt)&&Zt.left!=null&&!Zt.moved&&new Date-Zt.start<300){var En=ie.coordsChar(de.activeTouch,"page"),Qt;!Zt.prev||Et(Zt,Zt.prev)?Qt=new ai(En,En):!Zt.prev.prev||Et(Zt,Zt.prev.prev)?Qt=ie.findWordAt(En):Qt=new ai(on(En.line,0),Nn(ie.doc,on(En.line+1,0))),ie.setSelection(Qt.anchor,Qt.head),ie.focus(),On(Dt)}Fe()}),Ot(de.scroller,"touchcancel",Fe),Ot(de.scroller,"scroll",function(){de.scroller.clientHeight&&(Xc(ie,de.scroller.scrollTop),Wu(ie,de.scroller.scrollLeft,!0),jt(ie,"scroll",ie))}),Ot(de.scroller,"mousewheel",function(Dt){return Xi(ie,Dt)}),Ot(de.scroller,"DOMMouseScroll",function(Dt){return Xi(ie,Dt)}),Ot(de.wrapper,"scroll",function(){return de.wrapper.scrollTop=de.wrapper.scrollLeft=0}),de.dragFunctions={enter:function(Dt){Kt(ie,Dt)||Tr(Dt)},over:function(Dt){Kt(ie,Dt)||(df(ie,Dt),Tr(Dt))},start:function(Dt){return Vh(ie,Dt)},drop:Bn(ie,Ld),leave:function(Dt){Kt(ie,Dt)||Zf(ie)}};var Bt=de.input.getField();Ot(Bt,"keyup",function(Dt){return Xp.call(ie,Dt)}),Ot(Bt,"keydown",Bn(ie,Vp)),Ot(Bt,"keypress",Bn(ie,sc)),Ot(Bt,"focus",function(Dt){return $o(ie,Dt)}),Ot(Bt,"blur",function(Dt){return Vc(ie,Dt)})}var Jh=[];ra.defineInitHook=function(ie){return Jh.push(ie)};function Is(ie,de,ke,Ee){var Fe=ie.doc,lt;ke==null&&(ke="add"),ke=="smart"&&(Fe.mode.indent?lt=Br(ie,de).state:ke="prev");var Et=ie.options.tabSize,Bt=fn(Fe,de),Dt=qe(Bt.text,null,Et);Bt.stateAfter&&(Bt.stateAfter=null);var Zt=Bt.text.match(/^\s*/)[0],En;if(!Ee&&!/\S/.test(Bt.text))En=0,ke="not";else if(ke=="smart"&&(En=Fe.mode.indent(lt,Bt.text.slice(Zt.length),Bt.text),En==xt||En>150)){if(!Ee)return;ke="prev"}ke=="prev"?de>Fe.first?En=qe(fn(Fe,de-1).text,null,Et):En=0:ke=="add"?En=Dt+ie.options.indentUnit:ke=="subtract"?En=Dt-ie.options.indentUnit:typeof ke=="number"&&(En=Dt+ke),En=Math.max(0,En);var Qt="",Hn=0;if(ie.options.indentWithTabs)for(var Dn=Math.floor(En/Et);Dn;--Dn)Hn+=Et,Qt+=" ";if(Hn<En&&(Qt+=Ut(En-Hn)),Qt!=Zt)return $u(Fe,Qt,on(de,0),on(de,Zt.length),"+input"),Bt.stateAfter=null,!0;for(var gr=0;gr<Fe.sel.ranges.length;gr++){var Er=Fe.sel.ranges[gr];if(Er.head.line==de&&Er.head.ch<Zt.length){var _r=on(de,Zt.length);ua(Fe,gr,new ai(_r,_r));break}}}var $l=null;function Qh(ie){$l=ie}function mf(ie,de,ke,Ee,Fe){var lt=ie.doc;ie.display.shift=!1,Ee||(Ee=lt.sel);var Et=+new Date-200,Bt=Fe=="paste"||ie.state.pasteIncoming>Et,Dt=Dr(de),Zt=null;if(Bt&&Ee.ranges.length>1)if($l&&$l.text.join(`
|
|
|
`)==de){if(Ee.ranges.length%$l.text.length==0){Zt=[];for(var En=0;En<$l.text.length;En++)Zt.push(lt.splitLines($l.text[En]))}}else Dt.length==Ee.ranges.length&&ie.options.pasteLinesPerSelection&&(Zt=Ct(Dt,function(si){return[si]}));for(var Qt=ie.curOp.updateInput,Hn=Ee.ranges.length-1;Hn>=0;Hn--){var Dn=Ee.ranges[Hn],gr=Dn.from(),Er=Dn.to();Dn.empty()&&(ke&&ke>0?gr=on(gr.line,gr.ch-ke):ie.state.overwrite&&!Bt?Er=on(Er.line,Math.min(fn(lt,Er.line).text.length,Er.ch+Pt(Dt).length)):Bt&&$l&&$l.lineWise&&$l.text.join(`
|
|
|
`)==Dt.join(`
|
|
|
`)&&(gr=Er=on(gr.line,0)));var _r={from:gr,to:Er,text:Zt?Zt[Hn%Zt.length]:Dt,origin:Fe||(Bt?"paste":ie.state.cutIncoming>Et?"cut":"+input")};Ga(ie.doc,_r),Or(ie,"inputRead",ie,_r)}de&&!Bt&&rg(ie,de),Sc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Qt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function ng(ie,de){var ke=ie.clipboardData&&ie.clipboardData.getData("Text");if(ke)return ie.preventDefault(),!de.isReadOnly()&&!de.options.disableInput&&pn(de,function(){return mf(de,ke,0,null,"paste")}),!0}function rg(ie,de){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ke=ie.doc.sel,Ee=ke.ranges.length-1;Ee>=0;Ee--){var Fe=ke.ranges[Ee];if(!(Fe.head.ch>100||Ee&&ke.ranges[Ee-1].head.line==Fe.head.line)){var lt=ie.getModeAt(Fe.head),Et=!1;if(lt.electricChars){for(var Bt=0;Bt<lt.electricChars.length;Bt++)if(de.indexOf(lt.electricChars.charAt(Bt))>-1){Et=Is(ie,Fe.head.line,"smart");break}}else lt.electricInput&<.electricInput.test(fn(ie.doc,Fe.head.line).text.slice(0,Fe.head.ch))&&(Et=Is(ie,Fe.head.line,"smart"));Et&&Or(ie,"electricInput",ie,Fe.head.line)}}}function ig(ie){for(var de=[],ke=[],Ee=0;Ee<ie.doc.sel.ranges.length;Ee++){var Fe=ie.doc.sel.ranges[Ee].head.line,lt={anchor:on(Fe,0),head:on(Fe+1,0)};ke.push(lt),de.push(ie.getRange(lt.anchor,lt.head))}return{text:de,ranges:ke}}function og(ie,de,ke,Ee){ie.setAttribute("autocorrect",ke?"":"off"),ie.setAttribute("autocapitalize",Ee?"":"off"),ie.setAttribute("spellcheck",!!de)}function ag(){var ie=Ne("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),de=Ne("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,ke=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Ee,Fe){var lt=this.options,Et=lt[Ee];lt[Ee]==Fe&&Ee!="mode"||(lt[Ee]=Fe,de.hasOwnProperty(Ee)&&Bn(this,de[Ee])(this,Fe,Et),jt(this,"optionChange",this,Ee))},getOption:function(Ee){return this.options[Ee]},getDoc:function(){return this.doc},addKeyMap:function(Ee,Fe){this.state.keyMaps[Fe?"push":"unshift"](Ec(Ee))},removeKeyMap:function(Ee){for(var Fe=this.state.keyMaps,lt=0;lt<Fe.length;++lt)if(Fe[lt]==Ee||Fe[lt].name==Ee)return Fe.splice(lt,1),!0},addOverlay:Rn(function(Ee,Fe){var lt=Ee.token?Ee:ie.getMode(this.options,Ee);if(lt.startState)throw new Error("Overlays may not be stateful.");st(this.state.overlays,{mode:lt,modeSpec:Ee,opaque:Fe&&Fe.opaque,priority:Fe&&Fe.priority||0},function(Et){return Et.priority}),this.state.modeGen++,ma(this)}),removeOverlay:Rn(function(Ee){for(var Fe=this.state.overlays,lt=0;lt<Fe.length;++lt){var Et=Fe[lt].modeSpec;if(Et==Ee||typeof Ee=="string"&&Et.name==Ee){Fe.splice(lt,1),this.state.modeGen++,ma(this);return}}}),indentLine:Rn(function(Ee,Fe,lt){typeof Fe!="string"&&typeof Fe!="number"&&(Fe==null?Fe=this.options.smartIndent?"smart":"prev":Fe=Fe?"add":"subtract"),Wn(this.doc,Ee)&&Is(this,Ee,Fe,lt)}),indentSelection:Rn(function(Ee){for(var Fe=this.doc.sel.ranges,lt=-1,Et=0;Et<Fe.length;Et++){var Bt=Fe[Et];if(Bt.empty())Bt.head.line>lt&&(Is(this,Bt.head.line,Ee,!0),lt=Bt.head.line,Et==this.doc.sel.primIndex&&Sc(this));else{var Dt=Bt.from(),Zt=Bt.to(),En=Math.max(lt,Dt.line);lt=Math.min(this.lastLine(),Zt.line-(Zt.ch?0:1))+1;for(var Qt=En;Qt<lt;++Qt)Is(this,Qt,Ee);var Hn=this.doc.sel.ranges;Dt.ch==0&&Fe.length==Hn.length&&Hn[Et].from().ch>0&&ua(this.doc,Et,new ai(Dt,Hn[Et].to()),ft)}}}),getTokenAt:function(Ee,Fe){return mr(this,Ee,Fe)},getLineTokens:function(Ee,Fe){return mr(this,on(Ee),Fe,!0)},getTokenTypeAt:function(Ee){Ee=Nn(this.doc,Ee);var Fe=Qr(this,fn(this.doc,Ee.line)),lt=0,Et=(Fe.length-1)/2,Bt=Ee.ch,Dt;if(Bt==0)Dt=Fe[2];else for(;;){var Zt=lt+Et>>1;if((Zt?Fe[Zt*2-1]:0)>=Bt)Et=Zt;else if(Fe[Zt*2+1]<Bt)lt=Zt+1;else{Dt=Fe[Zt*2+2];break}}var En=Dt?Dt.indexOf("overlay "):-1;return En<0?Dt:En==0?null:Dt.slice(0,En-1)},getModeAt:function(Ee){var Fe=this.doc.mode;return Fe.innerMode?ie.innerMode(Fe,this.getTokenAt(Ee).state).mode:Fe},getHelper:function(Ee,Fe){return this.getHelpers(Ee,Fe)[0]},getHelpers:function(Ee,Fe){var lt=[];if(!ke.hasOwnProperty(Fe))return lt;var Et=ke[Fe],Bt=this.getModeAt(Ee);if(typeof Bt[Fe]=="string")Et[Bt[Fe]]&<.push(Et[Bt[Fe]]);else if(Bt[Fe])for(var Dt=0;Dt<Bt[Fe].length;Dt++){var Zt=Et[Bt[Fe][Dt]];Zt&<.push(Zt)}else Bt.helperType&&Et[Bt.helperType]?lt.push(Et[Bt.helperType]):Et[Bt.name]&<.push(Et[Bt.name]);for(var En=0;En<Et._global.length;En++){var Qt=Et._global[En];Qt.pred(Bt,this)&&pt(lt,Qt.val)==-1&<.push(Qt.val)}return lt},getStateAfter:function(Ee,Fe){var lt=this.doc;return Ee=An(lt,Ee==null?lt.first+lt.size-1:Ee),Br(this,Ee+1,Fe).state},cursorCoords:function(Ee,Fe){var lt,Et=this.doc.sel.primary();return Ee==null?lt=Et.head:typeof Ee=="object"?lt=Nn(this.doc,Ee):lt=Ee?Et.from():Et.to(),Ma(this,lt,Fe||"page")},charCoords:function(Ee,Fe){return Rl(this,Nn(this.doc,Ee),Fe||"page")},coordsChar:function(Ee,Fe){return Ee=_u(this,Ee,Fe||"page"),$c(this,Ee.left,Ee.top)},lineAtHeight:function(Ee,Fe){return Ee=_u(this,{top:Ee,left:0},Fe||"page").top,kn(this.doc,Ee+this.display.viewOffset)},heightAtLine:function(Ee,Fe,lt){var Et=!1,Bt;if(typeof Ee=="number"){var Dt=this.doc.first+this.doc.size-1;Ee<this.doc.first?Ee=this.doc.first:Ee>Dt&&(Ee=Dt,Et=!0),Bt=fn(this.doc,Ee)}else Bt=Ee;return za(this,Bt,{top:0,left:0},Fe||"page",lt||Et).top+(Et?this.doc.height-ro(Bt):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(Ee,Fe,lt,Et,Bt){var Dt=this.display;Ee=Ma(this,Nn(this.doc,Ee));var Zt=Ee.bottom,En=Ee.left;if(Fe.style.position="absolute",Fe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Fe),Dt.sizer.appendChild(Fe),Et=="over")Zt=Ee.top;else if(Et=="above"||Et=="near"){var Qt=Math.max(Dt.wrapper.clientHeight,this.doc.height),Hn=Math.max(Dt.sizer.clientWidth,Dt.lineSpace.clientWidth);(Et=="above"||Ee.bottom+Fe.offsetHeight>Qt)&&Ee.top>Fe.offsetHeight?Zt=Ee.top-Fe.offsetHeight:Ee.bottom+Fe.offsetHeight<=Qt&&(Zt=Ee.bottom),En+Fe.offsetWidth>Hn&&(En=Hn-Fe.offsetWidth)}Fe.style.top=Zt+"px",Fe.style.left=Fe.style.right="",Bt=="right"?(En=Dt.sizer.clientWidth-Fe.offsetWidth,Fe.style.right="0px"):(Bt=="left"?En=0:Bt=="middle"&&(En=(Dt.sizer.clientWidth-Fe.offsetWidth)/2),Fe.style.left=En+"px"),lt&&$h(this,{left:En,top:Zt,right:En+Fe.offsetWidth,bottom:Zt+Fe.offsetHeight})},triggerOnKeyDown:Rn(Vp),triggerOnKeyPress:Rn(sc),triggerOnKeyUp:Xp,triggerOnMouseDown:Rn(lc),execCommand:function(Ee){if(js.hasOwnProperty(Ee))return js[Ee].call(null,this)},triggerElectric:Rn(function(Ee){rg(this,Ee)}),findPosH:function(Ee,Fe,lt,Et){var Bt=1;Fe<0&&(Bt=-1,Fe=-Fe);for(var Dt=Nn(this.doc,Ee),Zt=0;Zt<Fe&&(Dt=vf(this.doc,Dt,Bt,lt,Et),!Dt.hitSide);++Zt);return Dt},moveH:Rn(function(Ee,Fe){var lt=this;this.extendSelectionsBy(function(Et){return lt.display.shift||lt.doc.extend||Et.empty()?vf(lt.doc,Et.head,Ee,Fe,lt.options.rtlMoveVisually):Ee<0?Et.from():Et.to()},yt)}),deleteH:Rn(function(Ee,Fe){var lt=this.doc.sel,Et=this.doc;lt.somethingSelected()?Et.replaceSelection("",null,"+delete"):ol(this,function(Bt){var Dt=vf(Et,Bt.head,Ee,Fe,!1);return Ee<0?{from:Dt,to:Bt.head}:{from:Bt.head,to:Dt}})}),findPosV:function(Ee,Fe,lt,Et){var Bt=1,Dt=Et;Fe<0&&(Bt=-1,Fe=-Fe);for(var Zt=Nn(this.doc,Ee),En=0;En<Fe;++En){var Qt=Ma(this,Zt,"div");if(Dt==null?Dt=Qt.left:Qt.left=Dt,Zt=wh(this,Qt,Bt,lt),Zt.hitSide)break}return Zt},moveV:Rn(function(Ee,Fe){var lt=this,Et=this.doc,Bt=[],Dt=!this.display.shift&&!Et.extend&&Et.sel.somethingSelected();if(Et.extendSelectionsBy(function(En){if(Dt)return Ee<0?En.from():En.to();var Qt=Ma(lt,En.head,"div");En.goalColumn!=null&&(Qt.left=En.goalColumn),Bt.push(Qt.left);var Hn=wh(lt,Qt,Ee,Fe);return Fe=="page"&&En==Et.sel.primary()&&Ed(lt,Rl(lt,Hn,"div").top-Qt.top),Hn},yt),Bt.length)for(var Zt=0;Zt<Et.sel.ranges.length;Zt++)Et.sel.ranges[Zt].goalColumn=Bt[Zt]}),findWordAt:function(Ee){var Fe=this.doc,lt=fn(Fe,Ee.line).text,Et=Ee.ch,Bt=Ee.ch;if(lt){var Dt=this.getHelper(Ee,"wordChars");(Ee.sticky=="before"||Bt==lt.length)&&Et?--Et:++Bt;for(var Zt=lt.charAt(Et),En=vt(Zt,Dt)?function(Qt){return vt(Qt,Dt)}:/\s/.test(Zt)?function(Qt){return/\s/.test(Qt)}:function(Qt){return!/\s/.test(Qt)&&!vt(Qt)};Et>0&&En(lt.charAt(Et-1));)--Et;for(;Bt<lt.length&&En(lt.charAt(Bt));)++Bt}return new ai(on(Ee.line,Et),on(Ee.line,Bt))},toggleOverwrite:function(Ee){Ee!=null&&Ee==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ve(this.display.cursorDiv,"CodeMirror-overwrite"):Ie(this.display.cursorDiv,"CodeMirror-overwrite"),jt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Rn(function(Ee,Fe){Zc(this,Ee,Fe)}),getScrollInfo:function(){var Ee=this.display.scroller;return{left:Ee.scrollLeft,top:Ee.scrollTop,height:Ee.scrollHeight-_s(this)-this.display.barHeight,width:Ee.scrollWidth-_s(this)-this.display.barWidth,clientHeight:Hc(this),clientWidth:dl(this)}},scrollIntoView:Rn(function(Ee,Fe){Ee==null?(Ee={from:this.doc.sel.primary().head,to:null},Fe==null&&(Fe=this.options.cursorScrollMargin)):typeof Ee=="number"?Ee={from:on(Ee,0),to:null}:Ee.from==null&&(Ee={from:Ee,to:null}),Ee.to||(Ee.to=Ee.from),Ee.margin=Fe||0,Ee.from.line!=null?Ko(this,Ee):sf(this,Ee.from,Ee.to,Ee.margin)}),setSize:Rn(function(Ee,Fe){var lt=this,Et=function(Dt){return typeof Dt=="number"||/^\d+$/.test(String(Dt))?Dt+"px":Dt};Ee!=null&&(this.display.wrapper.style.width=Et(Ee)),Fe!=null&&(this.display.wrapper.style.height=Et(Fe)),this.options.lineWrapping&&Xa(this);var Bt=this.display.viewFrom;this.doc.iter(Bt,this.display.viewTo,function(Dt){if(Dt.widgets){for(var Zt=0;Zt<Dt.widgets.length;Zt++)if(Dt.widgets[Zt].noHScroll){Po(lt,Bt,"widget");break}}++Bt}),this.curOp.forceUpdate=!0,jt(this,"refresh",this)}),operation:function(Ee){return pn(this,Ee)},startOperation:function(){return fl(this)},endOperation:function(){return bc(this)},refresh:Rn(function(){var Ee=this.display.cachedTextHeight;ma(this),this.curOp.forceUpdate=!0,_a(this),Zc(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(Ee==null||Math.abs(Ee-Hu(this.display))>.5||this.options.lineWrapping)&&Gi(this),jt(this,"refresh",this)}),swapDoc:Rn(function(Ee){var Fe=this.doc;return Fe.cm=null,this.state.selectingText&&this.state.selectingText(),Qi(this,Ee),_a(this),this.display.input.reset(),Zc(this,Ee.scrollLeft,Ee.scrollTop),this.curOp.forceScroll=!0,Or(this,"swapDoc",this,Fe),Fe}),phrase:function(Ee){var Fe=this.options.phrases;return Fe&&Object.prototype.hasOwnProperty.call(Fe,Ee)?Fe[Ee]:Ee},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}},yn(ie),ie.registerHelper=function(Ee,Fe,lt){ke.hasOwnProperty(Ee)||(ke[Ee]=ie[Ee]={_global:[]}),ke[Ee][Fe]=lt},ie.registerGlobalHelper=function(Ee,Fe,lt,Et){ie.registerHelper(Ee,Fe,Et),ke[Ee]._global.push({pred:lt,val:Et})}}function vf(ie,de,ke,Ee,Fe){var lt=de,Et=ke,Bt=fn(ie,de.line),Dt=Fe&&ie.direction=="rtl"?-ke:ke;function Zt(){var ki=de.line+Dt;return ki<ie.first||ki>=ie.first+ie.size?!1:(de=new on(ki,de.ch,de.sticky),Bt=fn(ie,ki))}function En(ki){var Si;if(Ee=="codepoint"){var _i=Bt.text.charCodeAt(de.ch+(Ee>0?0:-1));isNaN(_i)?Si=null:Si=new on(de.line,Math.max(0,Math.min(Bt.text.length,de.ch+ke*(_i>=55296&&_i<56320?2:1))),-ke)}else Fe?Si=Ta(ie.cm,Bt,de,ke):Si=us(Bt,de,ke);if(Si==null)if(!ki&&Zt())de=ea(Fe,ie.cm,Bt,de.line,Dt);else return!1;else de=Si;return!0}if(Ee=="char"||Ee=="codepoint")En();else if(Ee=="column")En(!0);else if(Ee=="word"||Ee=="group")for(var Qt=null,Hn=Ee=="group",Dn=ie.cm&&ie.cm.getHelper(de,"wordChars"),gr=!0;!(ke<0&&!En(!gr));gr=!1){var Er=Bt.text.charAt(de.ch)||`
|
|
|
`,_r=vt(Er,Dn)?"w":Hn&&Er==`
|
|
|
`?"n":!Hn||/\s/.test(Er)?null:"p";if(Hn&&!gr&&!_r&&(_r="s"),Qt&&Qt!=_r){ke<0&&(ke=1,En(),de.sticky="after");break}if(_r&&(Qt=_r),ke>0&&!En(!gr))break}var si=eu(ie,de,lt,Et,!0);return an(lt,si)&&(si.hitSide=!0),si}function wh(ie,de,ke,Ee){var Fe=ie.doc,lt=de.left,Et;if(Ee=="page"){var Bt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Dt=Math.max(Bt-.5*Hu(ie.display),3);Et=(ke>0?de.bottom:de.top)+ke*Dt}else Ee=="line"&&(Et=ke>0?de.bottom+3:de.top-3);for(var Zt;Zt=$c(ie,lt,Et),!!Zt.outside;){if(ke<0?Et<=0:Et>=Fe.height){Zt.hitSide=!0;break}Et+=ke*5}return Zt}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,ke=this,Ee=ke.cm,Fe=ke.div=ie.lineDiv;og(Fe,Ee.options.spellcheck,Ee.options.autocorrect,Ee.options.autocapitalize);function lt(Bt){for(var Dt=Bt.target;Dt;Dt=Dt.parentNode){if(Dt==Fe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Dt.className))break}return!1}Ot(Fe,"paste",function(Bt){!lt(Bt)||Kt(Ee,Bt)||ng(Bt,Ee)||ve<=11&&setTimeout(Bn(Ee,function(){return de.updateFromDOM()}),20)}),Ot(Fe,"compositionstart",function(Bt){de.composing={data:Bt.data,done:!1}}),Ot(Fe,"compositionupdate",function(Bt){de.composing||(de.composing={data:Bt.data,done:!1})}),Ot(Fe,"compositionend",function(Bt){de.composing&&(Bt.data!=de.composing.data&&de.readFromDOMSoon(),de.composing.done=!0)}),Ot(Fe,"touchstart",function(){return ke.forceCompositionEnd()}),Ot(Fe,"input",function(){de.composing||de.readFromDOMSoon()});function Et(Bt){if(!(!lt(Bt)||Kt(Ee,Bt))){if(Ee.somethingSelected())Qh({lineWise:!1,text:Ee.getSelections()}),Bt.type=="cut"&&Ee.replaceSelection("",null,"cut");else if(Ee.options.lineWiseCopyCut){var Dt=ig(Ee);Qh({lineWise:!0,text:Dt.text}),Bt.type=="cut"&&Ee.operation(function(){Ee.setSelections(Dt.ranges,0,ft),Ee.replaceSelection("",null,"cut")})}else return;if(Bt.clipboardData){Bt.clipboardData.clearData();var Zt=$l.text.join(`
|
|
|
`);if(Bt.clipboardData.setData("Text",Zt),Bt.clipboardData.getData("Text")==Zt){Bt.preventDefault();return}}var En=ag(),Qt=En.firstChild;Ee.display.lineSpace.insertBefore(En,Ee.display.lineSpace.firstChild),Qt.value=$l.text.join(`
|
|
|
`);var Hn=document.activeElement;ut(Qt),setTimeout(function(){Ee.display.lineSpace.removeChild(En),Hn.focus(),Hn==Fe&&ke.showPrimarySelection()},50)}}Ot(Fe,"copy",Et),Ot(Fe,"cut",Et)},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,ke=de.doc.sel.primary(),Ee=ke.from(),Fe=ke.to();if(de.display.viewTo==de.display.viewFrom||Ee.line>=de.display.viewTo||Fe.line<de.display.viewFrom){ie.removeAllRanges();return}var lt=yf(de,ie.anchorNode,ie.anchorOffset),Et=yf(de,ie.focusNode,ie.focusOffset);if(!(lt&&!lt.bad&&Et&&!Et.bad&&Mn(Sn(lt,Et),Ee)==0&&Mn(gn(lt,Et),Fe)==0)){var Bt=de.display.view,Dt=Ee.line>=de.display.viewFrom&&ip(de,Ee)||{node:Bt[0].measure.map[2],offset:0},Zt=Fe.line<de.display.viewTo&&ip(de,Fe);if(!Zt){var En=Bt[Bt.length-1].measure,Qt=En.maps?En.maps[En.maps.length-1]:En.map;Zt={node:Qt[Qt.length-1],offset:Qt[Qt.length-2]-Qt[Qt.length-3]}}if(!Dt||!Zt){ie.removeAllRanges();return}var Hn=ie.rangeCount&&ie.getRangeAt(0),Dn;try{Dn=Re(Dt.node,Dt.offset,Zt.offset,Zt.node)}catch(gr){}Dn&&(!et&&de.state.focused?(ie.collapse(Dt.node,Dt.offset),Dn.collapsed||(ie.removeAllRanges(),ie.addRange(Dn))):(ie.removeAllRanges(),ie.addRange(Dn)),Hn&&ie.anchorNode==null?ie.addRange(Hn):et&&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){Le(this.cm.display.cursorDiv,ie.cursors),Le(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 Je(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&&Me&&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 ke=yf(de,ie.anchorNode,ie.anchorOffset),Ee=yf(de,ie.focusNode,ie.focusOffset);ke&&Ee&&pn(de,function(){da(de.doc,wo(ke,Ee),ft),(ke.bad||Ee.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,ke=ie.doc.sel.primary(),Ee=ke.from(),Fe=ke.to();if(Ee.ch==0&&Ee.line>ie.firstLine()&&(Ee=on(Ee.line-1,fn(ie.doc,Ee.line-1).length)),Fe.ch==fn(ie.doc,Fe.line).text.length&&Fe.line<ie.lastLine()&&(Fe=on(Fe.line+1,0)),Ee.line<de.viewFrom||Fe.line>de.viewTo-1)return!1;var lt,Et,Bt;Ee.line==de.viewFrom||(lt=zs(ie,Ee.line))==0?(Et=$t(de.view[0].line),Bt=de.view[0].node):(Et=$t(de.view[lt].line),Bt=de.view[lt-1].node.nextSibling);var Dt=zs(ie,Fe.line),Zt,En;if(Dt==de.view.length-1?(Zt=de.viewTo-1,En=de.lineDiv.lastChild):(Zt=$t(de.view[Dt+1].line)-1,En=de.view[Dt+1].node.previousSibling),!Bt)return!1;for(var Qt=ie.doc.splitLines(_d(ie,Bt,En,Et,Zt)),Hn=un(ie.doc,on(Et,0),on(Zt,fn(ie.doc,Zt).text.length));Qt.length>1&&Hn.length>1;)if(Pt(Qt)==Pt(Hn))Qt.pop(),Hn.pop(),Zt--;else if(Qt[0]==Hn[0])Qt.shift(),Hn.shift(),Et++;else break;for(var Dn=0,gr=0,Er=Qt[0],_r=Hn[0],si=Math.min(Er.length,_r.length);Dn<si&&Er.charCodeAt(Dn)==_r.charCodeAt(Dn);)++Dn;for(var ki=Pt(Qt),Si=Pt(Hn),_i=Math.min(ki.length-(Qt.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(Qt.length==1&&Hn.length==1&&Et==Ee.line)for(;Dn&&Dn>Ee.ch&&ki.charCodeAt(ki.length-gr-1)==Si.charCodeAt(Si.length-gr-1);)Dn--,gr++;Qt[Qt.length-1]=ki.slice(0,ki.length-gr).replace(/^\u200b+/,""),Qt[0]=Qt[0].slice(Dn).replace(/\u200b+$/,"");var mo=on(Et,Dn),mi=on(Zt,Hn.length?Pt(Hn).length-gr:0);if(Qt.length>1||Qt[0]||Mn(mo,mi))return $u(ie.doc,Qt,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 ke=vc(ie,de.line);if(!ke||ke.hidden)return null;var Ee=fn(ie.doc,de.line),Fe=Gc(ke,Ee,de.line),lt=gt(Ee,ie.doc.direction),Et="left";if(lt){var Bt=Te(lt,de.ch);Et=Bt%2?"right":"left"}var Dt=Uc(Fe.map,de.ch,Et);return Dt.offset=Dt.collapse=="right"?Dt.end:Dt.start,Dt}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,ke,Ee,Fe){var lt="",Et=!1,Bt=ie.doc.lineSeparator(),Dt=!1;function Zt(Dn){return function(gr){return gr.id==Dn}}function En(){Et&&(lt+=Bt,Dt&&(lt+=Bt),Et=Dt=!1)}function Qt(Dn){Dn&&(En(),lt+=Dn)}function Hn(Dn){if(Dn.nodeType==1){var gr=Dn.getAttribute("cm-text");if(gr){Qt(gr);return}var Er=Dn.getAttribute("cm-marker"),_r;if(Er){var si=ie.findMarks(on(Ee,0),on(Fe+1,0),Zt(+Er));si.length&&(_r=si[0].find(0))&&Qt(un(ie.doc,_r.from,_r.to).join(Bt));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&&En();for(var Si=0;Si<Dn.childNodes.length;Si++)Hn(Dn.childNodes[Si]);/^(pre|p)$/i.test(Dn.nodeName)&&(Dt=!0),ki&&(Et=!0)}else Dn.nodeType==3&&Qt(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Hn(de),de!=ke;)de=de.nextSibling,Dt=!1;return lt}function yf(ie,de,ke){var Ee;if(de==ie.display.lineDiv){if(Ee=ie.display.lineDiv.childNodes[ke],!Ee)return Rd(ie.clipPos(on(ie.display.viewTo-1)),!0);de=null,ke=0}else for(Ee=de;;Ee=Ee.parentNode){if(!Ee||Ee==ie.display.lineDiv)return null;if(Ee.parentNode&&Ee.parentNode==ie.display.lineDiv)break}for(var Fe=0;Fe<ie.display.view.length;Fe++){var lt=ie.display.view[Fe];if(lt.node==Ee)return hm(lt,de,ke)}}function hm(ie,de,ke){var Ee=ie.text.firstChild,Fe=!1;if(!de||!Je(Ee,de))return Rd(on($t(ie.line),0),!0);if(de==Ee&&(Fe=!0,de=Ee.childNodes[ke],ke=0,!de)){var lt=ie.rest?Pt(ie.rest):ie.line;return Rd(on($t(lt),lt.text.length),Fe)}var Et=de.nodeType==3?de:null,Bt=de;for(!Et&&de.childNodes.length==1&&de.firstChild.nodeType==3&&(Et=de.firstChild,ke&&(ke=Et.nodeValue.length));Bt.parentNode!=Ee;)Bt=Bt.parentNode;var Dt=ie.measure,Zt=Dt.maps;function En(_r,si,ki){for(var Si=-1;Si<(Zt?Zt.length:0);Si++)for(var _i=Si<0?Dt.map:Zt[Si],mo=0;mo<_i.length;mo+=3){var mi=_i[mo+2];if(mi==_r||mi==si){var ko=$t(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 Qt=En(Et,Bt,ke);if(Qt)return Rd(Qt,Fe);for(var Hn=Bt.nextSibling,Dn=Et?Et.nodeValue.length-ke:0;Hn;Hn=Hn.nextSibling){if(Qt=En(Hn,Hn.firstChild,0),Qt)return Rd(on(Qt.line,Qt.ch-Dn),Fe);Dn+=Hn.textContent.length}for(var gr=Bt.previousSibling,Er=ke;gr;gr=gr.previousSibling){if(Qt=En(gr,gr.firstChild,-1),Qt)return Rd(on(Qt.line,Qt.ch+Er),Fe);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,ke=this,Ee=this.cm;this.createField(ie);var Fe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),fe&&(Fe.style.width="0px"),Ot(Fe,"input",function(){je&&ve>=9&&de.hasSelection&&(de.hasSelection=null),ke.poll()}),Ot(Fe,"paste",function(Et){Kt(Ee,Et)||ng(Et,Ee)||(Ee.state.pasteIncoming=+new Date,ke.fastPoll())});function lt(Et){if(!Kt(Ee,Et)){if(Ee.somethingSelected())Qh({lineWise:!1,text:Ee.getSelections()});else if(Ee.options.lineWiseCopyCut){var Bt=ig(Ee);Qh({lineWise:!0,text:Bt.text}),Et.type=="cut"?Ee.setSelections(Bt.ranges,null,ft):(ke.prevInput="",Fe.value=Bt.text.join(`
|
|
|
`),ut(Fe))}else return;Et.type=="cut"&&(Ee.state.cutIncoming=+new Date)}}Ot(Fe,"cut",lt),Ot(Fe,"copy",lt),Ot(ie.scroller,"paste",function(Et){if(!(nl(ie,Et)||Kt(Ee,Et))){if(!Fe.dispatchEvent){Ee.state.pasteIncoming=+new Date,ke.focus();return}var Bt=new Event("paste");Bt.clipboardData=Et.clipboardData,Fe.dispatchEvent(Bt)}}),Ot(ie.lineSpace,"selectstart",function(Et){nl(ie,Et)||On(Et)}),Ot(Fe,"compositionstart",function(){var Et=Ee.getCursor("from");ke.composing&&ke.composing.range.clear(),ke.composing={start:Et,range:Ee.markText(Et,Ee.getCursor("to"),{className:"CodeMirror-composing"})}}),Ot(Fe,"compositionend",function(){ke.composing&&(ke.poll(),ke.composing.range.clear(),ke.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,ke=ie.doc,Ee=Kc(ie);if(ie.options.moveInputWithCursor){var Fe=Ma(ie,ke.sel.primary().head,"div"),lt=de.wrapper.getBoundingClientRect(),Et=de.lineDiv.getBoundingClientRect();Ee.teTop=Math.max(0,Math.min(de.wrapper.clientHeight-10,Fe.top+Et.top-lt.top)),Ee.teLeft=Math.max(0,Math.min(de.wrapper.clientWidth-10,Fe.left+Et.left-lt.left))}return Ee},Ls.prototype.showSelection=function(ie){var de=this.cm,ke=de.display;Le(ke.cursorDiv,ie.cursors),Le(ke.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 ke=de.getSelection();this.textarea.value=ke,de.state.focused&&ut(this.textarea),je&&ve>=9&&(this.hasSelection=ke)}else ie||(this.prevInput=this.textarea.value="",je&&ve>=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||_e()!=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 ke(){var Ee=de.poll();!Ee&&!ie?(ie=!0,de.polling.set(60,ke)):(de.pollingFast=!1,de.slowPoll())}de.polling.set(20,ke)},Ls.prototype.poll=function(){var ie=this,de=this.cm,ke=this.textarea,Ee=this.prevInput;if(this.contextMenuPending||!de.state.focused||ot(ke)&&!Ee&&!this.composing||de.isReadOnly()||de.options.disableInput||de.state.keySeq)return!1;var Fe=ke.value;if(Fe==Ee&&!de.somethingSelected())return!1;if(je&&ve>=9&&this.hasSelection===Fe||ae&&/[\uf700-\uf7ff]/.test(Fe))return de.display.input.reset(),!1;if(de.doc.sel==de.display.selForContextMenu){var lt=Fe.charCodeAt(0);if(lt==8203&&!Ee&&(Ee="\u200B"),lt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Et=0,Bt=Math.min(Ee.length,Fe.length);Et<Bt&&Ee.charCodeAt(Et)==Fe.charCodeAt(Et);)++Et;return pn(de,function(){mf(de,Fe.slice(Et),Ee.length-Et,null,ie.composing?"*compose":null),Fe.length>1e3||Fe.indexOf(`
|
|
|
`)>-1?ke.value=ie.prevInput="":ie.prevInput=Fe,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(){je&&ve>=9&&(this.hasSelection=null),this.fastPoll()},Ls.prototype.onContextMenu=function(ie){var de=this,ke=de.cm,Ee=ke.display,Fe=de.textarea;de.contextMenuPending&&de.contextMenuPending();var lt=rl(ke,ie),Et=Ee.scroller.scrollTop;if(!lt||Se)return;var Bt=ke.options.resetSelectionOnContextMenu;Bt&&ke.doc.sel.contains(lt)==-1&&Bn(ke,da)(ke.doc,wo(lt),ft);var Dt=Fe.style.cssText,Zt=de.wrapper.style.cssText,En=de.wrapper.offsetParent.getBoundingClientRect();de.wrapper.style.cssText="position: static",Fe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-En.top-5)+"px; left: "+(ie.clientX-En.left-5)+`px;
|
|
|
z-index: 1000; background: `+(je?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Qt;ce&&(Qt=window.scrollY),Ee.input.focus(),ce&&window.scrollTo(null,Qt),Ee.input.reset(),ke.somethingSelected()||(Fe.value=de.prevInput=" "),de.contextMenuPending=Dn,Ee.selForContextMenu=ke.doc.sel,clearTimeout(Ee.detectingSelectAll);function Hn(){if(Fe.selectionStart!=null){var Er=ke.somethingSelected(),_r="\u200B"+(Er?Fe.value:"");Fe.value="\u21DA",Fe.value=_r,de.prevInput=Er?"":"\u200B",Fe.selectionStart=1,Fe.selectionEnd=_r.length,Ee.selForContextMenu=ke.doc.sel}}function Dn(){if(de.contextMenuPending==Dn&&(de.contextMenuPending=!1,de.wrapper.style.cssText=Zt,Fe.style.cssText=Dt,je&&ve<9&&Ee.scrollbars.setScrollTop(Ee.scroller.scrollTop=Et),Fe.selectionStart!=null)){(!je||je&&ve<9)&&Hn();var Er=0,_r=function(){Ee.selForContextMenu==ke.doc.sel&&Fe.selectionStart==0&&Fe.selectionEnd>0&&de.prevInput=="\u200B"?Bn(ke,ta)(ke):Er++<10?Ee.detectingSelectAll=setTimeout(_r,500):(Ee.selForContextMenu=null,Ee.input.reset())};Ee.detectingSelectAll=setTimeout(_r,200)}}if(je&&ve>=9&&Hn(),be){Tr(ie);var gr=function(){Yt(window,"mouseup",gr),setTimeout(Dn,20)};Ot(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?St(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 ke=_e();de.autofocus=ke==ie||ie.getAttribute("autofocus")!=null&&ke==document.body}function Ee(){ie.value=Bt.getValue()}var Fe;if(ie.form&&(Ot(ie.form,"submit",Ee),!de.leaveSubmitMethodAlone)){var lt=ie.form;Fe=lt.submit;try{var Et=lt.submit=function(){Ee(),lt.submit=Fe,lt.submit(),lt.submit=Et}}catch(Dt){}}de.finishInit=function(Dt){Dt.save=Ee,Dt.getTextArea=function(){return ie},Dt.toTextArea=function(){Dt.toTextArea=isNaN,Ee(),ie.parentNode.removeChild(Dt.getWrapperElement()),ie.style.display="",ie.form&&(Yt(ie.form,"submit",Ee),!de.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Fe))}},ie.style.display="none";var Bt=ra(function(Dt){return ie.parentNode.insertBefore(Dt,ie.nextSibling)},de);return Bt}function zd(ie){ie.off=Yt,ie.on=Ot,ie.wheelEventPixels=Ri,ie.Doc=Ms,ie.splitLines=Dr,ie.countColumn=qe,ie.findColumn=It,ie.isWordChar=Lt,ie.Pass=xt,ie.signal=jt,ie.Line=Xo,ie.changeEnd=Jo,ie.scrollbarModel=lf,ie.Pos=on,ie.cmpPos=Mn,ie.modes=Pr,ie.mimeModes=jr,ie.resolveMode=ar,ie.getMode=nn,ie.modeExtensions=qt,ie.extendMode=Tt,ie.copyState=ln,ie.startState=Xt,ie.innerMode=Cn,ie.commands=js,ie.keyMap=ml,ie.keyName=jd,ie.isModifierKey=yh,ie.lookupKey=Ul,ie.normalizeKeyMap=Od,ie.StringStream=Rt,ie.SharedTextMarker=Ku,ie.TextMarker=hn,ie.LineWidget=vs,ie.e_preventDefault=On,ie.e_stopPropagation=or,ie.e_stop=Tr,ie.addClass=Ve,ie.contains=Je,ie.rmClass=Ie,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 yn(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(_n,Pn,Ge){(function(et){et(Ge(89780),Ge(15525),Ge(98101))})(function(et){"use strict";et.defineMode("markdown",function(Mt,oe){var ze=et.getMode(Mt,"text/html"),je=ze.name=="null";function ve(qe){if(et.findModeByName){var it=et.findModeByName(qe);it&&(qe=it.mime||it.mimes[0])}var pt=et.getMode(Mt,qe);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 Me=/^([*\-_])(?:\s*\1){2,}\s*$/,Se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Pe=/^\[(x| )\](?=\s)/i,me=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(qe,it,pt){return it.f=it.inline=pt,pt(qe,it)}function ue(qe,it,pt){return it.f=it.block=pt,pt(qe,it)}function pe(qe){return!qe||!/\S/.test(qe.string)}function be(qe){if(qe.linkTitle=!1,qe.linkHref=!1,qe.linkText=!1,qe.em=!1,qe.strong=!1,qe.strikethrough=!1,qe.quote=0,qe.indentedCode=!1,qe.f==Ie){var it=je;if(!it){var pt=et.innerMode(ze,qe.htmlState);it=pt.mode.name=="xml"&&pt.state.tagStart===null&&!pt.state.context&&pt.state.tokenize.isInText}it&&(qe.f=De,qe.block=Ce,qe.htmlState=null)}return qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,qe.prevLine=qe.thisLine,qe.thisLine={stream:null},null}function Ce(qe,it){var pt=qe.column()===it.indentation,wt=pe(it.prevLine.stream),xt=it.indentedCode,ft=it.prevLine.hr,mt=it.list!==!1,yt=(it.listStack[it.listStack.length-1]||0)+3;it.indentedCode=!1;var It=it.indentation;if(it.indentationDiff===null&&(it.indentationDiff=it.indentation,mt)){for(it.list=null;It<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=It-it.listStack[it.listStack.length-1])}var kt=!wt&&!ft&&!it.prevLine.header&&(!mt||!xt)&&!it.prevLine.fencedCodeEnd,Ut=(it.list===!1||ft||wt)&&it.indentation<=yt&&qe.match(Me),Pt=null;if(it.indentationDiff>=4&&(xt||it.prevLine.fencedCodeEnd||it.prevLine.header||wt))return qe.skipToEnd(),it.indentedCode=!0,ce.code;if(qe.eatSpace())return null;if(pt&&it.indentation<=yt&&(Pt=qe.match(me))&&Pt[1].length<=6)return it.quote=0,it.header=Pt[1].length,it.thisLine.header=!0,oe.highlightFormatting&&(it.formatting="header"),it.f=it.inline,Le(it);if(it.indentation<=yt&&qe.eat(">"))return it.quote=pt?1:it.quote+1,oe.highlightFormatting&&(it.formatting="quote"),qe.eatSpace(),Le(it);if(!Ut&&!it.setext&&pt&&it.indentation<=yt&&(Pt=qe.match(Se))){var Ct=Pt[1]?"ol":"ul";return it.indentation=It+qe.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&&qe.match(Pe,!1)&&(it.taskList=!0),it.f=it.inline,oe.highlightFormatting&&(it.formatting=["list","list-"+Ct]),Le(it)}else{if(pt&&it.indentation<=yt&&(Pt=qe.match(z,!0)))return it.quote=0,it.fencedEndRE=new RegExp(Pt[1]+"+ *$"),it.localMode=oe.fencedCodeBlockHighlighting&&ve(Pt[2]||oe.fencedCodeBlockDefaultMode),it.localMode&&(it.localState=et.startState(it.localMode)),it.f=it.block=Oe,oe.highlightFormatting&&(it.formatting="code-block"),it.code=-1,Le(it);if(it.setext||(!kt||!mt)&&!it.quote&&it.list===!1&&!it.code&&!Ut&&!ee.test(qe.string)&&(Pt=qe.lookAhead(1))&&(Pt=Pt.match(xe)))return it.setext?(it.header=it.setext,it.setext=0,qe.skipToEnd(),oe.highlightFormatting&&(it.formatting="header")):(it.header=Pt[0].charAt(0)=="="?1:2,it.setext=it.header),it.thisLine.header=!0,it.f=it.inline,Le(it);if(Ut)return qe.skipToEnd(),it.hr=!0,it.thisLine.hr=!0,ce.hr;if(qe.peek()==="[")return le(qe,it,Qe)}return le(qe,it,it.inline)}function Ie(qe,it){var pt=ze.token(qe,it.htmlState);if(!je){var wt=et.innerMode(ze,it.htmlState);(wt.mode.name=="xml"&&wt.state.tagStart===null&&!wt.state.context&&wt.state.tokenize.isInText||it.md_inside&&qe.current().indexOf(">")>-1)&&(it.f=De,it.block=Ce,it.htmlState=null)}return pt}function Oe(qe,it){var pt=it.listStack[it.listStack.length-1]||0,wt=it.indentation<pt,xt=pt+3;if(it.fencedEndRE&&it.indentation<=xt&&(wt||qe.match(it.fencedEndRE))){oe.highlightFormatting&&(it.formatting="code-block");var ft;return wt||(ft=Le(it)),it.localMode=it.localState=null,it.block=Ce,it.f=De,it.fencedEndRE=null,it.code=0,it.thisLine.fencedCodeEnd=!0,wt?ue(qe,it,it.block):ft}else return it.localMode?it.localMode.token(qe,it.localState):(qe.skipToEnd(),ce.code)}function Le(qe){var it=[];if(qe.formatting){it.push(ce.formatting),typeof qe.formatting=="string"&&(qe.formatting=[qe.formatting]);for(var pt=0;pt<qe.formatting.length;pt++)it.push(ce.formatting+"-"+qe.formatting[pt]),qe.formatting[pt]==="header"&&it.push(ce.formatting+"-"+qe.formatting[pt]+"-"+qe.header),qe.formatting[pt]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?it.push(ce.formatting+"-"+qe.formatting[pt]+"-"+qe.quote):it.push("error"))}if(qe.taskOpen)return it.push("meta"),it.length?it.join(" "):null;if(qe.taskClosed)return it.push("property"),it.length?it.join(" "):null;if(qe.linkHref?it.push(ce.linkHref,"url"):(qe.strong&&it.push(ce.strong),qe.em&&it.push(ce.em),qe.strikethrough&&it.push(ce.strikethrough),qe.emoji&&it.push(ce.emoji),qe.linkText&&it.push(ce.linkText),qe.code&&it.push(ce.code),qe.image&&it.push(ce.image),qe.imageAltText&&it.push(ce.imageAltText,"link"),qe.imageMarker&&it.push(ce.imageMarker)),qe.header&&it.push(ce.header,ce.header+"-"+qe.header),qe.quote&&(it.push(ce.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?it.push(ce.quote+"-"+qe.quote):it.push(ce.quote+"-"+oe.maxBlockquoteDepth)),qe.list!==!1){var wt=(qe.listStack.length-1)%3;wt?wt===1?it.push(ce.list2):it.push(ce.list3):it.push(ce.list1)}return qe.trailingSpaceNewLine?it.push("trailing-space-new-line"):qe.trailingSpace&&it.push("trailing-space-"+(qe.trailingSpace%2?"a":"b")),it.length?it.join(" "):null}function Ne(qe,it){if(qe.match(fe,!0))return Le(it)}function De(qe,it){var pt=it.text(qe,it);if(typeof pt!="undefined")return pt;if(it.list)return it.list=null,Le(it);if(it.taskList){var wt=qe.match(Pe,!0)[1]===" ";return wt?it.taskOpen=!0:it.taskClosed=!0,oe.highlightFormatting&&(it.formatting="task"),it.taskList=!1,Le(it)}if(it.taskOpen=!1,it.taskClosed=!1,it.header&&qe.match(/^#+$/,!0))return oe.highlightFormatting&&(it.formatting="header"),Le(it);var xt=qe.next();if(it.linkTitle){it.linkTitle=!1;var ft=xt;xt==="("&&(ft=")"),ft=(ft+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var mt="^\\s*(?:[^"+ft+"\\\\]+|\\\\\\\\|\\\\.)"+ft;if(qe.match(new RegExp(mt),!0))return ce.linkHref}if(xt==="`"){var yt=it.formatting;oe.highlightFormatting&&(it.formatting="code"),qe.eatWhile("`");var It=qe.current().length;if(it.code==0&&(!it.quote||It==1))return it.code=It,Le(it);if(It==it.code){var kt=Le(it);return it.code=0,kt}else return it.formatting=yt,Le(it)}else if(it.code)return Le(it);if(xt==="\\"&&(qe.next(),oe.highlightFormatting)){var Ut=Le(it),Pt=ce.formatting+"-escape";return Ut?Ut+" "+Pt:Pt}if(xt==="!"&&qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return it.imageMarker=!0,it.image=!0,oe.highlightFormatting&&(it.formatting="image"),Le(it);if(xt==="["&&it.imageMarker&&qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return it.imageMarker=!1,it.imageAltText=!0,oe.highlightFormatting&&(it.formatting="image"),Le(it);if(xt==="]"&&it.imageAltText){oe.highlightFormatting&&(it.formatting="image");var Ut=Le(it);return it.imageAltText=!1,it.image=!1,it.inline=it.f=Je,Ut}if(xt==="["&&!it.image)return it.linkText&&qe.match(/^.*?\]/)||(it.linkText=!0,oe.highlightFormatting&&(it.formatting="link")),Le(it);if(xt==="]"&&it.linkText){oe.highlightFormatting&&(it.formatting="link");var Ut=Le(it);return it.linkText=!1,it.inline=it.f=qe.match(/\(.*?\)| ?\[.*?\]/,!1)?Je:De,Ut}if(xt==="<"&&qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){it.f=it.inline=Re,oe.highlightFormatting&&(it.formatting="link");var Ut=Le(it);return Ut?Ut+=" ":Ut="",Ut+ce.linkInline}if(xt==="<"&&qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){it.f=it.inline=Re,oe.highlightFormatting&&(it.formatting="link");var Ut=Le(it);return Ut?Ut+=" ":Ut="",Ut+ce.linkEmail}if(oe.xml&&xt==="<"&&qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ct=qe.string.indexOf(">",qe.pos);if(Ct!=-1){var st=qe.string.substring(qe.start,Ct);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(st)&&(it.md_inside=!0)}return qe.backUp(1),it.htmlState=et.startState(ze),ue(qe,it,Ie)}if(oe.xml&&xt==="<"&&qe.match(/^\/\w*?>/))return it.md_inside=!1,"tag";if(xt==="*"||xt==="_"){for(var bt=1,at=qe.pos==1?" ":qe.string.charAt(qe.pos-2);bt<3&&qe.eat(xt);)bt++;var ct=qe.peek()||" ",Lt=!/\s/.test(ct)&&(!ae.test(ct)||/\s/.test(at)||ae.test(at)),vt=!/\s/.test(at)&&(!ae.test(at)||/\s/.test(ct)||ae.test(ct)),nt=null,Xe=null;if(bt%2&&(!it.em&&Lt&&(xt==="*"||!vt||ae.test(at))?nt=!0:it.em==xt&&vt&&(xt==="*"||!Lt||ae.test(ct))&&(nt=!1)),bt>1&&(!it.strong&&Lt&&(xt==="*"||!vt||ae.test(at))?Xe=!0:it.strong==xt&&vt&&(xt==="*"||!Lt||ae.test(ct))&&(Xe=!1)),Xe!=null||nt!=null){oe.highlightFormatting&&(it.formatting=nt==null?"strong":Xe==null?"em":"strong em"),nt===!0&&(it.em=xt),Xe===!0&&(it.strong=xt);var kt=Le(it);return nt===!1&&(it.em=!1),Xe===!1&&(it.strong=!1),kt}}else if(xt===" "&&(qe.eat("*")||qe.eat("_"))){if(qe.peek()===" ")return Le(it);qe.backUp(1)}if(oe.strikethrough){if(xt==="~"&&qe.eatWhile(xt)){if(it.strikethrough){oe.highlightFormatting&&(it.formatting="strikethrough");var kt=Le(it);return it.strikethrough=!1,kt}else if(qe.match(/^[^\s]/,!1))return it.strikethrough=!0,oe.highlightFormatting&&(it.formatting="strikethrough"),Le(it)}else if(xt===" "&&qe.match(/^~~/,!0)){if(qe.peek()===" ")return Le(it);qe.backUp(2)}}if(oe.emoji&&xt===":"&&qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){it.emoji=!0,oe.highlightFormatting&&(it.formatting="emoji");var Ue=Le(it);return it.emoji=!1,Ue}return xt===" "&&(qe.match(/^ +$/,!1)?it.trailingSpace++:it.trailingSpace&&(it.trailingSpaceNewLine=!0)),Le(it)}function Re(qe,it){var pt=qe.next();if(pt===">"){it.f=it.inline=De,oe.highlightFormatting&&(it.formatting="link");var wt=Le(it);return wt?wt+=" ":wt="",wt+ce.linkInline}return qe.match(/^[^>]+/,!0),ce.linkInline}function Je(qe,it){if(qe.eatSpace())return null;var pt=qe.next();return pt==="("||pt==="["?(it.f=it.inline=Ve(pt==="("?")":"]"),oe.highlightFormatting&&(it.formatting="link-string"),it.linkHref=!0,Le(it)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ve(qe){return function(it,pt){var wt=it.next();if(wt===qe){pt.f=pt.inline=De,oe.highlightFormatting&&(pt.formatting="link-string");var xt=Le(pt);return pt.linkHref=!1,xt}return it.match(_e[qe]),pt.linkHref=!0,Le(pt)}}function Qe(qe,it){return qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(it.f=ut,qe.next(),oe.highlightFormatting&&(it.formatting="link"),it.linkText=!0,Le(it)):le(qe,it,De)}function ut(qe,it){if(qe.match(/^\]:/,!0)){it.f=it.inline=dt,oe.highlightFormatting&&(it.formatting="link");var pt=Le(it);return it.linkText=!1,pt}return qe.match(/^([^\]\\]|\\.)+/,!0),ce.linkText}function dt(qe,it){return qe.eatSpace()?null:(qe.match(/^[^\s]+/,!0),qe.peek()===void 0?it.linkTitle=!0:qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),it.f=it.inline=De,ce.linkHref+" url")}var St={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:De,text:Ne,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(qe){return{f:qe.f,prevLine:qe.prevLine,thisLine:qe.thisLine,block:qe.block,htmlState:qe.htmlState&&et.copyState(ze,qe.htmlState),indentation:qe.indentation,localMode:qe.localMode,localState:qe.localMode?et.copyState(qe.localMode,qe.localState):null,inline:qe.inline,text:qe.text,formatting:!1,linkText:qe.linkText,linkTitle:qe.linkTitle,linkHref:qe.linkHref,code:qe.code,em:qe.em,strong:qe.strong,strikethrough:qe.strikethrough,emoji:qe.emoji,header:qe.header,setext:qe.setext,hr:qe.hr,taskList:qe.taskList,list:qe.list,listStack:qe.listStack.slice(0),quote:qe.quote,indentedCode:qe.indentedCode,trailingSpace:qe.trailingSpace,trailingSpaceNewLine:qe.trailingSpaceNewLine,md_inside:qe.md_inside,fencedEndRE:qe.fencedEndRE}},token:function(qe,it){if(it.formatting=!1,qe!=it.thisLine.stream){if(it.header=0,it.hr=!1,qe.match(/^\s*$/,!0))return be(it),null;if(it.prevLine=it.thisLine,it.thisLine={stream:qe},it.taskList=!1,it.trailingSpace=0,it.trailingSpaceNewLine=!1,!it.localState&&(it.f=it.block,it.f!=Ie)){var pt=qe.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(it.indentation=pt,it.indentationDiff=null,pt>0)return null}}return it.f(qe,it)},innerMode:function(qe){return qe.block==Ie?{state:qe.htmlState,mode:ze}:qe.localState?{state:qe.localState,mode:qe.localMode}:{state:qe,mode:St}},indent:function(qe,it,pt){return qe.block==Ie&&ze.indent?ze.indent(qe.htmlState,it,pt):qe.localState&&qe.localMode.indent?qe.localMode.indent(qe.localState,it,pt):et.Pass},blankLine:be,getType:Le,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return St},"xml"),et.defineMIME("text/markdown","markdown"),et.defineMIME("text/x-markdown","markdown")})},98101:function(_n,Pn,Ge){(function(et){et(Ge(89780))})(function(et){"use strict";et.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 Mt=0;Mt<et.modeInfo.length;Mt++){var oe=et.modeInfo[Mt];oe.mimes&&(oe.mime=oe.mimes[0])}et.findModeByMIME=function(ze){ze=ze.toLowerCase();for(var je=0;je<et.modeInfo.length;je++){var ve=et.modeInfo[je];if(ve.mime==ze)return ve;if(ve.mimes){for(var ce=0;ce<ve.mimes.length;ce++)if(ve.mimes[ce]==ze)return ve}}if(/\+xml$/.test(ze))return et.findModeByMIME("application/xml");if(/\+json$/.test(ze))return et.findModeByMIME("application/json")},et.findModeByExtension=function(ze){ze=ze.toLowerCase();for(var je=0;je<et.modeInfo.length;je++){var ve=et.modeInfo[je];if(ve.ext){for(var ce=0;ce<ve.ext.length;ce++)if(ve.ext[ce]==ze)return ve}}},et.findModeByFileName=function(ze){for(var je=0;je<et.modeInfo.length;je++){var ve=et.modeInfo[je];if(ve.file&&ve.file.test(ze))return ve}var ce=ze.lastIndexOf("."),we=ce>-1&&ze.substring(ce+1,ze.length);if(we)return et.findModeByExtension(we)},et.findModeByName=function(ze){ze=ze.toLowerCase();for(var je=0;je<et.modeInfo.length;je++){var ve=et.modeInfo[je];if(ve.name.toLowerCase()==ze)return ve;if(ve.alias){for(var ce=0;ce<ve.alias.length;ce++)if(ve.alias[ce].toLowerCase()==ze)return ve}}}})},67549:function(_n,Pn,Ge){(function(et){et(Ge(89780))})(function(et){"use strict";et.defineMode("stex",function(Mt,oe){"use strict";function ze(fe,z){fe.cmdState.push(z)}function je(fe){return fe.cmdState.length>0?fe.cmdState[fe.cmdState.length-1]:null}function ve(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 Me={};Me.importmodule=we("importmodule","tag",["string","builtin"]),Me.documentclass=we("documentclass","tag",["","atom"]),Me.usepackage=we("usepackage","tag",["atom"]),Me.begin=we("begin","tag",["atom"]),Me.end=we("end","tag",["atom"]),Me.label=we("label","tag",["atom"]),Me.ref=we("ref","tag",["atom"]),Me.eqref=we("eqref","tag",["atom"]),Me.cite=we("cite","tag",["atom"]),Me.bibitem=we("bibitem","tag",["atom"]),Me.Bibitem=we("Bibitem","tag",["atom"]),Me.RBibitem=we("RBibitem","tag",["atom"]),Me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Se(fe,z){fe.f=z}function Pe(fe,z){var ee;if(fe.match(/^\\[a-zA-Z@]+/)){var ae=fe.current().slice(1);return ee=Me.hasOwnProperty(ae)?Me[ae]:Me.DEFAULT,ee=new ee,ze(z,ee),Se(z,xe),ee.style}if(fe.match(/^\\[$&%#{}_]/)||fe.match(/^\\[,;!\/\\]/))return"tag";if(fe.match("\\["))return Se(z,function(le,ue){return me(le,ue,"\\]")}),"keyword";if(fe.match("\\("))return Se(z,function(le,ue){return me(le,ue,"\\)")}),"keyword";if(fe.match("$$"))return Se(z,function(le,ue){return me(le,ue,"$$")}),"keyword";if(fe.match("$"))return Se(z,function(le,ue){return me(le,ue,"$")}),"keyword";var re=fe.next();if(re=="%")return fe.skipToEnd(),"comment";if(re=="}"||re=="]"){if(ee=je(z),ee)ee.closeBracket(re),Se(z,xe);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Me.DEFAULT,ee=new ee,ze(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 me(fe,z,ee){if(fe.eatSpace())return null;if(ee&&fe.match(ee))return Se(z,Pe),"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=je(z),ae.openBracket(ee),fe.eat(ee),Se(z,Pe),"bracket"):/[ \t\r]/.test(ee)?(fe.eat(ee),null):(Se(z,Pe),ve(z),Pe(fe,z))}return{startState:function(){var fe=oe.inMathMode?function(z,ee){return me(z,ee)}:Pe;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=Pe,fe.cmdState.length=0},lineComment:"%"}}),et.defineMIME("text/x-stex","stex"),et.defineMIME("text/x-latex","stex")})},15525:function(_n,Pn,Ge){(function(et){et(Ge(89780))})(function(et){"use strict";var Mt={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};et.defineMode("xml",function(ze,je){var ve=ze.indentUnit,ce={},we=je.htmlMode?Mt:oe;for(var Me in we)ce[Me]=we[Me];for(var Me in je)ce[Me]=je[Me];var Se,Pe;function me(Re,Je){function _e(ut){return Je.tokenize=ut,ut(Re,Je)}var Ve=Re.next();if(Ve=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?_e(z("atom","]]>")):null:Re.match("--")?_e(z("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),_e(ee(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),Je.tokenize=z("meta","?>"),"meta"):(Se=Re.eat("/")?"closeTag":"openTag",Je.tokenize=xe,"tag bracket");if(Ve=="&"){var Qe;return Re.eat("#")?Re.eat("x")?Qe=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):Qe=Re.eatWhile(/[\d]/)&&Re.eat(";"):Qe=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),Qe?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}me.isInText=!0;function xe(Re,Je){var _e=Re.next();if(_e==">"||_e=="/"&&Re.eat(">"))return Je.tokenize=me,Se=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return Se="equals",null;if(_e=="<"){Je.tokenize=me,Je.state=ue,Je.tagName=Je.tagStart=null;var Ve=Je.tokenize(Re,Je);return Ve?Ve+" tag error":"tag error"}else return/[\'\"]/.test(_e)?(Je.tokenize=fe(_e),Je.stringStartCol=Re.column(),Je.tokenize(Re,Je)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function fe(Re){var Je=function(_e,Ve){for(;!_e.eol();)if(_e.next()==Re){Ve.tokenize=xe;break}return"string"};return Je.isInAttribute=!0,Je}function z(Re,Je){return function(_e,Ve){for(;!_e.eol();){if(_e.match(Je)){Ve.tokenize=me;break}_e.next()}return Re}}function ee(Re){return function(Je,_e){for(var Ve;(Ve=Je.next())!=null;){if(Ve=="<")return _e.tokenize=ee(Re+1),_e.tokenize(Je,_e);if(Ve==">")if(Re==1){_e.tokenize=me;break}else return _e.tokenize=ee(Re-1),_e.tokenize(Je,_e)}return"meta"}}function ae(Re,Je,_e){this.prev=Re.context,this.tagName=Je,this.indent=Re.indented,this.startOfLine=_e,(ce.doNotIndent.hasOwnProperty(Je)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function re(Re){Re.context&&(Re.context=Re.context.prev)}function le(Re,Je){for(var _e;;){if(!Re.context||(_e=Re.context.tagName,!ce.contextGrabbers.hasOwnProperty(_e)||!ce.contextGrabbers[_e].hasOwnProperty(Je)))return;re(Re)}}function ue(Re,Je,_e){return Re=="openTag"?(_e.tagStart=Je.column(),pe):Re=="closeTag"?be:ue}function pe(Re,Je,_e){return Re=="word"?(_e.tagName=Je.current(),Pe="tag",Oe):ce.allowMissingTagName&&Re=="endTag"?(Pe="tag bracket",Oe(Re,Je,_e)):(Pe="error",pe)}function be(Re,Je,_e){if(Re=="word"){var Ve=Je.current();return _e.context&&_e.context.tagName!=Ve&&ce.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&re(_e),_e.context&&_e.context.tagName==Ve||ce.matchClosing===!1?(Pe="tag",Ce):(Pe="tag error",Ie)}else return ce.allowMissingTagName&&Re=="endTag"?(Pe="tag bracket",Ce(Re,Je,_e)):(Pe="error",Ie)}function Ce(Re,Je,_e){return Re!="endTag"?(Pe="error",Ce):(re(_e),ue)}function Ie(Re,Je,_e){return Pe="error",Ce(Re,Je,_e)}function Oe(Re,Je,_e){if(Re=="word")return Pe="attribute",Le;if(Re=="endTag"||Re=="selfcloseTag"){var Ve=_e.tagName,Qe=_e.tagStart;return _e.tagName=_e.tagStart=null,Re=="selfcloseTag"||ce.autoSelfClosers.hasOwnProperty(Ve)?le(_e,Ve):(le(_e,Ve),_e.context=new ae(_e,Ve,Qe==_e.indented)),ue}return Pe="error",Oe}function Le(Re,Je,_e){return Re=="equals"?Ne:(ce.allowMissing||(Pe="error"),Oe(Re,Je,_e))}function Ne(Re,Je,_e){return Re=="string"?De:Re=="word"&&ce.allowUnquoted?(Pe="string",Oe):(Pe="error",Oe(Re,Je,_e))}function De(Re,Je,_e){return Re=="string"?De:Oe(Re,Je,_e)}return{startState:function(Re){var Je={tokenize:me,state:ue,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&(Je.baseIndent=Re),Je},token:function(Re,Je){if(!Je.tagName&&Re.sol()&&(Je.indented=Re.indentation()),Re.eatSpace())return null;Se=null;var _e=Je.tokenize(Re,Je);return(_e||Se)&&_e!="comment"&&(Pe=null,Je.state=Je.state(Se||_e,Re,Je),Pe&&(_e=Pe=="error"?_e+" error":Pe)),_e},indent:function(Re,Je,_e){var Ve=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+ve;if(Ve&&Ve.noIndent)return et.Pass;if(Re.tokenize!=xe&&Re.tokenize!=me)return _e?_e.match(/^(\s*)/)[0].length:0;if(Re.tagName)return ce.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+ve*(ce.multilineTagIndentFactor||1);if(ce.alignCDATA&&/<!\[CDATA\[/.test(Je))return 0;var Qe=Je&&/^<(\/)?([\w_:\.-]*)/.exec(Je);if(Qe&&Qe[1])for(;Ve;)if(Ve.tagName==Qe[2]){Ve=Ve.prev;break}else if(ce.implicitlyClosed.hasOwnProperty(Ve.tagName))Ve=Ve.prev;else break;else if(Qe)for(;Ve;){var ut=ce.contextGrabbers[Ve.tagName];if(ut&&ut.hasOwnProperty(Qe[2]))Ve=Ve.prev;else break}for(;Ve&&Ve.prev&&!Ve.startOfLine;)Ve=Ve.prev;return Ve?Ve.indent+ve:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ce.htmlMode?"html":"xml",helperType:ce.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==Ne&&(Re.state=Oe)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var Je=[],_e=Re.context;_e;_e=_e.prev)_e.tagName&&Je.push(_e.tagName);return Je.reverse()}}}),et.defineMIME("text/xml","xml"),et.defineMIME("application/xml","xml"),et.mimeModes.hasOwnProperty("text/html")||et.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{$u:function(){return Me},BD:function(){return bt},E9:function(){return we},FF:function(){return Ur},FJ:function(){return ue},Hn:function(){return le},KX:function(){return be},NB:function(){return We},S0:function(){return Pt},UL:function(){return Se},Vk:function(){return re},Vm:function(){return Te},YI:function(){return Ct},ZA:function(){return oe},Zt:function(){return Pe},al:function(){return nt},bn:function(){return vt},bx:function(){return at},g2:function(){return st},h1:function(){return Ne},hD:function(){return yn},l4:function(){return ve},rU:function(){return Be},s_:function(){return ct},uz:function(){return tt},z6:function(){return me}}),_n=Ge.hmd(_n),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},jr;if(typeof Object.setPrototypeOf=="function")jr=Object.setPrototypeOf;else{var Li;e:{var nr={a:!0},ar={};try{ar.__proto__=nr,Li=ar.a;break e}catch(a){}Li=!1}jr=Li?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var nn=jr;function qt(a,y){if(a.prototype=Pr(y.prototype),a.prototype.constructor=a,nn)nn(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 Tt=typeof Ge.g!="undefined"&&Ge.g!=null?Ge.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},Cn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Xt(a,y){if(y){var x=Tt;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&&Cn(x,a,{writable:!0,value:y})}}Xt("Object.assign",function(a){return a||ln}),Xt("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var Rt=typeof globalThis=="object"&&globalThis||typeof Ge.g=="object"&&Ge.g.global===Ge.g&&Ge.g||typeof self=="object"&&self.self===self&&self||{};Rt.requestAnimationFrame===void 0&&(Rt.setImmediate===void 0?Rt.requestAnimationFrame=function(a){Rt.setTimeout(a,0)}:Rt.requestAnimationFrame=Rt.setImmediate);function fn(){}function un(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Rt.clearTimeout(x),x=Gn(function(){x=-1,a.apply(b,E)},y)}}function Gn(a,y){return Rt.setTimeout(a,y)}function Xn(a){return Rt.document.createElement(a)}function $t(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),$t(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),$t(x+" is not in the range "+y+": "+a)}function lr(a){Rt.console&&Rt.console.log(a)}function on(a){return typeof a=="object"&&a!==null}function Mn(a){return Array.isArray(a)||Rt.NodeList&&a instanceof Rt.NodeList||Rt.HTMLCollection&&a instanceof Rt.HTMLCollection}function an(a){return Array.prototype.slice.call(a)}function xn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):$t("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):$t("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Sn(){var a=Br.pop();return a===void 0?[]:a}function An(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=Rt.navigator!==void 0&&0<Rt.navigator.userAgent.indexOf("Trident/7"),Qr=Rt.navigator!==void 0&&Rt.navigator.platform!==void 0&&Rt.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]}Tt.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){Rt.console&&Rt.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var te=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);te.get!==void 0&&te.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(ne,se){return function(){throw Error("Property "+ne.Zl[se.Tj]+" of "+ne.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Kr(){}Kr.prototype.reset=function(){},Kr.prototype.next=function(){return!1},Kr.prototype.Ad=function(){return!1},Kr.prototype.first=function(){return null},Kr.prototype.any=function(){return!1},Kr.prototype.all=function(){return!0},Kr.prototype.each=function(){return this},Kr.prototype.map=function(){return this},Kr.prototype.filter=function(){return this},Kr.prototype.de=function(){},Kr.prototype.toString=function(){return"EmptyIterator"},Tt.Object.defineProperties(Kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Kr.prototype.first=Kr.prototype.first,Kr.prototype.hasNext=Kr.prototype.Ad,Kr.prototype.next=Kr.prototype.next,Kr.prototype.reset=Kr.prototype.reset;var ri=null;Kr.className="EmptyIterator",ri=new Kr;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+")"},Tt.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},Tt.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+")"},Tt.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"&&$t("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 wn,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},Tt.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"},Tt.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 wn(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"&&$t("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ot=wn.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},wn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},wn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},wn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},wn.prototype.map=function(a){for(var y=new wn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},wn.prototype.filter=function(a){for(var y=new wn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},ot=wn.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 wn;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()},wn.prototype.copy=function(){var a=new wn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},wn.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},wn.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}Tt.Object.defineProperties(wn.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)}}}),wn.prototype.toList=wn.prototype.Hv,wn.prototype.toArray=wn.prototype.Fa,wn.prototype.clear=wn.prototype.clear,wn.prototype.retainAll=wn.prototype.pA,wn.prototype.removeAll=wn.prototype.hp,wn.prototype.delete=wn.prototype.delete,wn.prototype.remove=wn.prototype.remove,wn.prototype.first=wn.prototype.first,wn.prototype.containsAny=wn.prototype.Ty,wn.prototype.containsAll=wn.prototype.Sy,wn.prototype.has=wn.prototype.has,wn.prototype.contains=wn.prototype.contains,wn.prototype.addAll=wn.prototype.addAll,wn.prototype.add=wn.prototype.add,wn.prototype.thaw=wn.prototype.ka,wn.prototype.freeze=wn.prototype.freeze;var yo=1;wn.className="Set",wn.uniqueHash=zr,wn.hashIdUnique=$i,wn.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"},Tt.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){wn.call(this),zr(this),this._isFrozen=!0,this.ma=a}qt(Wr,wn),ot=Wr.prototype,ot.freeze=function(){return this},ot.ka=function(){return this},ot.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ot.add=function(){$t("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(){$t("This Set is read-only: "+this.toString())},ot.delete=function(a){return this.remove(a)},ot.clear=function(){$t("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 wn,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 wn,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 wn,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},Tt.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"},Tt.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"},Tt.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"&&$t("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)},Tt.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 At(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):$t("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Fi,Ki,gi,oo,So;At.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},At.prototype.h=function(a,y){return this.x=a,this.y=y,this},At.prototype.sg=function(a,y){return this.x=a,this.y=y,this},At.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},At.prototype.copy=function(){var a=new At;return a.x=this.x,a.y=this.y,a},ot=At.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)&&$t("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 At(x,E)}return new At}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 At?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 tn.B(this.x,a.x)&&tn.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},At.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=At.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 tn.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ot.fA=function(a,y,x,b){return tn.qh(a,y,x,b,this.x,this.y,this),this},ot.gA=function(a,y){return tn.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ot.uA=function(a,y,x,b){return tn.No(this.x,this.y,a,y,x,b,this),this},ot.vA=function(a,y){return tn.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 Vr(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)},At.alloc=function(){var a=Zr.pop();return a===void 0?new At:a},At.allocAt=function(a,y){var x=Zr.pop();return x===void 0?new At(a,y):(x.x=a,x.y=y,x)},At.free=function(a){Zr.push(a)},At.prototype.isReal=At.prototype.w,At.prototype.setSpot=At.prototype.yi,At.prototype.setRectSpot=At.prototype.xi,At.prototype.snapToGridPoint=At.prototype.vA,At.prototype.snapToGrid=At.prototype.uA,At.prototype.projectOntoLineSegmentPoint=At.prototype.gA,At.prototype.projectOntoLineSegment=At.prototype.fA,At.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return tn.Rl(a,y,x,b,E,te,ne,se)},At.prototype.compareWithLineSegmentPoint=At.prototype.Ry,At.compareWithLineSegment=function(a,y,x,b,E,te){return tn.Fl(a,y,x,b,E,te)},At.prototype.direction=At.prototype.direction,At.prototype.directionPoint=At.prototype.ab,At.prototype.normalize=At.prototype.normalize,At.prototype.distanceSquared=At.prototype.zd,At.prototype.distanceSquaredPoint=At.prototype.Bf,At.prototype.scale=At.prototype.scale,At.prototype.rotate=At.prototype.rotate,At.prototype.offset=At.prototype.offset,At.prototype.subtract=At.prototype.re,At.prototype.add=At.prototype.add,At.prototype.equalsApprox=At.prototype.Xa,At.prototype.equalTo=At.prototype.hi,At.prototype.equals=At.prototype.D,At.prototype.set=At.prototype.set,At.prototype.setTo=At.prototype.sg;var Zr=[];At.className="Point",At.parse=qr,At.stringify=ii,At.distanceLineSegmentSquared=co,At.distanceSquared=To,At.direction=Vr,At.Origin=Fi=new At(0,0).ja(),At.InfiniteTopLeft=Ki=new At(-1/0,-1/0).ja(),At.InfiniteBottomRight=gi=new At(1/0,1/0).ja(),At.SixPoint=oo=new At(6,6).ja(),At.NoPoint=So=new At(NaN,NaN).ja(),At.parse=qr,At.stringify=ii,At.distanceLineSegmentSquared=co,At.distanceSquared=To,At.direction=Vr;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):$t("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)&&$t("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 tn.B(this.width,a.width)&&tn.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 At?(x=a.x,a=a.y,y instanceof At?(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):$t("Incorrect second argument supplied to Rect constructor "+y)):$t("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)&&$t("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 tn.B(this.x,a.x)&&tn.B(this.y,a.y)&&tn.B(this.width,a.width)&&tn.B(this.height,a.height)};function xo(a,y){return tn.$(a.x,y.x)&&tn.$(a.y,y.y)&&tn.$(a.width,y.width)&&tn.$(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)},Tt.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 At(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 At(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 tn.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 Or(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):$t("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Or.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Or.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Or.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Or.prototype.copy=function(){var a=new Or;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ot=Or.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)&&$t("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 Or;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Or(x);for(var te=NaN;a[y]==="";)y++;if((b=a[y++])&&(te=parseFloat(b)),isNaN(te))return new Or(x,E);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new Or(x,E):new Or(x,E,te,ne)}return new Or}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 Or?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 tn.B(this.top,a.top)&&tn.B(this.right,a.right)&&tn.B(this.bottom,a.bottom)&&tn.B(this.left,a.left)},ot.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Or.alloc=function(){var a=Ql.pop();return a===void 0?new Or:a},Or.free=function(a){Ql.push(a)},Or.prototype.isReal=Or.prototype.w,Or.prototype.equalsApprox=Or.prototype.Xa,Or.prototype.equalTo=Or.prototype.hi,Or.prototype.equals=Or.prototype.D,Or.prototype.set=Or.prototype.set,Or.prototype.setTo=Or.prototype.sg;var Cs=null,Il=null,Ql=[];Or.className="Margin",Or.parse=Ba,Or.stringify=Ra,Or.ZeroMargin=Cs=new Or(0,0,0,0).ja(),Or.TwoMargin=Il=new Or(2,2,2,2).ja(),Or.parse=Ba,Or.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)&&$t("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,Ae=y*te+x*se+ge,He=y*ne+x*he+ye,Ye=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(Ae,Ye),Ae=Math.max(Ae,Ye),Ye=Math.min(He,rt),He=Math.max(He,rt),E=Math.min(E,x),Ae=Math.max(Ae,x),Ye=Math.min(Ye,y),He=Math.max(He,y),E=Math.min(E,te),Ae=Math.max(Ae,te),Ye=Math.min(Ye,b),He=Math.max(He,b),a.h(E,Ye,Ae-E,He-Ye),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 tn={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=tn.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);tn.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,Ae){if(tn.Yb(a,y,ne,se,Ae,x,b)&&tn.Yb(a,y,ne,se,Ae,E,te))return tn.Yb(a,y,ne,se,Ae,ge,ye);var He=(a+x)/2,Ye=(y+b)/2,rt=(x+E)/2,ht=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(He+rt)/2,x=(Ye+ht)/2,rt=(rt+E)/2,ht=(ht+te)/2;var Ft=(b+rt)/2,Nt=(x+ht)/2;return tn.cs(a,y,He,Ye,b,x,Ft,Nt,he,ge,ye,Ae)||tn.cs(Ft,Nt,rt,ht,E,te,ne,se,he,ge,ye,Ae)},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 Vr(((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(tn.Yb(a,y,ne,se,he,x,b)&&tn.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,Ae=(y+b)/2,He=(x+E)/2,Ye=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(ye+He)/2,x=(Ae+Ye)/2,He=(He+E)/2,Ye=(Ye+te)/2;var rt=(b+He)/2,ht=(x+Ye)/2;tn.Dl(a,y,ye,Ae,b,x,rt,ht,he,ge),tn.Dl(rt,ht,He,Ye,E,te,ne,se,he,ge)}return ge},Qe:function(a,y,x,b,E,te,ne,se,he,ge){if(tn.Yb(a,y,ne,se,he,x,b)&&tn.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,Ae=(y+b)/2,He=(x+E)/2,Ye=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(ye+He)/2,x=(Ae+Ye)/2,He=(He+E)/2,Ye=(Ye+te)/2;var rt=(b+He)/2,ht=(x+Ye)/2;tn.Qe(a,y,ye,Ae,b,x,rt,ht,he,ge),tn.Qe(rt,ht,He,Ye,E,te,ne,se,he,ge)}return ge},jv:function(a,y,x,b,E,te,ne,se,he,ge){if(tn.Yb(a,y,E,te,ge,x,b))return tn.Yb(a,y,E,te,ge,se,he);var ye=(a+x)/2,Ae=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var He=(ye+x)/2,Ye=(Ae+b)/2;return tn.jv(a,y,ye,Ae,He,Ye,ne,se,he,ge)||tn.jv(He,Ye,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(tn.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,Ae=(ge+b)/2;tn.iv(a,y,he,ge,ye,Ae,ne,se),tn.iv(ye,Ae,x,b,E,te,ne,se)}return se},ep:function(a,y,x,b,E,te,ne,se){if(tn.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,Ae=(ge+b)/2;tn.ep(a,y,he,ge,ye,Ae,ne,se),tn.ep(ye,Ae,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,he,ge,ye,Ae,He,Ye){if(tn.Yb(a,y,ne,se,He,x,b)&&tn.Yb(a,y,ne,se,He,E,te))return!tn.Rl(a,y,ne,se,he,ge,ye,Ae)||(He=(a-ne)*(ge-Ae)-(y-se)*(he-ye),He===0)?!1:(Ye.h(((a*se-y*ne)*(he-ye)-(a-ne)*(he*Ae-ge*ye))/He,((a*se-y*ne)*(ge-Ae)-(y-se)*(he*Ae-ge*ye))/He),!0);var rt=(a+x)/2,ht=(y+b)/2,Ft=(x+E)/2,Nt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Ft)/2,x=(ht+Nt)/2,Ft=(Ft+E)/2,Nt=(Nt+te)/2;var Ht=(b+Ft)/2,Wt=(x+Nt)/2,Vt=1/0,Jt=!1,dn=0,qn=0;return tn.Eo(a,y,rt,ht,b,x,Ht,Wt,he,ge,ye,Ae,He,Ye)&&(a=(Ye.x-he)*(Ye.x-he)+(Ye.y-ge)*(Ye.y-ge),a<Vt&&(Vt=a,Jt=!0,dn=Ye.x,qn=Ye.y)),tn.Eo(Ht,Wt,Ft,Nt,E,te,ne,se,he,ge,ye,Ae,He,Ye)&&(Ye.x-he)*(Ye.x-he)+(Ye.y-ge)*(Ye.y-ge)<Vt&&(Jt=!0,dn=Ye.x,qn=Ye.y),Jt&&(Ye.x=dn,Ye.y=qn),Jt},Fo:function(a,y,x,b,E,te,ne,se,he,ge,ye,Ae,He){var Ye=0;if(tn.Yb(a,y,ne,se,He,x,b)&&tn.Yb(a,y,ne,se,He,E,te)){if(He=(a-ne)*(ge-Ae)-(y-se)*(he-ye),He===0)return Ye;var rt=((a*se-y*ne)*(he-ye)-(a-ne)*(he*Ae-ge*ye))/He,ht=((a*se-y*ne)*(ge-Ae)-(y-se)*(he*Ae-ge*ye))/He;if(rt>=ye)return Ye;if((he>ye?he-ye:ye-he)<(ge>Ae?ge-Ae:Ae-ge)){if(y<se?(he=y,a=se):(he=se,a=y),ht<he||ht>a)return Ye}else if(a<ne?(he=a,a=ne):he=ne,rt<he||rt>a)return Ye;0<He?Ye++:0>He&&Ye--}else{rt=(a+x)/2,ht=(y+b)/2;var Ft=(x+E)/2,Nt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Ft)/2,x=(ht+Nt)/2,Ft=(Ft+E)/2,Nt=(Nt+te)/2;var Ht=(b+Ft)/2,Wt=(x+Nt)/2;Ye+=tn.Fo(a,y,rt,ht,b,x,Ht,Wt,he,ge,ye,Ae,He),Ye+=tn.Fo(Ht,Wt,Ft,Nt,E,te,ne,se,he,ge,ye,Ae,He)}return Ye},qh:function(a,y,x,b,E,te,ne){return tn.$(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)):tn.$(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 tn.B(a,x)&&tn.B(y,b)?(he.h(a,y),!1):tn.$(E,ne)?tn.$(a,x)?(tn.qh(a,y,x,b,E,te,he),!1):tn.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,he):(se=(se-te)/(ne-E),tn.$(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),tn.$(se,ne)?(tn.qh(a,y,x,b,E,te,he),!1):(E=(ne*a-se*E+te-y)/(ne-se),tn.$(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)):tn.qh(a,y,x,b,E,ne*(E-a)+y,he))))},MA:function(a,y,x,b,E){return tn.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(Ft,Nt){var Ht=(Ft-a)*(Ft-a)+(Nt-y)*(Nt-y);Ht<Ae&&(Ae=Ht,he.h(Ft,Nt))}var Ae=1/0;ye(he.x,he.y);var He=0,Ye=0,rt=0,ht=0;if(E<ne?(He=E,Ye=ne):(He=ne,Ye=E),te<se?(rt=E,ht=ne):(rt=ne,ht=E),He=(Ye-He)/2+ge,ge=(ht-rt)/2+ge,E=(E+ne)/2,te=(te+se)/2,He===0||ge===0)return he;if(.5>(x>a?x-a:a-x)){if(He=1-(x-E)*(x-E)/(He*He),0>He)return he;He=Math.sqrt(He),b=-ge*He+te,ye(x,ge*He+te),ye(x,b)}else{if(x=(b-y)/(x-a),b=1/(He*He)+x*x/(ge*ge),se=2*x*(y-x*a)/(ge*ge)-2*x*te/(ge*ge)-2*E/(He*He),He=se*se-4*b*(2*x*a*te/(ge*ge)-2*y*te/(ge*ge)+te*te/(ge*ge)+E*E/(He*He)-1+(y-x*a)*(y-x*a)/(ge*ge)),0>He)return he;He=Math.sqrt(He),ge=(-se+He)/(2*b),ye(ge,x*ge-x*a+y),He=(-se-He)/(2*b),ye(He,x*He-x*a+y)}return he},Ff:function(a,y,x,b,E,te,ne,se,he){var ge=1e21,ye=a,Ae=y;if(tn.Ve(a,y,a,b,E,te,ne,se,he)){var He=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te);He<ge&&(ge=He,ye=he.x,Ae=he.y)}return tn.Ve(x,y,x,b,E,te,ne,se,he)&&(He=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),He<ge&&(ge=He,ye=he.x,Ae=he.y)),tn.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,Ae=he.y)),tn.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,Ae=he.y)),he.h(ye,Ae),1e21>ge},us:function(a,y,x){return tn.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)||tn.Rl(a,y,he,y,E,te,ne,se)||tn.Rl(he,y,he,ge,E,te,ne,se)||tn.Rl(he,ge,a,ge,E,te,ne,se)||tn.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>=tn.Fl(a,y,x,b,E,te)*tn.Fl(a,y,x,b,ne,se)&&0>=tn.Fl(E,te,ne,se,a,y)*tn.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(tn.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),tn.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),Ae=ne/(y+te);if(ye=ye*ye+Ae*Ae-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};tn.za=tn.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)&&$t("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 tn.B(this.startX,a.startX)&&tn.B(this.startY,a.startY)&&tn.B(this.endX,a.endX)&&tn.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&&tn.B(a.startX,y.startX)&&tn.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Po&&tn.B(a.endX,y.endX)&&tn.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 ht>=Vt-1?!0:ge[ht+1].match(Jt)!==null}function b(){return ht++,ge[ht]}function E(ei){var $r=parseFloat(b()),Zi=parseFloat(b());Ft===Ft.toLowerCase()&&($r=Wt.x+$r,Zi=Wt.y+Zi),ei.h($r,Zi)}function te(){return E(Wt),Wt}function ne(){return E(Ht),Ht}function se(){var ei=Nt.toLowerCase();return ei!=="c"&&ei!=="s"&&ei!=="q"&&ei!=="t"?Wt:new At(2*Wt.x-Ht.x,2*Wt.y-Ht.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=Sn();for(var Ae="",He=!1,Ye=0;Ye<ye.length;Ye++){var rt=ye[Ye];rt!=="."||He?rt==="."?(he.push(Ae),Ae="."):Ae+=rt:(He=!0,Ae+=rt)}for(he.push(Ae),ge.splice(a,1),ye=0;ye<he.length;ye++)ge.splice(a+ye,0,he[ye]);a+=he.length-1,An(he)}}var ht=-1,Ft="",Nt="";he=new At(0,0);var Ht=new At(0,0),Wt=new At(0,0),Vt=ge.length;a=O1(null),He=Ae=ye=!1,Ye=!0,rt=null;for(var Jt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ht>=Vt-1);)if(Nt=Ft,Ft=b(),Ft!=="")switch(Ft.toUpperCase()){case"X":Ye=!0,Ae=ye=!1;break;case"M":for(rt=te(),a.mc===null||Ye===!0?(yp(a,rt.x,rt.y,ye,!Ae,He),Ye=!1):a.moveTo(rt.x,rt.y),he.assign(Wt);!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();)Wt=new At((Ft===Ft.toLowerCase()?Wt.x:0)+parseFloat(b()),Wt.y),a.lineTo(Wt.x,Wt.y);break;case"V":for(;!x();)Wt=new At(Wt.x,(Ft===Ft.toLowerCase()?Wt.y:0)+parseFloat(b())),a.lineTo(Wt.x,Wt.y);break;case"C":for(;!x();){rt=new At,E(rt);var dn=ne(),qn=te();Eh(a,rt.x,rt.y,dn.x,dn.y,qn.x,qn.y)}break;case"S":for(;!x();)rt=se(),dn=ne(),qn=te(),Eh(a,rt.x,rt.y,dn.x,dn.y,qn.x,qn.y);break;case"Q":for(;!x();)rt=ne(),dn=te(),Gm(a,rt.x,rt.y,dn.x,dn.y);break;case"T":for(;!x();)Ht=rt=se(),dn=te(),Gm(a,rt.x,rt.y,dn.x,dn.y);break;case"B":for(;!x();){rt=parseFloat(b()),dn=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)),Ft===Ft.toLowerCase()&&(qn+=Wt.x,dr+=Wt.y),a.arcTo(rt,dn,qn,dr,hr,$n,jn)}break;case"A":for(;!x();)rt=Math.abs(parseFloat(b())),dn=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()),Ft===Ft.toLowerCase()&&($n=Wt.x+$n,jn=Wt.y+jn),Wt.h($n,jn),Px(a,rt,dn,qn,dr,hr,$n,jn);break;case"Z":bx(a),Wt.assign(he);break;case"F":for(rt="",dn=1;ge[ht+dn];)if(ge[ht+dn]==="0")He=!0,dn++;else if(ge[ht+dn].match(/[Uu]/)!==null)dn++;else if(ge[ht+dn].match(Jt)===null)dn++;else{rt=ge[ht+dn];break}rt.match(/[Mm]/)?ye=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(rt="",dn=1;ge[ht+dn];)if(ge[ht+dn].match(/[Ff]/)!==null)dn++;else if(ge[ht+dn].match(Jt)===null)dn++;else{rt=ge[ht+dn];break}rt.match(/[Mm]/)?Ae=!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=At.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}At.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 Ae=ne[ye];switch(Ae.type){case Po:case ma:he=Ae.endX,ge=Ae.endY,Yi(y,he,ge,0,0);break;case as:tn.Dl(he,ge,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,y),he=Ae.endX,ge=Ae.endY;break;case Cl:tn.iv(he,ge,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,y),he=Ae.endX,ge=Ae.endY;break;case ha:case _l:var He=Ae.type===ha?rl(Ae,te):zs(Ae,te,he,ge),Ye=He.length;if(Ye===0){he=Ae.type===ha?Ae.centerX:Ae.endX,ge=Ae.type===ha?Ae.centerY:Ae.endY,Yi(y,he,ge,0,0);break}Ae=null;for(var rt=0;rt<Ye;rt++)Ae=He[rt],tn.Dl(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.5,y);Ae!==null&&(he=Ae[6],ge=Ae[7]);break;default:$t("Unknown Segment type: "+Ae.type)}}}break;default:$t("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 At(-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 Ae=he[ye];ne=Ae.startX,se=Ae.startY,Ae.startX=ne*a+se*x+E,Ae.startY=ne*y+se*b+te,Ae=Ae.segments.s;for(var He=Ae.length,Ye=0;Ye<He;Ye++){var rt=Ae[Ye];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:$t("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 tn.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,Ae,He=a.figures.s,Ye=He.length,rt=0;rt<Ye;rt++){var ht=He[rt],Ft=!ht.isEvenOdd;if(ht.isFilled){if(b&&ht.ca(te,y,x))return!0;var Nt=ht.segments;he=ht.startX,ge=ht.startY;for(var Ht=he,Wt=ge,Vt=Nt.s,Jt=0;Jt<=Nt.length;Jt++){var dn=void 0;if(Jt!==Nt.length){dn=Vt[Jt];var qn=dn.type;a=dn.endX,Ae=dn.endY}else qn=Po,a=Ht,Ae=Wt;switch(qn){case ma:if(Ht=Hu(te,y,ne,y,he,ge,Ht,Wt),isNaN(Ht))return!0;se+=Ht,Ht=a,Wt=Ae;break;case Po:if(he=Hu(te,y,ne,y,he,ge,a,Ae),isNaN(he))return!0;se+=he;break;case as:ye=tn.Fo(he,ge,dn.point1X,dn.point1Y,dn.point2X,dn.point2Y,a,Ae,ne,y,te,y,.5),se+=ye;break;case Cl:ye=tn.Fo(he,ge,(he+2*dn.point1X)/3,(ge+2*dn.point1Y)/3,(2*dn.point1X+a)/3,(2*dn.point1Y+Ae)/3,a,Ae,ne,y,te,y,.5),se+=ye;break;case ha:case _l:qn=dn.type===ha?rl(dn,ht):zs(dn,ht,he,ge);var dr=qn.length;if(dr===0){if(he=Hu(te,y,ne,y,he,ge,dn.type===ha?dn.centerX:dn.endX,dn.type===ha?dn.centerY:dn.endY),isNaN(he))return!0;se+=he;break}dn=null;for(var hr=0;hr<dr;hr++){if(dn=qn[hr],hr===0){if(ye=Hu(te,y,ne,y,he,ge,dn[0],dn[1]),isNaN(ye))return!0;se+=ye}ye=tn.Fo(dn[0],dn[1],dn[2],dn[3],dn[4],dn[5],dn[6],dn[7],ne,y,te,y,.5),se+=ye}dn!==null&&(a=dn[6],Ae=dn[7]);break;default:$t("Unknown Segment type: "+dn.type)}he=a,ge=Ae}if(Ft){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(ht.ca(te,y,E?x:x+2))return!0}return!1}function Hu(a,y,x,b,E,te,ne,se){if(tn.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 At),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=At.alloc();return tn.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,At.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=At.alloc(),E=1/0,se=ne=0,he=y.length;for(var ye=ge=0,Ae=0;Ae<he;Ae++)for(var He=y[Ae],Ye=x[Ae],rt=He.length,ht=0;ht<rt;ht+=2){var Ft=He[ht],Nt=He[ht+1];if(ht!==0){tn.qh(ge,ye,Ft,Nt,a.x,a.y,b);var Ht=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ht<E&&(E=Ht,ne=se,ne+=Math.sqrt((b.x-ge)*(b.x-ge)+(b.y-ye)*(b.y-ye))),se+=Ye[(ht-2)/2]}ge=Ft,ye=Nt}return At.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];tn.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,Ae=0;Ae<ye;Ae++){var He=ge[Ae];switch(He.type){case ma:4<=b.length&&(y.push(b),x.push(ph(b))),b=[],b.push(He.endX),b.push(He.endY),ne=He.endX,te=He.endY,se=ne,he=te;break;case Po:b.push(He.endX),b.push(He.endY),ne=He.endX,te=He.endY;break;case as:tn.Qe(ne,te,He.point1X,He.point1Y,He.point2X,He.point2Y,He.endX,He.endY,.5,b),ne=He.endX,te=He.endY;break;case Cl:tn.ep(ne,te,He.point1X,He.point1Y,He.endX,He.endY,.5,b),ne=He.endX,te=He.endY;break;case ha:var Ye=rl(He,E),rt=Ye.length;if(rt===0){b.push(He.centerX),b.push(He.centerY),ne=He.centerX,te=He.centerY;break}for(var ht=0;ht<rt;ht++){var Ft=Ye[ht];tn.Qe(ne,te,Ft[2],Ft[3],Ft[4],Ft[5],Ft[6],Ft[7],.5,b),ne=Ft[6],te=Ft[7]}break;case _l:if(Ye=zs(He,E,ne,te),rt=Ye.length,ht=He.endX,Ft=He.endY,rt===0){b.push(ht),b.push(Ft),ne=ht,te=Ft;break}for(ht=0;ht<rt;ht++)Ft=Ye[ht],tn.Qe(ne,te,Ft[2],Ft[3],Ft[4],Ft[5],Ft[6],Ft[7],.5,b),ne=Ft[6],te=Ft[7];break;default:$t("Segment not of valid type: "+He.type)}He.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},Tt.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&&tn.B(this.startX,a.startX)&&tn.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(tn.Yb(b,E,ye.endX,ye.endY,x,a,y))return!0;b=ye.endX,E=ye.endY;break;case as:if(tn.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(tn.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 Ae=ye.type===ha?rl(ye,this):zs(ye,this,b,E),He=Ae.length,Ye=ye.type===ha?ye.centerX:ye.endX,rt=ye.type===ha?ye.centerY:ye.endY;if(He===0){if(tn.Yb(b,E,Ye,rt,x,a,y))return!0;b=Ye,E=rt;break}for(Ye=null,rt=0;rt<He;rt++)if(Ye=Ae[rt],rt===0&&tn.Yb(b,E,Ye[0],Ye[1],x,a,y)||tn.cs(Ye[0],Ye[1],Ye[2],Ye[3],Ye[4],Ye[5],Ye[6],Ye[7],.5,a,y,x))return!0;Ye!==null&&(b=Ye[6],E=Ye[7]);break;default:$t("Unknown Segment type: "+ye.type)}if(ye.isClosed&&(b!==te||E!==ne)&&tn.Yb(b,E,te,ne,x,a,y))return!0}return!1},Tt.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 tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY);case as:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.point1X,a.point1X)&&tn.B(this.point1Y,a.point1Y)&&tn.B(this.point2X,a.point2X)&&tn.B(this.point2Y,a.point2Y);case Cl:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.point1X,a.point1X)&&tn.B(this.point1Y,a.point1Y);case ha:return tn.B(this.startAngle,a.startAngle)&&tn.B(this.sweepAngle,a.sweepAngle)&&tn.B(this.centerX,a.centerX)&&tn.B(this.centerY,a.centerY)&&tn.B(this.radiusX,a.radiusX)&&tn.B(this.radiusY,a.radiusY);case _l:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&tn.B(this.xAxisRotation,a.xAxisRotation)&&tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.radiusX,a.radiusX)&&tn.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=tn.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(ht,Ft,Nt,Ht){return(ht*Ht<Ft*Nt?-1:1)*Math.acos((ht*Nt+Ft*Ht)/(Math.sqrt(ht*ht+Ft*Ft)*Math.sqrt(Nt*Nt+Ht*Ht)))}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,Ae=Math.cos(ne),He=Math.sin(ne),Ye=Ae*(x-ge)/2+He*(b-ye)/2;ne=-He*(x-ge)/2+Ae*(b-ye)/2;var rt=Ye*Ye/(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*Ye*Ye)/(y*y*ne*ne+te*te*Ye*Ye)),isNaN(rt)&&(rt=0),se=rt*y*ne/te,rt=rt*-te*Ye/y,isNaN(se)&&(se=0),isNaN(rt)&&(rt=0),x=(x+ge)/2+Ae*se-He*rt,b=(b+ye)/2+He*se+Ae*rt,ye=E(1,0,(Ye-se)/y,(ne-rt)/te),Ae=(Ye-se)/y,ge=(ne-rt)/te,Ye=(-Ye-se)/y,se=(-ne-rt)/te,ne=E(Ae,ge,Ye,se),Ye=(Ae*Ye+ge*se)/(Math.sqrt(Ae*Ae+ge*ge)*Math.sqrt(Ye*Ye+se*se)),-1>=Ye?ne=Math.PI:1<=Ye&&(ne=0),!he&&0<ne&&(ne-=2*Math.PI),he&&0>ne&&(ne+=2*Math.PI),he=y>te?1:y/te,Ye=y>te?te/y:1,y=tn.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,Ye),Zn.Ha(y,te),pi.free(te),a.ae=y,a.ae}Tt.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 At(0,0).freeze(),this.mt=new At(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},Tt.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},Tt.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))},Tt.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()}},Tt.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 wn,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},Tt.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,At.allocAt(NaN,NaN)),b=y.So(1,At.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}At.free(x),At.free(b)},zi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,At.allocAt(NaN,NaN)),b=y.So(1,At.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 At((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}At.free(x),At.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(Qr?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||(Qr?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&&Rt.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},Tt.Object.defineProperties(zi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof hn&&(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}qt(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&&(Rt.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&&(Rt.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)},Tt.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 At(NaN,NaN),this.Fr=new At,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new wn().freeze(),this.ia=new de,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gu;qt(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,(Qr?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 Vn?(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 At(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 Vn&&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 Vn&&(x.value.point=new At(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=At.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),At.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 Vn&&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 ni)){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 Ar&&!(a instanceof ni)&&(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=At.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 At.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)):ti(E,ne,te,he,se):ti(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&&_t(x,b,a);Ln.free(a)}}}function $p(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof ni||(x=a.mouseDrop,x!==null&&x(y))}function _t(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 Vn},!0,function(E){return E instanceof Vn},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&&Gt(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 hn||(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 At),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 Gt(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||(Qr?!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;rn(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"),rn(this,y.draggedParts.Lf(),!0,a.lastInput),Eu(this,this.copiedParts,!1);var b=new wn;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 rn(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=At.alloc(),he=y.iterator;he.next();)ge=he.value,ge instanceof Vn&&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))));At.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 At},Tt.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 Vn,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}qt(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=At.alloc(),x.location=y.ga(Bi,te),At.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(Ae){return E.findValidLinkablePort(Ae,a)},null,!0);for(b=1/0,y=null,te=te.iterator;te.next();){var ne=te.value,se=ne.part;if(se instanceof rr){var he=ne.ga(Bi,At.alloc()),ge=x.x-he.x,ye=x.y-he.y;At.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 wn;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!Rn(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!Rn(this,a,y,x,!0)}if(b===ng)return a===y?a=!0:(b=new wn,b.add(y),a=In(this,b,a,y,x)),!a;if(b===rg)return!Rn(this,a,y,x,!1);if(b===ig)return a===y?a=!0:(b=new wn,b.add(y),a=Qn(this,b,a,y,x)),!a}return!0};function Rn(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&&Rn(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}Tt.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=tr,this.Xd=null}qt(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===tr||x===Ir){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===tr||x===Lr)&&(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 Vn)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(){},Tt.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 tr=new bn(ir,"Either",0),Ir=new bn(ir,"ForwardsOnly",0),Lr=new bn(ir,"BackwardsOnly",0);ir.className="LinkingTool",ir.Either=tr,ir.ForwardsOnly=Ir,ir.BackwardsOnly=Lr;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}qt(vr,pn),vr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Vn){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 Vn))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 ti(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)}Tt.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 At,this.Yq=new vn}qt(Cr,zi),Cr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Xr},Cr.prototype.om=function(a,y){a.reshapingBehavior=y},Cr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Vn){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);tn.B(he.x,ge.x)&&tn.B(he.y,ge.y)&&(ge=y.i(x-1)),tn.B(he.x,ge.x)?(this.om(se,Ai),se.cursor="n-resize"):tn.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),tn.B(he.x,ge.x)&&tn.B(he.y,ge.y)&&(he=y.i(te+1)),tn.B(he.x,ge.x)?(this.om(se,Ai),se.cursor="n-resize"):tn.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 Vn){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&&(Yr(this,ne,b,E,te,!0)||Yr(this,ne,b,E,te,!1))){var se=y.points.copy();Yr(this,ne,b,E,te,!0)?(se.cd(x-2,new At(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new At(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new At((te.x+ne.x)/2,ne.y)),se.cd(x+1,new At((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&&(Yr(this,b,E,te,ne,!0)||Yr(this,b,E,te,ne,!1))&&(se=y.points.copy(),Yr(this,b,E,te,ne,!0)?(se.cd(x-1,new At(b.x,(b.y+ne.y)/2)),se.cd(x+2,new At(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new At((b.x+ne.x)/2,b.y)),se.cd(x+2,new At((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=At.alloc(),tn.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()),At.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Yr(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);tn.B(te.x,E.x)&&tn.B(E.y,ne.y)?(tn.B(te.x,y.i(b-2).x)&&!tn.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),tn.B(ne.y,y.i(b+2).y)&&!tn.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):tn.B(te.y,E.y)&&tn.B(E.x,ne.x)?(tn.B(te.y,y.i(b-2).y)&&!tn.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),tn.B(ne.x,y.i(b+2).x)&&!tn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):tn.B(te.x,E.x)&&tn.B(E.x,ne.x)?(tn.B(te.x,y.i(b-2).x)&&!tn.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),tn.B(ne.x,y.i(b+2).x)&&!tn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):tn.B(te.y,E.y)&&tn.B(E.y,ne.y)&&(tn.B(te.y,y.i(b-2).y)&&!tn.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),tn.B(ne.y,y.i(b+2).y)&&!tn.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,At.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,At.alloc()),y.L(0,b.x,b.y),At.free(te),At.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,At.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,At.alloc()),y.L(y.pointsCount-1,a.x,a.y),At.free(x),At.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 At(y.i(x).x,a.y);case hi:return new At(a.x,y.i(x).y);default:case Xr:return y.i(x)}},Tt.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 Xr=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=Xr,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 At,this.Dw=new Yn,this.Tn=new At,this.rt=new Yn(0,0),this.qt=new Yn(1/0,1/0),this.pt=new Yn(1,1)}qt(oi,zi),oi.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Vn)){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,At.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),At.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,At.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),At.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 ni){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,Ae=1;if(!te){Ae=ne.width;var He=ne.height;0>=Ae&&(Ae=1),0>=He&&(He=1),Ae=He/Ae}return He=At.alloc(),tn.No(a.x,a.y,se,he,E.width,E.height,He),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(He.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(He.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(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.x=ge-a.width,a.y=ye-a.height)):1<=y.y?(a.x=Math.max(He.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(He.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.x=ge-a.width)):(a.x=Math.max(He.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=ge-a.x,te||(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae,a.y=he+.5*(ye-he-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(He.x-se,b.width),x.width),a.y=Math.max(He.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(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.y=ye-a.height)):1<=y.y?(a.width=Math.max(Math.min(He.x-se,b.width),x.width),a.height=Math.max(Math.min(He.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width))):(a.width=Math.max(Math.min(He.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae,a.y=he+.5*(ye-he-a.height))):0>=y.y?(a.y=Math.max(He.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/Ae,b.width),x.width),a.height=Ae*a.width,a.x=se+.5*(ge-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min(He.y-he,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width,a.x=se+.5*(ge-se-a.width))),At.free(He),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},Tt.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 At,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 At(NaN,NaN),this.u=0,this.F=50}qt(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 At(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},Tt.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"}qt(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}qt(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 At(0,0)}qt(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 Ar)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=At.allocAt(a.x,a.y);this.isGridSnapEnabled&&Yf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),At.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Tt.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 Ar;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}qt(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),Qr?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)}},Tt.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 At,this.xy=new At,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Rt.document,"scroll",a.Kw,!1),a.stopTool()}}qt(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(Rt.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)}},Tt.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}Tt.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 At,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}qt(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");Rt.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",ai,!1),b.addEventListener(y,"selectstart",ai,!1),b.addEventListener(x,"contextmenu",ai,!1)),y.className="goCXforeground",x.className="goCXbackground",Rt.document.body&&(Rt.document.body.appendChild(y),Rt.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 hn||(a instanceof Qt?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 Qt?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}},Tt.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)}qt(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,Ae=b.naturalBounds.height*ge+2,He=(ne.x-se.x)*he;ne=(ne.y-se.y)*he,se=b.verticalAlignment,he=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ge,Ae=se.y*Ae-se.y*he+se.offsetY-(.5*Ae-.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=(He-ye/2|0)-1+"px",x.style.top=(ne+Ae|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ge,x.className="goTXarea",E.div.appendChild(x),x.focus(),te.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}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},Tt.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 wn,this.ce=new ta,this.ce.Yd=this,this.Ei=new wn,this.pu=new wn,this.Sr=new wn,this.pr=new wn,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),Rt.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 Vn&&(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 Qt&&he.diagram!==null||he instanceof hn){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)),Rt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Rt.requestAnimationFrame(function(){x()}))}function 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 At(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 At(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 At(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 At(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 At(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}Tt.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 wn,this.Ut=new wn,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 hn?a=x:x instanceof Qt&&(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 hn?this.H=a:a instanceof Qt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Ar){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 hn&&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 Qt&&se instanceof At&&!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 At&&!ne.w()&&ne.assign(a.o),te&&x.indexOf("position:")===0&&y instanceof Ar?se.Ku.location=fa(y.location):te&&(se.Ku[x]=fa(b))}function fa(a){return a instanceof At||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 Qt&&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,Ae;for(Ae in ge)if(te.get(Ae)!==null){var He=Ae;!se.Hu||He!=="position:nodeCollapse"&&He!=="position:placeholder"||(He="position"),te.get(He)(ne,he[Ae],ye[Ae]!==void 0?ye[Ae]:se.Hu?he[Ae]:ge[Ae],this.Lp,this.Gd,this.Gd,this)}se.Hu&&ye.location!==void 0&&ne instanceof Ar&&(ne.location=ye.location),se.nv&&ne instanceof Ar&&ne.Zb(!1)}if(y.As.clear(),Kh(y,!1),y.Ya(),y.N(),ol(y,!0),x.defaultAnimation===this){for(Ae=x.pr.iterator;Ae.next();)E=Ae.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}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 ni&&(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 At(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ni)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 ni&&(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 ni)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},Tt.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:$t("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))}Tt.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 ni?E++:he instanceof rr?b++:he instanceof Vn?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 Vn&&(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=At.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 At.free(E),se}return At.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 wn||(b=new wn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var te=At.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 At.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 wn||(E=new wn),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 wn)&&(te=E),E=!0),te instanceof vn||te instanceof wn||(te=new wn),this.Uh===!1)return te;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var se=At.alloc(),he=At.alloc(),ge=this.Pa.s,ye=ge.length;ye--;){var Ae=ge[ye];if((ne!==!0||td(Ae)!==!1)&&Ae.isVisible()){se.assign(a),Pi(se,Ae.oe),he.h(a.x+y,a.y),Pi(he,Ae.oe);var He=Ae;Ae.og(se,he,x,b,E,te)&&(x!==null&&(He=x(He)),He===null||b!==null&&!b(He)||te.add(He))}}return At.free(se),At.free(he),te},ot.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=Sn();for(var E=Sn(),te=0;te<b;te++){var ne=x[te];if(ne.vw=te,ne instanceof Vn){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]);An(a),An(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 Ae=E[ye];b.contains(Ae)&&a.Oj(y,Ae,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 Vn&&(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 ni&&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}Tt.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===""&&$t("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&$t("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 hn(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(Rt.document,"DOMContentLoaded",b,!1),x.setRTL()};Rt.document.body!==null?this.setRTL():x.addEventListener(Rt.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"||Rt.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 At(NaN,NaN).freeze(),a.du=new At(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new At(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new pi,a.zu=new At(NaN,NaN).freeze(),a.ut=new Ln(NaN,NaN,NaN,NaN).freeze(),a.rj=new Or(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 wn,a.Eh=new fr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Or(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 wn,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 Or(5).freeze(),a.Hw=new wn().freeze(),a.Nt=999999999,a.nw=new wn().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 wn,a.ow=new wn,a.Xh=null,a.aw=new Yn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new At,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 ni,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 Or(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new fr,y=new Vn,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 Vn,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 Or(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 At,a.zy=500,a.wp=new At,a.wq=!1}hn.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 wn().freeze(),a.nw=new wn().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}hn.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()},hn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Rt.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},hn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Rt.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||Qr||(y=11)}this.Db=y,this.Gw=!0},hn.prototype.qb=function(a){a.classType===hn&&(this.autoScale=a)},hn.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||$t("Diagram setup requires an argument DIV."),a.Ka!==null&&$t("Diagram has already completed setup."),typeof y=="string"?a.Ka=Rt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:$t("No DIV or DIV id supplied: "+y),a.Ka===null&&$t("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&$t("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Rt.ResizeObserver){var x=un(function(){a.$b()},250);a.ol=new Rt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Rt.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Rt.go;var E=new vu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Rt.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),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=Rt.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=Rt.document.elementFromPoint(ne.clientX,ne.clientY)||null;ge!==null&&ge.shadowRoot!==void 0&&ge.shadowRoot!==null&&(ge=ge.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),ge!==null&&ge.H instanceof hn&&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)}}hn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},hn.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(Rt,"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))}hn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Rt.devicePixelRatio||1},hn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},hn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},hn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},hn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},hn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},hn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},hn.prototype.doFocus=function(){this.focus()},hn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Rt.scrollX||Rt.pageXOffset,y=Rt.scrollY||Rt.pageYOffset;this.ta.focus(),Rt.scrollTo(a,y)}},hn.prototype.Oy=function(){this.H.R("GainedFocus")},hn.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 Ar,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)}hn.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 Ae=E.x;b=E.y;var He=E.width,Ye=E.height,rt=E.right,ht=E.bottom;E=this.scale;var Ft=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ft=Ft+a.scrollWidth-a.clientWidth;break;case"reverse":Ft=a.scrollWidth-Ft-a.clientWidth}var Nt=Ft;He<he||Ye<ge?(Ft=At.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Nt&&(Ft.x=Nt/E+ne,this.ju=Nt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ft.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=Ft,At.free(Ft),this.Ee=this.qr=!1):(Ft=At.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Ae&&(this.position=Ft.h(Nt+ne,this.position.y)),ye>rt&&(this.position=Ft.h(-(y.scrollWidth-this.Aa)+Nt-this.Aa/E+ye,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=Ft.h(this.position.x,a.scrollTop+se)),te>ht&&(this.position=Ft.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),At.free(Ft),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ye=b.right,rt=E.right,te=b.bottom,ht=E.bottom,ne=b.x,Ae=E.x,se=b.y,b=E.y,He>=he&&ne>=Ae&&ye<=rt&&(x.style.width="1px"),Ye>=ge&&se>=b&&te<=ht&&(x.style.height="1px"))}},hn.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}hn.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 Vn||(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 Vn||(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=At.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Ln.allocAt(0,0,b.width,b.height);var E=At.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Ln.free(b),At.free(E),At.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,tn.B(te.x,x)&&tn.B(te.y,b)&&tn.B(te.width,E)&&tn.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}hn.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=hn.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 At(a.x,a.y)}},ot.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new At(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 Qt){this.eq=a;var y=At.alloc();this.fq=this.op(a.ga($a,y)),At.free(y)}else this.eq=null,this.fq=So};function pf(a,y,x,b,E,te){var ne=At.allocAt(a.pa.x,a.pa.y),se=ne.x,he=ne.y;if(a.eq!==null){var ge=At.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,At.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),At.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 Ar)return a}else if(a=Mu(this,a,function(x){return x.part}),a instanceof Ar)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 Ar&&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 wn||(E=new wn),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 wn||(b=new wn),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 Ar&&(!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 wn||(E=new wn),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 wn;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 wn||(E=new wn),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 Ar&&(!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 wn)&&(te=E),E=!0),te instanceof vn||te instanceof wn||(te=new wn),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 wn)&&(te=E),E=!0),te instanceof vn||te instanceof wn||(te=new wn),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}hn.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),Qr&&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,Qr&&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)}hn.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)},hn.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)},hn.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)},hn.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)},hn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new At(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 At(y,a),this.Ab):new At(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=At.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),At.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))}}hn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function jd(a){a.ld||us(a),a.Va()}hn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ot=hn.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 At(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;Rt.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 wn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof ni&&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 ni||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof ni&&x.isVisible()&&ea(this,x);for(a.reset();a.next();)x=a.value,x instanceof Vn&&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=Sn(),b=Sn(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof ni?(Vl(te)||Ws(te)||ed(te))&&ea(a,te):te instanceof Vn?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(An(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();An(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&&$t("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&&$t("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 Ae=a.Wa.s,He=Ae.length;try{var Ye=new Ln(te.x,te.y,b.width/E,b.height/E),rt=Ye.copy();rt.Co(x),sc(a,rt),us(a),a.Fd(Ae,He,a,Ye),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),se!==null&&se!==""&&(y.fillStyle=se,y.ox(0,0,b.width,b.height));var ht=a.Mb;y.scale(ht,ht);var Ft=pi.alloc();Ft.reset(),Ft.translate(x.left,x.top),Ft.scale(E),te.x===0&&te.y===0||Ft.translate(-te.x,-te.y),y.setTransform(Ft.m11,Ft.m12,Ft.m21,Ft.m22,Ft.dx,Ft.dy),y.yc(),y instanceof Ml&&Xy(y,Ft.m11,Ft.m12,Ft.m21,Ft.m22,Ft.dx,Ft.dy),pi.free(Ft),js(a,y),y.globalAlpha=a.pb;var Nt=a.Qj("Grid");if(ne){var Ht=new wn,Wt=ne.iterator;for(Wt.reset();Wt.next();){var Vt=Wt.value;Vt instanceof Ar&&(ge||Vt.layer!==Nt)&&(Vt.Gj(),Ht.add(Vt))}for(ge=0;ge<He;ge++)gl(Ae[ge],y,a,Ht,he);Ht.each(function(dn){return dn.Gj()})}else for(Ht=0;Ht<He;Ht++){var Jt=Ae[Ht];Jt===Nt?ge&&Jt.gc(y,a,!0):Jt.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(Ae,He,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=!(Qr||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 hn,E;for(E in y){E===""&&$t("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):$t("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 $t('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof Qt&&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")},hn.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),Ae=Math.max(y,0),He=Math.floor(E-ye),Ye=Math.floor(se-Ae);a.drawImage(b.Oa,ye,Ae,He,Ye,0,0,He,Ye),zd(this.Yf,this)&&a.clearRect(0,0,he,ge),b=Sn(),a=Sn(),Ye=Math.abs(te),He=Math.abs(y);var rt=ye===0?0:E-Ye;ye=At.allocAt(rt,0),Ye=At.allocAt(Ye+rt,se),a.push(new Ln(Math.min(ye.x,Ye.x),Math.min(ye.y,Ye.y),Math.abs(ye.x-Ye.x),Math.abs(ye.y-Ye.y)));var ht=this.Ab;if(ht.reset(),ht.scale(ne,ne),this.Ca!==1&&ht.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&ht.translate(-ne.x,-ne.y),Pi(ye,ht),Pi(Ye,ht),b.push(new Ln(Math.min(ye.x,Ye.x),Math.min(ye.y,Ye.y),Math.abs(ye.x-Ye.x),Math.abs(ye.y-Ye.y))),rt=Ae===0?0:se-He,ye.h(0,rt),Ye.h(E,He+rt),a.push(new Ln(Math.min(ye.x,Ye.x),Math.min(ye.y,Ye.y),Math.abs(ye.x-Ye.x),Math.abs(ye.y-Ye.y))),Pi(ye,ht),Pi(Ye,ht),b.push(new Ln(Math.min(ye.x,Ye.x),Math.min(ye.y,Ye.y),Math.abs(ye.x-Ye.x),Math.abs(ye.y-Ye.y))),zd(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,ye.h(E,se),Ye.h(he+E,ge+se),a.push(new Ln(Math.min(ye.x,Ye.x),Math.min(ye.y,Ye.y),Math.abs(ye.x-Ye.x),Math.abs(ye.y-Ye.y))),Pi(ye,ht),Pi(Ye,ht),b.push(new Ln(Math.min(ye.x,Ye.x),Math.min(ye.y,Ye.y),Math.abs(ye.x-Ye.x),Math.abs(ye.y-Ye.y)))),At.free(ye),At.free(Ye),Ec(this,!1,!0),this.Ka===null&&$t("No div specified"),this.ta===null&&$t("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),Ae=ne.Zq,Ae.length=0,ye=this.scale,He=Ln.alloc(),Ye=ne.Pa.s,ht=Ye.length,rt=he.length;for(var Ft=0;Ft<ht;Ft++){var Nt=Ye[Ft],Ht=Vd(Nt,Nt.actualBounds);e:{for(var Wt=2/ye,Vt=4/ye,Jt=0;Jt<rt;Jt++){var dn=he[Jt];if(dn.width!==0&&dn.height!==0&&Ht.Vu(dn.x-Wt,dn.y-Wt,dn.width+Vt,dn.height+Vt)){Ht=!0;break e}}Ht=!1}Ht&&ne.Oj(E,Nt,this,Ae,ye,He,!0)}Ln.free(He),E.globalAlpha=ge}E.restore(),E.Vc(!0),this.Yf&&zd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}An(b),An(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 Ae=ye.y,He=ye.width,Ye=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,ht=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var Ft=a.documentBounds,Nt=0,Ht=0,Wt=0,Vt=0,Jt=ye.width,dn=ye.height,qn=a.rj;a.contentAlignment.sb()?(Ft.width>Jt&&(Nt=qn.left,Ht=qn.right),Ft.height>dn&&(Wt=qn.top,Vt=qn.bottom)):(Nt=qn.left,Ht=qn.right,Wt=qn.top,Vt=qn.bottom);var dr=Ft.width+Nt+Ht,hr=Ft.height+Wt+Vt;qn=a.scale;var $n=dr>he/qn,jn=hr>ge/qn;if(!(te||a.gf||a.Be||$n||jn))return!0;Nt=Ft.x-Nt,he=ye.x,Ht=Ft.right+Ht,ge=ye.right+ne,Wt=Ft.y-Wt;var ei=ye.y;Ft=Ft.bottom+Vt,ye=ye.bottom+se;var $r="1px";if(Vt="1px",a.scrollMode===xh&&($n||jn)&&($n&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($n=1,Nt+1<he&&($n=Math.max((he-Nt)*qn+a.Aa,$n)),Ht>ge+1&&($n=Math.max((Ht-ge)*qn+a.Aa,$n)),Jt+ne+1<dr&&($n=Math.max((dr-Jt)*qn+a.Aa,$n)),$r=$n.toString()+"px"),jn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&($n=1,Wt+1<ei&&($n=Math.max((ei-Wt)*qn+a.ya,$n)),Ft>ye+1&&($n=Math.max((Ft-ye)*qn+a.ya,$n)),dn+se+1<hr&&($n=Math.max((hr-dn)*qn+a.ya,$n)),Vt=$n.toString()+"px")),$n=$r!=="1px",jn=Vt!=="1px",$n&&jn||!$n&&!jn||(jn&&(ge-=a.Db),$n&&(ye-=a.Db),dr<Jt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Nt+1<he&&(ne=Math.max((he-Nt)*qn+a.Aa,ne)),Ht>ge+1&&(ne=Math.max((Ht-ge)*qn+a.Aa,ne)),Jt+1<dr&&(ne=Math.max((dr-Jt)*qn+a.Aa,ne)),$r=ne.toString()+"px"),$n=$r!=="1px",ne=a.ya,$n!==a.Be&&(ne=$n?a.ya-a.Db:a.ya+a.Db),hr<dn+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,Wt+1<ei&&(se=Math.max((ei-Wt)*qn+ne,se)),Ft>ye+1&&(se=Math.max((Ft-ye)*qn+ne,se)),dn+1<hr&&(se=Math.max((hr-dn)*qn+ne,se)),Vt=se.toString()+"px"),jn=Vt!=="1px"),a.qr&&$n===a.Be&&jn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if($n!==a.Be&&($r==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=$n,ht.style.width=$r,jn!==a.gf&&(Vt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=At.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)),At.free(se))),te&&lc(a),a.gf=jn,ht.style.height=Vt,a.gu=!0,te&&(a.pn=!0),y=rt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Jt+1<dr?y=(a.position.x-Nt)*qn:Nt+1<he?y=rt.scrollWidth-rt.clientWidth:Ht>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&&(dn+1<hr?rt.scrollTop=(a.position.y-Wt)*qn:Wt+1<ei?rt.scrollTop=rt.scrollHeight-rt.clientHeight:Ft>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,Ae,He,Ye),a.onViewportBoundsChanged(x,a.viewportBounds,qn,te),Ln.free(x),!1):!0}ot=hn.prototype,ot.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&$t("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&&$t('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 ni&&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 wn,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)},hn.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 ni&&(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 Vn)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=At.alloc(),ne=At.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=Sn(),he=Sn(),ge=y.iterator,ye=At.alloc();ge.next();){var Ae=ge.key,He=ge.value;if(Ae.Zc()){var Ye=Vp(a,Ae,y);Ye!==null?se.push(new ie(Ae,He,Ye)):(!E||Ae.canMove())&&(Ye=He.point,te.assign(Ye),a.computeMove(Ae,te.add(ne),b,ye),Ae.location=ye,He.shifted===void 0&&(He.shifted=new At),He.shifted.assign(ye.re(Ye)))}else ge.key instanceof Vn&&he.push(ge.sa)}for(At.free(ye),E=se.length,ge=0;ge<E;ge++)Ae=se[ge],te.assign(Ae.info.point),Ae.Su.shifted===void 0&&(Ae.Su.shifted=new At),Ae.node.location=te.add(Ae.Su.shifted);for(E=At.alloc(),ge=At.alloc(),Ae=he.length,He=0;He<Ae;He++){var rt=he[He];if(Ye=rt.key,Ye instanceof Vn)if(Ye.suspendsRouting){Ye.Tg=null,ye=Ye.fromNode;var ht=Ye.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ht=rt.value.point,Ye.dragComputation===null)y.add(Ye,a.Pd(b,Ye,ne)),Lh(Ye,ne.x-ht.x,ne.y-ht.y);else{rt=At.allocAt(0,0),(ye=Ye.i(0))&&ye.w()&&rt.assign(ye);var Ft=ye=At.alloc().assign(rt).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Ft=At.alloc(),Yf(a,Ye,ye,Ft,b)),ye.assign(Ye.dragComputation(Ye,ye,Ft)).re(rt),y.add(Ye,a.Pd(b,Ye,ye)),Lh(Ye,ye.x-ht.x,ye.y-ht.y),At.free(rt),At.free(ye),Ft!==ye&&At.free(Ft)}else ye!==null&&(E.assign(ye.location),Ft=y.I(ye),Ft!==null&&E.re(Ft.point)),ht!==null&&(ge.assign(ht.location),Ft=y.I(ht),Ft!==null&&ge.re(Ft.point)),ye!==null&&ht!==null?E.Xa(ge)?(ye=rt.value.point,ht=te,ht.assign(E),ht.re(ye),y.add(Ye,a.Pd(b,Ye,E)),Lh(Ye,ht.x,ht.y)):(Ye.suspendsRouting=!1,Ye.bb()):(rt=rt.value.point,ye=ye!==null?E:ht!==null?ge:ne,y.add(Ye,a.Pd(b,Ye,ye)),Lh(Ye,ye.x-rt.x,ye.y-rt.y))}else(Ye.fromNode===null||Ye.toNode===null)&&(ye=rt.value.point,y.add(Ye,a.Pd(b,Ye,ne)),Lh(Ye,ne.x-ye.x,ne.y-ye.y))}At.free(te),At.free(ne),At.free(E),At.free(ge),An(se),An(he),x||(us(a),Xh(a,y))}}hn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new At),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=At.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&&At.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=At.allocAt(0,0),te.yi(0,0,a,y,E),tn.No(x.x,x.y,se+te.x,ne+te.y,a,y,b),At.free(te)}}function Jf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Vn&&(y.suspendsRouting=!0)}function Xh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Vn&&(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=hn.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 At(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&&$t("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&$t("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&$t("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&$t("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&&$t("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&&$t("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)},hn.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 Qt){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 Qt){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 Ar&&(y?(he.isSelected=!1,he.isHighlighted=!1,he.Wb(),ne.pc(ye?se:-1,he,ye)):ne.oi(se,he,ye))}else ne instanceof hn?typeof se=="number"&&he instanceof Go&&(y?this.Wa.mb(se):(he.Xe(this),this.Wa.Gb(se,he))):$t("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===La){var Ae=a.object,He=a.oldParam,Ye=a.oldValue;if(Ae instanceof Un)typeof He=="number"&&Ye instanceof Qt?y?Ae.Gb(He,Ye):Ae.pc(He):typeof He=="number"&&Ye instanceof ja&&(Ye.isRow?h1(Ae,He,y?Ye:void 0):d1(Ae,He,y?Ye:void 0));else if(Ae instanceof Go){var rt=a.newParam===!0;typeof He=="number"&&Ye instanceof Ar&&(y?0>Ae.Pa.indexOf(Ye)&&Ae.oi(He,Ye,rt):(Ye.isSelected=!1,Ye.isHighlighted=!1,Ye.Wb(),Ae.pc(rt?He:-1,Ye,rt)))}else Ae instanceof hn?typeof He=="number"&&Ye instanceof Go&&(y?(Ye.Xe(this),this.Wa.Gb(He,Ye)):this.Wa.mb(He)):$t("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==il&&$t("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},hn.prototype.Ea=function(a){return this.undoManager.Ea(a)},hn.prototype.eb=function(a){return this.undoManager.eb(a)},hn.prototype.Kf=function(){return this.undoManager.Kf()},hn.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}},hn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},hn.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=At.allocAt(a.pa.x+se/y-se/x,a.pa.y+he/y-he/x),a.position=te,At.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))}}hn.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/tn.vx(te,ye):E=E*ye/tn.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=At.alloc(),tn.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Yn.free(b),x.part.location=y,At.free(y)}}hn.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)}},hn.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))},hn.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 Ar||$t("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 Ar||$t("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},hn.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=hn.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 wn().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 Ar||$t("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=At.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)),At.free(te);return}$t("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):$t("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),At.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,Ae=y.dy,He=x*ne+b*he+ye;y=x*se+b*ge+Ae;var Ye=E*ne+b*he+ye;return a=E*se+b*ge+Ae,b=x*ne+te*he+ye,x=x*se+te*ge+Ae,ne=E*ne+te*he+ye,E=E*se+te*ge+Ae,te=Math.min(He,Ye),He=Math.max(He,Ye),Ye=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),He=Math.max(He,b),Ye=Math.min(Ye,x),y=Math.max(y,x),te=Math.min(te,ne),He=Math.max(He,ne),Ye=Math.min(Ye,E),y=Math.max(y,E),new Ln(te,Ye,He-te,y-Ye)},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}hn.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 wn&&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 wn&&x.Bg.remove(a),mp(b));break}}}}}hn.prototype.Wd=function(){this.partManager.Wd()},hn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},hn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},hn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},hn.prototype.Vb=function(a){return this.partManager.Vb(a)},hn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},ot=hn.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 wn,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;$t("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)},hn.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 ni)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)}hn.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))}hn.prototype.ug=function(){this.vk!==-1&&(Rt.clearTimeout(this.vk),this.vk=-1)},hn.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=At.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 At(y.x+te.x/E,y.y+te.y/E)),Ln.free(b),At.free(te),y},ot=hn.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 ni&&(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):Rt.requestAnimationFrame(b)}for(var E=x.callback,te=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){te=!1;break}if(typeof E!="function"||te)return y(x,E,a);var se=a,he=x.callbackTimeout||300,ge=+new Date;return Rt.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"&&$t('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"&&$t("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,Ae=y.omitTemporary;Ae===void 0&&(Ae=!0);var He=y.document||document,Ye=y.elementFinished||null,rt=y.showTemporary;rt===void 0&&(rt=!Ae),y=y.showGrid,y===void 0&&(y=rt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ge=="number"?ge=new Or(ge):ge instanceof Or||$t("MakeImage padding must be a Margin or a number."),ge.left=Math.max(ge.left,0),ge.right=Math.max(ge.right,0),ge.top=Math.max(ge.top,0),ge.bottom=Math.max(ge.bottom,0),a.ib.Vc(!0),Ae=new vu(null,He,void 0,!0);var ht=Ae.context;if(!(E||te||he||se))return Ae.width=a.Aa+Math.ceil(ge.left+ge.right),Ae.height=a.ya+Math.ceil(ge.top+ge.bottom),x==="SVG"?b===null?null:(b.resize(Ae.width,Ae.height,Ae.width,Ae.height),b.ownerDocument=He,b.hs=Ye,Ta(a,b.context,ge,new Yn(Ae.width,Ae.height),a.Ca,a.pa,he,ye,rt,y),b.context):(a.Xm=!1,Ta(a,ht,ge,new Yn(Ae.width,Ae.height),a.Ca,a.pa,he,ye,rt,y),a.Xm=!0,Ae.context);var Ft=a.Pp,Nt=a.documentBounds.copy();if(Nt.Fv(a.yb),rt)for(var Ht=a.Wa.s,Wt=Ht.length,Vt=0;Vt<Wt;Vt++){var Jt=Ht[Vt];if(Jt.visible&&Jt.isTemporary){Jt=Jt.Pa.s;for(var dn=Jt.length,qn=0;qn<dn;qn++){var dr=Jt[qn];dr.isInDocumentBounds&&dr.isVisible()&&(dr=dr.actualBounds,dr.w()&&Nt.ed(dr))}}}if(Ht=new At(Nt.x,Nt.y),he!==null){for(Wt=new Ln(0,0,0,0),Vt=!0,Jt=he.iterator,Jt.reset();Jt.next();)dn=Jt.value,dn instanceof Ar&&(qn=dn.layer,qn!==null&&!qn.visible||qn!==null&&!rt&&qn.isTemporary||!dn.isVisible()||(dn=dn.actualBounds,dn.w()&&(Vt?(Vt=!1,Wt.assign(dn)):Wt.ed(dn))));Nt.width=Wt.width,Nt.height=Wt.height,Ht.x=Wt.x,Ht.y=Wt.y}return se!==null&&se.w()&&(Ht=se,te||(te=Ft)),Wt=se=0,ge!==null&&(se=ge.left+ge.right,Wt=ge.top+ge.bottom),Vt=Jt=0,E!==null&&(Jt=E.width,Vt=E.height,isFinite(Jt)&&(Jt=Math.max(0,Jt-se)),isFinite(Vt)&&(Vt=Math.max(0,Vt-Wt))),E!==null&&te!==null?(te==="NaN"&&(te=Ft),E.w()?(E=Jt,Nt=Vt):isNaN(Vt)?(E=Jt,Nt=Nt.height*te):(E=Nt.width*te,Nt=Vt)):E!==null?E.w()?(te=Math.min(Jt/Nt.width,Vt/Nt.height),E=Jt,Nt=Vt):isNaN(Vt)?(te=Jt/Nt.width,E=Jt,Nt=Nt.height*te):(te=Vt/Nt.height,E=Nt.width*te,Nt=Vt):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/Nt.width,(ne.height-Wt)/Nt.height),te>Ft?(te=Ft,E=Nt.width,Nt=Nt.height):(E=ne.width,Nt=ne.height)):(E=Nt.width*te,Nt=Nt.height*te):(te=Ft,E=Nt.width,Nt=Nt.height),ge!==null?(E+=se,Nt+=Wt):ge=new Or(0),ne!==null&&(Ft=ne.width,ne=ne.height,isNaN(Ft)&&(Ft=2e3),isNaN(ne)&&(ne=2e3),isFinite(Ft)&&(E=Math.min(E,Ft)),isFinite(ne)&&(Nt=Math.min(Nt,ne))),Ae.width=Math.ceil(E),Ae.height=Math.ceil(Nt),x==="SVG"?b===null?null:(b.resize(Ae.width,Ae.height,Ae.width,Ae.height),b.ownerDocument=He,b.hs=Ye,Ta(a,b.context,ge,new Yn(Math.ceil(E),Math.ceil(Nt)),te,Ht,he,ye,rt,y),b.context):(a.Xm=!1,Ta(a,ht,ge,new Yn(Math.ceil(E),Math.ceil(Nt)),te,Ht,he,ye,rt,y),a.Xm=!0,Ae.context)}Tt.Object.defineProperties(hn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Fe||(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,Rt.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new uc(this,Rt.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Rt,"resize",this.Ov,!1),this.removeEventListener(Rt,"wheel",this.$j,!0),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",hn,"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",hn,"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",hn,"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",hn,"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&&$t("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(Rt,"pointermove",this.dk,!0),this.addEventListener(Rt,"pointerdown",this.ui,!0),this.addEventListener(Rt,"pointerup",this.fk,!0),this.addEventListener(Rt,"pointerout",this.ek,!0),this.addEventListener(Rt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Rt,"wheel",this.$j,!0),this.addEventListener(Rt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Rt,"pointermove",this.dk,!0),this.removeEventListener(Rt,"pointerdown",this.ui,!0),this.removeEventListener(Rt,"pointerup",this.fk,!0),this.removeEventListener(Rt,"pointerout",this.ek,!0),this.removeEventListener(Rt,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Rt,"wheel",this.$j,!0),this.removeEventListener(Rt,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=At.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)}At.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&&$t("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||$t("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 Or(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()||$t("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()||$t("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",hn,"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",hn,"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 Or(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&&$t("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&&$t("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 Or(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Tt.Object.defineProperties(hn,{licenseKey:{get:function(){return sg.jc()},set:function(a){sg.add(a.replace(/\s/g,""))}},version:{get:function(){return Rd}}}),hn.prototype.makeImageData=hn.prototype.Jx,hn.prototype.makeImage=hn.prototype.Wz,hn.prototype.cacheGroupExternalLinks=hn.prototype.Fu,hn.prototype.addRenderer=hn.prototype.bs,hn.prototype.makeSVG=hn.prototype.av,hn.prototype.makeSvg=hn.prototype.Cs,hn.prototype.stopAutoScroll=hn.prototype.ug,hn.prototype.doAutoScroll=hn.prototype.gs,hn.prototype.isUnoccupied=hn.prototype.Yj,hn.prototype.raiseDiagramEvent=hn.prototype.R,hn.prototype.removeDiagramListener=hn.prototype.am,hn.prototype.addDiagramListener=hn.prototype.Bj,hn.prototype.findTreeRoots=hn.prototype.yz,hn.prototype.layoutDiagram=hn.prototype.Uz,hn.prototype.findTopLevelGroups=hn.prototype.qz,hn.prototype.findTopLevelNodesAndLinks=hn.prototype.rz,hn.prototype.ensureBounds=hn.prototype.Va,hn.prototype.findLinksByExample=hn.prototype.ls,hn.prototype.findNodesByExample=hn.prototype.ms,hn.prototype.findLinkForData=hn.prototype.Kc,hn.prototype.findNodeForData=hn.prototype.ii,hn.prototype.findPartForData=hn.prototype.Lc,hn.prototype.findLinkForKey=hn.prototype.findLinkForKey,hn.prototype.findNodeForKey=hn.prototype.Vb,hn.prototype.findPartForKey=hn.prototype.findPartForKey,hn.prototype.rebuildParts=hn.prototype.Wd,hn.prototype.transformViewToDoc=hn.prototype.Ps,hn.prototype.transformRectDocToView=hn.prototype.zA,hn.prototype.transformDocToView=hn.prototype.op,hn.prototype.centerRect=hn.prototype.es,hn.prototype.scrollToRect=hn.prototype.tv,hn.prototype.scroll=hn.prototype.scroll,hn.prototype.highlightCollection=hn.prototype.Jz,hn.prototype.highlight=hn.prototype.Iz,hn.prototype.selectCollection=hn.prototype.rA,hn.prototype.select=hn.prototype.select,hn.prototype.updateAllRelationshipsFromData=hn.prototype.rp,hn.prototype.updateAllTargetBindings=hn.prototype.updateAllTargetBindings,hn.prototype.commit=hn.prototype.commit,hn.prototype.rollbackTransaction=hn.prototype.Kf,hn.prototype.commitTransaction=hn.prototype.eb,hn.prototype.startTransaction=hn.prototype.Ea,hn.prototype.raiseChanged=hn.prototype.g,hn.prototype.raiseChangedEvent=hn.prototype.cb,hn.prototype.removeChangedListener=hn.prototype.ik,hn.prototype.addChangedListener=hn.prototype.Pe,hn.prototype.removeModelChangedListener=hn.prototype.mA,hn.prototype.addModelChangedListener=hn.prototype.Yw,hn.prototype.findLayer=hn.prototype.Qj,hn.prototype.removeLayer=hn.prototype.kA,hn.prototype.addLayerAfter=hn.prototype.Cy,hn.prototype.addLayerBefore=hn.prototype.Ww,hn.prototype.addLayer=hn.prototype.Al,hn.prototype.moveParts=hn.prototype.moveParts,hn.prototype.copyParts=hn.prototype.Kj,hn.prototype.removeParts=hn.prototype.Is,hn.prototype.remove=hn.prototype.remove,hn.prototype.add=hn.prototype.add,hn.prototype.clearDelayedGeometries=hn.prototype.bx,hn.prototype.setProperties=hn.prototype.nm,hn.prototype.attach=hn.prototype.Du,hn.prototype.set=hn.prototype.set,hn.prototype.resetInputOptions=hn.prototype.Sx,hn.prototype.setInputOption=hn.prototype.sA,hn.prototype.getInputOption=hn.prototype.Ql,hn.prototype.resetRenderingHints=hn.prototype.Tx,hn.prototype.setRenderingHint=hn.prototype.Xx,hn.prototype.getRenderingHint=hn.prototype.Gf,hn.prototype.maybeUpdate=hn.prototype.bd,hn.prototype.requestUpdate=hn.prototype.$b,hn.prototype.delayInitialization=hn.prototype.Xy,hn.prototype.isUpdateRequested=hn.prototype.Pz,hn.prototype.invalidateDocumentBounds=hn.prototype.Ya,hn.prototype.findObjectsNear=hn.prototype.og,hn.prototype.findPartsNear=hn.prototype.mz,hn.prototype.findObjectsIn=hn.prototype.Cf,hn.prototype.findPartsIn=hn.prototype.ux,hn.prototype.findObjectsAt=hn.prototype.ji,hn.prototype.findPartsAt=hn.prototype.lz,hn.prototype.findObjectAt=hn.prototype.ic,hn.prototype.findPartAt=hn.prototype.Ol,hn.prototype.focusObject=hn.prototype.zz,hn.prototype.alignDocument=hn.prototype.Jy,hn.prototype.zoomToRect=hn.prototype.BA,hn.prototype.zoomToFit=hn.prototype.zoomToFit,hn.prototype.diagramScroll=hn.prototype.kx,hn.prototype.focus=hn.prototype.focus;var rp=new fr,cm=null,ra=Rt.document!==void 0,Bd=null,Jh="",Is=new bn(hn,"None",0),$l=new bn(hn,"Uniform",1),Qh=new bn(hn,"UniformToFill",2),mf=new bn(hn,"CycleAll",10),ng=new bn(hn,"CycleNotDirected",11),rg=new bn(hn,"CycleNotDirectedFast",12),ig=new bn(hn,"CycleNotUndirected",13),og=new bn(hn,"CycleDestinationTree",14),ag=new bn(hn,"CycleSourceTree",15),xh=new bn(hn,"DocumentScroll",1),vf=new bn(hn,"InfiniteScroll",2),wh=new bn(hn,"TreeParentCollapsed",21),Oa=new bn(hn,"AllParentsCollapsed",22),ip=new bn(hn,"AnyParentsCollapsed",23),sg=new vn,Rd="2.3.10",_d="image",yf=null,hm=!1;function Ls(){if(ra){var a=Rt.document.createElement("canvas"),y=a.getContext("2d"),x=mn("7ca11abfd022028846");y[x]=mn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",fn.Dx+"4ae6247590da4bb21c324ba3a84e385776",pi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",tn.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}}hn.className="Diagram",hn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Rt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof hn?y.H:null},hn.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},hn.useDOM=function(a){ra=a?Rt.document!==void 0:!1},hn.isUsingDOM=function(){return ra},hn.None=Is,hn.Uniform=$l,hn.UniformToFill=Qh,hn.CycleAll=mf,hn.CycleNotDirected=ng,hn.CycleNotDirectedFast=rg,hn.CycleNotUndirected=ig,hn.CycleDestinationTree=og,hn.CycleSourceTree=ag,hn.DocumentScroll=xh,hn.InfiniteScroll=vf,hn.TreeParentCollapsed=wh,hn.AllParentsCollapsed=Oa,hn.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=Rt[mn("76a715b2f73f148a")][mn("72ba13b5")]||"";if(a.Rc=!0,ra){var b=hn[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=Rt[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=Rt[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=Rt.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,Rt.document[mn("78a712aa")]){Rt.document[mn("78a712aa")][mn("7bb806b6ed32388c4a875b")](ne),he=Rt.getComputedStyle(ne).getPropertyValue(mn("78a704b7e62456904c9b12701b6532a8"));var ge=Rt.getComputedStyle(ne).getPropertyValue(mn("75b817b0ea2202"));if(Rt.document[mn("78a712aa")][mn("68ad1bbcf533388c4a875b")](ne),he){if(ne=Rt[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 At:a,this.o=new At}Tt.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 At(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},de.className="DraggingOptions";function ke(a,y){if(typeof a=="string"||Rt.Element&&a instanceof Element)var x=hn.call(this,a)||this;else x=hn.call(this)||this,y=a;return Ee(x),y&&x.nm(y),x}qt(ke,hn);function Ee(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Pl,a.layout=new hs}ke.prototype.reset=function(){hn.prototype.reset.call(this),Ee(this)},ke.className="Palette";function Fe(a,y){if(typeof a=="string"||Rt.Element&&a instanceof Element)var x=hn.call(this,a)||this;else x=hn.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 Ar;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 Or(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Bt,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new At(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),Et(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&&Et(b)},x.autoScale=$l,x.vb=!1,y&&Object.assign(x,y),x}qt(Fe,hn),Fe.prototype.computePixelRatio=function(){return 1},Fe.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),lt(this)}finally{this.ta=a,this.ib=y}}}hn.prototype.redraw.call(this)},Fe.prototype.gc=function(){if(this.Ka===null&&$t("No div specified"),this.ta===null&&$t("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?lt(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 lt(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),Ae=he.scale,He=Ln.alloc(),Ye=se.Pa.s,rt=Ye.length,ht=0;ht<rt;ht++){var Ft=Ye[ht];(b||Ft!==ge)&&se.Oj(E,Ft,he,null,Ae,He,!1)}Ln.free(He),E.globalAlpha=ye}}}}}function Et(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 At(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Fe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return bi;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Fe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Fe.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Et(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))},Tt.Object.defineProperties(Fe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Fe&&$t("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),Et(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),Et(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)}}}),Fe.className="Overview";function Bt(){Ko.call(this),this.j=null}qt(Bt,Ko),Bt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new At(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new At(a.x-this.j.x,a.y-this.j.y)),!0)},Bt.prototype.doActivate=function(){this.j=null,Ko.prototype.doActivate.call(this)},Bt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Bt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new At(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new At(a.x-this.j.x,a.y-this.j.y)}}},Bt.className="OverviewDraggingTool";function Dt(){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}Dt.prototype.toString=function(){return"CommandHandler"},Dt.prototype.Xe=function(a){this.H=a},Dt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Qr?y.meta:y.control,b=y.shift,E=y.alt,te=y.key;!x||te!=="C"&&te!=="Insert"?x&&te==="X"||b&&te==="Del"?this.canCutSelection()&&this.cutSelection():x&&te==="V"||b&&te==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&te==="Y"||E&&b&&te==="Backspace"?this.canRedo()&&this.redo():x&&te==="Z"||E&&te==="Backspace"?this.canUndo()&&this.undo():te==="Del"||te==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&te==="A"?this.canSelectAll()&&this.selectAll():te==="Esc"?this.canStopCommand()&&this.stopCommand():te==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):te==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):te==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):te==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):te==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):te==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):te==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):te==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):te===" "?this.canScrollToPart()&&this.scrollToPart():te==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():te==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&te==="0"?this.canResetZoom()&&this.resetZoom():b&&te==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&te==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&te==="G"?this.canUngroupSelection()&&this.ungroupSelection():te==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():te==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Dt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Dt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Do&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Dt.prototype.canStopCommand=function(){return!0},Dt.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Dt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Dt.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new wn,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=""}},Dt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Dt.prototype.copySelection=function(){var a=this.diagram,y=new wn;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)},Dt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Dt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Dt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Dt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)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)},Dt.prototype.pasteFromClipboard=function(){var a=new wn,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},Dt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var te=this.computeEffectiveCollection(y.selection,y.Wm);ac(y,te,new At(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Dt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Bd===null||Bd.count===0||Jh!==a.model.dataFormat)},Dt.prototype.undo=function(){this.diagram.undoManager.undo()},Dt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Dt.prototype.redo=function(){this.diagram.undoManager.redo()},Dt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Dt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Dt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Dt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Dt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Dt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Dt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Dt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;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)},Dt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Dt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(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=Zt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var te=function(){y.Ea();for(var he=E.pop();0<E.length&&he instanceof rr&&he.isTreeExpanded&&(!(he instanceof ni)||he.isSubGraphExpanded);)he=E.pop();0<E.length?(he instanceof Ar&&y.tv(he.actualBounds),he instanceof rr&&!he.isTreeExpanded&&(he.isTreeExpanded=!0),he instanceof ni&&!he.isSubGraphExpanded&&(he.isSubGraphExpanded=!0)):(he instanceof Ar&&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 Zt(a,y,x){if(y.isVisible())return x;if(y instanceof Ui)Zt(a,y.adornedPart,x);else if(y instanceof Vn){var b=y.fromNode;b!==null&&Zt(a,b,x),y=y.toNode,y!==null&&Zt(a,y,x)}else y instanceof rr&&(b=y.labeledLink,b!==null&&Zt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Zt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Zt(a,y,x));return x}Dt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Ar)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Dt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),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")}},Dt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof 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},Dt.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")}},Dt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof 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},Dt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new 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 Ae=se.first().containingGroup;if(Ae!==null)for(;Ae!==null;){E=!1;for(var He=se.iterator;He.next();)if(!He.value.Td(Ae)){E=!0;break}if(E)Ae=Ae.containingGroup;else break}if(x instanceof ni)yu(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Ye=y.copyNodeData(x);on(Ye)&&(y.xf(Ye),b=a.ii(Ye))}if(b!==null){Ae!==null&&this.isValidMember(Ae,b)&&(b.containingGroup=Ae);for(var rt=se.iterator;rt.next();){var ht=rt.value;this.isValidMember(b,ht)&&(ht.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Dt.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function En(a){var y=Sn();for(a=a.iterator;a.next();){var x=a.value;x instanceof Vn||y.push(x)}a=new wn,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 An(y),a}Dt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Vn)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},Dt.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new vn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof ni&&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 Ae=ne.iterator;Ae.next();){var He=Ae.value;if(He.isSelected=!0,!(He instanceof Vn)){var Ye=He.data;Ye!==null?x.mp(Ye,ye):He.containingGroup=ge}}y.remove(he)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Dt.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof ni))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ni&&y.canUngroup())return!0;return!1},Dt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=En(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Dt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),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 ni&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Dt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof ni&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ni&&y.isSubGraphExpanded)return!0;return!1},Dt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),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 ni&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Dt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof ni&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ni&&!y.isSubGraphExpanded)return!0;return!1},Dt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(te){return te instanceof Co&&te.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Dt.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof 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},Dt.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Qt?E=a.ga(Bi):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new At(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)}},Dt.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},Dt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new 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 Vn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Tt.Object.defineProperties(Dt.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||$t("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),Dt.className="CommandHandler",Yc=function(){return new Dt};function Qt(){zr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new At(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;Qt.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())},Qt.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)},Qt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Qt.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},Qt.prototype.copy=function(){return this.clone()},ot=Qt.prototype,ot.qb=function(a){a.classType===Vn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:$t("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Qt&&(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=At.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return At.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),At.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)),At.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=At.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)))),At.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=At.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)))),At.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=At.allocAt(0,0),E=At.allocAt(0,x.height),te=At.allocAt(x.width,x.height),ne=At.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=At.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)))),At.free(he),Ln.free(x),!se&&(tn.us(a,b,E)||tn.us(a,E,te)||tn.us(a,te,ne)||tn.us(a,ne,b))&&(se=!0)}return At.free(b),At.free(E),At.free(te),At.free(ne),se},ot.ga=function(a,y){if(y===void 0&&(y=new At),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=At.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),At.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 At),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,Ae=ne*(te.m21*te.dy-te.m22*te.dx),He=ne*(te.m12*te.dx-te.m11*te.dy);return this.areaBackground!==null?(te=this.actualBounds,tn.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E)):(ne=a*se+y*ge+Ae,a=a*he+y*ye+He,y=x*se+b*ge+Ae,x=x*he+b*ye+He,E.h(0,0),b=this.naturalBounds,x=tn.Ff(0,0,b.width,b.height,ne,a,y,x,E),E.transform(te),x)},Qt.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()||$t("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Aa(this,!1)}},Qt.prototype.Wl=function(){},Qt.prototype.Dd=function(){return!1},Qt.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()||$t("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Mc(this,!1),Ln.free(te)},ot=Qt.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 Ae=0;ge&&y.Gf("drawShadows")&&(he=ge.isShadowed)&&(ye=ge.shadowOffset,Ae=Math.max(ye.y,ye.x)*y.scale*y.Mb),ye=this.Dd();var He;if(!(He=y.$i||!ye)){var Ye=this.naturalBounds;He=this.wh;var rt=He.m11,ht=He.m21,Ft=He.dx,Nt=He.m12,Ht=He.m22,Wt=He.dy,Vt,Jt=Vt=0;He=Vt*rt+Jt*ht+Ft;var dn=Vt*Nt+Jt*Ht+Wt;Vt=Ye.width+Ae,Jt=0;var qn=Vt*rt+Jt*ht+Ft;Vt=Vt*Nt+Jt*Ht+Wt,Jt=Math.min(He,qn);var dr=Math.min(dn,Vt),hr=Math.max(He+0,qn)-Jt,$n=Math.max(dn+0,Vt)-dr;He=Jt,dn=dr,Vt=Ye.width+Ae,Jt=Ye.height+Ae,qn=Vt*rt+Jt*ht+Ft,Vt=Vt*Nt+Jt*Ht+Wt,Jt=Math.min(He,qn),dr=Math.min(dn,Vt),hr=Math.max(He+hr,qn)-Jt,$n=Math.max(dn+$n,Vt)-dr,He=Jt,dn=dr,Vt=0,Jt=Ye.height+Ae,qn=Vt*rt+Jt*ht+Ft,Vt=Vt*Nt+Jt*Ht+Wt,Jt=Math.min(He,qn),dr=Math.min(dn,Vt),hr=Math.max(He+hr,qn)-Jt,$n=Math.max(dn+$n,Vt)-dr,He=Jt,dn=dr,Ae=y.viewportBounds,Ye=Ae.x,rt=Ae.y,He=!(He>Ae.width+Ye||Ye>hr+He||dn>Ae.height+rt||rt>$n+dn)}if(He){if(He=(this.l&256)!==0,a.clipInsteadOfFill&&(He=!1),this instanceof Co&&(a.font=this.font),He){if(dn=se.se()?se.naturalBounds:se.actualBounds,hr=Math.max(ne.x,dn.x),$n=Math.max(ne.y,dn.y),Ae=Math.min(ne.right,dn.right)-hr,Ye=Math.min(ne.bottom,dn.bottom)-$n,rt=this.tb,rt!==null&&(hr=rt.x,$n=rt.y,Ae=rt.width,Ye=rt.height),hr>ne.width+ne.x||ne.x>dn.width+dn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(hr,$n,Ae,Ye),a.clip()}if(ye){if(!ge.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}he&&(dn=ge.shadowOffset,a.Ev(dn.x*y.scale*this.scale*y.Mb,dn.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),He&&(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 Ae=0,He=0,Ye=0,rt=0,ht=0,Ft=0;if(Ft=ht=0,E?(ht=ne.x,Ft=ne.y):b||(ht-=ge/2,Ft-=ge/2),Ae=x.start.x*se+x.start.offsetX,He=x.start.y*he+x.start.offsetY,Ye=x.end.x*se+x.end.offsetX,rt=x.end.y*he+x.end.offsetY,Ae+=ht,Ye+=ht,He+=Ft,rt+=Ft,x.type===th)ye=y.createLinearGradient(Ae,He,Ye,rt);else if(x.type===su)Ft=isNaN(x.endRadius)?Math.max(se,he)/2:x.endRadius,isNaN(x.startRadius)?(ht=0,Ft=Math.max(se,he)/2):ht=x.startRadius,ye=y.createRadialGradient(Ae,He,ht,Ye,rt,Ft);else if(x.type===hp)try{ye=y.createPattern(x.pattern,"repeat")}catch(Ht){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 Nt=a.diagram;Nt!==null&&x.yk===-1&&Gn(function(){Nt.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=At.alloc();te.yi(y,x,b,E,Bi),a.rotate(this.Kb,te.x,te.y),At.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)&&$t("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)||$t('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Rt.go[a]}if(b===null&&(E!=null&&E.constructor||$t("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 hn&&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?$t("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:$t("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 Qt)a instanceof Un||$t("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):$t("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 Qt||a instanceof ja?a.bind(y):$t("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Tl)a instanceof Qt?a.Jv(y):$t("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):$t("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):$t("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ro)a instanceof hn||a instanceof ni?a.layout=y:$t("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)&&$t("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)&&$t("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 $t('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}Tt.Object.defineProperties(Qt.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",Qt,"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 Ar)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 At(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&&$t("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 Or(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()&&$t("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",Qt,"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",Qt,"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",Qt,"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",Qt,"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||$t("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",Qt,"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",Qt,"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",Qt,"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",Qt,"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))}}}),Qt.prototype.trigger=Qt.prototype.Jv,Qt.prototype.findBindingPanel=Qt.prototype.ih,Qt.prototype.findTemplateBinder=Qt.prototype.pz,Qt.prototype.setProperties=Qt.prototype.nm,Qt.prototype.apply=Qt.prototype.apply,Qt.prototype.attach=Qt.prototype.Du,Qt.prototype.set=Qt.prototype.set,Qt.prototype.isEnabledObject=Qt.prototype.If,Qt.prototype.isVisibleObject=Qt.prototype.Ed,Qt.prototype.isContainedBy=Qt.prototype.rg,Qt.prototype.getNearestIntersectionPoint=Qt.prototype.rs,Qt.prototype.getLocalPoint=Qt.prototype.qs,Qt.prototype.getDocumentScale=Qt.prototype.Df,Qt.prototype.getDocumentAngle=Qt.prototype.li,Qt.prototype.getDocumentBounds=Qt.prototype.mi,Qt.prototype.getDocumentPoint=Qt.prototype.ga,Qt.prototype.intersectsRect=Qt.prototype.Yc,Qt.prototype.containedInRect=Qt.prototype.fh,Qt.prototype.containsRect=Qt.prototype.Re,Qt.prototype.containsPoint=Qt.prototype.ca,Qt.prototype.raiseChanged=Qt.prototype.g,Qt.prototype.raiseChangedEvent=Qt.prototype.cb,Qt.prototype.addCopyProperty=Qt.prototype.Vw;var op=null;Qt.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 ni){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 At(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 At(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 Or(0,1,0,0)});var y=au(Un,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Or(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}),Qt.None=Dn=new bn(Qt,"None",0),Qt.Default=si=new bn(Qt,"Default",0),Qt.Vertical=_r=new bn(Qt,"Vertical",4),Qt.Horizontal=Er=new bn(Qt,"Horizontal",5),Qt.Fill=Hn=new bn(Qt,"Fill",3),Qt.Uniform=gr=new bn(Qt,"Uniform",1),Qt.UniformToFill=ki=new bn(Qt,"UniformToFill",2),Qt.FlipVertical=Si=new bn(Qt,"FlipVertical",1),Qt.FlipHorizontal=_i=new bn(Qt,"FlipHorizontal",2),Qt.FlipBoth=mo=new bn(Qt,"FlipBoth",3),Qt.make=au,Qt.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},Qt.defineBuilder=bh,Qt.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 Qt))return y&&b.set(y),b;$t('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Qt.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?Rt.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new 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},Tt.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),Ae=x*Math.sin(b),He=a+ye,Ye=y+Ae,rt=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-He)||1e-6<Math.abs(se-Ye))&&this.path.push(["L",He,+Ye]),0>b&&(b=b%he+he),b>ge?(this.path.push(["A",x,x,0,1,rt,a-ye,y-Ae]),this.path.push(["A",x,x,0,1,rt,He,Ye])):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},tn.$(b,se)&&tn.$(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",hn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new uc(this,Rt.document));var y=new uc(this,Rt.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)},hn.prototype.makeSvg=hn.prototype.Cs,hn.prototype.av=function(a){return this.Cs(a)},hn.prototype.makeSVG=hn.prototype.av;function vu(a,y,x,b){this.ownerDocument=y=y===void 0?Rt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new 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},Tt.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&&$t("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(){},Tt.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)&&$t("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:$t("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||$t("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}Tt.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(){},Tt.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"}qt(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,Ae=ye.right+ye.left;ye=ye.top+ye.bottom,ge.measure(y,x,te,ne);var He=ge.measuredBounds;Ae=Math.max(He.width+Ae,0),ye=Math.max(He.height+ye,0),He=ge.position.x;var Ye=ge.position.y;isFinite(He)||(He=0),isFinite(Ye)||(Ye=0),ge instanceof fi&&ge.isGeometryPositioned&&(ge=ge.strokeWidth/2,He-=ge,Ye-=ge),Yi(E,He,Ye,Ae,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"}qt(ym,Wa),ym.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=Sn(),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 Ae=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,Ae)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)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));An(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 Ae=ye.measuredBounds,He=ye.margin,Ye=He.top+He.bottom,rt=te+E.bottom,ht=Ae.height,Ft=sl(ye,!1);(isNaN(ye.desiredSize.height)&&Ft===Hn||Ft===_r)&&(ht=Math.max(x.height-Ye-rt,0)),Ye=ht+Ye+rt,rt=ye.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=Bi),ne&&(se-=Ae.width+He.left+He.right),ye.arrange(se+rt.offsetX+He.left,ge+rt.offsetY+He.top+(x.height*rt.y-Ye*rt.y),Ae.width,ht),ne||(se+=Ae.width+He.left+He.right)}}};function Sm(){this.xa="Base"}qt(Sm,Wa),Sm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=Sn();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 Ae=ge.margin;ye=Ae.right+Ae.left,Ae=Ae.top+Ae.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+Ae,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)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);An(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 Ae=ye.measuredBounds,He=ye.margin,Ye=He.left+He.right,rt=te+E.right,ht=Ae.width,Ft=sl(ye,!1);(isNaN(ye.desiredSize.width)&&Ft===Hn||Ft===Er)&&(ht=Math.max(x.width-Ye-rt,0)),Ye=ht+Ye+rt,rt=ye.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=Bi),ne&&(se-=Ae.height+He.bottom+He.top),ye.arrange(ge+rt.offsetX+He.left+(x.width*rt.x-Ye*rt.x),se+rt.offsetY+He.top,ht,Ae.height),ne||(se+=Ae.height+He.bottom+He.top)}}};function xm(){this.xa="Base"}qt(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,Ae=ge.top+ge.bottom;he.measure(y,x,te,ne);var He=he.measuredBounds;te=He.width,ne=He.height;var Ye=Math.max(te+ye,0),rt=Math.max(ne+Ae,0),ht=a.isClipping,Ft=Ln.allocAt(-ge.left,-ge.top,Ye,rt),Nt=Ln.allocAt(0,0,te,ne);pv(he,Nt,!0),te=Nt.width,ne=Nt.height;for(var Ht=!0,Wt=nh(a),Vt=0;Vt<se;Vt++){var Jt=b[Vt];He=y;var dn=x;if(Jt!==he&&(Jt.visible||Jt===Wt)){ge=Jt.margin;var qn=ge.left,dr=ge.top;switch(Ye=ge.right+ge.left,rt=ge.top+ge.bottom,ge=sl(Jt,!1),ge){case Hn:He=te,dn=ne,dr=qn=rt=Ye=0;break;case Er:He=te,qn=Ye=0;break;case _r:dn=ne,dr=rt=0}Jt.measure(He,dn,0,0),He=Jt.measuredBounds,Ye=Math.max(He.width+Ye,0),rt=Math.max(He.height+rt,0),ge=Jt.alignment,ge.Xb()&&(ge=a.defaultAlignment),ge.sb()||(ge=Bi);var hr=Jt.alignmentFocus;if(hr.Xb()&&(hr=Bi),dn=null,Jt instanceof Un&&Jt.$e!==""&&(dn=Jt.fb(Jt.$e),dn===Jt&&(dn=null)),qn=Nt.x-qn,dr=Nt.y-dr,dn!==null){for(Jt.arrange(0,0,He.width,He.height),He=dn.actualBounds,He=At.allocAt(He.x+(hr.x*He.width-hr.offsetX),He.y+(hr.y*He.height-hr.offsetY)),dn=dn.panel;dn!==Jt;)dn.transform.Ga(He),dn=dn.panel;qn+=ge.x*te+ge.offsetX-He.x,dr+=ge.y*ne+ge.offsetY-He.y,At.free(He)}else qn+=ge.x*te+ge.offsetX-(hr.x*He.width+hr.offsetX),dr+=ge.y*ne+ge.offsetY-(hr.y*He.height+hr.offsetY);Ht?(Ht=!1,E.h(qn,dr,Ye,rt)):Yi(E,qn,dr,Ye,rt)}}switch(Ht?E.assign(Ft):ht?E.Uu(Nt.x,Nt.y,Nt.width,Nt.height):Yi(E,Ft.x,Ft.y,Ft.width,Ft.height),Ln.free(Ft),Ln.free(Nt),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(He=he.measuredBounds,te=He.width,ne=He.height,Ye=Math.max(te+ye,0),rt=Math.max(ne+Ae,0),ge=he.margin,Nt=Ln.allocAt(-ge.left,-ge.top,Ye,rt),pv(he,Nt,!0),te=Nt.width,ne=Nt.height,y=0;y<se;y++)x=b[y],x===he||!x.visible&&x!==Wt||(ge=x.margin,Ye=ge.right+ge.left,rt=ge.top+ge.bottom,He=x.measuredBounds,Ye=Math.max(He.width+Ye,0),rt=Math.max(He.height+rt,0),ye=x.alignment,ye.Xb()&&(ye=a.defaultAlignment),ye.sb()||(ye=Bi),x=x.alignmentFocus,x.Xb()&&(x=Bi),Ht?(Ht=!1,E.h(ye.x*te+ye.offsetX-(x.x*He.width+x.offsetX)-ge.left,ye.y*ne+ye.offsetY-(x.y*He.height+x.offsetY)-ge.top,Ye,rt)):Yi(E,ye.x*te+ye.offsetX-(x.x*He.width+x.offsetX)-ge.left,ye.y*ne+ye.offsetY-(x.y*He.height+x.offsetY)-ge.top,Ye,rt));Ht?E.assign(Ft):ht?E.Uu(Nt.x,Nt.y,Nt.width,Nt.height):Yi(E,Ft.x,Ft.y,Ft.width,Ft.height),Ln.free(Nt)},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 Ae=y[se];if(Ae!==E){ge=Ae.measuredBounds;var He=ge.width,Ye=ge.height;ye=Ae.alignment,ye.Xb()&&(ye=a.defaultAlignment),ye.sb()||(ye=Bi);var rt=Ae.alignmentFocus;if(rt.Xb()&&(rt=Bi),ge=null,Ae instanceof Un&&Ae.$e!==""&&(ge=Ae.fb(Ae.$e),ge===Ae&&(ge=null)),ge!==null){var ht=ge.actualBounds;for(rt=At.allocAt(ht.x+(rt.x*ht.width-rt.offsetX),ht.y+(rt.y*ht.height-rt.offsetY)),ge=ge.panel;ge!==Ae;)ge.transform.Ga(rt),ge=ge.panel;ge=ye.x*ne.width+ye.offsetX-rt.x,ye=ye.y*ne.height+ye.offsetY-rt.y,At.free(rt)}else ge=ye.x*ne.width+ye.offsetX-(rt.x*He+rt.offsetX),ye=ye.y*ne.height+ye.offsetY-(rt.y*Ye+rt.offsetY);ge+=ne.x-x.x,ye+=ne.y-x.y,Ae.visible&&Ae.arrange(te+ge,he+ye,He,Ye)}}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"}qt(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,Ae=x,He=ge.right+ge.left,Ye=ge.top+ge.bottom;he.measure(y,x,te,ne),ge=he.measuredBounds;var rt=0,ht=null;he instanceof fi&&(ht=he,rt=ht.strokeWidth*ht.scale);var Ft=Math.max(ge.width+He,0);ge=Math.max(ge.height+Ye,0);var Nt=yv(he),Ht=Nt.x*Ft+Nt.offsetX;Nt=Nt.y*ge+Nt.offsetY;var Wt=Sv(he),Vt=Wt.x*Ft+Wt.offsetX;for(Wt=Wt.y*ge+Wt.offsetY,isFinite(y)&&(ye=Math.max(Math.abs(Ht-Vt)-rt,0)),isFinite(x)&&(Ae=Math.max(Math.abs(Nt-Wt)-rt,0)),rt=Yn.alloc(),rt.h(0,0),a=nh(a),Wt=0;Wt<se;Wt++)Nt=b[Wt],Nt===he||!Nt.visible&&Nt!==a||(ge=Nt.margin,Ft=ge.right+ge.left,Ht=ge.top+ge.bottom,Nt.measure(ye,Ae,0,0),ge=Nt.measuredBounds,Ft=Math.max(ge.width+Ft,0),ge=Math.max(ge.height+Ht,0),rt.h(Math.max(Ft,rt.width),Math.max(ge,rt.height)));if(se===1)E.width=Ft,E.height=ge,Yn.free(rt);else{switch(Nt=yv(he),Wt=Sv(he),se=b=0,Wt.x!==Nt.x&&Wt.y!==Nt.y&&(b=rt.width/Math.abs(Wt.x-Nt.x),se=rt.height/Math.abs(Wt.y-Nt.y)),Yn.free(rt),rt=0,ht!==null&&(rt=ht.strokeWidth*ht.scale,Ev(ht)===gr&&(b=se=Math.max(b,se))),b+=Math.abs(Nt.offsetX)+Math.abs(Wt.offsetX)+rt,se+=Math.abs(Nt.offsetY)+Math.abs(Wt.offsetY)+rt,ht=he.stretch,ht===si&&(ht=sl(he,!1)),ht){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+He,E.height=he.measuredBounds.height+Ye}},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),Ae=Sv(b),He=ye.y*E.height+ye.offsetY,Ye=Ae.x*E.width+Ae.offsetX;for(Ae=Ae.y*E.height+Ae.offsetY,te.x=ye.x*E.width+ye.offsetX,te.y=He,Yi(te,Ye,Ae,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),He=se.alignment,He.Xb()&&(He=a.defaultAlignment),He.sb()||(He=Bi),he=te.width*He.x+He.offsetX-he*He.x+ne.left+te.x,ne=te.height*He.y+He.offsetY-ye*He.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"}qt(bm,Wa),bm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=Sn(),se=Sn(),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 Ae=ye.O.s,He=Ae.length,Ye=0;Ye<He;Ye++){var rt=Ae[Ye];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 ht=[],Ft=0;Ft<te;Ft++){var Nt=ne[Ft];Nt.visible&&(Aa(Nt,!0),Mc(Nt,!0),ht[Nt.row]||(ht[Nt.row]=[]),ht[Nt.row][Nt.column]||(ht[Nt.row][Nt.column]=[]),ht[Nt.row][Nt.column].push(Nt))}An(ne);var Ht=Sn(),Wt=Sn(),Vt=Sn(),Jt={count:0},dn={count:0},qn=y,dr=x,hr=a.rowDefs,$n=a.colDefs,jn=null;te=hr.length;for(var ei=0;ei<te;ei++)jn=hr[ei],jn!==void 0&&(jn.actual=0);te=$n.length;for(var $r=0;$r<te;$r++)jn=$n[$r],jn!==void 0&&(jn.actual=0);for(var Zi=ht.length,bo=0,Ja=0;Ja<Zi;Ja++)ht[Ja]&&(bo=Math.max(bo,ht[Ja].length));var ts=Math.min(a.topIndex,Zi-1),Fs=Math.min(a.leftIndex,bo-1),Qa=0;Zi=ht.length;for(var Ih=nh(a),wa=0;wa<Zi;wa++)if(ht[wa]){bo=ht[wa].length;var Qu=a.Fb(wa);Qu.actual=0;for(var Bs=Qu.oc=0;Bs<bo;Bs++)if(ht[wa][Bs]){var Dh=a.Eb(Bs);Ht[Bs]===void 0&&(Dh.actual=0,Dh.oc=0,Ht[Bs]=!0);for(var Jl=ht[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||Wt.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||(Jt[Bs]!==void 0||Rs!==Hn&&Rs!==Er||(Jt[Bs]=-1,Jt.count++),dn[wa]!==void 0||Rs!==Hn&&Rs!==_r||(dn[wa]=-1,dn.count++),Vt.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()}}}}}An(Ht);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=Vt.length;for(var wl=0;wl<te;wl++){var fc=Vt[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;Jt[fc.column]=ah.oc===0&&Jt[fc.column]!==void 0?Math.max(Bp.width+qd,Jt[fc.column]):null,dn[fc.row]=K0.oc===0&&dn[fc.row]!==void 0?Math.max(Bp.height+pc,dn[fc.row]):null}var Bf=0,Rp=0,Du;for(Du in dn)Du!=="count"&&(Bf+=dn[Du]);for(Du in Jt)Du!=="count"&&(Rp+=Jt[Du]);for(var ds=Yn.alloc(),qg=0;qg<te;qg++){var Js=Vt[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)&&Jt[Js.column]!==null?Rp===0?sh=Qs.actual+qn:sh=Jt[Js.column]/Rp*Fh:Jt[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)&&dn[Js.row]!==null?Bf===0?Bh=ba.actual+dr:Bh=dn[Js.row]/Bf*_c:dn[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),dn[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),Jt[Js.column]===null&&(Fh=Math.max(Fh-Qa,0))}}An(Vt);var lh=Yn.alloc(),tc=Sn(),du=Sn();if(te=Wt.length,te!==0){for(var vd=0;vd<Zi;vd++)if(ht[vd]){bo=ht[vd].length;var zp=a.Fb(vd);tc[vd]=zp.actual;for(var yd=0;yd<bo;yd++)if(ht[vd][yd]){var Z0=a.Eb(yd);du[yd]=Z0.actual}}}for(var Hp=0;Hp<te;Hp++){var sa=Wt[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)}}}}An(Wt),Yn.free(lh),Yn.free(ds),tc!==void 0&&An(tc),du!==void 0&&An(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)}An(se),a.inRowsCols=ht},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,Ae=0;Ae<ge;Ae++)ne[Ae]&&(ye=Math.max(ye,ne[Ae].length));he=a.rowDefs,se=a.colDefs;var He=Ae=0,Ye=Math.min(a.topIndex,ge-1);if(0<he.length){for(;Ye!==ge&&(he[Ye]===void 0||he[Ye].oa===0);)Ye++;Ye=Math.max(Math.min(Ye,ge-1),0),Ae=-he[Ye].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),He=-se[rt].position}for(var ht=0,Ft=0;ht!==ge&&he[ht]===void 0;)ht++;for(;Ft!==ge&&se[Ft]===void 0;)Ft++;ye=a.part,a.Fb(ht),a.Eb(Ft);for(var Nt=0;Nt<y.length;Nt++){var Ht=y[Nt];if(Ht instanceof Un&&Ht.visible&&Ch(Ht)){if(Ht.type===Un.TableRow){se=a.Fb(Ht.row);var Wt=a.Eb(Ft)}else se=a.Fb(ht),Wt=a.Eb(Ht.column);he=se.position+Ae+E,se.oa!==0&&(he+=se.Io(Math.max(ht,Ye))),se=Wt.position+He+te,Wt.oa!==0&&(se+=Wt.Io(Math.max(Ft,rt))),Wt=Ht.measuredBounds,Ht.Uk(),Ht.actualBounds.ka();var Vt=Ht.actualBounds,Jt=Ln.allocAt(Vt.x,Vt.y,Vt.width,Vt.height);Vt.x=Ht.type===Un.TableRow?te:se,Vt.y=Ht.type===Un.TableColumn?E:he,Vt.width=Wt.width,Vt.height=Wt.height,Ht.actualBounds.freeze(),Mc(Ht,!1),xo(Jt,Vt)||ye===null||(ye.oh(),Ht.Pn(ye)),Ln.free(Jt)}}for(Nt=Yn.alloc(),Ht=0;Ht<ge;Ht++)if(ne[Ht]){for(ye=ne[Ht].length,Wt=a.Fb(Ht),he=Wt.position+Ae+E,Wt.oa!==0&&(he+=Wt.Io(Math.max(ht,Ye))),Vt=0;Vt<ye;Vt++)if(ne[Ht][Vt]){Jt=a.Eb(Vt),se=Jt.position+He+te,Jt.oa!==0&&(se+=Jt.Io(Math.max(Ft,rt)));for(var dn=ne[Ht][Vt],qn=dn.length,dr=0;dr<qn;dr++){var hr=dn[dr],$n=hr.measuredBounds;Nt.h(0,0);for(var jn=1;jn<hr.rowSpan&&!(Ht+jn>=a.rowCount);jn++){var ei=a.Fb(Ht+jn);ei.oa!==0&&(Nt.height+=ei.total)}for(jn=1;jn<hr.columnSpan&&!(Vt+jn>=a.columnCount);jn++)ei=a.Eb(Vt+jn),ei.oa!==0&&(Nt.width+=ei.total);var $r=Jt.oa+Nt.width,Zi=Wt.oa+Nt.height;jn=se,ei=he;var bo=$r,Ja=Zi,ts=se,Fs=he,Qa=$r,Ih=Zi;se+$r>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=Jt.alignment,wu=Wt.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,Wt,Jt,!1);!isNaN(hr.desiredSize.width)||qu!==Hn&&qu!==Er||(Jl=Math.max($r-Sl,0)),!isNaN(hr.desiredSize.height)||qu!==Hn&&qu!==_r||(wu=Math.max(Zi-fd,0)),$r=hr.maxSize,Zi=hr.minSize,Jl=Math.min($r.width,Jl),wu=Math.min($r.height,wu),Jl=Math.max(Zi.width,Jl),wu=Math.max(Zi.height,wu),$r=wu+fd,jn+=bo*Qu-(Jl+Sl)*Qu+Dh+Nl.left,ei+=Ja*Bs-$r*Bs+wa+Nl.top,hr.visible&&(No(ts,Fs,Qa,Ih,jn,ei,$n.width,$n.height)?hr.arrange(jn,ei,Jl,wu):hr.arrange(jn,ei,Jl,wu,new Ln(ts,Fs,Qa,Ih)))}}}for(Yn.free(Nt),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"}qt(Pm,Wa),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}qt(Cm,Wa),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Em(){this.xa="Base"}qt(Em,Wa),Em.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&$t("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,Ae=se.width;se=se.height;var He=Math.max(y-ge,0),Ye=Math.max(x-he,0),rt=1;a.viewboxStretch===gr?Ae!==0&&se!==0&&(rt=Math.min(He/Ae,Ye/se)):Ae!==0&&se!==0&&(rt=Math.max(He/Ae,Ye/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"}qt(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),Ae=a.gridOrigin,He=Ae.x;Ae=Ae.y,y.save(),y.beginPath(),y.rect(0,0,se,he),y.clip(),y.Se();for(var Ye=[],rt=a.O.s,ht=rt.length,Ft=0;Ft<ht;Ft++){var Nt=rt[Ft],Ht=[];if(Ye.push(Ht),Nt.visible){var Wt=Nt.interval;if(!(0>Wt)){Nt=mv(Nt.figure);for(var Vt=0;Vt<ht;Vt++)if(Vt!==Ft){var Jt=rt[Vt];Jt.visible&&mv(Jt.figure)===Nt&&(Jt=Jt.interval,Jt>Wt&&Ht.push(Jt))}}}}for(rt=a.O.s,ht=rt.length,Ft=0;Ft<ht;Ft++){var dn=rt[Ft];if(dn.visible&&(Ht=dn.interval||1,Nt=Math.abs(Ht),!(2>E*Nt*x))){if(Wt=dn.segmentIndex,(!isFinite(Wt)||isNaN(Wt))&&(Wt=0),0>Wt&&(Wt=Nt-Math.min(-Wt,Nt)),Wt=Math.round(Wt%Nt),Nt=dn.opacity,Vt=1,Nt!==1){if(Nt===0)continue;Vt=y.globalAlpha,y.globalAlpha=Vt*Nt}Jt=Ye[Ft];var qn=!1,dr=dn.strokeDashArray;if(dr!==null&&(qn=!0,y.js(dr,dn.strokeDashOffset)),dn.figure==="LineV"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,oa(a,y,dn.stroke,!1,!1,te,ne),y.beginPath(),dr=dn=Math.floor((He-E)/E);dr<=dn+ge;dr++){var hr=dr*E+He;0<=hr&&hr<=se&&Tm(dr,Ht,Wt,Jt)&&(y.moveTo(hr,0),y.lineTo(hr,he))}y.stroke(),y.Se()}else if(dn.figure==="LineH"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,oa(a,y,dn.stroke,!1,!1,te,ne),y.beginPath(),dr=dn=Math.floor((Ae-b)/b);dr<=dn+ye;dr++)hr=dr*b+Ae,0<=hr&&hr<=he&&Tm(dr,Ht,Wt,Jt)&&(y.moveTo(0,hr),y.lineTo(se,hr));y.stroke(),y.Se()}else if(dn.figure==="BarV"&&dn.fill!==null)for(oa(a,y,dn.fill,!0,!1,te,ne),dn=dn.width,isNaN(dn)&&(dn=E),hr=dr=Math.floor((He-E)/E);hr<=dr+ge;hr++){var $n=hr*E+He;0<=$n+dn&&$n<=se&&Tm(hr,Ht,Wt,Jt)&&y.fillRect($n,0,dn,he)}else if(dn.figure==="BarH"&&dn.fill!==null)for(oa(a,y,dn.fill,!0,!1,te,ne),dn=dn.height,isNaN(dn)&&(dn=b),hr=dr=Math.floor((Ae-b)/b);hr<=dr+ye;hr++)$n=hr*b+Ae,0<=$n+dn&&$n<=he&&Tm(hr,Ht,Wt,Jt)&&y.fillRect(0,$n,se,dn);qn&&y.fs(),Nt!==1&&(y.globalAlpha=Vt)}}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"}qt(Mm,Wa),Mm.prototype.measure=function(a,y,x,b,E){var te=b.length;if(a instanceof Ui||a instanceof Vn){var ne=null,se=null;if(a instanceof Vn&&(ne=a),a instanceof Ui&&(se=a,ne=se.adornedPart,a.j===null&&(a.j=[])),ne instanceof Vn){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,Ae=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var He=y.height,Ye=a.j;if(Ye.length=0,ge!==null){i1(a,se,He,ge);var rt=ge.measuredBounds;x.ed(rt),Ye.push(rt)}rt=pi.alloc();for(var ht=At.alloc(),Ft=At.alloc(),Nt=0;Nt<te;Nt++){var Ht=b[Nt];if(Ht!==ge)if(Ht.isPanelMain&&Ht instanceof fi){i1(a,se,He,Ht);var Wt=Ht.measuredBounds;x.ed(Wt),Ye.push(Wt)}else if(2>Ae)Ht.measure(1/0,1/0,0,0),Wt=Ht.measuredBounds,x.ed(Wt),Ye.push(Wt);else{var Vt=Ht.segmentIndex,Jt=Ht.segmentFraction,dn=Ht.alignmentFocus;dn.Mc()&&(dn=Bi);var qn=Ht.segmentOrientation,dr=Ht.segmentOffset;if(isNaN(Vt)){var hr=he.ua;Wt=Sn(),hr.Qu(Jt,Wt);var $n=At.allocAt(Wt[0],Wt[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=Wt[2],qn!==Ks){var jn=he.computeAngle(Ht,qn,hr);Ht.Kb=jn}jn=$n.x-y.x;var ei=$n.y-y.y;At.free($n),An(Wt)}else if(Vt<-Ae||Vt>=Ae)Wt=At.alloc(),he.vg(),he.computeMidPoint(Wt),hr=he.midAngle,qn!==Ks&&(jn=he.computeAngle(Ht,qn,hr),Ht.Kb=jn),jn=Wt.x-y.x,ei=Wt.y-y.y,At.free(Wt);else{if(jn=0,0<=Vt?(ei=ye.M(Vt),Wt=Vt<Ae-1?ye.M(Vt+1):ei):(jn=Ae+Vt,ei=ye.M(jn),Wt=0<jn?ye.M(jn-1):ei),ei.Xa(Wt)){0<=Vt?(hr=0<Vt?ye.M(Vt-1):ei,jn=Vt<Ae-2?ye.M(Vt+2):Wt):(hr=jn<Ae-1?ye.M(jn+1):ei,jn=1<jn?ye.M(jn-2):Wt),$n=hr.Bf(ei);var $r=Wt.Bf(jn);hr=$n>$r+10?0<=Vt?hr.ab(ei):ei.ab(hr):$r>$n+10?0<=Vt?Wt.ab(jn):jn.ab(Wt):0<=Vt?hr.ab(jn):jn.ab(hr)}else hr=0<=Vt?ei.ab(Wt):Wt.ab(ei);qn!==Ks&&(jn=he.computeAngle(Ht,qn,hr),Ht.Kb=jn),jn=ei.x+(Wt.x-ei.x)*Jt-y.x,ei=ei.y+(Wt.y-ei.y)*Jt-y.y}Ht.measure(1/0,1/0,0,0),Wt=Ht.measuredBounds,$n=Ht.naturalBounds;var Zi=0;Ht instanceof fi&&(Zi=Ht.strokeWidth),$r=$n.width+Zi;var bo=$n.height+Zi;rt.reset(),rt.translate(-Wt.x,-Wt.y),rt.scale(Ht.scale,Ht.scale),rt.rotate(qn===Ks?Ht.angle:hr,$r/2,bo/2),qn!==Cg&&qn!==Tg||rt.rotate(90,$r/2,bo/2),qn!==Eg&&qn!==Mg||rt.rotate(-90,$r/2,bo/2),qn===r0&&(45<hr&&135>hr||225<hr&&315>hr)&&rt.rotate(-hr,$r/2,bo/2),$n=new Ln(0,0,$r,bo),ht.xi($n,dn),rt.Ga(ht),dn=-ht.x+Zi/2*Ht.scale,Ht=-ht.y+Zi/2*Ht.scale,Ft.assign(dr),Zi=isNaN(dr.x);var Ja=isNaN(dr.y);if(Zi||Ja){$r=$r/2+3,bo=bo/2+3;var ts=45<=hr&&135>=hr,Fs=225<=hr&&315>=hr;qn===Ks&&(ts||Fs)?(Ft.x=Ja?$r:dr.y,Ft.y=Zi?bo:dr.x,ts?0<=Vt||isNaN(Vt)&&.5>Jt||!Zi||(Ft.y=-bo):Fs&&((0<=Vt||isNaN(Vt)&&.5>Jt)&&Zi&&(Ft.y=-bo),Ja&&(Ft.x=-$r))):(Zi&&(Ft.x=0<=Vt||isNaN(Vt)&&.5>Jt?$r:-$r),Ja&&(Ft.y=-bo),Ft.rotate(hr))}else Ft.rotate(hr);jn+=Ft.x,ei+=Ft.y,$n.set(Wt),$n.h(jn+dn,ei+Ht,Wt.width,Wt.height),Ye.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),At.free(ht),At.free(Ft)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ui||a instanceof Vn){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 Vn)for(te=a.labelNodes;te.next();){var Ae=a;ne=te.value,se=ne.segmentIndex,he=ne.segmentFraction;var He=ne.alignmentFocus;if(ge=ne.segmentOrientation,ye=ne.segmentOffset,isNaN(se)){var Ye=Ae.ua,rt=Sn();Ye.Qu(he,rt);var ht=At.allocAt(rt[0],rt[1]);ht.add(Ae.i(0)),Ye.type===Zn.j||(Ye=Ye.figures.first()),ht.offset(-Ye.startX,-Ye.startY),Ye=rt[2],ge!==Ks&&(Ae=Ae.computeAngle(ne,ge,Ye),ne.angle=Ae),Ae=ht.x;var Ft=ht.y;At.free(ht),An(rt)}else if(se<-x||se>=x)rt=At.alloc(),Ye=Ae,Ft=rt,Ye.vg(),Ye.computeMidPoint(Ft),Ye=Ae.midAngle,ge!==Ks&&(Ae=Ae.computeAngle(ne,ge,Ye),ne.angle=Ae),Ae=rt.x,Ft=rt.y,At.free(rt);else{if(ht=0,0<=se?(rt=y.s[se],Ft=se<x-1?y.s[se+1]:rt):(ht=x+se,rt=y.s[ht],Ft=0<ht?y.s[ht-1]:rt),rt.Xa(Ft)){0<=se?(Ye=0<se?y.s[se-1]:rt,ht=se<x-2?y.s[se+2]:Ft):(Ye=ht<x-1?y.s[ht+1]:rt,ht=1<ht?y.s[ht-2]:Ft);var Nt=Ye.Bf(rt),Ht=Ft.Bf(ht);Ye=Nt>Ht+10?0<=se?Ye.ab(rt):rt.ab(Ye):Ht>Nt+10?0<=se?Ft.ab(ht):ht.ab(Ft):0<=se?Ye.ab(ht):ht.ab(Ye)}else Ye=0<=se?rt.ab(Ft):Ft.ab(rt);ge!==Ks&&(Ae=Ae.computeAngle(ne,ge,Ye),ne.angle=Ae),Ae=rt.x+(Ft.x-rt.x)*he,Ft=rt.y+(Ft.y-rt.y)*he}if(He.ys())ne.location=new At(Ae,Ft);else{He.Mc()&&(He=Bi),rt=pi.alloc(),rt.reset(),rt.scale(ne.scale,ne.scale),rt.rotate(ne.angle,0,0);var Wt=ne.naturalBounds;ht=Ln.allocAt(0,0,Wt.width,Wt.height),Nt=At.alloc(),Nt.xi(ht,He),rt.Ga(Nt),He=-Nt.x,Ht=-Nt.y;var Vt=Wt.width,Jt=Wt.height;Wt=At.alloc(),Wt.assign(ye);var dn=isNaN(ye.x),qn=isNaN(ye.y);if(dn||qn){Vt=Vt/2+3,Jt=Jt/2+3;var dr=45<=Ye&&135>=Ye,hr=225<=Ye&&315>=Ye;ge===Ks&&(dr||hr)?(Wt.x=qn?Vt:ye.y,Wt.y=dn?Jt:ye.x,dr?0<=se||isNaN(se)&&.5>he||!dn||(Wt.y=-Jt):hr&&((0<=se||isNaN(se)&&.5>he)&&dn&&(Wt.y=-Jt),qn&&(Wt.x=-Vt))):(dn&&(Wt.x=0<=se||isNaN(se)&&.5>he?Vt:-Vt),qn&&(Wt.y=-Jt),Wt.rotate(Ye))}else Wt.rotate(Ye);Ae+=Wt.x,Ft+=Wt.y,rt.pp(ht),He+=ht.x,Ht+=ht.y,se=At.allocAt(Ae+He,Ft+Ht),ne.move(se),At.free(se),At.free(Wt),At.free(Nt),Ln.free(ht),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),At.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 Vn&&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"}qt(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 Ae=se.measuredBounds,He=new Ln(-he.left,-he.top,Math.max(Ae.width+ge,0),Math.max(Ae.height+ye,0));a.graduatedBounds.push(He),E.assign(He);for(var Ye=se.geometry,rt=se.strokeWidth,ht=Ye.flattenedSegments,Ft=Ye.flattenedLengths,Nt=Ye.flattenedTotalLength,Ht=ht.length,Wt=0,Vt=0,Jt=Sn(),dn=0;dn<Ht;dn++){var qn=ht[dn],dr=[];Vt=Wt=0;for(var hr=qn.length,$n=0;$n<hr;$n+=2){var jn=qn[$n],ei=qn[$n+1];if($n!==0){var $r=180*Math.atan2(ei-Vt,jn-Wt)/Math.PI;0>$r&&($r+=360),dr.push($r)}Wt=jn,Vt=ei}Jt.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=Nt;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*Nt/a.graduatedRange&&Ol.graduatedSkip===null)){var Df=Ft[0][0],dc=0,xl=0;Sl=Nt*Ol.graduatedStart-1e-4,fd=Nt*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)*Nt/a.graduatedRange,Nl>Nt&&(Nl=Nt),Sl<=Nl&&Nl<=fd)){for(var _c=Jt[dc][xl],Fh=Ft[dc][xl];dc<Ft.length;){for(;Nl>Df&&xl<Ft[dc].length-1;)xl++,_c=Jt[dc][xl],Fh=Ft[dc][xl],Df+=Fh;if(Nl<=Df)break;dc++,xl=0,_c=Jt[dc][xl],Fh=Ft[dc][xl],Df+=Fh}var wl=ht[dc],fc=wl[2*xl],K0=wl[2*xl+1],ah=(Nl-(Df-Fh))/Fh,Bp=new At(fc+(wl[2*xl+2]-fc)*ah+rt/2-Ye.bounds.x,K0+(wl[2*xl+3]-K0)*ah+rt/2-Ye.bounds.y);Bp.scale(se.scale,se.scale);e:{var ec=_c,qd=Jt[dc];if(!(.5005>ah&&.4995<ah)){var pc=ec;if(.5>ah?0<xl?pc=qd[xl-1]:tn.$(wl[0],wl[wl.length-2])&&tn.$(wl[1],wl[wl.length-1])&&(pc=qd[qd.length-1]):.5<ah&&(xl+1<qd.length?pc=qd[xl+1]:tn.$(wl[0],wl[wl.length-2])&&tn.$(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)}An(Jt);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=At.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)}At.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=Vn.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=At.alloc();Gh.xi(_f,Rh),nc.Ga(Gh);var zf=-Gh.x,Wy=-Gh.y,ch=At.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),At.free(ch),At.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,Ae=0;Ae<ye;Ae++){var He=he[Ae],Ye=ge[Ae],rt=Ye.length;if(He.visible&&He!==te&&Ye.length!==0){if(He instanceof fi){if(!(2>a.graduatedTickUnit*He.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&He.graduatedSkip===null)){var ht=He.measuredBounds,Ft=He.strokeWidth*He.scale,Nt=He.alignmentFocus;Nt.Mc()&&(Nt=Pl);for(var Ht=0;Ht<rt;Ht++){var Wt=Ye[Ht].$l,Vt=Ye[Ht].angle,Jt=Nt,dn=He.Ab;dn.reset(),dn.translate(Wt.x+se.x,Wt.y+se.y),dn.rotate(Vt+He.angle,0,0),dn.translate(-ht.width*Jt.x+Jt.offsetX+Ft/2,-ht.height*Jt.y+Jt.offsetY+Ft/2),dn.scale(He.scale,He.scale),mu(He,!1),He.wh.set(He.Ab),He.Kk=He.scale,ou(He,!1),He.gc(y,x),E&&(a.svg.appendChild(He.svg),He.svg=null),He.Ab.reset()}}}else if(He instanceof Co)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Co),ht=a.temporaryTextBlock,S1(ht,He),Ft=0;Ft<rt;Ft++)Nt=Ye[Ft],Nt.actualBounds&&Nt.measuredBounds&&Nt.naturalBounds&&(ht.ec=Nt.text||"",ht.Kb=Nt.Sz||0,ht.Gc=Nt.lineCount||0,Ht=Nt.lines,Ht!==void 0&&(ht.Cb=Ht[0],ht.Ih=Ht[1],ht.df=Ht[2],ht.Le=Ht[3],ht.Qc=Ht[4],ht.Qb=Ht[5],ht.ze=Ht[6]),Nt.naturalBounds&&(ht.dc=Nt.naturalBounds),Nt.actualBounds&&(Ht=Nt.actualBounds,ht.arrange(Ht.x,Ht.y,Ht.width,Ht.height)),Ht=Nt.actualBounds,ht.arrange(Ht.x,Ht.y,Ht.width,Ht.height),Wt=Nt.measuredBounds,Nt=Nt.naturalBounds,Vt=ht.Ab,Vt.reset(),Vt.translate(Ht.x+se.x,Ht.y+se.y),Vt.translate(-Wt.x,-Wt.y),ht.no(Vt,Nt.x,Nt.y,Nt.width,Nt.height),mu(ht,!1),ht.wh.set(ht.Ab),ht.Kk=ht.scale,ou(ht,!1),ht.Ng=He.part,ht.Me=He.panel,ht.gc(y,x),ht.Me=null,ht.Ng=null,E&&(a.svg.appendChild(ht.svg),ht.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Un(a,y){if(Qt.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&&$t("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)}qt(Un,Qt),Un.prototype.cloneProtected=function(a){Qt.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){Qt.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=Qt.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){Qt.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 Ae=ge.separatorStroke;if(Ae===null&&(Ae=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ye!==0&&Ae!==null){oa(a,y,Ae,!1,!1,ne,te),Ae=!1;var He=ge.separatorDashArray;He===null&&(He=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),He!==null&&(Ae=!0,y.js(He,0)),y.beginPath(),He=ge.position+ye,x?He>ne.height&&(ye-=He-ne.height):He>ne.width&&(ye-=He-ne.width),ge=ge.position+ye/2,y.lineWidth=ye,ye=a.yb,x?(ge+=ye.top,He=ne.width-ye.right,y.moveTo(ye.left,ge),y.lineTo(He,ge)):(ge+=ye.left,He=ne.height-ye.bottom,y.moveTo(ge,ye.top),y.lineTo(ge,He)),y.stroke(),y.Se(),Ae&&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 Ae=b[ye];if(Ae!==void 0&&Ae.background!==null&&Ae.coversSeparators!==E&&Ae.actual!==0){var He=x?ne.height:ne.width;if(!(Ae.position>He)){var Ye=Ae.Wc(),rt=Ae.separatorStrokeWidth;isNaN(rt)&&(rt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ht=Ae.separatorStroke;ht===null&&(ht=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ht===null||Ae.index===(x?he:ge))&&(rt=0),Ye-=rt,rt=Ae.position+rt,Ye+=Ae.actual,rt+Ye>He&&(Ye=He-rt),0>=Ye||(He=a.yb,oa(a,y,Ae.background,!0,!1,se,ne),x?y.fillRect(He.left,rt+He.top,ne.width-(He.left+He.right),Ye):y.fillRect(rt+He.left,He.top,Ye,ne.height-(He.top+He.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(!Qt.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 Qt.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,Ae=ne.m11*se,He=se*(ne.m21*ne.dy-ne.m22*ne.dx),Ye=se*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,tn.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,b,E);if(this.background!==null)return te=a*he+y*ye+He,se=a*ge+y*Ae+Ye,a=x*he+b*ye+He,he=x*ge+b*Ae+Ye,E.h(0,0),x=this.naturalBounds,te=tn.Ff(0,0,x.width,x.height,te,se,a,he,E),E.transform(ne),te;te||(he=1,ye=ge=0,Ae=1,Ye=He=0),se=a*he+y*ye+He,a=a*ge+y*Ae+Ye,he=x*he+b*ye+He,x=x*ge+b*Ae+Ye,E.h(he,x),b=(he-se)*(he-se)+(x-a)*(x-a),ge=!1,Ae=this.O.s,Ye=Ae.length,ye=At.alloc(),He=null,y=1/0;var rt=null,ht=this.isClipping&&this.na===Un.Spot;ht&&(rt=At.alloc(),He=this.Pb(),(ge=He.Sj(se,a,he,x,rt))&&(y=(se-rt.x)*(se-rt.x)+(a-rt.y)*(a-rt.y)));for(var Ft=0;Ft<Ye;Ft++){var Nt=Ae[Ft];Nt.visible&&Nt!==He&&Nt.Sj(se,a,he,x,ye)&&(ge=!0,Nt=(se-ye.x)*(se-ye.x)+(a-ye.y)*(a-ye.y),Nt<b&&(b=Nt,E.set(ye)))}return ht&&(y>b&&E.set(rt),At.free(rt)),At.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();Qt.prototype.Gj.call(this)},ot.v=function(a){if(!Vl(this)){Qt.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=At.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(Pi(E.set(a),te.transform),te.ca(E)))return At.free(E),!0}return At.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(At.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=At.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 At.free(se),te||At.free(ne),null;for(var Ae=nh(this);ye--;){var He=E[ye];if((He.visible||He===Ae)&&(He.se()?Pi(se.set(a),He.transform):se.set(a),!he||He!==ge)){var Ye=null;if(He instanceof Un?Ye=He.ic(se,y,x):He.pickable===!0&&He.ca(se)&&(Ye=He),Ye!==null&&(y!==null&&(Ye=y(Ye)),Ye!==null&&(x===null||x(Ye))))return At.free(se),te||At.free(ne),Ye}}At.free(se)}return this.background===null&&this.areaBackground===null?(te||At.free(ne),null):(a=No(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||At.free(ne),a)}return te||At.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(At.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=At.alloc(),ye=nh(this);he--;){var Ae=se[he];if(Ae.visible||Ae===ye){Ae.se()?Pi(ge.set(a),Ae.transform):ge.set(a);var He=Ae;Ae=Ae instanceof Un?Ae:null,(Ae!==null?Ae.ji(ge,y,x,b):He.ca(ge))&&He.pickable!==!1&&(y!==null&&(He=y(He)),He===null||x!==null&&!x(He)||b.add(He))}}At.free(ge)}return te||At.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||At.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 Ae=ye.actualBounds,He=this.naturalBounds;Ae.x>He.width||Ae.y>He.height||0>Ae.x+Ae.width||0>Ae.y+Ae.height||(Ae=ye,ye=ye instanceof Un?ye:null,He=pi.alloc(),He.set(ne),(ye!==null?ye.Cf(a,y,x,b,E,He):Ya(Ae,a,b,He))&&(y!==null&&(Ae=y(Ae)),Ae===null||x!==null&&!x(Ae)||E.add(Ae)),pi.free(He))}}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(At.allocAt(a.x,a.y),this.transform),ge=se?y:Pi(At.allocAt(y.x,y.y),this.transform),ye=he.Bf(ge),Ae=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||(At.free(he),At.free(ge)),Ae){if(!this.isAtomic){he=At.alloc(),ge=At.alloc(),ye=nh(this);for(var He=this.O.s,Ye=He.length;Ye--;){var rt=He[Ye];if(rt.visible||rt===ye){var ht=rt.actualBounds,Ft=this.naturalBounds;(!se||!(ht.x>Ft.width||ht.y>Ft.height||0>ht.x+ht.width||0>ht.y+ht.height))&&(rt.se()?(ht=rt.transform,Pi(he.set(a),ht),Pi(ge.set(y),ht)):(he.set(a),ge.set(y)),ht=rt,rt=rt instanceof Un?rt:null,(rt!==null?rt.og(he,ge,x,b,E,te):ht.tx(he,ge,E))&&(x!==null&&(ht=x(ht)),ht===null||b!==null&&!b(ht)||te.add(ht)))}}At.free(he),At.free(ge)}return E?Ae: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 Ar&&$t("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&$t("Cannot make a Panel contain itself: "+this.toString()),$t("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&$t("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||$t("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Un.Graduated||y instanceof fi||y instanceof Co||$t("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 $t("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 At(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&&$t("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 Ae=ye.localBindings;if(Ae!==null)for(xf(ye,!1),Ae=Ae.iterator;Ae.next();){var He=Ae.value;He.mode===Dg&&xf(ye,!0);var Ye=He.sourceName;Ye!==null&&(Ye==="/"&&xv(ge,!0),Ye=MS(He,ge,ye),Ye!==null&&(x.add(Ye),Ye.srcBindings===null&&(Ye.srcBindings=new vn),Ye.srcBindings.add(He))),y.add(He)}if(ye instanceof Un&&ye.type===Un.Table){if(0<ye.rowCount){for(ge=ye.rowDefs,Ae=ge.length,He=0;He<Ae;He++)if(Ye=ge[He],Ye!==void 0&&Ye.be!==null)for(var rt=Ye.be.iterator;rt.next();){var ht=rt.value;ht.xd=Ye,ht.to=2,ht.wl=Ye.index,y.add(ht)}}if(0<ye.columnCount){for(ye=ye.colDefs,ge=ye.length,Ae=0;Ae<ge;Ae++)if(He=ye[Ae],He!==void 0&&He.be!==null)for(Ye=He.be.iterator;Ye.next();)rt=Ye.value,rt.xd=He,rt.to=1,rt.wl=He.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 Qt?(ne=Mi(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):$t("Unknown type of binding target: "+te)}y.freeze(),a instanceof Ar&&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;$t("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)}Tt.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 Or(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 Or(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)||$t("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)||$t("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||$t("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()||$t("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)&&$t("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)&&$t("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 Ar&&!(this instanceof Ui);yu(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Vn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Ar&&(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 Ar||a.isPanelMain)&&$t("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 ni&&(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))}}}),Tt.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)&&$t("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},Tt.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 Or(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)||$t("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){Qt.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)}qt(fi,Qt),fi.prototype.cloneProtected=function(a){Qt.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(){Qt.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:Qt.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,Ae,He,Ye,rt,ht=0,Ft=Sn(),Nt=2;Nt<E;Nt+=2)ge=x[Nt],ye=x[Nt+1],Ae=ge-se,se=ye-he,Ae===0&&(Ae=.001),He=se/Ae,Ye=Math.atan2(se,Ae),rt=Math.sqrt(Ae*Ae+se*se),Ft.push([Ae,Ye,He,rt]),ht+=rt,se=ge,he=ye;se=x[0],he=x[1],Ae=b.measuredBounds.width,b instanceof fi&&(Ae-=b.strokeWidth),1>Ae&&(Ae=1),E=x=Ae,ge=ne/2,ye=ge!==0,Nt=0,rt=Ft[Nt],Ae=rt[0],Ye=rt[1],He=rt[2],rt=rt[3];for(var Ht=0;.1<=ht;){if(Ht===0&&(ye?(E=x,E-=ge,ht-=ge,ye=!1):E=x,E===0&&(E=1)),E>ht){An(Ft);return}E>rt?(Ht=E-rt,E=rt):Ht=0;var Wt=Math.sqrt(E*E/(1+He*He));if(0>Ae&&(Wt=-Wt),se+=Wt,he+=He*Wt,a.translate(se,he),a.rotate(Ye),a.translate(-(ne/2),-(te/2)),Ht===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-Ye),a.translate(-se,-he),ht-=E,rt-=E,Ht!==0){if(Nt++,Nt===Ft.length){An(Ft);return}rt=Ft[Nt],Ae=rt[0],Ye=rt[1],He=rt[2],rt=rt[3],E=Ht}}An(Ft)}}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,Ae=E.endY;E=Math.min(ge,ye);var He=Math.min(he,Ae);ge=Math.abs(ye-ge),he=Math.abs(Ae-he),a.beginPath(),a.rect(E,He,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,Ae=E.endY,E=Math.abs(ye-ge)/2,He=Math.abs(Ae-he)/2,ge=Math.min(ge,ye)+E,he=Math.min(he,Ae)+He,a.beginPath(),a.moveTo(ge,he-He),a.bezierCurveTo(ge+tn.wg*E,he-He,ge+E,he-tn.wg*He,ge+E,he),a.bezierCurveTo(ge+E,he+tn.wg*He,ge+tn.wg*E,he+He,ge,he+He),a.bezierCurveTo(ge-tn.wg*E,he+He,ge-E,he+tn.wg*He,ge-E,he),a.bezierCurveTo(ge-E,he-tn.wg*He,ge-tn.wg*E,he-He,ge,he-He),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,He=0;He<he;He++){ge=E.s[He],a.beginPath(),a.moveTo(ge.startX,ge.startY),ye=ge.segments.s,Ae=ye.length;for(var Ye=null,rt=0;rt<Ae;rt++){var ht=ye[rt];switch(ht.type){case ma:a.moveTo(ht.endX,ht.endY);break;case Po:a.lineTo(ht.endX,ht.endY);break;case as:a.bezierCurveTo(ht.point1X,ht.point1Y,ht.point2X,ht.point2Y,ht.endX,ht.endY);break;case Cl:a.quadraticCurveTo(ht.point1X,ht.point1Y,ht.endX,ht.endY);break;case ha:if(ht.radiusX===ht.radiusY){var Ft=Math.PI/180;a.arc(ht.point1X,ht.point1Y,ht.radiusX,ht.startAngle*Ft,(ht.startAngle+ht.sweepAngle)*Ft,0>ht.sweepAngle,Ye!==null?Ye.endX:ge.startX,Ye!==null?Ye.endY:ge.startY)}else if(Ye=rl(ht,ge),Ft=Ye.length,Ft===0)a.lineTo(ht.centerX,ht.centerY);else for(var Nt=0;Nt<Ft;Nt++){var Ht=Ye[Nt];Nt===0&&a.lineTo(Ht[0],Ht[1]),a.bezierCurveTo(Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7])}break;case _l:if(Nt=Ft=0,Ye!==null&&Ye.type===ha){if(Ye=rl(Ye,ge),Ht=Ye.length,Ht===0){a.lineTo(ht.endX,ht.endY);break}Ye=Ye[Ht-1]||null,Ye!==null&&(Ft=Ye[6],Nt=Ye[7])}else Ft=Ye!==null?Ye.endX:ge.startX,Nt=Ye!==null?Ye.endY:ge.startY;if(Ye=zs(ht,ge,Ft,Nt),Ft=Ye.length,Ft===0){a.lineTo(ht.endX,ht.endY);break}for(Nt=0;Nt<Ft;Nt++)Ht=Ye[Nt],a.bezierCurveTo(Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7]);break;default:$t("Segment not of valid type: "+ht.type)}ht.isClosed&&a.closePath(),Ye=ht}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(He)}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=Sn(),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,He=E,ge=se.segments.s,ye=ge.length,Ae=0;Ae<ye;Ae++){switch(rt=ge[Ae],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,He=E;break;case Po:b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break;case as:tn.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:tn.ep(ne,E,rt.point1X,rt.point1Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case ha:if(ht=rl(rt,se),Ye=ht.length,Ye===0){b.push(rt.centerX),b.push(rt.centerY),ne=rt.centerX,E=rt.centerY;break}for(Ft=0;Ft<Ye;Ft++)Nt=ht[Ft],tn.Qe(ne,E,Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],.5,b),ne=Nt[6],E=Nt[7];break;case _l:if(ht=zs(rt,se,ne,E),Ye=ht.length,Ye===0){b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break}for(Ft=0;Ft<Ye;Ft++)Nt=ht[Ft],tn.Qe(ne,E,Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],.5,b),ne=Nt[6],E=Nt[7];break;default:$t("Segment not of valid type: "+rt.type)}rt.isClosed&&(b.push(he),b.push(He),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++)He=te[he],tn.Qe(ne,E,He[2],He[3],He[4],He[5],He[6],He[7],.5,b),ne=He[6],E=He[7];fp(a,y,b,x)}An(b),a.restore(),a.Vc(!1)}}}},ot.kk=function(a,y,x){return!Qt.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:Qt.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 At),a instanceof wr){a.Mc()&&$t("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=At.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),At.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),tn.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);$t("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=tn.Ze[se];typeof ge=="string"&&(ge=tn.Ze[ge]),typeof ge=="function"?(he=ge(null,100,100),Tv[se]=he):$t("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 Ae=this.maxSize,He=this.minSize;switch(x=Math.max(x-te,He.width),b=Math.max(b-te,He.height),ge=Math.min(Ae.width,ge),ye=Math.min(Ae.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:$t(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&&tn.$(this.ua.Sk,a-te)&&tn.$(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(Ae.width,ge),ye=Math.min(Ae.height,ye),ge=Math.max(He.width,ge),ye=Math.max(He.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,Ae=ne*(te.m21*te.dy-te.m22*te.dx),He=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*ge+Ae,ne=a*he+y*ye+He,se=x*se+b*ge+Ae,he=x*he+b*ye+He,Ae=this.ig/2,ge=this.ua,ge===null&&(this.measure(1/0,1/0),ge=this.ua);var Ye=ge.bounds;if(ye=!1,ge.type===Zn.j)if(1.5>=this.strokeWidth)ye=tn.Ve(ge.startX,ge.startY,ge.endX,ge.endY,te,ne,se,he,E);else{if(ge.startX===ge.endX?(b=Ae,ye=0):(y=(ge.endY-ge.startY)/(ge.endX-ge.startX),ye=Ae/Math.sqrt(1+y*y),b=ye*y),y=Sn(),a=new At,tn.Ve(ge.startX+b,ge.startY+ye,ge.endX+b,ge.endY+ye,te,ne,se,he,a)&&y.push(a),a=new At,tn.Ve(ge.startX-b,ge.startY-ye,ge.endX-b,ge.endY-ye,te,ne,se,he,a)&&y.push(a),a=new At,tn.Ve(ge.startX+b,ge.startY+ye,ge.startX-b,ge.startY-ye,te,ne,se,he,a)&&y.push(a),a=new At,tn.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 An(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);An(y)}else if(ge.type===Zn.u)ye=tn.Ff(Ye.x-Ae,Ye.y-Ae,Ye.x+Ye.width+Ae,Ye.y+Ye.height+Ae,te,ne,se,he,E);else if(ge.type===Zn.F){y=Ln.allocAt(Ye.x,Ye.y,Ye.width,Ye.height).Bc(Ae,Ae);e:if(y.width===0)ye=tn.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,he,E);else if(y.height===0)ye=tn.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}Ae=Math.sqrt(a*a*x*x+ge*ge-he*he),se=(-(a*a*x*he)+a*ge*Ae)/(ge*ge+a*a*x*x)+b,a=(-(a*a*x*he)-a*ge*Ae)/(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){He=At.alloc();var rt=se-te,ht=he-ne,Ft=rt*rt+ht*ht,Nt=te,Ht=ne;if(0<Ft&&Ye.contains(Nt,Ht)&&(He.x=Nt,He.y=Ht,this.ca(He)))for(rt!==0&&.5>Math.abs(rt)?(ht*=.5/rt,rt=.5):ht!==0&&.5>Math.abs(ht)&&(rt*=.5/ht,ht=.5),Nt-=rt,Ht-=ht;Ye.contains(Nt,Ht);)Nt-=rt,Ht-=ht;for(E.x=se,E.y=he,ht=0;ht<ge.figures.count;ht++){var Wt=ge.figures.s[ht],Vt=Wt.isFilled?Nt:te,Jt=Wt.isFilled?Ht:ne,dn=Wt.segments;Ye=Wt.startX,rt=Wt.startY;for(var qn=Ye,dr=rt,hr=0;hr<dn.count;hr++){var $n=dn.s[hr],jn=$n.type,ei=$n.endX,$r=$n.endY,Zi=!1;switch(jn){case ma:qn=ei,dr=$r;break;case Po:Zi=Dm(Ye,rt,ei,$r,Vt,Jt,se,he,He);break;case as:Zi=tn.Eo(Ye,rt,$n.point1X,$n.point1Y,$n.point2X,$n.point2Y,ei,$r,Vt,Jt,se,he,.6,He);break;case Cl:Zi=tn.Eo(Ye,rt,Ye+2/3*($n.point1X-Ye),rt+2/3*($n.point1Y-rt),ei+2/3*($n.point1X-ei),$r+2/3*($n.point1Y-$r),ei,$r,Vt,Jt,se,he,.6,He);break;case ha:case _l:jn=$n.type===ha?rl($n,Wt):zs($n,Wt,Ye,rt);var bo=jn.length;if(bo===0){Zi=Dm(Ye,rt,$n.type===ha?$n.centerX:$n.endX,$n.type===ha?$n.centerY:$n.endY,Vt,Jt,se,he,He);break}for($r=null,ei=0;ei<bo;ei++){if($r=jn[ei],ei===0&&Dm(Ye,rt,$r[0],$r[1],Vt,Jt,se,he,He)){var Ja=Im(Vt,Jt,He,Ft,E);Ja<Ft&&(Ft=Ja,ye=!0)}tn.Eo($r[0],$r[1],$r[2],$r[3],$r[4],$r[5],$r[6],$r[7],Vt,Jt,se,he,.6,He)&&(Ja=Im(Vt,Jt,He,Ft,E),Ja<Ft&&(Ft=Ja,ye=!0))}ei=$r[6],$r=$r[7];break;default:$t("Unknown Segment type: "+jn)}Ye=ei,rt=$r,Zi&&(Zi=Im(Vt,Jt,He,Ft,E),Zi<Ft&&(Ft=Zi,ye=!0)),$n.isClosed&&(ei=qn,$r=dr,Dm(Ye,rt,ei,$r,Vt,Jt,se,he,He)&&($n=Im(Vt,Jt,He,Ft,E),$n<Ft&&(Ft=$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*Ae,E.y-=ne*Ae,At.free(He)}else $t("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(tn.$(a,x)&&tn.$(y,b)||tn.$(E,ne)&&tn.$(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||tn.$(he.y,a))&&(he.y<y||tn.$(he.y,y))&&(ge=!0)):(y=a<x?a:x,a=a<x?x:a,(he.x>y||tn.$(he.x,y))&&(he.x<a||tn.$(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=At.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)))),At.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=At.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 At.free(ne),!0;var se=At.alloc(),he=At.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)))),At.free(ne),pi.free(x),At.free(se),At.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(Ft,Nt){for(var Ht=Ft.length,Wt=0;Wt<Ht;Wt+=2)if(Nt.zd(Ft[Wt],Ft[Wt+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,Ae=Math.abs(ne-he)/2;if(ye===0||Ae===0)return co(a.x,a.y,se,he,ge,ne)<=E;if(x){if(a=tn.$y(ye,Ae,y,te),a*a<=E)return!0}else return!(To(y,te,-ye,0)>=E||To(y,te,0,-Ae)>=E||To(y,te,0,Ae)>=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(Ae=se[ge],Ae.type){case ma:case Po:if(ne=Ae.endX,ye=Ae.endY,a.zd(ne,ye)>E)return!1;break;case as:var He=Sn();if(tn.Qe(ne,ye,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.8,He),ne=b(He,a),An(He),ne||(ne=Ae.endX,ye=Ae.endY,a.zd(ne,ye)>E))return!1;break;case Cl:if(He=Sn(),tn.ep(ne,ye,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.8,He),ne=b(He,a),An(He),ne||(ne=Ae.endX,ye=Ae.endY,a.zd(ne,ye)>E))return!1;break;case ha:case _l:He=Ae.type===ha?rl(Ae,te):zs(Ae,te,ne,ye);var Ye=He.length;if(Ye===0){if(ne=Ae.type===ha?Ae.centerX:Ae.endX,ye=Ae.type===ha?Ae.centerY:Ae.endY,a.zd(ne,ye)>E)return!1;break}Ae=null;for(var rt=Sn(),ht=0;ht<Ye;ht++)if(Ae=He[ht],rt.length=0,tn.Qe(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.8,rt),b(rt,a))return An(rt),!1;An(rt),Ae!==null&&(ne=Ae[6],ye=Ae[7]);break;default:$t("Unknown Segment type: "+Ae.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=tn.Ze[a.figure],typeof b=="string"&&(b=tn.Ze[b]),b===void 0&&$t("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=tn.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 tn.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Zn.parse(tn.um[b],!1),Nc[b]=a,x!==b&&(Nc[x]=b),b}}return typeof y=="string"?y:y instanceof Zn?a:null}Tt.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=At.allocAt(-y.x,-y.y),At.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)||$t("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=tn.Ze[a];typeof x=="function"?x=a:(x=tn.Ze[a.toLowerCase()])||$t("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?$t("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?$t("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 tn.Ze)y!==y.toLowerCase()&&a.add(y,tn.Ze[y]);return a.freeze(),a},fi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=tn.Ze;b[a]=y,b[x]=a},fi.getArrowheadGeometries=function(){var a=new fr;for(b in tn.um)if(Nc[b]===void 0){var y=Zn.parse(tn.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||$t("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 Qt.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}qt(Co,Qt),Co.prototype.cloneProtected=function(a){Qt.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(){Qt.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:Qt.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(){Qt.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,Ae=ye.dx-(ne*ye.m21+ye.dx);ye=ye.dy-(ne*ye.m22+ye.dy);var He=y.scale;switch(8>(Ae*Ae+ye*ye)*He*He&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ml&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Ae=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,He=(y+ne+Ae)*ye,te>He&&(b=this.verticalAlignment,b=b.y*te-b.y*He+b.offsetY),ye===1&&this.ze!==null)Ae=this.Cb,Ae>E&&(Ae=E),this.Oj(this.ze,a,0,b+y,E,ne,Ae,x,se,he,ge);else if(this.Qc!==null&&this.Qb!==null)for(He=0;He<ye;He++){var Ye=this.Qc[He];Ye>E&&(Ye=E),b+=y,this.Oj(this.Qb[He],a,0,b,E,ne,Ye,x,se,he,ge),b+=ne+Ae}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 Ae=0;if(se)he==="left"?Ae=0:he==="right"?Ae=E-ne:he==="center"&&(Ae=(E-ne)/2),y.fillRect(x+Ae,b+.25*te,ne,1);else{if(he==="left"?Ae=0:he==="right"?Ae=E:he==="center"&&(Ae=E/2),E=Fm!==null?Fm(this,te):.75*te,y.fillText(a,x+Ae,b+E),a=te/20|0,a===0&&(a=1),he==="right"?Ae-=ne:he==="center"&&(Ae-=ne/2),ge){se=Bm!==null?Bm(this,te):.8*te,he=x+Ae,ge=b+se,E=x+Ae+ne,se=b+se;var He=a;y.beginPath(),y.lineWidth=He,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+Ae,te=ye,x=x+Ae+ne,ne=ye,Ae=a,y.beginPath(),y.lineWidth=Ae,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(!Qt.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:Qt.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 Ae=1;for(ge=Nu(y.substr(0,Ae)),ye=0;ge<=x;)Ae++,ye=ge,ge=Nu(y.substr(0,Ae));if(Ae===1){var He=ge;te=Math.max(te,ge)}else He=ye,te=Math.max(te,ye);if(Ae--,1>Ae&&(Ae=1),gg(a,y.substr(0,Ae),He),he++,y=y.substr(Ae),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?(Ae=ge,te=Math.max(te,ge)):(Ae=ye=Nu(y),te=Math.max(te,ye)),gg(a,y,Ae),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}Tt.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){Qt.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;qt(ul,Qt),ul.prototype.cloneProtected=function(a){Qt.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:Qt.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=Sn();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);An(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 Ae=he,He=se,Ye=this.Nk,rt=this.Mk;switch(Ye){case Dn:if(this.sourceRect.w())break;Ae>=b.width&&(te=te+rt.offsetX+(Ae*rt.x-b.width*rt.x)),He>=b.height&&(ne=ne+rt.offsetY+(He*rt.y-b.height*rt.y)),he=Math.min(b.width,Ae),se=Math.min(b.height,He);break;case Hn:Ae=b.width,He=b.height;break;case gr:case ki:Ye===gr?(Ye=Math.min(b.height/He,b.width/Ae),Ae*=Ye,He*=Ye):Ye===ki&&(Ye=Math.max(b.height/He,b.width/Ae),Ae*=Ye,He*=Ye,Ae>=b.width&&(te=(te+rt.offsetX+(Ae*rt.x-b.width*rt.x)/Ae)*he),He>=b.height&&(ne=(ne+rt.offsetY+(He*rt.y-b.height*rt.y)/He)*se),he*=1/(Ae/b.width),se*=1/(He/b.height),Ae=b.width,He=b.height)}Ye=this.Df()*y.scale;var ht=Ae*Ye*He*Ye,Ft=he*se/ht,Nt=x.__goCache;Ye=null;var Ht=wx;if(!E){if(x.sq&&Nt!==void 0&&4<ht&&Ft>Ht*Ht)for(Nt.gi===null&&(k1(Nt,4,ge,ye,x),k1(Nt,16,ge,ye,x)),E=Nt.gi,ge=E.length,ye=0;ye<ge&&E[ye].ratio*E[ye].ratio<Ft;ye++)Ye=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(Wt){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Wt){this.vl=!0}}if(this.vl)return}}switch(E=Ae<b.width?rt.offsetX+(b.width*rt.x-Ae*rt.x):0,rt=He<b.height?rt.offsetY+(b.height*rt.y-He*rt.y):0,this.flip){case _i:a.translate(Math.min(b.width,Ae),0),a.scale(-1,1);break;case Si:a.translate(0,Math.min(b.height,He)),a.scale(1,-1);break;case mo:a.translate(Math.min(b.width,Ae),Math.min(b.height,He)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Nt!==void 0&&Ye!==null&&Ye.ratio!==1){a.save(),y=Ye.ratio;try{a.drawImage(Ye.source,te/y,ne/y,Math.min(Ye.source.width,he/y),Math.min(Ye.source.height,se/y),E,rt,Math.min(b.width,Ae),Math.min(b.height,He)),a instanceof Ml&&(this.bt=[te/y,ne/y,Math.min(Ye.source.width,he/y),Math.min(Ye.source.height,se/y),E,rt,Math.min(b.width,Ae),Math.min(b.height,He)])}catch(Wt){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,he,se,E,rt,Math.min(b.width,Ae),Math.min(b.height,He)),a instanceof Ml&&(this.bt=[te,ne,he,se,E,rt,Math.min(b.width,Ae),Math.min(b.height,He)])}catch(Wt){this.en=!1}switch(this.flip){case _i:a.scale(-1,1),a.translate(-Math.min(b.width,Ae),0);break;case Si:a.scale(1,-1),a.translate(0,-Math.min(b.height,He));break;case mo:a.scale(-1,-1),a.translate(-Math.min(b.width,Ae),-Math.min(b.height,He))}}}}},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)},Tt.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||$t("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 wn),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=tn.Ze;b[a]=y,b[x]=a}Os("Rectangle",function(a,y,x){a="r"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new Zn(Zn.u),b.endX=y,b.endY=x,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),Os("Square",function(a,y,x){a="s"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new Zn(Zn.u),b.endX=y,b.endY=x,b.defaultStretch=gr,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.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=tn.Mf[b];if(E!==void 0)return E;var te=a*tn.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)),tn.Nf<tn.vm&&(tn.Mf[b]=E,tn.Nf++),E}),Os("Border","RoundedRectangle"),Os("Ellipse",function(a,y,x){a="e"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new Zn(Zn.F),b.endX=y,b.endY=x,b.spot1=_u,b.spot2=Rl,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),Os("Circle",function(a,y,x){a="c"+y+","+x;var b=tn.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,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.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)))}),tn.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 Ar(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 At(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)}qt(Ar,Un),Ar.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=Ar.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)}},Ar.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Ar.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Ar.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)))}}},Ar.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)}},Ar.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Sn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);An(y)}},Ar.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 ni?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()}},Ar.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)}}Ar.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)},Ar.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=At.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),At.free(ne)}},Ar.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Ar.prototype.moveTo=function(a,y,x){a=At.allocAt(a,y),this.move(a,x),At.free(a)},Ar.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())},Ar.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())},Ar.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 At),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}Ar.prototype.mi=function(a){return a===void 0&&(a=new Ln),a.assign(this.actualBounds)},Ar.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function j1(a){var y=At.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}Ar.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()||tn.B(y.width,a.width)&&tn.B(y.height,a.height)||0<=this.vw&&this.C(16),Ln.free(y),Rv(this,!1)}},ot=Ar.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 At(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 At(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,At.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 At(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new At(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)}Ar.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},Ar.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},Ar.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},Ar.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},Ar.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},Ar.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},Ar.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},Ar.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},Ar.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=Ar.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 ni?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 ni&&$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 ni&&$m(y,!1),y instanceof rr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Ar.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof rr&&this.isLinkLabel)},Ar.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 ni)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 Vn)for(y=y.labelNodes;y.next();)nd(a,y.value,x,b,E,te)}}Tt.Object.defineProperties(Ar.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 Vn||(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 Vn?(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&&$t("Cannot make a Group a member of itself: "+this.toString()),$t("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 ni&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?$v(a,this):this instanceof ni&&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 ni){for(x=new wn,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 $t("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))}}}),Ar.prototype.invalidateLayout=Ar.prototype.C,Ar.prototype.findCommonContainingGroup=Ar.prototype.px,Ar.prototype.isMemberOf=Ar.prototype.Td,Ar.prototype.findTopLevelPart=Ar.prototype.sz,Ar.prototype.findSubGraphLevel=Ar.prototype.oz,Ar.prototype.ensureBounds=Ar.prototype.Va,Ar.prototype.getDocumentBounds=Ar.prototype.mi,Ar.prototype.findObject=Ar.prototype.fb,Ar.prototype.moveTo=Ar.prototype.moveTo,Ar.prototype.invalidateAdornments=Ar.prototype.Wb,Ar.prototype.clearAdornments=Ar.prototype.Ej,Ar.prototype.removeAdornment=Ar.prototype.Jf,Ar.prototype.addAdornment=Ar.prototype.bh,Ar.prototype.findAdornment=Ar.prototype.Pj,Ar.prototype.updateTargetBindings=Ar.prototype.La;var H1=!1;Ar.className="Part",Ar.LayoutNone=0,Ar.LayoutAdded=1,Ar.LayoutRemoved=2,Ar.LayoutShown=4,Ar.LayoutHidden=8,Ar.LayoutNodeSized=16,Ar.LayoutGroupLayout=32,Ar.LayoutNodeReplaced=64,Ar.LayoutStandard=127,Ar.LayoutAll=16777215;function Ui(a,y){a===void 0||a instanceof Wa||typeof a=="string"?Ar.call(this,a):(Ar.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)}qt(Ui,Ar),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 Vn&&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));Ar.prototype.gk.call(this,a,y,x,b,E,te,ne)},Ui.prototype.updateAdornments=function(){},Ui.prototype.Lj=function(){},Tt.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"?Ar.call(this,a):(Ar.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)}qt(rr,Ar),rr.prototype.cloneProtected=function(a){Ar.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){Ar.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(){Ar.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function G1(a,y){y!==null&&(a.af===null&&(a.af=new wn),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),Ar.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(!Ar.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){Ar.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 wn,y=new wn;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 wn,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 wn,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 wn,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 wn,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){Ar.prototype.Vo.call(this,a),a||(Sg(this),a=this.Yk,a!==null&&eS(a,this))},ot.Wo=function(a){Ar.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,Ar.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=Sn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);An(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 wn;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 wn;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 wn;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 Ae=x?ge.Oo():ge.Po();he.uv=a,Ae.all(function(He){return function(Ye){return Ye===He.uv||!Ye.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 wn;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 Ae=x?ye.Oo():ye.Po();ge.vv=a,Ae.all(function(He){return function(Ye){return Ye===He.vv||!Ye.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}Tt.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 Or(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 ni(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 wn,this.$a=null,this.Sc=new Ro,this.Sc.group=this,this.gl=new wn,this.tb=this.$p=null,y&&Object.assign(this,y)}qt(ni,rr),ni.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=ni.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 Vn)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&&$t("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&&$t("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 Vn||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 Vn&&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 ni&&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 Vn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof ni&&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 Vn&&!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)},ni.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=En(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},ni.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=En(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},ni.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=ni.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 wn,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 wn,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 wn;return a(this,y),y},ot.Rj=function(){var a=new wn;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)},ni.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 ni&&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 Vn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!1}ni.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 ni&&te.wasSubGraphExpanded&&(te.wasSubGraphExpanded=!1,q1(te,y,x,b)),te instanceof rr)te.Bd(y),x.Cj(te,b);else if(te instanceof Vn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!0}ni.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=At.alloc(),rr.prototype.move.call(this,a,y),a=new wn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Vn&&(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 Vn&&(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());At.free(te)}},Tt.Object.defineProperties(ni.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&&$t("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)}}}),ni.prototype.expandSubGraph=ni.prototype.expandSubGraph,ni.prototype.collapseSubGraph=ni.prototype.collapseSubGraph,ni.prototype.findSubGraphParts=ni.prototype.Rj,ni.prototype.findContainingGroupChain=ni.prototype.hz,ni.prototype.findExternalNodesConnected=ni.prototype.iz,ni.prototype.findExternalLinksConnected=ni.prototype.Lu,ni.prototype.ensureBounds=ni.prototype.Va,ni.className="Group";function $s(a){Qt.call(this),this.yb=Cs,this.ko=new Ln(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}qt($s,Qt),$s.prototype.cloneProtected=function(a){Qt.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 ni||a instanceof Ui)||$t("Placeholder is not inside a Group or Adornment."),a instanceof ni){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=At.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),At.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,At.alloc()),a.location=se,At.free(se)),isNaN(ge)||isNaN(ne)?(a=te.ga($a,At.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),At.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 ni&&!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 ni&&!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 ni&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},$s.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ni))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 Vn&&(!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},Tt.Object.defineProperties($s.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Or(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),$s.className="Placeholder";function Vn(a){Ar.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 At,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}qt(Vn,Ar),Vn.prototype.cloneProtected=function(a){Ar.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=Vn.prototype,ot.Af=function(a){Ar.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===Vn?(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&&$t("Unknown Link enum value for a Link property: "+a):Ar.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},Vn.prototype.computeAngle=function(a,y,x){return Vn.computeAngle(y,x)},Vn.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=tn.bp(y),90<a&&270>a&&(a-=180);break;case Tg:a=tn.bp(y+90),90<a&&270>a&&(a-=180);break;case Mg:a=tn.bp(y-90),90<a&&270>a&&(a-=180);break;case r0:if(a=tn.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return tn.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=Vn.prototype,ot.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Ar.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 wn),a.wd.add(y),a.v()}ot.Vo=function(a){if(Ar.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(Ar.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))},Vn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Vn.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?Ar.prototype.move.call(this,a,!1):(a=At.allocAt(x.x+b,x.y+E),Ar.prototype.move.call(this,a,!1),At.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)},Vn.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},Vn.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},Vn.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 tn.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),tn.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},Vn.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),tn.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=Vn.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 At(y,x))},ot.Kz=function(a,y){this.Nb.Gb(a,y)},ot.m=function(a,y,x){this.Nb.Gb(a,new At(y,x))},ot.ne=function(a){this.Nb.add(a)},ot.yf=function(a,y){this.Nb.add(new At(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 At(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 Ae=he[ye];ne=Math.min(Ae.x,ne),se=Math.min(Ae.y,se),Ae.freeze()}if(y.freeze(),ge===te){for(te=0;te<ge;te++)if(ye=E[te],Ae=he[te],ye.x-x!==Ae.x-ne||ye.y-b!==Ae.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()}}},Vn.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,Ae=this.curve===Xl;this.Wf=ge&&!ye?Ae=!0:!1;var He=this.computeAdjusting()===Ks||ge;if(!ye&&!ge&&se&&he){if(se=!1,!He&&3<=te&&(He=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,He,te-1,he))&&(He=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,He,te-1,he)),!se)if(this.Fj(),Ae){te=this.getLinkPoint(a,y,ne,!0,!1,b,E),He=this.getLinkPoint(b,E,x,!1,!1,a,y),se=He.x-te.x,he=He.y-te.y,ge=this.computeCurviness(),Ae=ye=0;var Ye=te.x+se/3,rt=te.y+he/3,ht=Ye,Ft=rt;tn.B(he,0)?Ft=0<se?Ft-ge:Ft+ge:(ye=-se/he,Ae=Math.sqrt(ge*ge/(ye*ye+1)),0>ge&&(Ae=-Ae),ht=(0>he?-1:1)*Ae+Ye,Ft=ye*(ht-Ye)+rt),Ye=te.x+2*se/3,rt=te.y+2*he/3;var Nt=Ye,Ht=rt;tn.B(he,0)?Ht=0<se?Ht-ge:Ht+ge:(Nt=(0>he?-1:1)*Ae+Ye,Ht=ye*(Nt-Ye)+rt),this.Fj(),this.ne(te),this.yf(ht,Ft),this.yf(Nt,Ht),this.ne(He),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,He=E,b=this.getLinkPoint(a,y,ne,!0,!1,te,He),E=this.getLinkPoint(te,He,x,!1,!1,a,y),this.hasCurviness()?(He=E.x-b.x,x=E.y-b.y,ne=this.computeCurviness(),a=b.x+He/2,y=b.y+x/2,te=a,se=y,tn.B(x,0)?se=0<He?se-ne:se+ne:(He=-He/x,te=Math.sqrt(ne*ne/(He*He+1)),0>ne&&(te=-te),te=(0>x?-1:1)*te+a,se=He*(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),He.mi(se),ge=se.ca(b),(he||ge)&&(ne=y.ga(Jm(ne),new At),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=He.ga(Jm(x),new At),this.dd(1,this.getLinkPointFromPoint(te,He,x,b,!1,x))),Ln.free(se))}else{Ae=this.isAvoiding,He&&(ye&&Ae||ge)&&this.Fj();var Wt=ge?this.computeCurviness():0;Ae=this.getLinkPoint(a,y,ne,!0,ye,b,E),Ye=ht=rt=0,(ye||!se||ge)&&(Ft=this.computeEndSegmentLength(a,y,ne,!0),Ye=this.getLinkDirection(a,y,Ae,ne,!0,ye,b,E),ge&&(se||ne.D(x)||!ye&&ne.x+x.x===1&&ne.y+x.y===1)&&(Ye-=ye?90:30,0>Wt&&(Ye-=180)),0>Ye?Ye+=360:360<=Ye&&(Ye-=360),ge&&(Ft+=Math.abs(Wt)*(ye?1:2)),Ye===0?rt=Ft:Ye===90?ht=Ft:Ye===180?rt=-Ft:Ye===270?ht=-Ft:(rt=Ft*Math.cos(Ye*Math.PI/180),ht=Ft*Math.sin(Ye*Math.PI/180)),ne.Mc()&&ge&&(Ft=y.ga(Bi,At.alloc()),Nt=At.allocAt(Ft.x+1e3*rt,Ft.y+1e3*ht),this.getLinkPointFromPoint(a,y,Ft,Nt,!0,Ae),At.free(Ft),At.free(Nt))),Ft=this.getLinkPoint(b,E,x,!1,ye,a,y);var Vt=Ht=Nt=0;if(ye||!he||ge){var Jt=this.computeEndSegmentLength(b,E,x,!1);Vt=this.getLinkDirection(b,E,Ft,x,!1,ye,a,y),ge&&(he||ne.D(x)||!ye&&ne.x+x.x===1&&ne.y+x.y===1)&&(Vt+=ye?0:30,0>Wt&&(Vt+=180)),0>Vt?Vt+=360:360<=Vt&&(Vt-=360),ge&&(Jt+=Math.abs(Wt)*(ye?1:2)),Vt===0?Nt=Jt:Vt===90?Ht=Jt:Vt===180?Nt=-Jt:Vt===270?Ht=-Jt:(Nt=Jt*Math.cos(Vt*Math.PI/180),Ht=Jt*Math.sin(Vt*Math.PI/180)),x.Mc()&&ge&&(x=E.ga(Bi,At.alloc()),ne=At.allocAt(x.x+1e3*Nt,x.y+1e3*Ht),this.getLinkPointFromPoint(b,E,x,ne,!1,Ft),At.free(x),At.free(ne))}x=Ae,(ye||!se||ge)&&(x=new At(Ae.x+rt,Ae.y+ht)),ne=Ft,(ye||!he||ge)&&(ne=new At(Ft.x+Nt,Ft.y+Ht)),!He&&!ye&&se&&3<te&&this.adjustPoints(0,Ae,te-2,ne)?this.dd(te-1,Ft):!He&&!ye&&he&&3<te&&this.adjustPoints(1,x,te-1,Ft)?this.dd(0,Ae):!He&&(ye?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,Ae),this.dd(te-1,Ft)):(this.Fj(),this.ne(Ae),(ye||!se||ge)&&this.ne(x),ye&&this.addOrthoPoints(x,Ye,ne,Vt,a,b),(ye||!he||ge)&&this.ne(ne),this.ne(Ft))}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}Vn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,te){if(te===void 0&&(te=new At),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),Ae=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*he+ye,b=b.x*se+b.y*ge+Ae,ne=x.x*ne+x.y*he+ye,x=x.x*se+x.y*ge+Ae}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)}Vn.prototype.getLinkPoint=function(a,y,x,b,E,te,ne,se){if(se===void 0&&(se=new At),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=At.alloc(),ge=At.alloc();var ye=new Ln(y.ga($a,he),y.ga(As,ge)),Ae=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,Ae,!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),At.free(he),At.free(ge)}}return se}}return x=y.ga(Jm(x),At.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=At.alloc(),ne=ne.ga(Jm(he),te),E&&(ne=Vv(x,ne)),At.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),At.free(x),se},Vn.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,At.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?Vv(he,se.copy()):x):(x=At.alloc(),se=se.ga(Bi,x),At.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,At.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},Vn.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)},Vn.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}Vn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ks&&4<this.pointsCount?this.computeMidPoint(new At):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(Bi))},Vn.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},Vn.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 Ae=ye.actualBounds,He=this.naturalBounds;if(!(Ae.x>He.width||Ae.y>He.height||0>Ae.x+Ae.width||0>Ae.y+Ae.height)){if(Ae=pi.alloc(),Ae.set(ne),ye instanceof Un)se=ye.Cf(a,y,x,b,E,Ae);else if(this.path===ye){if(ye instanceof fi)if(se=a,He=b,ye.pickable===!1)se=!1;else if(Ae.multiply(ye.transform),He)e:{var Ye=se,rt=Ae;if(ye.fh(Ye,rt))se=!0;else{if(rt===void 0&&(rt=ye.transform,Ye.Re(ye.actualBounds))){se=!0;break e}se=Ye.left,He=Ye.right;var ht=Ye.top;Ye=Ye.bottom;var Ft=At.alloc(),Nt=At.alloc(),Ht=At.alloc(),Wt=pi.alloc();Wt.set(rt),Wt.bv(ye.transform),Wt.Vj(),Nt.x=He,Nt.y=ht,Nt.transform(Wt),Ft.x=se,Ft.y=ht,Ft.transform(Wt),rt=!1,Kd(ye,Ft,Nt,Ht)?rt=!0:(Ft.x=He,Ft.y=Ye,Ft.transform(Wt),Kd(ye,Ft,Nt,Ht)?rt=!0:(Nt.x=se,Nt.y=Ye,Nt.transform(Wt),Kd(ye,Ft,Nt,Ht)?rt=!0:(Ft.x=se,Ft.y=ht,Ft.transform(Wt),Kd(ye,Ft,Nt,Ht)&&(rt=!0)))),pi.free(Wt),At.free(Ft),At.free(Nt),At.free(Ht),se=rt}}else se=ye.fh(se,Ae)}else se=Ya(ye,a,b,Ae);se&&(He=ye,y!==null&&(He=y(ye)),He&&(x===null||x(He))&&E.add(He)),pi.free(Ae)}}}return te===void 0&&pi.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&pi.free(ne),!1},Vn.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},Vn.prototype.computeCorner=function(){if(this.curve===Xl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Vn.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},Vn.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},Vn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ks&&x.bb()}},Vn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=rS;var y=this.Sf;if(y!==null){for(var x=Sn(),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),An(x)}}return a},Vn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Vn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Vn.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(!tn.$(ge,0)){if(tn.$(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 Ae=y.y;se=b.x-ne;var He=b.y-Ae;for(he=Math.sqrt(se*se+He*He),tn.$(se,0)?He=0>He?-Math.PI/2:Math.PI/2:(He=Math.atan(He/Math.abs(se)),0>se&&(He=Math.PI-He)),ge=he/ge,ye=He-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),tn.$(y,0)||(tn.$(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),Ae+y*Math.sin(se)));this.dd(x,b)}}return!0;case t0:if(te=this.i(a),Ae=this.i(x),!te.Xa(y)||!Ae.Xa(b)){E=te.x,te=te.y,ne=Ae.x,Ae=Ae.y,ge=(ne-E)*(ne-E)+(Ae-te)*(Ae-te),se=y.x,ye=y.y,he=b.x,He=b.y;var Ye=1;if(he-se!==0){var rt=(He-ye)/(he-se);Ye=Math.sqrt(1+1/(rt*rt))}else rt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ht=y.x,Ft=y.y,Nt=.5;ge!==0&&(Nt=((E-ht)*(E-ne)+(te-Ft)*(te-Ae))/ge);var Ht=E+Nt*(ne-E),Wt=te+Nt*(Ae-te);y=Math.sqrt((ht-Ht)*(ht-Ht)+(Ft-Wt)*(Ft-Wt)),Ft<rt*(ht-Ht)+Wt&&(y=-y),0<rt&&(y=-y),ht=se+Nt*(he-se),Nt=ye+Nt*(He-ye),rt!==0?(y=ht+y/Ye,this.L(a,y,Nt-(y-ht)/rt)):this.L(a,ht,Nt+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,Ae=se,ge=ye,tn.B(E.y,te.y)?tn.B(te.x,ne.x)?ye=y.y:tn.B(te.y,ne.y)&&(se=y.x):tn.B(E.x,te.x)&&(tn.B(te.y,ne.y)?se=y.x:tn.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,He=ye,tn.B(E.y,te.y)?tn.B(te.x,ne.x)?ye=b.y:tn.B(te.y,ne.y)&&(se=b.x):tn.B(E.x,te.x)&&(tn.B(te.y,ne.y)?se=b.x:tn.B(te.x,ne.x)&&(ye=b.y)),this.L(x-1,se,ye),Zv(this))){this.L(a+1,Ae,ge),this.L(x-1,he,He),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Vn.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=At.alloc(),ye=At.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 Ae=x;if(this.isAvoiding){var He=this.diagram;if(He===null||E===te||this.layer.isTemporary||!ep(He)||se.ca(Ae)&&!te.Td(E)||he.ca(a)&&!E.Td(te))y=!1;else{var Ye=tp(He,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ye.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))&&Ye.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))&&Ye.Yj(Math.min(ye.x,Ae.x),Math.min(ye.y,Ae.y),Math.abs(ye.x-Ae.x),Math.abs(ye.y-Ae.y)))y=!1;else{E=a,te=Ae;var rt=x=null;if(He.isVirtualized){He=Ye.bounds.copy(),He.Bc(-Ye.Ho,-Ye.Go);var ht=At.alloc();bp(Ye,a.x,a.y)||(tn.Ff(He.x,He.y,He.x+He.width,He.y+He.height,a.x,a.y,ge.x,ge.y,ht)?(x=a=ht.copy(),y=ht.ab(ge)):tn.Ff(He.x,He.y,He.x+He.width,He.y+He.height,ge.x,ge.y,ye.x,ye.y,ht)?(x=a=ht.copy(),y=ht.ab(ye)):tn.Ff(He.x,He.y,He.x+He.width,He.y+He.height,ye.x,ye.y,Ae.x,Ae.y,ht)&&(x=a=ht.copy(),y=ht.ab(Ae))),bp(Ye,Ae.x,Ae.y)||(tn.Ff(He.x,He.y,He.x+He.width,He.y+He.height,Ae.x,Ae.y,ye.x,ye.y,ht)?(rt=Ae=ht.copy(),b=ye.ab(ht)):tn.Ff(He.x,He.y,He.x+He.width,He.y+He.height,ye.x,ye.y,ge.x,ge.y,ht)?(rt=Ae=ht.copy(),b=ge.ab(ht)):tn.Ff(He.x,He.y,He.x+He.width,He.y+He.height,ge.x,ge.y,a.x,a.y,ht)&&(rt=Ae=ht.copy(),b=a.ab(ht))),At.free(ht)}se=se.copy().ed(he),se.Bc(Ye.Ho*Ye.Os,Ye.Go*Ye.Os),aS(Ye,a,y,Ae,b,se,!0),he=Ac(Ye,Ae.x,Ae.y),!Ye.abort&&he>=Pp&&(oS(Ye),se.Bc(Ye.Ho*Ye.Hx,Ye.Go*Ye.Ix),aS(Ye,a,y,Ae,b,se,!1),he=Ac(Ye,Ae.x,Ae.y)),!Ye.abort&&he<Pp&&Ac(Ye,Ae.x,Ae.y)!==Nh?(Xv(this,Ye,Ae.x,Ae.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=Ae.y):(se.x=Ae.x,se.y=a.y),this.L(2,se.x,se.y),this.m(3,se.x,se.y)):(ne=this.i(3),y===0||y===180?tn.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)):tn.B(se.y,ne.y)?(Math.abs(a.y-se.y)<=Ye.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)&&(tn.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)):tn.B(se.x,ne.x)?(Math.abs(a.x-se.x)<=Ye.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())),At.free(ge),At.free(ye)}},Vn.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,Ae=b;for(E===0?ye+=se:E===90?Ae+=he:E===180?ye-=se:Ae-=he,E!==ne&&ge>Xd&&Ac(y,ye,Ae)!==ge-1&&(Ac(y,x-se,b)===ge-1?(E=180,ye=x-se,Ae=b):Ac(y,x+se,b)===ge-1?(E=0,ye=x+se,Ae=b):Ac(y,x,b-he)===ge-1?(E=270,ye=x,Ae=b-he):Ac(y,x,b+he)===ge-1&&(E=90,ye=x,Ae=b+he));ge>Xd&&Ac(y,ye,Ae)===ge-1;)x=ye,b=Ae,E===0?ye+=se:E===90?Ae+=he:E===180?ye-=se:Ae-=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)}Vn.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},Vn.prototype.qc=function(){this.lk=!1,this.v()},Vn.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)}}},Vn.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&&!tn.$(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&&!tn.$(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=At.allocAt(b,he),x=At.alloc(),x.assign(this.i(1)),te=At.allocAt(b,he),E=At.allocAt(b,he),ne=this.i(0);for(var ge,ye=this.smoothness/3,Ae=1;Ae<this.pointsCount-1;Ae++){ge=this.i(Ae);var He=ne,Ye=ge,rt=this.i(Yv(this,ge,Ae,!1));if((!tn.$(He.x,Ye.x)||!tn.$(Ye.x,rt.x))&&(!tn.$(He.y,Ye.y)||!tn.$(Ye.y,rt.y))){var ht=ye;isNaN(ht)&&(ht=this.smoothness/3);var Ft=He.x;He=He.y;var Nt=Ye.x;Ye=Ye.y;var Ht=rt.x;rt=rt.y;var Wt=ht*Qm(Ft,He,Nt,Ye);ht*=Qm(Nt,Ye,Ht,rt),tn.$(He,Ye)&&tn.$(Nt,Ht)&&(Nt>Ft?rt>Ye?(te.x=Nt-Wt,te.y=Ye-Wt,E.x=Nt+ht,E.y=Ye+ht):(te.x=Nt-Wt,te.y=Ye+Wt,E.x=Nt+ht,E.y=Ye-ht):rt>Ye?(te.x=Nt+Wt,te.y=Ye-Wt,E.x=Nt-ht,E.y=Ye+ht):(te.x=Nt+Wt,te.y=Ye+Wt,E.x=Nt-ht,E.y=Ye-ht)),tn.$(Ft,Nt)&&tn.$(Ye,rt)&&(Ye>He?(Ht>Nt?(te.x=Nt-Wt,te.y=Ye-Wt,E.x=Nt+ht):(te.x=Nt+Wt,te.y=Ye-Wt,E.x=Nt-ht),E.y=Ye+ht):(Ht>Nt?(te.x=Nt-Wt,te.y=Ye+Wt,E.x=Nt+ht):(te.x=Nt+Wt,te.y=Ye+Wt,E.x=Nt-ht),E.y=Ye-ht)),(tn.$(Ft,Nt)&&tn.$(Nt,Ht)||tn.$(He,Ye)&&tn.$(Ye,rt))&&(Ft=.5*(Ft+Ht),He=.5*(He+rt),te.x=Ft,te.y=He,E.x=Ft,E.y=He),(Ae===1||Ae===2&&tn.$(ne.x,this.i(0).x)&&tn.$(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),At.free(y),At.free(x),At.free(te),At.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=At.alloc(),te.assign(this.i(0)),E=At.alloc(),E.assign(te),ne=this.computeCorner(),Ae=1,ge=0;Ae<y;){if(Ae=Yv(this,te,Ae,1<Ae),ye=this.i(Ae),Ae>=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(Ae=1;Ae<y;)E.assign(te),ye=this.i(Ae++),Ef(this,se,-b,-he,te,ye,x),te.assign(ye);break}if(ge=Yv(this,ye,Ae+1,Ae<y-3),Ae=-b,Ft=-he,He=ye,Nt=this.i(ge),ht=x,tn.B(te.y,He.y)&&tn.B(He.x,Nt.x))if(rt=Math.min(ne,Math.abs(He.x-E.x)/2),rt=Wt=Math.min(rt,Math.abs(Nt.y-He.y)/2),tn.B(rt,0))Ef(this,se,Ae,Ft,te,He,ht),te.assign(He);else{var Vt=He.x,Jt=He.y;Ye=Vt,Ht=Jt,He.x>te.x?Vt=He.x-rt:Vt=He.x+rt,Nt.y>He.y?Ht=He.y+Wt:Ht=He.y-Wt,Nt=At.allocAt(Vt,Jt),Ef(this,se,Ae,Ft,te,Nt,ht),At.free(Nt),Gm(se,He.x+Ae,He.y+Ft,Ye+Ae,Ht+Ft),te.h(Ye,Ht)}else tn.B(te.x,He.x)&&tn.B(He.y,Nt.y)?(rt=Math.min(ne,Math.abs(He.y-E.y)/2),rt=Wt=Math.min(rt,Math.abs(Nt.x-He.x)/2),tn.B(Wt,0)?(Ef(this,se,Ae,Ft,te,He,ht),te.assign(He)):(Vt=He.x,Jt=He.y,Ye=Vt,Ht=Jt,He.y>te.y?Jt=He.y-rt:Jt=He.y+rt,Nt.x>He.x?Ye=He.x+Wt:Ye=He.x-Wt,Nt=At.allocAt(Vt,Jt),Ef(this,se,Ae,Ft,te,Nt,ht),At.free(Nt),Gm(se,He.x+Ae,He.y+Ft,Ye+Ae,Ht+Ft),te.h(Ye,Ht))):(Ef(this,se,Ae,Ft,te,He,ht),te.assign(He));E.assign(ye),Ae=ge}At.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),tn.$(a,0)?y:tn.$(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;tn.$(y.x,te.x)&&tn.$(y.y,te.y);){if(x>=E)return E-1;te=a.i(x++)}if(!tn.$(y.x,te.x)&&!tn.$(y.y,te.y))return x-1;for(var ne=te;tn.$(y.x,te.x)&&tn.$(te.x,ne.x)&&(!b||(y.y>=te.y?te.y>=ne.y:te.y<=ne.y))||tn.$(y.y,te.y)&&tn.$(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}Vn.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(tn.B(E.y,te.y))if(E.x<te.x)for(var ye=0;ye<ge;){var Ae=Math.max(E.x,Math.min(he[ye++]-se,te.x-ne));y.lineTo(Ae+x,te.y+b);for(var He=Ae+x,Ye=Math.min(Ae+ne,te.x);ye<ge&&(Ae=he[ye],Ae<Ye+ne);)ye++,Ye=Math.min(Ae+se,te.x);Ae=te.y-ne+b,Ye+=x;var rt=te.y+b;a.curve===kh?yp(y,Ye,rt,!1):Eh(y,He,Ae,Ye,Ae,Ye,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),He=ye+x,Ae=Math.max(ye-ne,te.x);0<=ge&&(ye=he[ge],ye>Ae-ne);)ge--,Ae=Math.max(ye-se,te.x);ye=te.y-ne+b,Ae+=x,Ye=te.y+b,a.curve===kh?yp(y,Ae,Ye,!1):Eh(y,He,ye,Ae,ye,Ae,Ye)}else if(tn.B(E.x,te.x))if(E.y<te.y)for(ye=0;ye<ge;){for(Ae=Math.max(E.y,Math.min(he[ye++]-se,te.y-ne)),y.lineTo(te.x+x,Ae+b),He=Ae+b,Ae=Math.min(Ae+ne,te.y);ye<ge&&(Ye=he[ye],Ye<Ae+ne);)ye++,Ae=Math.min(Ye+se,te.y);Ye=te.x-ne+x,rt=te.x+x,Ae+=b,a.curve===kh?yp(y,rt,Ae,!1):Eh(y,Ye,He,Ye,Ae,rt,Ae)}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),He=ye+b,ye=Math.max(ye-ne,te.y);0<=ge&&(Ae=he[ge],Ae>ye-ne);)ge--,ye=Math.max(Ae-se,te.y);Ae=te.x-ne+x,Ye=te.x+x,ye+=b,a.curve===kh?yp(y,Ye,ye,!1):Eh(y,Ae,He,Ae,ye,Ye,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 Vn){if(he===a)return 0<b.length&&b.sort(function(ye,Ae){return ye-Ae}),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,Ae){return ye-Ae}),b.length}function Mx(a,y,x,b){for(var E=tn.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=At.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 Ae=a.y,He=y.x,Ye=y.y,rt=ne.x;ne=ne.y;var ht=ge.x,Ft=ge.y;if(tn.B(ye,He)){if(!tn.B(Ae,Ye)&&tn.B(ne,Ft)&&Math.min(Ae,Ye)<ne&&Math.max(Ae,Ye)>ne&&Math.min(rt,ht)<ye&&Math.max(rt,ht)>ye&&!tn.B(rt,ht)){se.x=ye,se.y=ne,ye=!0;break e}}else if(tn.B(Ae,Ye)&&tn.B(rt,ht)&&Math.min(ye,He)<rt&&Math.max(ye,He)>rt&&Math.min(ne,Ft)<Ae&&Math.max(ne,Ft)>Ae&&!tn.B(ne,Ft)){se.x=rt,se.y=Ae,ye=!0;break e}se.x=0,se.y=0,ye=!1}ye&&(E?x.push(se.x):x.push(se.y)),ne=ge}At.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()))}Vn.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 Vn&&(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 Vn&&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())}}Vn.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},Vn.prototype.isVisible=function(){if(!Ar.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},Vn.prototype.Zb=function(a){if(Ar.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)},Vn.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()))}Vn.prototype.ph=function(){return!0},Tt.Object.defineProperties(Vn.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",Vn,"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",Vn,"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),tn.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);tn.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 At)}},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);tn.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):tn.$(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 At(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 At(E.x,E.y).freeze())}}else if(a instanceof vn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else $t("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)}}}),Vn.prototype.invalidateOtherJumpOvers=Vn.prototype.Xo,Vn.prototype.findClosestSegment=Vn.prototype.ez,Vn.prototype.updateRoute=Vn.prototype.vg,Vn.prototype.invalidateRoute=Vn.prototype.bb,Vn.prototype.rollbackRoute=Vn.prototype.rv,Vn.prototype.commitRoute=Vn.prototype.zf,Vn.prototype.startRoute=Vn.prototype.uh,Vn.prototype.clearPoints=Vn.prototype.Fj,Vn.prototype.removePoint=Vn.prototype.pv,Vn.prototype.addPointAt=Vn.prototype.yf,Vn.prototype.addPoint=Vn.prototype.ne,Vn.prototype.insertPointAt=Vn.prototype.m,Vn.prototype.insertPoint=Vn.prototype.Kz,Vn.prototype.setPointAt=Vn.prototype.L,Vn.prototype.setPoint=Vn.prototype.dd,Vn.prototype.getPoint=Vn.prototype.i,Vn.prototype.getOtherPort=Vn.prototype.Cz,Vn.prototype.getOtherNode=Vn.prototype.To;var Tf=null,Mf=null,Jv=new bn(Vn,"Normal",1),Lx=new bn(Vn,"Orthogonal",2),kx=new bn(Vn,"AvoidsNodes",6),nS=new bn(Vn,"AvoidsNodesStraight",7),Ks=new bn(Vn,"None",0),Xl=new bn(Vn,"Bezier",9),kh=new bn(Vn,"JumpGap",10),wp=new bn(Vn,"JumpOver",11),bg=new bn(Vn,"End",17),e0=new bn(Vn,"Scale",18),t0=new bn(Vn,"Stretch",19),Pg=new bn(Vn,"OrientAlong",21),Cg=new bn(Vn,"OrientPlus90",22),Eg=new bn(Vn,"OrientMinus90",23),Qv=new bn(Vn,"OrientOpposite",24),n0=new bn(Vn,"OrientUpright",25),Tg=new bn(Vn,"OrientPlus90Upright",26),Mg=new bn(Vn,"OrientMinus90Upright",27),r0=new bn(Vn,"OrientUpright45",28),rS=16,iS=14,Lg=8;Vn.className="Link",Vn.Normal=Jv,Vn.Orthogonal=Lx,Vn.AvoidsNodes=kx,Vn.AvoidsNodesStraight=nS,Vn.None=Ks,Vn.Bezier=Xl,Vn.JumpGap=kh,Vn.JumpOver=wp,Vn.End=bg,Vn.Scale=e0,Vn.Stretch=t0,Vn.OrientAlong=Pg,Vn.OrientPlus90=Cg,Vn.OrientMinus90=Eg,Vn.OrientOpposite=Qv,Vn.OrientUpright=n0,Vn.OrientPlus90Upright=Tg,Vn.OrientMinus90Upright=Mg,Vn.OrientUpright45=r0,Vn.EndSegmentStep=8,Vn.CurvinessStart=rS,Vn.SpacingMin=iS,Vn.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,Ae=a.ac[ge][ye];if(Ae>=Xd&&Ae<Pp)for(E?ye+=b:ge+=b,Ae+=1;te<=ge&&ge<=ne&&se<=ye&&ye<=he&&!(Ae>=a.ac[ge][ye]);)a.ac[ge][ye]=Ae,Ae+=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 Ae=te.x;b=te.y,y=te.x+te.width;var He=te.y+te.height;Ae-=a.Nd,Ae/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,He-=a.Od,He/=a.sc,te=Math.max(0,Math.min(a.di,Ae|0)),y=Math.min(a.di,Math.max(0,y|0)),Ae=Math.max(0,Math.min(a.ei,b|0)),He=Math.min(a.ei,Math.max(0,He|0)),b=a.ac,se|=0,he|=0,ge|=0,ye|=0;var Ye=x===0||x===90?1:-1;if(x=x===90||x===270,b[se][he]===Nh?(o0(a,se,he,Ye,x,te,y,Ae,He),o0(a,se,he,1,!x,te,y,Ae,He),o0(a,se,he,-1,!x,te,y,Ae,He)):o0(a,se,he,Ye,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,Ae,He),a0(a,ge,ye,1,!(E===90||E===270),te,y,Ae,He),a0(a,ge,ye,-1,!(E===90||E===270),te,y,Ae,He)):a0(a,ge,ye,Ye,x,ge,ye,ge,ye),x=Sn(),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,Ae,He),jc(a,se,he,-1,!1,te,y,Ae,He),jc(a,se,he,1,!0,te,y,Ae,He),jc(a,se,he,-1,!0,te,y,Ae,He);An(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,Ae=ge;if(b===0)if(ye<E)ye++;else break;else if(b===90)if(Ae<te)Ae++;else break;else if(b===180)if(ye>E)ye--;else break;else if(Ae>te)Ae--;else break;var He=se[ye][Ae];if(He===0||He===ey)break;he=ye,ge=Ae}for(;;){if(ye=b,Ae=he,He=ge,b===0?He<te?(ye=90,He++):He>te&&(ye=270,He--):b===90?Ae<E?(ye=0,Ae++):Ae>E&&(ye=180,Ae--):b===180?He<te?(ye=90,He++):He>te&&(ye=270,He--):Ae<E?(ye=0,Ae++):Ae>E&&(ye=180,Ae--),Ae=se[Ae][He],ye!==b&&Ae!==0&&Ae!==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++}}}Tt.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 ni?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,At.alloc()),he=a.port.ga(As,At.alloc());for(E=Ln.allocAt(se.x,se.y,0,0),E.Ye(he),At.free(se),At.free(he),se=At.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),Ae=ge.computeSpot(ye,a.port);if(Ae.$c()&&(ye=ye?ge.toPort:ge.fromPort,ye!==null)){var He=ye.part;if(He!==null){var Ye=He.findVisibleNode();Ye!==null&&Ye!==He&&(He=Ye,ye=He.port),ye=ge.computeOtherPoint(He,ye),He=se.ab(ye),He-=he,0>He?He+=360:360<=He&&(He-=360),Ae=Nx(E,Ae,He,ge.isOrthogonal),Ae===0?(Ae=4,180<He&&(He-=360)):Ae===90?(Ae=8,270<He&&(He-=360)):Ae===180?Ae=2:(Ae=1,90>He&&(He+=360)),Ye=a.pe[te],Ye===void 0?(Ye=new ty(ge,He,Ae),a.pe[te]=Ye):(Ye.link=ge,Ye.angle=He,Ye.Nc=Ae),Ye.hv.set(ye),te++}}}}for(At.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,Ae=a.port,b=a.node.portSpreading,se=At.alloc(),he=At.alloc(),ne=At.alloc(),ge=At.alloc(),Ae.ga($a,se),Ae.ga(Dl,he),Ae.ga(As,ne),Ae.ga(tl,ge),Ye=He=ye=Ae=0,b===Uv)for(var rt=0;rt<te.length;rt++){var ht=te[rt];if(ht!==null){var Ft=ht.link.computeThickness();switch(ht.Nc){case 8:He+=Ft;break;case 2:Ye+=Ft;break;case 1:Ae+=Ft;break;default:case 4:ye+=Ft}}}var Nt=rt=0,Ht=1,Wt=ht=0;for(Ft=0;Ft<te.length;Ft++){var Vt=te[Ft];if(Vt!==null){if(rt!==Vt.Nc){switch(rt=Vt.Nc,rt){case 8:var Jt=ne;Nt=ge;break;case 2:Jt=ge,Nt=se;break;case 1:Jt=se,Nt=he;break;default:case 4:Jt=he,Nt=ne}switch(ht=Nt.x-Jt.x,Wt=Nt.y-Jt.y,rt){case 8:He>Math.abs(ht)?(Ht=Math.abs(ht)/He,He=Math.abs(ht)):Ht=1;break;case 2:Ye>Math.abs(Wt)?(Ht=Math.abs(Wt)/Ye,Ye=Math.abs(Wt)):Ht=1;break;case 1:Ae>Math.abs(ht)?(Ht=Math.abs(ht)/Ae,Ae=Math.abs(ht)):Ht=1;break;default:case 4:ye>Math.abs(Wt)?(Ht=Math.abs(Wt)/ye,ye=Math.abs(Wt)):Ht=1}Nt=0}var dn=Vt.Zo;if(b===Uv){switch(Vt=Vt.link.computeThickness(),Vt*=Ht,dn.set(Jt),rt){case 8:dn.x=Jt.x+ht/2+He/2-Nt-Vt/2;break;case 2:dn.y=Jt.y+Wt/2+Ye/2-Nt-Vt/2;break;case 1:dn.x=Jt.x+ht/2-Ae/2+Nt+Vt/2;break;default:case 4:dn.y=Jt.y+Wt/2-ye/2+Nt+Vt/2}Nt+=Vt}else{var qn=.5;b===Zm&&(qn=(Vt.Uo+1)/(Vt.Gl+1)),dn.x=Jt.x+ht*qn,dn.y=Jt.y+Wt*qn}}}for(At.free(se),At.free(he),At.free(ne),At.free(ge),Jt=a.pe,te=0;te<Jt.length;te++)b=Jt[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 At,this.Gl=this.Uo=0,this.Zo=new At,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 At(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 hn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ni?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 wn;a instanceof hn?(rd(this,y,a.nodes,!0,this.rh,!0,!1,!0),rd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ni?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 ni&&(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 Vn)&&(Ng(se),this.rh(se))){var he=se.measuredBounds,ge=he.width;he=he.height,se.moveTo(x,b),se instanceof ni&&(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 ni&&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 ni&&he.layout===null?rd(a,y,he.memberParts,!1,E,te,ne,se):(Ng(he),y.add(he))):ne&&he instanceof Vn?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 wn;return a instanceof hn?(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 ni?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},Tt.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 wn,this.ye=new wn,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 wn,this.ye=new wn,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 Vn){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 ni&&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 Vn&&(!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=Sn(),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]);An(a)},Eo.prototype.deleteArtificialVertexes=function(){for(var a=Sn(),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=Sn(),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]);An(a),An(y)};function Ox(a){for(var y=Sn(),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]);An(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 wn,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},Tt.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 At(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 ni)){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}Tt.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 ni)&&(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 wn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new wn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new wn,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},Tt.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)}qt(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:$t("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 ni)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 Ae=ye=0;Ae<E.length;Ae++){var He=this.ni(E[Ae],ge);ye=Math.max(ye,He.width)}if(ye=Math.max(ye+se,1),Ae=Math.max(this.cellSize.height,1),!isFinite(Ae))for(He=Ae=0;He<E.length;He++){var Ye=this.ni(E[He],ge);Ae=Math.max(Ae,Ye.height)}Ae=Math.max(Ae+he,1),He=this.arrangement;for(var rt=Ye=this.arrangementOrigin.x,ht=this.arrangementOrigin.y,Ft=0,Nt=0,Ht=0;Ht<E.length;Ht++){var Wt=E[Ht],Vt=this.ni(Wt,ge),Jt=Math.ceil((Vt.width+se)/ye)*ye,dn=Math.ceil((Vt.height+he)/Ae)*Ae;switch(He){case Zu:var qn=Math.abs(rt-Vt.width);break;default:qn=rt+Vt.width}switch((0<te&&Ft>te-1||0<ne&&0<Ft&&qn-Ye>ne)&&(b.push(new Ln(0,ht,ne+se,Nt)),Ft=0,rt=Ye,ht+=Nt,Nt=0),Nt=Math.max(Nt,dn),He){case Zu:Vt=-Vt.width;break;default:Vt=0}switch(Wt.moveTo(rt+Vt,ht),He){case Zu:rt-=Jt;break;default:rt+=Jt}Ft++}b.push(new Ln(0,ht,ne+se,Nt)),Ln.free(ge);break;case Og:for(he=ne,ye=te,Ae=y,He=x,ne=Ln.alloc(),Ye=Math.max(this.cellSize.width,1),te=ht=ge=0,se=At.alloc(),rt=0;rt<E.length;rt++)Nt=E[rt],Ft=this.ni(Nt,ne),Nt=Th(Nt,Nt.locationObject,Nt.locationSpot,se),ge=Math.max(ge,Nt.x),ht=Math.max(ht,Ft.width-Nt.x),te=Math.max(te,Nt.y);switch(rt=this.arrangement,rt){case Zu:ge+=Ae;break;default:ht+=Ae}Ye=isFinite(Ye)?Math.max(Ye+Ae,1):Math.max(ge+ht,1);var dr=Nt=this.arrangementOrigin.x;for(Ht=this.arrangementOrigin.y,ht=0,he>=ge&&(he-=ge),ge=Wt=0,Jt=Math.max(this.cellSize.height,1),Vt=te=0,dn=!0,Ft=At.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<ht)switch(rt){case Zu:dr=(dr-Nt-($n.width-jn.x))/Ye,dr=tn.$(Math.round(dr),dr)?Math.round(dr):Math.floor(dr),dr=dr*Ye+Nt;break;default:dr=(dr-Nt+jn.x)/Ye,dr=tn.$(Math.round(dr),dr)?Math.round(dr):Math.ceil(dr),dr=dr*Ye+Nt}else switch(rt){case Zu:Wt=dr+jn.x+$n.width;break;default:Wt=dr-jn.x}switch(rt){case Zu:var ei=-(dr+jn.x)+Wt;break;default:ei=dr+$n.width-jn.x-Wt}if(0<ye&&ht>ye-1||0<he&&0<ht&&ei>he){for(b.push(new Ln(0,dn?Ht-te:Ht,he+Ae,Vt+te+He)),dr=0;dr<ht&&qn!==ht;dr++){ei=E[qn-ht+dr];var $r=Th(ei,ei.locationObject,ei.locationSpot,Ft);ei.moveTo(ei.position.x,ei.position.y+te-$r.y)}Vt+=He,Ht=dn?Ht+Vt:Ht+(Vt+te),ht=Vt=te=0,dr=Nt,dn=!1}switch(dr===Nt&&(ge=rt===Zu?Math.max(ge,$n.width-jn.x):Math.min(ge,-jn.x)),te=Math.max(te,jn.y),Vt=Math.max(Vt,$n.height-jn.y),isFinite(Jt)&&(Vt=Math.max(Vt,Math.max($n.height,Jt)-jn.y)),dn?hr.moveTo(dr-jn.x,Ht-jn.y):hr.moveTo(dr-jn.x,Ht),rt){case Zu:dr-=jn.x+Ae;break;default:dr+=$n.width-jn.x+Ae}ht++}if(b.push(new Ln(0,Ht,he+Ae,(dn?Vt:Vt+te)+He)),E.length!==ht)for(he=0;he<ht;he++)ye=E[E.length-ht+he],Ae=Th(ye,ye.locationObject,ye.locationSpot,se),ye.moveTo(ye.position.x,ye.position.y+te-Ae.y);if(At.free(se),At.free(Ft),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 At(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new At(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}Tt.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 wn,this.Dn=new wn,this.Pa=new wn,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 ni){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 Vn?this.Dn.add(a):a instanceof Ui||this.Pa.add(a);y=a.data,y===null||a instanceof Ui||(a instanceof Vn?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 ni){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 Vn?this.Dn.remove(a):a instanceof Ui||this.Pa.remove(a);y=a.data,y===null||a instanceof Ui||(a instanceof Vn?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 ni)&&$t('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 ni||$t('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 Vn||$t('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Sn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=Sn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=Sn(),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]);An(y),An(x),An(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 wn;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 wn;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,Ae=ye?a.newParam:a.oldParam,He=ye?a.newValue:a.oldValue,Ye=this.aj.I(a.object);if(Array.isArray(Ye))for(a=0;a<Ye.length;a++){var rt=Ye[a];if(ye)km(rt,He,Ae,!0);else if(!(0>Ae)){var ht=Ae+fg(rt);rt.pc(ht,!0),wv(rt,ht,Ae)}}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 wn,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=Sn()),x.push(ne))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);An(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 wn;for(var te=new fr,ne=b.iterator;ne.next();){var se=ne.value;if(se instanceof Vn)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(Ae){Ae.key.data!==null&&ye.add(Ae.key.data,Ae.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 Ar))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 ni&&te instanceof ni)for(y=y.memberParts;y.next();)ne=h0(a,y.value,x,b,E),ne instanceof Vn||ne===null||(ne.containingGroup=te)}else if(y instanceof Vn&&te instanceof Vn)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 Vn||(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 Vn||(E=y.copyNodeData(b)),on(E)&&(x.data=E)));return x},Tt.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)}qt(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 Ae=this.Kc(a.object);if(Ae!==null){var He=a.newValue;typeof He=="string"&&(Ae.toPortId=He)}}else if(E==="nodeGroupKey"){var Ye=this.Lc(a.object);if(Ye!==null){var rt=a.newValue;if(rt!==void 0){var ht=this.Vb(rt);ht instanceof ni?Ye.containingGroup=ht:Ye.containingGroup=null}else Ye.containingGroup=null}}else if(E==="linkLabelKeys"){var Ft=this.Kc(a.object);if(Ft!==null){var Nt=a.oldValue,Ht=a.newValue;Array.isArray(Nt)&&Nt.forEach(function(jn){0<=Ht.indexOf(jn)||(jn=y.Vb(jn),jn!==null&&(jn.labeledLink=null))}),Array.isArray(Ht)&&Ht.forEach(function(jn){jn=y.Vb(jn),jn!==null&&(jn.labeledLink=Ft)})}}else if(E==="linkCategory"){var Wt=this.Kc(a.object),Vt=a.newValue;Wt!==null&&typeof Vt=="string"&&(Wt.category=Vt)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===la){var Jt=a.newValue;if(E==="linkDataArray"&&typeof Jt=="object"&&Jt!==null)yS(this,Jt);else if(E==="linkLabelKeys"&&od(Jt)){var dn=this.Kc(a.object),qn=this.Vb(Jt);dn!==null&&qn!==null&&(qn.labeledLink=dn)}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 wn,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 Vn){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 wn().addAll(y);var ne=new wn;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 ni)&&(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 ni&&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 ni&&(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 ni)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 Vn)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 Vn){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}qt(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||!Rn(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 Ae=a.propertyName;a.object===y.model&&Ae==="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 wn,this.il=new wn,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&&$t("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 wn,te=new wn,ne=new wn,se=this.vh;a.changes.each(function(Ae){Ae.model===x&&(Ae.modelChange==="nodeDataArray"?Ae.change===la?E.add(Ae.newValue):Ae.change===La&&ne.add(Ae.oldValue):x.lb(Ae.object)?te.add(Ae.object):Ae.change!==Ho||x.modelData!==Ae.object&&Ae.propertyName!=="modelData"?Ae.object!==null&&(se&&se.contains(Ae.object)?se.get(Ae.object).each(function(He){x.lb(He)&&te.add(He)}):Ae.object instanceof yr||x.ri()&&x.Jc(Ae.object)||bS(x,Ae.object).each(function(He){te.add(He)})):b=!0)});var he=this.il;he.clear(),E.each(function(Ae){he.add(x.wa(Ae)),y||te.add(Ae)});var ge=this.kl;ge.clear(),ne.each(function(Ae){ge.add(x.wa(Ae)),y&&te.add(Ae)}),a=x.cloneDeep(te.Fa());var 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(Ae,He){se?(Ae.__gohashid===void 0&&te.push(Ae),b.set(Ae,He)):(Ae=yo++,b.set(Ae,He),E.set(Ae,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 At||y instanceof Yn||y instanceof Ln||y instanceof Or||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 wn)he=new wn().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(Ae){delete Ae.__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 wn,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 wn,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 wn,te=new wn,ne=new wn,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(Ae){x.lb(Ae)&&te.add(Ae)}):ye.object instanceof yr||x.ri()&&x.Jc(ye.object)||bS(x,ye.object).each(function(Ae){te.add(Ae)})):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)&&$t("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&&$t("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=Rt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:$t("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&$t("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:$t("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 At(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 At)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 Or)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 At(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 Or(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&&xn(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):xn(b,x,a))):$t("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&&xn(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?xn(b,x,a):gn(b,x))):$t("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==il&&$t("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;$t("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&&$t("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&&$t("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,xn(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 wn&&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 wn,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 wn&&(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 wn?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 At||y instanceof Yn||y instanceof Ln||y instanceof wr||y instanceof Or?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 Qt&&(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),xn(a,y,x),Ia(this,"",la,"",a,null,x,null,y)},ot.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&$t("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;$t("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]:Rt.go!==void 0&&Rt.go[a]?Rt.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){}}Tt.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===""&&$t("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&$t("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)||$t("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=Rt.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:$t("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=Rt[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof yr?y=a:$t("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=Or,Ou.Panel=Un,Ou.Point=At,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 wn}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 Ae=te(ne,y,he);he!==null?he.setDataProperty(y,x,Ae):Ao(y,x,Ae)}else{var He=te(ne,y,he);if(He!==void 0&&he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Ye=b.itemIndex,rt=b.panel.itemArray;he.ov(rt,Ye),he.ts(rt,Ye,He)}}}catch(ht){}}finally{this.st.remove(a)}}}},Tt.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 wn,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))}qt(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===""&&$t("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 wn,te=new wn,ne=new wn,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(Ae){b.Jc(Ae)&&te.add(Ae)}):ye.object instanceof yr||b.lb(ye.object)||kS(b,ye.object).each(function(Ae){te.add(Ae)})))});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 wn,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===""&&$t("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 wn,te=new wn,ne=new wn,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(Ae){b.Jc(Ae)&&te.add(Ae)}):ye.object instanceof yr||b.lb(ye.object)||kS(b,ye.object).each(function(Ae){te.add(Ae)})))});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)&&$t("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;$t((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 $t(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&&$t(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;$t("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&&$t("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&&$t("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===""&&$t("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;$t("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=Sn();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]);An(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;$t("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},Tt.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)||$t("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 wn,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))}qt(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&&$t("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;$t("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:($t("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=Sn();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]);An(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},Tt.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 At,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)}qt(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 Ae=this.startAngle;isFinite(Ae)||(Ae=0);var He=this.sweepAngle;if((!isFinite(He)||360<He||1>He)&&(He=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 Ye=te=E=0;Ye<b.length;Ye++){var rt=Ae+He*te*(this.direction===Ys?1:-1)/he,ht=b.M(Ye).diameter;isNaN(ht)&&(ht=ld(b.M(Ye),rt)),360>He&&(Ye===0||Ye===b.length-1)&&(ht/=2),E+=ht,te++}if(isNaN(ge)||se===ju){if(isNaN(y)&&(y=6),se!==Au&&se!==ju){for(te=-1/0,ne=0;ne<he;ne++)Ye=b.M(ne),E=b.M(ne===he-1?0:ne+1),isNaN(Ye.diameter)&&ld(Ye,0),isNaN(E.diameter)&&ld(E,0),te=Math.max(te,(Ye.diameter+E.diameter)/2);ne=te+y,se===Oh?ge=(te+y)/(2*Math.PI/he):ge=v0(this,ne*(360<=He?he:he-1),ye,Ae*Math.PI/180,He*Math.PI/180)}else ge=v0(this,E+(360<=He?he:he-1)*(se!==ju?y:1.6*y),ye,Ae*Math.PI/180,He*Math.PI/180);te=ge*ye}else if(te=ge*ye,Ye=py(this,ge,te,Ae*Math.PI/180,He*Math.PI/180),isNaN(y))(se===Au||se===ju)&&(y=(Ye-E)/(360<=He?he:he-1));else if(se===Au||se===ju)Ye=(Ye-E)/(360<=He?he:he-1),Ye<y?(ge=v0(this,E+y*(360<=He?he:he-1),ye,Ae*Math.PI/180,He*Math.PI/180),te=ge*ye):y=Ye;else{for(ne=-1/0,E=0;E<he;E++)rt=b.M(E),ht=b.M(E===he-1?0:E+1),isNaN(rt.diameter)&&ld(rt,0),isNaN(ht.diameter)&&ld(ht,0),ne=Math.max(ne,(rt.diameter+ht.diameter)/2);ne+=y,E=v0(this,ne*(360<=He?he:he-1),ye,Ae*Math.PI/180,He*Math.PI/180),E>ge?(ge=E,te=ge*ye):ne=Ye/(360<=He?he:he-1)}if(this.kw=se,this.lc=ge,this.Zm=ye,this.lw=Ae,this.Wp=He,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,ge=this.lw,ye=this.Wp,Ae=this.Ti,He=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,He,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,He,ge,Ae+(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),Ae=ne*Math.tan(ge)/a;Ae=Math.sqrt((ne*ne+a*a*Ae*Ae)/(1+Ae*Ae)),ye.centerX=Ae*Math.cos(ge),ye.centerY=Ae*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),Ae=te*Math.sin(x);ge.centerX=E*Math.cos(x),ge.centerY=Ae,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=At.alloc();for(var Ae=0;Ae<ye.length&&(ye[Ae].centerX=he,ye[Ae].centerY=ge,!(Ae>=ye.length-1));Ae++)FS(a,he,ge,ye,Ae,E,te)||BS(a,he,ge,ye,Ae,E,te),he=te.x,ge=te.y;if(At.free(te),a.mj++,!(23<a.mj)){he=ye[0].centerX,ge=ye[0].centerY,te=ye[ye.length-1].centerX,Ae=ye[ye.length-1].centerY;var He=Math.abs(he-te)-((ye[0].width+ye[ye.length-1].width)/2+ne),Ye=Math.abs(ge-Ae)-((ye[0].height+ye[ye.length-1].height)/2+ne);ne=0,1>Math.abs(Ye)?Math.abs(he-te)<(ye[0].width+ye[ye.length-1].width)/2&&(ne=0):ne=0<Ye?Ye:1>Math.abs(He)?0:He,he=Math.abs(te)>Math.abs(Ae)?0<te!=ge>Ae:0<Ae!=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=At.alloc(),Ae=y.Fa(),He=0;He<Ae.length&&(Ae[He].centerX=he,Ae[He].centerY=ge,!(He>=Ae.length-1));He++)FS(a,he,ge,Ae,He,E,ye)||BS(a,he,ge,Ae,He,E,ye),he=ye.x,ge=ye.y;if(At.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<Ae.length;he++)ne.mk[he]=Ae[he].bounds.x,ne.tm[he]=Ae[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 At(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:$t("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 Ae=ye=1/0,He=-1,Ye=[],rt=0;rt<x.length;rt++)0>y[x[rt]].indexOf(x[rt===x.length-1?0:rt+1])&&Ye.push(rt===x.length-1?0:rt+1);if(Ye.length===0)for(rt=0;rt<x.length;rt++)Ye.push(rt);for(rt=0;rt<Ye.length;rt++){for(var ht=Ye[rt],Ft=y[ge],Nt=0,Ht=0;Ht<ne.length;Ht++){var Wt=te[ne[Ht]],Vt=te[se[Ht]];if(Wt<Vt){var Jt=Wt;Wt=Vt}else Jt=Vt;if(Jt<ht&&ht<=Wt)for(Vt=0;Vt<Ft.length;Vt++){var dn=Ft[Vt];0>x.indexOf(dn)||Jt<te[dn]&&te[dn]<Wt||Jt===te[dn]||Wt===te[dn]||Nt++}else for(Vt=0;Vt<Ft.length;Vt++)dn=Ft[Vt],0>x.indexOf(dn)||Jt<te[dn]&&te[dn]<Wt&&Jt!==te[dn]&&Wt!==te[dn]&&Nt++}for(Ft=Nt,Ht=Nt=0;Ht<y[ge].length;Ht++)Jt=x.indexOf(y[ge][Ht]),0<=Jt&&(Jt=Math.abs(ht-(Jt>=ht?Jt+1:Jt)),Nt+=Jt<x.length+1-Jt?Jt:x.length+1-Jt);for(Ht=0;Ht<ne.length;Ht++)Jt=te[ne[Ht]],Wt=te[se[Ht]],Jt>=ht&&Jt++,Wt>=ht&&Wt++,Jt>Wt&&(Vt=Wt,Wt=Jt,Jt=Vt),Wt-Jt<(x.length+2)/2==(Jt<ht&&ht<=Wt)&&Nt++;(Ft<ye||Ft===ye&&Nt<Ae)&&(ye=Ft,Ae=Nt,He=ht)}for(x.splice(He,0,ge),ye=0;ye<x.length;ye++)te[x[ye]]=ye;for(ye=0;ye<y[ge].length;ye++)Ae=y[ge][ye],0<=x.indexOf(Ae)&&(ne.push(ge),se.push(Ae))}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(He=Ae=0;He<y[ge].length;He++)Ye=x.indexOf(y[ge][He]),0>Ye||Ye===ye||(rt=Ye>ye?Ye-ye:ye-Ye,Ae+=Ye<ye!=rt>ne-rt?1:-1);x.splice(0>Ae?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},Tt.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)}qt(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}qt(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}Tt.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)}qt(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)}qt(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=Sn(),ye=0;ye<se+y.vertexes.count+2;ye++)ge[ye]=null;se=0,ne.reset();for(var Ae=Ln.alloc();ne.next();)if(ye=ne.value,this.computeBounds(ye,Ae),he)he=!1,E=Ae.x+Ae.width/2,te=Ae.y+Ae.height/2,ge[0]=new At(Ae.x+Ae.width+b.width,Ae.y),ge[1]=new At(Ae.x,Ae.y+Ae.height+b.height),se=2;else{var He=_S(ge,se,E,te,Ae.width,Ae.height,b),Ye=ge[He],rt=new At(Ye.x+Ae.width+b.width,Ye.y),ht=new At(Ye.x,Ye.y+Ae.height+b.height);for(He+1<se&&ge.splice(He+1,0,null),ge[He]=rt,ge[He+1]=ht,se++,He=Ye.x-Ae.x,Ye=Ye.y-Ae.y,ye=ye.vertexes.iterator;ye.next();)rt=ye.value,rt.centerX+=He,rt.centerY+=Ye}for(Ln.free(Ae),ye=y.vertexes.iterator;ye.next();)ne=ye.value,He=ne.bounds,2>se?(E=He.x+He.width/2,te=He.y+He.height/2,ge[0]=new At(He.x+He.width+b.width,He.y),ge[1]=new At(He.x,He.y+He.height+b.height),se=2):(he=_S(ge,se,E,te,He.width,He.height,b),Ae=ge[he],Ye=new At(Ae.x+He.width+b.width,Ae.y),He=new At(Ae.x,Ae.y+He.height+b.height),he+1<se&&ge.splice(he+1,0,null),ge[he]=Ye,ge[he+1]=He,se++,ne.centerX=Ae.x+ne.width/2,ne.centerY=Ae.y+ne.height/2);for(An(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,tn.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 Ae=he.M(ye),He=null;for(te=Ae.edges.iterator;te.next();){var Ye=te.value;if(Ye.Ax(Ae)===E){He=Ye;break}}He!==null&&(ge+=He.length,se+=Ae.width*Ae.height)}te=E.centerX,he=E.centerY,ye=E.width,Ae=E.height,He=E.focus,Ye=ye*Ae,1>Ye&&(Ye=1),se=tn.sqrt((se+Ye+ge*ge*4/(ne*ne))/Ye),ne=(se-1)*ye/2,se=(se-1)*Ae/2,E.bounds=new Ln(te-He.x-ne,he-He.y-se,ye+2*ne,Ae+2*se),E.focus=new At(He.x+ne,He.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 At(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=tn.sqrt(te*te+ne*ne)/2;for(var se=!1,he=ne=0,ge=0,ye=y.vertexes.iterator;ye.next();){var Ae=ye.value;1>=Ae.Vd?he++:(se=!0,ge++,ne+=Math.atan2(y.centerY-Ae.centerY,y.centerX-Ae.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(Ye,rt){return Ye===null||rt===null||Ye===rt?0:rt.width*rt.height-Ye.width*Ye.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,Ae=he.edges.iterator;Ae.next();){ye=Ae.value;break}Ae=he.width;var He=he.height;Ae=tn.sqrt(Ae*Ae+He*He)/2,ye=te+ye.length+Ae,Ae=ne+(y*(se/2>>1)+ge)*(se%2===0?1:-1),he.centerX=b+ye*Math.cos(Ae),he.centerY=E+ye*Math.sin(Ae),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],Ae=ye.x-x,He=ye.y-b;if(Ae=Ae*Ae+He*He,Ae<se){for(He=ge-1;0<=He;He--)if(a[He].y>ye.y&&a[He].x-ye.x<E+ne.width)continue e;for(He=ge+1;He<y;He++)if(a[He].x>ye.x&&a[He].y-ye.y<te+ne.height)continue e;he=ge,se=Ae}}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,tn.sqrt(x*x+a*a)):a+x<y?(b=b+E-ne,a=a+x-y,tn.sqrt(b*b+a*a)):ne-(b+E):b>ne+se?a>y+te?(x=b-ne-se,a=a-y-te,tn.sqrt(x*x+a*a)):a+x<y?(b=b-ne-se,a=a+x-y,tn.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(ht,Ft){return ht===null||Ft===null||ht===Ft?0:ht.centerX-Ft.centerX}):y.sort(function(ht,Ft){return ht===null||Ft===null||ht===Ft?0:ht.centerY-Ft.centerY}),x=a.Zf;var ge=b=se=0;for(te=0;te<y.length;te++){ne=y[te],b=ne.bounds,se=ne.focus,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 Ae=te+1;Ae<y.length;Ae++){var He=y[Ae];if(He!==ne){b=He.bounds,se=He.focus,ge=b.x+se.x;var Ye=b.y+se.y;if(he-ge>x||ge-he>x){if(E)break}else if(ye-Ye>x||Ye-ye>x){if(!E)break}else{var rt=zS(ne,He);1>rt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new E0),rt=b.random(),se=b.random(),he>ge?(b=Math.abs(He.bounds.right-ne.bounds.x),b=(1+b)*rt):he<ge?(b=Math.abs(He.bounds.x-ne.bounds.right),b=-(1+b)*rt):(b=Math.max(He.width,ne.width),b=(1+b)*rt-b/2),ye>Ye?(ge=Math.abs(He.bounds.bottom-ne.bounds.y),ge=(1+ge)*se):he<ge?(ge=Math.abs(He.bounds.y-ne.bounds.bottom),ge=-(1+ge)*se):(ge=Math.max(He.height,ne.height),ge=(1+ge)*se-ge/2)):(se=-(ne.charge*He.charge)/(rt*rt),b=(ge-he)/rt*se,ge=(Ye-ye)/rt*se),ne.forceX+=b,ne.forceY+=ge,He.forceX-=b,He.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,Ae=te.focus,he=ye.x+Ae.x,ye=ye.y+Ae.y,Ae=zS(x,te),1>Ae?(Ae=a.randomNumberGenerator,Ae===null&&(a.randomNumberGenerator=Ae=new E0),se=Ae.random(),Ae=Ae.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))*Ae):(se=se.stiffness*(Ae-se.length),b=(he-b)/Ae*se,ge=(ye-ne)/Ae*se),x.forceX+=b,x.forceY+=ge,te.forceX-=b,te.forceY-=ge;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}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},Tt.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"&&$t('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)}qt(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}qt(Hg,Ua),Tt.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}qt(Gg,kl),Tt.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 At,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}qt(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:$t("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 Ae=se.fromNode;he=se.toNode;for(var He=se.fromPort;He!==null&&!He.Ed();)He=He.panel;for(se=se.toPort;se!==null&&!se.Ed();)se=se.panel;if(b.rev){ge=Ae;var Ye=He;Ae=he,He=se,he=ge,se=Ye}var rt=E.focus;ge=te.focus;var ht=b.rev?te.bounds:E.bounds;Ye=At.alloc(),ye!==Ae?ht.w()&&Ae.isVisible()?Ae.actualBounds.w()?(Th(Ae,He,Bi,Ye),Ye.x+=Ae.actualBounds.x-ht.x,Ye.y+=Ae.actualBounds.y-ht.y):(Th(Ae,He,Bi,Ye),Ye.w()||Ye.assign(rt)):Ye.assign(rt):ht.w()?(Th(Ae,He,Bi,Ye),Ye.w()||Ye.assign(rt)):Ye.assign(rt),Ae=b.rev?E.bounds:te.bounds,ye=At.alloc(),ne!==he?Ae.w()&&he.isVisible()?he.actualBounds.w()?(Th(he,se,Bi,ye),ye.x+=he.actualBounds.x-Ae.x,ye.y+=he.actualBounds.y-Ae.y):(Th(he,se,Bi,ye),ye.w()||ye.assign(ge)):ye.assign(ge):Ae.w()?(Th(he,se,Bi,ye),ye.w()||ye.assign(ge)):ye.assign(ge),this.K===90||this.K===270?(ne=Math.round((Ye.x-rt.x)/this.kc),he=Ye.x,se=Math.round((ye.x-ge.x)/this.kc),ge=ye.x):(ne=Math.round((Ye.y-rt.y)/this.kc),he=Ye.y,se=Math.round((ye.y-ge.y)/this.kc),ge=ye.y),At.free(Ye),At.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(Ye=E.layer,ye=te.layer,Ae=0,ht=b.link,ht!==null){var Ft=ht.fromPort,Nt=ht.toPort;if(Ft!==null&&Nt!==null){var Ht=ht.fromNode;if(He=ht.toNode,Ht!==null&&He!==null){var Wt=k0(this,!0),Vt=k0(this,!1),Jt=this.setsPortSpots?Wt:ht.computeSpot(!0,Ft);rt=this.setsPortSpots?Vt:ht.computeSpot(!1,Nt);var dn=ht.isOrthogonal;Jt.$c()&&Jt.Hf(Vt)&&rt.$c()&&rt.Hf(Wt)?Ae=0:(Wt=ht.getLinkPoint(Ht,Ft,Jt,!0,dn,He,Nt,At.alloc()),Vt=ht.getLinkDirection(Ht,Ft,Wt,Jt,!0,dn,He,Nt),At.free(Wt),Jt.ys()||Vt!==JS(this,b,!0)?this.setsPortSpots&&Ht!==null&&Ht.ports.count===1&&b.rev&&(Ae+=1):Ae+=1,Jt=ht.getLinkPoint(He,Nt,rt,!1,dn,Ht,Ft,At.alloc()),ht=ht.getLinkDirection(He,Nt,Jt,rt,!1,dn,Ht,Ft),At.free(Jt),rt.ys()||ht!==JS(this,b,!1)?this.setsPortSpots&&He!==null&&He.ports.count===1&&b.rev&&(Ae+=2):Ae+=2)}}}if(He=Ae,Ae=He===1||He===3,(He=He===2||He===3)&&(rt=a.createVertex(),rt.node=null,rt.Dj=1,rt.layer=Ye,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),ht=1,Ae&&ht--,Ye-ye>ht&&0<Ye){for(b.valid=!1,rt=a.createVertex(),rt.node=null,rt.Dj=2,rt.layer=Ye-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=He?0:ne,E.portToColOffset=0,E.portFromPos=He?0:he,E.portToPos=0,E=rt,Ye--;Ye-ye>ht&&0<Ye;)rt=a.createVertex(),rt.node=null,rt.Dj=3,rt.layer=Ye-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,Ye--;E=a.Zj(rt,te,b.link),E.valid=!Ae,Ae&&(rt.near=te),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=se,E.portFromPos=0,E.portToPos=ge}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=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 Ae=b[ye];Ae.near===ge&&Ae.Dj===ge.Dj||se++}else for(ye=ne-1;ye>he;ye--)Ae=b[ye],Ae.near===ge&&Ae.Dj===ge.Dj||se++;var He;if(0<=x)for(he=b[ne].sourceEdgesArrayAccess,ge=0;ge<he.length;ge++){var Ye=he[ge];if(Ye.valid&&Ye.fromVertex.layer!==y)for(Ae=Ye.fromVertex.index,ye=Ye.portToPos,Ye=Ye.portFromPos,He=ge+1;He<he.length;He++){var rt=he[He];if(rt.valid&&rt.fromVertex.layer!==y){var ht=rt.fromVertex.index,Ft=rt.portToPos;rt=rt.portFromPos,ye<Ft&&(Ae>ht||Ae===ht&&Ye>rt)&&se++,Ft<ye&&(ht>Ae||ht===Ae&&rt>Ye)&&se++}}}if(0>=x){for(he=b[ne].destinationEdgesArrayAccess,ge=0;ge<he.length;ge++)if(Ye=he[ge],Ye.valid&&Ye.toVertex.layer!==y)for(Ae=Ye.toVertex.index,ye=Ye.portToPos,Ye=Ye.portFromPos,He=ge+1;He<he.length;He++)rt=he[He],rt.valid&&rt.toVertex.layer!==y&&(ht=rt.toVertex.index,Ft=rt.portToPos,rt=rt.portFromPos,Ye<rt&&(Ae>ht||Ae===ht&&ye>Ft)&&se++,rt<Ye&&(ht>Ae||ht===Ae&&Ft>ye)&&se++)}for(te[ne*E+ne]=se,he=ne+1;he<E;he++){var Nt=0,Ht=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var Wt=b[he].sourceEdgesArrayAccess;for(ge=0;ge<se.length;ge++)if(Ye=se[ge],Ye.valid&&Ye.fromVertex.layer!==y)for(Ae=Ye.fromVertex.index,Ye=Ye.portFromPos,He=0;He<Wt.length;He++)rt=Wt[He],rt.valid&&rt.fromVertex.layer!==y&&(ht=rt.fromVertex.index,rt=rt.portFromPos,(Ae<ht||Ae===ht&&Ye<rt)&&Ht++,(ht<Ae||ht===Ae&&rt<Ye)&&Nt++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,Wt=b[he].destinationEdgesArrayAccess,ge=0;ge<se.length;ge++)if(Ye=se[ge],Ye.valid&&Ye.toVertex.layer!==y)for(Ae=Ye.toVertex.index,ye=Ye.portToPos,He=0;He<Wt.length;He++)rt=Wt[He],rt.valid&&rt.toVertex.layer!==y&&(ht=rt.toVertex.index,Ft=rt.portToPos,(Ae<ht||Ae===ht&&ye<Ft)&&Ht++,(ht<Ae||ht===Ae&&Ft<ye)&&Nt++)}te[ne*E+he]=Nt,te[he*E+ne]=Ht}}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 Ae=ge[ye];if(Ae.valid&&Ae.toVertex.layer!==E){var He=Ae.fromVertex.column+Ae.portFromColOffset,Ye=Ae.toVertex.column+Ae.portToColOffset;se+=(Math.abs(He-Ye)+1)*gy(Ae)}}}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,Ae=0,He=se.near;if(He!==null&&He.layer===se.layer&&(ye+=He.column-1,Ae++),he!==null)for(He=0;He<he.length;He++){se=he[He];var Ye=se.fromVertex;se.valid&&!se.rev&&Ye.layer!==y&&(ye+=Ye.column,Ae++)}if(ge!==null)for(he=0;he<ge.length;he++)se=ge[he],He=se.toVertex,se.valid&&!se.rev&&He.layer!==y&&(ye+=He.column,Ae++);te[ne]=Ae===0?-1:ye/Ae}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,Ae=[],He=se.near;if(He!==null&&He.layer===se.layer&&(Ae[ye]=He.column-1,ye++),se=void 0,he!==null)for(He=0;He<he.length;He++){se=he[He];var Ye=se.fromVertex;se.valid&&!se.rev&&Ye.layer!==y&&(Ae[ye]=Ye.column+se.portFromColOffset,ye++)}if(ge!==null)for(he=0;he<ge.length;he++)se=ge[he],He=se.toVertex,se.valid&&!se.rev&&He.layer!==y&&(Ae[ye]=He.column+se.portToColOffset,ye++);ye===0?te[ne]=-1:(Ae.sort(function(rt,ht){return rt-ht}),ge=ye>>1,te[ne]=ye&1?Ae[ge]:Ae[ge-1]+Ae[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,Ae=!1,He=ge.sourceEdgesArrayAccess;E=He.length;for(var Ye=0;Ye<E;Ye++){var rt=He[Ye],ht=rt.fromVertex;ye+=1,ht.component!==1&&(te+=1,ht=ht.layer-ge.layer,rt=a.linkMinLength(rt),b=Math.min(b,ht-rt))}for(He=ge.destinationEdgesArrayAccess,E=He.length,Ye=0;Ye<E;Ye++)rt=He[Ye].toVertex,--ye,rt.component!==1?--te:Ae=!0;(he===null||ye<se)&&!Ae&&(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,He=ne.sourceEdgesArrayAccess,Ae=He.length,Ye=0;Ye<Ae;Ye++)rt=He[Ye].fromVertex,ge+=1,rt.component!==1?b+=1:ye=!0;for(He=ne.destinationEdgesArrayAccess,Ae=He.length,Ye=0;Ye<Ae;Ye++)rt=He[Ye],ht=rt.toVertex,--ge,ht.component!==1&&(--b,ht=ne.layer-ht.layer,rt=a.linkMinLength(rt),E=Math.min(E,ht-rt));(se===null||ge>te)&&!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],Ae=x[b[te+1].index*E+b[te].index],He=0,Ye=0,rt=b[te].column,ht=b[te+1].column,Ft=a.nodeMinColumnSpace(b[te],!0),Nt=a.nodeMinColumnSpace(b[te],!1),Ht=a.nodeMinColumnSpace(b[te+1],!0),Wt=a.nodeMinColumnSpace(b[te+1],!1);Ft=rt-Ft+Ht,Nt=ht-Nt+Wt;var Vt=b[te].sourceEdges.iterator;for(Vt.reset();Vt.next();)if(Ht=Vt.value,Wt=Ht.fromVertex,Ht.valid&&Wt.layer===y){for(Ht=0;b[Ht]!==Wt;)Ht++;Ht<te&&(He+=2*(te-Ht),Ye+=2*(te+1-Ht)),Ht===te+1&&(He+=1),Ht>te+1&&(He+=4*(Ht-te),Ye+=4*(Ht-(te+1)))}for(Vt=b[te].destinationEdges.iterator,Vt.reset();Vt.next();)if(Ht=Vt.value,Wt=Ht.toVertex,Ht.valid&&Wt.layer===y){for(Ht=0;b[Ht]!==Wt;)Ht++;Ht===te+1&&(Ye+=1)}for(Vt=b[te+1].sourceEdges.iterator,Vt.reset();Vt.next();)if(Ht=Vt.value,Wt=Ht.fromVertex,Ht.valid&&Wt.layer===y){for(Ht=0;b[Ht]!==Wt;)Ht++;Ht<te&&(He+=2*(te+1-Ht),Ye+=2*(te-Ht)),Ht===te&&(Ye+=1),Ht>te+1&&(He+=4*(Ht-(te+1)),Ye+=4*(Ht-te))}for(Vt=b[te+1].destinationEdges.iterator,Vt.reset();Vt.next();)if(Ht=Vt.value,Wt=Ht.toVertex,Ht.valid&&Wt.layer===y){for(Ht=0;b[Ht]!==Wt;)Ht++;Ht===te&&(He+=1)}Ht=Wt=0,Vt=ne[b[te].index];var Jt=se[b[te].index],dn=ne[b[te+1].index],qn=se[b[te+1].index];Vt!==-1&&(Wt+=Math.abs(Vt-rt),Ht+=Math.abs(Vt-Nt)),Jt!==-1&&(Wt+=Math.abs(Jt-rt),Ht+=Math.abs(Jt-Nt)),dn!==-1&&(Wt+=Math.abs(dn-ht),Ht+=Math.abs(dn-Ft)),qn!==-1&&(Wt+=Math.abs(qn-ht),Ht+=Math.abs(qn-Ft)),(Ye<He-.5||Ye===He&&Ae<ye-.5||Ye===He&&Ae===ye&&Ht<Wt-.5)&&(ge=he=!0,b[te].column=Nt,b[te+1].column=Ft,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,Ae=a.nodeMinColumnSpace(E[b],!0),He=a.nodeMinColumnSpace(E[b],!1),Ye=0;0>b-1||ye-E[b-1].column-1>Ae+a.nodeMinColumnSpace(E[b-1],!1)?Ye=ye-1:Ye=ye,Ae=b+1>=te||E[b+1].column-ye-1>He+a.nodeMinColumnSpace(E[b+1],!0)?ye+1:ye;var rt=He=0,ht=0;if(0>=x)for(var Ft=E[b].sourceEdges.iterator;Ft.next();){var Nt=Ft.value,Ht=Nt.fromVertex;if(Nt.valid&&Ht.layer!==y){var Wt=gy(Nt),Vt=Nt.portFromColOffset;Nt=Nt.portToColOffset,Ht=Ht.column,He+=(Math.abs(ye+Nt-(Ht+Vt))+1)*Wt,rt+=(Math.abs(Ye+Nt-(Ht+Vt))+1)*Wt,ht+=(Math.abs(Ae+Nt-(Ht+Vt))+1)*Wt}}if(0<=x)for(Ft=E[b].destinationEdges.iterator;Ft.next();)Nt=Ft.value,Ht=Nt.toVertex,Nt.valid&&Ht.layer!==y&&(Wt=gy(Nt),Vt=Nt.portFromColOffset,Nt=Nt.portToColOffset,Ht=Ht.column,He+=(Math.abs(ye+Vt-(Ht+Nt))+1)*Wt,rt+=(Math.abs(Ye+Vt-(Ht+Nt))+1)*Wt,ht+=(Math.abs(Ae+Vt-(Ht+Nt))+1)*Wt);Nt=Vt=Wt=0,Ft=ne[E[b].index],Ht=se[E[b].index],Ft!==-1&&(Wt+=Math.abs(Ft-ye),Vt+=Math.abs(Ft-Ye),Nt+=Math.abs(Ft-Ae)),Ht!==-1&&(Wt+=Math.abs(Ht-ye),Vt+=Math.abs(Ht-Ye),Nt+=Math.abs(Ht-Ae)),rt<He||rt===He&&Vt<Wt?(ge=he=!0,E[b].column=Ye):(ht<He||ht===He&&Nt<Wt)&&(ge=he=!0,E[b].column=Ae)}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 Ae=b[x+1].column;Ae-se===ge+a.nodeMinColumnSpace(b[x+1],!0)?ye=se-1:ye=se}else x===E-1?(Ae=b[x-1].column,ye=se-Ae===he+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(Ae=b[x-1].column,he=Ae+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Ae=b[x+1].column,ge=Ae-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,ye=(he+ge)/2|0);else x===0&&x===E-1?ye=ne[x]:x===0?(Ae=b[x+1].column,ge=Ae-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,ye=Math.min(ne[x],ge)):x===E-1?(Ae=b[x-1].column,he=Ae+a.nodeMinColumnSpace(b[x-1],!1)+he+1,ye=Math.max(ne[x],he)):(Ae=b[x-1].column,he=Ae+a.nodeMinColumnSpace(b[x-1],!1)+he+1,Ae=b[x+1].column,ge=Ae-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=Sn(),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 wn,$x(y,x);var te=null,ne=null,se=null,he=null,ge=(a.ve&1)!==0,ye=(a.ve&2)!==0,Ae=(a.ve&4)!==0,He=(a.ve&8)!==0;for(ge&&(a.verticalAlignment(y,x,!0),te=L0(a,y,!0,!1)),y.reverse(),Ae&&(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();He&&(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)),An(y),a.u(te,ne,se,he),a.network.vertexes.each(function(Ye){var rt=Sn();ge&&rt.push(te.get(Ye)),ye&&rt.push(ne.get(Ye)),Ae&&rt.push(se.get(Ye)),He&&rt.push(he.get(Ye)),rt.sort(function(Ft,Nt){return Ft-Nt});var ht=rt.length;ht=(rt[Math.floor((ht-1)/2)]+rt[Math.ceil((ht-1)/2)])/2,An(rt),Ye.zc=ht})}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 Ae=ye;if(he===se.length-1||Ae){for(ye=ne.length-1,Ae&&(ye=My(ge)[0].index);te<=he;){if(ge=se[te],!ge.bo){Ae=[];for(var He=xi(ge.sourceEdgesArrayAccess),Ye=He.next();!Ye.done;Ye=He.next())Ye=Ye.value,Ye.valid&&Ae.push(Ye);ge.bo=Ae}for(ge=xi(ge.bo),Ae=ge.next();!Ae.done;Ae=ge.next())Ae=Ae.value,He=Ae.fromVertex.index,(He<E||He>ye)&&y.add(Ae);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(Ae,He){return Ae.vi-He.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 Ae=ye.align,He=ne?ye.width:ye.height,Ye=ne?Ae.width:Ae.height;if(x){var rt=I0(ye,Ae),ht=rt.portFromPos,Ft=rt.portToPos;rt.link!==null&&(ye.node&&ye.node!==rt.link.fromNode&&(ht=ne?ye.focusX:ye.focusY),Ae.node&&Ae.node!==rt.link.toNode&&(Ft=ne?Ae.focusX:Ae.focusY))}else rt=I0(Ae,ye),ht=rt.portToPos,Ft=rt.portFromPos,rt.link!==null&&(ye.node&&ye.node!==rt.link.toNode&&(ht=ne?ye.focusX:ye.focusY),Ae.node&&Ae.node!==rt.link.fromNode&&(Ft=ne?Ae.focusX:Ae.focusY));He=b?ye.qg+(He-ht)-(Ye-Ft):ye.qg+ht-Ft,Ae.qg=He,ge=Math.min(ge,He),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&&$t("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=Sn(),E=Sn(),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)));An(b),An(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 At(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,Ae=x.toVertex;if(x.valid)y.curve===Xl&&y.pointsCount===4&&(ye.column===Ae.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===Ae.layer)y.zf();else{var He=!1,Ye=!1,rt=this.ie,ht=y.firstPickIndex+1;if(y.isOrthogonal){Ye=!0;var Ft=y.pointsCount;4<Ft&&y.points.removeRange(2,Ft-3)}else if(y.curve===Xl)He=!0,Ft=y.pointsCount,4<Ft&&y.points.removeRange(2,Ft-3),Ft===4&&(ht=2);else{Ft=y.pointsCount;var Nt=ge===aa,Ht=he===aa;2<Ft&&Nt&&Ht?y.points.removeRange(1,Ft-2):3<Ft&&Nt&&!Ht?y.points.removeRange(1,Ft-3):3<Ft&&!Nt&&Ht?y.points.removeRange(2,Ft-2):4<Ft&&!Nt&&!Ht&&y.points.removeRange(2,Ft-3)}if(x.rev){for(;Ae!==null&&ye!==Ae;){var Wt=Ft=null;for(Nt=Ae.sourceEdges.iterator;Nt.next()&&(Ht=Nt.value,Ht.link!==x.link||(Ft=Ht.fromVertex,Wt=Ht.toVertex,Ft.node!==null)););if(Ft===null)break;if(Ft!==ye){Nt=y.i(ht-1).x,Ht=y.i(ht-1).y;var Vt=Ft.centerX,Jt=Ft.centerY;if(Ye)this.K===180||this.K===0?ht===y.firstPickIndex+1?(y.m(ht++,Nt,Ht),y.m(ht++,Nt,Jt)):(Wt!==null?Wt.centerY:Ht)!==Jt&&(Wt=this.Ta[Ft.layer-1]+this.Rf.x,y.m(ht++,Wt,Ht),y.m(ht++,Wt,Jt)):ht===y.firstPickIndex+1?(y.m(ht++,Nt,Ht),y.m(ht++,Vt,Ht)):(Wt!==null?Wt.centerX:Nt)!==Vt&&(Wt=this.Ta[Ft.layer-1]+this.Rf.y,y.m(ht++,Nt,Wt),y.m(ht++,Vt,Wt));else if(ht===y.firstPickIndex+1){Wt=Math.max(10,this.he[Ae.layer]);var dn=Math.max(10,this.Ld[Ae.layer]);if(He)this.K===180?Vt<=Ae.bounds.x?(Ae=Ae.bounds.x,y.m(ht++,Ae-Wt,Jt),y.m(ht++,Ae,Jt),y.m(ht++,Ae+dn,Jt)):(y.m(ht++,Vt-Wt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt+dn,Jt)):this.K===90?Jt>=Ae.bounds.bottom?(Ae=Ae.bounds.y+Ae.bounds.height,y.m(ht++,Vt,Ae+dn),y.m(ht++,Vt,Ae),y.m(ht++,Vt,Ae-Wt)):(y.m(ht++,Vt,Jt+dn),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt-Wt)):this.K===270?Jt<=Ae.bounds.y?(Ae=Ae.bounds.y,y.m(ht++,Vt,Ae-Wt),y.m(ht++,Vt,Ae),y.m(ht++,Vt,Ae+dn)):(y.m(ht++,Vt,Jt-Wt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt+dn)):this.K===0&&(Vt>=Ae.bounds.right?(Ae=Ae.bounds.x+Ae.bounds.width,y.m(ht++,Ae+dn,Jt),y.m(ht++,Ae,Jt),y.m(ht++,Ae-Wt,Jt)):(y.m(ht++,Vt+dn,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt-Wt,Jt)));else{y.m(ht++,Nt,Ht);var qn=0;this.K===180||this.K===0?((this.K===180?Vt>=Ae.bounds.right:Vt<=Ae.bounds.x)&&(qn=(this.K===0?-Wt:dn)/2),y.m(ht++,Nt+qn,Jt)):((this.K===270?Jt>=Ae.bounds.bottom:Jt<=Ae.bounds.y)&&(qn=(this.K===90?-Wt:dn)/2),y.m(ht++,Vt,Ht+qn)),y.m(ht++,Vt,Jt)}}else Wt=Math.max(10,this.he[Ft.layer]),dn=Math.max(10,this.Ld[Ft.layer]),He?this.K===180?(y.m(ht++,Vt-Wt-rt,Jt),y.m(ht++,Math.min(Vt-Wt+rt/2,Vt),Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Math.max(Vt+dn-rt/2,Vt),Jt),y.m(ht++,Vt+dn+rt,Jt)):this.K===90?(y.m(ht++,Vt,Jt+dn+rt),y.m(ht++,Vt,Math.max(Jt+dn-rt/2,Jt)),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Math.min(Jt-Wt+rt/2,Jt)),y.m(ht++,Vt,Jt-Wt-rt)):this.K===270?(y.m(ht++,Vt,Jt-Wt-rt),y.m(ht++,Vt,Math.min(Jt-Wt+rt/2,Jt)),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Math.max(Jt+dn-rt/2,Jt)),y.m(ht++,Vt,Jt+dn+rt)):(y.m(ht++,Vt+dn+rt,Jt),y.m(ht++,Math.max(Vt+dn-rt/2,Vt),Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Math.min(Vt-Wt+rt/2,Vt),Jt),y.m(ht++,Vt-Wt-rt,Jt)):y.m(ht++,Vt,Jt)}Ae=Ft}(se===null||ge!==aa||Ye)&&(Nt=y.i(ht-1).x,Ht=y.i(ht-1).y,Vt=y.i(ht).x,Jt=y.i(ht).y,Ye?(rt=this.Ld[ye.layer],this.K===180||this.K===0?(Ye=Ht,Ye>=ye.bounds.y&&Ye<=ye.bounds.bottom&&(this.K===180?Vt>=ye.bounds.x:Vt<=ye.bounds.right)&&(Ae=ye.centerX+(this.K===180?-rt:rt),Ye<ye.bounds.y+ye.bounds.height/2?Ye=ye.bounds.y-this.kc/2:Ye=ye.bounds.bottom+this.kc/2,y.m(ht++,Ae,Ht),y.m(ht++,Ae,Ye)),y.m(ht++,Vt,Ye)):(Ye=Nt,Ye>=ye.bounds.x&&Ye<=ye.bounds.right&&(this.K===270?Jt>=ye.bounds.y:Jt<=ye.bounds.bottom)&&(Ae=ye.centerY+(this.K===270?-rt:rt),Ye<ye.bounds.x+ye.bounds.width/2?Ye=ye.bounds.x-this.kc/2:Ye=ye.bounds.right+this.kc/2,y.m(ht++,Nt,Ae),y.m(ht++,Ye,Ae)),y.m(ht++,Ye,Jt)),y.m(ht++,Vt,Jt)):He?(Wt=Math.max(10,this.he[ye.layer]),dn=Math.max(10,this.Ld[ye.layer]),this.K===180&&Vt>=ye.bounds.x?(Ae=ye.bounds.x+ye.bounds.width,y.L(ht-2,Ae,Ht),y.L(ht-1,Ae+dn,Ht)):this.K===90&&Jt<=ye.bounds.bottom?(Ae=ye.bounds.y,y.L(ht-2,Nt,Ae),y.L(ht-1,Nt,Ae-Wt)):this.K===270&&Jt>=ye.bounds.y?(Ae=ye.bounds.y+ye.bounds.height,y.L(ht-2,Nt,Ae),y.L(ht-1,Nt,Ae+dn)):this.K===0&&Vt<=ye.bounds.right&&(Ae=ye.bounds.x,y.L(ht-2,Ae,Ht),y.L(ht-1,Ae-Wt,Ht))):(Wt=Math.max(10,this.he[ye.layer]),dn=Math.max(10,this.Ld[ye.layer]),Ye=0,this.K===180||this.K===0?((this.K===180?Vt<=ye.bounds.x:Vt>=ye.bounds.right)&&(Ye=(this.K===0?dn:-Wt)/2),y.m(ht++,Vt+Ye,Ht)):((this.K===270?Jt<=ye.bounds.y:Jt>=ye.bounds.bottom)&&(Ye=(this.K===90?dn:-Wt)/2),y.m(ht++,Nt,Jt+Ye)),y.m(ht++,Vt,Jt)))}else{for(;ye!==null&&ye!==Ae;){for(Wt=Ft=null,ye=ye.destinationEdges.iterator;ye.next()&&(Nt=ye.value,Nt.link!==x.link||(Ft=Nt.toVertex,Wt=Nt.fromVertex,Wt.node!==null&&(Wt=null),Ft.node!==null)););if(Ft===null)break;Ft!==Ae&&(Nt=y.i(ht-1).x,Ht=y.i(ht-1).y,Vt=Ft.centerX,Jt=Ft.centerY,Ye?this.K===180||this.K===0?(Wt!==null?Wt.centerY:Ht)!==Jt&&(Wt=this.Ta[Ft.layer]+this.Rf.x,ht===y.firstPickIndex+1&&(Wt=this.K===0?Math.max(Wt,Nt):Math.min(Wt,Nt)),y.m(ht++,Wt,Ht),y.m(ht++,Wt,Jt)):(Wt!==null?Wt.centerX:Nt)!==Vt&&(Wt=this.Ta[Ft.layer]+this.Rf.y,ht===y.firstPickIndex+1&&(Wt=this.K===90?Math.max(Wt,Ht):Math.min(Wt,Ht)),y.m(ht++,Nt,Wt),y.m(ht++,Vt,Wt)):(Wt=Math.max(10,this.he[Ft.layer]),dn=Math.max(10,this.Ld[Ft.layer]),He?this.K===180?(y.m(ht++,Vt+dn+rt,Jt),y.m(ht++,Math.max(Vt+dn-rt/2,Vt),Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Math.min(Vt-Wt+rt/2,Vt),Jt),y.m(ht++,Vt-Wt-rt,Jt)):this.K===90?(y.m(ht++,Vt,Jt-Wt-rt),y.m(ht++,Vt,Math.min(Jt-Wt+rt/2,Jt)),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Math.max(Jt+dn-rt/2,Jt)),y.m(ht++,Vt,Jt+dn+rt)):this.K===270?(y.m(ht++,Vt,Jt+dn+rt),y.m(ht++,Vt,Math.max(Jt+dn-rt/2,Jt)),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Math.min(Jt-Wt+rt/2,Jt)),y.m(ht++,Vt,Jt-Wt-rt)):(y.m(ht++,Vt-Wt-rt,Jt),y.m(ht++,Math.min(Vt-Wt+rt/2,Vt),Jt),y.m(ht++,Vt,Jt),y.m(ht++,Vt,Jt),y.m(ht++,Math.max(Vt+dn-rt/2,Vt),Jt),y.m(ht++,Vt+dn+rt,Jt)):this.K===180?(y.m(ht++,Vt+dn,Jt),y.m(ht++,Vt-Wt,Jt)):this.K===90?(y.m(ht++,Vt,Jt-Wt),y.m(ht++,Vt,Jt+dn)):this.K===270?(y.m(ht++,Vt,Jt+dn),y.m(ht++,Vt,Jt-Wt)):(y.m(ht++,Vt-Wt,Jt),y.m(ht++,Vt+dn,Jt)))),ye=Ft}Ye&&(Nt=y.i(ht-1).x,Ht=y.i(ht-1).y,Vt=y.i(ht).x,Jt=y.i(ht).y,this.K===180||this.K===0?Ht!==Jt&&(Wt=this.K===0?Math.min(Math.max((Vt+Nt)/2,this.Ta[Ae.layer]+this.Rf.x),Vt):Math.max(Math.min((Vt+Nt)/2,this.Ta[Ae.layer]+this.Rf.x),Vt),y.m(ht++,Wt,Ht),y.m(ht++,Wt,Jt)):Nt!==Vt&&(Wt=this.K===90?Math.min(Math.max((Jt+Ht)/2,this.Ta[Ae.layer]+this.Rf.y),Jt):Math.max(Math.min((Jt+Ht)/2,this.Ta[Ae.layer]+this.Rf.y),Jt),y.m(ht++,Nt,Wt),y.m(ht++,Vt,Wt)))}b!==null&&He&&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 Ae=1;for(se=x[te].first,he=te;he<E;he++)ge=x[he],ge.first!==se&&(Ae++,se=ge.first);for(he=!0,ge=Ae,ye<Ae?(he=!1,ge=ye,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,ye=0,Ae=te;Ae<E;Ae++){var He=x[Ae];(he?He.first:He.jc)!==se&&(ye++,se=he?He.first:He.jc);var Ye=He.link;te=Ye.i(He.index),ne=Ye.i(He.index+1);var rt=this.linkSpacing*(ye-(ge-1)/2);y++,Ye.uh(),Ye.L(He.index,te.x,te.y+rt),Ye.L(He.index+1,ne.x,ne.y+rt),Ye.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),Ae=1,se=x[te].first,he=te;he<E;he++)ge=x[he],ge.first!==se&&(Ae++,se=ge.first);for(he=!0,ge=Ae,ye<Ae?(he=!1,ge=ye,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,ye=0,Ae=te;Ae<E;Ae++)He=x[Ae],(he?He.first:He.jc)!==se&&(ye++,se=he?He.first:He.jc),Ye=He.link,te=Ye.i(He.index),ne=Ye.i(He.index+1),rt=this.linkSpacing*(ye-(ge-1)/2),y++,Ye.uh(),Ye.L(He.index,te.x+rt,te.y),Ye.L(He.index+1,ne.x+rt,ne.y),Ye.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)&&$t("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}Tt.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()):$t("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)}qt(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}qt(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;$t("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},Tt.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}qt($g,kl),Tt.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 wn,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)}qt(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:$t("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 Vn){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 hn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof ni?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 hn&&(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 wn,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 wn,this.isValidLayout=!0};function Yx(a){var y=new wn;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:$t("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:$t("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:$t("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:$t("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,Ae=At.alloc(),He=0;He<ye;He++){var Ye=ge[He],rt=Ye.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(Ae.h(a.bounds.x-a.commentMargin-rt.width,a.bounds.y+he),Ye.move(Ae),Ye=Ye.Sd();Ye.next();){var ht=Ye.value;ht.fromSpot=Ca,ht.toSpot=Ka}else for(Ae.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+he),Ye.move(Ae),Ye=Ye.Sd();Ye.next();)ht=Ye.value,ht.fromSpot=Ka,ht.toSpot=Ca;else if(0<=a.commentMargin)for(Ae.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+he),Ye.move(Ae),Ye=Ye.Sd();Ye.next();)ht=Ye.value,ht.fromSpot=Ka,ht.toSpot=Ca;else for(Ae.h(a.bounds.x+a.commentMargin-rt.width,a.bounds.y+he),Ye.move(Ae),Ye=Ye.Sd();Ye.next();)ht=Ye.value,ht.fromSpot=Ca,ht.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(Ae.h(a.bounds.x+he,a.bounds.y-a.commentMargin-rt.height),Ye.move(Ae),Ye=Ye.Sd();Ye.next();)ht=Ye.value,ht.fromSpot=ca,ht.toSpot=za;else for(Ae.h(a.bounds.x+he,a.bounds.y+2*a.focus.y-a.commentMargin),Ye.move(Ae),Ye=Ye.Sd();Ye.next();)ht=Ye.value,ht.fromSpot=za,ht.toSpot=ca;else if(0<=a.commentMargin)for(Ae.h(a.bounds.x+he,a.bounds.y+2*a.focus.y+a.commentMargin),Ye.move(Ae),Ye=Ye.Sd();Ye.next();)ht=Ye.value,ht.fromSpot=za,ht.toSpot=ca;else for(Ae.h(a.bounds.x+he,a.bounds.y+a.commentMargin-rt.height),Ye.move(Ae),Ye=Ye.Sd();Ye.next();)ht=Ye.value,ht.fromSpot=ca,ht.toSpot=za;he=0<=a.commentSpacing?he+(rt.width+a.commentSpacing):he+(a.commentSpacing-rt.width)}}if(At.free(Ae),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),Ae=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var He=a.nodeSpacing,Ye=this.computeNodeIndent(a),rt=a.rowSpacing,ht=0;(b||ge||a.hm||a.im&&a.maxGenerationCount===1)&&(ht=Math.max(0,a.rowIndent)),b=a.width;var Ft=a.height,Nt=0,Ht=0,Wt=0,Vt=null,Jt=null,dn=0,qn=0,dr=0,hr=0,$n=0,jn=0,ei=0,$r=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&&($r=Math.max($r,y?ne[Zi].Da.width:ne[Zi].Da.height));else se===1&&($r=y?ne[0].Da.width:ne[0].Da.height);if(ye){switch(he){case Ah:Ht=135>E?hx(this,a,ne,$r,Nt,Ht):dx(this,a,ne,$r,Nt,Ht),$r=Ht.x,Nt=Ht.width,Ht=Ht.height;break;case jh:for(Vt=0;Vt<se;Vt++)Jt=ne[Vt],Ae=Jt.Da,Wt=jn===0?0:rt,y?(Jt.S.h(te-Ae.width,hr+Wt),Nt=Math.max(Nt,Ae.width),Ht=Math.max(Ht,hr+Wt+Ae.height),hr+=Wt+Ae.height):(Jt.S.h(dr+Wt,te-Ae.height),Nt=Math.max(Nt,dr+Wt+Ae.width),Ht=Math.max(Ht,Ae.height),dr+=Wt+Ae.width),jn++;break;case ih:for(Vt=0;Vt<se;Vt++)Jt=ne[Vt],te=Jt.Da,Ae=jn===0?0:rt,y?(Jt.S.h(He/2+a.focus.x,hr+Ae),Nt=Math.max(Nt,te.width),Ht=Math.max(Ht,hr+Ae+te.height),hr+=Ae+te.height):(Jt.S.h(dr+Ae,He/2+a.focus.y),Nt=Math.max(Nt,dr+Ae+te.width),Ht=Math.max(Ht,te.height),dr+=Ae+te.width),jn++}Vt=yl(this,2),Jt=yl(this,2),y?(Vt[0].h(0,0),Vt[1].h(0,Ht),Jt[0].h(Nt,0)):(Vt[0].h(0,0),Vt[1].h(Nt,0),Jt[0].h(0,Ht)),Jt[1].h(Nt,Ht)}else for(Zi=0;Zi<se;Zi++){var bo=ne[Zi],Ja=bo.Da;if(y){0<Ae&&0<jn&&dr+He+Ja.width>Ae&&(dr<te&&Jd(a,he,te-dr,0,ei,Zi-1),$n++,jn=0,ei=Zi,Wt=Ht,dr=0,hr=135<E?-Ht-rt:Ht+rt),F0(this,bo,0,hr);var ts=0;if(jn===0)Vt=bo.Yo,Jt=bo.kp,dn=Ja.width,qn=Ja.height,(Vt===null||Jt===null||E!==Iu(bo))&&(Vt=yl(this,2),Jt=yl(this,2),Vt[0].h(0,0),Vt[1].h(0,qn),Jt[0].h(dn,0),Jt[1].h(dn,qn));else{var Fs=Sn();qn=fx(this,a,bo,Vt,Jt,dn,qn,Fs),ts=qn.x,Vt=Fs[0],Jt=Fs[1],dn=qn.width,qn=qn.height,An(Fs),dr<Ja.width&&0>ts&&(Of(a,-ts,0,ei,Zi-1),B0(Vt,-ts,0),B0(Jt,-ts,0),ts=0)}bo.S.h(ts,hr),Nt=Math.max(Nt,dn),Ht=Math.max(Ht,Wt+($n===0?0:rt)+Ja.height),dr=dn}else 0<Ae&&0<jn&&hr+He+Ja.height>Ae&&(hr<te&&Jd(a,he,0,te-hr,ei,Zi-1),$n++,jn=0,ei=Zi,Wt=Nt,hr=0,dr=135<E?-Nt-rt:Nt+rt),F0(this,bo,dr,0),ts=0,jn===0?(Vt=bo.Yo,Jt=bo.kp,dn=Ja.width,qn=Ja.height,(Vt===null||Jt===null||E!==Iu(bo))&&(Vt=yl(this,2),Jt=yl(this,2),Vt[0].h(0,0),Vt[1].h(dn,0),Jt[0].h(0,qn),Jt[1].h(dn,qn))):(Fs=Sn(),qn=fx(this,a,bo,Vt,Jt,dn,qn,Fs),ts=qn.x,Vt=Fs[0],Jt=Fs[1],dn=qn.width,qn=qn.height,An(Fs),hr<Ja.height&&0>ts&&(Of(a,0,-ts,ei,Zi-1),B0(Vt,0,-ts),B0(Jt,0,-ts),ts=0)),bo.S.h(dr,ts),Ht=Math.max(Ht,qn),Nt=Math.max(Nt,Wt+($n===0?0:rt)+Ja.width),hr=qn;jn++}switch(0<$n&&(y?(Ht+=Math.max(0,x),dr<Nt&&Jd(a,he,Nt-dr,0,ei,se-1),0<ht&&(ge||Of(a,ht,0,0,se-1),Nt+=ht)):(Nt+=Math.max(0,x),hr<Ht&&Jd(a,he,0,Ht-hr,ei,se-1),0<ht&&(ge||Of(a,0,ht,0,se-1),Ht+=ht))),ht=ge=0,he){case jp:y?ge+=Nt/2-a.focus.x-Ye/2:ht+=Ht/2-a.focus.y-Ye/2;break;case jf:0<$n?y?ge+=Nt/2-a.focus.x-Ye/2:ht+=Ht/2-a.focus.y-Ye/2:y?($r=ne[0].S.x+ne[0].la.x,ge+=$r+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-$r)/2-a.focus.x-Ye/2):($r=ne[0].S.y+ne[0].la.y,ht+=$r+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-$r)/2-a.focus.y-Ye/2);break;case Dc:y?(ge-=Ye,Nt+=Ye):(ht-=Ye,Ht+=Ye);break;case Fc:y?(ge+=Nt-a.width+Ye,Nt+=Ye):(ht+=Ht-a.height+Ye,Ht+=Ye);break;case Ah:y?1<se?ge+=$r+He/2-a.focus.x:ge+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?ht+=$r+He/2-a.focus.y:ht+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case jh:y?ge+=Nt+He/2-a.focus.x:ht+=Ht+He/2-a.focus.y;break;case ih:break;default:Ht=this.customAlignment(a,ge,ht,Nt,Ht),ge=Ht[0],ht=Ht[1],Nt=Ht[2],Ht=Ht[3]}for(Ye=0;Ye<se;Ye++)$r=ne[Ye],y?$r.S.h($r.S.x+$r.la.x-ge,$r.S.y+(135<E?(ye?-Ht:-$r.Da.height)+$r.la.y-x:Ft+x+$r.la.y)):$r.S.h($r.S.x+(135<E?(ye?-Nt:-$r.Da.width)+$r.la.x-x:b+x+$r.la.x),$r.S.y+$r.la.y-ht);if(se=ne=0,ye?y?(Nt=Ny(a,Nt,ge),0>ge&&(ge=0),135<E&&(ht+=Ht+x),Ht+=Ft+x,he===ih&&(ne+=He/2+a.focus.x),se+=Ft+x):(135<E&&(ge+=Nt+x),Nt+=b+x,Ht=Oy(a,Ht,ht),0>ht&&(ht=0),he===ih&&(se+=He/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>Nt&&(Nt=Ay(he,b-Nt,0),ne=Nt.x,se=Nt.y,Nt=b,ge=0):Nt=Ny(a,Nt,ge),0>ge&&(ne-=ge,ge=0),135<E&&(ht+=Ht+x),Ht=Math.max(Math.max(Ht,Ft),Ht+Ft+x),se+=Ft+x):(135<E&&(ge+=Nt+x),Nt=Math.max(Math.max(Nt,b),Nt+b+x),a.comments===null?Ft>Ht&&(Ht=Ay(he,0,Ft-Ht),ne=Ht.x,se=Ht.y,Ht=Ft,ht=0):Ht=Oy(a,Ht,ht),0>ht&&(se-=ht,ht=0),ne+=b+x),0<$n)E=yl(this,4),$n=yl(this,4),y?(E[2].h(0,Ft+x),E[3].h(E[2].x,Ht),$n[2].h(Nt,E[2].y),$n[3].h($n[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Nt,E[2].y),$n[2].h(E[2].x,Ht),$n[3].h(E[3].x,$n[2].y));else{for(E=yl(this,Vt.length+2),$n=yl(this,Jt.length+2),he=0;he<Vt.length;he++)ye=Vt[he],E[he+2].h(ye.x+ne,ye.y+se);for(he=0;he<Jt.length;he++)ye=Jt[he],$n[he+2].h(ye.x+ne,ye.y+se)}y?(E[0].h(ge,0),E[1].h(E[0].x,Ft),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),$n[0].h(ge+b,0),$n[1].h($n[0].x,Ft),$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,ht),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),$n[0].h(0,ht+Ft),$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,Vt),Ju(this,Jt),a.Yo=E,a.kp=$n,a.la.h(ge,ht),a.Da.h(Nt,Ht)}break;default:$t("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,Ae=ge===Fc;se=dd(ge);var He=Math.max(0,y.breadthLimit);he=a.computeLayerSpacing(y);var Ye=y.nodeSpacing,rt=a.computeNodeIndent(y),ht=ye||Ae?0:rt/2,Ft=y.rowSpacing,Nt=0;(ye||Ae||y.hm||y.im&&y.maxGenerationCount===1)&&(Nt=Math.max(0,y.rowIndent)),ye=y.width;var Ht=y.height,Wt=0,Vt=0,Jt=0,dn=0,qn=0,dr=0,hr=0,$n=0,jn=0,ei=0;if(se&&!Kg(ge)&&135<b&&E.reverse(),Kg(ge))if(1<ne)for(var $r=0;$r<ne;$r++){var Zi=E[$r],bo=Zi.Da;$r%2===0&&$r!==ne-1?jn=Math.max(jn,(x?bo.width:bo.height)+a.computeBusNodeSpacing(Zi)-Ye):$r%2!==0&&(ei=Math.max(ei,(x?bo.width:bo.height)+a.computeBusNodeSpacing(Zi)-Ye))}else ne===1&&(jn=x?E[0].Da.width:E[0].Da.height);if(se)switch(ge){case Ah:case Bc:Vt=135>b?hx(a,y,E,jn,Wt,Vt):dx(a,y,E,jn,Wt,Vt),jn=Vt.x,Wt=Vt.width,Vt=Vt.height;break;case jh:for(He=0;He<ne;He++)ht=E[He],Jt=ht.Da,ei=hr===0?0:Ft,x?(ht.S.h(te-Jt.width,qn+ei),Wt=Math.max(Wt,Jt.width),Vt=Math.max(Vt,qn+ei+Jt.height),qn+=ei+Jt.height):(ht.S.h(dn+ei,te-Jt.height),Wt=Math.max(Wt,dn+ei+Jt.width),Vt=Math.max(Vt,Jt.height),dn+=ei+Jt.width),hr++;break;case ih:for(te=0;te<ne;te++)He=E[te],ht=He.Da,Jt=hr===0?0:Ft,x?(He.S.h(Ye/2+y.focus.x,qn+Jt),Wt=Math.max(Wt,ht.width),Vt=Math.max(Vt,qn+Jt+ht.height),qn+=Jt+ht.height):(He.S.h(dn+Jt,Ye/2+y.focus.y),Wt=Math.max(Wt,dn+Jt+ht.width),Vt=Math.max(Vt,ht.height),dn+=Jt+ht.width),hr++}else for(ei=0;ei<ne;ei++)$r=E[ei],Zi=$r.Da,x?(0<He&&0<hr&&dn+Ye+Zi.width>He&&(dn<te&&Jd(y,ge,te-dn,0,$n,ei-1),dr++,hr=0,$n=ei,Jt=Vt,dn=0,qn=135<b?-Vt-Ft:Vt+Ft),bo=hr===0?ht:Ye,F0(a,$r,0,qn),$r.S.h(dn+bo,qn),Wt=Math.max(Wt,dn+bo+Zi.width),Vt=Math.max(Vt,Jt+(dr===0?0:Ft)+Zi.height),dn+=bo+Zi.width):(0<He&&0<hr&&qn+Ye+Zi.height>He&&(qn<te&&Jd(y,ge,0,te-qn,$n,ei-1),dr++,hr=0,$n=ei,Jt=Wt,qn=0,dn=135<b?-Wt-Ft:Wt+Ft),bo=hr===0?ht:Ye,F0(a,$r,dn,0),$r.S.h(dn,qn+bo),Vt=Math.max(Vt,qn+bo+Zi.height),Wt=Math.max(Wt,Jt+(dr===0?0:Ft)+Zi.width),qn+=bo+Zi.height),hr++;switch(0<dr&&(x?(Vt+=Math.max(0,he),dn<Wt&&Jd(y,ge,Wt-dn,0,$n,ne-1),0<Nt&&(Ae||Of(y,Nt,0,0,ne-1),Wt+=Nt)):(Wt+=Math.max(0,he),qn<Vt&&Jd(y,ge,0,Vt-qn,$n,ne-1),0<Nt&&(Ae||Of(y,0,Nt,0,ne-1),Vt+=Nt))),Nt=Ae=0,ge){case jp:x?Ae+=Wt/2-y.focus.x-rt/2:Nt+=Vt/2-y.focus.y-rt/2;break;case jf:0<dr?x?Ae+=Wt/2-y.focus.x-rt/2:Nt+=Vt/2-y.focus.y-rt/2:x?(a=E[0].S.x+E[0].la.x,Ae+=a+(E[ne-1].S.x+E[ne-1].la.x+2*E[ne-1].focus.x-a)/2-y.focus.x-rt/2):(a=E[0].S.y+E[0].la.y,Nt+=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?(Ae-=rt,Wt+=rt):(Nt-=rt,Vt+=rt);break;case Fc:x?(Ae+=Wt-y.width+rt,Wt+=rt):(Nt+=Vt-y.height+rt,Vt+=rt);break;case Ah:case Bc:x?1<ne?Ae+=jn+Ye/2-y.focus.x:Ae+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?Nt+=jn+Ye/2-y.focus.y:Nt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case jh:x?Ae+=Wt+Ye/2-y.focus.x:Nt+=Vt+Ye/2-y.focus.y;break;case ih:break;default:a=a.customAlignment(y,Ae,Nt,Wt,Vt),Ae=a[0],Nt=a[1],Wt=a[2],Vt=a[3]}for(a=0;a<ne;a++)rt=E[a],x?rt.S.h(rt.S.x+rt.la.x-Ae,rt.S.y+(135<b?(se?-Vt:-rt.Da.height)+rt.la.y-he:Ht+he+rt.la.y)):rt.S.h(rt.S.x+(135<b?(se?-Wt:-rt.Da.width)+rt.la.x-he:ye+he+rt.la.x),rt.S.y+rt.la.y-Nt);x?(Wt=Ny(y,Wt,Ae),0>Ae&&(Ae=0),135<b&&(Nt+=Vt+he),Vt=Math.max(Math.max(Vt,Ht),Vt+Ht+he)):(135<b&&(Ae+=Wt+he),Wt=Math.max(Math.max(Wt,ye),Wt+ye+he),Vt=Oy(y,Vt,Nt),0>Nt&&(Nt=0)),y.la.h(Ae,Nt),y.Da.h(Wt,Vt)}}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,Ae=0,He=0,Ye=0;Ye<ne;Ye++)if(!(Ye%2!==0||1<ne&&Ye===ne-1)){var rt=x[Ye],ht=rt.Da,Ft=ye===0?0:he;if(ge){var Nt=a.computeBusNodeSpacing(rt)-se;rt.S.h(b-(ht.width+Nt),He+Ft),E=Math.max(E,ht.width+Nt),te=Math.max(te,He+Ft+ht.height),He+=Ft+ht.height}else Nt=a.computeBusNodeSpacing(rt)-se,rt.S.h(Ae+Ft,b-(ht.height+Nt)),te=Math.max(te,ht.height+Nt),E=Math.max(E,Ae+Ft+ht.width),Ae+=Ft+ht.width;ye++}for(ye=0,rt=Ae,Ye=He,ge?(Ae=b+se,He=0):(Ae=0,He=b+se),ht=0;ht<ne;ht++)if(ht%2!==0){Ft=x[ht],Nt=Ft.Da;var Ht=ye===0?0:he;if(ge){var Wt=a.computeBusNodeSpacing(Ft)-se;Ft.S.h(Ae+Wt,He+Ht),E=Math.max(E,Ae+Nt.width+Wt),te=Math.max(te,He+Ht+Nt.height),He+=Ht+Nt.height}else Wt=a.computeBusNodeSpacing(Ft)-se,Ft.S.h(Ae+Ht,He+Wt),E=Math.max(E,Ae+Ht+Nt.width),te=Math.max(te,He+Nt.height+Wt),Ae+=Ht+Nt.width;ye++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,ge?Math.max(Math.abs(Ye),Math.abs(He)):Math.max(Math.abs(rt),Math.abs(Ae))),ge?(x.S.h(b+se/2-x.focus.x-x.la.x,te+a),ge=b+se/2-x.focus.x-x.la.x,E=Math.max(E,ge+ne.width),0>ge&&(E-=ge),te=Math.max(te,Math.max(Ye,He)+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,Ae)+a+ne.width),He=b+se/2-x.focus.y-x.la.y,te=Math.max(te,He+ne.height),0>He&&(te-=He),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,Ae=0,He=0,Ye=0;Ye<ne;Ye++)if(!(Ye%2!==0||1<ne&&Ye===ne-1)){var rt=x[Ye],ht=rt.Da,Ft=ye===0?0:he;if(ge){var Nt=a.computeBusNodeSpacing(rt)-se;He-=Ft+ht.height,rt.S.h(b-(ht.width+Nt),He),E=Math.max(E,ht.width+Nt),te=Math.max(te,Math.abs(He))}else Nt=a.computeBusNodeSpacing(rt)-se,Ae-=Ft+ht.width,rt.S.h(Ae,b-(ht.height+Nt)),te=Math.max(te,ht.height+Nt),E=Math.max(E,Math.abs(Ae));ye++}for(ye=0,rt=Ae,Ye=He,ge?(Ae=b+se,He=0):(Ae=0,He=b+se),ht=0;ht<ne;ht++)if(ht%2!==0){Ft=x[ht],Nt=Ft.Da;var Ht=ye===0?0:he;if(ge){var Wt=a.computeBusNodeSpacing(Ft)-se;He-=Ht+Nt.height,Ft.S.h(Ae+Wt,He),E=Math.max(E,Ae+Nt.width+Wt),te=Math.max(te,Math.abs(He))}else Wt=a.computeBusNodeSpacing(Ft)-se,Ae-=Ht+Nt.width,Ft.S.h(Ae,He+Wt),te=Math.max(te,He+Nt.height+Wt),E=Math.max(E,Math.abs(Ae));ye++}for(1<ne&&ne%2===1&&(he=x[ne-1],ye=he.Da,a=a.computeBusLastRowSpacing(he,ge?Math.max(Math.abs(Ye),Math.abs(He)):Math.max(Math.abs(rt),Math.abs(Ae))),ge?(he.S.h(b+se/2-he.focus.x-he.la.x,-te-ye.height-a),Ae=b+se/2-he.focus.x-he.la.x,E=Math.max(E,Ae+ye.width),0>Ae&&(E-=Ae),te=Math.max(te,Math.abs(Math.min(Ye,He))+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,Ae))+a+ye.width),He=b+se/2-he.focus.y-he.la.y,te=Math.max(te,He+ye.height),0>He&&(te-=He),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:$t("Unhandled alignment value "+a.toString())}return new At(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:$t("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 Ae=E;b=te;var He=ne,Ye=x.Yo,rt=x.kp;ne=x.Da;var ht=ge?Math.max(He,ne.height):Math.max(b,ne.width);if((Ye===null||he!==Iu(x))&&(Ye=yl(a,2),rt=yl(a,2),ge?(Ye[0].h(0,0),Ye[1].h(0,ne.height),rt[0].h(ne.width,0),rt[1].h(rt[0].x,Ye[1].y)):(Ye[0].h(0,0),Ye[1].h(ne.width,0),rt[0].h(0,ne.height),rt[1].h(Ye[1].x,rt[0].y))),ge){if(He=9999999,!(Ae===null||2>Ae.length||Ye===null||2>Ye.length))for(E=x=0;x<Ae.length&&E<Ye.length;){te=Ae[x];var Ft=Ye[E];he=Ft.x,ge=Ft.y,he+=b;var Nt=te;x+1<Ae.length&&(Nt=Ae[x+1]);var Ht=Ft;Ft=Ht.x,Ht=Ht.y,E+1<Ye.length&&(Ht=Ye[E+1],Ft=Ht.x,Ht=Ht.y,Ft+=b);var Wt=He;te.y===ge?Wt=he-te.x:te.y>ge&&te.y<Ht?Wt=he+(te.y-ge)/(Ht-ge)*(Ft-he)-te.x:ge>te.y&&ge<Nt.y&&(Wt=he-(te.x+(ge-te.y)/(Nt.y-te.y)*(Nt.x-te.x))),Wt<He&&(He=Wt),Nt.y<=te.y?x++:Ht<=ge?E++:(Nt.y<=Ht&&x++,Ht<=Nt.y&&E++)}if(He=b-He,He+=ye,x=Ye,E=He,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=He,Ae===null||2>Ae.length||te===null||2>te.length)E=null;else{for(ye=yl(a,Ae.length+te.length),E=ge=x=0;x<Ae.length&&Ae[x].y<te[0].y;)Nt=Ae[x++],ye[E++].h(Nt.x,Nt.y);for(;ge<te.length;)Nt=te[ge++],ye[E++].h(Nt.x+he,Nt.y);for(te=te[te.length-1].y;x<Ae.length&&Ae[x].y<=te;)x++;for(;x<Ae.length&&Ae[x].y>te;)he=Ae[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,He)+ne.width,ne=ht,Ju(a,y),Ju(a,Ye),Ju(a,Ae),Ju(a,rt),se[0]=b,se[1]=E,new Ln(He,0,te,ne)}if(b=9999999,!(Ae===null||2>Ae.length||Ye===null||2>Ye.length))for(E=x=0;x<Ae.length&&E<Ye.length;)te=Ae[x],Ft=Ye[E],he=Ft.x,ge=Ft.y,ge+=He,Nt=te,x+1<Ae.length&&(Nt=Ae[x+1]),Ht=Ft,Ft=Ht.x,Ht=Ht.y,E+1<Ye.length&&(Ht=Ye[E+1],Ft=Ht.x,Ht=Ht.y,Ht+=He),Wt=b,te.x===he?Wt=ge-te.y:te.x>he&&te.x<Ft?Wt=ge+(te.x-he)/(Ft-he)*(Ht-ge)-te.y:he>te.x&&he<Nt.x&&(Wt=ge-(te.y+(he-te.x)/(Nt.x-te.x)*(Nt.y-te.y))),Wt<b&&(b=Wt),Nt.x<=te.x?x++:Ft<=he?E++:(Nt.x<=Ft&&x++,Ft<=Nt.x&&E++);if(He-=b,He+=ye,x=Ye,E=He,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=He,Ae===null||2>Ae.length||te===null||2>te.length)E=null;else{for(ye=yl(a,Ae.length+te.length),E=ge=x=0;x<Ae.length&&Ae[x].x<te[0].x;)Nt=Ae[x++],ye[E++].h(Nt.x,Nt.y);for(;ge<te.length;)Nt=te[ge++],ye[E++].h(Nt.x,Nt.y+he);for(te=te[te.length-1].x;x<Ae.length&&Ae[x].x<=te;)x++;for(;x<Ae.length&&Ae[x].x>te;)he=Ae[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=ht,ne=Math.max(0,He)+ne.height,Ju(a,y),Ju(a,Ye),Ju(a,Ae),Ju(a,rt),se[0]=b,se[1]=E,new Ln(He,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 At;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:$t("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:$t("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 At(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new At(-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)},Tt.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()):$t("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)}qt(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 At(0,0),this.Da=new Yn(0,0),this.la=new At(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}qt(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)},Tt.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 At(0,0)}qt(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:$t("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 Ae=a.i(1),He=a.i(2)}else{for(ye=1;3<a.pointsCount;)a.pv(1);Ae=a.i(0),He=a.i(a.pointsCount-1)}var Ye=a.i(a.pointsCount-1);te===0?(x.alignment===Fc?(te=b.bottom+E.y,E.y===0&&Ae.y>Ye.y+x.rowIndent&&(te=Math.min(te,Math.max(Ae.y,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.top+E.y,E.y===0&&Ae.y<Ye.y-x.rowIndent&&(te=Math.max(te,Math.min(Ae.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,he?(a.m(ye,Ae.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,He.x,te)):(ge&&(a.m(ye,b.right+ne/2,Ae.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,He.y))):te===90?(x.alignment===Fc?(te=b.right+E.x,E.x===0&&Ae.x>Ye.x+x.rowIndent&&(te=Math.min(te,Math.max(Ae.x,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.left+E.x,E.x===0&&Ae.x<Ye.x-x.rowIndent&&(te=Math.max(te,Math.min(Ae.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,he?(a.m(ye,te,Ae.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,He.y)):(ge&&(a.m(ye,Ae.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,He.x,a.i(ye-1).y))):te===180?(x.alignment===Fc?(te=b.bottom+E.y,E.y===0&&Ae.y>Ye.y+x.rowIndent&&(te=Math.min(te,Math.max(Ae.y,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.top+E.y,E.y===0&&Ae.y<Ye.y-x.rowIndent&&(te=Math.max(te,Math.min(Ae.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,he?(a.m(ye,Ae.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,He.x,te)):(ge&&(a.m(ye,b.left-ne/2,Ae.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,He.y))):te===270?(x.alignment===Fc?(te=b.right+E.x,E.x===0&&Ae.x>Ye.x+x.rowIndent&&(te=Math.min(te,Math.max(Ae.x,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.left+E.x,E.x===0&&Ae.x<Ye.x-x.rowIndent&&(te=Math.max(te,Math.min(Ae.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,he?(a.m(ye,te,Ae.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,He.y)):(ge&&(a.m(ye,Ae.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,He.x,a.i(ye-1).y))):$t("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()))}}},Tt.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=Rt.go,zy={get licenseKey(){return hn.licenseKey},set licenseKey(a){hn.licenseKey=a},get version(){return hn.version},Group:ni,EnumValue:bn,List:vn,Set:wn,Map:fr,Point:At,Size:Yn,Rect:Ln,Margin:Or,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:Dt,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:hn,Palette:ke,Overview:Fe,Brush:ao,GraphObject:Qt,Panel:Un,RowColumnDefinition:ja,Shape:fi,TextBlock:Co,Picture:ul,Part:Ar,Adornment:Ui,Node:rr,Link:Vn,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),hn.prototype.go=zy,Rt.go=zy,typeof _n.exports=="object"&&(_n.exports=typeof Ge.g!="undefined"?Ge.g.go:self.go)}();var et=typeof Ge.g!="undefined"?Ge.g.go:self.go;const Mt=typeof Ge.g!="undefined"?Ge.g.go:self.go,oe=Mt.Group,ze=Mt.EnumValue,je=Mt.List,ve=Mt.Set,ce=Mt.Map,we=Mt.Point,Me=Mt.Size,Se=Mt.Rect,Pe=Mt.Margin,me=Mt.Spot,xe=Mt.Geometry,fe=Mt.PathFigure,z=Mt.PathSegment,ee=Mt.InputEvent,ae=Mt.DiagramEvent,re=Mt.ChangedEvent,le=Mt.Model,ue=Mt.GraphLinksModel,pe=Mt.TreeModel,be=Mt.Binding,Ce=Mt.Transaction,Ie=Mt.UndoManager,Oe=Mt.CommandHandler,Le=Mt.Tool,Ne=Mt.DraggingTool,De=Mt.DraggingInfo,Re=Mt.LinkingBaseTool,Je=Mt.LinkingTool,_e=Mt.RelinkingTool,Ve=Mt.LinkReshapingTool,Qe=Mt.ResizingTool,ut=Mt.RotatingTool,dt=Mt.ClickSelectingTool,St=Mt.ActionTool,qe=Mt.ClickCreatingTool,it=Mt.HTMLInfo,pt=Mt.ContextMenuTool,wt=Mt.DragSelectingTool,xt=Mt.PanningTool,ft=Mt.TextEditingTool,mt=Mt.ToolManager,yt=Mt.Animation,It=Mt.AnimationManager,kt=Mt.AnimationTrigger,Ut=Mt.Layer,Pt=Mt.Diagram,Ct=Mt.Palette,st=Mt.Overview,bt=Mt.Brush,at=Mt.GraphObject,ct=Mt.Panel,Lt=Mt.RowColumnDefinition,vt=Mt.Shape,nt=Mt.TextBlock,Xe=Mt.TextBlockMetrics,Ue=Mt.Picture,$e=Mt.Part,tt=Mt.Adornment,We=Mt.Node,Be=Mt.Link,Te=Mt.Placeholder,Ke=Mt.Layout,gt=Mt.LayoutNetwork,Ze=Mt.LayoutVertex,Ot=Mt.LayoutEdge,zt=Mt.GridLayout,Yt=Mt.PanelLayout,jt=Mt.CircularLayout,Kt=Mt.CircularNetwork,en=Mt.CircularVertex,cn=Mt.CircularEdge,yn=Mt.ForceDirectedLayout,On=Mt.ForceDirectedNetwork,or=Mt.ForceDirectedVertex,er=Mt.ForceDirectedEdge,Tr=Mt.LayeredDigraphLayout,Kn=Mt.LayeredDigraphNetwork,Nr=Mt.LayeredDigraphVertex,kr=Mt.LayeredDigraphEdge,Ur=Mt.TreeLayout,Jr=Mt.TreeNetwork,Mr=Mt.TreeVertex,di=Mt.TreeEdge,Dr=Mt.version},17115:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{ZP:function(){return ce}});var et=Ge(72071),Mt=Ge(59301),oe=Ge(47273),ze=0,je=(0,oe.Z)();function ve(){var we;return je?(we=ze,ze+=1):we="TEST_OR_SSR",we}function ce(we){var Me=Mt.useState(),Se=(0,et.Z)(Me,2),Pe=Se[0],me=Se[1];return Mt.useEffect(function(){me("rc_select_".concat(ve()))},[]),we||Pe}},77861:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Ac:function(){return Ke},Xo:function(){return er},Wx:function(){return Kn},ZP:function(){return Cn},lk:function(){return pe}});var et=Ge(96663),Mt=Ge(19127),oe=Ge(90493),ze=Ge(44127),je=Ge(72071),ve=Ge(6620),ce=Ge(20135),we=Ge(18929),Me=Ge(48736),Se=Ge(59301),Pe=Ge(92310),me=Ge.n(Pe),xe=Ge(34280),fe=Ge(49658),z=Ge(10228),ee=Ge(8654),ae=function(Rt){var fn=Rt.className,un=Rt.customizeIcon,Gn=Rt.customizeIconProps,Xn=Rt.onMouseDown,$t=Rt.onClick,kn=Rt.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:$t,"aria-hidden":!0},Wn!==void 0?Wn:Se.createElement("span",{className:me()(fn.split(/\s+/).map(function(lr){return"".concat(lr,"-icon")}))},kn))},re=ae;function le(Xt,Rt,fn,un,Gn){var Xn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,$t=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||$t)&&!(kn==="combobox"&&$t===""))},[un,Xn,fn.length,$t,kn]);return{allowClear:lr,clearIcon:Se.createElement(re,{className:"".concat(Xt,"-clear"),onMouseDown:Rt,customizeIcon:Wn},"\xD7")}}var ue=Se.createContext(null);function pe(){return Se.useContext(ue)}function be(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Rt=Se.useState(!1),fn=(0,je.Z)(Rt,2),un=fn[0],Gn=fn[1],Xn=Se.useRef(null),$t=function(){window.clearTimeout(Xn.current)};Se.useEffect(function(){return $t},[]);var kn=function(lr,on){$t(),Xn.current=window.setTimeout(function(){Gn(lr),on&&on()},Xt)};return[un,kn,$t]}function Ce(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Rt=Se.useRef(null),fn=Se.useRef(null);Se.useEffect(function(){return function(){window.clearTimeout(fn.current)}},[]);function un(Gn){(Gn||Rt.current===null)&&(Rt.current=Gn),window.clearTimeout(fn.current),fn.current=window.setTimeout(function(){Rt.current=null},Xt)}return[function(){return Rt.current},un]}function Ie(Xt,Rt,fn,un){var Gn=Se.useRef(null);Gn.current={open:Rt,triggerOpen:fn,customizedTrigger:un},Se.useEffect(function(){function Xn($t){var kn;if(!((kn=Gn.current)!==null&&kn!==void 0&&kn.customizedTrigger)){var Wn=$t.target;Wn.shadowRoot&&$t.composed&&(Wn=$t.composedPath()[0]||Wn),Gn.current.open&&Xt().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 Oe=Ge(26112),Le=Ge(11780),Ne=function(Rt,fn){var un,Gn,Xn=Rt.prefixCls,$t=Rt.id,kn=Rt.inputElement,Wn=Rt.disabled,lr=Rt.tabIndex,on=Rt.autoFocus,Mn=Rt.autoComplete,an=Rt.editable,xn=Rt.activeDescendantId,gn=Rt.value,Sn=Rt.maxLength,An=Rt.onKeyDown,Nn=Rt.onMouseDown,Fn=Rt.onChange,zn=Rt.onPaste,xr=Rt.onCompositionStart,mn=Rt.onCompositionEnd,Fr=Rt.open,Qr=Rt.attrs,Br=kn||Se.createElement("input",null),bn=Br,Jn=bn.ref,sr=bn.props,Sr=sr.onKeyDown,mr=sr.onChange,Kr=sr.onMouseDown,ri=sr.onCompositionStart,Rr=sr.onCompositionEnd,br=sr.style;return(0,Me.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,ze.Z)((0,ze.Z)((0,ze.Z)({type:"search"},sr),{},{id:$t,ref:(0,ee.sQ)(fn,Jn),disabled:Wn,tabIndex:lr,autoComplete:Mn||"off",autoFocus:on,className:me()("".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($t,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($t,"_list"),"aria-activedescendant":Fr?xn:void 0},Qr),{},{value:an?gn:"",maxLength:Sn,readOnly:!an,unselectable:an?null:"on",style:(0,ze.Z)((0,ze.Z)({},br),{},{opacity:an?null:0}),onKeyDown:function(vn){An(vn),Sr&&Sr(vn)},onMouseDown:function(vn){Nn(vn),Kr&&Kr(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},De=Se.forwardRef(Ne);De.displayName="Input";var Re=De;function Je(Xt){return Array.isArray(Xt)?Xt:Xt!==void 0?[Xt]:[]}var _e=typeof window!="undefined"&&window.document&&window.document.documentElement,Ve=_e;function Qe(Xt){return Xt!=null}function ut(Xt){return!Xt&&Xt!==0}function dt(Xt){return["string","number"].includes((0,ce.Z)(Xt))}function St(Xt){var Rt=void 0;return Xt&&(dt(Xt.title)?Rt=Xt.title.toString():dt(Xt.label)&&(Rt=Xt.label.toString())),Rt}function qe(Xt,Rt){Ve?Se.useLayoutEffect(Xt,Rt):Se.useEffect(Xt,Rt)}function it(Xt){var Rt;return(Rt=Xt.key)!==null&&Rt!==void 0?Rt:Xt.value}var pt=function(Rt){Rt.preventDefault(),Rt.stopPropagation()},wt=function(Rt){var fn=Rt.id,un=Rt.prefixCls,Gn=Rt.values,Xn=Rt.open,$t=Rt.searchValue,kn=Rt.autoClearSearchValue,Wn=Rt.inputRef,lr=Rt.placeholder,on=Rt.disabled,Mn=Rt.mode,an=Rt.showSearch,xn=Rt.autoFocus,gn=Rt.autoComplete,Sn=Rt.activeDescendantId,An=Rt.tabIndex,Nn=Rt.removeIcon,Fn=Rt.maxTagCount,zn=Rt.maxTagTextLength,xr=Rt.maxTagPlaceholder,mn=xr===void 0?function(Fi){return"+ ".concat(Fi.length," ...")}:xr,Fr=Rt.tagRender,Qr=Rt.onToggleOpen,Br=Rt.onRemove,bn=Rt.onInputChange,Jn=Rt.onInputPaste,sr=Rt.onInputKeyDown,Sr=Rt.onInputMouseDown,mr=Rt.onInputCompositionStart,Kr=Rt.onInputCompositionEnd,ri=Se.useRef(null),Rr=(0,Se.useState)(0),br=(0,je.Z)(Rr,2),ur=br[0],vn=br[1],cr=(0,Se.useState)(!1),wn=(0,je.Z)(cr,2),zr=wn[0],$i=wn[1],Mi="".concat(un,"-selection"),yo=Xn||Mn==="multiple"&&kn===!1||Mn==="tags"?$t:"",no=Mn==="tags"||Mn==="multiple"&&kn===!1||an&&(Xn||zr);qe(function(){vn(ri.current.scrollWidth)},[yo]);function Wr(Fi,Ki,gi,oo,So){return Se.createElement("span",{className:me()("".concat(Mi,"-item"),(0,oe.Z)({},"".concat(Mi,"-item-disabled"),gi)),title:St(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),Qr(!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(Re,{ref:Wn,open:Xn,prefixCls:un,id:fn,inputElement:null,disabled:on,autoFocus:xn,autoComplete:gn,editable:no,activeDescendantId:Sn,value:yo,onKeyDown:sr,onMouseDown:Sr,onChange:bn,onPaste:Jn,onCompositionStart:mr,onCompositionEnd:Kr,tabIndex:An,attrs:(0,Oe.Z)(Rt,!0)}),Se.createElement("span",{ref:ri,className:"".concat(Mi,"-search-mirror"),"aria-hidden":!0},yo,"\xA0")),At=Se.createElement(Le.Z,{prefixCls:"".concat(Mi,"-overflow"),data:Gn,renderItem:wi,renderRest:vi,suffix:fr,itemKey:it,maxCount:Fn});return Se.createElement(Se.Fragment,null,At,!Gn.length&&!yo&&Se.createElement("span",{className:"".concat(Mi,"-placeholder")},lr))},xt=wt,ft=function(Rt){var fn=Rt.inputElement,un=Rt.prefixCls,Gn=Rt.id,Xn=Rt.inputRef,$t=Rt.disabled,kn=Rt.autoFocus,Wn=Rt.autoComplete,lr=Rt.activeDescendantId,on=Rt.mode,Mn=Rt.open,an=Rt.values,xn=Rt.placeholder,gn=Rt.tabIndex,Sn=Rt.showSearch,An=Rt.searchValue,Nn=Rt.activeValue,Fn=Rt.maxLength,zn=Rt.onInputKeyDown,xr=Rt.onInputMouseDown,mn=Rt.onInputChange,Fr=Rt.onInputPaste,Qr=Rt.onInputCompositionStart,Br=Rt.onInputCompositionEnd,bn=Rt.title,Jn=Se.useState(!1),sr=(0,je.Z)(Jn,2),Sr=sr[0],mr=sr[1],Kr=on==="combobox",ri=Kr||Sn,Rr=an[0],br=An||"";Kr&&Nn&&!Sr&&(br=Nn),Se.useEffect(function(){Kr&&mr(!1)},[Kr,Nn]);var ur=on!=="combobox"&&!Mn&&!Sn?!1:!!br,vn=bn===void 0?St(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},xn)};return Se.createElement(Se.Fragment,null,Se.createElement("span",{className:"".concat(un,"-selection-search")},Se.createElement(Re,{ref:Xn,prefixCls:un,id:Gn,open:Mn,inputElement:fn,disabled:$t,autoFocus:kn,autoComplete:Wn,editable:ri,activeDescendantId:lr,value:br,onKeyDown:zn,onMouseDown:xr,onChange:function(zr){mr(!0),mn(zr)},onPaste:Fr,onCompositionStart:Qr,onCompositionEnd:Br,tabIndex:gn,attrs:(0,Oe.Z)(Rt,!0),maxLength:Kr?Fn:void 0})),!Kr&&Rr?Se.createElement("span",{className:"".concat(un,"-selection-item"),title:vn,style:ur?{visibility:"hidden"}:void 0},Rr.label):null,cr())},mt=ft;function yt(Xt){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(Xt)}var It=function(Rt,fn){var un=(0,Se.useRef)(null),Gn=(0,Se.useRef)(!1),Xn=Rt.prefixCls,$t=Rt.open,kn=Rt.mode,Wn=Rt.showSearch,lr=Rt.tokenWithEnter,on=Rt.autoClearSearchValue,Mn=Rt.onSearch,an=Rt.onSearchSubmit,xn=Rt.onToggleOpen,gn=Rt.onInputKeyDown,Sn=Rt.domRef;Se.useImperativeHandle(fn,function(){return{focus:function(){un.current.focus()},blur:function(){un.current.blur()}}});var An=Ce(0),Nn=(0,je.Z)(An,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&&!$t&&(an==null||an(br.target.value)),yt(ur)&&xn(!0)},mn=function(){zn(!0)},Fr=(0,Se.useRef)(null),Qr=function(br){Mn(br,!0,Gn.current)!==!1&&xn(!0)},Br=function(){Gn.current=!0},bn=function(br){Gn.current=!1,kn!=="combobox"&&Qr(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,Qr(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)||!$t)&&($t&&on!==!1&&Mn("",!0,!1),xn())},Kr={inputRef:un,onInputKeyDown:xr,onInputMouseDown:mn,onInputChange:Jn,onInputPaste:sr,onInputCompositionStart:Br,onInputCompositionEnd:bn},ri=kn==="multiple"||kn==="tags"?Se.createElement(xt,(0,et.Z)({},Rt,Kr)):Se.createElement(mt,(0,et.Z)({},Rt,Kr));return Se.createElement("div",{ref:Sn,className:"".concat(Xn,"-selector"),onClick:Sr,onMouseDown:mr},ri)},kt=Se.forwardRef(It);kt.displayName="Selector";var Ut=kt,Pt=Ge(35593),Ct=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],st=function(Rt){var fn=Rt===!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"}}},bt=function(Rt,fn){var un=Rt.prefixCls,Gn=Rt.disabled,Xn=Rt.visible,$t=Rt.children,kn=Rt.popupElement,Wn=Rt.animation,lr=Rt.transitionName,on=Rt.dropdownStyle,Mn=Rt.dropdownClassName,an=Rt.direction,xn=an===void 0?"ltr":an,gn=Rt.placement,Sn=Rt.builtinPlacements,An=Rt.dropdownMatchSelectWidth,Nn=Rt.dropdownRender,Fn=Rt.dropdownAlign,zn=Rt.getPopupContainer,xr=Rt.empty,mn=Rt.getTriggerDOMNode,Fr=Rt.onPopupVisibleChange,Qr=Rt.onPopupMouseEnter,Br=(0,ve.Z)(Rt,Ct),bn="".concat(un,"-dropdown"),Jn=kn;Nn&&(Jn=Nn(kn));var sr=Se.useMemo(function(){return Sn||st(An)},[Sn,An]),Sr=Wn?"".concat(bn,"-").concat(Wn):lr,mr=typeof An=="number",Kr=Se.useMemo(function(){return mr?null:An===!1?"minWidth":"width"},[An,mr]),ri=on;mr&&(ri=(0,ze.Z)((0,ze.Z)({},ri),{},{width:An}));var Rr=Se.useRef(null);return Se.useImperativeHandle(fn,function(){return{getPopupElement:function(){return Rr.current}}}),Se.createElement(Pt.Z,(0,et.Z)({},Br,{showAction:Fr?["click"]:[],hideAction:Fr?["click"]:[],popupPlacement:gn||(xn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:sr,prefixCls:bn,popupTransitionName:Sr,popup:Se.createElement("div",{ref:Rr,onMouseEnter:Qr},Jn),stretch:Kr,popupAlign:Fn,popupVisible:Xn,getPopupContainer:zn,popupClassName:me()(Mn,(0,oe.Z)({},"".concat(bn,"-empty"),xr)),popupStyle:ri,getTriggerDOMNode:mn,onPopupVisibleChange:Fr}),$t)},at=Se.forwardRef(bt);at.displayName="SelectTrigger";var ct=at,Lt=Ge(4537);function vt(Xt,Rt){var fn=Xt.key,un;return"value"in Xt&&(un=Xt.value),fn!=null?fn:un!==void 0?un:"rc-index-key-".concat(Rt)}function nt(Xt,Rt){var fn=Xt||{},un=fn.label,Gn=fn.value,Xn=fn.options,$t=fn.groupLabel,kn=un||(Rt?"children":"label");return{label:kn,value:Gn||"value",options:Xn||"options",groupLabel:$t||kn}}function Xe(Xt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=Rt.fieldNames,un=Rt.childrenAsData,Gn=[],Xn=nt(fn,!1),$t=Xn.label,kn=Xn.value,Wn=Xn.options,lr=Xn.groupLabel;function on(Mn,an){Mn.forEach(function(xn){if(an||!(Wn in xn)){var gn=xn[kn];Gn.push({key:vt(xn,Gn.length),groupOption:an,data:xn,label:xn[$t],value:gn})}else{var Sn=xn[lr];Sn===void 0&&un&&(Sn=xn.label),Gn.push({key:vt(xn,Gn.length),group:!0,data:xn,label:Sn}),on(xn[Wn],!0)}})}return on(Xt,!1),Gn}function Ue(Xt){var Rt=(0,ze.Z)({},Xt);return"props"in Rt||Object.defineProperty(Rt,"props",{get:function(){return(0,Me.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Rt}}),Rt}function $e(Xt,Rt){if(!Rt||!Rt.length)return null;var fn=!1;function un(Xn,$t){var kn=(0,Lt.Z)($t),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,Mt.Z)(Mn),(0,Mt.Z)(un(an,lr)))},[]).filter(function(Mn){return Mn})}var Gn=un(Xt,Rt);return fn?Gn:null}var tt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],We=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Be(Xt){return Xt==="tags"||Xt==="multiple"}var Te=Se.forwardRef(function(Xt,Rt){var fn,un,Gn=Xt.id,Xn=Xt.prefixCls,$t=Xt.className,kn=Xt.showSearch,Wn=Xt.tagRender,lr=Xt.direction,on=Xt.omitDomProps,Mn=Xt.displayValues,an=Xt.onDisplayValuesChange,xn=Xt.emptyOptions,gn=Xt.notFoundContent,Sn=gn===void 0?"Not Found":gn,An=Xt.onClear,Nn=Xt.mode,Fn=Xt.disabled,zn=Xt.loading,xr=Xt.getInputElement,mn=Xt.getRawInputElement,Fr=Xt.open,Qr=Xt.defaultOpen,Br=Xt.onDropdownVisibleChange,bn=Xt.activeValue,Jn=Xt.onActiveValueChange,sr=Xt.activeDescendantId,Sr=Xt.searchValue,mr=Xt.autoClearSearchValue,Kr=Xt.onSearch,ri=Xt.onSearchSplit,Rr=Xt.tokenSeparators,br=Xt.allowClear,ur=Xt.suffixIcon,vn=Xt.clearIcon,cr=Xt.OptionList,wn=Xt.animation,zr=Xt.transitionName,$i=Xt.dropdownStyle,Mi=Xt.dropdownClassName,yo=Xt.dropdownMatchSelectWidth,no=Xt.dropdownRender,Wr=Xt.dropdownAlign,Hr=Xt.placement,wi=Xt.builtinPlacements,vi=Xt.getPopupContainer,fr=Xt.showAction,At=fr===void 0?[]:fr,Fi=Xt.onFocus,Ki=Xt.onBlur,gi=Xt.onKeyUp,oo=Xt.onKeyDown,So=Xt.onMouseDown,qr=(0,ve.Z)(Xt,tt),ii=Be(Nn),Oi=(kn!==void 0?kn:ii)||Nn==="combobox",Pi=(0,ze.Z)({},qr);We.forEach(function(to){delete Pi[to]}),on==null||on.forEach(function(to){delete Pi[to]});var co=Se.useState(!1),To=(0,je.Z)(co,2),Vr=To[0],Zr=To[1];Se.useEffect(function(){Zr((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,je.Z)(Xo,3),na=Pa[0],os=Pa[1],Da=Pa[2];Se.useImperativeHandle(Rt,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,je.Z)(el,2),eo=xo[0],ga=xo[1];(0,xe.Z)(function(){ga(!0)},[]);var jo=(0,we.Z)(!1,{defaultValue:Qr,value:Fr}),Yi=(0,je.Z)(jo,2),No=Yi[0],xs=Yi[1],bi=eo?No:!1,so=!Sn&&xn;(Fn||so&&bi&&Nn==="combobox")&&(bi=!1);var io=so?!1:bi,Or=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:$e(Io,Rr);return Nn!=="combobox"&&Ca&&(ca="",ri==null||ri(Ca),Or(!1),_a=!1),Kr&&fs!==ca&&Kr(ca,{source:Es?"typing":"effect"}),_a},Cs=function(Io){!Io||!Io.trim()||Kr(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,je.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||Or(!0)),aa(!!fs),Xa===z.Z.BACKSPACE&&!Es&&ii&&!fs&&Mn.length){for(var _a=(0,Mt.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),At.includes("focus")&&Or(!0)),Fl.current=!0},mc=function(){os(!1,function(){Fl.current=!1,Or(!1)}),!Fn&&(fs&&(Nn==="tags"?Kr(fs,{source:"submit"}):Nn==="multiple"&&Kr("",{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(),!Vr&&!_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,je.Z)(As,2),Bu=Cu[1];function _s(){Bu({})}var dl;Fa&&(dl=function(Io){Or(Io)}),Ie(function(){var to;return[Yn.current,(to=ro.current)===null||to===void 0?void 0:to.getPopupElement()]},io,Or,!!Fa);var Hc=Se.useMemo(function(){return(0,ze.Z)((0,ze.Z)({},Xt),{},{notFoundContent:Sn,open:bi,triggerOpen:io,id:Gn,showSearch:Oi,multiple:ii,toggleOpen:Or})},[Xt,Sn,io,bi,Gn,Oi,ii,Or]),hh=!!ur||zn,Gc;hh&&(Gc=Se.createElement(re,{className:me()("".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;An==null||An(),(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=me()(Xn,$t,(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(ct,{ref:ro,disabled:Fn,prefixCls:Xn,visible:io,popupElement:Bl,animation:wn,transitionName:zr,dropdownStyle:$i,dropdownClassName:Mi,direction:lr,dropdownMatchSelectWidth:yo,dropdownRender:no,dropdownAlign:Wr,placement:Hr,builtinPlacements:wi,getPopupContainer:vi,empty:xn,getTriggerDOMNode:function(){return ci.current},onPopupVisibleChange:dl,onPopupMouseEnter:_s},Fa?Se.cloneElement(Fa,{ref:rc}):Se.createElement(Ut,(0,et.Z)({},Xt,{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:Or,activeValue:bn,searchValue:fs,onSearch:Ra,onSearchSubmit:Cs,onRemove:Dl,tokenWithEnter:Ba}))),yc;return Fa?yc=Uc:yc=Se.createElement("div",(0,et.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)}),Ke=Te,gt=function(Xt,Rt){var fn=Se.useRef({values:new Map,options:new Map}),un=Se.useMemo(function(){var Xn=fn.current,$t=Xn.values,kn=Xn.options,Wn=Xt.map(function(Mn){if(Mn.label===void 0){var an;return(0,ze.Z)((0,ze.Z)({},Mn),{},{label:(an=$t.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,Rt.get(Mn.value)||kn.get(Mn.value))}),fn.current.values=lr,fn.current.options=on,Wn},[Xt,Rt]),Gn=Se.useCallback(function(Xn){return Rt.get(Xn)||fn.current.options.get(Xn)},[Rt]);return[un,Gn]};function Ze(Xt,Rt){return Je(Xt).join("").toUpperCase().includes(Rt)}var Ot=function(Xt,Rt,fn,un,Gn){return Se.useMemo(function(){if(!fn||un===!1)return Xt;var Xn=Rt.options,$t=Rt.label,kn=Rt.value,Wn=[],lr=typeof un=="function",on=fn.toUpperCase(),Mn=lr?un:function(xn,gn){return Gn?Ze(gn[Gn],on):gn[Xn]?Ze(gn[$t!=="children"?$t:"label"],on):Ze(gn[kn],on)},an=lr?function(xn){return Ue(xn)}:function(xn){return xn};return Xt.forEach(function(xn){if(xn[Xn]){var gn=Mn(fn,an(xn));if(gn)Wn.push(xn);else{var Sn=xn[Xn].filter(function(An){return Mn(fn,an(An))});Sn.length&&Wn.push((0,ze.Z)((0,ze.Z)({},xn),{},(0,oe.Z)({},Xn,Sn)))}return}Mn(fn,an(xn))&&Wn.push(xn)}),Wn},[Xt,un,Gn,fn,Rt])},zt=Ge(17115),Yt=Ge(11592),jt=["children","value"],Kt=["children"];function en(Xt){var Rt=Xt,fn=Rt.key,un=Rt.props,Gn=un.children,Xn=un.value,$t=(0,ve.Z)(un,jt);return(0,ze.Z)({key:fn,value:Xn!==void 0?Xn:fn,children:Gn},$t)}function cn(Xt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Yt.Z)(Xt).map(function(fn,un){if(!Se.isValidElement(fn)||!fn.type)return null;var Gn=fn,Xn=Gn.type.isSelectOptGroup,$t=Gn.key,kn=Gn.props,Wn=kn.children,lr=(0,ve.Z)(kn,Kt);return Rt||!Xn?en(fn):(0,ze.Z)((0,ze.Z)({key:"__RC_SELECT_GRP__".concat($t===null?un:$t,"__"),label:$t},lr),{},{options:cn(Wn)})}).filter(function(fn){return fn})}function yn(Xt,Rt,fn,un,Gn){return Se.useMemo(function(){var Xn=Xt,$t=!Xt;$t&&(Xn=cn(Rt));var kn=new Map,Wn=new Map,lr=function(an,xn,gn){gn&&typeof gn=="string"&&an.set(xn[gn],xn)};function on(Mn){for(var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn=0;xn<Mn.length;xn+=1){var gn=Mn[xn];!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}},[Xt,Rt,fn,un,Gn])}function On(Xt){var Rt=Se.useRef();Rt.current=Xt;var fn=Se.useCallback(function(){return Rt.current.apply(Rt,arguments)},[]);return fn}var or=function(){return null};or.isSelectOptGroup=!0;var er=or,Tr=function(){return null};Tr.isSelectOption=!0;var Kn=Tr,Nr=Ge(80547),kr=Ge(2738),Ur=Ge(45680),Jr=Se.createContext(null),Mr=Jr;function di(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Dr=["disabled","title","children","style","className"];function ot(Xt){return typeof Xt=="string"||typeof Xt=="number"}var Ci=function(Rt,fn){var un=pe(),Gn=un.prefixCls,Xn=un.id,$t=un.open,kn=un.multiple,Wn=un.mode,lr=un.searchValue,on=un.toggleOpen,Mn=un.notFoundContent,an=un.onPopupScroll,xn=Se.useContext(Mr),gn=xn.flattenOptions,Sn=xn.onActiveValue,An=xn.defaultActiveFirstOption,Nn=xn.onSelect,Fn=xn.menuItemSelectedIcon,zn=xn.rawValues,xr=xn.fieldNames,mn=xn.virtual,Fr=xn.direction,Qr=xn.listHeight,Br=xn.listItemHeight,bn="".concat(Gn,"-item"),Jn=(0,Nr.Z)(function(){return gn},[$t,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)},Kr=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 At=(Hr+fr*wi+vi)%vi,Fi=Jn[At],Ki=Fi.group,gi=Fi.data;if(!Ki&&!gi.disabled)return At}return-1},ri=Se.useState(function(){return Kr(0)}),Rr=(0,je.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){Sn(null,-1,vi);return}Sn(fr.value,Hr,vi)};(0,Se.useEffect)(function(){vn(An!==!1?Kr(0):-1)},[Jn.length,lr]);var cr=Se.useCallback(function(Wr){return zn.has(Wr)&&Wn!=="combobox"},[Wn,(0,Mt.Z)(zn).toString(),zn.size]);(0,Se.useEffect)(function(){var Wr=setTimeout(function(){if(!kn&&$t&&zn.size===1){var wi=Array.from(zn)[0],vi=Jn.findIndex(function(fr){var At=fr.data;return At.value===wi});vi!==-1&&(vn(vi),mr(vi))}});if($t){var Hr;(Hr=sr.current)===null||Hr===void 0||Hr.scrollTo(void 0)}return function(){return clearTimeout(Wr)}},[$t,lr,gn.length]);var wn=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 At=Kr(br+fr,fr);mr(At),vn(At,!0)}break}case z.Z.ENTER:{var Fi=Jn[br];Fi&&!Fi.data.disabled?wn(Fi.value):wn(void 0),$t&&Hr.preventDefault();break}case z.Z.ESC:on(!1),$t&&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,At=wi.group,Fi=(0,Oe.Z)(vi,!0),Ki=$i(wi);return wi?Se.createElement("div",(0,et.Z)({"aria-label":typeof Ki=="string"&&!At?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,et.Z)({},no,{style:{height:0,width:0,overflow:"hidden"}}),yo(br-1),yo(br),yo(br+1)),Se.createElement(Ur.Z,{itemKey:"key",ref:sr,data:Jn,height:Qr,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,At=Wr.data,Fi=Wr.label,Ki=Wr.value,gi=At.key;if(vi){var oo,So=(oo=At.title)!==null&&oo!==void 0?oo:ot(Fi)?Fi.toString():void 0;return Se.createElement("div",{className:me()(bn,"".concat(bn,"-group")),title:So},Fi!==void 0?Fi:gi)}var qr=At.disabled,ii=At.title,Oi=At.children,Pi=At.style,co=At.className,To=(0,ve.Z)(At,Dr),Vr=(0,kr.Z)(To,zr),Zr=cr(Ki),Yn="".concat(bn,"-option"),ci=me()(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"),Zr),wi)),ro=$i(Wr),Wo=!Fn||typeof Fn=="function"||Zr,_o=typeof ro=="number"?ro:ro||Ki,Xo=ot(_o)?_o.toString():void 0;return ii!==void 0&&(Xo=ii),Se.createElement("div",(0,et.Z)({},(0,Oe.Z)(Vr),mn?{}:Mi(Wr,Hr),{"aria-selected":Zr,className:ci,title:Xo,onMouseMove:function(){br===Hr||qr||vn(Hr)},onClick:function(){qr||wn(Ki)},style:Pi}),Se.createElement("div",{className:"".concat(Yn,"-content")},_o),Se.isValidElement(Fn)||Zr,Wo&&Se.createElement(re,{className:"".concat(bn,"-option-state"),customizeIcon:Fn,customizeIconProps:{isSelected:Zr}},Zr?"\u2713":null))}))},xi=Se.forwardRef(Ci);xi.displayName="OptionList";var pr=xi;function Pr(Xt){var Rt=Xt.mode,fn=Xt.options,un=Xt.children,Gn=Xt.backfill,Xn=Xt.allowClear,$t=Xt.placeholder,kn=Xt.getInputElement,Wn=Xt.showSearch,lr=Xt.onSearch,on=Xt.defaultOpen,Mn=Xt.autoFocus,an=Xt.labelInValue,xn=Xt.value,gn=Xt.inputValue,Sn=Xt.optionLabelProp,An=isMultiple(Rt),Nn=Wn!==void 0?Wn:An||Rt==="combobox",Fn=fn||convertChildrenToData(un);if(warning(Rt!=="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."),Rt==="tags"||Rt==="combobox"){var zn=Fn.some(function(Fr){return Fr.options?Fr.options.some(function(Qr){return typeof("value"in Qr?Qr.value:Qr.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(Rt!=="combobox"||!Sn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Rt==="combobox"||!Gn,"`backfill` only works with `combobox` mode."),warning(Rt==="combobox"||!kn,"`getInputElement` only work with `combobox` mode."),noteOnce(Rt!=="combobox"||!kn||!Xn||!$t,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),lr&&!Nn&&Rt!=="combobox"&&Rt!=="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."),xn!=null){var xr=toArray(xn);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(!An||Array.isArray(xn),"`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 Qr=Fr,Br=Qr.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 jr(Xt,Rt){if(Xt){var fn=function un(Gn){for(var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=0;$t<Gn.length;$t++){var kn=Gn[$t];if(kn[Rt==null?void 0:Rt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Xn&&Array.isArray(kn[Rt==null?void 0:Rt.options])&&un(kn[Rt==null?void 0:Rt.options],!0))break}};fn(Xt)}}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"],ar=["inputValue"];function nn(Xt){return!Xt||(0,ce.Z)(Xt)!=="object"}var qt=Se.forwardRef(function(Xt,Rt){var fn=Xt.id,un=Xt.mode,Gn=Xt.prefixCls,Xn=Gn===void 0?"rc-select":Gn,$t=Xt.backfill,kn=Xt.fieldNames,Wn=Xt.inputValue,lr=Xt.searchValue,on=Xt.onSearch,Mn=Xt.autoClearSearchValue,an=Mn===void 0?!0:Mn,xn=Xt.onSelect,gn=Xt.onDeselect,Sn=Xt.dropdownMatchSelectWidth,An=Sn===void 0?!0:Sn,Nn=Xt.filterOption,Fn=Xt.filterSort,zn=Xt.optionFilterProp,xr=Xt.optionLabelProp,mn=Xt.options,Fr=Xt.children,Qr=Xt.defaultActiveFirstOption,Br=Xt.menuItemSelectedIcon,bn=Xt.virtual,Jn=Xt.direction,sr=Xt.listHeight,Sr=sr===void 0?200:sr,mr=Xt.listItemHeight,Kr=mr===void 0?20:mr,ri=Xt.value,Rr=Xt.defaultValue,br=Xt.labelInValue,ur=Xt.onChange,vn=(0,ve.Z)(Xt,nr),cr=(0,zt.ZP)(fn),wn=Be(un),zr=!!(!mn&&Fr),$i=Se.useMemo(function(){return Nn===void 0&&un==="combobox"?!1:Nn},[Nn,un]),Mi=Se.useMemo(function(){return nt(kn,zr)},[JSON.stringify(kn),zr]),yo=(0,we.Z)("",{value:lr!==void 0?lr:Wn,postState:function(so){return so||""}}),no=(0,je.Z)(yo,2),Wr=no[0],Hr=no[1],wi=yn(mn,Fr,Mi,zn,xr),vi=wi.valueOptions,fr=wi.labelOptions,At=wi.options,Fi=Se.useCallback(function(bi){var so=Je(bi);return so.map(function(io){var Or,Ba,Ra,Cs,Il;if(nn(io))Or=io;else{var Ql;Ra=io.key,Ba=io.label,Or=(Ql=io.value)!==null&&Ql!==void 0?Ql:Ra}var wr=vi.get(Or);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:Or),Cs=wr==null?void 0:wr.disabled,Il=wr==null?void 0:wr.title,0)var $a}return{label:Ba,value:Or,key:Ra,disabled:Cs,title:Il}})},[Mi,xr,vi]),Ki=(0,we.Z)(Rr,{value:ri}),gi=(0,je.Z)(Ki,2),oo=gi[0],So=gi[1],qr=Se.useMemo(function(){var bi,so=Fi(oo);return un==="combobox"&&ut((bi=so[0])===null||bi===void 0?void 0:bi.value)?[]:so},[oo,Fi,un]),ii=gt(qr,vi),Oi=(0,je.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,ze.Z)((0,ze.Z)({},so),{},{label:(io=so.label)!==null&&io!==void 0?io:so.value})})},[un,Pi]),Vr=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 Zr=On(function(bi,so){var io,Or=so!=null?so:bi;return io={},(0,oe.Z)(io,Mi.value,bi),(0,oe.Z)(io,Mi.label,Or),io}),Yn=Se.useMemo(function(){if(un!=="tags")return At;var bi=(0,Mt.Z)(At),so=function(Or){return vi.has(Or)};return(0,Mt.Z)(Pi).sort(function(io,Or){return io.value<Or.value?-1:1}).forEach(function(io){var Or=io.value;so(Or)||bi.push(Zr(Or,io.label))}),bi},[Zr,At,vi,Pi,un]),ci=Ot(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:[Zr(Wr)].concat((0,Mt.Z)(ci))},[Zr,zn,un,ci,Wr,Mi]),Wo=Se.useMemo(function(){return Fn?(0,Mt.Z)(ro).sort(function(bi,so){return Fn(bi,so)}):ro},[ro,Fn]),_o=Se.useMemo(function(){return Xe(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 Or=br?io:io.map(function(Ra){return Ra.value}),Ba=io.map(function(Ra){return Ue(co(Ra.value))});ur(wn?Or:Or[0],wn?Ba:Ba[0])}},Pa=Se.useState(null),na=(0,je.Z)(Pa,2),os=na[0],Da=na[1],fs=Se.useState(0),Ln=(0,je.Z)(fs,2),Fa=Ln[0],rc=Ln[1],el=Qr!==void 0?Qr:un!=="combobox",xo=Se.useCallback(function(bi,so){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Or=io.source,Ba=Or===void 0?"keyboard":Or;rc(so),$t&&un==="combobox"&&bi!==null&&Ba==="keyboard"&&Da(String(bi))},[$t,un]),eo=function(so,io,Or){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,Ue(Bi)]};if(io&&xn){var Ra=Ba(),Cs=(0,je.Z)(Ra,2),Il=Cs[0],Ql=Cs[1];xn(Il,Ql)}else if(!io&&gn&&Or!=="clear"){var wr=Ba(),aa=(0,je.Z)(wr,2),$a=aa[0],Pl=aa[1];gn($a,Pl)}},ga=On(function(bi,so){var io,Or=wn?so.selected:!0;Or?io=wn?[].concat((0,Mt.Z)(Pi),[bi]):[bi]:io=Pi.filter(function(Ba){return Ba.value!==bi}),Xo(io),eo(bi,Or),un==="combobox"?Da(""):(!Be||an)&&(Hr(""),Da(""))}),jo=function(so,io){Xo(so);var Or=io.type,Ba=io.values;(Or==="remove"||Or==="clear")&&Ba.forEach(function(Ra){eo(Ra.value,!1,Or)})},Yi=function(so,io){if(Hr(so),Da(null),io.source==="submit"){var Or=(so||"").trim();if(Or){var Ba=Array.from(new Set([].concat((0,Mt.Z)(Vr),[Or])));Xo(Ba),eo(Or,!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 Or=Array.from(new Set([].concat((0,Mt.Z)(Vr),(0,Mt.Z)(io))));Xo(Or),Or.forEach(function(Ba){eo(Ba,!0)})},xs=Se.useMemo(function(){var bi=bn!==!1&&An!==!1;return(0,ze.Z)((0,ze.Z)({},wi),{},{flattenOptions:_o,onActiveValue:xo,defaultActiveFirstOption:el,onSelect:ga,menuItemSelectedIcon:Br,rawValues:Vr,fieldNames:Mi,virtual:bi,direction:Jn,listHeight:Sr,listItemHeight:Kr,childrenAsData:zr})},[wi,_o,xo,el,ga,Br,Vr,Mi,bn,An,Sr,Kr,zr]);return Se.createElement(Mr.Provider,{value:xs},Se.createElement(Ke,(0,et.Z)({},vn,{id:cr,prefixCls:Xn,ref:Rt,omitDomProps:ar,mode:un,displayValues:To,onDisplayValuesChange:jo,direction:Jn,searchValue:Wr,onSearch:Yi,autoClearSearchValue:an,onSearchSplit:No,dropdownMatchSelectWidth:An,OptionList:pr,emptyOptions:!_o.length,activeValue:os,activeDescendantId:"".concat(cr,"_list_").concat(Fa)})))}),Tt=qt;Tt.Option=Kn,Tt.OptGroup=er;var ln=Tt,Cn=ln},9296:function(_n,Pn,Ge){"use strict";Ge.r(Pn),Ge.d(Pn,{ResizableTextArea:function(){return De},default:function(){return ut}});var et=Ge(96663),Mt=Ge(44127),oe=Ge(90493),ze=Ge(20135),je=Ge(72071),ve=Ge(6620),ce=Ge(19127),we=Ge(92310),Me=Ge.n(we),Se=Ge(93681),Pe=Ge(5643),me=Ge(18929),xe=Ge(59301),fe=Ge(29301),z=Ge(34280),ee=Ge(16089),ae=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,re=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],le={},ue;function pe(dt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=dt.getAttribute("id")||dt.getAttribute("data-reactid")||dt.getAttribute("name");if(St&&le[qe])return le[qe];var it=window.getComputedStyle(dt),pt=it.getPropertyValue("box-sizing")||it.getPropertyValue("-moz-box-sizing")||it.getPropertyValue("-webkit-box-sizing"),wt=parseFloat(it.getPropertyValue("padding-bottom"))+parseFloat(it.getPropertyValue("padding-top")),xt=parseFloat(it.getPropertyValue("border-bottom-width"))+parseFloat(it.getPropertyValue("border-top-width")),ft=re.map(function(yt){return"".concat(yt,":").concat(it.getPropertyValue(yt))}).join(";"),mt={sizingStyle:ft,paddingSize:wt,borderSize:xt,boxSizing:pt};return St&&qe&&(le[qe]=mt),mt}function be(dt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=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)),dt.getAttribute("wrap")?ue.setAttribute("wrap",dt.getAttribute("wrap")):ue.removeAttribute("wrap");var pt=pe(dt,St),wt=pt.paddingSize,xt=pt.borderSize,ft=pt.boxSizing,mt=pt.sizingStyle;ue.setAttribute("style","".concat(mt,";").concat(ae)),ue.value=dt.value||dt.placeholder||"";var yt=void 0,It=void 0,kt,Ut=ue.scrollHeight;if(ft==="border-box"?Ut+=xt:ft==="content-box"&&(Ut-=wt),qe!==null||it!==null){ue.value=" ";var Pt=ue.scrollHeight-wt;qe!==null&&(yt=Pt*qe,ft==="border-box"&&(yt=yt+wt+xt),Ut=Math.max(yt,Ut)),it!==null&&(It=Pt*it,ft==="border-box"&&(It=It+wt+xt),kt=Ut>It?"":"hidden",Ut=Math.min(It,Ut))}var Ct={height:Ut,overflowY:kt,resize:"none"};return yt&&(Ct.minHeight=yt),It&&(Ct.maxHeight=It),Ct}var Ce=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,Oe=1,Le=2,Ne=xe.forwardRef(function(dt,St){var qe=dt,it=qe.prefixCls,pt=qe.onPressEnter,wt=qe.defaultValue,xt=qe.value,ft=qe.autoSize,mt=qe.onResize,yt=qe.className,It=qe.style,kt=qe.disabled,Ut=qe.onChange,Pt=qe.onInternalAutoSize,Ct=(0,ve.Z)(qe,Ce),st=(0,me.Z)(wt,{value:xt,postState:function(er){return er!=null?er:""}}),bt=(0,je.Z)(st,2),at=bt[0],ct=bt[1],Lt=function(er){ct(er.target.value),Ut==null||Ut(er)},vt=xe.useRef();xe.useImperativeHandle(St,function(){return{textArea:vt.current}});var nt=xe.useMemo(function(){return ft&&(0,ze.Z)(ft)==="object"?[ft.minRows,ft.maxRows]:[]},[ft]),Xe=(0,je.Z)(nt,2),Ue=Xe[0],$e=Xe[1],tt=!!ft,We=function(){try{if(document.activeElement===vt.current){var er=vt.current,Tr=er.selectionStart,Kn=er.selectionEnd,Nr=er.scrollTop;vt.current.setSelectionRange(Tr,Kn),vt.current.scrollTop=Nr}}catch(kr){}},Be=xe.useState(Le),Te=(0,je.Z)(Be,2),Ke=Te[0],gt=Te[1],Ze=xe.useState(),Ot=(0,je.Z)(Ze,2),zt=Ot[0],Yt=Ot[1],jt=function(){gt(Ie)};(0,z.Z)(function(){tt&&jt()},[xt,Ue,$e,tt]),(0,z.Z)(function(){if(Ke===Ie)gt(Oe);else if(Ke===Oe){var or=be(vt.current,!1,Ue,$e);gt(Le),Yt(or)}else We()},[Ke]);var Kt=xe.useRef(),en=function(){ee.Z.cancel(Kt.current)},cn=function(er){Ke===Le&&(mt==null||mt(er),ft&&(en(),Kt.current=(0,ee.Z)(function(){jt()})))};xe.useEffect(function(){return en},[]);var yn=tt?zt:null,On=(0,Mt.Z)((0,Mt.Z)({},It),yn);return(Ke===Ie||Ke===Oe)&&(On.overflowY="hidden",On.overflowX="hidden"),xe.createElement(fe.Z,{onResize:cn,disabled:!(ft||mt)},xe.createElement("textarea",(0,et.Z)({},Ct,{ref:vt,style:On,className:Me()(it,yt,(0,oe.Z)({},"".concat(it,"-disabled"),kt)),disabled:kt,value:at,onChange:Lt})))}),De=Ne,Re=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Je(dt,St){return(0,ce.Z)(dt||"").slice(0,St).join("")}function _e(dt,St,qe,it){var pt=qe;return dt?pt=Je(qe,it):(0,ce.Z)(St||"").length<qe.length&&(0,ce.Z)(qe||"").length>it&&(pt=St),pt}var Ve=xe.forwardRef(function(dt,St){var qe,it=dt.defaultValue,pt=dt.value,wt=dt.onFocus,xt=dt.onBlur,ft=dt.onChange,mt=dt.allowClear,yt=dt.maxLength,It=dt.onCompositionStart,kt=dt.onCompositionEnd,Ut=dt.suffix,Pt=dt.prefixCls,Ct=Pt===void 0?"rc-textarea":Pt,st=dt.classes,bt=dt.showCount,at=dt.className,ct=dt.style,Lt=dt.disabled,vt=dt.hidden,nt=dt.classNames,Xe=dt.styles,Ue=dt.onResize,$e=(0,ve.Z)(dt,Re),tt=(0,me.Z)(it,{value:pt,defaultValue:it}),We=(0,je.Z)(tt,2),Be=We[0],Te=We[1],Ke=(0,xe.useRef)(null),gt=xe.useState(!1),Ze=(0,je.Z)(gt,2),Ot=Ze[0],zt=Ze[1],Yt=xe.useState(!1),jt=(0,je.Z)(Yt,2),Kt=jt[0],en=jt[1],cn=xe.useRef(),yn=xe.useRef(0),On=xe.useState(null),or=(0,je.Z)(On,2),er=or[0],Tr=or[1],Kn=function(){var nn;(nn=Ke.current)===null||nn===void 0||nn.textArea.focus()};(0,xe.useImperativeHandle)(St,function(){return{resizableTextArea:Ke.current,focus:Kn,blur:function(){var nn;(nn=Ke.current)===null||nn===void 0||nn.textArea.blur()}}}),(0,xe.useEffect)(function(){zt(function(ar){return!Lt&&ar})},[Lt]);var Nr=Number(yt)>0,kr=function(nn){en(!0),cn.current=Be,yn.current=nn.currentTarget.selectionStart,It==null||It(nn)},Ur=function(nn){en(!1);var qt=nn.currentTarget.value;if(Nr){var Tt,ln=yn.current>=yt+1||yn.current===((Tt=cn.current)===null||Tt===void 0?void 0:Tt.length);qt=_e(ln,cn.current,qt,yt)}qt!==Be&&(Te(qt),(0,Pe.rJ)(nn.currentTarget,nn,ft,qt)),kt==null||kt(nn)},Jr=function(nn){var qt=nn.target.value;if(!Kt&&Nr){var Tt=nn.target.selectionStart>=yt+1||nn.target.selectionStart===qt.length||!nn.target.selectionStart;qt=_e(Tt,Be,qt,yt)}Te(qt),(0,Pe.rJ)(nn.currentTarget,nn,ft,qt)},Mr=function(nn){var qt=$e.onPressEnter,Tt=$e.onKeyDown;nn.key==="Enter"&&qt&&qt(nn),Tt==null||Tt(nn)},di=function(nn){zt(!0),wt==null||wt(nn)},Dr=function(nn){zt(!1),xt==null||xt(nn)},ot=function(nn){var qt;Te(""),Kn(),(0,Pe.rJ)((qt=Ke.current)===null||qt===void 0?void 0:qt.textArea,nn,ft)},Ci=(0,Pe.D7)(Be);!Kt&&Nr&&pt==null&&(Ci=Je(Ci,yt));var xi=Ut,pr;if(bt){var Pr=(0,ce.Z)(Ci).length;(0,ze.Z)(bt)==="object"?pr=bt.formatter({value:Ci,count:Pr,maxLength:yt}):pr="".concat(Pr).concat(Nr?" / ".concat(yt):""),xi=xe.createElement(xe.Fragment,null,xi,xe.createElement("span",{className:Me()("".concat(Ct,"-data-count"),nt==null?void 0:nt.count),style:Xe==null?void 0:Xe.count},pr))}var jr=function(nn){var qt;Ue==null||Ue(nn),(qt=Ke.current)!==null&&qt!==void 0&&qt.textArea.style.height&&Tr(!0)},Li=!$e.autoSize&&!bt&&!mt,nr=xe.createElement(Se.BaseInput,{value:Ci,allowClear:mt,handleReset:ot,suffix:xi,prefixCls:Ct,classes:{affixWrapper:Me()(st==null?void 0:st.affixWrapper,(qe={},(0,oe.Z)(qe,"".concat(Ct,"-show-count"),bt),(0,oe.Z)(qe,"".concat(Ct,"-textarea-allow-clear"),mt),qe))},disabled:Lt,focused:Ot,className:at,style:(0,Mt.Z)((0,Mt.Z)({},ct),er&&!Li?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pr=="string"?pr:void 0}},hidden:vt,inputElement:xe.createElement(De,(0,et.Z)({},$e,{onKeyDown:Mr,onChange:Jr,onFocus:di,onBlur:Dr,onCompositionStart:kr,onCompositionEnd:Ur,className:nt==null?void 0:nt.textarea,style:(0,Mt.Z)((0,Mt.Z)({},Xe==null?void 0:Xe.textarea),{},{resize:ct==null?void 0:ct.resize}),disabled:Lt,prefixCls:Ct,onResize:jr,ref:Ke}))});return nr}),Qe=Ve,ut=Qe},39417:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Oe}});var et=Ge(96663),Mt=Ge(90493),oe=Ge(6620),ze=Ge(44127),je=Ge(52884),ve=Ge(95727),ce=Ge(89866),we=Ge(65711),Me=Ge(85745),Se=Ge(92310),Pe=Ge.n(Se),me=Ge(26112),xe=Ge(59301),fe=Ge(39378),z=function(Ne){for(var De=Ne.prefixCls,Re=Ne.level,Je=Ne.isStart,_e=Ne.isEnd,Ve="".concat(De,"-indent-unit"),Qe=[],ut=0;ut<Re;ut+=1){var dt;Qe.push(xe.createElement("span",{key:ut,className:Pe()(Ve,(dt={},(0,Mt.Z)(dt,"".concat(Ve,"-start"),Je[ut]),(0,Mt.Z)(dt,"".concat(Ve,"-end"),_e[ut]),dt))}))}return xe.createElement("span",{"aria-hidden":"true",className:"".concat(De,"-indent")},Qe)},ee=xe.memo(z),ae=Ge(67841),re=Ge(71430),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",pe="close",be="---",Ce=function(Le){(0,we.Z)(De,Le);var Ne=(0,Me.Z)(De);function De(){var Re;(0,je.Z)(this,De);for(var Je=arguments.length,_e=new Array(Je),Ve=0;Ve<Je;Ve++)_e[Ve]=arguments[Ve];return Re=Ne.call.apply(Ne,[this].concat(_e)),Re.state={dragNodeHighlight:!1},Re.selectHandle=void 0,Re.cacheIndent=void 0,Re.onSelectorClick=function(Qe){var ut=Re.props.context.onNodeClick;ut(Qe,(0,re.F)(Re.props)),Re.isSelectable()?Re.onSelect(Qe):Re.onCheck(Qe)},Re.onSelectorDoubleClick=function(Qe){var ut=Re.props.context.onNodeDoubleClick;ut(Qe,(0,re.F)(Re.props))},Re.onSelect=function(Qe){if(!Re.isDisabled()){var ut=Re.props.context.onNodeSelect;ut(Qe,(0,re.F)(Re.props))}},Re.onCheck=function(Qe){if(!Re.isDisabled()){var ut=Re.props,dt=ut.disableCheckbox,St=ut.checked,qe=Re.props.context.onNodeCheck;if(!(!Re.isCheckable()||dt)){var it=!St;qe(Qe,(0,re.F)(Re.props),it)}}},Re.onMouseEnter=function(Qe){var ut=Re.props.context.onNodeMouseEnter;ut(Qe,(0,re.F)(Re.props))},Re.onMouseLeave=function(Qe){var ut=Re.props.context.onNodeMouseLeave;ut(Qe,(0,re.F)(Re.props))},Re.onContextMenu=function(Qe){var ut=Re.props.context.onNodeContextMenu;ut(Qe,(0,re.F)(Re.props))},Re.onDragStart=function(Qe){var ut=Re.props.context.onNodeDragStart;Qe.stopPropagation(),Re.setState({dragNodeHighlight:!0}),ut(Qe,(0,ce.Z)(Re));try{Qe.dataTransfer.setData("text/plain","")}catch(dt){}},Re.onDragEnter=function(Qe){var ut=Re.props.context.onNodeDragEnter;Qe.preventDefault(),Qe.stopPropagation(),ut(Qe,(0,ce.Z)(Re))},Re.onDragOver=function(Qe){var ut=Re.props.context.onNodeDragOver;Qe.preventDefault(),Qe.stopPropagation(),ut(Qe,(0,ce.Z)(Re))},Re.onDragLeave=function(Qe){var ut=Re.props.context.onNodeDragLeave;Qe.stopPropagation(),ut(Qe,(0,ce.Z)(Re))},Re.onDragEnd=function(Qe){var ut=Re.props.context.onNodeDragEnd;Qe.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ut(Qe,(0,ce.Z)(Re))},Re.onDrop=function(Qe){var ut=Re.props.context.onNodeDrop;Qe.preventDefault(),Qe.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ut(Qe,(0,ce.Z)(Re))},Re.onExpand=function(Qe){var ut=Re.props,dt=ut.loading,St=ut.context.onNodeExpand;dt||St(Qe,(0,re.F)(Re.props))},Re.setSelectHandle=function(Qe){Re.selectHandle=Qe},Re.getNodeState=function(){var Qe=Re.props.expanded;return Re.isLeaf()?null:Qe?ue:pe},Re.hasChildren=function(){var Qe=Re.props.eventKey,ut=Re.props.context.keyEntities,dt=(0,ae.Z)(ut,Qe)||{},St=dt.children;return!!(St||[]).length},Re.isLeaf=function(){var Qe=Re.props,ut=Qe.isLeaf,dt=Qe.loaded,St=Re.props.context.loadData,qe=Re.hasChildren();return ut===!1?!1:ut||!St&&!qe||St&&dt&&!qe},Re.isDisabled=function(){var Qe=Re.props.disabled,ut=Re.props.context.disabled;return!!(ut||Qe)},Re.isCheckable=function(){var Qe=Re.props.checkable,ut=Re.props.context.checkable;return!ut||Qe===!1?!1:ut},Re.syncLoadData=function(Qe){var ut=Qe.expanded,dt=Qe.loading,St=Qe.loaded,qe=Re.props.context,it=qe.loadData,pt=qe.onNodeLoad;dt||it&&ut&&!Re.isLeaf()&&!Re.hasChildren()&&!St&&pt((0,re.F)(Re.props))},Re.isDraggable=function(){var Qe=Re.props,ut=Qe.data,dt=Qe.context.draggable;return!!(dt&&(!dt.nodeDraggable||dt.nodeDraggable(ut)))},Re.renderDragHandler=function(){var Qe=Re.props.context,ut=Qe.draggable,dt=Qe.prefixCls;return ut!=null&&ut.icon?xe.createElement("span",{className:"".concat(dt,"-draggable-icon")},ut.icon):null},Re.renderSwitcherIconDom=function(Qe){var ut=Re.props.switcherIcon,dt=Re.props.context.switcherIcon,St=ut||dt;return typeof St=="function"?St((0,ze.Z)((0,ze.Z)({},Re.props),{},{isLeaf:Qe})):St},Re.renderSwitcher=function(){var Qe=Re.props.expanded,ut=Re.props.context.prefixCls;if(Re.isLeaf()){var dt=Re.renderSwitcherIconDom(!0);return dt!==!1?xe.createElement("span",{className:Pe()("".concat(ut,"-switcher"),"".concat(ut,"-switcher-noop"))},dt):null}var St=Pe()("".concat(ut,"-switcher"),"".concat(ut,"-switcher_").concat(Qe?ue:pe)),qe=Re.renderSwitcherIconDom(!1);return qe!==!1?xe.createElement("span",{onClick:Re.onExpand,className:St},qe):null},Re.renderCheckbox=function(){var Qe=Re.props,ut=Qe.checked,dt=Qe.halfChecked,St=Qe.disableCheckbox,qe=Re.props.context.prefixCls,it=Re.isDisabled(),pt=Re.isCheckable();if(!pt)return null;var wt=typeof pt!="boolean"?pt:null;return xe.createElement("span",{className:Pe()("".concat(qe,"-checkbox"),ut&&"".concat(qe,"-checkbox-checked"),!ut&&dt&&"".concat(qe,"-checkbox-indeterminate"),(it||St)&&"".concat(qe,"-checkbox-disabled")),onClick:Re.onCheck},wt)},Re.renderIcon=function(){var Qe=Re.props.loading,ut=Re.props.context.prefixCls;return xe.createElement("span",{className:Pe()("".concat(ut,"-iconEle"),"".concat(ut,"-icon__").concat(Re.getNodeState()||"docu"),Qe&&"".concat(ut,"-icon_loading"))})},Re.renderSelector=function(){var Qe=Re.state.dragNodeHighlight,ut=Re.props,dt=ut.title,St=dt===void 0?be:dt,qe=ut.selected,it=ut.icon,pt=ut.loading,wt=ut.data,xt=Re.props.context,ft=xt.prefixCls,mt=xt.showIcon,yt=xt.icon,It=xt.loadData,kt=xt.titleRender,Ut=Re.isDisabled(),Pt="".concat(ft,"-node-content-wrapper"),Ct;if(mt){var st=it||yt;Ct=st?xe.createElement("span",{className:Pe()("".concat(ft,"-iconEle"),"".concat(ft,"-icon__customize"))},typeof st=="function"?st(Re.props):st):Re.renderIcon()}else It&&pt&&(Ct=Re.renderIcon());var bt;typeof St=="function"?bt=St(wt):kt?bt=kt(wt):bt=St;var at=xe.createElement("span",{className:"".concat(ft,"-title")},bt);return xe.createElement("span",{ref:Re.setSelectHandle,title:typeof St=="string"?St:"",className:Pe()("".concat(Pt),"".concat(Pt,"-").concat(Re.getNodeState()||"normal"),!Ut&&(qe||Qe)&&"".concat(ft,"-node-selected")),onMouseEnter:Re.onMouseEnter,onMouseLeave:Re.onMouseLeave,onContextMenu:Re.onContextMenu,onClick:Re.onSelectorClick,onDoubleClick:Re.onSelectorDoubleClick},Ct,at,Re.renderDropIndicator())},Re.renderDropIndicator=function(){var Qe=Re.props,ut=Qe.disabled,dt=Qe.eventKey,St=Re.props.context,qe=St.draggable,it=St.dropLevelOffset,pt=St.dropPosition,wt=St.prefixCls,xt=St.indent,ft=St.dropIndicatorRender,mt=St.dragOverNodeKey,yt=St.direction,It=!!qe,kt=!ut&&It&&mt===dt,Ut=xt!=null?xt:Re.cacheIndent;return Re.cacheIndent=xt,kt?ft({dropPosition:pt,dropLevelOffset:it,indent:Ut,prefixCls:wt,direction:yt}):null},Re}return(0,ve.Z)(De,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Je=this.props.selectable,_e=this.props.context.selectable;return typeof Je=="boolean"?Je:_e}},{key:"render",value:function(){var Je,_e=this.props,Ve=_e.eventKey,Qe=_e.className,ut=_e.style,dt=_e.dragOver,St=_e.dragOverGapTop,qe=_e.dragOverGapBottom,it=_e.isLeaf,pt=_e.isStart,wt=_e.isEnd,xt=_e.expanded,ft=_e.selected,mt=_e.checked,yt=_e.halfChecked,It=_e.loading,kt=_e.domRef,Ut=_e.active,Pt=_e.data,Ct=_e.onMouseMove,st=_e.selectable,bt=(0,oe.Z)(_e,le),at=this.props.context,ct=at.prefixCls,Lt=at.filterTreeNode,vt=at.keyEntities,nt=at.dropContainerKey,Xe=at.dropTargetKey,Ue=at.draggingNodeKey,$e=this.isDisabled(),tt=(0,me.Z)(bt,{aria:!0,data:!0}),We=(0,ae.Z)(vt,Ve)||{},Be=We.level,Te=wt[wt.length-1],Ke=this.isDraggable(),gt=!$e&&Ke,Ze=Ue===Ve,Ot=st!==void 0?{"aria-selected":!!st}:void 0;return xe.createElement("div",(0,et.Z)({ref:kt,className:Pe()(Qe,"".concat(ct,"-treenode"),(Je={},(0,Mt.Z)(Je,"".concat(ct,"-treenode-disabled"),$e),(0,Mt.Z)(Je,"".concat(ct,"-treenode-switcher-").concat(xt?"open":"close"),!it),(0,Mt.Z)(Je,"".concat(ct,"-treenode-checkbox-checked"),mt),(0,Mt.Z)(Je,"".concat(ct,"-treenode-checkbox-indeterminate"),yt),(0,Mt.Z)(Je,"".concat(ct,"-treenode-selected"),ft),(0,Mt.Z)(Je,"".concat(ct,"-treenode-loading"),It),(0,Mt.Z)(Je,"".concat(ct,"-treenode-active"),Ut),(0,Mt.Z)(Je,"".concat(ct,"-treenode-leaf-last"),Te),(0,Mt.Z)(Je,"".concat(ct,"-treenode-draggable"),Ke),(0,Mt.Z)(Je,"dragging",Ze),(0,Mt.Z)(Je,"drop-target",Xe===Ve),(0,Mt.Z)(Je,"drop-container",nt===Ve),(0,Mt.Z)(Je,"drag-over",!$e&&dt),(0,Mt.Z)(Je,"drag-over-gap-top",!$e&&St),(0,Mt.Z)(Je,"drag-over-gap-bottom",!$e&&qe),(0,Mt.Z)(Je,"filter-node",Lt&&Lt((0,re.F)(this.props))),Je)),style:ut,draggable:gt,"aria-grabbed":Ze,onDragStart:gt?this.onDragStart:void 0,onDragEnter:Ke?this.onDragEnter:void 0,onDragOver:Ke?this.onDragOver:void 0,onDragLeave:Ke?this.onDragLeave:void 0,onDrop:Ke?this.onDrop:void 0,onDragEnd:Ke?this.onDragEnd:void 0,onMouseMove:Ct},Ot,tt),xe.createElement(ee,{prefixCls:ct,level:Be,isStart:pt,isEnd:wt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),De}(xe.Component),Ie=function(Ne){return xe.createElement(fe.k.Consumer,null,function(De){return xe.createElement(Ce,(0,et.Z)({},Ne,{context:De}))})};Ie.displayName="TreeNode",Ie.isTreeNode=1;var Oe=Ie},39378:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{k:function(){return Mt}});var et=Ge(59301),Mt=et.createContext(null)},43858:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{O:function(){return Oe.Z},Z:function(){return at}});var et=Ge(96663),Mt=Ge(90493),oe=Ge(20135),ze=Ge(44127),je=Ge(19127),ve=Ge(52884),ce=Ge(95727),we=Ge(89866),Me=Ge(65711),Se=Ge(85745),Pe=Ge(92310),me=Ge.n(Pe),xe=Ge(10228),fe=Ge(26112),z=Ge(48736),ee=Ge(59301),ae=Ge(39378);function re(ct){var Lt=ct.dropPosition,vt=ct.dropLevelOffset,nt=ct.indent,Xe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Lt){case-1:Xe.top=0,Xe.left=-vt*nt;break;case 1:Xe.bottom=0,Xe.left=-vt*nt;break;case 0:Xe.bottom=0,Xe.left=nt;break}return ee.createElement("div",{style:Xe})}function le(ct){if(ct==null)throw new TypeError("Cannot destructure "+ct)}var ue=Ge(72071),pe=Ge(6620),be=Ge(34280),Ce=Ge(45680),Ie=Ge(77900),Oe=Ge(39417);function Le(ct,Lt){var vt=ee.useState(!1),nt=(0,ue.Z)(vt,2),Xe=nt[0],Ue=nt[1];ee.useLayoutEffect(function(){if(Xe)return ct(),function(){Lt()}},[Xe]),ee.useLayoutEffect(function(){return Ue(!0),function(){Ue(!1)}},[])}var Ne=Ge(71430),De=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Re=function(Lt,vt){var nt=Lt.className,Xe=Lt.style,Ue=Lt.motion,$e=Lt.motionNodes,tt=Lt.motionType,We=Lt.onMotionStart,Be=Lt.onMotionEnd,Te=Lt.active,Ke=Lt.treeNodeRequiredProps,gt=(0,pe.Z)(Lt,De),Ze=ee.useState(!0),Ot=(0,ue.Z)(Ze,2),zt=Ot[0],Yt=Ot[1],jt=ee.useContext(ae.k),Kt=jt.prefixCls,en=$e&&tt!=="hide";(0,be.Z)(function(){$e&&en!==zt&&Yt(en)},[$e]);var cn=function(){$e&&We()},yn=ee.useRef(!1),On=function(){$e&&!yn.current&&(yn.current=!0,Be())};Le(cn,On);var or=function(Tr){en===Tr&&On()};return $e?ee.createElement(Ie.default,(0,et.Z)({ref:vt,visible:zt},Ue,{motionAppear:tt==="show",onVisibleChanged:or}),function(er,Tr){var Kn=er.className,Nr=er.style;return ee.createElement("div",{ref:Tr,className:me()("".concat(Kt,"-treenode-motion"),Kn),style:Nr},$e.map(function(kr){var Ur=(0,et.Z)({},(le(kr.data),kr.data)),Jr=kr.title,Mr=kr.key,di=kr.isStart,Dr=kr.isEnd;delete Ur.children;var ot=(0,Ne.H8)(Mr,Ke);return ee.createElement(Oe.Z,(0,et.Z)({},Ur,ot,{title:Jr,active:Te,data:kr.data,key:Mr,isStart:di,isEnd:Dr}))}))}):ee.createElement(Oe.Z,(0,et.Z)({domRef:vt,className:nt,style:Xe},gt,{active:Te}))};Re.displayName="MotionTreeNode";var Je=ee.forwardRef(Re),_e=Je;function Ve(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],vt=ct.length,nt=Lt.length;if(Math.abs(vt-nt)!==1)return{add:!1,key:null};function Xe(Ue,$e){var tt=new Map;Ue.forEach(function(Be){tt.set(Be,!0)});var We=$e.filter(function(Be){return!tt.has(Be)});return We.length===1?We[0]:null}return vt<nt?{add:!0,key:Xe(ct,Lt)}:{add:!1,key:Xe(Lt,ct)}}function Qe(ct,Lt,vt){var nt=ct.findIndex(function(tt){return tt.key===vt}),Xe=ct[nt+1],Ue=Lt.findIndex(function(tt){return tt.key===vt});if(Xe){var $e=Lt.findIndex(function(tt){return tt.key===Xe.key});return Lt.slice(Ue+1,$e)}return Lt.slice(Ue+1)}var ut=["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"],dt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},St=function(){},qe="RC_TREE_MOTION_".concat(Math.random()),it={key:qe},pt={key:qe,level:0,index:0,pos:"0",node:it,nodes:[it]},wt={parent:null,children:[],pos:pt.pos,data:it,title:null,key:qe,isStart:[],isEnd:[]};function xt(ct,Lt,vt,nt){return Lt===!1||!vt?ct:ct.slice(0,Math.ceil(vt/nt)+1)}function ft(ct){var Lt=ct.key,vt=ct.pos;return(0,Ne.km)(Lt,vt)}function mt(ct){for(var Lt=String(ct.data.key),vt=ct;vt.parent;)vt=vt.parent,Lt="".concat(vt.data.key," > ").concat(Lt);return Lt}var yt=ee.forwardRef(function(ct,Lt){var vt=ct.prefixCls,nt=ct.data,Xe=ct.selectable,Ue=ct.checkable,$e=ct.expandedKeys,tt=ct.selectedKeys,We=ct.checkedKeys,Be=ct.loadedKeys,Te=ct.loadingKeys,Ke=ct.halfCheckedKeys,gt=ct.keyEntities,Ze=ct.disabled,Ot=ct.dragging,zt=ct.dragOverNodeKey,Yt=ct.dropPosition,jt=ct.motion,Kt=ct.height,en=ct.itemHeight,cn=ct.virtual,yn=ct.focusable,On=ct.activeItem,or=ct.focused,er=ct.tabIndex,Tr=ct.onKeyDown,Kn=ct.onFocus,Nr=ct.onBlur,kr=ct.onActiveChange,Ur=ct.onListChangeStart,Jr=ct.onListChangeEnd,Mr=(0,pe.Z)(ct,ut),di=ee.useRef(null),Dr=ee.useRef(null);ee.useImperativeHandle(Lt,function(){return{scrollTo:function(Mn){di.current.scrollTo(Mn)},getIndentWidth:function(){return Dr.current.offsetWidth}}});var ot=ee.useState($e),Ci=(0,ue.Z)(ot,2),xi=Ci[0],pr=Ci[1],Pr=ee.useState(nt),jr=(0,ue.Z)(Pr,2),Li=jr[0],nr=jr[1],ar=ee.useState(nt),nn=(0,ue.Z)(ar,2),qt=nn[0],Tt=nn[1],ln=ee.useState([]),Cn=(0,ue.Z)(ln,2),Xt=Cn[0],Rt=Cn[1],fn=ee.useState(null),un=(0,ue.Z)(fn,2),Gn=un[0],Xn=un[1],$t=ee.useRef(nt);$t.current=nt;function kn(){var on=$t.current;nr(on),Tt(on),Rt([]),Xn(null),Jr()}(0,be.Z)(function(){pr($e);var on=Ve(xi,$e);if(on.key!==null)if(on.add){var Mn=Li.findIndex(function(Nn){var Fn=Nn.key;return Fn===on.key}),an=xt(Qe(Li,nt,on.key),cn,Kt,en),xn=Li.slice();xn.splice(Mn+1,0,wt),Tt(xn),Rt(an),Xn("show")}else{var gn=nt.findIndex(function(Nn){var Fn=Nn.key;return Fn===on.key}),Sn=xt(Qe(nt,Li,on.key),cn,Kt,en),An=nt.slice();An.splice(gn+1,0,wt),Tt(An),Rt(Sn),Xn("hide")}else Li!==nt&&(nr(nt),Tt(nt))},[$e,nt]),ee.useEffect(function(){Ot||kn()},[Ot]);var Wn=jt?qt:nt,lr={expandedKeys:$e,selectedKeys:tt,loadedKeys:Be,loadingKeys:Te,checkedKeys:We,halfCheckedKeys:Ke,dragOverNodeKey:zt,dropPosition:Yt,keyEntities:gt};return ee.createElement(ee.Fragment,null,or&&On&&ee.createElement("span",{style:dt,"aria-live":"assertive"},mt(On)),ee.createElement("div",null,ee.createElement("input",{style:dt,disabled:yn===!1||Ze,tabIndex:yn!==!1?er:null,onKeyDown:Tr,onFocus:Kn,onBlur:Nr,value:"",onChange:St,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(vt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(vt,"-indent")},ee.createElement("div",{ref:Dr,className:"".concat(vt,"-indent-unit")}))),ee.createElement(Ce.Z,(0,et.Z)({},Mr,{data:Wn,itemKey:ft,height:Kt,fullHeight:!1,virtual:cn,itemHeight:en,prefixCls:"".concat(vt,"-list"),ref:di,onVisibleChange:function(Mn,an){var xn=new Set(Mn),gn=an.filter(function(Sn){return!xn.has(Sn)});gn.some(function(Sn){return ft(Sn)===qe})&&kn()}}),function(on){var Mn=on.pos,an=(0,et.Z)({},(le(on.data),on.data)),xn=on.title,gn=on.key,Sn=on.isStart,An=on.isEnd,Nn=(0,Ne.km)(gn,Mn);delete an.key,delete an.children;var Fn=(0,Ne.H8)(Nn,lr);return ee.createElement(_e,(0,et.Z)({},an,Fn,{title:xn,active:!!On&&gn===On.key,pos:Mn,data:on.data,isStart:Sn,isEnd:An,motion:jt,motionNodes:gn===qe?Xt:null,motionType:Gn,onMotionStart:Ur,onMotionEnd:kn,treeNodeRequiredProps:lr,onMouseMove:function(){kr(null)}}))}))});yt.displayName="NodeList";var It=yt,kt=Ge(35654),Ut=Ge(90782),Pt=Ge(67841),Ct=10,st=function(ct){(0,Me.Z)(vt,ct);var Lt=(0,Se.Z)(vt);function vt(){var nt;(0,ve.Z)(this,vt);for(var Xe=arguments.length,Ue=new Array(Xe),$e=0;$e<Xe;$e++)Ue[$e]=arguments[$e];return nt=Lt.call.apply(Lt,[this].concat(Ue)),nt.destroyed=!1,nt.delayedDragEnterLogic=void 0,nt.loadingRetryTimes={},nt.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,Ne.w$)()},nt.dragStartMousePosition=null,nt.dragNode=void 0,nt.currentMouseOverDroppableNodeKey=null,nt.listRef=ee.createRef(),nt.onNodeDragStart=function(tt,We){var Be=nt.state,Te=Be.expandedKeys,Ke=Be.keyEntities,gt=nt.props.onDragStart,Ze=We.props.eventKey;nt.dragNode=We,nt.dragStartMousePosition={x:tt.clientX,y:tt.clientY};var Ot=(0,kt._5)(Te,Ze);nt.setState({draggingNodeKey:Ze,dragChildrenKeys:(0,kt.wA)(Ze,Ke),indent:nt.listRef.current.getIndentWidth()}),nt.setExpandedKeys(Ot),window.addEventListener("dragend",nt.onWindowDragEnd),gt==null||gt({event:tt,node:(0,Ne.F)(We.props)})},nt.onNodeDragEnter=function(tt,We){var Be=nt.state,Te=Be.expandedKeys,Ke=Be.keyEntities,gt=Be.dragChildrenKeys,Ze=Be.flattenNodes,Ot=Be.indent,zt=nt.props,Yt=zt.onDragEnter,jt=zt.onExpand,Kt=zt.allowDrop,en=zt.direction,cn=We.props,yn=cn.pos,On=cn.eventKey,or=(0,we.Z)(nt),er=or.dragNode;if(nt.currentMouseOverDroppableNodeKey!==On&&(nt.currentMouseOverDroppableNodeKey=On),!er){nt.resetDragState();return}var Tr=(0,kt.OM)(tt,er,We,Ot,nt.dragStartMousePosition,Kt,Ze,Ke,Te,en),Kn=Tr.dropPosition,Nr=Tr.dropLevelOffset,kr=Tr.dropTargetKey,Ur=Tr.dropContainerKey,Jr=Tr.dropTargetPos,Mr=Tr.dropAllowed,di=Tr.dragOverNodeKey;if(gt.indexOf(kr)!==-1||!Mr){nt.resetDragState();return}if(nt.delayedDragEnterLogic||(nt.delayedDragEnterLogic={}),Object.keys(nt.delayedDragEnterLogic).forEach(function(Dr){clearTimeout(nt.delayedDragEnterLogic[Dr])}),er.props.eventKey!==We.props.eventKey&&(tt.persist(),nt.delayedDragEnterLogic[yn]=window.setTimeout(function(){if(nt.state.draggingNodeKey!==null){var Dr=(0,je.Z)(Te),ot=(0,Pt.Z)(Ke,We.props.eventKey);ot&&(ot.children||[]).length&&(Dr=(0,kt.L0)(Te,We.props.eventKey)),"expandedKeys"in nt.props||nt.setExpandedKeys(Dr),jt==null||jt(Dr,{node:(0,Ne.F)(We.props),expanded:!0,nativeEvent:tt.nativeEvent})}},800)),er.props.eventKey===kr&&Nr===0){nt.resetDragState();return}nt.setState({dragOverNodeKey:di,dropPosition:Kn,dropLevelOffset:Nr,dropTargetKey:kr,dropContainerKey:Ur,dropTargetPos:Jr,dropAllowed:Mr}),Yt==null||Yt({event:tt,node:(0,Ne.F)(We.props),expandedKeys:Te})},nt.onNodeDragOver=function(tt,We){var Be=nt.state,Te=Be.dragChildrenKeys,Ke=Be.flattenNodes,gt=Be.keyEntities,Ze=Be.expandedKeys,Ot=Be.indent,zt=nt.props,Yt=zt.onDragOver,jt=zt.allowDrop,Kt=zt.direction,en=(0,we.Z)(nt),cn=en.dragNode;if(cn){var yn=(0,kt.OM)(tt,cn,We,Ot,nt.dragStartMousePosition,jt,Ke,gt,Ze,Kt),On=yn.dropPosition,or=yn.dropLevelOffset,er=yn.dropTargetKey,Tr=yn.dropContainerKey,Kn=yn.dropAllowed,Nr=yn.dropTargetPos,kr=yn.dragOverNodeKey;Te.indexOf(er)!==-1||!Kn||(cn.props.eventKey===er&&or===0?nt.state.dropPosition===null&&nt.state.dropLevelOffset===null&&nt.state.dropTargetKey===null&&nt.state.dropContainerKey===null&&nt.state.dropTargetPos===null&&nt.state.dropAllowed===!1&&nt.state.dragOverNodeKey===null||nt.resetDragState():On===nt.state.dropPosition&&or===nt.state.dropLevelOffset&&er===nt.state.dropTargetKey&&Tr===nt.state.dropContainerKey&&Nr===nt.state.dropTargetPos&&Kn===nt.state.dropAllowed&&kr===nt.state.dragOverNodeKey||nt.setState({dropPosition:On,dropLevelOffset:or,dropTargetKey:er,dropContainerKey:Tr,dropTargetPos:Nr,dropAllowed:Kn,dragOverNodeKey:kr}),Yt==null||Yt({event:tt,node:(0,Ne.F)(We.props)}))}},nt.onNodeDragLeave=function(tt,We){nt.currentMouseOverDroppableNodeKey===We.props.eventKey&&!tt.currentTarget.contains(tt.relatedTarget)&&(nt.resetDragState(),nt.currentMouseOverDroppableNodeKey=null);var Be=nt.props.onDragLeave;Be==null||Be({event:tt,node:(0,Ne.F)(We.props)})},nt.onWindowDragEnd=function(tt){nt.onNodeDragEnd(tt,null,!0),window.removeEventListener("dragend",nt.onWindowDragEnd)},nt.onNodeDragEnd=function(tt,We){var Be=nt.props.onDragEnd;nt.setState({dragOverNodeKey:null}),nt.cleanDragState(),Be==null||Be({event:tt,node:(0,Ne.F)(We.props)}),nt.dragNode=null,window.removeEventListener("dragend",nt.onWindowDragEnd)},nt.onNodeDrop=function(tt,We){var Be,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ke=nt.state,gt=Ke.dragChildrenKeys,Ze=Ke.dropPosition,Ot=Ke.dropTargetKey,zt=Ke.dropTargetPos,Yt=Ke.dropAllowed;if(Yt){var jt=nt.props.onDrop;if(nt.setState({dragOverNodeKey:null}),nt.cleanDragState(),Ot!==null){var Kt=(0,ze.Z)((0,ze.Z)({},(0,Ne.H8)(Ot,nt.getTreeNodeRequiredProps())),{},{active:((Be=nt.getActiveItem())===null||Be===void 0?void 0:Be.key)===Ot,data:(0,Pt.Z)(nt.state.keyEntities,Ot).node}),en=gt.indexOf(Ot)!==-1;(0,z.ZP)(!en,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var cn=(0,kt.yx)(zt),yn={event:tt,node:(0,Ne.F)(Kt),dragNode:nt.dragNode?(0,Ne.F)(nt.dragNode.props):null,dragNodesKeys:[nt.dragNode.props.eventKey].concat(gt),dropToGap:Ze!==0,dropPosition:Ze+Number(cn[cn.length-1])};Te||jt==null||jt(yn),nt.dragNode=null}}},nt.cleanDragState=function(){var tt=nt.state.draggingNodeKey;tt!==null&&nt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),nt.dragStartMousePosition=null,nt.currentMouseOverDroppableNodeKey=null},nt.triggerExpandActionExpand=function(tt,We){var Be=nt.state,Te=Be.expandedKeys,Ke=Be.flattenNodes,gt=We.expanded,Ze=We.key,Ot=We.isLeaf;if(!(Ot||tt.shiftKey||tt.metaKey||tt.ctrlKey)){var zt=Ke.filter(function(jt){return jt.key===Ze})[0],Yt=(0,Ne.F)((0,ze.Z)((0,ze.Z)({},(0,Ne.H8)(Ze,nt.getTreeNodeRequiredProps())),{},{data:zt.data}));nt.setExpandedKeys(gt?(0,kt._5)(Te,Ze):(0,kt.L0)(Te,Ze)),nt.onNodeExpand(tt,Yt)}},nt.onNodeClick=function(tt,We){var Be=nt.props,Te=Be.onClick,Ke=Be.expandAction;Ke==="click"&&nt.triggerExpandActionExpand(tt,We),Te==null||Te(tt,We)},nt.onNodeDoubleClick=function(tt,We){var Be=nt.props,Te=Be.onDoubleClick,Ke=Be.expandAction;Ke==="doubleClick"&&nt.triggerExpandActionExpand(tt,We),Te==null||Te(tt,We)},nt.onNodeSelect=function(tt,We){var Be=nt.state.selectedKeys,Te=nt.state,Ke=Te.keyEntities,gt=Te.fieldNames,Ze=nt.props,Ot=Ze.onSelect,zt=Ze.multiple,Yt=We.selected,jt=We[gt.key],Kt=!Yt;Kt?zt?Be=(0,kt.L0)(Be,jt):Be=[jt]:Be=(0,kt._5)(Be,jt);var en=Be.map(function(cn){var yn=(0,Pt.Z)(Ke,cn);return yn?yn.node:null}).filter(function(cn){return cn});nt.setUncontrolledState({selectedKeys:Be}),Ot==null||Ot(Be,{event:"select",selected:Kt,node:We,selectedNodes:en,nativeEvent:tt.nativeEvent})},nt.onNodeCheck=function(tt,We,Be){var Te=nt.state,Ke=Te.keyEntities,gt=Te.checkedKeys,Ze=Te.halfCheckedKeys,Ot=nt.props,zt=Ot.checkStrictly,Yt=Ot.onCheck,jt=We.key,Kt,en={event:"check",node:We,checked:Be,nativeEvent:tt.nativeEvent};if(zt){var cn=Be?(0,kt.L0)(gt,jt):(0,kt._5)(gt,jt),yn=(0,kt._5)(Ze,jt);Kt={checked:cn,halfChecked:yn},en.checkedNodes=cn.map(function(Nr){return(0,Pt.Z)(Ke,Nr)}).filter(function(Nr){return Nr}).map(function(Nr){return Nr.node}),nt.setUncontrolledState({checkedKeys:cn})}else{var On=(0,Ut.S)([].concat((0,je.Z)(gt),[jt]),!0,Ke),or=On.checkedKeys,er=On.halfCheckedKeys;if(!Be){var Tr=new Set(or);Tr.delete(jt);var Kn=(0,Ut.S)(Array.from(Tr),{checked:!1,halfCheckedKeys:er},Ke);or=Kn.checkedKeys,er=Kn.halfCheckedKeys}Kt=or,en.checkedNodes=[],en.checkedNodesPositions=[],en.halfCheckedKeys=er,or.forEach(function(Nr){var kr=(0,Pt.Z)(Ke,Nr);if(kr){var Ur=kr.node,Jr=kr.pos;en.checkedNodes.push(Ur),en.checkedNodesPositions.push({node:Ur,pos:Jr})}}),nt.setUncontrolledState({checkedKeys:or},!1,{halfCheckedKeys:er})}Yt==null||Yt(Kt,en)},nt.onNodeLoad=function(tt){var We=tt.key,Be=new Promise(function(Te,Ke){nt.setState(function(gt){var Ze=gt.loadedKeys,Ot=Ze===void 0?[]:Ze,zt=gt.loadingKeys,Yt=zt===void 0?[]:zt,jt=nt.props,Kt=jt.loadData,en=jt.onLoad;if(!Kt||Ot.indexOf(We)!==-1||Yt.indexOf(We)!==-1)return null;var cn=Kt(tt);return cn.then(function(){var yn=nt.state.loadedKeys,On=(0,kt.L0)(yn,We);en==null||en(On,{event:"load",node:tt}),nt.setUncontrolledState({loadedKeys:On}),nt.setState(function(or){return{loadingKeys:(0,kt._5)(or.loadingKeys,We)}}),Te()}).catch(function(yn){if(nt.setState(function(or){return{loadingKeys:(0,kt._5)(or.loadingKeys,We)}}),nt.loadingRetryTimes[We]=(nt.loadingRetryTimes[We]||0)+1,nt.loadingRetryTimes[We]>=Ct){var On=nt.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),nt.setUncontrolledState({loadedKeys:(0,kt.L0)(On,We)}),Te()}Ke(yn)}),{loadingKeys:(0,kt.L0)(Yt,We)}})});return Be.catch(function(){}),Be},nt.onNodeMouseEnter=function(tt,We){var Be=nt.props.onMouseEnter;Be==null||Be({event:tt,node:We})},nt.onNodeMouseLeave=function(tt,We){var Be=nt.props.onMouseLeave;Be==null||Be({event:tt,node:We})},nt.onNodeContextMenu=function(tt,We){var Be=nt.props.onRightClick;Be&&(tt.preventDefault(),Be({event:tt,node:We}))},nt.onFocus=function(){var tt=nt.props.onFocus;nt.setState({focused:!0});for(var We=arguments.length,Be=new Array(We),Te=0;Te<We;Te++)Be[Te]=arguments[Te];tt==null||tt.apply(void 0,Be)},nt.onBlur=function(){var tt=nt.props.onBlur;nt.setState({focused:!1}),nt.onActiveChange(null);for(var We=arguments.length,Be=new Array(We),Te=0;Te<We;Te++)Be[Te]=arguments[Te];tt==null||tt.apply(void 0,Be)},nt.getTreeNodeRequiredProps=function(){var tt=nt.state,We=tt.expandedKeys,Be=tt.selectedKeys,Te=tt.loadedKeys,Ke=tt.loadingKeys,gt=tt.checkedKeys,Ze=tt.halfCheckedKeys,Ot=tt.dragOverNodeKey,zt=tt.dropPosition,Yt=tt.keyEntities;return{expandedKeys:We||[],selectedKeys:Be||[],loadedKeys:Te||[],loadingKeys:Ke||[],checkedKeys:gt||[],halfCheckedKeys:Ze||[],dragOverNodeKey:Ot,dropPosition:zt,keyEntities:Yt}},nt.setExpandedKeys=function(tt){var We=nt.state,Be=We.treeData,Te=We.fieldNames,Ke=(0,Ne.oH)(Be,tt,Te);nt.setUncontrolledState({expandedKeys:tt,flattenNodes:Ke},!0)},nt.onNodeExpand=function(tt,We){var Be=nt.state.expandedKeys,Te=nt.state,Ke=Te.listChanging,gt=Te.fieldNames,Ze=nt.props,Ot=Ze.onExpand,zt=Ze.loadData,Yt=We.expanded,jt=We[gt.key];if(!Ke){var Kt=Be.indexOf(jt),en=!Yt;if((0,z.ZP)(Yt&&Kt!==-1||!Yt&&Kt===-1,"Expand state not sync with index check"),en?Be=(0,kt.L0)(Be,jt):Be=(0,kt._5)(Be,jt),nt.setExpandedKeys(Be),Ot==null||Ot(Be,{node:We,expanded:en,nativeEvent:tt.nativeEvent}),en&&zt){var cn=nt.onNodeLoad(We);cn&&cn.then(function(){var yn=(0,Ne.oH)(nt.state.treeData,Be,gt);nt.setUncontrolledState({flattenNodes:yn})}).catch(function(){var yn=nt.state.expandedKeys,On=(0,kt._5)(yn,jt);nt.setExpandedKeys(On)})}}},nt.onListChangeStart=function(){nt.setUncontrolledState({listChanging:!0})},nt.onListChangeEnd=function(){setTimeout(function(){nt.setUncontrolledState({listChanging:!1})})},nt.onActiveChange=function(tt){var We=nt.state.activeKey,Be=nt.props.onActiveChange;We!==tt&&(nt.setState({activeKey:tt}),tt!==null&&nt.scrollTo({key:tt}),Be==null||Be(tt))},nt.getActiveItem=function(){var tt=nt.state,We=tt.activeKey,Be=tt.flattenNodes;return We===null?null:Be.find(function(Te){var Ke=Te.key;return Ke===We})||null},nt.offsetActiveKey=function(tt){var We=nt.state,Be=We.flattenNodes,Te=We.activeKey,Ke=Be.findIndex(function(Ot){var zt=Ot.key;return zt===Te});Ke===-1&&tt<0&&(Ke=Be.length),Ke=(Ke+tt+Be.length)%Be.length;var gt=Be[Ke];if(gt){var Ze=gt.key;nt.onActiveChange(Ze)}else nt.onActiveChange(null)},nt.onKeyDown=function(tt){var We=nt.state,Be=We.activeKey,Te=We.expandedKeys,Ke=We.checkedKeys,gt=We.fieldNames,Ze=nt.props,Ot=Ze.onKeyDown,zt=Ze.checkable,Yt=Ze.selectable;switch(tt.which){case xe.Z.UP:{nt.offsetActiveKey(-1),tt.preventDefault();break}case xe.Z.DOWN:{nt.offsetActiveKey(1),tt.preventDefault();break}}var jt=nt.getActiveItem();if(jt&&jt.data){var Kt=nt.getTreeNodeRequiredProps(),en=jt.data.isLeaf===!1||!!(jt.data[gt.children]||[]).length,cn=(0,Ne.F)((0,ze.Z)((0,ze.Z)({},(0,Ne.H8)(Be,Kt)),{},{data:jt.data,active:!0}));switch(tt.which){case xe.Z.LEFT:{en&&Te.includes(Be)?nt.onNodeExpand({},cn):jt.parent&&nt.onActiveChange(jt.parent.key),tt.preventDefault();break}case xe.Z.RIGHT:{en&&!Te.includes(Be)?nt.onNodeExpand({},cn):jt.children&&jt.children.length&&nt.onActiveChange(jt.children[0].key),tt.preventDefault();break}case xe.Z.ENTER:case xe.Z.SPACE:{zt&&!cn.disabled&&cn.checkable!==!1&&!cn.disableCheckbox?nt.onNodeCheck({},cn,!Ke.includes(Be)):!zt&&Yt&&!cn.disabled&&cn.selectable!==!1&&nt.onNodeSelect({},cn);break}}}Ot==null||Ot(tt)},nt.setUncontrolledState=function(tt){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!nt.destroyed){var Te=!1,Ke=!0,gt={};Object.keys(tt).forEach(function(Ze){if(Ze in nt.props){Ke=!1;return}Te=!0,gt[Ze]=tt[Ze]}),Te&&(!We||Ke)&&nt.setState((0,ze.Z)((0,ze.Z)({},gt),Be))}},nt.scrollTo=function(tt){nt.listRef.current.scrollTo(tt)},nt}return(0,ce.Z)(vt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Xe=this.props.activeKey;Xe!==void 0&&Xe!==this.state.activeKey&&(this.setState({activeKey:Xe}),Xe!==null&&this.scrollTo({key:Xe}))}},{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 Xe,Ue=this.state,$e=Ue.focused,tt=Ue.flattenNodes,We=Ue.keyEntities,Be=Ue.draggingNodeKey,Te=Ue.activeKey,Ke=Ue.dropLevelOffset,gt=Ue.dropContainerKey,Ze=Ue.dropTargetKey,Ot=Ue.dropPosition,zt=Ue.dragOverNodeKey,Yt=Ue.indent,jt=this.props,Kt=jt.prefixCls,en=jt.className,cn=jt.style,yn=jt.showLine,On=jt.focusable,or=jt.tabIndex,er=or===void 0?0:or,Tr=jt.selectable,Kn=jt.showIcon,Nr=jt.icon,kr=jt.switcherIcon,Ur=jt.draggable,Jr=jt.checkable,Mr=jt.checkStrictly,di=jt.disabled,Dr=jt.motion,ot=jt.loadData,Ci=jt.filterTreeNode,xi=jt.height,pr=jt.itemHeight,Pr=jt.virtual,jr=jt.titleRender,Li=jt.dropIndicatorRender,nr=jt.onContextMenu,ar=jt.onScroll,nn=jt.direction,qt=jt.rootClassName,Tt=jt.rootStyle,ln=(0,fe.Z)(this.props,{aria:!0,data:!0}),Cn;return Ur&&((0,oe.Z)(Ur)==="object"?Cn=Ur:typeof Ur=="function"?Cn={nodeDraggable:Ur}:Cn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Kt,selectable:Tr,showIcon:Kn,icon:Nr,switcherIcon:kr,draggable:Cn,draggingNodeKey:Be,checkable:Jr,checkStrictly:Mr,disabled:di,keyEntities:We,dropLevelOffset:Ke,dropContainerKey:gt,dropTargetKey:Ze,dropPosition:Ot,dragOverNodeKey:zt,indent:Yt,direction:nn,dropIndicatorRender:Li,loadData:ot,filterTreeNode:Ci,titleRender:jr,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},ee.createElement("div",{role:"tree",className:me()(Kt,en,qt,(Xe={},(0,Mt.Z)(Xe,"".concat(Kt,"-show-line"),yn),(0,Mt.Z)(Xe,"".concat(Kt,"-focused"),$e),(0,Mt.Z)(Xe,"".concat(Kt,"-active-focused"),Te!==null),Xe)),style:Tt},ee.createElement(It,(0,et.Z)({ref:this.listRef,prefixCls:Kt,style:cn,data:tt,disabled:di,selectable:Tr,checkable:!!Jr,motion:Dr,dragging:Be!==null,height:xi,itemHeight:pr,virtual:Pr,focusable:On,focused:$e,tabIndex:er,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:nr,onScroll:ar},this.getTreeNodeRequiredProps(),ln))))}}],[{key:"getDerivedStateFromProps",value:function(Xe,Ue){var $e=Ue.prevProps,tt={prevProps:Xe};function We(On){return!$e&&On in Xe||$e&&$e[On]!==Xe[On]}var Be,Te=Ue.fieldNames;if(We("fieldNames")&&(Te=(0,Ne.w$)(Xe.fieldNames),tt.fieldNames=Te),We("treeData")?Be=Xe.treeData:We("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Be=(0,Ne.zn)(Xe.children)),Be){tt.treeData=Be;var Ke=(0,Ne.I8)(Be,{fieldNames:Te});tt.keyEntities=(0,ze.Z)((0,Mt.Z)({},qe,pt),Ke.keyEntities)}var gt=tt.keyEntities||Ue.keyEntities;if(We("expandedKeys")||$e&&We("autoExpandParent"))tt.expandedKeys=Xe.autoExpandParent||!$e&&Xe.defaultExpandParent?(0,kt.r7)(Xe.expandedKeys,gt):Xe.expandedKeys;else if(!$e&&Xe.defaultExpandAll){var Ze=(0,ze.Z)({},gt);delete Ze[qe],tt.expandedKeys=Object.keys(Ze).map(function(On){return Ze[On].key})}else!$e&&Xe.defaultExpandedKeys&&(tt.expandedKeys=Xe.autoExpandParent||Xe.defaultExpandParent?(0,kt.r7)(Xe.defaultExpandedKeys,gt):Xe.defaultExpandedKeys);if(tt.expandedKeys||delete tt.expandedKeys,Be||tt.expandedKeys){var Ot=(0,Ne.oH)(Be||Ue.treeData,tt.expandedKeys||Ue.expandedKeys,Te);tt.flattenNodes=Ot}if(Xe.selectable&&(We("selectedKeys")?tt.selectedKeys=(0,kt.BT)(Xe.selectedKeys,Xe):!$e&&Xe.defaultSelectedKeys&&(tt.selectedKeys=(0,kt.BT)(Xe.defaultSelectedKeys,Xe))),Xe.checkable){var zt;if(We("checkedKeys")?zt=(0,kt.E6)(Xe.checkedKeys)||{}:!$e&&Xe.defaultCheckedKeys?zt=(0,kt.E6)(Xe.defaultCheckedKeys)||{}:Be&&(zt=(0,kt.E6)(Xe.checkedKeys)||{checkedKeys:Ue.checkedKeys,halfCheckedKeys:Ue.halfCheckedKeys}),zt){var Yt=zt,jt=Yt.checkedKeys,Kt=jt===void 0?[]:jt,en=Yt.halfCheckedKeys,cn=en===void 0?[]:en;if(!Xe.checkStrictly){var yn=(0,Ut.S)(Kt,!0,gt);Kt=yn.checkedKeys,cn=yn.halfCheckedKeys}tt.checkedKeys=Kt,tt.halfCheckedKeys=cn}}return We("loadedKeys")&&(tt.loadedKeys=Xe.loadedKeys),tt}}]),vt}(ee.Component);st.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},st.TreeNode=Oe.Z;var bt=st,at=bt},35654:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{BT:function(){return ee},E6:function(){return le},L0:function(){return Se},OM:function(){return z},_5:function(){return Me},r7:function(){return ue},wA:function(){return me},yx:function(){return Pe}});var et=Ge(19127),Mt=Ge(20135),oe=Ge(48736),ze=Ge(59301),je=Ge(39417),ve=Ge(67841),ce=Ge(71430),we=null;function Me(pe,be){if(!pe)return[];var Ce=pe.slice(),Ie=Ce.indexOf(be);return Ie>=0&&Ce.splice(Ie,1),Ce}function Se(pe,be){var Ce=(pe||[]).slice();return Ce.indexOf(be)===-1&&Ce.push(be),Ce}function Pe(pe){return pe.split("-")}function me(pe,be){var Ce=[],Ie=(0,ve.Z)(be,pe);function Oe(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function(Ne){var De=Ne.key,Re=Ne.children;Ce.push(De),Oe(Re)})}return Oe(Ie.children),Ce}function xe(pe){if(pe.parent){var be=Pe(pe.pos);return Number(be[be.length-1])===pe.parent.children.length-1}return!1}function fe(pe){var be=Pe(pe.pos);return Number(be[be.length-1])===0}function z(pe,be,Ce,Ie,Oe,Le,Ne,De,Re,Je){var _e,Ve=pe.clientX,Qe=pe.clientY,ut=pe.target.getBoundingClientRect(),dt=ut.top,St=ut.height,qe=(Je==="rtl"?-1:1)*(((Oe==null?void 0:Oe.x)||0)-Ve),it=(qe-12)/Ie,pt=(0,ve.Z)(De,Ce.props.eventKey);if(Qe<dt+St/2){var wt=Ne.findIndex(function(at){return at.key===pt.key}),xt=wt<=0?0:wt-1,ft=Ne[xt].key;pt=(0,ve.Z)(De,ft)}var mt=pt.key,yt=pt,It=pt.key,kt=0,Ut=0;if(!Re.includes(mt))for(var Pt=0;Pt<it&&xe(pt);Pt+=1)pt=pt.parent,Ut+=1;var Ct=be.props.data,st=pt.node,bt=!0;return fe(pt)&&pt.level===0&&Qe<dt+St/2&&Le({dragNode:Ct,dropNode:st,dropPosition:-1})&&pt.key===Ce.props.eventKey?kt=-1:(yt.children||[]).length&&Re.includes(It)?Le({dragNode:Ct,dropNode:st,dropPosition:0})?kt=0:bt=!1:Ut===0?it>-1.5?Le({dragNode:Ct,dropNode:st,dropPosition:1})?kt=1:bt=!1:Le({dragNode:Ct,dropNode:st,dropPosition:0})?kt=0:Le({dragNode:Ct,dropNode:st,dropPosition:1})?kt=1:bt=!1:Le({dragNode:Ct,dropNode:st,dropPosition:1})?kt=1:bt=!1,{dropPosition:kt,dropLevelOffset:Ut,dropTargetKey:pt.key,dropTargetPos:pt.pos,dragOverNodeKey:It,dropContainerKey:kt===0?null:((_e=pt.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:bt}}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||{},Ie=Ce.processProps,Oe=Ie===void 0?ae:Ie,Le=Array.isArray(pe)?pe:[pe];return Le.map(function(Ne){var De=Ne.children,Re=_objectWithoutProperties(Ne,we),Je=re(De,be);return React.createElement(TreeNode,_extends({key:Re.key},Oe(Re)),Je)})}function le(pe){if(!pe)return null;var be;if(Array.isArray(pe))be={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,Mt.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 Ie(Oe){if(!Ce.has(Oe)){var Le=(0,ve.Z)(be,Oe);if(Le){Ce.add(Oe);var Ne=Le.parent,De=Le.node;De.disabled||Ne&&Ie(Ne.key)}}}return(pe||[]).forEach(function(Oe){Ie(Oe)}),(0,et.Z)(Ce)}},90782:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{S:function(){return ce}});var et=Ge(48736),Mt=Ge(67841);function oe(we,Me){var Se=new Set;return we.forEach(function(Pe){Me.has(Pe)||Se.add(Pe)}),Se}function ze(we){var Me=we||{},Se=Me.disabled,Pe=Me.disableCheckbox,me=Me.checkable;return!!(Se||Pe)||me===!1}function je(we,Me,Se,Pe){for(var me=new Set(we),xe=new Set,fe=0;fe<=Se;fe+=1){var z=Me.get(fe)||new Set;z.forEach(function(le){var ue=le.key,pe=le.node,be=le.children,Ce=be===void 0?[]:be;me.has(ue)&&!Pe(pe)&&Ce.filter(function(Ie){return!Pe(Ie.node)}).forEach(function(Ie){me.add(Ie.key)})})}for(var ee=new Set,ae=Se;ae>=0;ae-=1){var re=Me.get(ae)||new Set;re.forEach(function(le){var ue=le.parent,pe=le.node;if(!(Pe(pe)||!le.parent||ee.has(le.parent.key))){if(Pe(le.parent.node)){ee.add(ue.key);return}var be=!0,Ce=!1;(ue.children||[]).filter(function(Ie){return!Pe(Ie.node)}).forEach(function(Ie){var Oe=Ie.key,Le=me.has(Oe);be&&!Le&&(be=!1),!Ce&&(Le||xe.has(Oe))&&(Ce=!0)}),be&&me.add(ue.key),Ce&&xe.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(oe(xe,me))}}function ve(we,Me,Se,Pe,me){for(var xe=new Set(we),fe=new Set(Me),z=0;z<=Pe;z+=1){var ee=Se.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,be=ue.node,Ce=ue.children,Ie=Ce===void 0?[]:Ce;!xe.has(pe)&&!fe.has(pe)&&!me(be)&&Ie.filter(function(Oe){return!me(Oe.node)}).forEach(function(Oe){xe.delete(Oe.key)})})}fe=new Set;for(var ae=new Set,re=Pe;re>=0;re-=1){var le=Se.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,be=ue.node;if(!(me(be)||!ue.parent||ae.has(ue.parent.key))){if(me(ue.parent.node)){ae.add(pe.key);return}var Ce=!0,Ie=!1;(pe.children||[]).filter(function(Oe){return!me(Oe.node)}).forEach(function(Oe){var Le=Oe.key,Ne=xe.has(Le);Ce&&!Ne&&(Ce=!1),!Ie&&(Ne||fe.has(Le))&&(Ie=!0)}),Ce||xe.delete(pe.key),Ie&&fe.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(oe(fe,xe))}}function ce(we,Me,Se,Pe){var me=[],xe;Pe?xe=Pe:xe=ze;var fe=new Set(we.filter(function(re){var le=!!(0,Mt.Z)(Se,re);return le||me.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,et.ZP)(!me.length,"Tree missing follow keys: ".concat(me.slice(0,100).map(function(re){return"'".concat(re,"'")}).join(", ")));var ae;return Me===!0?ae=je(fe,z,ee,xe):ae=ve(fe,Me.halfCheckedKeys,z,ee,xe),ae}},67841:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return et}});function et(Mt,oe){return Mt[oe]}},71430:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{F:function(){return ue},H8:function(){return le},I8:function(){return re},km:function(){return me},oH:function(){return ee},w$:function(){return xe},zn:function(){return z}});var et=Ge(20135),Mt=Ge(19127),oe=Ge(44127),ze=Ge(6620),je=Ge(11592),ve=Ge(2738),ce=Ge(48736),we=Ge(67841),Me=["children"];function Se(pe,be){return"".concat(pe,"-").concat(be)}function Pe(pe){return pe&&pe.type&&pe.type.isTreeNode}function me(pe,be){return pe!=null?pe:be}function xe(pe){var be=pe||{},Ce=be.title,Ie=be._title,Oe=be.key,Le=be.children,Ne=Ce||"title";return{title:Ne,_title:Ie||[Ne],key:Oe||"key",children:Le||"children"}}function fe(pe,be){var Ce=new Map;function Ie(Oe){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Oe||[]).forEach(function(Ne){var De=Ne[be.key],Re=Ne[be.children];warning(De!=null,"Tree node must have a certain key: [".concat(Le).concat(De,"]"));var Je=String(De);warning(!Ce.has(Je)||De===null||De===void 0,"Same 'key' exist in the Tree: ".concat(Je)),Ce.set(Je,!0),Ie(Re,"".concat(Le).concat(Je," > "))})}Ie(pe)}function z(pe){function be(Ce){var Ie=(0,je.Z)(Ce);return Ie.map(function(Oe){if(!Pe(Oe))return(0,ce.ZP)(!Oe,"Tree/TreeNode can only accept TreeNode as children."),null;var Le=Oe.key,Ne=Oe.props,De=Ne.children,Re=(0,ze.Z)(Ne,Me),Je=(0,oe.Z)({key:Le},Re),_e=be(De);return _e.length&&(Je.children=_e),Je}).filter(function(Oe){return Oe})}return be(pe)}function ee(pe,be,Ce){var Ie=xe(Ce),Oe=Ie._title,Le=Ie.key,Ne=Ie.children,De=new Set(be===!0?[]:be),Re=[];function Je(_e){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _e.map(function(Qe,ut){for(var dt=Se(Ve?Ve.pos:"0",ut),St=me(Qe[Le],dt),qe,it=0;it<Oe.length;it+=1){var pt=Oe[it];if(Qe[pt]!==void 0){qe=Qe[pt];break}}var wt=(0,oe.Z)((0,oe.Z)({},(0,ve.Z)(Qe,[].concat((0,Mt.Z)(Oe),[Le,Ne]))),{},{title:qe,key:St,parent:Ve,pos:dt,children:null,data:Qe,isStart:[].concat((0,Mt.Z)(Ve?Ve.isStart:[]),[ut===0]),isEnd:[].concat((0,Mt.Z)(Ve?Ve.isEnd:[]),[ut===_e.length-1])});return Re.push(wt),be===!0||De.has(St)?wt.children=Je(Qe[Ne]||[],wt):wt.children=[],wt})}return Je(pe),Re}function ae(pe,be,Ce){var Ie={};(0,et.Z)(Ce)==="object"?Ie=Ce:Ie={externalGetKey:Ce},Ie=Ie||{};var Oe=Ie,Le=Oe.childrenPropName,Ne=Oe.externalGetKey,De=Oe.fieldNames,Re=xe(De),Je=Re.key,_e=Re.children,Ve=Le||_e,Qe;Ne?typeof Ne=="string"?Qe=function(St){return St[Ne]}:typeof Ne=="function"&&(Qe=function(St){return Ne(St)}):Qe=function(St,qe){return me(St[Je],qe)};function ut(dt,St,qe,it){var pt=dt?dt[Ve]:pe,wt=dt?Se(qe.pos,St):"0",xt=dt?[].concat((0,Mt.Z)(it),[dt]):[];if(dt){var ft=Qe(dt,wt),mt={node:dt,index:St,pos:wt,key:ft,parentPos:qe.node?qe.pos:null,level:qe.level+1,nodes:xt};be(mt)}pt&&pt.forEach(function(yt,It){ut(yt,It,{node:dt,pos:wt,level:qe?qe.level+1:-1},xt)})}ut(null)}function re(pe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=be.initWrapper,Ie=be.processEntity,Oe=be.onProcessFinished,Le=be.externalGetKey,Ne=be.childrenPropName,De=be.fieldNames,Re=arguments.length>2?arguments[2]:void 0,Je=Le||Re,_e={},Ve={},Qe={posEntities:_e,keyEntities:Ve};return Ce&&(Qe=Ce(Qe)||Qe),ae(pe,function(ut){var dt=ut.node,St=ut.index,qe=ut.pos,it=ut.key,pt=ut.parentPos,wt=ut.level,xt=ut.nodes,ft={node:dt,nodes:xt,index:St,key:it,pos:qe,level:wt},mt=me(it,qe);_e[qe]=ft,Ve[mt]=ft,ft.parent=_e[pt],ft.parent&&(ft.parent.children=ft.parent.children||[],ft.parent.children.push(ft)),Ie&&Ie(ft,Qe)},{externalGetKey:Je,childrenPropName:Ne,fieldNames:De}),Oe&&Oe(Qe),Qe}function le(pe,be){var Ce=be.expandedKeys,Ie=be.selectedKeys,Oe=be.loadedKeys,Le=be.loadingKeys,Ne=be.checkedKeys,De=be.halfCheckedKeys,Re=be.dragOverNodeKey,Je=be.dropPosition,_e=be.keyEntities,Ve=(0,we.Z)(_e,pe),Qe={eventKey:pe,expanded:Ce.indexOf(pe)!==-1,selected:Ie.indexOf(pe)!==-1,loaded:Oe.indexOf(pe)!==-1,loading:Le.indexOf(pe)!==-1,checked:Ne.indexOf(pe)!==-1,halfChecked:De.indexOf(pe)!==-1,pos:String(Ve?Ve.pos:""),dragOver:Re===pe&&Je===0,dragOverGapTop:Re===pe&&Je===-1,dragOverGapBottom:Re===pe&&Je===1};return Qe}function ue(pe){var be=pe.data,Ce=pe.expanded,Ie=pe.selected,Oe=pe.checked,Le=pe.loaded,Ne=pe.loading,De=pe.halfChecked,Re=pe.dragOver,Je=pe.dragOverGapTop,_e=pe.dragOverGapBottom,Ve=pe.pos,Qe=pe.active,ut=pe.eventKey,dt=(0,oe.Z)((0,oe.Z)({},be),{},{expanded:Ce,selected:Ie,checked:Oe,loaded:Le,loading:Ne,halfChecked:De,dragOver:Re,dragOverGapTop:Je,dragOverGapBottom:_e,pos:Ve,active:Qe,key:ut});return"props"in dt||Object.defineProperty(dt,"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}}),dt}},8224:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return Mt}});var et=Ge(4676);function Mt(oe,ze,je,ve){var ce=et.unstable_batchedUpdates?function(Me){et.unstable_batchedUpdates(je,Me)}:je;return oe!=null&&oe.addEventListener&&oe.addEventListener(ze,ce,ve),{remove:function(){oe!=null&&oe.removeEventListener&&oe.removeEventListener(ze,ce,ve)}}}},55468:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{g1:function(){return Pe},os:function(){return xe}});var et=/margin|padding|width|height|max|min|offset/,Mt={left:!0,top:!0},oe={cssFloat:1,styleFloat:1,float:1};function ze(fe){return fe.nodeType===1?fe.ownerDocument.defaultView.getComputedStyle(fe,null):{}}function je(fe,z,ee){if(z=z.toLowerCase(),ee==="auto"){if(z==="height")return fe.offsetHeight;if(z==="width")return fe.offsetWidth}return z in Mt||(Mt[z]=et.test(z)),Mt[z]?parseFloat(ee)||0:ee}function ve(fe,z){var ee=arguments.length,ae=ze(fe);return z=oe[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ee===1?ae:je(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"&&et.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 ze(fe)}function we(fe){return fe===document.body?document.documentElement.clientWidth:fe.offsetWidth}function Me(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 Pe(){var fe=document.documentElement.clientWidth,z=window.innerHeight||document.documentElement.clientHeight;return{width:fe,height:z}}function me(){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(_n,Pn,Ge){"use strict";Ge.d(Pn,{G:function(){return ze}});var et=Ge(47273),Mt=function(ve){if((0,et.Z)()&&window.document.documentElement){var ce=Array.isArray(ve)?ve:[ve],we=window.document.documentElement;return ce.some(function(Me){return Me in we.style})}return!1},oe=function(ve,ce){if(!Mt(ve))return!1;var we=document.createElement("div"),Me=we.style[ve];return we.style[ve]=ce,we.style[ve]!==Me};function ze(je,ve){return!Array.isArray(je)&&ve!==void 0?oe(je,ve):Mt(je)}},45680:function(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return st}});var et=Ge(96663),Mt=Ge(20135),oe=Ge(44127),ze=Ge(90493),je=Ge(72071),ve=Ge(6620),ce=Ge(92310),we=Ge.n(ce),Me=Ge(29301),Se=Ge(70425),Pe=Ge(34280),me=Ge(59301),xe=Ge(4676),fe=me.forwardRef(function(bt,at){var ct=bt.height,Lt=bt.offsetY,vt=bt.offsetX,nt=bt.children,Xe=bt.prefixCls,Ue=bt.onInnerResize,$e=bt.innerProps,tt=bt.rtl,We=bt.extra,Be={},Te={display:"flex",flexDirection:"column"};return Lt!==void 0&&(Be={height:ct,position:"relative",overflow:"hidden"},Te=(0,oe.Z)((0,oe.Z)({},Te),{},(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)({transform:"translateY(".concat(Lt,"px)")},tt?"marginRight":"marginLeft",-vt),"position","absolute"),"left",0),"right",0),"top",0))),me.createElement("div",{style:Be},me.createElement(Me.Z,{onResize:function(gt){var Ze=gt.offsetHeight;Ze&&Ue&&Ue()}},me.createElement("div",(0,et.Z)({style:Te,className:we()((0,ze.Z)({},"".concat(Xe,"-holder-inner"),Xe)),ref:at},$e),nt,We)))});fe.displayName="Filler";var z=fe;function ee(bt){var at=bt.children,ct=bt.setRef,Lt=me.useCallback(function(vt){ct(vt)},[]);return me.cloneElement(at,{ref:Lt})}function ae(bt,at,ct,Lt,vt,nt,Xe,Ue){var $e=Ue.getKey;return bt.slice(at,ct+1).map(function(tt,We){var Be=at+We,Te=Xe(tt,Be,{style:{width:Lt},offsetX:vt}),Ke=$e(tt);return me.createElement(ee,{key:Ke,setRef:function(Ze){return nt(tt,Ze)}},Te)})}function re(bt,at,ct,Lt){var vt=ct-bt,nt=at-ct,Xe=Math.min(vt,nt)*2;if(Lt<=Xe){var Ue=Math.floor(Lt/2);return Lt%2?ct+Ue+1:ct-Ue}return vt>nt?ct-(Lt-nt):ct+(Lt-vt)}function le(bt,at,ct){var Lt=bt.length,vt=at.length,nt,Xe;if(Lt===0&&vt===0)return null;Lt<vt?(nt=bt,Xe=at):(nt=at,Xe=bt);var Ue={__EMPTY_ITEM__:!0};function $e(gt){return gt!==void 0?ct(gt):Ue}for(var tt=null,We=Math.abs(Lt-vt)!==1,Be=0;Be<Xe.length;Be+=1){var Te=$e(nt[Be]),Ke=$e(Xe[Be]);if(Te!==Ke){tt=Be,We=We||Te!==$e(Xe[Be+1]);break}}return tt===null?null:{index:tt,multiple:We}}function ue(bt,at,ct){var Lt=me.useState(bt),vt=(0,je.Z)(Lt,2),nt=vt[0],Xe=vt[1],Ue=me.useState(null),$e=(0,je.Z)(Ue,2),tt=$e[0],We=$e[1];return me.useEffect(function(){var Be=le(nt||[],bt||[],at);(Be==null?void 0:Be.index)!==void 0&&(ct==null||ct(Be.index),We(bt[Be.index])),Xe(bt)},[bt]),[tt]}var pe=Ge(16089),be=(typeof navigator=="undefined"?"undefined":(0,Mt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=be,Ie=function(bt,at,ct,Lt){var vt=(0,me.useRef)(!1),nt=(0,me.useRef)(null);function Xe(){clearTimeout(nt.current),vt.current=!0,nt.current=setTimeout(function(){vt.current=!1},50)}var Ue=(0,me.useRef)({top:bt,bottom:at,left:ct,right:Lt});return Ue.current.top=bt,Ue.current.bottom=at,Ue.current.left=ct,Ue.current.right=Lt,function($e,tt){var We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Be=$e?tt<0&&Ue.current.left||tt>0&&Ue.current.right:tt<0&&Ue.current.top||tt>0&&Ue.current.bottom;return We&&Be?(clearTimeout(nt.current),vt.current=!1):(!Be||vt.current)&&Xe(),!vt.current&&Be}};function Oe(bt,at,ct,Lt,vt,nt,Xe){var Ue=(0,me.useRef)(0),$e=(0,me.useRef)(null),tt=(0,me.useRef)(null),We=(0,me.useRef)(!1),Be=Ie(at,ct,Lt,vt);function Te(Yt,jt){if(pe.Z.cancel($e.current),!Be(!1,jt)){var Kt=Yt;if(!Kt._virtualHandled)Kt._virtualHandled=!0;else return;Ue.current+=jt,tt.current=jt,Ce||Kt.preventDefault(),$e.current=(0,pe.Z)(function(){var en=We.current?10:1;Xe(Ue.current*en,!1),Ue.current=0})}}function Ke(Yt,jt){Xe(jt,!0),Ce||Yt.preventDefault()}var gt=(0,me.useRef)(null),Ze=(0,me.useRef)(null);function Ot(Yt){if(bt){pe.Z.cancel(Ze.current),Ze.current=(0,pe.Z)(function(){gt.current=null},2);var jt=Yt.deltaX,Kt=Yt.deltaY,en=Yt.shiftKey,cn=jt,yn=Kt;(gt.current==="sx"||!gt.current&&en&&Kt&&!jt)&&(cn=Kt,yn=0,gt.current="sx");var On=Math.abs(cn),or=Math.abs(yn);gt.current===null&&(gt.current=nt&&On>or?"x":"y"),gt.current==="y"?Te(Yt,yn):Ke(Yt,cn)}}function zt(Yt){bt&&(We.current=Yt.detail===tt.current)}return[Ot,zt]}function Le(bt,at,ct,Lt){var vt=me.useMemo(function(){return[new Map,[]]},[bt,ct.id,Lt]),nt=(0,je.Z)(vt,2),Xe=nt[0],Ue=nt[1],$e=function(We){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:We,Te=Xe.get(We),Ke=Xe.get(Be);if(Te===void 0||Ke===void 0)for(var gt=bt.length,Ze=Ue.length;Ze<gt;Ze+=1){var Ot,zt=bt[Ze],Yt=at(zt);Xe.set(Yt,Ze);var jt=(Ot=ct.get(Yt))!==null&&Ot!==void 0?Ot:Lt;if(Ue[Ze]=(Ue[Ze-1]||0)+jt,Yt===We&&(Te=Ze),Yt===Be&&(Ke=Ze),Te!==void 0&&Ke!==void 0)break}return{top:Ue[Te-1]||0,bottom:Ue[Ke]}};return $e}var Ne=Ge(52884),De=Ge(95727),Re=function(){function bt(){(0,Ne.Z)(this,bt),(0,ze.Z)(this,"maps",void 0),(0,ze.Z)(this,"id",0),(0,ze.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,De.Z)(bt,[{key:"set",value:function(ct,Lt){this.maps[ct]=Lt,this.id+=1,this.diffKeys.add(ct)}},{key:"get",value:function(ct){return this.maps[ct]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),bt}(),Je=Re;function _e(bt){var at=parseFloat(bt);return isNaN(at)?0:at}function Ve(bt,at,ct){var Lt=me.useState(0),vt=(0,je.Z)(Lt,2),nt=vt[0],Xe=vt[1],Ue=(0,me.useRef)(new Map),$e=(0,me.useRef)(new Je),tt=(0,me.useRef)(0);function We(){tt.current+=1}function Be(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;We();var gt=function(){var zt=!1;Ue.current.forEach(function(Yt,jt){if(Yt&&Yt.offsetParent){var Kt=Yt.offsetHeight,en=getComputedStyle(Yt),cn=en.marginTop,yn=en.marginBottom,On=_e(cn),or=_e(yn),er=Kt+On+or;$e.current.get(jt)!==er&&($e.current.set(jt,er),zt=!0)}}),zt&&Xe(function(Yt){return Yt+1})};if(Ke)gt();else{tt.current+=1;var Ze=tt.current;Promise.resolve().then(function(){Ze===tt.current&>()})}}function Te(Ke,gt){var Ze=bt(Ke),Ot=Ue.current.get(Ze);gt?(Ue.current.set(Ze,gt),Be()):Ue.current.delete(Ze),!Ot!=!gt&&(gt?at==null||at(Ke):ct==null||ct(Ke))}return(0,me.useEffect)(function(){return We},[]),[Te,Be,$e.current,nt]}var Qe=14/15;function ut(bt,at,ct){var Lt=(0,me.useRef)(!1),vt=(0,me.useRef)(0),nt=(0,me.useRef)(0),Xe=(0,me.useRef)(null),Ue=(0,me.useRef)(null),$e,tt=function(Ke){if(Lt.current){var gt=Math.ceil(Ke.touches[0].pageX),Ze=Math.ceil(Ke.touches[0].pageY),Ot=vt.current-gt,zt=nt.current-Ze,Yt=Math.abs(Ot)>Math.abs(zt);Yt?vt.current=gt:nt.current=Ze;var jt=ct(Yt,Yt?Ot:zt,!1,Ke);jt&&Ke.preventDefault(),clearInterval(Ue.current),jt&&(Ue.current=setInterval(function(){Yt?Ot*=Qe:zt*=Qe;var Kt=Math.floor(Yt?Ot:zt);(!ct(Yt,Kt,!0)||Math.abs(Kt)<=.1)&&clearInterval(Ue.current)},16))}},We=function(){Lt.current=!1,$e()},Be=function(Ke){$e(),Ke.touches.length===1&&!Lt.current&&(Lt.current=!0,vt.current=Math.ceil(Ke.touches[0].pageX),nt.current=Math.ceil(Ke.touches[0].pageY),Xe.current=Ke.target,Xe.current.addEventListener("touchmove",tt,{passive:!1}),Xe.current.addEventListener("touchend",We,{passive:!0}))};$e=function(){Xe.current&&(Xe.current.removeEventListener("touchmove",tt),Xe.current.removeEventListener("touchend",We))},(0,Pe.Z)(function(){return bt&&at.current.addEventListener("touchstart",Be,{passive:!0}),function(){var Te;(Te=at.current)===null||Te===void 0||Te.removeEventListener("touchstart",Be),$e(),clearInterval(Ue.current)}},[bt])}function dt(bt){return Math.floor(Math.pow(bt,.5))}function St(bt,at){var ct="touches"in bt?bt.touches[0]:bt;return ct[at?"pageX":"pageY"]-window[at?"scrollX":"scrollY"]}function qe(bt,at,ct){me.useEffect(function(){var Lt=at.current;if(bt&&Lt){var vt=!1,nt,Xe,Ue=function(){pe.Z.cancel(nt)},$e=function Te(){Ue(),nt=(0,pe.Z)(function(){ct(Xe),Te()})},tt=function(Ke){if(!(Ke.target.draggable||Ke.button!==0)){var gt=Ke;gt._virtualHandled||(gt._virtualHandled=!0,vt=!0)}},We=function(){vt=!1,Ue()},Be=function(Ke){if(vt){var gt=St(Ke,!1),Ze=Lt.getBoundingClientRect(),Ot=Ze.top,zt=Ze.bottom;if(gt<=Ot){var Yt=Ot-gt;Xe=-dt(Yt),$e()}else if(gt>=zt){var jt=gt-zt;Xe=dt(jt),$e()}else Ue()}};return Lt.addEventListener("mousedown",tt),Lt.ownerDocument.addEventListener("mouseup",We),Lt.ownerDocument.addEventListener("mousemove",Be),function(){Lt.removeEventListener("mousedown",tt),Lt.ownerDocument.removeEventListener("mouseup",We),Lt.ownerDocument.removeEventListener("mousemove",Be),Ue()}}},[bt])}var it=10;function pt(bt,at,ct,Lt,vt,nt,Xe,Ue){var $e=me.useRef(),tt=me.useState(null),We=(0,je.Z)(tt,2),Be=We[0],Te=We[1];return(0,Pe.Z)(function(){if(Be&&Be.times<it){if(!bt.current){Te(function(Dr){return(0,oe.Z)({},Dr)});return}nt();var Ke=Be.targetAlign,gt=Be.originAlign,Ze=Be.index,Ot=Be.offset,zt=bt.current.clientHeight,Yt=!1,jt=Ke,Kt=null;if(zt){for(var en=Ke||gt,cn=0,yn=0,On=0,or=Math.min(at.length-1,Ze),er=0;er<=or;er+=1){var Tr=vt(at[er]);yn=cn;var Kn=ct.get(Tr);On=yn+(Kn===void 0?Lt:Kn),cn=On}for(var Nr=en==="top"?Ot:zt-Ot,kr=or;kr>=0;kr-=1){var Ur=vt(at[kr]),Jr=ct.get(Ur);if(Jr===void 0){Yt=!0;break}if(Nr-=Jr,Nr<=0)break}switch(en){case"top":Kt=yn-Ot;break;case"bottom":Kt=On-zt+Ot;break;default:{var Mr=bt.current.scrollTop,di=Mr+zt;yn<Mr?jt="top":On>di&&(jt="bottom")}}Kt!==null&&Xe(Kt),Kt!==Be.lastTop&&(Yt=!0)}Yt&&Te((0,oe.Z)((0,oe.Z)({},Be),{},{times:Be.times+1,targetAlign:jt,lastTop:Kt}))}},[Be,bt.current]),function(Ke){if(Ke==null){Ue();return}if(pe.Z.cancel($e.current),typeof Ke=="number")Xe(Ke);else if(Ke&&(0,Mt.Z)(Ke)==="object"){var gt,Ze=Ke.align;"index"in Ke?gt=Ke.index:gt=at.findIndex(function(Yt){return vt(Yt)===Ke.key});var Ot=Ke.offset,zt=Ot===void 0?0:Ot;Te({times:0,index:gt,offset:zt,originAlign:Ze})}}}var wt=me.forwardRef(function(bt,at){var ct=bt.prefixCls,Lt=bt.rtl,vt=bt.scrollOffset,nt=bt.scrollRange,Xe=bt.onStartMove,Ue=bt.onStopMove,$e=bt.onScroll,tt=bt.horizontal,We=bt.spinSize,Be=bt.containerSize,Te=bt.style,Ke=bt.thumbStyle,gt=bt.showScrollBar,Ze=me.useState(!1),Ot=(0,je.Z)(Ze,2),zt=Ot[0],Yt=Ot[1],jt=me.useState(null),Kt=(0,je.Z)(jt,2),en=Kt[0],cn=Kt[1],yn=me.useState(null),On=(0,je.Z)(yn,2),or=On[0],er=On[1],Tr=!Lt,Kn=me.useRef(),Nr=me.useRef(),kr=me.useState(gt),Ur=(0,je.Z)(kr,2),Jr=Ur[0],Mr=Ur[1],di=me.useRef(),Dr=function(){gt===!0||gt===!1||(clearTimeout(di.current),Mr(!0),di.current=setTimeout(function(){Mr(!1)},3e3))},ot=nt-Be||0,Ci=Be-We||0,xi=me.useMemo(function(){if(vt===0||ot===0)return 0;var Tt=vt/ot;return Tt*Ci},[vt,ot,Ci]),pr=function(ln){ln.stopPropagation(),ln.preventDefault()},Pr=me.useRef({top:xi,dragging:zt,pageY:en,startTop:or});Pr.current={top:xi,dragging:zt,pageY:en,startTop:or};var jr=function(ln){Yt(!0),cn(St(ln,tt)),er(Pr.current.top),Xe(),ln.stopPropagation(),ln.preventDefault()};me.useEffect(function(){var Tt=function(Rt){Rt.preventDefault()},ln=Kn.current,Cn=Nr.current;return ln.addEventListener("touchstart",Tt,{passive:!1}),Cn.addEventListener("touchstart",jr,{passive:!1}),function(){ln.removeEventListener("touchstart",Tt),Cn.removeEventListener("touchstart",jr)}},[]);var Li=me.useRef();Li.current=ot;var nr=me.useRef();nr.current=Ci,me.useEffect(function(){if(zt){var Tt,ln=function(Rt){var fn=Pr.current,un=fn.dragging,Gn=fn.pageY,Xn=fn.startTop;pe.Z.cancel(Tt);var $t=Kn.current.getBoundingClientRect(),kn=Be/(tt?$t.width:$t.height);if(un){var Wn=(St(Rt,tt)-Gn)*kn,lr=Xn;!Tr&&tt?lr-=Wn:lr+=Wn;var on=Li.current,Mn=nr.current,an=Mn?lr/Mn:0,xn=Math.ceil(an*on);xn=Math.max(xn,0),xn=Math.min(xn,on),Tt=(0,pe.Z)(function(){$e(xn,tt)})}},Cn=function(){Yt(!1),Ue()};return window.addEventListener("mousemove",ln,{passive:!0}),window.addEventListener("touchmove",ln,{passive:!0}),window.addEventListener("mouseup",Cn,{passive:!0}),window.addEventListener("touchend",Cn,{passive:!0}),function(){window.removeEventListener("mousemove",ln),window.removeEventListener("touchmove",ln),window.removeEventListener("mouseup",Cn),window.removeEventListener("touchend",Cn),pe.Z.cancel(Tt)}}},[zt]),me.useEffect(function(){return Dr(),function(){clearTimeout(di.current)}},[vt]),me.useImperativeHandle(at,function(){return{delayHidden:Dr}});var ar="".concat(ct,"-scrollbar"),nn={position:"absolute",visibility:Jr?null:"hidden"},qt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return tt?(nn.height=8,nn.left=0,nn.right=0,nn.bottom=0,qt.height="100%",qt.width=We,Tr?qt.left=xi:qt.right=xi):(nn.width=8,nn.top=0,nn.bottom=0,Tr?nn.right=0:nn.left=0,qt.width="100%",qt.height=We,qt.top=xi),me.createElement("div",{ref:Kn,className:we()(ar,(0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(ar,"-horizontal"),tt),"".concat(ar,"-vertical"),!tt),"".concat(ar,"-visible"),Jr)),style:(0,oe.Z)((0,oe.Z)({},nn),Te),onMouseDown:pr,onMouseMove:Dr},me.createElement("div",{ref:Nr,className:we()("".concat(ar,"-thumb"),(0,ze.Z)({},"".concat(ar,"-thumb-moving"),zt)),style:(0,oe.Z)((0,oe.Z)({},qt),Ke),onMouseDown:jr}))}),xt=wt,ft=20;function mt(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ct=bt/at*bt;return isNaN(ct)&&(ct=0),ct=Math.max(ct,ft),Math.floor(ct)}var yt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],It=[],kt={overflowY:"auto",overflowAnchor:"none"};function Ut(bt,at){var ct=bt.prefixCls,Lt=ct===void 0?"rc-virtual-list":ct,vt=bt.className,nt=bt.height,Xe=bt.itemHeight,Ue=bt.fullHeight,$e=Ue===void 0?!0:Ue,tt=bt.style,We=bt.data,Be=bt.children,Te=bt.itemKey,Ke=bt.virtual,gt=bt.direction,Ze=bt.scrollWidth,Ot=bt.component,zt=Ot===void 0?"div":Ot,Yt=bt.onScroll,jt=bt.onVirtualScroll,Kt=bt.onVisibleChange,en=bt.innerProps,cn=bt.extraRender,yn=bt.styles,On=bt.showScrollBar,or=On===void 0?"optional":On,er=(0,ve.Z)(bt,yt),Tr=me.useCallback(function(qr){return typeof Te=="function"?Te(qr):qr==null?void 0:qr[Te]},[Te]),Kn=Ve(Tr,null,null),Nr=(0,je.Z)(Kn,4),kr=Nr[0],Ur=Nr[1],Jr=Nr[2],Mr=Nr[3],di=!!(Ke!==!1&&nt&&Xe),Dr=me.useMemo(function(){return Object.values(Jr.maps).reduce(function(qr,ii){return qr+ii},0)},[Jr.id,Jr.maps]),ot=di&&We&&(Math.max(Xe*We.length,Dr)>nt||!!Ze),Ci=gt==="rtl",xi=we()(Lt,(0,ze.Z)({},"".concat(Lt,"-rtl"),Ci),vt),pr=We||It,Pr=(0,me.useRef)(),jr=(0,me.useRef)(),Li=(0,me.useRef)(),nr=(0,me.useState)(0),ar=(0,je.Z)(nr,2),nn=ar[0],qt=ar[1],Tt=(0,me.useState)(0),ln=(0,je.Z)(Tt,2),Cn=ln[0],Xt=ln[1],Rt=(0,me.useState)(!1),fn=(0,je.Z)(Rt,2),un=fn[0],Gn=fn[1],Xn=function(){Gn(!0)},$t=function(){Gn(!1)},kn={getKey:Tr};function Wn(qr){qt(function(ii){var Oi;typeof qr=="function"?Oi=qr(ii):Oi=qr;var Pi=Kr(Oi);return Pr.current.scrollTop=Pi,Pi})}var lr=(0,me.useRef)({start:0,end:pr.length}),on=(0,me.useRef)(),Mn=ue(pr,Tr),an=(0,je.Z)(Mn,1),xn=an[0];on.current=xn;var gn=me.useMemo(function(){if(!di)return{scrollHeight:void 0,start:0,end:pr.length-1,offset:void 0};if(!ot){var qr;return{scrollHeight:((qr=jr.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,Vr=0;Vr<To;Vr+=1){var Zr=pr[Vr],Yn=Tr(Zr),ci=Jr.get(Yn),ro=ii+(ci===void 0?Xe:ci);ro>=nn&&Oi===void 0&&(Oi=Vr,Pi=ii),ro>nn+nt&&co===void 0&&(co=Vr),ii=ro}return Oi===void 0&&(Oi=0,Pi=0,co=Math.ceil(nt/Xe)),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,nn,pr,Mr,nt]),Sn=gn.scrollHeight,An=gn.start,Nn=gn.end,Fn=gn.offset;lr.current.start=An,lr.current.end=Nn,me.useLayoutEffect(function(){var qr=Jr.getRecord();if(qr.size===1){var ii=Array.from(qr)[0],Oi=pr[An];if(Oi){var Pi=Tr(Oi);if(Pi===ii){var co=Jr.get(ii),To=co-Xe;Wn(function(Vr){return Vr+To})}}}Jr.resetRecord()},[Sn]);var zn=me.useState({width:0,height:nt}),xr=(0,je.Z)(zn,2),mn=xr[0],Fr=xr[1],Qr=function(ii){Fr({width:ii.offsetWidth,height:ii.offsetHeight})},Br=(0,me.useRef)(),bn=(0,me.useRef)(),Jn=me.useMemo(function(){return mt(mn.width,Ze)},[mn.width,Ze]),sr=me.useMemo(function(){return mt(mn.height,Sn)},[mn.height,Sn]),Sr=Sn-nt,mr=(0,me.useRef)(Sr);mr.current=Sr;function Kr(qr){var ii=qr;return Number.isNaN(mr.current)||(ii=Math.min(ii,mr.current)),ii=Math.max(ii,0),ii}var ri=nn<=0,Rr=nn>=Sr,br=Cn<=0,ur=Cn>=Ze,vn=Ie(ri,Rr,br,ur),cr=function(){return{x:Ci?-Cn:Cn,y:nn}},wn=(0,me.useRef)(cr()),zr=(0,Se.useEvent)(function(qr){if(jt){var ii=(0,oe.Z)((0,oe.Z)({},cr()),qr);(wn.current.x!==ii.x||wn.current.y!==ii.y)&&(jt(ii),wn.current=ii)}});function $i(qr,ii){var Oi=qr;ii?((0,xe.flushSync)(function(){Xt(Oi)}),zr()):Wn(Oi)}function Mi(qr){var ii=qr.currentTarget.scrollTop;ii!==nn&&Wn(ii),Yt==null||Yt(qr),zr()}var yo=function(ii){var Oi=ii,Pi=Ze?Ze-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(){Xt(function(Oi){var Pi=Oi+(Ci?-qr:qr);return yo(Pi)})}),zr()):Wn(function(Oi){var Pi=Oi+qr;return Pi})}),Wr=Oe(di,ri,Rr,br,ur,!!Ze,no),Hr=(0,je.Z)(Wr,2),wi=Hr[0],vi=Hr[1];ut(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}),qe(ot,Pr,function(qr){Wn(function(ii){return ii+qr})}),(0,Pe.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,Pe.Z)(function(){if(Ze){var qr=yo(Cn);Xt(qr),zr({x:qr})}},[mn.width,Ze]);var fr=function(){var ii,Oi;(ii=Br.current)===null||ii===void 0||ii.delayHidden(),(Oi=bn.current)===null||Oi===void 0||Oi.delayHidden()},At=pt(Pr,pr,Jr,Xe,Tr,function(){return Ur(!0)},Wn,fr);me.useImperativeHandle(at,function(){return{nativeElement:Li.current,getScrollInfo:cr,scrollTo:function(ii){function Oi(Pi){return Pi&&(0,Mt.Z)(Pi)==="object"&&("left"in Pi||"top"in Pi)}Oi(ii)?(ii.left!==void 0&&Xt(yo(ii.left)),At(ii.top)):At(ii)}}}),(0,Pe.Z)(function(){if(Kt){var qr=pr.slice(An,Nn+1);Kt(qr,pr)}},[An,Nn,pr]);var Fi=Le(pr,Tr,Jr,Xe),Ki=cn==null?void 0:cn({start:An,end:Nn,virtual:ot,offsetX:Cn,offsetY:Fn,rtl:Ci,getSize:Fi}),gi=ae(pr,An,Nn,Ze,Cn,kr,Be,kn),oo=null;nt&&(oo=(0,oe.Z)((0,ze.Z)({},$e?"height":"maxHeight",nt),kt),di&&(oo.overflowY="hidden",Ze&&(oo.overflowX="hidden"),un&&(oo.pointerEvents="none")));var So={};return Ci&&(So.dir="rtl"),me.createElement("div",(0,et.Z)({ref:Li,style:(0,oe.Z)((0,oe.Z)({},tt),{},{position:"relative"}),className:xi},So,er),me.createElement(Me.Z,{onResize:Qr},me.createElement(zt,{className:"".concat(Lt,"-holder"),style:oo,ref:Pr,onScroll:Mi,onMouseEnter:fr},me.createElement(z,{prefixCls:Lt,height:Sn,offsetX:Cn,offsetY:Fn,scrollWidth:Ze,onInnerResize:Ur,ref:jr,innerProps:en,rtl:Ci,extra:Ki},gi))),ot&&Sn>nt&&me.createElement(xt,{ref:Br,prefixCls:Lt,scrollOffset:nn,scrollRange:Sn,rtl:Ci,onScroll:$i,onStartMove:Xn,onStopMove:$t,spinSize:sr,containerSize:mn.height,style:yn==null?void 0:yn.verticalScrollBar,thumbStyle:yn==null?void 0:yn.verticalScrollBarThumb,showScrollBar:or}),ot&&Ze>mn.width&&me.createElement(xt,{ref:bn,prefixCls:Lt,scrollOffset:Cn,scrollRange:Ze,rtl:Ci,onScroll:$i,onStartMove:Xn,onStopMove:$t,spinSize:Jn,containerSize:mn.width,horizontal:!0,style:yn==null?void 0:yn.horizontalScrollBar,thumbStyle:yn==null?void 0:yn.horizontalScrollBarThumb,showScrollBar:or}))}var Pt=me.forwardRef(Ut);Pt.displayName="List";var Ct=Pt,st=Ct},93314:function(_n){"use strict";_n.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(_n){"use strict";_n.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(_n){"use strict";_n.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(_n){"use strict";_n.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(_n,Pn,Ge){"use strict";Ge.d(Pn,{Z:function(){return we}});const et=Me=>typeof Me=="object"&&Me!=null&&Me.nodeType===1,Mt=(Me,Se)=>(!Se||Me!=="hidden")&&Me!=="visible"&&Me!=="clip",oe=(Me,Se)=>{if(Me.clientHeight<Me.scrollHeight||Me.clientWidth<Me.scrollWidth){const Pe=getComputedStyle(Me,null);return Mt(Pe.overflowY,Se)||Mt(Pe.overflowX,Se)||(me=>{const xe=(fe=>{if(!fe.ownerDocument||!fe.ownerDocument.defaultView)return null;try{return fe.ownerDocument.defaultView.frameElement}catch(z){return null}})(me);return!!xe&&(xe.clientHeight<me.scrollHeight||xe.clientWidth<me.scrollWidth)})(Me)}return!1},ze=(Me,Se,Pe,me,xe,fe,z,ee)=>fe<Me&&z>Se||fe>Me&&z<Se?0:fe<=Me&&ee<=Pe||z>=Se&&ee>=Pe?fe-Me-me:z>Se&&ee<Pe||fe<Me&&ee>Pe?z-Se+xe:0,je=Me=>{const Se=Me.parentElement;return Se==null?Me.getRootNode().host||null:Se},ve=(Me,Se)=>{var Pe,me,xe,fe;if(typeof document=="undefined")return[];const{scrollMode:z,block:ee,inline:ae,boundary:re,skipOverflowHiddenElements:le}=Se,ue=typeof re=="function"?re:xt=>xt!==re;if(!et(Me))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,be=[];let Ce=Me;for(;et(Ce)&&ue(Ce);){if(Ce=je(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 Ie=(me=(Pe=window.visualViewport)==null?void 0:Pe.width)!=null?me:innerWidth,Oe=(fe=(xe=window.visualViewport)==null?void 0:xe.height)!=null?fe:innerHeight,{scrollX:Le,scrollY:Ne}=window,{height:De,width:Re,top:Je,right:_e,bottom:Ve,left:Qe}=Me.getBoundingClientRect(),{top:ut,right:dt,bottom:St,left:qe}=(xt=>{const ft=window.getComputedStyle(xt);return{top:parseFloat(ft.scrollMarginTop)||0,right:parseFloat(ft.scrollMarginRight)||0,bottom:parseFloat(ft.scrollMarginBottom)||0,left:parseFloat(ft.scrollMarginLeft)||0}})(Me);let it=ee==="start"||ee==="nearest"?Je-ut:ee==="end"?Ve+St:Je+De/2-ut+St,pt=ae==="center"?Qe+Re/2-qe+dt:ae==="end"?_e+dt:Qe-qe;const wt=[];for(let xt=0;xt<be.length;xt++){const ft=be[xt],{height:mt,width:yt,top:It,right:kt,bottom:Ut,left:Pt}=ft.getBoundingClientRect();if(z==="if-needed"&&Je>=0&&Qe>=0&&Ve<=Oe&&_e<=Ie&&(ft===pe&&!oe(ft)||Je>=It&&Ve<=Ut&&Qe>=Pt&&_e<=kt))return wt;const Ct=getComputedStyle(ft),st=parseInt(Ct.borderLeftWidth,10),bt=parseInt(Ct.borderTopWidth,10),at=parseInt(Ct.borderRightWidth,10),ct=parseInt(Ct.borderBottomWidth,10);let Lt=0,vt=0;const nt="offsetWidth"in ft?ft.offsetWidth-ft.clientWidth-st-at:0,Xe="offsetHeight"in ft?ft.offsetHeight-ft.clientHeight-bt-ct:0,Ue="offsetWidth"in ft?ft.offsetWidth===0?0:yt/ft.offsetWidth:0,$e="offsetHeight"in ft?ft.offsetHeight===0?0:mt/ft.offsetHeight:0;if(pe===ft)Lt=ee==="start"?it:ee==="end"?it-Oe:ee==="nearest"?ze(Ne,Ne+Oe,Oe,bt,ct,Ne+it,Ne+it+De,De):it-Oe/2,vt=ae==="start"?pt:ae==="center"?pt-Ie/2:ae==="end"?pt-Ie:ze(Le,Le+Ie,Ie,st,at,Le+pt,Le+pt+Re,Re),Lt=Math.max(0,Lt+Ne),vt=Math.max(0,vt+Le);else{Lt=ee==="start"?it-It-bt:ee==="end"?it-Ut+ct+Xe:ee==="nearest"?ze(It,Ut,mt,bt,ct+Xe,it,it+De,De):it-(It+mt/2)+Xe/2,vt=ae==="start"?pt-Pt-st:ae==="center"?pt-(Pt+yt/2)+nt/2:ae==="end"?pt-kt+at+nt:ze(Pt,kt,yt,st,at+nt,pt,pt+Re,Re);const{scrollLeft:tt,scrollTop:We}=ft;Lt=$e===0?0:Math.max(0,Math.min(We+Lt/$e,ft.scrollHeight-mt/$e+Xe)),vt=Ue===0?0:Math.max(0,Math.min(tt+vt/Ue,ft.scrollWidth-yt/Ue+nt)),it+=We-Lt,pt+=tt-vt}wt.push({el:ft,top:Lt,left:vt})}return wt},ce=Me=>Me===!1?{block:"end",inline:"nearest"}:(Se=>Se===Object(Se)&&Object.keys(Se).length!==0)(Me)?Me:{block:"start",inline:"nearest"};function we(Me,Se){if(!Me.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})(Me))return;const Pe=(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}})(Me);if((xe=>typeof xe=="object"&&typeof xe.behavior=="function")(Se))return Se.behavior(ve(Me,Se));const me=typeof Se=="boolean"||Se==null?void 0:Se.behavior;for(const{el:xe,top:fe,left:z}of ve(Me,ce(Se))){const ee=fe-Pe.top+Pe.bottom,ae=z-Pe.left+Pe.right;xe.scroll({top:ee,left:ae,behavior:me})}}}}]);
|