|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5931],{35323:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},19155:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},10402:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},72295:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},93343:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},24566:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},80205:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},61441:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},30631:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},43971:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},58358:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},44757:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},16537:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},77042:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},5527:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},86902:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},53878:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},21970:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(nt,gt){return je.createElement(Xe.Z,(0,Ee.Z)({},nt,{ref:gt,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe},79906:function(){"use strict"},93938:function(On,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"}},57534:function(On,Pn){"use strict";Pn.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl"}},63593:function(On,Pn){"use strict";Pn.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},37404:function(){"use strict";function On(Te,te,ne,he){ne===void 0&&(ne=0),he===void 0&&(he=1/0),this._name=Te,this._defaultValue=te,this._minimum=ne,this._maximum=he}Object.defineProperty(On.prototype,"name",{get:function(){return this._name},set:function(Te){if(typeof Te!="string"||Te==="")throw new Error("Shape name must be a valid string.");this._name=Te}}),Object.defineProperty(On.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("The default value must be a real number, not: "+Te);this._defaultValue=Te}}),Object.defineProperty(On.prototype,"minimum",{get:function(){return this._minimum},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("Minimum must be a real number, not: "+Te);this._minimum=Te}}),Object.defineProperty(On.prototype,"maximum",{get:function(){return this._maximum},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("Maximum must be a real number, not: "+Te);this._maximum=Te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Te,te){var ne=go.Shape._FigureParameters[Te];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Te,te,ne){if(!(ne instanceof On))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var he=go.Shape._FigureParameters[Te];he||(he=[],go.Shape._FigureParameters[Te]=he),he[te]=ne};var Pn=[];function Se(Te,te){var ne=Pn.pop();return ne===void 0?new go.Point(Te,te):(ne.x=Te,ne.y=te,ne)}function Ee(){var Te=Pn.pop();return Te===void 0?new go.Point:Te}function je(Te){Pn.push(Te)}function it(Te,te,ne,he,se,ge,ve,Pe,ke){ke||(ke=new go.Point);var we=Te-ne,Oe=se-ve,ze=NaN,We=NaN;if(we===0)if(Oe===0)Te===ne&&(ze=Te,We=te);else{var Ue=(ge-Pe)/Oe,ut=ge-Ue*se;ze=Te,We=Ue*ze+ut}else if(Oe===0){var Ke=(te-he)/we,Ht=te-Ke*Te;ze=se,We=Ke*ze+Ht}else{var Ke=(te-he)/we,Ue=(ge-Pe)/Oe,Ht=te-Ke*Te,ut=ge-Ue*se;ze=(ut-Ht)/(Ke-Ue),We=Ke*ze+Ht}return ke.x=ze,ke.y=We,ke}function kt(Te,te,ne,he,se,ge,ve,Pe,ke,we,Oe,ze,We,Ue){var ut=1-ke,Ke=ke,Ht=Te*ut+ne*Ke,St=te*ut+he*Ke,_t=ne*ut+se*Ke,Qt=he*ut+ge*Ke,qt=se*ut+ve*Ke,sn=ge*ut+Pe*Ke,Bn=Ht*ut+_t*Ke,yt=St*ut+Qt*Ke,Ge=_t*ut+qt*Ke,tn=Qt*ut+sn*Ke,Wn=Bn*ut+Ge*Ke,Qn=yt*ut+tn*Ke;we.x=Ht,we.y=St,Oe.x=Bn,Oe.y=yt,ze.x=Wn,ze.y=Qn,We.x=Ge,We.y=tn,Ue.x=qt,Ue.y=sn}var Xe=new go.Spot(.156,.156),pt=new go.Spot(.844,.844),Fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new On("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Te,te,ne){var he=Te?Te.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ne/3);var se=he*Fe,ge=new go.Geometry().add(new go.PathFigure(he,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-he,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ne-he)).add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,ne-se,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,he,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,se,ne,0,ne-se)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()));return se>1&&(ge.spot1=new go.Spot(0,0,se,se),ge.spot2=new go.Spot(1,1,-se,-se)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Te,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=ne/2,he.endX=te,he.endY=ne/2,he}),go.Shape.defineFigureGenerator("LineV",function(Te,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=te/2,he.startY=0,he.endX=te/2,he.endY=ne,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Te,te,ne){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*te,(1-he)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ne)).add(new go.PathSegment(go.PathSegment.Move,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(Te,te,ne){var he=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return se.spot1=Xe,se.spot2=pt,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Te,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=te,he.endY=ne,he}),go.Shape.defineFigureGenerator("Line2",function(Te,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=te,he.startY=0,he.endX=0,he.endY=ne,he}),go.Shape.defineFigureGenerator("Curve1",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Fe*te,0,te,(1-Fe)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,Fe*ne,(1-Fe)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,Fe*ne,Fe*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Fe)*te,0,0,(1-Fe)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new On("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var se=Math.abs(he)*te;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new On("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te:he>te&&(he=te);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new On("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var se=Math.abs(he)*te;if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new On("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)?he=20:he<-te?he=-te/2:he>te&&(he=te/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new On("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te/2:he>te&&(he=te/2);var se=Math.abs(he);if(he===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=te,ge.endY=ne,ge}else{var ge=new go.Geometry;return he>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())):ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),se<te/2&&ge.setSpots(se/te,0,(te-se)/te,1),ge}});var Ft=[];function Ct(){var Te=Ft.pop();return Te===void 0?[]:Te}function nt(Te){Te.length=0,Ft.push(Te)}function gt(Te){for(var te=Ct(),ne=.5,he=.5,se=Math.PI*1.5,ge=0,ve=0;ve<Te;ve++)ge=2*Math.PI/Te*ve+se,te[ve]=new go.Point(he+ne*Math.cos(ge),he+ne*Math.sin(ge));return te.push(te[0]),te}function wt(Te){var te=xt(Te),ne=Ct();ne[0]=te[0];for(var he=1,se=1;he<te.length;he+=2,se+=3)ne[se]=te[he],ne[se+1]=te[he],ne[se+2]=te[he+1];return nt(te),ne}function xt(Te){for(var te=gt(Te),ne=Ct(),he=Math.floor(te.length/2),se=te.length-1,ge=Te%2===0?2:1,ve=0;ve<se;ve++){var Pe=te[ve],ke=te[ve+1],we=te[(he+ve-1)%se],Oe=te[(he+ve+ge)%se];ne[ve*2]=Pe,ne[ve*2+1]=it(Pe.x,Pe.y,we.x,we.y,ke.x,ke.y,Oe.x,Oe.y,new go.Point)}return ne[ne.length]=ne[0],nt(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Te,te,ne){var he=gt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<5;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Te,te,ne){var he=gt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<6;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Te,te,ne){var he=gt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<7;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Te,te,ne){var he=gt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<8;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Te,te,ne){var he=gt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<9;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Te,te,ne){var he=gt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<10;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Te,te,ne){var he=gt(12),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<12;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Te,te,ne){var he=xt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<10;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Te,te,ne){var he=xt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<12;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Te,te,ne){var he=xt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<14;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Te,te,ne){var he=xt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<16;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Te,te,ne){var he=xt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<18;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Te,te,ne){var he=xt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<20;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,he[ve].x*te,he[ve].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),nt(he),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Te,te,ne){var he=wt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<he.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ve+2].x*te,he[ve+2].y*ne,he[ve].x*te,he[ve].y*ne,he[ve+1].x*te,he[ve+1].y*ne));return ge.segments.last().close(),nt(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Te,te,ne){var he=wt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<he.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ve+2].x*te,he[ve+2].y*ne,he[ve].x*te,he[ve].y*ne,he[ve+1].x*te,he[ve+1].y*ne));return ge.segments.last().close(),nt(he),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Te,te,ne){var he=wt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<he.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ve+2].x*te,he[ve+2].y*ne,he[ve].x*te,he[ve].y*ne,he[ve+1].x*te,he[ve+1].y*ne));return ge.segments.last().close(),nt(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Te,te,ne){var he=wt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<he.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ve+2].x*te,he[ve+2].y*ne,he[ve].x*te,he[ve].y*ne,he[ve+1].x*te,he[ve+1].y*ne));return ge.segments.last().close(),nt(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Te,te,ne){var he=wt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<he.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ve+2].x*te,he[ve+2].y*ne,he[ve].x*te,he[ve].y*ne,he[ve+1].x*te,he[ve+1].y*ne));return ge.segments.last().close(),nt(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Te,te,ne){var he=wt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var ve=1;ve<he.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[ve+2].x*te,he[ve+2].y*ne,he[ve].x*te,he[ve].y*ne,he[ve+1].x*te,he[ve+1].y*ne));return ge.segments.last().close(),nt(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new On("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new On("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Te,te,ne){var he=Te?Te.parameter1:NaN,se=Te?Te.parameter2:NaN;isNaN(he)&&(he=8),isNaN(se)&&(se=8);var ge=new go.Geometry,ve=new go.PathFigure(0,0,!0);return ge.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he<te/2&&se<ne/2&&(ve.add(new go.PathSegment(go.PathSegment.Move,he,se)),ve.add(new go.PathSegment(go.PathSegment.Line,he,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Line,te-he,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Line,te-he,se).close())),ge.setSpots(0,0,1,1,he,se,-he,-se),ge}),go.Shape.setFigureParameter("Ring",0,new On("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Te,te,ne){var he=Te?Te.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var se=te/2,ge=new go.Geometry,ve=new go.PathFigure(te,te/2,!0);ge.add(ve),ve.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var Pe=Math.max(se-he,0);return Pe>0&&(ve.add(new go.PathSegment(go.PathSegment.Move,te/2+Pe,te/2)),ve.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,Pe,Pe).close())),ge.spot1=Xe,ge.spot2=pt,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ne,-.09239631*te,.07836421*ne,.1406031*te,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ne,.2450511*te,-.00697547*ne,.3776197*te,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ne,.4539471*te,0,.6066018*te,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ne,.6914277*te,-.01904177*ne,.8921095*te,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ne,1.036446*te,.04105738*ne,1.020377*te,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ne,1.04448*te,.360238*ne,.992256*te,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ne,1.032337*te,.5771781*ne,1.018411*te,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ne,1.028411*te,.9571472*ne,.8556702*te,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ne,.7431877*te,1.009325*ne,.5624123*te,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ne,.4820677*te,1.031761*ne,.3030112*te,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ne,.2329994*te,1.01518*ne,.03213784*te,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ne,-.02812061*te,.9032597*ne,-.01205169*te,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ne,-.01812061*te,.6089503*ne,-.00606892*te,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ne,-.01606892*te,.3892545*ne,-.01205169*te,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Te,te,ne){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,he*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,he*ne).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new On("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new On("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Te,te,ne){var he=Te?Te.parameter1:NaN,se=Te?Te.parameter2:NaN;isNaN(he)&&(he=0),isNaN(se)&&(se=315);var ge=he%360;ge<0&&(ge+=360);var ve=se%360,Pe=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(Pe,Pe).add(new go.PathSegment(go.PathSegment.Arc,ge,ve,Pe,Pe,Pe,Pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Te,te,ne){var he=Fe/Math.SQRT2*.5,se=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,ge*ne,te,(1-he)*ne,(se+he)*te,(ge+he)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Te,te,ne){var he=Te?Te.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var se=Math.min(he,te)/2,ge=te/2,ve=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new On("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Te,te,ne){var he=Te?Te.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=Math.min(he,te)/2,ge=te/2,ve=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Te,te,ne){var he=Te?Te.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),te===0||ne===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ne,se}else{var ge=te/2,ve=ne/2,Pe=Math.atan2(ne,te),ke=he-Math.min(Math.cos(Pe)*he/2,ge),we=he-Math.min(Math.sin(Pe)*he/2,ve),se=new go.Geometry,Oe=new go.PathFigure(ke,0,!0);return se.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,ge,.2*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,te-ke,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,te,we)),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*te,ve)),Oe.add(new go.PathSegment(go.PathSegment.Line,te,ne-we)),Oe.add(new go.PathSegment(go.PathSegment.Line,te-ke,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,ge,.8*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,ke,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ne-we)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ve)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new On("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Te,te,ne){var he=Te?Te.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=new go.Geometry,ge=new go.PathFigure(.1*te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new On("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*ne).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new On("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.5);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Math.abs(1-he)*te,.25*ne,Math.abs(1-he)*te,.75*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ne,he*te,.25*ne).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,Fe*te,0,te,(.5-Fe/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+Fe/2)*ne,Fe*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,0,te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ne,.5*te,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*te,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.5*ne,.9*te,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.6*te,.2*ne,te,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ne,te,.8*ne,.6*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,.5*te,.75*ne,.55*te,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ne,.45*te,.95*ne,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*te,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ne,0,.25*ne,.4*te,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.4*te,.6*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var ge=.2,ve=.3,Pe=0,ke=ge*Fe;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5+ge+Pe)*ne,(.5-ge+ve)*te,(.5+ke+Pe)*ne,(.5-ke+ve)*te,(.5+ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+ve)*te,(.5+Pe)*ne,(.5+ke+ve)*te,(.5+ge+Pe)*ne,(.5+ge+ve)*te,(.5+ke+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+Pe)*ne,(1-.5+ge+ve)*te,(.5-ke+Pe)*ne,(.5+ke+ve)*te,(.5-ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-ke+ve)*te,(.5-ge+Pe)*ne,(.5-ge+ve+.05)*te,(.5-ke+Pe-.02)*ne)),ge=.2,ve=0,Pe=-.3,ke=ge*Fe,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+ve)*te,(.5+Pe)*ne,(.5+ke+ve)*te,(.5+ge+Pe)*ne,(.5+ge+ve)*te,(.5+ke+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+Pe)*ne,(1-.5+ge+ve)*te,(.5-ke+Pe)*ne,(.5+ke+ve)*te,(.5-ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+ve)*te,(.5+Pe)*ne,(.5-ke+ve)*te,(.5-ge+Pe)*ne,(.5-ge+ve)*te,(.5-ke+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ke+ve)*te,(.5+ge+Pe)*ne,(.5-ge+ve)*te,(.5+ke+Pe)*ne,(.5-ke+ve)*te,(.5+ge+Pe)*ne)),ge=.2,ve=-.3,Pe=0,ke=ge*Fe,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+Pe)*ne,(1-.5+ge+ve-.05)*te,(.5-ke+Pe-.02)*ne,(.5+ke+ve)*te,(.5-ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+ve)*te,(.5+Pe)*ne,(.5-ke+ve)*te,(.5-ge+Pe)*ne,(.5-ge+ve)*te,(.5-ke+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5+ge+Pe)*ne,(.5-ge+ve)*te,(.5+ke+Pe)*ne,(.5-ke+ve)*te,(.5+ge+Pe)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+ke+ve)*te,(.5+ge+Pe)*ne,(.5+ge+ve)*te,(.5+ke+Pe)*ne).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var ge=.1,ve=.5,Pe=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(ve+ge)*te,Pe*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*ve,ne*Pe,ge*te,ge*te).close()),se=new go.PathFigure(te*.5,0,!1),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),Pe=.75,se=new go.PathFigure((ve+ge)*te,Pe*ne,!0),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*ve,ne*Pe,ge*te,ge*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Te,te,ne){var he=.8535533905932737,se=.5*te,ge=.5*ne;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,ge,se,ge)).add(new go.PathSegment(go.PathSegment.Line,se,ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,he*te,he*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=.5,ve=.5,Pe=.5,ke=new go.PathFigure(ve*te,(Pe-ge)*ne);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Pe*ne,(ve-se)*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+ge)*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Pe*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-ge)*ne,(ve+ge)*te,(Pe-se)*ne,(ve+se)*te,(Pe-ge)*ne)),ge=.4,se=Fe*.4;var we=Ee(),Oe=Ee(),ze=Ee(),We=Ee();kt(ve,Pe-ge,ve+se,Pe-ge,ve+ge,Pe-se,ve+ge,Pe,.42,we,Oe,ze,We,We);var Ue=Ee(),ut=Ee(),Ke=Ee();kt(ve,Pe-ge,ve+se,Pe-ge,ve+ge,Pe-se,ve+ge,Pe,.58,We,We,Ke,Ue,ut);var Ht=Ee(),St=Ee(),_t=Ee();kt(ve,Pe+ge,ve-se,Pe+ge,ve-ge,Pe+se,ve-ge,Pe,.42,Ht,St,_t,We,We);var Qt=Ee(),qt=Ee(),sn=Ee();return kt(ve,Pe+ge,ve-se,Pe+ge,ve-ge,Pe+se,ve-ge,Pe,.58,We,We,sn,Qt,qt),ke.add(new go.PathSegment(go.PathSegment.Move,sn.x*te,sn.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Pe*ne,Qt.x*te,Qt.y*ne,qt.x*te,qt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ze.x*te,ze.y*ne,we.x*te,we.y*ne,Oe.x*te,Oe.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,sn.x*te,sn.y*ne).close()),ke.add(new go.PathSegment(go.PathSegment.Move,_t.x*te,_t.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,Ke.x*te,Ke.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Pe*ne,Ue.x*te,Ue.y*ne,ut.x*te,ut.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*te,_t.y*ne,Ht.x*te,Ht.y*ne,St.x*te,St.y*ne).close()),je(we),je(Oe),je(ze),je(We),je(Ue),je(ut),je(Ke),je(Ht),je(St),je(_t),je(Qt),je(qt),je(sn),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ne,te,.25*ne,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new On("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Te,te,ne){var he=Te?Te.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>te&&(he=te);var se=(te-he)/2,ge=se+he;return new go.Geometry().add(new go.PathFigure(ge,.5*ne).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Te,te,ne){var he=new go.Geometry,se=Fe*.4,ge=.4,ve=.5,Pe=.5,ke=Ee(),we=Ee(),Oe=Ee(),ze=Ee(),We=new go.PathFigure((ve-ge)*te,Pe*ne,!1);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne)),kt(ve,Pe-ge,ve+se,Pe-ge,ve+ge,Pe-se,ve+ge,Pe,.44,Oe,ze,we,ke,ke),We.add(new go.PathSegment(go.PathSegment.Bezier,we.x*te,we.y*ne,Oe.x*te,Oe.y*ne,ze.x*te,ze.y*ne));var Ue=Se(we.x,we.y);kt(ve,Pe-ge,ve+se,Pe-ge,ve+ge,Pe-se,ve+ge,Pe,.56,ke,ke,we,Oe,ze);var ut=Se(we.x,we.y);We.add(new go.PathSegment(go.PathSegment.Line,(Ue.x*.1+.95*.9)*te,Ue.y*.1*ne)),We.add(new go.PathSegment(go.PathSegment.Line,.85*te,Ue.y*.1*ne)),We.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),We.add(new go.PathSegment(go.PathSegment.Line,te,0)),We.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),We.add(new go.PathSegment(go.PathSegment.Line,(ut.x*.1+.9)*te,.15*ne)),We.add(new go.PathSegment(go.PathSegment.Line,(ut.x*.1+.9)*te,(ut.y*.1+.05*.9)*ne)),We.add(new go.PathSegment(go.PathSegment.Line,ut.x*te,ut.y*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Pe*ne,Oe.x*te,Oe.y*ne,ze.x*te,ze.y*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Pe*ne,(ve-se)*te,(Pe+ge)*ne,(ve-ge)*te,(Pe+se)*ne)),ge=.35,se=Fe*.35;var Ke=new go.PathFigure(ve*te,(Pe-ge)*ne,!1);he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Pe*ne,(ve-se)*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+ge)*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Pe*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-ge)*ne,(ve+ge)*te,(Pe-se)*ne,(ve+se)*te,(Pe-ge)*ne));var Ht=new go.PathFigure((ve-ge)*te,Pe*ne,!1);return he.add(Ht),je(ke),je(we),je(Oe),je(ze),je(Ue),je(ut),he.spot1=new go.Spot(.202,.257),he.spot2=new go.Spot(.792,.739),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("GenderFemale",function(Te,te,ne){var he=new go.Geometry,se=.375,ge=0,ve=-.125,Pe=se*Fe,ke=new go.PathFigure((.525+ge)*te,(.5+se+ve)*ne,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+ve)*ne,(.5+Pe+ge)*te,(.5+se+ve)*ne,(.5+se+ge)*te,(.5+Pe+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+ve)*ne,(1-.5+se+ge)*te,(.5-Pe+ve)*ne,(.5+Pe+ge)*te,(.5-se+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-Pe+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-Pe+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*te,(.5+se+ve)*ne,(.5-se+ge)*te,(.5+Pe+ve)*ne,(.5-Pe+ge)*te,(.5+se+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),se=.325,ge=0,ve=-.125,Pe=se*Fe;var ke=new go.PathFigure((1-.5+se+ge)*te,(.5+ve)*ne,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5+se+ve)*ne,(.5+se+ge)*te,(.5+Pe+ve)*ne,(.5+Pe+ge)*te,(.5+se+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-Pe+ge)*te,(.5+se+ve)*ne,(.5-se+ge)*te,(.5+Pe+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-Pe+ve)*ne,(.5-Pe+ge)*te,(.5-se+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+ve)*ne,(.5+Pe+ge)*te,(.5-se+ve)*ne,(1-.5+se+ge)*te,(.5-Pe+ve)*ne));var ke=new go.PathFigure((.525+ge)*te,(.5+se+ve)*ne,!1);return he.add(ke),he.spot1=new go.Spot(.232,.136),he.spot2=new go.Spot(.682,.611),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicImplies",function(Te,te,ne){var he=Te?Te.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Te,te,ne){var he=Te?Te.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,he*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,he*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Te,te,ne){var he=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ne,.5*te,.5*ne)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Te,te,ne){var he=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*te,he*ne,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Te,te,ne){var he=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,he*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*te,he*ne,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new On("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new On("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.3);var se=Te?Te.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-he)*te,ve=(.5-se/2)*ne,Pe=(.5+se/2)*ne,ke=new go.Geometry,we=new go.PathFigure(0,ve,!0);ke.add(we),we.add(new go.PathSegment(go.PathSegment.Line,ge,ve)),we.add(new go.PathSegment(go.PathSegment.Line,ge,0)),we.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),we.add(new go.PathSegment(go.PathSegment.Line,ge,Pe)),we.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),ke.spot1=new go.Spot(0,ve/ne);var Oe=it(0,Pe/ne,1,Pe/ne,ge/te,1,1,.5,Ee());return ke.spot2=new go.Spot(Oe.x,Oe.y),je(Oe),ke}),go.Shape.setFigureParameter("Arrow2",0,new On("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new On("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var se=Te?Te.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var ge=te-he,ve=(ne-se)/2,Pe=ve+se,ke=new go.Geometry,we=new go.PathFigure(0,ve,!0);ke.add(we),we.add(new go.PathSegment(go.PathSegment.Line,ge,ve)),we.add(new go.PathSegment(go.PathSegment.Line,ge,0)),we.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),we.add(new go.PathSegment(go.PathSegment.Line,ge,Pe)),we.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),ke.spot1=new go.Spot(0,ve/ne);var Oe=it(0,Pe/ne,1,Pe/ne,ge/te,1,1,.5,Ee());return ke.spot2=new go.Spot(Oe.x,Oe.y),je(Oe),ke}),go.Shape.defineFigureGenerator("Chevron",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new On("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,ve=new go.Geometry,Pe=new go.PathFigure(te,.5*ne,!0);ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var ke=it(0,.5,.3,0,0,se/ne,.1,se/ne,Ee());return ve.spot1=new go.Spot(ke.x,ke.y),ke=it(.7,1,1,.5,0,ge/ne,1,ge/ne,ke),ve.spot2=new go.Spot(ke.x,ke.y),je(ke),ve}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new On("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new On("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=40);var se=Te?Te.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,ve=ge+he,Pe=(ne-se)/2,ke=Pe+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,ve=ge+he,Pe=0,ke=ne):(ge=0,ve=ne,Pe=0,ke=ne));var we=new go.Geometry,Oe=new go.PathFigure(te,.5*ne,!0);we.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ve)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ve)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*te,Pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Pe).close());var ze=it(0,.5,.3,Pe/ne,0,ge/ne,1,ge/ne,Ee());return we.spot1=new go.Spot(ze.x,ze.y),ze=it(.7,ke/ne,1,.5,0,ve/ne,1,ve/ne,ze),we.spot2=new go.Spot(ze.x,ze.y),je(ze),we}),go.Shape.setFigureParameter("IBeamArrow",0,new On("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,ve=new go.Geometry,Pe=new go.PathFigure(te,.5*ne,!0);ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(0,se/ne);var ke=it(.7,1,1,.5,0,ge/ne,1,ge/ne,Ee());return ve.spot2=new go.Spot(ke.x,ke.y),je(ke),ve}),go.Shape.setFigureParameter("IBeamArrow2",0,new On("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new On("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=40);var se=Te?Te.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,ve=ge+he,Pe=(ne-se)/2,ke=Pe+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,ve=ge+he,Pe=0,ke=ne):(ge=0,ve=ne,Pe=0,ke=ne));var we=new go.Geometry,Oe=new go.PathFigure(te,.5*ne,!0);we.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ve)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ve)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ke)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,Pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,Pe)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Oe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Pe).close()),we.spot1=new go.Spot(0,ge/ne);var ze=it(.7,ke/ne,1,.5,0,ve/ne,1,ve/ne,Ee());return we.spot2=new go.Spot(ze.x,ze.y),je(ze),we}),go.Shape.setFigureParameter("Pointer",0,new On("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.1);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(he,.35);var ve=it(.2,.65,1,.65,0,1,1,.5,Ee());return se.spot2=new go.Spot(ve.x,ve.y),je(ve),se}),go.Shape.setFigureParameter("RoundedPointer",0,new On("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.3);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ne,he*te,.25*ne).close()),se.spot1=new go.Spot(he,.35);var ve=it(0,.65,1,.65,0,1,1,.5,Ee());return se.spot2=new go.Spot(ve.x,ve.y),je(ve),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new On("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.4);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,ve=new go.Geometry,Pe=new go.PathFigure(te,.5*ne,!0);ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(.2,.3);var ke=it(.7,1,1,.5,0,ge/ne,1,ge/ne,Ee());return ve.spot2=new go.Spot(ke.x,ke.y),je(ke),ve}),go.Shape.setFigureParameter("SplitEndArrow2",0,new On("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=50);var se=(ne-he)/2,ge=se+he;he>ne&&(se=0,ge=ne);var ve=new go.Geometry,Pe=new go.PathFigure(te,.5*ne,!0);ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(.2,se/ne);var ke=it(.7,1,1,.5,0,ge/ne,1,ge/ne,Ee());return ve.spot2=new go.Spot(ke.x,ke.y),je(ke),ve}),go.Shape.setFigureParameter("SquareArrow",0,new On("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.7);var se=new go.Geometry,ge=new go.PathFigure(te,.5*ne,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(he,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=Fe*.1,ve=new go.PathFigure(0,.9*ne,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.9*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,ne,.85/.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var ge=new go.PathFigure(0,.9*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.3*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var ge=new go.PathFigure(0,.3*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Fe*.5,ve=new go.PathFigure(0,he,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Fe*he,(.5-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+ge)*te,0,1*te,Fe*he)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-he)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-Fe*he,(.5+ge)*te,1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,(.5-ge)*te,1*ne,0,ne-Fe*he)),ve.add(new go.PathSegment(go.PathSegment.Line,0,he));var Pe=new go.PathFigure(te,he,!1);return se.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-Fe*he,(.5+ge)*te,2*he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-ge)*te,2*he,0,2*he-Fe*he)),se.spot1=new go.Spot(0,0,0,2*he),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=Fe*.5,ve=new go.PathFigure(0,ne-he,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,he)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Fe*he,(.5-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+ge)*te,0,te,Fe*he)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-he)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-Fe*he,(.5+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,(.5-ge)*te,ne,0,ne-Fe*he));var Pe=new go.PathFigure(0,ne-he,!1);return se.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*he,0,ne-he-Fe*he,(.5-ge)*te,ne-2*he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-he,(.5+ge)*te,ne-2*he,te,ne-he-Fe*he)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*he),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Fe*.5,ve=new go.PathFigure(he,0,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Fe*he,0,te,(.5-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,(.5+ge)*ne,te-Fe*he,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,he,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Fe*he,ne,0,(.5+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*ne,Fe*he,0));var Pe=new go.PathFigure(he,0,!1);return se.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ne,he+Fe*he,0,2*he,(.5-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,he,ne,2*he,(.5+ge)*ne,he+Fe*he,ne)),se.spot1=new go.Spot(0,0,2*he,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=Fe*.5,ve=new go.PathFigure(te-he,0,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Fe*he,0,te,(.5-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,(.5+ge)*ne,te-Fe*he,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,he,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Fe*he,ne,0,(.5+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*ne,Fe*he,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te-he,0));var Pe=new go.PathFigure(te-he,0,!1);return se.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ne,te-he-Fe*he,0,te-2*he,(.5-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te-2*he,(.5+ge)*ne,te-he-Fe*he,ne)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*he,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,.25*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.25*te,.25*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.25*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var ge=new go.PathFigure(.5*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Te,te,ne){var he=new go.Geometry,se=.2,ge=.1,ve=Fe*se,Pe=Fe*ge,ke=.5,we=.1,Oe=new go.PathFigure(ke*te,(we+ge)*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-se)*te,we*ne,(ke-ve)*te,(we+ge)*ne,(ke-se)*te,(we+Pe)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-ge)*ne,(ke-se)*te,(we-Pe)*ne,(ke-ve)*te,(we-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+se)*te,we*ne,(ke+ve)*te,(we-ge)*ne,(ke+se)*te,(we-Pe)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we+ge)*ne,(ke+se)*te,(we+Pe)*ne,(ke+ve)*te,(we+ge)*ne));var ze=.05,We=Fe*ze;ke=.05,we=.25;var Ue=new go.PathFigure(.5*te,.2*ne,!0);return he.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),ke=.95,we=.25,Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ke+ze)*te,we*ne,(ke+We)*te,(we-ze)*ne,(ke+ze)*te,(we-We)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),ze=.025,We=Fe*ze,ke=.825,we=.35,Ue.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-ze)*ne,(ke+ze)*te,(we-We)*ne,(ke+We)*te,(we-ze)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ke-ze)*te,we*ne,(ke-We)*te,(we-ze)*ne,(ke-ze)*te,(we-We)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),ze=.05,We=Fe*ze,ke=.5,we=.7,Ue.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-ze)*ne,(ke+ze)*te,(we-We)*ne,(ke+We)*te,(we-ze)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ke-ze)*te,we*ne,(ke-We)*te,(we-ze)*ne,(ke-ze)*te,(we-We)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),ze=.025,We=Fe*ze,ke=.175,we=.35,Ue.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-ze)*ne,(ke+ze)*te,(we-We)*ne,(ke+We)*te,(we-ze)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ke-ze)*te,we*ne,(ke-We)*te,(we-ze)*ne,(ke-ze)*te,(we-We)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),ze=.05,We=Fe*ze,ke=.05,we=.25,Ue.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-ze)*ne,(ke-ze)*te,(we-We)*ne,(ke-We)*te,(we-ze)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new On("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Te,te,ne){var he=Te?Te.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,ge=new go.PathFigure(te,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=new go.Spot(0,he),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne));var ge=new go.PathFigure(.5*te,.5*ne,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure(0,se*ne,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),he}),go.Shape.defineFigureGenerator("Database",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=Fe*.1,ve=new go.PathFigure(te,.1*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Pe=new go.PathFigure(te,.1*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+ge)*ne,(.5+se)*te,.4*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-se)*te,.4*ne,0,(.3+ge)*ne)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ne,.25*te,.1*ne).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=Fe*.1,ve=new go.PathFigure(te,.1*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var Pe=new go.PathFigure(te,.1*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=Fe*.2,ve=new go.PathFigure(0,.2*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-ge)*ne,(.2-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+ge)*te,0,te,(.2-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+ge)*ne,(.8+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-ge)*te,ne,0,(.8+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var Pe=new go.PathFigure(0,se*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure(0,se*ne,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("Document",function(Te,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure(se*te,0,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(.1*te,.4*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ne)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(.75*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne));var ge=new go.PathFigure(te,.5*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne));var ve=new go.PathFigure(te,.5*ne,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN,ge=Te?Te.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var ve=new go.PathFigure(0,0,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Pe=new go.PathFigure(se*te,0,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,0,ge*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne)),he}),go.Shape.defineFigureGenerator("Junction",function(Te,te,ne){var he=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,ve=Fe*.5,Pe=.5,ke=new go.PathFigure(te,Pe*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,ne,te,(Pe+ve)*ne,(Pe+ve)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,Pe*ne,(Pe-ve)*te,ne,0,(Pe+ve)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,0,0,(Pe-ve)*ne,(Pe-ve)*te,0)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,Pe*ne,(Pe+ve)*te,0,te,(Pe-ve)*ne));var we=new go.PathFigure((ge+se)*te,(ge+se)*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,ge*te,ge*ne)),we.add(new go.PathSegment(go.PathSegment.Move,ge*te,(ge+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*te,ge*ne)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(Te,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close());var ge=new go.PathFigure(.1*te,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=.5,ve=new go.PathFigure(.5*te,ne,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*te,.9*ne,te,(ge+se)*ne,(ge+se)*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Te,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ne,.96*te,.47*ne,.93*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ne,.86*te,.57*ne,.83*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*te,.4*ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var ge=new go.PathFigure(.1*te,.2*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,.1*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close());var ge=new go.PathFigure(.2*te,.1*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,ve=new go.PathFigure(0,0,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var Pe=new go.PathFigure(.5*se*te,se*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=.5,ve=new go.PathFigure(te,ge*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Pe=new go.PathFigure(te,.5*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(Te,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.5*te,.6*ne,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN,ge=Te?Te.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var ve=new go.PathFigure(0,0,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN,ge=Te?Te.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var ve=new go.PathFigure(0,0,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure((1-se)*te,0,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),he}),go.Shape.defineFigureGenerator("Process",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ve=new go.PathFigure(se*te,0,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var ge=new go.PathFigure(0,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*te,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var ve=new go.PathFigure(se*te,0,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),he.spot1=new go.Spot(se,0),he.spot2=new go.Spot(1-se,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Te,te,ne){var he=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ne).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=new go.PathFigure(0,0,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(.5+se)*te,0,te,(.5-se)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.5+se)*ne,(.5+se)*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=.5,ve=new go.PathFigure(te,ge*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var Pe=new go.PathFigure(te,ge*ne,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne));var ke=new go.PathFigure(.8*te,.75*ne,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),he}),go.Shape.defineFigureGenerator("Ground",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),he}),go.Shape.defineFigureGenerator("Inverter",function(Te,te,ne){var he=new go.Geometry,se=Fe*.1,ge=.1,ve=.9,Pe=.5,ke=new go.PathFigure(.8*te,.5*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,0,0)),ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var we=new go.PathFigure((ve+ge)*te,Pe*ne,!0);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Pe*ne,(ve-se)*te,(Pe+ge)*ne,(ve-ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Pe*ne,(ve+se)*te,(Pe-ge)*ne,(ve+ge)*te,(Pe-se)*ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=Fe*.4,ve=Fe*.1,Pe=.1,ke=.9,we=.5,Oe=new go.PathFigure(.8*te,.5*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+ge)*ne,(.4+se)*te,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+se)*te,0,.8*te,(.5-ge)*ne));var ze=new go.PathFigure((ke+Pe)*te,we*ne,!0);return he.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we+Pe)*ne,(ke+Pe)*te,(we+ve)*ne,(ke+ve)*te,(we+Pe)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe)*te,we*ne,(ke-ve)*te,(we+Pe)*ne,(ke-Pe)*te,(we+ve)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-Pe)*ne,(ke-Pe)*te,(we-ve)*ne,(ke-ve)*te,(we-Pe)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe)*te,we*ne,(ke+ve)*te,(we-Pe)*ne,(ke+Pe)*te,(we-ve)*ne)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Te,te,ne){var he=new go.Geometry,se=.5,ge=Fe*se,ve=0,Pe=.5,ke=new go.PathFigure(.8*te,.5*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(ve+ge)*te,(Pe-se)*ne,.7*te,(Pe-ge)*ne)),se=.1,ge=Fe*.1,ve=.9,Pe=.5;var we=new go.PathFigure((ve-se)*te,Pe*ne,!0);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Pe*ne,(ve+ge)*te,(Pe-se)*ne,(ve+se)*te,(Pe-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Pe*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(Te,te,ne){var he=new go.Geometry,se=.5,ge=Fe*se,ve=0,Pe=.5,ke=new go.PathFigure(0,0,!0);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(ve+ge+ge)*te,(Pe-se)*ne,.8*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(Pe+ge)*ne,(ve+ge+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(Te,te,ne){var he=new go.Geometry,se=.5,ge=Fe*se,ve=.2,Pe=.5,ke=new go.PathFigure(.1*te,0,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var we=new go.PathFigure(.8*te,.5*ne,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(ve+ge)*te,(Pe-se)*ne,.7*te,(Pe-ge)*ne)),se=.1,ge=Fe*.1,ve=.9,Pe=.5;var Oe=new go.PathFigure((ve-se)*te,Pe*ne,!0);return he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Pe*ne,(ve+ge)*te,(Pe-se)*ne,(ve+se)*te,(Pe-ge)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Pe*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(Te,te,ne){var he=new go.Geometry,se=.5,ge=Fe*se,ve=.2,Pe=.5,ke=new go.PathFigure(.1*te,0,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var we=new go.PathFigure(.2*te,0,!0);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(ve+ge)*te,(Pe-se)*ne,.9*te,(Pe-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("Resistor",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Inductor",function(Te,te,ne){var he=new go.Geometry,se=Fe*.1,ge=.1,ve=.1,Pe=.5,ke=new go.PathFigure((ve-se*.5)*te,ne,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.3,ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.5,ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.7,ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.9,ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se*.5)*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Te,te,ne){var he=new go.Geometry,se=Fe*.5,ge=.5,ve=.5,Pe=.5,ke=new go.PathFigure((ve-ge)*te,Pe*ne,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Pe*ne,(ve+se)*te,(Pe-ge)*ne,(ve+ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Pe*ne,(ve-se)*te,(Pe+ge)*ne,(ve-ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,(ve-ge+.1)*te,Pe*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge-.1)*te,Pe*ne,ve*te,(Pe-ge)*ne,ve*te,(Pe+ge)*ne)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("Diode",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Te,te,ne){var he=new go.Geometry,se=te,ge=ne;te=te*.38,ne=ne*.6;var ve=Fe*.8,Pe=.8,ke=0,we=.5,Oe=(se-te)/2,ze=(ge-ne)/2,We=new go.PathFigure(ke*te+Oe,(we+Pe)*ne+ze,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe)*te+Oe,we*ne+ze,(ke-ve)*te+Oe,(we+Pe)*ne+ze,(ke-Pe)*te+Oe,(we+ve)*ne+ze)),We.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+ze,(ke-Pe)*te+Oe,(we-ve)*ne+ze,(ke-ve)*te+Oe,(we-Pe)*ne+ze)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe+ve*.5)*te+Oe,we*ne+ze,ke*te+Oe,(we-Pe)*ne+ze,(ke-Pe+ve*.5)*te+Oe,(we-ve)*ne+ze)),We.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+ze,(ke-Pe+ve*.5)*te+Oe,(we+ve)*ne+ze,ke*te+Oe,(we+Pe)*ne+ze).close()),ve=Fe*.4,Pe=.4,ke=.2,we=.5;var Ue=new go.PathFigure(ke*te+Oe,(we+Pe)*ne+ze,!0);he.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe)*te+Oe,we*ne+ze,(ke-ve)*te+Oe,(we+Pe)*ne+ze,(ke-Pe)*te+Oe,(we+ve)*ne+ze)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+ze,(ke-Pe)*te+Oe,(we-ve)*ne+ze,(ke-ve)*te+Oe,(we-Pe)*ne+ze)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe+ve*.5)*te+Oe,we*ne+ze,ke*te+Oe,(we-Pe)*ne+ze,(ke-Pe+ve*.5)*te+Oe,(we-ve)*ne+ze)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+ze,(ke-Pe+ve*.5)*te+Oe,(we+ve)*ne+ze,ke*te+Oe,(we+Pe)*ne+ze).close()),ve=Fe*.2,Pe=.2,ke=.5,we=.5;var ut=new go.PathFigure((ke-Pe)*te+Oe,we*ne+ze,!0);he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+ze,(ke-Pe)*te+Oe,(we-ve)*ne+ze,(ke-ve)*te+Oe,(we-Pe)*ne+ze)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe)*te+Oe,we*ne+ze,(ke+ve)*te+Oe,(we-Pe)*ne+ze,(ke+Pe)*te+Oe,(we-ve)*ne+ze)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+ze,(ke+Pe)*te+Oe,(we+ve)*ne+ze,(ke+ve)*te+Oe,(we+Pe)*ne+ze)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Pe)*te+Oe,we*ne+ze,(ke-ve)*te+Oe,(we+Pe)*ne+ze,(ke-Pe)*te+Oe,(we+ve)*ne+ze)),ve=Fe*.4,Pe=.4,ke=.8,we=.5;var Ke=new go.PathFigure(ke*te+Oe,(we-Pe)*ne+ze,!0);he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe)*te+Oe,we*ne+ze,(ke+ve)*te+Oe,(we-Pe)*ne+ze,(ke+Pe)*te+Oe,(we-ve)*ne+ze)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+ze,(ke+Pe)*te+Oe,(we+ve)*ne+ze,(ke+ve)*te+Oe,(we+Pe)*ne+ze)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe-ve*.5)*te+Oe,we*ne+ze,ke*te+Oe,(we+Pe)*ne+ze,(ke+Pe-ve*.5)*te+Oe,(we+ve)*ne+ze)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+ze,(ke+Pe-ve*.5)*te+Oe,(we-ve)*ne+ze,ke*te+Oe,(we-Pe)*ne+ze).close()),ve=Fe*.8,Pe=.8,ke=1,we=.5;var Ht=new go.PathFigure(ke*te+Oe,(we-Pe)*ne+ze,!0);return he.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe)*te+Oe,we*ne+ze,(ke+ve)*te+Oe,(we-Pe)*ne+ze,(ke+Pe)*te+Oe,(we-ve)*ne+ze)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we+Pe)*ne+ze,(ke+Pe)*te+Oe,(we+ve)*ne+ze,(ke+ve)*te+Oe,(we+Pe)*ne+ze)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Pe-ve*.5)*te+Oe,we*ne+ze,ke*te+Oe,(we+Pe)*ne+ze,(ke+Pe-ve*.5)*te+Oe,(we+ve)*ne+ze)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+Oe,(we-Pe)*ne+ze,(ke+Pe-ve*.5)*te+Oe,(we-ve)*ne+ze,ke*te+Oe,(we-Pe)*ne+ze).close()),he}),go.Shape.defineFigureGenerator("Email",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ne)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var ge=new go.PathFigure(.1*te,ne,!0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var ve=new go.PathFigure(.6*te,ne,!0,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var Pe=new go.PathFigure(0,.5*ne,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Power",function(Te,te,ne){var he=new go.Geometry,se=Fe*.4,ge=.4,ve=.5,Pe=.5,ke=Ee(),we=Ee(),Oe=Ee(),ze=Ee();kt(ve,Pe-ge,ve+se,Pe-ge,ve+ge,Pe-se,ve+ge,Pe,.5,ke,ke,we,Oe,ze);var We=Se(we.x,we.y),Ue=new go.PathFigure(we.x*te,we.y*ne,!0);he.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Pe*ne,Oe.x*te,Oe.y*ne,ze.x*te,ze.y*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Pe*ne,(ve-se)*te,(Pe+ge)*ne,(ve-ge)*te,(Pe+se)*ne)),kt(ve-ge,Pe,ve-ge,Pe-se,ve-se,Pe-ge,ve,Pe-ge,.5,Oe,ze,we,ke,ke),Ue.add(new go.PathSegment(go.PathSegment.Bezier,we.x*te,we.y*ne,Oe.x*te,Oe.y*ne,ze.x*te,ze.y*ne)),se=Fe*.3,ge=.3,kt(ve-ge,Pe,ve-ge,Pe-se,ve-se,Pe-ge,ve,Pe-ge,.5,Oe,ze,we,ke,ke),Ue.add(new go.PathSegment(go.PathSegment.Line,we.x*te,we.y*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,Pe*ne,ze.x*te,ze.y*ne,Oe.x*te,Oe.y*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+ge)*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,Pe*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),kt(ve,Pe-ge,ve+se,Pe-ge,ve+ge,Pe-se,ve+ge,Pe,.5,ke,ke,we,Oe,ze),Ue.add(new go.PathSegment(go.PathSegment.Bezier,we.x*te,we.y*ne,ze.x*te,ze.y*ne,Oe.x*te,Oe.y*ne).close());var Ue=new go.PathFigure(.45*te,0,!0);return he.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),Ue.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),je(ke),je(we),je(Oe),je(ze),je(We),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne/2,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function ge(ve,Pe,ke){ve.add(new go.PathSegment(go.PathSegment.Move,(.3+Pe)*te,(.8+ke)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.5+Pe)*te,(.5+ke)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.1+Pe)*te,(.5+ke)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.3+Pe)*te,(.8+ke)*ne).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ne,.45*te,.44*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ne,.48*te,.17*ne,.54*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ne,.59*te,.29*ne,.58*te,.28*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ne,.8*te,.34*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ne,.87*te,.48*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,1.17*te,.76*ne,.82*te,.8*ne).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Te,te,ne){var he=new go.Geometry,se=.5,ge=0,ve=0,Pe=se*Fe,ke=.4*Math.SQRT2/2+.5,we=.5-.5*Math.SQRT2/2,Oe=1,ze=.5,We=.5,Ue=0,ut=new go.PathFigure(ke*te,(1-we)*ne,!1);return he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,ze*ne,Oe*te,.7*ne,Oe*te,ze*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(We+ge)*te,(Ue+ge)*ne,(.5+se+ge)*te,(.5-Pe+ge)*ne,(.5+Pe+ge)*te,(.5-se+ge)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-Pe+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-Pe+ve)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*te,.9*ne,(.5-se+ge)*te,(.5+Pe+ve)*ne,(.5-Pe+ge)*te,.9*ne)),ut.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*te,.8*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*te,.9*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*te,.95*ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(te,ne,!1);he.add(ge);var ve=new go.PathFigure(0,.5*ne,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var se=new go.PathFigure(0,.2*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.7*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ne,.4*te,.5*ne,te,.5*ne).close());var ge=new go.PathFigure(.45*te,.73*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ne)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(.335*te,(1-.555)*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var ve=.5-.285,Pe=.5,ke=ve,we=Math.PI/4,Oe=4*(1-Math.cos(we))/(3*Math.sin(we)),ze=Oe*.5,We=ve,Ue=ve,ut=Oe*We,Ke=Oe*Ue;ge.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-We)*te,ke*ne,(Pe-(ut+We)/2)*te,(ke+(Ue+Ke)/2)*ne,(Pe-We)*te,(ke+Ke)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(ke-Ue)*ne,(Pe-We)*te,(ke-Ke)*ne,(Pe-ut)*te,(ke-Ue)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+We)*te,ke*ne,(Pe+ut)*te,(ke-Ue)*ne,(Pe+We)*te,(ke-Ke)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(Pe+We)*te,(ke+Ke)*ne,(Pe+(ut+We)/2)*te,(ke+(Ue+Ke)/2)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne));var Ht=new go.PathFigure(.2*te,ne,!1);he.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var St=new go.PathFigure(.8*te,ne,!1);return he.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var ge=new go.PathFigure(.2*te,.2*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(te,ne,!1);he.add(ge);var ve=new go.PathFigure(.1*te,ne,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.05*te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ne,0,ne,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ne,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,te,ne,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ne));var ge=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*te,.875*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ne,ge*te,ge*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ne,.575*te,.725*ne,.625*te,.375*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ne,.375*te,.375*ne,.425*te,.725*ne)),he}),go.Shape.defineFigureGenerator("Recycle",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.45*te,.95*ne,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ne,.17*te,.95*ne,.15*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ne,0,.675*ne,0,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ne));var ge=new go.PathFigure(.475*te,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var ve=new go.PathFigure(.675*te,.575*ne,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Te,te,ne){var he=new go.Geometry,se=.5,ge=Fe*.5,ve=new go.PathFigure(te,se*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+ge)*ne,(se+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-ge)*te,ne,0,(se+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-ge)*ne,(se-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+ge)*te,0,te,(se-ge)*ne));var Pe=new go.PathFigure(se*te,0,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),Pe.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),he}),go.Shape.defineFigureGenerator("Package",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.15*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ge=new go.PathFigure(0,.15*ne,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ne).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var ve=new go.PathFigure(0,.5*ne,!1);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("Component",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close());var ge=new go.PathFigure(0,.2*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var ve=new go.PathFigure(0,.6*ne,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.15*te,.6*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne));var ge=new go.PathFigure(.15*te,.6*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(te,.8*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var ve=.1,Pe=Fe*.1,ke=.2,we=.9,Oe=new go.PathFigure((ke-ve)*te,we*ne,!0);he.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-ve)*ne,(ke-ve)*te,(we-Pe)*ne,(ke-Pe)*te,(we-ve)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+ve)*te,we*ne,(ke+Pe)*te,(we-ve)*ne,(ke+ve)*te,(we-Pe)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we+ve)*ne,(ke+ve)*te,(we+Pe)*ne,(ke+Pe)*te,(we+ve)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-ve)*te,we*ne,(ke-Pe)*te,(we+ve)*ne,(ke-ve)*te,(we+Pe)*ne).close()),ve=.1,Pe=Fe*.1,ke=.8,we=.9;var ze=new go.PathFigure((ke-ve)*te,we*ne,!0);return he.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we-ve)*ne,(ke-ve)*te,(we-Pe)*ne,(ke-Pe)*te,(we-ve)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ke+ve)*te,we*ne,(ke+Pe)*te,(we-ve)*ne,(ke+ve)*te,(we-Pe)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(we+ve)*ne,(ke+ve)*te,(we+Pe)*ne,(ke+Pe)*te,(we+ve)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ke-ve)*te,we*ne,(ke-Pe)*te,(we+ve)*ne,(ke-ve)*te,(we+Pe)*ne).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),he}),go.Shape.defineFigureGenerator("Forklift",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ve=new go.PathFigure(.5*te,.8*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var Pe=new go.PathFigure(.5*te,.7*ne,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var ke=.1,we=Fe*.1,Oe=.1,ze=.9,We=new go.PathFigure((Oe-ke)*te,ze*ne,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(ze-ke)*ne,(Oe-ke)*te,(ze-we)*ne,(Oe-we)*te,(ze-ke)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+ke)*te,ze*ne,(Oe+we)*te,(ze-ke)*ne,(Oe+ke)*te,(ze-we)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(ze+ke)*ne,(Oe+ke)*te,(ze+we)*ne,(Oe+we)*te,(ze+ke)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-ke)*te,ze*ne,(Oe-we)*te,(ze+ke)*ne,(Oe-ke)*te,(ze+we)*ne)),ke=.1,we=Fe*.1,Oe=.4,ze=.9;var Ue=new go.PathFigure((Oe-ke)*te,ze*ne,!0);return he.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(ze-ke)*ne,(Oe-ke)*te,(ze-we)*ne,(Oe-we)*te,(ze-ke)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+ke)*te,ze*ne,(Oe+we)*te,(ze-ke)*ne,(Oe+ke)*te,(ze-we)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(ze+ke)*ne,(Oe+ke)*te,(ze+we)*ne,(Oe+we)*te,(ze+ke)*ne)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-ke)*te,ze*ne,(Oe-we)*te,(ze+ke)*ne,(Oe-ke)*te,(ze+we)*ne)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,.4*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ne).close());var ge=new go.PathFigure(.45*te,.7*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var ve=new go.PathFigure(.55*te,.4*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Oe=.05,ze=Fe*.05,We=.175,Ue=.95,Pe=new go.PathFigure((We-Oe)*te,Ue*ne,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ue-Oe)*ne,(We-Oe)*te,(Ue-ze)*ne,(We-ze)*te,(Ue-Oe)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(We+Oe)*te,Ue*ne,(We+ze)*te,(Ue-Oe)*ne,(We+Oe)*te,(Ue-ze)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ue+Oe)*ne,(We+Oe)*te,(Ue+ze)*ne,(We+ze)*te,(Ue+Oe)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(We-Oe)*te,Ue*ne,(We-ze)*te,(Ue+Oe)*ne,(We-Oe)*te,(Ue+ze)*ne));var Oe=.05,ze=Fe*.05,We=.375,Ue=.95,ke=new go.PathFigure((We-Oe)*te,Ue*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ue-Oe)*ne,(We-Oe)*te,(Ue-ze)*ne,(We-ze)*te,(Ue-Oe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(We+Oe)*te,Ue*ne,(We+ze)*te,(Ue-Oe)*ne,(We+Oe)*te,(Ue-ze)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ue+Oe)*ne,(We+Oe)*te,(Ue+ze)*ne,(We+ze)*te,(Ue+Oe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(We-Oe)*te,Ue*ne,(We-ze)*te,(Ue+Oe)*ne,(We-Oe)*te,(Ue+ze)*ne));var Oe=.05,ze=Fe*.05,We=.625,Ue=.95,we=new go.PathFigure((We-Oe)*te,Ue*ne,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ue-Oe)*ne,(We-Oe)*te,(Ue-ze)*ne,(We-ze)*te,(Ue-Oe)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(We+Oe)*te,Ue*ne,(We+ze)*te,(Ue-Oe)*ne,(We+Oe)*te,(Ue-ze)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ue+Oe)*ne,(We+Oe)*te,(Ue+ze)*ne,(We+ze)*te,(Ue+Oe)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(We-Oe)*te,Ue*ne,(We-ze)*te,(Ue+Oe)*ne,(We-Oe)*te,(Ue+ze)*ne));var Oe=.05,ze=Fe*.05,We=.825,Ue=.95,ut=new go.PathFigure((We-Oe)*te,Ue*ne,!0);he.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ue-Oe)*ne,(We-Oe)*te,(Ue-ze)*ne,(We-ze)*te,(Ue-Oe)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(We+Oe)*te,Ue*ne,(We+ze)*te,(Ue-Oe)*ne,(We+Oe)*te,(Ue-ze)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(Ue+Oe)*ne,(We+Oe)*te,(Ue+ze)*ne,(We+ze)*te,(Ue+Oe)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(We-Oe)*te,Ue*ne,(We-ze)*te,(Ue+Oe)*ne,(We-Oe)*te,(Ue+ze)*ne).close());var Ke=new go.PathFigure(0,ne,!1);return he.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var ve=new go.PathFigure(.15*te,ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var Pe=.05,ke=Fe*.05,we=.35,Oe=.775,ze=new go.PathFigure((we-Pe)*te,Oe*ne,!0);return he.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,we*te,(Oe-Pe)*ne,(we-Pe)*te,(Oe-ke)*ne,(we-ke)*te,(Oe-Pe)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(we+Pe)*te,Oe*ne,(we+ke)*te,(Oe-Pe)*ne,(we+Pe)*te,(Oe-ke)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,we*te,(Oe+Pe)*ne,(we+Pe)*te,(Oe+ke)*ne,(we+ke)*te,(Oe+Pe)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(we-Pe)*te,Oe*ne,(we-ke)*te,(Oe+Pe)*ne,(we-Pe)*te,(Oe+ke)*ne).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),he}),go.Shape.defineFigureGenerator("Globe",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.75*te,0,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.75*ne,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*te,ne,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ne,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,.15*te,.25*ne,.15*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ne,.85*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ne,.35*te,.3*ne,.65*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ne,.35*te,.7*ne,.65*te,.7*ne)),he}),go.Shape.defineFigureGenerator("Wave",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.25*ne,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ne,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ne,.425*te,.5*ne,.575*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ne,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ne,.1*te,.5*ne,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ne,.425*te,ne,.575*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ne,.8*te,.5*ne,.9*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Operator",function(Te,te,ne){var he=new go.Geometry,se=.3,ge=Fe*.3,ve=.5,Pe=.7,ke=new go.PathFigure((ve-se)*te,Pe*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Pe*ne,(ve+ge)*te,(Pe-se)*ne,(ve+se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Pe*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne));var we=new go.PathFigure(0,.7*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.65*te,.3*ne,.65*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ne,.35*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*te,.6*ne,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.2*te,ne,.35*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,.7*te,.6*ne,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.8*te,ne,.65*te,.95*ne)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,0,ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ne,.8*te,ne,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),he}),go.Shape.defineFigureGenerator("Battery",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ne));var ge=new go.PathFigure(0,.6*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),he}),go.Shape.defineFigureGenerator("Delete",function(Te,te,ne){var he=new go.Geometry,se=.5,ge=Fe*.5,ve=.5,Pe=.5,ke=new go.PathFigure((ve-se)*te,Pe*ne,!0);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Pe*ne,(ve+ge)*te,(Pe-se)*ne,(ve+se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Pe*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne));var we=new go.PathFigure(.15*te,.5*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Flag",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.1*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ne,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,.65*te,.2*ne,.85*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.85*te,.6*ne,.65*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*te,.4*ne,.15*te,.4*ne).close()),he}),go.Shape.defineFigureGenerator("Help",function(Te,te,ne){var he=new go.Geometry,se=.5,ge=Fe*.5,ve=.5,Pe=.5,ke=new go.PathFigure((ve-se)*te,Pe*ne,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Pe*ne,(ve+ge)*te,(Pe-se)*ne,(ve+se)*te,(Pe-ge)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Pe*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne).close()),se=.05,ge=Fe*.05,ve=.5,Pe=.8;var we=new go.PathFigure((ve-se)*te,Pe*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe-se)*ne,(ve-se)*te,(Pe-ge)*ne,(ve-ge)*te,(Pe-se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,Pe*ne,(ve+ge)*te,(Pe-se)*ne,(ve+se)*te,(Pe-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(Pe+se)*ne,(ve+se)*te,(Pe+ge)*ne,(ve+ge)*te,(Pe+se)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,Pe*ne,(ve-ge)*te,(Pe+se)*ne,(ve-se)*te,(Pe+ge)*ne).close()),we.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),he}),go.Shape.defineFigureGenerator("Location",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ne,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ne,.5*te,0,.025*te,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ne)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var ge=new go.PathFigure(.2*te,.5*ne,!1);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ne)),he}),go.Shape.defineFigureGenerator("Gear",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ne,.79840625*te,.39915625*ne,.7834375*te,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ne,.64228125*te,.2188125*ne,.603875*te,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ne,.39759375*te,.20190625*ne,.36053125*te,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ne,.21765625*te,.36059375*ne,.201875*te,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ne,.20221875*te,.603875*ne,.21884375*te,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ne,.36353125*te,.78340625*ne,.3991875*te,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ne,.602375*te,.79809375*ne,.63946875*te,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ne,.78234375*te,.63940625*ne,.798125*te,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ne,0,.375*ne,.05*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ne,.3*te,.225*ne,.4*te,.175*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ne,.46*te,.05*ne,.525*te,.05*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ne,.525*te,.275*ne,.475*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ne,te,.4*ne,te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ne,.675*te,.55*ne,.675*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ne,.65*te,.7*ne,.65*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ne,.61*te,.85*ne,.61*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*te,ne,0,ne).close()),he}),go.Shape.defineFigureGenerator("Map",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),he}),go.Shape.defineFigureGenerator("Eject",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var ge=new go.PathFigure(0,ne*.6,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*1,ne*1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.85).close());var ge=new go.PathFigure(.126*te,.85*ne,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var ve=new go.PathFigure(.402*te,.85*ne,!1);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var Pe=new go.PathFigure(.678*te,.85*ne,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var ke=new go.PathFigure(.5*te,.1*ne,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*(1-.184)).close());var ge=new go.PathFigure(te*.204,ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var ve=new go.PathFigure(te*.408,ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),ve.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),ve.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var Pe=new go.PathFigure(te*.612,ne,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var ke=new go.PathFigure(te*.816,ne,!0);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var ge=new go.PathFigure(te*.055,.07*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var ve=new go.PathFigure(te*.055,.13*ne,!0);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var Pe=new go.PathFigure(te*.055,.18*ne,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var ke=new go.PathFigure(te*1,0,!0);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(.55*te,ne,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ne,0,.4*ne,.225*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ne,.975*te,0,te,.08*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne).close()),he}),go.Shape.defineFigureGenerator("Key",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*1,ne*.5,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ne,.075*te,.075*ne).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var ge=new go.PathFigure(0,0,!1);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var ve=new go.PathFigure(te*.11,ne*.1,!1);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),ve.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var Pe=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ne*.8).close());var ke=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Te,te,ne){var he=new go.Geometry,se=8,ge=se*Fe,ve=new go.PathFigure(se,0,!1);he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),ve.add(new go.PathSegment(go.PathSegment.Line,0,se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var Pe=new go.PathFigure(te*.83,0,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var ke=new go.PathFigure(te*.83,ne*1,!1);he.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var we=new go.PathFigure(te*.78,ne*.05,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),we.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),we.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(Te,te,ne){var he=Te?Te.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ne/3);var se=he*Fe,ge=ne*.8,ve=new go.Geometry,Pe=new go.PathFigure(he,0,!0);return ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,te,ge-he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ge,te,ge-se,te-se,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.55,ge)),Pe.add(new go.PathSegment(go.PathSegment.Line,he,ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-he,se,ge,0,ge-se)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()),se>1?(ve.spot1=new go.Spot(0,0,se,se),ve.spot2=new go.Spot(1,.8,-se,-se)):(ve.spot1=go.Spot.TopLeft,ve.spot2=new go.Spot(1,.8)),ve}),go.Shape.defineFigureGenerator("Repeat",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*.45,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.45).close());var ge=new go.PathFigure(te*1,ne*.55,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*.1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.9).close());var ge=new go.PathFigure(te*.1,ne*.2,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var ve=new go.PathFigure(te*.28,ne*.37,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Te,te,ne){var he=new go.Geometry,se=15,ge=se*Fe,ve=new go.PathFigure(te*.62,ne*.475,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),ge>1?(he.spot1=new go.Spot(0,0,ge,ge),he.spot2=new go.Spot(1,1,-ge,-ge)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var ve=new go.PathFigure(te*.4,ne*0,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),ve.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var ve=new go.PathFigure(te*.5,ne*0,!0);return he.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close());var ge=new go.PathFigure(te*.235,ne*.28,!0);return he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.765,ne*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.655,ne*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.345,ne*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Te,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.5,ne*0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.25).close()),he}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598: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 On={},Pn="5.0",Se={},Ee=null,je=!1,it=!1,kt=null,Xe=!1,pt=null,Fe=null,Ft=0;Ft<arguments.length;Ft++){var Ct=arguments[Ft];if(Ct!==null)switch(typeof Ct){case"number":Pn=Ct.toFixed(1);break;case"string":Ct.match(new RegExp("^[0-9]\\.[0-9]+$"))?Pn=Ct:kt=Ct;break;case"object":typeof Ct.is3D!="undefined"?Ee=Ct:Se=Ct;break;case"boolean":je=Ct,it=!0;break}}Ee===null&&(Ee={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Se.material_id!==void 0&&!it&&(je=!0)),kt!==null&&Se.id===void 0&&(Se.id=kt);var nt="",gt="",wt=!1,xt=null,Te=null,te=null,ne=!1,he=null,se=null,ge=null,ve=null,Pe=null;Se.height!==void 0&&(Se.height=Math.round(Se.height)),Se.width!==void 0&&(Se.width=Math.round(Se.width));var ke=function(Dt){return parseFloat(Dt)>4?parseFloat(Dt):5};On.setHTML5Codebase=function(Dt,$t){Fe=Dt,tn(Dt,$t)},On.setJavaCodebase=On.setJavaCodebaseVersion=On.isCompiledInstalled=On.setPreCompiledScriptPath=On.setPreCompiledResourcePath=function(){},On.setHTML5CodebaseVersion=function(Dt,$t){var cn=parseFloat(Dt);if(cn!==NaN&&cn<5){console.log("The GeoGebra HTML5 codebase version "+cn+" is deprecated. Using version latest instead.");return}pt=Dt,Ge(Dt,$t)},On.getHTML5CodebaseVersion=function(){return Te},On.getParameters=function(){return Se},On.setFontsCSSURL=function(Dt){ve=Dt},On.setGiacJSURL=function(Dt){},On.setJNLPFile=function(Dt){nt=Dt},On.setJNLPBaseDir=function(Dt){},On.inject=function(){function Dt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $t="auto",cn=Se.id,Zn,hn=!1,ii=0;ii<arguments.length;ii++){var mt=arguments[ii];typeof mt=="string"?(mt=mt.toLowerCase(),mt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$t=mt:cn=arguments[ii]):typeof mt=="boolean"?hn=mt:mt instanceof HTMLElement&&(Zn=mt)}Xn();function Xn(){if(!Xe){setTimeout(Xn,200);return}$t=Bn($t);var ri=Zn||document.getElementById(cn);if(!ri){console.log("possibly bug on ajax loading? ");return}if(On.removeExistingApplet(ri,!1),Se.width===void 0&&ri.clientWidth&&(Se.width=ri.clientWidth),Se.height===void 0&&ri.clientHeight&&(Se.height=ri.clientHeight),!(Se.width&&Se.height)&&$t==="html5"&&(delete Se.width,delete Se.height),xt=$t,$t==="screenshot")St(ri,Se);else{var pi=!1;Se.hasOwnProperty("playButton")&&Se.playButton||Se.hasOwnProperty("clickToLoad")&&Se.clickToLoad?pi=!0:Se.hasOwnProperty("playButtonAutoDecide")&&Se.playButtonAutoDecide&&(pi=(!we()||Dt())&&Oe()),pi?(xt="screenshot",Qt(ri,Se,hn,$t)):Ht(ri,Se,hn)}}};function we(){try{return window.self!==window.top}catch(Dt){return!0}}function Oe(){return Se.hasOwnProperty("screenshotGenerator")&&Se.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}On.getViews=function(){return Ee},On.isJavaInstalled=function(){return!1};var ze=function(Dt){var $t=function(ii){var mt=JSON.parse(ii),Xn=function(Mn){return Mn.type=="G"||Mn.type=="E"},ri=mt.elements?mt.elements.filter(Xn)[0]:mt;if(!ri||!ri.url){cn();return}Se.fileName=ri.url,We(ri.settings||{}),Ee.is3D=!0;var pi="https://www.geogebra.org/images/";On.setPreviewImage(he||ri.previewUrl,pi+"GeoGebra_loading.png",pi+"applet_play.png"),Dt()},cn=function(){Se.onError&&Se.onError(),Wn("Error: Fetching material (id "+Se.material_id+") failed.",Se)},Zn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",hn="/materials/"+Se.material_id+"?scope=basic";Ue("https://"+Zn+"/api/proxy.php?path="+encodeURIComponent(hn),$t,cn)};function We(Dt){var $t=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(cn){Dt[cn]=!!Dt[cn]}),$t.forEach(function(cn){Se[cn]===void 0&&Dt[cn]!==void 0&&(Se[cn]=Dt[cn])}),Se.showToolBarHelp===void 0&&(Se.showToolBarHelp=Se.showToolBar)}function Ue(Dt,$t,cn){var Zn=new XMLHttpRequest;Zn.open("GET",Dt),Zn.onload=function(){$t(Zn.responseText)},Zn.onerror=cn,Zn.send()}On.isHTML5Installed=function(){return!0},On.getLoadedAppletType=function(){return xt},On.setPreviewImage=function(Dt,$t,cn){he=Dt,se=$t,ge=cn},On.removeExistingApplet=function(Dt,$t){var cn;typeof Dt=="string"&&(Dt=document.getElementById(Dt)),xt=null;var Zn=null;for(cn=0;cn<Dt.childNodes.length;cn++){var hn=Dt.childNodes[cn],ii=hn.className;ii==="applet_screenshot"?$t?(hn.style.display="block",xt="screenshot"):hn.style.display="none":ii!=="applet_scaler prerender"&&(Dt.removeChild(hn),Zn=ii&&ii.indexOf("appletParameters")!=-1?hn.id:null,cn--)}var mt=Se.id!==void 0?Se.id:Zn,Xn=window[mt];Xn&&typeof Xn.getBase64=="function"&&(Xn.remove(),window[mt]=null)},On.refreshHitPoints=function(){if(ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Dt=On.getAppletObject();return Dt&&typeof Dt.recalculateEnvironments=="function"?(Dt.recalculateEnvironments(),!0):!1},On.startAnimation=function(){var Dt=On.getAppletObject();return Dt&&typeof Dt.startAnimation=="function"?(Dt.startAnimation(),!0):!1},On.stopAnimation=function(){var Dt=On.getAppletObject();return Dt&&typeof Dt.stopAnimation=="function"?(Dt.stopAnimation(),!0):!1},On.getAppletObject=function(){var Dt=Se.id!==void 0?Se.id:"ggbApplet";return window[Dt]},On.resize=function(){};var ut=function(Dt,$t,cn){var Zn=document.createElement("param");Zn.setAttribute("name",$t),Zn.setAttribute("value",cn),Dt.appendChild(Zn)},Ke=function(Dt){return Dt&&Dt!=="false"},Ht=function(Dt,$t,cn){ke(Te)<=4.2&&(cn=!0);var Zn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Te||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(Zn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var hn=document.createElement("div");hn.classList.add("appletParameters","notranslate");var ii=$t.width,mt=$t.height;if($t.disableAutoScale=$t.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$t.disableAutoScale,$t.width!==void 0)if(ke(Te)<=4.4)Ke($t.showToolBar)&&($t.height-=7),Ke($t.showAlgebraInput)&&($t.height-=37),$t.width<605&&Ke($t.showToolBar)&&($t.width=605,ii=605);else{var Xn=100;(Ke($t.showToolBar)||Ke($t.showMenuBar))&&($t.hasOwnProperty("customToolBar")&&($t.customToolbar=$t.customToolBar),Xn=Ke($t.showMenuBar)?245:155),ii<Xn&&($t.width=Xn,ii=Xn)}hn.style.border="none",hn.style.display="inline-block";for(var ri in $t)$t.hasOwnProperty(ri)&&ri!=="appletOnLoad"&&hn.setAttribute("data-param-"+ri,$t[ri]);ve&&hn.setAttribute("data-param-fontscssurl",ve),On.resize=function(){GGBAppletUtils.responsiveResize(Dt,$t)},window.addEventListener("resize",function(me){On.resize()});var pi=typeof $t.appletOnLoad=="function"?$t.appletOnLoad:function(){};if(!cn&&$t.width!==void 0){$t.hasOwnProperty("showSplash")||hn.setAttribute("data-param-showSplash","false");var Mn=Dt.querySelector(".applet_scaler.prerender"),Gt=Mn!==null;if(Gt)var zt=Mn.querySelector(".ggb_preview");else{var zt=sn(ii,mt,$t.borderColor,!1);Mn=document.createElement("div"),Mn.className="applet_scaler",Mn.style.position="relative",Mn.style.display="block",Mn.style.width=ii+"px",Mn.style.height=mt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Mn,"66%"),ke(Te)>=5?($t.appletOnLoad=function(me){var Ne=Dt.querySelector(".ggb_preview");Ne&&Ne.parentNode.removeChild(Ne),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Mn),window.GGBT_wsf_view&&$(window).trigger("resize"),pi(me)},Gt||Mn.appendChild(zt)):hn.appendChild(zt),Mn.appendChild(hn),Gt||Dt.appendChild(Mn),setTimeout(function(){On.resize()},1)}else{var Mt=document.createElement("div");Mt.className="applet_scaler",Mt.style.position="relative",Mt.style.display="block",Mt.appendChild(hn),Dt.appendChild(Mt),$t.appletOnLoad=function(me){On.resize(),pi(me)}}function at(me,Ne){Ne&&typeof Ne.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(me,Ne.appletOnLoad):renderGGBElement(me),Wn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ne)}function jt(me,Ne){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:me,params:Ne}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(He){at(He.article,He.params)}),html5AppletsToProcess=null)},ke(Te)<5&&(me.className+=" geogebraweb")):at(me,Ne)}if(Zn){scriptLoadStarted=!0;for(var Et=0;Et<hn.childNodes.length;Et++){var dt=hn.childNodes[Et].tagName;dt==="TABLE"&&(hn.removeChild(hn.childNodes[Et]),Et--)}if(ggbHTML5LoadedScript!==null){var ot=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ot!=null&&ot.parentNode.removeChild(ot)}var De=document.createElement("script"),xe=function(){jt(hn,$t)};De.src=gt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Te,ggbHTML5LoadedScript=De.src,Wn("GeoGebra HTML5 codebase loaded: '"+gt+"'.",$t),!Fe&&(!pt||pt=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),xe()):gt.requirejs?__webpack_require__.e(7374).then(function(){var me=[__webpack_require__(97374)];xe.apply(null,me)}.bind(this)).catch(__webpack_require__.oe):(De.onload=xe,Dt.appendChild(De))}else jt(hn,$t);$t.height=mt,$t.width=ii},St=function(Dt,$t,cn){var Zn=sn($t.width,$t.height,$t.borderColor,cn),hn=document.createElement("div");hn.style.position="relative",hn.style.display="block",hn.style.width=$t.width+"px",hn.style.height=$t.height+"px",hn.className="applet_screenshot applet_scaler"+(cn?" applet_screenshot_play":""),hn.appendChild(Zn);var ii=GGBAppletUtils.getScale($t,Dt,cn);cn?(Dt.appendChild(qt()),window.GGBT_wsf_view||(Dt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(hn,"66%"),Dt.appendChild(hn),ii!==1&&!isNaN(ii)&&(GGBAppletUtils.scaleElement(hn,ii),hn.style.width=$t.width+"px",hn.style.height=$t.height+"px",hn.parentNode.style.width=$t.width*ii+"px",hn.parentNode.style.height=$t.height*ii+"px"),On.resize=function(){_t(Dt,Zn,hn,cn)},window.addEventListener("resize",function(mt){On.resize()}),On.resize()};function _t(Dt,$t,cn,Zn){if(Dt.contains($t)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Dt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Dt)}var hn=GGBAppletUtils.getScale(Se,Dt,Zn);cn.parentNode!==null&&(!isNaN(hn)&&hn!==1?(GGBAppletUtils.scaleElement(cn,hn),cn.parentNode.style.width=Se.width*hn+"px",cn.parentNode.style.height=Se.height*hn+"px"):(GGBAppletUtils.scaleElement(cn,1),cn.parentNode.style.width=Se.width+"px",cn.parentNode.style.height=Se.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Dt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}On.onExitFullscreen=function(Dt,$t){$t.appendChild(Dt)};var Qt=function(Dt,$t,cn,Zn){St(Dt,$t,!0);for(var hn=function(){var Xn=[];for(mt=0;mt<Dt.childNodes.length;mt++)Xn.push(Dt.childNodes[mt]);if(window.GGBT_wsf_view){var ri=window.GGBT_wsf_view.renderFullScreen(Dt,$t.id),pi=document.getElementById("fullscreencontainer"),Mn=jQuery(Dt).find(".fullscreencontent");Mn.length>0?(ri.remove(),Mn.attr("id","fullscreencontent").show(),jQuery(pi).append(Mn),window.dispatchEvent(new Event("resize"))):Ht(ri,$t,!1),window.GGBT_wsf_view.launchFullScreen(pi)}else xt=Zn,Ht(Dt,$t,!1);if(!window.GGBT_wsf_view)for(mt=0;mt<Xn.length;mt++)Dt.removeChild(Xn[mt])},ii=Dt.getElementsByClassName("ggb_preview_play"),mt=0;mt<ii.length;mt++)ii[mt].addEventListener("click",hn,!1),ii[mt].addEventListener("ontouchstart",hn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Dt),Oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},qt=function(){var Dt=document.createElement("div");if(Dt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $t='.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");}',cn=document.createElement("style");cn.styleSheet?cn.styleSheet.cssText=$t:cn.appendChild(document.createTextNode($t)),document.getElementsByTagName("head")[0].appendChild(cn)}return Dt},sn=function(Dt,$t,cn,Zn){var hn=document.createElement("div");hn.className="ggb_preview",hn.style.position="absolute",hn.style.zIndex="90",hn.style.width=Dt-2+"px",hn.style.height=$t-2+"px",hn.style.top="0px",hn.style.left="0px",hn.style.overflow="hidden",hn.style.backgroundColor="white";var ii="lightgrey";cn!==void 0&&(cn==="none"?ii="transparent":ii=cn),hn.style.border="1px solid "+ii;var mt=document.createElement("img");if(mt.style.position="relative",mt.style.zIndex="1000",mt.style.top="-1px",mt.style.left="-1px",he!==null&&mt.setAttribute("src",he),mt.style.opacity=.7,se!==null){var Xn,ri,pi;if(!Zn){Xn=document.createElement("img"),Xn.style.position="absolute",Xn.style.zIndex="1001",Xn.style.opacity=1,mt.style.opacity=.3,ri=360,ri>Dt/4*3&&(ri=Dt/4*3),pi=ri/5.8,Xn.setAttribute("src",se),Xn.setAttribute("width",ri),Xn.setAttribute("height",pi);var Mn=(Dt-ri)/2,Gt=($t-pi)/2;Xn.style.left=Mn+"px",Xn.style.top=Gt+"px",hn.appendChild(Xn)}}return hn.appendChild(mt),hn},Bn=function(Dt){return Dt=Dt.toLowerCase(),Dt==="html5"||Dt==="screenshot"?Dt:"html5"},yt=["web","webSimple","web3d","tablet","tablet3d","phone"],Ge=function(Dt,$t){if(Te=Dt,$t){tn(Te,!0);return}var cn=!je;if(cn){var Zn=ke(Te);!isNaN(Zn)&&Zn<4.4&&(cn=!1)}var hn,ii;window.location.protocol.substr(0,4)==="http"?hn=window.location.protocol:hn="http:";var mt=Te.indexOf("//");mt>0?ii=Te:mt===0?ii=hn+Te:ii="https://www.geogebra.org/apps/5.2.814.0/";for(var Xn in yt)if(Te.slice(yt[Xn].length*-1)===yt[Xn]||Te.slice((yt[Xn].length+1)*-1)===yt[Xn]+"/"){tn(ii,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&cn&&!Ee.is3D&&!Ee.AV&&!Ee.SV&&!Ee.CV&&!Ee.EV2&&!Ee.CP&&!Ee.PC&&!Ee.DA&&!Ee.FI&&!Ee.PV&&!Ke(Se.showToolBar)&&!Ke(Se.showMenuBar)&&!Ke(Se.showAlgebraInput)&&!Ke(Se.enableRightClick)&&(!Se.appName||Se.appName=="classic")?ii+="webSimple/":ii+="web3d/",tn(ii,!1)},tn=function(Dt,$t){if(Dt.requirejs){gt=Dt;return}Dt.slice(-1)!=="/"&&(Dt+="/"),gt=Dt,$t===null&&($t=Dt.indexOf("http")===-1),wt=$t,te="web.nocache.js",ne=!1;var cn=gt.split("/");cn.length>1&&(!$t&&cn[cn.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):yt.indexOf(cn[cn.length-2])>=0&&(te=cn[cn.length-2]+".nocache.js")),cn=Dt.split("/"),Te=cn[cn.length-3],Te.substr(0,4)==="test"?Te=Te.substr(4,1)+"."+Te.substr(5,1):(Te.substr(0,3)==="war"||Te.substr(0,4)==="beta")&&(Te="5.0");var Zn=parseFloat(Te);Zn!==NaN&&Zn<5&&Dt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Zn+" is deprecated. Using version latest instead."),Ge("5.0",$t))},Wn=function(Dt,$t){window.console&&window.console.log&&(!$t||typeof $t.showLogging=="undefined"||$t.showLogging&&$t.showLogging!=="false")&&console.log(Dt)};Se.material_id!==void 0?ze(Qn):Qn();function Qn(){var Dt=Pn;pt!==null?Dt=pt:parseFloat(Dt)<5&&(Dt="5.0"),Ge(Dt,!1),Fe!==null&&tn(Fe,wt),Xe=!0}return On},GGBAppletUtils=function(){"use strict";function On(){return window.GGBT_wsf_edit!==void 0}function Pn(Xe,pt){pt!=1?(Xe.style.transformOrigin="0% 0% 0px",Xe.style.webkitTransformOrigin="0% 0% 0px",Xe.style.transform="scale("+pt+","+pt+")",Xe.style.webkitTransform="scale("+pt+","+pt+")",Xe.style.maxWidth="initial",Xe.querySelector(".ggb_preview")!==null&&(Xe.querySelector(".ggb_preview").style.maxWidth="initial"),Xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Xe.style.transform="none",Xe.style.webkitTransform="none")}function Se(Xe,pt,Fe,Ft,Ct,nt){var gt=null;if(nt!=null&&nt!="")for(var wt=Xe.parentNode;wt!=null;)if((" "+wt.className+" ").indexOf(" "+nt+" ")>-1){gt=wt;break}else wt=wt.parentNode;var xt=0,Te=0,te=0,ne=0,he=0,se=0,ge=0;if(gt)xt=gt.offsetWidth,Te=Math.max(Ft?gt.offsetWidth:0,gt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xt=Math.min(window.innerWidth,document.documentElement.clientWidth),Te=Math.min(window.innerHeight,document.documentElement.clientHeight),te=xt):(xt=window.innerWidth,Te=window.innerHeight,te=window.innerWidth),Xe){var ve=Xe.getBoundingClientRect();ve.left>0&&ve.left<=xt&&(Ct===void 0||!Ct)&&(document.dir==="rtl"?(he=xt-ve.width-ve.left,se=te<=480?10:30):(se=ve.left,he=te<=480?10:30),ne=se+he)}if(Xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pe=Xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,ge=40)}}return Xe&&((Fe===void 0||!Fe)&&pt>0&&pt+ne<xt?xt=pt:xt-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Fe===void 0||!Fe)&&(Te-=ge)),{width:xt,height:Te}}function Ee(Xe,pt,Fe,Ft,Ct){if(Xe.isScreenshoGenerator)return 1;var nt=Ft!==void 0&&Ft,gt=Xe.noScaleMargin!=null&&Xe.noScaleMargin,wt=function(Pe){return Pe&&Pe!=="false"},xt=wt(Xe.autoHeight),Te=Se(pt,Xe.width,Fe,xt,nt&&window.GGBT_wsf_view||gt,Ct),te=parseInt(Te.width),ne=Xe.width,he=Xe.height;if(ne===void 0){var se=pt.querySelector(".appletParameters");se&&(ne=se.offsetWidth,he=se.offsetHeight)}var ge=te/ne,ve=nt?1:Te.height/he;return Fe!==void 0&&!Fe&&(ge=Math.min(1,ge),ve=Math.min(1,ve)),Math.min(ge,ve)}function je(Xe,pt,Fe){var Ft=1,Ct,nt=!1;if(Xe.hasOwnProperty("allowUpscale")&&(nt=Xe.allowUpscale),Xe.hasOwnProperty("scale")&&(Ft=parseFloat(Xe.scale),(isNaN(Ft)||Ft===null||Ft===0)&&(Ft=1),Ft>1&&(nt=!0)),pt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(nt=!0),!(Xe.hasOwnProperty("disableAutoScale")&&Xe.disableAutoScale))Ct=Ee(Xe,pt,nt,Fe,Xe.scaleContainerClass);else return Ft;return nt&&(!Xe.hasOwnProperty("scale")||Ft===1)?Ct:Math.min(Ft,Ct)}function it(Xe){var pt=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ft=Xe.getBoundingClientRect(),Ct=(pt-Ft.width)/2,nt=(Fe-Ft.height)/2;nt<0&&(nt=0),Xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ct<40?Xe.style.left="40px":Xe.style.left=Ct+"px",Xe.style.top=nt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt<40?Xe.style.top="40px":Xe.style.top=nt+"px",Xe.style.left=Ct+"px")}function kt(Xe,pt){var Fe=Xe.querySelector(".appletParameters");if(Fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pt.id!==Fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Xe)}if(Fe.parentElement&&/fullscreen/.test(Fe.parentElement.className))return;var Ft=je(pt,Xe);On()&&Fe.setAttribute("data-param-scale",Ft);for(var Ct=null,nt=0;nt<Xe.childNodes.length;nt++)if(Xe.childNodes[nt].className!==void 0&&Xe.childNodes[nt].className.match(/^applet_scaler/)){Ct=Xe.childNodes[nt];break}if(Ct!==null&&Ct.querySelector(".noscale")!==null)return;var gt=pt.id!==void 0?pt.id:"ggbApplet",wt=window[gt];(wt==null||!wt.recalculateEnvironments)&&Ct!==null&&!Ct.className.match(/fullscreen/)&&(Ct.parentNode.style.transform="",!isNaN(Ft)&&Ft!==1?(Ct.parentNode.style.width=pt.width*Ft+"px",Ct.parentNode.style.height=pt.height*Ft+"px",Pn(Ct,Ft)):(Pn(Ct,1),Ct.parentNode.style.width=pt.width+"px",Ct.parentNode.style.height=pt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&it(Xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Fe).parents(".content-added-content"))}}return{responsiveResize:kt,isFlexibleWorksheetEditor:On,positionCenter:it,getScale:je,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 On=n.location.search;return On.indexOf(J)!=-1||On.indexOf(K)!=-1}function q(On,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(On){var Pn=s[L].bindings;s[L].bindings=function(){for(var Se=Pn?Pn():{},Ee=On[webModule.__softPermutationId],je=O;je<Ee.length;je++){var it=Ee[je];Se[it[O]]=it[P]}return Se}};var t;function u(){return v(),t}function v(){if(!t){var On=o.createElement(Q);if(On.id=L,On.style.cssText=R+S,On.tabIndex=-1,o.body.appendChild(On),t=On.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Pn=document.compatMode==U?V:W;t.write(Pn+X),t.close()}}}function w(On){function Pn(Ee){function je(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var it=je();if(it){Ee();return}function kt(){if(!it){if(!je())return;it=!0,Ee(),o.removeEventListener&&o.removeEventListener(Z,kt,!1),Xe&&clearInterval(Xe)}}o.addEventListener&&o.addEventListener(Z,kt,!1);var Xe=setInterval(function(){kt()},$)}function Se(Ee){var je=u(),it=je.body,kt=je.createElement(_);kt.language=ab,kt.crossOrigin=W,kt.src=Ee,webModule.__errFn&&(kt.onerror=function(){webModule.__errFn(L,new Error(bb+Ee))}),it.appendChild(kt)}Pn(function(){Se(On)})}webModule.__startLoadingFragment=function(On){return C(On)},webModule.__installRunAsyncCode=function(On){var Pn=u(),Se=Pn.body,Ee=Pn.createElement(_);Ee.language=ab,Ee.text=On,Se.appendChild(Ee),Se.removeChild(Ee)};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(On){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(On){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(On){var Pn=c[On];return Pn==null?null:Pn},r=d,webModule.__errFn=e}function B(){function On(Xe){var pt=Xe.lastIndexOf(rb);pt==-1&&(pt=Xe.length);var Fe=Xe.indexOf(sb);Fe==-1&&(Fe=Xe.length);var Ft=Xe.lastIndexOf(tb,Math.min(Fe,pt));return Ft>=O?Xe.substring(O,Ft+P):W}function Pn(Xe){if(!Xe.match(/^\w+:\/\//)){var pt=o.createElement(ub);pt.src=Xe+vb,Xe=On(pt.src)}return Xe}function Se(){var Xe=__gwt_getMetaProperty(wb);return Xe!=null?Xe:W}function Ee(){for(var Xe=o.getElementsByTagName(_),pt=O;pt<Xe.length;++pt)if(Xe[pt].src.indexOf(xb)!=-1)return On(Xe[pt].src);return W}function je(){var Xe=o.getElementsByTagName(yb);return Xe.length>O?Xe[Xe.length-P].href:W}function it(){var Xe=o.location;return Xe.href==Xe.protocol+zb+Xe.host+Xe.pathname+Xe.search+Xe.hash}var kt=Se();return kt==W&&(kt=Ee()),kt==W&&(kt=je()),kt==W&&it()&&(kt=On(o.location.href)),kt=Pn(kt),kt}function C(On){return On.match(/^\//)||On.match(/^[a-zA-Z]+:\/\//)?On:webModule.__moduleBase+On}function D(){var On=[],Pn=O,Se=[],Ee=[];function je(Xe){var pt=Ee[Xe](),Fe=Se[Xe];if(pt in Fe)return pt;var Ft=[];for(var Ct in Fe)Ft[Fe[Ct]]=Ct;throw r&&r(Xe,Ft,pt),null}if(__gwt_isKnownPropertyValue=function(Xe,pt){return pt in Se[Xe]},webModule.__getPropMap=function(){var Xe={};for(var pt in Se)Se.hasOwnProperty(pt)&&(Xe[pt]=je(pt));return Xe},webModule.__computePropValue=je,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var it;try{it=Cb;var kt=it.indexOf(Db);kt!=-1&&(Pn=parseInt(it.substring(kt+P),$),it=it.substring(O,kt))}catch(Xe){}return webModule.__softPermutationId=Pn,C(it+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})()},58788:function(On,Pn,Se){"use strict";Se.d(Pn,{Ax:function(){return kt},Ds:function(){return Xe},KI:function(){return Fe},SI:function(){return it},f1:function(){return je}});var Ee=Se(10148);function je(Ft){let Ct=!0;if(Ft.length>0){for(let nt=0;nt<Ft.length;nt++)if(Ft[nt].compile_success==0||!Ft[nt].compile_success){Ct=!1;break}}else Ct=!1;return Ct}function it(Ft,Ct=""){let nt=[];for(let gt=0;gt<Ft.length;gt++){let wt=Ft[gt],xt=Ct?`${Ct}/${wt.name}`:`${wt.name}`;nt.push({title:wt.name,type:wt.type,isLeaf:wt.type!=="tree",key:xt})}return nt}function kt(Ft,Ct,nt){for(let gt=0;gt<Ft.length;gt++){let wt=Ft[gt];if(wt.key===Ct){wt.children=nt;break}wt.children&&kt(wt.children,Ct,nt)}return Ft}function Xe(Ft,Ct,nt){let gt;return function(){let wt=this,xt=arguments,Te=function(){gt=null,nt||Ft.apply(wt,xt)},te=nt&&!gt;clearTimeout(gt),gt=setTimeout(Te,Ct),te&&Ft.apply(wt,xt)}}const pt=!0,Fe=Ee.Z.API_SERVER},39990:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ge}});var Ee=Se(59301),je=Se(78241),it=Se(8591),kt=Se(43418),Xe=Se(78550),pt=Se(92832),Fe=Se(2595),Ft=Se(95237),Ct=Se(43604),nt=Se(61186),gt=Se.n(nt),wt=Se(58130),xt=Se(42203),Te={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},te=Se(16597),ne=Se(66539),he=(ve,Pe,ke)=>new Promise((we,Oe)=>{var ze=ut=>{try{Ue(ke.next(ut))}catch(Ke){Oe(Ke)}},We=ut=>{try{Ue(ke.throw(ut))}catch(Ke){Oe(Ke)}},Ue=ut=>ut.done?we(ut.value):Promise.resolve(ut.value).then(ze,We);Ue((ke=ke.apply(ve,Pe)).next())});const se=({dispatch:ve,courseEndTime:Pe,classroomList:ke,successCallback:we=()=>{},visible:Oe,homeworkIds:ze,courseId:We,isBatch:Ue,shixunHomeworks:ut})=>{const[Ke]=je.default.useForm(),[Ht,St]=(0,Ee.useState)(!1),[_t,Qt]=(0,Ee.useState)(!1),[qt,sn]=(0,Ee.useState)(!1),[Bn,yt]=(0,Ee.useState)([]),[Ge,tn]=(0,Ee.useState)([]),[Wn,Qn]=(0,Ee.useState)([]),[Dt,$t]=(0,Ee.useState)([]),[cn,Zn]=(0,Ee.useState)([]),[hn,ii]=(0,Ee.useState)([]),[mt,Xn]=(0,Ee.useState)([]),[ri,pi]=(0,Ee.useState)([]),[Mn,Gt]=(0,Ee.useState)([]);(0,Ee.useEffect)(()=>{Oe?zt():at()},[Oe]);const zt=()=>he(void 0,null,function*(){St(!0);const jt=yield(0,te.oR)(ze[0],{course_id:We});sn(jt.no_group),Ue?(Xn(jt.all_course_groups),pi(jt.all_course_groups)):($t(jt.late_course_groups),Zn(jt.late_course_groups),yt(jt.submit_course_groups),tn(jt.submit_course_groups)),St(!1),Ke.setFieldsValue({end_time:gt()()})}),Mt=()=>he(void 0,null,function*(){const jt=Ke.getFieldsValue(),Et=gt()(jt.end_time).format("YYYY-MM-DD HH:mm");if((Ue?Mn.length===0:Wn.length===0&&hn.length===0)&&!qt){it.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}Qt(!0);const ot=yield(0,te.Mc)(We,{no_group:qt,homework_ids:ze,group_ids:Ue?Mn:Wn,end_time:Et,late_group_ids:Ue?Mn:hn});Qt(!1),ot.status===0&&(at(),it.ZP.success("\u64CD\u4F5C\u6210\u529F"),we(),ve({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),at=()=>{Qn([]),ii([]),tn([]),Zn([])};return Ee.createElement(kt.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:Te.modalWrapper,width:Ue||qt?520:760,open:Oe,confirmLoading:_t,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>Mt(),onCancel:()=>{at(),ve({type:"classroomList/setActionTabs",payload:{}})}},Ee.createElement("div",{className:Te.tips},Ee.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),Ee.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),Ee.createElement(je.default,{form:Ke,layout:"vertical"},Ee.createElement(je.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},Ee.createElement(Xe.default,{style:{width:"100%"},disabledDate:jt=>(0,ne.Q8)(jt,Pe),disabledTime:jt=>(0,ne.d0)(jt),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:gt()((0,wt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!qt&&Ee.createElement(Ee.Fragment,null,Ue?Ee.createElement("div",null,Ee.createElement(pt.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:jt=>{pi(mt.filter(Et=>Et.name.indexOf(jt.target.value)>-1))}}),Ee.createElement(Fe.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:Te.antdTable,rowSelection:{type:"checkbox",onChange:jt=>{Gt(jt)}},rowKey:"id",pagination:!1,dataSource:ri,loading:Ht,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):Ee.createElement(Ft.Z,{gutter:24},Ee.createElement(Ct.Z,{span:14},Ee.createElement("div",{className:Te.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),Ee.createElement(pt.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:jt=>{tn(Bn.filter(Et=>Et.name.indexOf(jt.target.value)>-1))}}),Ee.createElement("div",{className:Te.tableWrapper},Ee.createElement(Fe.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:Te.antdTable,rowSelection:{type:"checkbox",onChange:jt=>{Qn(jt)}},rowKey:"id",pagination:!1,dataSource:Ge,loading:Ht,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),Ee.createElement(Ct.Z,{flex:10,style:{maxWidth:"280px"}},Ee.createElement("div",{className:Te.homeworkType},"\u8865\u4EA4\u622A\u6B62"),Ee.createElement(pt.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:jt=>{Zn(Dt.filter(Et=>Et.name.indexOf(jt.target.value)>-1))}}),Ee.createElement("div",{className:Te.tableWrapper},Ee.createElement(Fe.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:Te.antdTable,rowSelection:{type:"checkbox",onChange:jt=>{ii(jt)}},rowKey:"id",pagination:!1,loading:Ht,dataSource:cn,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var ge=(0,xt.connect)(({shixunHomeworks:ve,classroomList:Pe})=>({shixunHomeworks:ve,classroomList:Pe}))(se)},65983:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ot}});var Ee=Se(59301),je={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},it=Se(92310),kt=Se.n(it),Xe=Se(71418);var pt=function(De,xe){return(pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,Ne){me.__proto__=Ne}||function(me,Ne){for(var He in Ne)Object.prototype.hasOwnProperty.call(Ne,He)&&(me[He]=Ne[He])})(De,xe)};function Fe(De,xe){function me(){this.constructor=De}pt(De,xe),De.prototype=xe===null?Object.create(xe):(me.prototype=xe.prototype,new me)}function Ft(De,xe,me,Ne){return new(me||(me=Promise))(function(He,Me){function et(ht){try{rn(Ne.next(ht))}catch(Pt){Me(Pt)}}function Ut(ht){try{rn(Ne.throw(ht))}catch(Pt){Me(Pt)}}function rn(ht){var Pt;ht.done?He(ht.value):(Pt=ht.value,Pt instanceof me?Pt:new me(function(ln){ln(Pt)})).then(et,Ut)}rn((Ne=Ne.apply(De,xe||[])).next())})}function Ct(De,xe){var me,Ne,He,Me,et={label:0,sent:function(){if(1&He[0])throw He[1];return He[1]},trys:[],ops:[]};return Me={next:Ut(0),throw:Ut(1),return:Ut(2)},typeof Symbol=="function"&&(Me[Symbol.iterator]=function(){return this}),Me;function Ut(rn){return function(ht){return function(Pt){if(me)throw new TypeError("Generator is already executing.");for(;et;)try{if(me=1,Ne&&(He=2&Pt[0]?Ne.return:Pt[0]?Ne.throw||((He=Ne.return)&&He.call(Ne),0):Ne.next)&&!(He=He.call(Ne,Pt[1])).done)return He;switch(Ne=0,He&&(Pt=[2&Pt[0],He.value]),Pt[0]){case 0:case 1:He=Pt;break;case 4:return et.label++,{value:Pt[1],done:!1};case 5:et.label++,Ne=Pt[1],Pt=[0];continue;case 7:Pt=et.ops.pop(),et.trys.pop();continue;default:if(He=et.trys,!((He=He.length>0&&He[He.length-1])||Pt[0]!==6&&Pt[0]!==2)){et=0;continue}if(Pt[0]===3&&(!He||Pt[1]>He[0]&&Pt[1]<He[3])){et.label=Pt[1];break}if(Pt[0]===6&&et.label<He[1]){et.label=He[1],He=Pt;break}if(He&&et.label<He[2]){et.label=He[2],et.ops.push(Pt);break}He[2]&&et.ops.pop(),et.trys.pop();continue}Pt=xe.call(De,et)}catch(ln){Pt=[6,ln],Ne=0}finally{me=He=0}if(5&Pt[0])throw Pt[1];return{value:Pt[0]?Pt[1]:void 0,done:!0}}([rn,ht])}}}function nt(){for(var De=0,xe=0,me=arguments.length;xe<me;xe++)De+=arguments[xe].length;var Ne=Array(De),He=0;for(xe=0;xe<me;xe++)for(var Me=arguments[xe],et=0,Ut=Me.length;et<Ut;et++,He++)Ne[He]=Me[et];return Ne}var gt=function(){function De(){}return De.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},De.setAttributes=function(xe,me){for(var Ne=0,He=me;Ne<He.length;Ne++){var Me=He[Ne],et=Me[0],Ut=Me[1];xe.setAttribute(et,Ut)}},De.createRect=function(xe,me,Ne){var He=document.createElementNS("http://www.w3.org/2000/svg","rect");return He.setAttribute("width",xe.toString()),He.setAttribute("height",me.toString()),Ne&&De.setAttributes(He,Ne),He},De.createLine=function(xe,me,Ne,He,Me){var et=document.createElementNS("http://www.w3.org/2000/svg","line");return et.setAttribute("x1",xe.toString()),et.setAttribute("y1",me.toString()),et.setAttribute("x2",Ne.toString()),et.setAttribute("y2",He.toString()),Me&&De.setAttributes(et,Me),et},De.createPolygon=function(xe,me){var Ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ne.setAttribute("points",xe),me&&De.setAttributes(Ne,me),Ne},De.createCircle=function(xe,me){var Ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ne.setAttribute("cx",(xe/2).toString()),Ne.setAttribute("cy",(xe/2).toString()),Ne.setAttribute("r",xe.toString()),me&&De.setAttributes(Ne,me),Ne},De.createEllipse=function(xe,me,Ne){var He=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return He.setAttribute("cx",(xe/2).toString()),He.setAttribute("cy",(me/2).toString()),He.setAttribute("rx",(xe/2).toString()),He.setAttribute("ry",(me/2).toString()),Ne&&De.setAttributes(He,Ne),He},De.createGroup=function(xe){var me=document.createElementNS("http://www.w3.org/2000/svg","g");return xe&&De.setAttributes(me,xe),me},De.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},De.createMarker=function(xe,me,Ne,He,Me,et,Ut){var rn=document.createElementNS("http://www.w3.org/2000/svg","marker");return De.setAttributes(rn,[["id",xe],["orient",me],["markerWidth",Ne.toString()],["markerHeight",He.toString()],["refX",Me.toString()],["refY",et.toString()]]),rn.appendChild(Ut),rn},De.createText=function(xe){var me=document.createElementNS("http://www.w3.org/2000/svg","text");return me.setAttribute("x","0"),me.setAttribute("y","0"),xe&&De.setAttributes(me,xe),me},De.createTSpan=function(xe,me){var Ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ne.textContent=xe,me&&De.setAttributes(Ne,me),Ne},De.createImage=function(xe){var me=document.createElementNS("http://www.w3.org/2000/svg","image");return xe&&De.setAttributes(me,xe),me},De.createPoint=function(xe,me){var Ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ne.x=xe,Ne.y=me,Ne},De.createPath=function(xe,me){var Ne=document.createElementNS("http://www.w3.org/2000/svg","path");return Ne.setAttribute("d",xe),me&&De.setAttributes(Ne,me),Ne},De}(),wt=function(){function De(){}return De.addKey=function(xe){De.key=xe},Object.defineProperty(De,"isLicensed",{get:function(){return!!De.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(De.key)},enumerable:!1,configurable:!0}),De}(),xt=function(){function De(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return De.prototype.rasterize=function(xe,me,Ne){var He=this;return new Promise(function(Me){var et=Ne!==void 0?Ne:document.createElement("canvas");xe===null&&(He.markersOnly=!0,He.naturalSize=!1);var Ut=document.createElementNS("http://www.w3.org/2000/svg","svg");Ut.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ut.setAttribute("width",me.width.baseVal.valueAsString),Ut.setAttribute("height",me.height.baseVal.valueAsString),Ut.setAttribute("viewBox","0 0 "+me.viewBox.baseVal.width.toString()+" "+me.viewBox.baseVal.height.toString()),Ut.innerHTML=me.innerHTML,He.naturalSize===!0?(Ut.width.baseVal.value=xe.naturalWidth,Ut.height.baseVal.value=xe.naturalHeight):He.width!==void 0&&He.height!==void 0&&(Ut.width.baseVal.value=He.width,Ut.height.baseVal.value=He.height),et.width=Ut.width.baseVal.value,et.height=Ut.height.baseVal.value;var rn=Ut.outerHTML,ht=et.getContext("2d");He.markersOnly!==!0&&ht.drawImage(xe,0,0,et.width,et.height);var Pt=window.URL,ln=new Image(et.width,et.height);ln.setAttribute("crossOrigin","anonymous");var Fn=new Blob([rn],{type:"image/svg+xml"}),oi=Pt.createObjectURL(Fn);ln.onload=function(){ht.drawImage(ln,0,0),Pt.revokeObjectURL(oi);var ci=et.toDataURL(He.imageType,He.imageQuality);Me(ci)},ln.src=oi})},De}(),Te=function(){},te=function(){function De(xe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+xe+"_"}return Object.defineProperty(De.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(De.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(De.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),De.prototype.addClass=function(xe){return this.styleSheet===void 0&&this.addStyleSheet(),xe.name=""+this.classNamePrefix+xe.localName,this.classes.push(xe),this.styleSheet.sheet.insertRule("."+xe.name+" {"+xe.style+"}",this.styleSheet.sheet.cssRules.length),xe},De.prototype.addRule=function(xe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(xe),this.styleSheet.sheet.insertRule(xe.selector+" {"+xe.style+"}",this.styleSheet.sheet.cssRules.length)},De.prototype.addStyleSheet=function(){var xe;this.styleSheet=document.createElement("style"),((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).appendChild(this.styleSheet),this.addRule(new ne("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new he("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new he("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},De.prototype.removeStyleSheet=function(){var xe;this.styleSheet&&(((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},De}(),ne=function(De,xe){this.selector=De,this.style=xe},he=function(De,xe){this.localName=De,this.style=xe},se=function(){function De(xe,me,Ne,He,Me){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=xe,this.displayMode=me,this.markerItems=Ne,this.uiStyleSettings=He,this.styles=Me,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return De.prototype.show=function(xe){var me=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ne=document.createElement("div");Ne.className=this.toolbarBlockStyleClass.name,Ne.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ne),this.addActionButton(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Me){var et=document.createElement("div");et.className=""+me.toolbarButtonStyleClass.name,et.setAttribute("data-type-name",Me.typeName),et.innerHTML=Me.icon,et.addEventListener("click",function(){me.markerToolbarButtonClicked(et,Me)}),me.buttons.push(et),me.markerButtons.push(et)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var He=document.createElement("div");He.className=this.toolbarBlockStyleClass.name,He.style.whiteSpace="nowrap",He.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(He),this.addActionButton(He,'<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(He,'<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()},De.prototype.addButtonClickListener=function(xe){this.buttonClickListeners.push(xe)},De.prototype.removeButtonClickListener=function(xe){this.buttonClickListeners.indexOf(xe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(xe),1)},De.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},De.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var xe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var me=0;me<this.markerButtons.length;me++)me<xe||me===xe&&this.markerButtons.length-1===xe?this.markerButtonBlock.appendChild(this.markerButtons[me]):(me===xe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[me]))}},De.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")},De.prototype.resetButtonStyles=function(){var xe=this;this.buttons.forEach(function(me){me.className=me.className.replace(xe.uiStyleSettings.toolbarButtonStyleColorsClassName?xe.uiStyleSettings.toolbarButtonStyleColorsClassName:xe.toolbarButtonStyleColorsClass.name,"").trim(),me.className=me.className.replace(xe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?xe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:xe.toolbarActiveButtonStyleColorsClass.name,"").trim(),me.className+=" "+(xe.uiStyleSettings.toolbarButtonStyleColorsClassName?xe.uiStyleSettings.toolbarButtonStyleColorsClassName:xe.toolbarButtonStyleColorsClass.name)})},De.prototype.addActionButton=function(xe,me,Ne){var He=this,Me=document.createElement("div");switch(Me.className=""+this.toolbarButtonStyleClass.name,Me.innerHTML=me,Me.setAttribute("data-action",Ne),Me.addEventListener("click",function(){He.actionToolbarButtonClicked(Me,Ne)}),Ne){case"select":Me.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Me.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Me.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Me.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Me.style.fill=this.uiStyleSettings.closeButtonColor}xe.appendChild(Me),this.buttons.push(Me)},De.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new he("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 he("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new he("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new he("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 he("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new he("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
padding: `+xe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new he("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new he("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},De.prototype.markerToolbarButtonClicked=function(xe,me){this.setActiveButton(xe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("marker",me)}),this.markerButtonOverflowBlock.style.display="none"},De.prototype.actionToolbarButtonClicked=function(xe,me){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("action",me)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},De.prototype.setActiveButton=function(xe){this.resetButtonStyles(),xe.className=xe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},De.prototype.setActiveMarkerButton=function(xe){var me=this.markerButtons.find(function(Ne){return Ne.getAttribute("data-type-name")===xe});me&&this.setActiveButton(me)},De.prototype.setCurrentMarker=function(xe){var me=this;this.currentMarker=xe,this.buttons.filter(function(Ne){return/delete|notes/.test(Ne.getAttribute("data-action"))}).forEach(function(Ne){me.currentMarker===void 0?(Ne.style.fillOpacity="0.4",Ne.style.pointerEvents="none"):(Ne.style.fillOpacity="1",Ne.style.pointerEvents="all")})},De}(),ge=function(){function De(xe,me,Ne,He){this.panels=[],this.panelButtons=[],this.markerjsContainer=xe,this.displayMode=me,this.uiStyleSettings=Ne,this.styles=He,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return De.prototype.addStyles=function(){var xe;this.toolboxStyleClass=this.styles.addClass(new he("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 he("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var me=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new he("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new he("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new he("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 he("toolbox-panel-row_colors",`
|
|
|
background-color: `+((xe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&xe!==void 0?xe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new he("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*me)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*me)+`px;
|
|
|
padding: `+me+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new he("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new he("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},De.prototype.show=function(xe){var me;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((me=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&me!==void 0?me:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},De.prototype.setPanelButtons=function(xe){var me,Ne,He=this;this.panels=xe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((me=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&me!==void 0?me:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Me){var et;Me.uiStyleSettings=He.uiStyleSettings;var Ut=document.createElement("div");Ut.className=He.toolboxButtonStyleClass.name+" "+((et=He.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&et!==void 0?et:He.toolboxButtonStyleColorsClass.name),Ut.innerHTML=Me.icon,Ut.title=Me.title,Ut.addEventListener("click",function(){He.panelButtonClick(Me)}),He.panelButtons.push(Ut),He.buttonRow.appendChild(Ut)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},De.prototype.panelButtonClick=function(xe){var me=this,Ne=-1;if(xe!==this.activePanel){Ne=this.panels.indexOf(xe),this.panelRow.innerHTML="";var He=xe.getUi();He.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(He),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=xe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){me.displayMode==="inline"?me.panelRow.style.display="none":me.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Me,et){var Ut,rn;Me.className=me.toolboxButtonStyleClass.name+" "+(et===Ne?""+((Ut=me.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ut!==void 0?Ut:me.toolboxActiveButtonStyleColorsClass.name):""+((rn=me.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&rn!==void 0?rn:me.toolboxButtonStyleColorsClass.name))})},De}(),ve=function(De,xe){this.title=De,this.icon=xe},Pe=function(De){function xe(me,Ne,He,Me){var et=De.call(this,me,Me||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return et.colors=[],et.addTransparent=!1,et.colorBoxes=[],et.colors=Ne,et.currentColor=He,et.setCurrentColor=et.setCurrentColor.bind(et),et.getColorBox=et.getColorBox.bind(et),et}return Fe(xe,De),xe.prototype.getUi=function(){var me=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.whiteSpace="nowrap",this.colors.forEach(function(He){var Me=me.getColorBox(He);Ne.appendChild(Me),me.colorBoxes.push(Me)}),Ne},xe.prototype.getColorBox=function(me){var Ne=this,He=this.uiStyleSettings.toolbarHeight/4,Me=this.uiStyleSettings.toolbarHeight-He,et=document.createElement("div");et.style.display="inline-block",et.style.boxSizing="content-box",et.style.width=Me-2+"px",et.style.height=Me-2+"px",et.style.padding="1px",et.style.marginRight="2px",et.style.marginBottom="2px",et.style.borderWidth="2px",et.style.borderStyle="solid",et.style.borderRadius=(Me+2)/2+"px",et.style.borderColor=me===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",et.addEventListener("click",function(){Ne.setCurrentColor(me,et)});var Ut=document.createElement("div");return Ut.style.display="inline-block",Ut.style.width=Me-2+"px",Ut.style.height=Me-2+"px",Ut.style.backgroundColor=me,Ut.style.borderRadius=Me/2+"px",me==="transparent"&&(Ut.style.fill=this.uiStyleSettings.toolboxAccentColor,Ut.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),et.appendChild(Ut),et},xe.prototype.setCurrentColor=function(me,Ne){var He=this;this.currentColor=me,this.colorBoxes.forEach(function(Me){Me.style.borderColor=Me===Ne?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(me)},xe}(ve),ke=function(){function De(xe,me,Ne){this._state="new",this._isSelected=!1,this._container=xe,this._overlayContainer=me,this.globalSettings=Ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(De.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(xe){return!1},Object.defineProperty(De.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),De.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},De.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},De.prototype.pointerDown=function(xe,me){},De.prototype.dblClick=function(xe,me){},De.prototype.manipulate=function(xe){},De.prototype.pointerUp=function(xe){this.stateChanged()},De.prototype.dispose=function(){},De.prototype.addMarkerVisualToContainer=function(xe){this.container.childNodes.length>0?this.container.insertBefore(xe,this.container.childNodes[0]):this.container.appendChild(xe)},De.prototype.getState=function(){return{typeName:De.typeName,state:this.state,notes:this.notes}},De.prototype.restoreState=function(xe){this._state=xe.state,this.notes=xe.notes},De.prototype.scale=function(xe,me){},De.prototype.colorChanged=function(xe){this.onColorChanged&&this.onColorChanged(xe),this.stateChanged()},De.prototype.fillColorChanged=function(xe){this.onFillColorChanged&&this.onFillColorChanged(xe),this.stateChanged()},De.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var xe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),xe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(xe)&&this.onStateChanged(this)}},De.typeName="MarkerBase",De}(),we=function(){function De(){this.findGripByVisual=this.findGripByVisual.bind(this)}return De.prototype.findGripByVisual=function(xe){return this.topLeft.ownsTarget(xe)?this.topLeft:this.topCenter.ownsTarget(xe)?this.topCenter:this.topRight.ownsTarget(xe)?this.topRight:this.centerLeft.ownsTarget(xe)?this.centerLeft:this.centerRight.ownsTarget(xe)?this.centerRight:this.bottomLeft.ownsTarget(xe)?this.bottomLeft:this.bottomCenter.ownsTarget(xe)?this.bottomCenter:this.bottomRight.ownsTarget(xe)?this.bottomRight:void 0},De}(),Oe=function(){function De(){this.GRIP_SIZE=10,this.visual=gt.createGroup(),this.visual.appendChild(gt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(gt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return De.prototype.ownsTarget=function(xe){return xe===this.visual||xe===this.visual.childNodes[0]||xe===this.visual.childNodes[1]},De}(),ze=function(){function De(){}return De.toITransformMatrix=function(xe){return{a:xe.a,b:xe.b,c:xe.c,d:xe.d,e:xe.e,f:xe.f}},De.toSVGMatrix=function(xe,me){return xe.a=me.a,xe.b=me.b,xe.c=me.c,xe.d=me.d,xe.e=me.e,xe.f=me.f,xe},De}(),We=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.left=0,Me.top=0,Me.width=0,Me.height=0,Me.defaultSize={x:50,y:20},Me.offsetX=0,Me.offsetY=0,Me.rotationAngle=0,Me.CB_DISTANCE=10,Me._suppressMarkerCreateEvent=!1,Me.container.transform.baseVal.appendItem(gt.createTransform()),Me.setupControlBox(),Me}return Fe(xe,De),Object.defineProperty(xe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"visual",{get:function(){return this._visual},set:function(me){this._visual=me;var Ne=gt.createTransform();this._visual.transform.baseVal.appendItem(Ne)},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(me){return!!De.prototype.ownsTarget.call(this,me)||!!(this.controlGrips.findGripByVisual(me)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(me))},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.state==="new"&&(this.left=me.x,this.top=me.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var He=this.unrotatePoint(me);if(this.manipulationStartX=He.x,this.manipulationStartY=He.y,this.offsetX=He.x-this.left,this.offsetY=He.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ne)){this.activeGrip=this.rotatorGrip;var Me=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Me.x-this.width/2,this.top=Me.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var et=this.container.transform.baseVal.getItem(0);et.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(et,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},xe.prototype.pointerUp=function(me){var Ne=this.state;De.prototype.pointerUp.call(this,me),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(me),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},xe.prototype.moveVisual=function(me){this.visual.style.transform="translate("+me.x+"px, "+me.y+"px)"},xe.prototype.manipulate=function(me){var Ne=this.unrotatePoint(me);this.state==="creating"?this.resize(me):this.state==="move"?(this.left=this.manipulationStartLeft+(Ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ne):this.state==="rotate"&&this.rotate(me)},xe.prototype.resize=function(me){var Ne=this.manipulationStartLeft,He=this.manipulationStartWidth,Me=this.manipulationStartTop,et=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ne=this.manipulationStartLeft+me.x-this.manipulationStartX,He=this.manipulationStartWidth+this.manipulationStartLeft-Ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:He=this.manipulationStartWidth+me.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Me=this.manipulationStartTop+me.y-this.manipulationStartY,et=this.manipulationStartHeight+this.manipulationStartTop-Me;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:et=this.manipulationStartHeight+me.y-this.manipulationStartY}He>=0?(this.left=Ne,this.width=He):(this.left=Ne+He,this.width=-He),et>=0?(this.top=Me,this.height=et):(this.top=Me+et,this.height=-et),this.setSize()},xe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},xe.prototype.rotate=function(me){if(Math.abs(me.x-this.centerX)>.1){var Ne=Math.sign(me.x-this.centerX);this.rotationAngle=180*Math.atan((me.y-this.centerY)/(me.x-this.centerX))/Math.PI+90*Ne,this.applyRotation()}},xe.prototype.applyRotation=function(){var me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,0)},xe.prototype.rotatePoint=function(me){if(this.rotationAngle===0)return me;var Ne=this.container.getCTM(),He=gt.createPoint(me.x,me.y);return{x:(He=He.matrixTransform(Ne)).x,y:He.y}},xe.prototype.unrotatePoint=function(me){if(this.rotationAngle===0)return me;var Ne=this.container.getCTM();Ne=Ne.inverse();var He=gt.createPoint(me.x,me.y);return{x:(He=He.matrixTransform(Ne)).x,y:He.y}},xe.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},xe.prototype.setupControlBox=function(){this.controlBox=gt.createGroup();var me=gt.createTransform();me.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(me),this.container.appendChild(this.controlBox),this.controlRect=gt.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=gt.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 we,this.addControlGrips(),this.controlBox.style.display="none"},xe.prototype.adjustControlBox=function(){var me=this.controlBox.transform.baseVal.getItem(0);me.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(me,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()},xe.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()},xe.prototype.createGrip=function(){var me=new Oe;return me.visual.transform.baseVal.appendItem(gt.createTransform()),this.controlBox.appendChild(me.visual),me},xe.prototype.positionGrips=function(){var me=this.controlGrips.topLeft.GRIP_SIZE,Ne=-me/2,He=Ne,Me=(this.width+this.CB_DISTANCE)/2-me/2,et=(this.height+this.CB_DISTANCE)/2-me/2,Ut=this.height+this.CB_DISTANCE-me/2,rn=this.width+this.CB_DISTANCE-me/2;this.positionGrip(this.controlGrips.topLeft.visual,Ne,He),this.positionGrip(this.controlGrips.topCenter.visual,Me,He),this.positionGrip(this.controlGrips.topRight.visual,rn,He),this.positionGrip(this.controlGrips.centerLeft.visual,Ne,et),this.positionGrip(this.controlGrips.centerRight.visual,rn,et),this.positionGrip(this.controlGrips.bottomLeft.visual,Ne,Ut),this.positionGrip(this.controlGrips.bottomCenter.visual,Me,Ut),this.positionGrip(this.controlGrips.bottomRight.visual,rn,Ut),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Me,He-3*this.CB_DISTANCE)},xe.prototype.positionGrip=function(me,Ne,He){var Me=me.transform.baseVal.getItem(0);Me.setTranslate(Ne,He),me.transform.baseVal.replaceItem(Me,0)},xe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},xe.prototype.showControlBox=function(){this.controlBox.style.display=""},xe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ze.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ze.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},De.prototype.getState.call(this))},xe.prototype.restoreState=function(me){De.prototype.restoreState.call(this,me);var Ne=me;this.left=Ne.left,this.top=Ne.top,this.width=Ne.width,this.height=Ne.height,this.rotationAngle=Ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ze.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ze.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ne.containerTransformMatrix))},xe.prototype.scale=function(me,Ne){De.prototype.scale.call(this,me,Ne);var He=this.rotatePoint({x:this.left,y:this.top}),Me=this.unrotatePoint({x:He.x*me,y:He.y*Ne});this.left=Me.x,this.top=Me.y,this.width=this.width*me,this.height=this.height*Ne,this.adjustControlBox()},xe}(ke),Ue=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.opacity=1,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return!(!De.prototype.ownsTarget.call(this,me)&&me!==this.visual)},xe.prototype.createVisual=function(){this.visual=gt.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)},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(me),this._state="creating")},xe.prototype.manipulate=function(me){De.prototype.manipulate.call(this,me)},xe.prototype.resize=function(me){De.prototype.resize.call(this,me),this.setSize()},xe.prototype.setSize=function(){De.prototype.setSize.call(this),gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(me){De.prototype.pointerUp.call(this,me),this.setSize()},xe.prototype.setStrokeColor=function(me){this.strokeColor=me,this.visual&>.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(me),this.stateChanged()},xe.prototype.setFillColor=function(me){this.fillColor=me,this.visual&>.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},xe.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.visual&>.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.visual&>.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},De.prototype.getState.call(this))},xe.prototype.restoreState=function(me){var Ne=me;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),De.prototype.restoreState.call(this,me),this.setSize()},xe.prototype.scale=function(me,Ne){De.prototype.scale.call(this,me,Ne),this.setSize()},xe.title="Rectangle marker",xe}(We),ut=function(De){function xe(me,Ne,He,Me){var et=De.call(this,me,Me||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return et.widths=[],et.widthBoxes=[],et.widths=Ne,et.currentWidth=He,et.setCurrentWidth=et.setCurrentWidth.bind(et),et}return Fe(xe,De),xe.prototype.getUi=function(){var me=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.widths.forEach(function(He){var Me=document.createElement("div");Me.style.display="flex",Me.style.flexGrow="2",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderColor=He===me.currentWidth?me.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){me.setCurrentWidth(He,Me)}),Ne.appendChild(Me);var et=document.createElement("div");et.innerText=He.toString(),et.style.marginRight="5px",Me.appendChild(et);var Ut=document.createElement("div");Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.display="flex",Ut.style.alignItems="center";var rn=document.createElement("hr");rn.style.minWidth="20px",rn.style.border="0px",rn.style.borderTop=He+"px solid "+me.uiStyleSettings.toolboxColor,rn.style.flexGrow="2",Ut.appendChild(rn),Me.appendChild(Ut),me.widthBoxes.push(Me)}),Ne},xe.prototype.setCurrentWidth=function(me,Ne){var He=this;this.currentWidth=me,this.widthBoxes.forEach(function(Me){Me.style.borderColor=Me===Ne?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},xe}(ve),Ke=function(De){function xe(me,Ne,He,Me){var et=De.call(this,me,Me||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return et.styles=[],et.styleBoxes=[],et.styles=Ne,et.currentStyle=He,et.setCurrentStyle=et.setCurrentStyle.bind(et),et}return Fe(xe,De),xe.prototype.getUi=function(){var me=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.styles.forEach(function(He){var Me=document.createElement("div");Me.style.display="flex",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.overflow="hidden",Me.style.maxWidth=100/me.styles.length-5+"%",Me.style.borderColor=He===me.currentStyle?me.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){me.setCurrentStyle(He,Me)}),Ne.appendChild(Me);var et=document.createElement("div");et.style.minHeight="20px",et.style.flexGrow="2",et.style.overflow="hidden";var Ut=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+me.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(He!==""?'stroke-dasharray="'+He+'"':"")+` />
|
|
|
</svg>`;et.innerHTML=Ut,Me.appendChild(et),me.styleBoxes.push(Me)}),Ne},xe.prototype.setCurrentStyle=function(me,Ne){var He=this;this.currentStyle=me,this.styleBoxes.forEach(function(Me){Me.style.borderColor=Me===Ne?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},xe}(ve),Ht=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.strokeColor=He.defaultColor,Me.strokeWidth=He.defaultStrokeWidth,Me.strokeDasharray=He.defaultStrokeDasharray,Me.strokePanel=new Pe("Line color",He.defaultColorSet,He.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new ut("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ke("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return Fe(xe,De),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=De.prototype.getState.call(this);return me.typeName=xe.typeName,me},xe.typeName="FrameMarker",xe.title="Frame marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',xe}(Ue),St=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"},_t=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.x1=0,Me.y1=0,Me.x2=0,Me.y2=0,Me.defaultLength=50,Me.manipulationStartX=0,Me.manipulationStartY=0,Me.manipulationStartX1=0,Me.manipulationStartY1=0,Me.manipulationStartX2=0,Me.manipulationStartY2=0,Me.setupControlBox(),Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return!!De.prototype.ownsTarget.call(this,me)||!(!this.grip1.ownsTarget(me)&&!this.grip2.ownsTarget(me))},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.manipulationStartX=me.x,this.manipulationStartY=me.y,this.state==="new"&&(this.x1=me.x,this.y1=me.y,this.x2=me.x,this.y2=me.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(Ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},xe.prototype.pointerUp=function(me){var Ne=this.state;De.prototype.pointerUp.call(this,me),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(me),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},xe.prototype.adjustVisual=function(){},xe.prototype.manipulate=function(me){this.state==="creating"?this.resize(me):this.state==="move"?(this.x1=this.manipulationStartX1+me.x-this.manipulationStartX,this.y1=this.manipulationStartY1+me.y-this.manipulationStartY,this.x2=this.manipulationStartX2+me.x-this.manipulationStartX,this.y2=this.manipulationStartY2+me.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(me)},xe.prototype.resize=function(me){switch(this.activeGrip){case this.grip1:this.x1=me.x,this.y1=me.y;break;case this.grip2:case void 0:this.x2=me.x,this.y2=me.y}this.adjustVisual(),this.adjustControlBox()},xe.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},xe.prototype.setupControlBox=function(){this.controlBox=gt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},xe.prototype.adjustControlBox=function(){this.positionGrips()},xe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},xe.prototype.createGrip=function(){var me=new Oe;return me.visual.transform.baseVal.appendItem(gt.createTransform()),this.controlBox.appendChild(me.visual),me},xe.prototype.positionGrips=function(){var me=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-me/2,this.y1-me/2),this.positionGrip(this.grip2.visual,this.x2-me/2,this.y2-me/2)},xe.prototype.positionGrip=function(me,Ne,He){var Me=me.transform.baseVal.getItem(0);Me.setTranslate(Ne,He),me.transform.baseVal.replaceItem(Me,0)},xe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},De.prototype.getState.call(this))},xe.prototype.restoreState=function(me){De.prototype.restoreState.call(this,me);var Ne=me;this.x1=Ne.x1,this.y1=Ne.y1,this.x2=Ne.x2,this.y2=Ne.y2},xe.prototype.scale=function(me,Ne){De.prototype.scale.call(this,me,Ne),this.x1=this.x1*me,this.y1=this.y1*Ne,this.x2=this.x2*me,this.y2=this.y2*Ne,this.adjustVisual(),this.adjustControlBox()},xe}(ke),Qt=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.strokeColor=He.defaultColor,Me.strokeWidth=He.defaultStrokeWidth,Me.strokeDasharray=He.defaultStrokeDasharray,Me.strokePanel=new Pe("Line color",He.defaultColorSet,He.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new ut("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ke("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return!(!De.prototype.ownsTarget.call(this,me)&&me!==this.visual&&me!==this.selectorLine&&me!==this.visibleLine)},xe.prototype.createVisual=function(){this.visual=gt.createGroup(),this.selectorLine=gt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=gt.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)},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},xe.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()),gt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),gt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),gt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xe.prototype.setStrokeColor=function(me){this.strokeColor=me,this.adjustVisual(),this.colorChanged(me)},xe.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.adjustVisual()},xe.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},De.prototype.getState.call(this));return me.typeName=xe.typeName,me},xe.prototype.restoreState=function(me){De.prototype.restoreState.call(this,me);var Ne=me;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.createVisual(),this.adjustVisual()},xe.typeName="LineMarker",xe.title="Line marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',xe}(_t),qt=function(De){function xe(me,Ne,He,Me){var et=De.call(this,me,Me||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return et.fonts=[],et.fontBoxes=[],et.fonts=Ne,et.currentFont=He,et.setCurrentFont=et.setCurrentFont.bind(et),et}return Fe(xe,De),xe.prototype.getUi=function(){var me=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.fonts.forEach(function(He){var Me=document.createElement("div");Me.style.display="inline-block",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.overflow="hidden",Me.style.maxWidth=100/me.fonts.length-5+"%",Me.style.borderColor=He===me.currentFont?me.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){me.setCurrentFont(He,Me)}),Ne.appendChild(Me);var et=document.createElement("div");et.style.display="flex",et.style.minHeight="20px",et.style.flexGrow="2",et.style.fontFamily=He,et.style.overflow="hidden";var Ut=document.createElement("div");Ut.style.whiteSpace="nowrap",Ut.style.overflow="hidden",Ut.style.textOverflow="ellipsis",Ut.innerHTML="The quick brown fox jumps over the lazy dog",et.appendChild(Ut),Me.appendChild(et),me.fontBoxes.push(Me)}),Ne},xe.prototype.setCurrentFont=function(me,Ne){var He=this;this.currentFont=me,this.fontBoxes.forEach(function(Me){Me.style.borderColor=Me===Ne?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},xe}(ve),sn=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.color="transparent",Me.padding=5,Me.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Me.text=Me.DEFAULT_TEXT,Me.isMoved=!1,Me.color=He.defaultColor,Me.fontFamily=He.defaultFontFamily,Me.defaultSize={x:100,y:30},Me.setColor=Me.setColor.bind(Me),Me.setFont=Me.setFont.bind(Me),Me.renderText=Me.renderText.bind(Me),Me.sizeText=Me.sizeText.bind(Me),Me.textEditDivClicked=Me.textEditDivClicked.bind(Me),Me.showTextEditor=Me.showTextEditor.bind(Me),Me.setSize=Me.setSize.bind(Me),Me.positionTextEditor=Me.positionTextEditor.bind(Me),Me.colorPanel=new Pe("Color",He.defaultColorSet,He.defaultColor),Me.colorPanel.onColorChanged=Me.setColor,Me.fontFamilyPanel=new qt("Font",He.defaultFontFamilies,He.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){if(De.prototype.ownsTarget.call(this,me)||me===this.visual||me===this.textElement||me===this.bgRectangle)return!0;var Ne=!1;return this.textElement.childNodes.forEach(function(He){He===me&&(Ne=!0)}),Ne},xe.prototype.createVisual=function(){this.visual=gt.createGroup(),this.bgRectangle=gt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=gt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(gt.createTransform()),this.textElement.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.isMoved=!1,this.pointerDownPoint=me,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(me),this._state="creating")},xe.prototype.renderText=function(){var me=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(Ne){me.textElement.appendChild(gt.createTSpan(Ne.trim()===""?" ":Ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},xe.prototype.getTextScale=function(){var me=this.textElement.getBBox(),Ne=1;if(me.width>0&&me.height>0){var He=(1*this.width-this.width*this.padding*2/100)/me.width,Me=(1*this.height-this.height*this.padding*2/100)/me.height;Ne=Math.min(He,Me)}return Ne},xe.prototype.getTextPosition=function(me){var Ne=this.textElement.getBBox(),He=0,Me=0;return Ne.width>0&&Ne.height>0&&(He=(this.width-Ne.width*me)/2,Me=this.height/2-Ne.height*me/2),{x:He,y:Me}},xe.prototype.sizeText=function(){var me=this.textElement.getBBox(),Ne=this.getTextScale(),He=this.getTextPosition(Ne);He.y-=me.y*Ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+He.x+"px, "+He.y+"px) scale("+Ne+", "+Ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(He.x,He.y),this.textElement.transform.baseVal.getItem(1).setScale(Ne,Ne))},xe.prototype.manipulate=function(me){De.prototype.manipulate.call(this,me),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(me.x-this.pointerDownPoint.x)>5||Math.abs(me.y-this.pointerDownPoint.y)>5)},xe.prototype.resize=function(me){De.prototype.resize.call(this,me),this.isMoved=!0,this.setSize(),this.sizeText()},xe.prototype.setSize=function(){De.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},xe.prototype.pointerUp=function(me){var Ne=this.state;Ne==="creating"&&(this._suppressMarkerCreateEvent=!0),De.prototype.pointerUp.call(this,me),this.setSize(),(Ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},xe.prototype.showTextEditor=function(){var me=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(Ne){Ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ne=Number.parseFloat(me.textEditor.style.fontSize);me.textEditor.clientWidth>=Number.parseInt(me.textEditor.style.maxWidth)&&Ne>.9;)Ne-=.1,me.textEditor.style.fontSize=Math.max(Ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ne){if(Ne.clipboardData){var He=Ne.clipboardData.getData("text"),Me=window.getSelection();if(!Me.rangeCount)return!1;Me.deleteFromDocument(),Me.getRangeAt(0).insertNode(document.createTextNode(He)),Ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){me.textEditDivClicked(me.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},xe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var me=this.getTextScale(),Ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),He=this.textElement.getBBox(),Me={x:He.width*me,y:He.height*me};Ne.x-=Me.x/2,Ne.y-=Me.y/2,this.textEditor.style.top=Ne.y+"px",this.textEditor.style.left=Ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ne.x+"px",this.textEditor.style.fontSize=Math.max(16*me,12)+"px",this.textElement.style.display="none"}},xe.prototype.textEditDivClicked=function(me){this.text=me.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},xe.prototype.select=function(){De.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},xe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),De.prototype.deselect.call(this)},xe.prototype.dblClick=function(me,Ne){De.prototype.dblClick.call(this,me,Ne),this.showTextEditor()},xe.prototype.setColor=function(me){this.textElement&>.setAttributes(this.textElement,[["fill",me]]),this.color=me,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(me)},xe.prototype.setFont=function(me){this.textElement&>.setAttributes(this.textElement,[["font-family",me]]),this.fontFamily=me,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},xe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},xe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},De.prototype.getState.call(this));return me.typeName=xe.typeName,me},xe.prototype.restoreState=function(me){var Ne=me;this.color=Ne.color,this.fontFamily=Ne.fontFamily,this.padding=Ne.padding,this.text=Ne.text,this.createVisual(),De.prototype.restoreState.call(this,me),this.setSize()},xe.prototype.scale=function(me,Ne){De.prototype.scale.call(this,me,Ne),this.setSize(),this.sizeText(),this.positionTextEditor()},xe.typeName="TextMarker",xe.title="Text marker",xe.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>',xe}(We),Bn=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.color="transparent",Me.lineWidth=3,Me.drawing=!1,Me.pixelRatio=1,Me.color=He.defaultColor,Me.lineWidth=He.defaultStrokeWidth,Me.pixelRatio=He.freehandPixelRatio,Me.setColor=Me.setColor.bind(Me),Me.addCanvas=Me.addCanvas.bind(Me),Me.finishCreation=Me.finishCreation.bind(Me),Me.setLineWidth=Me.setLineWidth.bind(Me),Me.colorPanel=new Pe("Color",He.defaultColorSet,He.defaultColor),Me.colorPanel.onColorChanged=Me.setColor,Me.lineWidthPanel=new ut("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),Me.lineWidthPanel.onWidthChanged=Me.setLineWidth,Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return!(!De.prototype.ownsTarget.call(this,me)&&me!==this.visual&&me!==this.drawingImage)},xe.prototype.createVisual=function(){this.visual=gt.createGroup(),this.drawingImage=gt.createImage(),this.visual.appendChild(this.drawingImage);var me=gt.createTransform();this.visual.transform.baseVal.appendItem(me),this.addMarkerVisualToContainer(this.visual)},xe.prototype.pointerDown=function(me,Ne){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(me.x,me.y),this.drawing=!0):De.prototype.pointerDown.call(this,me,Ne)},xe.prototype.manipulate=function(me){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(me.x,me.y),this.canvasContext.stroke()):De.prototype.manipulate.call(this,me)},xe.prototype.resize=function(me){De.prototype.resize.call(this,me),gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(me){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):De.prototype.pointerUp.call(this,me)},xe.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)},xe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),De.prototype.select.call(this)},xe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),De.prototype.deselect.call(this)},xe.prototype.finishCreation=function(){for(var me=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],He=Ne[0],Me=Ne[1],et=Ne[2],Ut=Ne[3],rn=!1,ht=0;ht<this.canvasElement.height;ht++)for(var Pt=0;Pt<this.canvasElement.width;Pt++)me.data[ht*this.canvasElement.width*4+4*Pt+3]>0&&(rn=!0,ht<Me&&(Me=ht),Pt<He&&(He=Pt),ht>Ut&&(Ut=ht),Pt>et&&(et=Pt));if(rn){this.left=He/this.pixelRatio,this.top=Me/this.pixelRatio,this.width=(et-He)/this.pixelRatio,this.height=(Ut-Me)/this.pixelRatio;var ln=document.createElement("canvas");ln.width=et-He,ln.height=Ut-Me,ln.getContext("2d").putImageData(this.canvasContext.getImageData(He,Me,et-He,Ut-Me),0,0),this.drawingImgUrl=ln.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},xe.prototype.setDrawingImage=function(){gt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},xe.prototype.setColor=function(me){this.color=me,this.colorChanged(me)},xe.prototype.setLineWidth=function(me){this.lineWidth=me},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=Object.assign({drawingImgUrl:this.drawingImgUrl},De.prototype.getState.call(this));return me.typeName=xe.typeName,me},xe.prototype.restoreState=function(me){this.createVisual(),De.prototype.restoreState.call(this,me),this.drawingImgUrl=me.drawingImgUrl,this.setDrawingImage()},xe.prototype.scale=function(me,Ne){De.prototype.scale.call(this,me,Ne),this.setDrawingImage()},xe.typeName="FreehandMarker",xe.title="Freehand marker",xe.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>',xe}(We),yt=function(De){function xe(me,Ne,He){var Me=De.call(this,me,He||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Me.typeBoxes=[],Me.currentType=Ne,Me.setCurrentType=Me.setCurrentType.bind(Me),Me}return Fe(xe,De),xe.prototype.getUi=function(){var me=this,Ne=document.createElement("div");Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2";for(var He=function(Ut){var rn="both";switch(Ut){case 0:rn="both";break;case 1:rn="start";break;case 2:rn="end";break;case 3:rn="none"}var ht=document.createElement("div");if(ht.style.display="flex",ht.style.flexGrow="2",ht.style.alignItems="center",ht.style.justifyContent="space-between",ht.style.padding="5px",ht.style.borderWidth="2px",ht.style.borderStyle="solid",ht.style.borderColor=rn===Me.currentType?Me.uiStyleSettings.toolboxAccentColor:"transparent",ht.addEventListener("click",function(){me.setCurrentType(rn,ht)}),Ne.appendChild(ht),rn==="both"||rn==="start"){var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.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="`+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Pt.style.marginLeft="5px",ht.appendChild(Pt)}var ln=document.createElement("div");ln.style.display="flex",ln.style.alignItems="center",ln.style.minHeight="20px",ln.style.flexGrow="2";var Fn=document.createElement("hr");if(Fn.style.minWidth="20px",Fn.style.border="0px",Fn.style.borderTop="3px solid "+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee"),Fn.style.flexGrow="2",ln.appendChild(Fn),ht.appendChild(ln),rn==="both"||rn==="end"){var oi=document.createElement("div");oi.style.display="flex",oi.style.alignItems="center",oi.style.minHeight="20px",oi.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="`+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,oi.style.marginRight="5px",ht.appendChild(oi)}Me.typeBoxes.push(ht)},Me=this,et=0;et<4;et++)He(et);return Ne},xe.prototype.setCurrentType=function(me,Ne){var He=this;this.currentType=me,this.typeBoxes.forEach(function(Me){Me.style.borderColor=Me===Ne?He.uiStyleSettings!==void 0?He.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},xe}(ve),Ge=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.arrowType="end",Me.arrowBaseHeight=10,Me.arrowBaseWidth=10,Me.getArrowPoints=Me.getArrowPoints.bind(Me),Me.setArrowType=Me.setArrowType.bind(Me),Me.arrowTypePanel=new yt("Arrow type","end"),Me.arrowTypePanel.onArrowTypeChanged=Me.setArrowType,Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return!(!De.prototype.ownsTarget.call(this,me)&&me!==this.arrow1&&me!==this.arrow2)},xe.prototype.getArrowPoints=function(me,Ne){var He=this.arrowBaseWidth+2*this.strokeWidth,Me=this.arrowBaseHeight+2*this.strokeWidth;return me-He/2+","+(Ne+Me/2)+" "+me+","+(Ne-Me/2)+" "+(me+He/2)+","+(Ne+Me/2)},xe.prototype.createTips=function(){this.arrow1=gt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=gt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.arrow2)},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if(De.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",gt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),gt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var me=0;Math.abs(this.x1-this.x2)>.1&&(me=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ne=this.arrow1.transform.baseVal.getItem(0);Ne.setRotate(me,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ne,0);var He=this.arrow2.transform.baseVal.getItem(0);He.setRotate(me+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(He,0)}},xe.prototype.setArrowType=function(me){this.arrowType=me,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=Object.assign({arrowType:this.arrowType},De.prototype.getState.call(this));return me.typeName=xe.typeName,me},xe.prototype.restoreState=function(me){De.prototype.restoreState.call(this,me);var Ne=me;this.arrowType=Ne.arrowType,this.createTips(),this.adjustVisual()},xe.typeName="ArrowMarker",xe.title="Arrow marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',xe}(Qt),tn=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.fillColor=He.defaultFillColor,Me.strokeWidth=0,Me.fillPanel=new Pe("Color",He.defaultColorSet,He.defaultFillColor),Me.fillPanel.onColorChanged=Me.setFillColor,Me}return Fe(xe,De),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=De.prototype.getState.call(this);return me.typeName=xe.typeName,me},xe.typeName="CoverMarker",xe.title="Cover marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',xe}(Ue),Wn=function(De){function xe(me,Ne,He,Me){var et=De.call(this,me,Me||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return et.opacities=[],et.opacityBoxes=[],et.opacities=Ne,et.currentOpacity=He,et.setCurrentOpacity=et.setCurrentOpacity.bind(et),et}return Fe(xe,De),xe.prototype.getUi=function(){var me=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",Ne.style.justifyContent="space-between",this.opacities.forEach(function(He){var Me=document.createElement("div");Me.style.display="flex",Me.style.alignItems="center",Me.style.justifyContent="center",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderColor=He===me.currentOpacity?me.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){me.setCurrentOpacity(He,Me)}),Ne.appendChild(Me);var et=document.createElement("div");et.innerText=100*He+"%",Me.appendChild(et),me.opacityBoxes.push(Me)}),Ne},xe.prototype.setCurrentOpacity=function(me,Ne){var He=this;this.currentOpacity=me,this.opacityBoxes.forEach(function(Me){Me.style.borderColor=Me===Ne?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},xe}(ve),Qn=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.setOpacity=Me.setOpacity.bind(Me),Me.fillColor=He.defaultHighlightColor,Me.strokeWidth=0,Me.opacity=He.defaultHighlightOpacity,Me.fillPanel=new Pe("Color",He.defaultColorSet,Me.fillColor),Me.fillPanel.onColorChanged=Me.setFillColor,Me.opacityPanel=new Wn("Opacity",He.defaultOpacitySteps,Me.opacity),Me.opacityPanel.onOpacityChanged=Me.setOpacity,Me}return Fe(xe,De),xe.prototype.setOpacity=function(me){this.opacity=me,this.visual&>.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=De.prototype.getState.call(this);return me.typeName=xe.typeName,me},xe.typeName="HighlightMarker",xe.title="Highlight marker",xe.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>',xe}(tn),Dt='<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>',$t='<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>',cn=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.bgColor="transparent",Me.tipPosition={x:0,y:0},Me.tipBase1Position={x:0,y:0},Me.tipBase2Position={x:0,y:0},Me.tipMoving=!1,Me.color=He.defaultStrokeColor,Me.bgColor=He.defaultFillColor,Me.fontFamily=He.defaultFontFamily,Me.defaultSize={x:100,y:30},Me.setBgColor=Me.setBgColor.bind(Me),Me.getTipPoints=Me.getTipPoints.bind(Me),Me.positionTip=Me.positionTip.bind(Me),Me.setTipPoints=Me.setTipPoints.bind(Me),Me.colorPanel=new Pe("Text color",He.defaultColorSet,Me.color,Dt),Me.colorPanel.onColorChanged=Me.setColor,Me.bgColorPanel=new Pe("Fill color",He.defaultColorSet,Me.bgColor,$t),Me.bgColorPanel.onColorChanged=Me.setBgColor,Me.fontFamilyPanel=new qt("Font",He.defaultFontFamilies,He.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me.tipGrip=new Oe,Me.tipGrip.visual.transform.baseVal.appendItem(gt.createTransform()),Me.controlBox.appendChild(Me.tipGrip.visual),Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return De.prototype.ownsTarget.call(this,me)||this.tipGrip.ownsTarget(me)||this.tip===me},xe.prototype.createTip=function(){gt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=gt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},xe.prototype.pointerDown=function(me,Ne){this.state==="new"&&De.prototype.pointerDown.call(this,me,Ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):De.prototype.pointerDown.call(this,me,Ne)},xe.prototype.pointerUp=function(me){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,De.prototype.pointerUp.call(this,me);else{var Ne=this.state==="creating";De.prototype.pointerUp.call(this,me),this.setTipPoints(Ne),this.positionTip()}},xe.prototype.manipulate=function(me){if(this.tipMoving){var Ne=this.unrotatePoint(me);this.tipPosition={x:Ne.x-this.manipulationStartLeft,y:Ne.y-this.manipulationStartTop},this.positionTip()}else De.prototype.manipulate.call(this,me)},xe.prototype.setBgColor=function(me){this.bgRectangle&&this.tip&&(gt.setAttributes(this.bgRectangle,[["fill",me]]),gt.setAttributes(this.tip,[["fill",me]])),this.bgColor=me,this.fillColorChanged(me)},xe.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},xe.prototype.setTipPoints=function(me){me===void 0&&(me=!1);var Ne=Math.min(this.height/2,15),He=this.height/5;me&&(this.tipPosition={x:Ne+He/2,y:this.height+20});var Me=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Me<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(He=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:0},this.tipBase2Position={x:Ne+He,y:0}):(this.tipBase1Position={x:0,y:Ne},this.tipBase2Position={x:0,y:Ne+He}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Me<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(He=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-He,y:0},this.tipBase2Position={x:this.width-Ne,y:0}):(this.tipBase1Position={x:this.width,y:Ne},this.tipBase2Position={x:this.width,y:Ne+He}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Me<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(He=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-He,y:this.height},this.tipBase2Position={x:this.width-Ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ne-He},this.tipBase2Position={x:this.width,y:this.height-Ne}):Me<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(He=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:this.height},this.tipBase2Position={x:Ne+He,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ne},this.tipBase2Position={x:0,y:this.height-Ne-He})},xe.prototype.resize=function(me){De.prototype.resize.call(this,me),this.positionTip()},xe.prototype.positionTip=function(){gt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var me=this.tipGrip.visual.transform.baseVal.getItem(0);me.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(me,0)},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xe.prototype.select=function(){this.positionTip(),De.prototype.select.call(this)},xe.prototype.getState=function(){var me=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},De.prototype.getState.call(this));return me.typeName=xe.typeName,me},xe.prototype.restoreState=function(me){var Ne=me;this.bgColor=Ne.bgColor,this.tipPosition=Ne.tipPosition,De.prototype.restoreState.call(this,me),this.createTip(),this.setTipPoints()},xe.prototype.scale=function(me,Ne){De.prototype.scale.call(this,me,Ne),this.tipPosition={x:this.tipPosition.x*me,y:this.tipPosition.y*Ne},this.positionTip()},xe.typeName="CalloutMarker",xe.title="Callout marker",xe.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>',xe}(sn),Zn=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.opacity=1,Me.strokeColor=He.defaultColor,Me.strokeWidth=He.defaultStrokeWidth,Me.strokeDasharray=He.defaultStrokeDasharray,Me.fillColor=He.defaultFillColor,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.setOpacity=Me.setOpacity.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me.strokePanel=new Pe("Line color",nt(He.defaultColorSet,["transparent"]),He.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.fillPanel=new Pe("Fill color",nt(He.defaultColorSet,["transparent"]),Me.fillColor,$t),Me.fillPanel.onColorChanged=Me.setFillColor,Me.strokeWidthPanel=new ut("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ke("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me.opacityPanel=new Wn("Opacity",He.defaultOpacitySteps,Me.opacity),Me.opacityPanel.onOpacityChanged=Me.setOpacity,Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return!(!De.prototype.ownsTarget.call(this,me)&&me!==this.visual)},xe.prototype.createVisual=function(){this.visual=gt.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)},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(me),this._state="creating")},xe.prototype.manipulate=function(me){De.prototype.manipulate.call(this,me)},xe.prototype.resize=function(me){De.prototype.resize.call(this,me),this.setSize()},xe.prototype.setSize=function(){De.prototype.setSize.call(this),gt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},xe.prototype.pointerUp=function(me){De.prototype.pointerUp.call(this,me),this.setSize()},xe.prototype.setStrokeColor=function(me){this.strokeColor=me,this.visual&>.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(me),this.stateChanged()},xe.prototype.setFillColor=function(me){this.fillColor=me,this.visual&>.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(me),this.stateChanged()},xe.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.visual&>.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.visual&>.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xe.prototype.setOpacity=function(me){this.opacity=me,this.visual&>.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},De.prototype.getState.call(this));return me.typeName=xe.typeName,me},xe.prototype.restoreState=function(me){var Ne=me;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),De.prototype.restoreState.call(this,me),this.setSize()},xe.prototype.scale=function(me,Ne){De.prototype.scale.call(this,me,Ne),this.setSize()},xe.typeName="EllipseMarker",xe.title="Ellipse marker",xe.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>',xe}(We),hn=function(De){function xe(me,Ne,He){return De.call(this,me,Ne,He)||this}return Fe(xe,De),Object.defineProperty(xe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(me){return!(!De.prototype.ownsTarget.call(this,me)&&me!==this.tip1&&me!==this.tip2)},xe.prototype.createTips=function(){this.tip1=gt.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(gt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=gt.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(gt.createTransform()),this.visual.appendChild(this.tip2)},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if(De.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(gt.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()]]),gt.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 me=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ne=this.tip1.transform.baseVal.getItem(0);Ne.setRotate(me,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ne,0);var He=this.tip2.transform.baseVal.getItem(0);He.setRotate(me+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(He,0)}},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=De.prototype.getState.call(this);return me.typeName=xe.typeName,me},xe.prototype.restoreState=function(me){De.prototype.restoreState.call(this,me),this.createTips(),this.adjustVisual()},xe.typeName="MeasurementMarker",xe.title="Measurement marker",xe.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>',xe}(Qt),ii=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.strokePanel.colors=He.defaultColorSet,Me.fillColor="transparent",Me}return Fe(xe,De),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=De.prototype.getState.call(this);return me.typeName=xe.typeName,me},xe.typeName="EllipseFrameMarker",xe.title="Ellipse frame marker",xe.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>',xe}(Zn),mt=function(){function De(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),De.prototype.addUndoStep=function(xe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(xe)||(this.undoStack.push(xe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(xe)&&this.redoStack.splice(0,this.redoStack.length))},De.prototype.replaceLastUndoStep=function(xe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=xe)},De.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},De.prototype.undo=function(){if(this.undoStack.length>1){var xe=this.undoStack.pop();return xe!==void 0&&this.redoStack.push(xe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},De.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},De}(),Xn=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.curveX=0,Me.curveY=0,Me.manipulationStartCurveX=0,Me.manipulationStartCurveY=0,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.positionGrips=Me.positionGrips.bind(Me),Me.addControlGrips=Me.addControlGrips.bind(Me),Me.adjustVisual=Me.adjustVisual.bind(Me),Me.setupControlBox=Me.setupControlBox.bind(Me),Me.resize=Me.resize.bind(Me),Me.strokeColor=He.defaultColor,Me.strokeWidth=He.defaultStrokeWidth,Me.strokeDasharray=He.defaultStrokeDasharray,Me.strokePanel=new Pe("Line color",He.defaultColorSet,He.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new ut("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ke("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return!(!De.prototype.ownsTarget.call(this,me)&&me!==this.visual&&me!==this.selectorCurve&&me!==this.visibleCurve&&!this.curveGrip.ownsTarget(me))},xe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},xe.prototype.createVisual=function(){this.visual=gt.createGroup(),this.selectorCurve=gt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=gt.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)},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=me.x,this.curveY=me.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},xe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),gt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),gt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),gt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xe.prototype.setupControlBox=function(){De.prototype.setupControlBox.call(this),this.curveControlLine1=gt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=gt.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)},xe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,De.prototype.addControlGrips.call(this)},xe.prototype.positionGrips=function(){De.prototype.positionGrips.call(this);var me=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-me/2,this.curveY-me/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()))},xe.prototype.manipulate=function(me){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+me.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+me.y-this.manipulationStartY),De.prototype.manipulate.call(this,me)},xe.prototype.resize=function(me){this.activeGrip===this.curveGrip&&(this.curveX=me.x,this.curveY=me.y),De.prototype.resize.call(this,me),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},xe.prototype.setStrokeColor=function(me){this.strokeColor=me,this.adjustVisual(),this.colorChanged(me)},xe.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.adjustVisual()},xe.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.adjustVisual()},xe.prototype.scale=function(me,Ne){this.curveX=this.curveX*me,this.curveY=this.curveY*Ne,De.prototype.scale.call(this,me,Ne)},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},De.prototype.getState.call(this));return me.typeName=xe.typeName,me},xe.prototype.restoreState=function(me){De.prototype.restoreState.call(this,me);var Ne=me;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.curveX=Ne.curveX,this.curveY=Ne.curveY,this.createVisual(),this.adjustVisual()},xe.typeName="CurveMarker",xe.title="Curve marker",xe.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>',xe}(_t),ri=function(De){function xe(me,Ne,He){var Me=De.call(this,me,Ne,He)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.textColor="transparent",Me.fontSize="1rem",Me.isMoved=!1,Me.captionText="Caption",Me.PADDING=5,Me.captionBoxWidth=0,Me.captionBoxHeight=0,Me.strokeColor=He.defaultColor,Me.strokeWidth=He.defaultStrokeWidth,Me.strokeDasharray=He.defaultStrokeDasharray,Me.fillColor=He.defaultFillColor,Me.textColor=He.defaultStrokeColor,Me.fontFamily=He.defaultFontFamily,Me.fontSize=He.defaultCaptionFontSize,Me.captionText=He.defaultCaptionText,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me.sizeCaption=Me.sizeCaption.bind(Me),Me.setCaptionText=Me.setCaptionText.bind(Me),Me.showTextEditor=Me.showTextEditor.bind(Me),Me.positionTextEditor=Me.positionTextEditor.bind(Me),Me.finishTextEditing=Me.finishTextEditing.bind(Me),Me.setFont=Me.setFont.bind(Me),Me.setTextColor=Me.setTextColor.bind(Me),Me.strokePanel=new Pe("Line color",nt(He.defaultColorSet,["transparent"]),Me.strokeColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.fillPanel=new Pe("Fill color",nt(He.defaultColorSet,["transparent"]),Me.fillColor,$t),Me.fillPanel.onColorChanged=Me.setFillColor,Me.strokeWidthPanel=new ut("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Ke("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me.fontFamilyPanel=new qt("Font",He.defaultFontFamilies,He.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me.textColorPanel=new Pe("Text color",He.defaultColorSet,Me.textColor,Dt),Me.textColorPanel.onColorChanged=Me.setTextColor,Me}return Fe(xe,De),xe.prototype.ownsTarget=function(me){return!(!De.prototype.ownsTarget.call(this,me)&&me!==this.visual&&me!==this.frame&&me!==this.captionBg&&me!==this.captionElement)},xe.prototype.createVisual=function(){this.visual=gt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=gt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=gt.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=gt.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()},xe.prototype.setCaptionText=function(me){this.captionText=me,this.captionElement.textContent=this.captionText,this.sizeCaption()},xe.prototype.pointerDown=function(me,Ne){De.prototype.pointerDown.call(this,me,Ne),this.isMoved=!1,this.pointerDownPoint=me,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(me),this._state="creating")},xe.prototype.manipulate=function(me){De.prototype.manipulate.call(this,me),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(me.x-this.pointerDownPoint.x)>5||Math.abs(me.y-this.pointerDownPoint.y)>5)},xe.prototype.resize=function(me){De.prototype.resize.call(this,me),this.setSize()},xe.prototype.sizeCaption=function(){var me=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=me.width+2*this.PADDING,this.captionBoxHeight=me.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),gt.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')"]]),gt.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')"]])},xe.prototype.showTextEditor=function(){var me=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(Ne){Ne.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ne){Ne.key==="Enter"&&me.finishTextEditing(me.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){me.finishTextEditing(me.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){me.finishTextEditing(me.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},xe.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"))},xe.prototype.finishTextEditing=function(me){this.setCaptionText(me.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},xe.prototype.setFont=function(me){this.captionElement&>.setAttributes(this.captionElement,[["font-family",me]]),this.fontFamily=me,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},xe.prototype.setTextColor=function(me){this.captionElement&>.setAttributes(this.captionElement,[["fill",me]]),this.textColor=me,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},xe.prototype.setSize=function(){De.prototype.setSize.call(this),gt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},xe.prototype.pointerUp=function(me){De.prototype.pointerUp.call(this,me),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},xe.prototype.dblClick=function(me,Ne){De.prototype.dblClick.call(this,me,Ne),this.showTextEditor()},xe.prototype.setStrokeColor=function(me){this.strokeColor=me,this.frame&>.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(me),this.stateChanged()},xe.prototype.setFillColor=function(me){this.fillColor=me,this.captionBg&>.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(me),this.stateChanged()},xe.prototype.setStrokeWidth=function(me){this.strokeWidth=me,this.frame&>.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(me){this.strokeDasharray=me,this.frame&>.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var me=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},De.prototype.getState.call(this));return me.typeName=this.typeName,me},xe.prototype.restoreState=function(me){var Ne=me;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.textColor=Ne.textColor,this.fontFamily=Ne.fontFamily,this.captionText=Ne.captionText,this.fontSize=Ne.fontSize,this.createVisual(),De.prototype.restoreState.call(this,me),this.setSize()},xe.prototype.scale=function(me,Ne){De.prototype.scale.call(this,me,Ne),this.setSize()},xe.typeName="CaptionFrameMarker",xe.title="Caption frame marker",xe.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>',xe}(We),pi=function(){function De(xe,me){me===void 0&&(me=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=xe,this.cancelable=me}return Object.defineProperty(De.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),De.prototype.preventDefault=function(){this._defaultPrevented=!0},De}(),Mn=function(De){function xe(me,Ne,He){var Me=De.call(this,me,!1)||this;return Me.dataUrl=Ne,Me.state=He,Me}return Fe(xe,De),xe}(pi),Gt=function(De){function xe(me,Ne,He){He===void 0&&(He=!1);var Me=De.call(this,me,He)||this;return Me.marker=Ne,Me}return Fe(xe,De),xe}(pi),zt=function(){function De(){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 De.prototype.addEventListener=function(xe,me){this[xe].push(me)},De.prototype.removeEventListener=function(xe,me){var Ne=this[xe].indexOf(me);Ne>-1&&this[xe].splice(Ne,1)},De}(),Mt=function(){function De(xe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new St,this._isOpen=!1,this.undoRedoManager=new mt,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 zt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=De.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=xe,this.targetRoot=document.body,this.width=xe.clientWidth,this.height=xe.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(De.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ht,Bn,Ge,sn,ii,Zn,Qn,cn,hn,tn,Qt,Xn,ri]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ht,Bn,Ge,sn,Zn,Qn,cn]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ht,Bn,Ge,sn,Qn]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(xe){var me=this;this._availableMarkerTypes.splice(0),xe.forEach(function(Ne){if(typeof Ne=="string"){var He=me.ALL_MARKER_TYPES.find(function(Me){return Me.typeName===Ne});He!==void 0&&me._availableMarkerTypes.push(He)}else me._availableMarkerTypes.push(Ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(xe){this._zoomLevel=xe,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(De.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),De.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),wt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},De.prototype.show=function(){var xe=this;this.styles.styleSheetRoot===void 0&&Te.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Te.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(me){return me(new pi(xe))})},De.prototype.render=function(){return Ft(this,void 0,void 0,function(){var xe;return Ct(this,function(me){switch(me.label){case 0:return this.setCurrentMarker(),(xe=new xt).naturalSize=this.renderAtNaturalSize,xe.imageType=this.renderImageType,xe.imageQuality=this.renderImageQuality,xe.markersOnly=this.renderMarkersOnly,xe.width=this.renderWidth,xe.height=this.renderHeight,[4,xe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return me.sent(),[4,xe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,me.sent()]}})})},De.prototype.close=function(xe){var me=this;if(xe===void 0&&(xe=!1),this.isOpen){var Ne=!1;xe||this.eventListeners.beforeclose.forEach(function(He){var Me=new pi(me,!0);He(Me),Me.defaultPrevented&&(Ne=!0)}),Ne||(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(He){return He(new pi(me))}),this.detachEvents(),this._isOpen=!1)}},De.prototype.addMarkersToToolbar=function(){for(var xe,me=[],Ne=0;Ne<arguments.length;Ne++)me[Ne]=arguments[Ne];(xe=this._availableMarkerTypes).push.apply(xe,me)},De.prototype.addRenderEventListener=function(xe){this.addEventListener("render",function(me){xe(me.dataUrl,me.state)})},De.prototype.removeRenderEventListener=function(xe){},De.prototype.addCloseEventListener=function(xe){this.addEventListener("close",function(){xe()})},De.prototype.removeCloseEventListener=function(xe){},De.prototype.setupResizeObserver=function(){var xe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){xe.resize(xe.target.clientWidth,xe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return xe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},De.prototype.onPopupTargetResize=function(){var xe=1*this.target.clientWidth/this.target.clientHeight,me=this.editorCanvas.clientWidth/xe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*xe:this.editorCanvas.clientWidth,Ne=me<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/xe;this.resize(me,Ne)},De.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},De.prototype.resize=function(xe,me){this._isResizing=!0;var Ne=xe/this.imageWidth,He=me/this.imageHeight;this.imageWidth=Math.round(xe),this.imageHeight=Math.round(me),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(Ne,He),this._isResizing=!1},De.prototype.scaleMarkers=function(xe,me){var Ne,He=this;this._currentMarker&&this._currentMarker instanceof sn?this._currentMarker.scale(xe,me):(Ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Me){Me!==He._currentMarker&&Me.scale(xe,me)}),Ne!==void 0&&this.setCurrentMarker(Ne)},De.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"},De.prototype.setTopLeft=function(){var xe=this.editingTarget.getBoundingClientRect(),me=this.editorCanvas.getBoundingClientRect();this.left=xe.left-me.left,this.top=xe.top-me.top},De.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)},De.prototype.addDefs=function(){for(var xe,me=[],Ne=0;Ne<arguments.length;Ne++)me[Ne]=arguments[Ne];this.defs=gt.createDefs(),this.addDefsToImage(),(xe=this.defs).append.apply(xe,me)},De.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},De.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)},De.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},De.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},De.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)},De.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},De.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)},De.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 xe=document.createElement("a");xe.href="https://markerjs.com/",xe.target="_blank",xe.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>',xe.title="Powered by marker.js",xe.style.display="grid",xe.style.alignItems="center",xe.style.justifyItems="center",xe.style.padding="3px",xe.style.width="20px",xe.style.height="20px",this.logoUI.appendChild(xe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},De.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")},De.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"},De.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},De.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 xe=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=xe+"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 se(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ge(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},De.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},De.prototype.removeMarker=function(xe){this.markerImage.removeChild(xe.container),this.markers.indexOf(xe)>-1&&this.markers.splice(this.markers.indexOf(xe),1),xe.dispose()},De.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())},De.prototype.toolbarButtonClicked=function(xe,me){if(xe==="marker"&&me!==void 0)this.createNewMarker(me);else if(xe==="action")switch(me){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()}},De.prototype.deleteSelectedMarker=function(){var xe=this;if(this._currentMarker!==void 0){var me=!1;if(this.eventListeners.markerbeforedelete.forEach(function(He){var Me=new Gt(xe,xe._currentMarker,!0);He(Me),Me.defaultPrevented&&(me=!0)}),!me){var Ne=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(He){return He(new Gt(xe,Ne))})}}},De.prototype.clear=function(){var xe=this,me=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(et){var Ut=new Gt(xe,void 0,!0);et(Ut),Ut.defaultPrevented&&(me=!0)}),!me)){this.setCurrentMarker();for(var Ne=function(et){var Ut=He.markers[et];He.setCurrentMarker(He.markers[et]),He._currentMarker.dispose(),He.markerImage.removeChild(He._currentMarker.container),He.markers.splice(He.markers.indexOf(He._currentMarker),1),He.eventListeners.markerdelete.forEach(function(rn){return rn(new Gt(xe,Ut))})},He=this,Me=this.markers.length-1;Me>=0;Me--)Ne(Me);this.addUndoStep()}},Object.defineProperty(De.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),De.prototype.showNotesEditor=function(){var xe;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=(xe=this._currentMarker.notes)!==null&&xe!==void 0?xe:"",this.overlayContainer.appendChild(this.notesArea))},De.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)},De.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},De.prototype.addUndoStep=function(){var xe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var me=this.getState(),Ne=this.undoRedoManager.getLastUndoStep();if(!Ne||Ne.width===me.width&&Ne.height===me.height){var He=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(me),He<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Me){return Me(new pi(xe))})}else this.undoRedoManager.replaceLastUndoStep(me),this.eventListeners.statechange.forEach(function(Me){return Me(new pi(xe))})}},De.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},De.prototype.undoStep=function(){var xe=this,me=this.undoRedoManager.undo();me!==void 0&&(this.restoreState(me),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new pi(xe))}))},De.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},De.prototype.redoStep=function(){var xe=this,me=this.undoRedoManager.redo();me!==void 0&&(this.restoreState(me),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new pi(xe))}))},De.prototype.stepZoom=function(){var xe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=xe<this.zoomSteps.length-1?this.zoomSteps[xe+1]:this.zoomSteps[0]},De.prototype.panTo=function(xe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-xe.x,top:this.prevPanPoint.y-xe.y}),this.prevPanPoint=xe},De.prototype.startRenderAndClose=function(){return Ft(this,void 0,void 0,function(){var xe,me,Ne=this;return Ct(this,function(He){switch(He.label){case 0:return[4,this.render()];case 1:return xe=He.sent(),me=this.getState(),this.eventListeners.render.forEach(function(Me){return Me(new Mn(Ne,xe,me))}),this.close(!0),[2]}})})},De.prototype.getState=function(xe){xe===!0&&this.setCurrentMarker();var me={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ne){return me.markers.push(Ne.getState())}),me},De.prototype.restoreState=function(xe){var me=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);xe.markers.forEach(function(Ne){var He=me._availableMarkerTypes.find(function(et){return et.typeName===Ne.typeName});if(He!==void 0){var Me=me.addNewMarker(He);Me.restoreState(Ne),me.markers.push(Me)}}),xe.width&&xe.height&&(xe.width!==this.imageWidth||xe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/xe.width,this.imageHeight/xe.height),this.eventListeners.restorestate.forEach(function(Ne){return Ne(new pi(me))})},De.prototype.addNewMarker=function(xe){var me=gt.createGroup();return this.markerImage.appendChild(me),new xe(me,this.overlayContainer,this.settings)},De.prototype.createNewMarker=function(xe){var me,Ne=this;(me=typeof xe=="string"?this._availableMarkerTypes.find(function(He){return He.typeName===xe}):xe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(me),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(me.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(He){return He(new Gt(Ne,Ne._currentMarker))}))},De.prototype.markerCreated=function(xe){var me=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(xe),this.setCurrentMarker(xe),xe instanceof Bn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Bn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ne){return Ne(new Gt(me,me._currentMarker))})},De.prototype.colorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=xe,this.settings.defaultStrokeColor=xe)},De.prototype.fillColorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=xe)},De.prototype.markerStateChanged=function(xe){var me=this;this.eventListeners.markerchange.forEach(function(Ne){return Ne(new Gt(me,xe))})},De.prototype.setCurrentMarker=function(xe){var me=this;this._currentMarker!==xe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ne){return Ne(new Gt(me,me._currentMarker))})),this._currentMarker=xe,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(Ne){return Ne(new Gt(me,me._currentMarker))}))},De.prototype.onPointerDown=function(xe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||xe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var me=this.markers.find(function(Ne){return Ne.ownsTarget(xe.target)});me!==void 0?(this.setCurrentMarker(me),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xe.clientX,xe.clientY),xe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:xe.clientX,y:xe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xe.clientX,xe.clientY))},De.prototype.onDblClick=function(xe){if(this._isFocused||this.focus(),this.mode==="select"){var me=this.markers.find(function(Ne){return Ne.ownsTarget(xe.target)});me!==void 0&&me!==this._currentMarker&&this.setCurrentMarker(me),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(xe.clientX,xe.clientY),xe.target):this.setCurrentMarker()}},De.prototype.onPointerMove=function(xe){this.touchPoints!==1&&xe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||xe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(xe.clientX,xe.clientY)):this.zoomLevel>1&&this.panTo({x:xe.clientX,y:xe.clientY}))},De.prototype.onPointerUp=function(xe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(xe.clientX,xe.clientY)),this.isDragging=!1,this.addUndoStep()},De.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},De.prototype.onKeyUp=function(xe){this._currentMarker===void 0||this.notesArea!==void 0||xe.key!=="Delete"&&xe.key!=="Backspace"||this.deleteSelectedMarker()},De.prototype.clientToLocalCoordinates=function(xe,me){var Ne=this.markerImage.getBoundingClientRect();return{x:(xe-Ne.left)/this.zoomLevel,y:(me-Ne.top)/this.zoomLevel}},De.prototype.onWindowResize=function(){this.positionUI()},De.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var xe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=xe+"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()},De.prototype.addLicenseKey=function(xe){wt.addKey(xe)},De.prototype.addEventListener=function(xe,me){this.eventListeners.addEventListener(xe,me)},De.prototype.removeEventListener=function(xe,me){this.eventListeners.removeEventListener(xe,me)},De.prototype.renderState=function(xe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(xe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(De.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),De.prototype.focus=function(){var xe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(me){return me(new pi(xe))}))},De.prototype.blur=function(){var xe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(me){return me(new pi(xe))}))},De.instanceCounter=0,De}(),at=Se(70635),jt=Se(58130),Et=(De,xe,me)=>new Promise((Ne,He)=>{var Me=rn=>{try{Ut(me.next(rn))}catch(ht){He(ht)}},et=rn=>{try{Ut(me.throw(rn))}catch(ht){He(ht)}},Ut=rn=>rn.done?Ne(rn.value):Promise.resolve(rn.value).then(Me,et);Ut((me=me.apply(De,xe)).next())}),ot=({data:De,className:xe,fullWidth:me,style:Ne={},onClose:He,onOk:Me,showFullTools:et,noAssociationId:Ut})=>{const rn=(0,Ee.useRef)(null),ht=(0,Ee.useRef)(null),Pt=(0,Ee.useRef)(null),ln=(0,Ee.useRef)(null),[Fn,oi]=(0,Ee.useState)(!1),[ci,di]=(0,Ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ee.useEffect)(()=>{Pt.current||(Pt.current=document.createElement("style"),document.head.appendChild(Pt.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),Pt.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&mi()):(document.body.removeAttribute("data-custom"),Pt.current&&(document.head.removeChild(Pt.current),Pt.current=null))},[De==null?void 0:De.visible]);const mi=()=>Et(void 0,null,function*(){oi(!0),di("\u6B63\u5728\u52A0\u8F7D\u4E2D");const gr=yield(0,jt.ZJ)(De==null?void 0:De.src);rn.current.src="",rn.current.src=gr,rn.current.onload=function(){lr()},oi(!1),di("")}),Ui=gr=>Et(void 0,null,function*(){oi(!0),di("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wr=yield(0,at.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:gr.dataUrl}});wr!=null&&wr.id&&!Ut?(yield(0,at.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:wr==null?void 0:wr.id,settings:JSON.stringify(gr.state)}})).status===0&&Me():wr!=null&&wr.id&&Me(wr),oi(!1),di("")}),vr=()=>{const gr=document.querySelector('a[href="https://markerjs.com/"]');gr&&gr.parentNode&&(gr.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(Zr=>{const Ki=document.querySelector(Zr.name);Ki&&Ki.setAttribute("title",Zr.title)})},lr=()=>{ht.current=new Mt(rn.current),ht.current.targetRoot=ln.current,ht.current.addEventListener("render",Ui),ht.current.addEventListener("beforeclose",He),et&&(ht.current.availableMarkerTypes=ht.current.ALL_MARKER_TYPES,ht.current.uiStyleSettings.redoButtonVisible=!0,ht.current.uiStyleSettings.notesButtonVisible=!0,ht.current.uiStyleSettings.zoomButtonVisible=!0,ht.current.uiStyleSettings.zoomOutButtonVisible=!0,ht.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ht.current.uiStyleSettings,ht.current.show(),De!=null&&De.snapshotData&&ht.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),vr()},300)};return Ee.createElement(Ee.Fragment,null,(De==null?void 0:De.visible)&&Ee.createElement(Xe.Z,{spinning:Fn,tip:ci,style:{position:"absolute"}},Ee.createElement("div",{ref:ln,className:kt()(je.imageDimensions,xe,me?je.fullWidth:""),style:Ne},Ee.createElement("img",{className:je.img,ref:rn}))))}},75890:function(On,Pn,Se){"use strict";var Ee=Se(59301),je=Se(95237),it=Se(43604),kt=Se(99313),Xe=Se(3113),pt=Se(25711),Fe=Se(93938),Ft=Se(48136),Ct=Se(59301);const nt=(0,Ee.forwardRef)(({callback:gt,showSaveButton:wt,value:xt=""},Te)=>{const te=(0,Ee.useRef)(),ne=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],he=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],se=Pe=>{te.current.setValue(te.current.getValue()+" "+Pe.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ct.createElement(je.Z,{className:Fe.Z.lists,gutter:[10,10]},ne.map((Pe,ke)=>Ct.createElement(it.Z,{flex:"110px",className:Fe.Z.item},Ct.createElement("div",null,Ct.createElement(pt.Z,{value:`$$${Pe.value}$$`}),Pe.name),Ct.createElement("div",{className:Fe.Z.children},Pe.children.map((we,Oe)=>Ct.createElement("div",{key:Oe},Ct.createElement("h1",null,we.name),Ct.createElement(je.Z,{gutter:[10,10]},we.data.map((ze,We)=>Ct.createElement(it.Z,{key:We,onClick:()=>se(ze),className:Fe.Z.diamond},Ct.createElement(pt.Z,{value:"`$$"+ze.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ct.createElement(je.Z,{className:Fe.Z.lists,gutter:[10,10]},he.map((Pe,ke)=>Ct.createElement(it.Z,{flex:"110px",className:Fe.Z.item},Ct.createElement("div",null,Ct.createElement(pt.Z,{value:"`$$"+Pe.value+"$$`"}),Pe.name),Ct.createElement("div",{className:Fe.Z.children},Pe.children.map((we,Oe)=>Ct.createElement("div",{key:Oe},we.name&&Ct.createElement("h1",null,we.name),Ct.createElement(je.Z,{gutter:[10,10]},we.data.map((ze,We)=>Ct.createElement(it.Z,{key:We,onClick:()=>se(ze),className:Fe.Z.diamond},Ct.createElement(pt.Z,{value:"`$$"+ze.value+"$$`"}))))))))))}],ve=()=>{var Pe=document.createElement("div");Pe.innerHTML=te.current.getValue();var ke=Pe.innerText;return gt&>(ke),ke};return(0,Ee.useImperativeHandle)(Te,()=>({getData:ve})),Ct.createElement("div",{className:Fe.Z.mathWrap},Ct.createElement(kt.default,{defaultActiveKey:"1",items:ge}),Ct.createElement("math-field",{locale:"zh_cn",className:Fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},xt||""),wt&&Ct.createElement("div",{className:Fe.Z.button},Ct.createElement(Xe.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Pn.Z=nt},97267:function(On,Pn,Se){"use strict";var Ee=Se(59301),je=Se(93314),it=Se(3113),kt=Object.defineProperty,Xe=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,nt=(Te,te,ne)=>te in Te?kt(Te,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Te[te]=ne,gt=(Te,te)=>{for(var ne in te||(te={}))Ft.call(te,ne)&&nt(Te,ne,te[ne]);if(Fe)for(var ne of Fe(te))Ct.call(te,ne)&&nt(Te,ne,te[ne]);return Te},wt=(Te,te)=>Xe(Te,pt(te));const xt=({img:Te,buttonProps:te={},styles:ne={},customText:he,ButtonText:se,ButtonClick:ge,Buttonclass:ve,ButtonTwo:Pe,imgStyles:ke,loading:we=!1})=>Ee.createElement("section",{className:"tc animated fadeIn",style:gt(gt({},{color:"#999",margin:"100px auto",visibility:we?"hidden":"visible"}),ne)},Ee.createElement("img",{src:Te||je,style:wt(gt({},ke),{pointerEvents:"none",userSelect:"none"})}),Ee.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&Ee.createElement(it.ZP,gt({className:ve,onClick:ge},te),se),Pe&&Pe);Pn.Z=xt},46898:function(On,Pn,Se){"use strict";Se.d(Pn,{Q:function(){return pt}});var Ee=Se(59301),je=Se(57809),it=Se(5112),kt=Se(88897),Xe=Se(59301),pt=(Ft=>(Ft[Ft.Number=1]="Number",Ft[Ft.Percent=2]="Percent",Ft))(pt||{});const Fe=({value:Ft,onChange:Ct,disabled:nt,hidePercentOption:gt=!1,percentType:wt="select"})=>{const xt=(0,Ee.useMemo)(()=>gt?1:2,[gt]),[Te,te]=(0,Ee.useState)(xt);console.log(Te);const ne=se=>Ft.type===1?`${se}\u5206`:`${se}%`,he=(0,Ee.useCallback)(se=>{if(Te===1){const ge=se.replace("\u5206","");return isNaN(parseInt(ge,10))?0:ge}else return se.replace("%","")},[Te]);return(0,Ee.useEffect)(()=>{te(Ft.type)},[Ft]),Xe.createElement("div",{style:{display:"flex",alignItems:"center"}},wt=="select"&&Xe.createElement(je.default,{size:"large",onChange:se=>{te(se),Ct({type:se,inputValue:se===1?5:20})},value:Te||xt,style:{width:100},options:gt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:nt}),wt=="radio"&&Xe.createElement(it.ZP.Group,{size:"large",onChange:se=>{const ge=se.target.value;te(ge),Ct({type:ge,inputValue:ge===1?5:20})},value:Te||xt,disabled:nt},!gt&&Xe.createElement(it.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Xe.createElement(it.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),wt=="radio"&&Xe.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Ft.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Xe.createElement(kt.Z,{size:"large",disabled:nt,value:Ft.inputValue,style:{width:"120px"},parser:he,addonAfter:Ft.type===1?"\u5206":"%",max:Te===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:se=>{Ct({type:Te,inputValue:se})}}),wt=="radio"&&Ft.type==2&&Xe.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Pn.Z=Fe},79646:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ve}});var Ee=Se(59301),je={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},it=Se(3113),kt=Se(63093),Xe=Se(48551),pt=Se(6848),Fe=Se(58130),Ft=Se(79124),Ct=Se(97267),nt=Se(10148),gt=Se(63486),wt=Se(59301),xt=Object.defineProperty,Te=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(Pe,ke,we)=>ke in Pe?xt(Pe,ke,{enumerable:!0,configurable:!0,writable:!0,value:we}):Pe[ke]=we,se=(Pe,ke)=>{for(var we in ke||(ke={}))te.call(ke,we)&&he(Pe,we,ke[we]);if(Te)for(var we of Te(ke))ne.call(ke,we)&&he(Pe,we,ke[we]);return Pe},ge=(Pe,ke,we)=>new Promise((Oe,ze)=>{var We=Ke=>{try{ut(we.next(Ke))}catch(Ht){ze(Ht)}},Ue=Ke=>{try{ut(we.throw(Ke))}catch(Ht){ze(Ht)}},ut=Ke=>Ke.done?Oe(Ke.value):Promise.resolve(Ke.value).then(We,Ue);ut((we=we.apply(Pe,ke)).next())}),ve=({editOffice:Pe="view",data:ke,theme:we,type:Oe,filename:ze,monacoEditor:We,className:Ue,style:ut,close:Ke,onClose:Ht,hasMask:St,disabledDownload:_t,onImgDimensions:Qt,showNodata:qt,recordInfo:sn})=>{const[Bn,yt]=(0,Ee.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ge,tn]=(0,Ee.useState)(""),[Wn,Qn]=(0,Ee.useState)(),Dt=window.ENV==="build"?"/react/build":"",$t=location.host.startsWith("localhost")?nt.Z.PROXY_SERVER:nt.Z.API_SERVER,Zn=10*(1024*1024),hn=(0,Ee.useRef)();ke!=null&&ke.startsWith("/api")&&Oe!=="txt"&&(ke=nt.Z.API_SERVER+ke);const ii=pi=>pi.substring(pi.lastIndexOf("/")+1).split(".").pop();ze&&We&&(We.filename=ze),(0,Ee.useEffect)(()=>{var pi,Mn;const Gt=(Mn=(pi=document.cookie)==null?void 0:pi.replace(/\s/g,""))==null?void 0:Mn.split(";");Gt==null||Gt.map(zt=>{let Mt=zt.split("=");Mt[0]==="_educoder_session"&&tn(Mt[1])})},[]),(0,Ee.useEffect)(()=>{Oe==="office"&&(ke.indexOf("bigfilescdn.")>-1||ke.indexOf("bigfiles1")>-1?Qn({url:ke,fileType:ii(ke),model:ke.indexOf("model=edit")?"edit":"view"}):mt())},[Oe,ke]);const mt=()=>ge(void 0,null,function*(){console.log("data:",ke);let pi=ke;ke.startsWith("http")||(pi=location.origin+pi);let Mn=new URL(pi).pathname.split("/").pop();const Gt=yield(0,Ft.gJ)({attachment_id:Mn});Gt.url=$t+Gt.url,Qn(Gt)}),Xn=()=>{if(ke.startsWith("http")||ke.startsWith("blob:")){ri();return}(0,Fe.Sv)(ze||"educoder",ke,ze)},ri=()=>{sn&&(0,gt.fc)({id:sn==null?void 0:sn.id,watch_type:1,course_id:sn==null?void 0:sn.course_id}),(0,Fe.Nd)(ze||"educoder",decodeURIComponent(ke))};return wt.createElement("div",{style:se({},ut||{}),className:`${St&&je.bgBlack} ${Oe?je.wrp:"hide"}`},Ke&&wt.createElement("div",{className:je.close,ref:hn},!!Qt&&wt.createElement(pt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>hn.current},wt.createElement("span",{onClick:()=>{Ht(),Qt()}},wt.createElement("i",{className:"icon-yulanpizhu"}))),!_t&&wt.createElement(pt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>hn.current},wt.createElement("span",{onClick:ri},wt.createElement("i",{className:"icon-quxiaozhiding"}))),wt.createElement(pt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>hn.current},wt.createElement("span",{className:"",onClick:Ht},wt.createElement("i",{className:"icon-guanbi1"})))),wt.createElement("div",{className:`${je[Ue]} ${Ue} ${je.monaco} ${Oe==="txt"?"show":"hide"}`},Oe==="txt"&&wt.createElement(wt.Fragment,null,wt.createElement(Xe.ZP,se({},We)))),Oe==="audio"&&wt.createElement("audio",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ke}`,autoPlay:!0}),Oe==="video"&&wt.createElement(wt.Fragment,null,(ke==null?void 0:ke.indexOf("http"))>-1?wt.createElement("video",{controls:!0,src:`${ke}`,autoPlay:!0}):wt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ke}`,autoPlay:!0})),Oe==="office"&&Wn&&wt.createElement("iframe",{src:`${Dt}/office.html?key=${Wn.key}&url=${btoa(Wn.url)}&callbackUrl=${$t+(Wn.callbackUrl||"")}&fileType=${Wn.fileType}&title=${Wn.title||""}&model=${Pe}&officeServer=${nt.Z.ONLYOFFICE}&disabledDownload=${!!_t}`}),Oe==="html"&&wt.createElement("iframe",{src:ke+"&disposition=inline"}),Oe==="pdf"&&wt.createElement("iframe",{src:`${Dt}/js/pdfview/index.html?filename=${ze||"educoder.pdf"}&url=${encodeURIComponent(ke)}&disabledDownload=${!!_t}`}),Oe==="image"&&wt.createElement("img",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ke}`}),(Oe==="other"||Oe==="download")&&wt.createElement(wt.Fragment,null,qt?wt.createElement(Ct.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:wt.createElement(it.ZP,{icon:wt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Xn,disabled:_t},"\u4E0B\u8F7D")}):wt.createElement(it.ZP,{type:"primary",size:"middle",onClick:Xn,disabled:_t},wt.createElement(kt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(On,Pn,Se){"use strict";Se.d(Pn,{z:function(){return Oe},Z:function(){return ze}});var Ee=Se(59301),je=Se(1751),it=Se(31087),kt=Se(64018),Xe=Se(37312),pt=Se(10148),Fe=Se(58130),Ft=Se(15342),Ct=Se(1012),nt=Se(79646),gt=Se(59301),xt=({html:We})=>{const Ue=(0,Ee.useRef)(null),ut=(0,Ee.useRef)(null),Ke=`.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,Ee.useEffect)(()=>{const Ht=Ue.current.attachShadow({mode:"open"});ut.current=document.createElement("div"),ut.current.className="markdown-body",ut.current.innerHTML=We,Ht.appendChild(ut.current);const St=document.createElement("style");return St.textContent=Ke,Ht.appendChild(St),()=>{Ht.innerHTML=""}},[]),(0,Ee.useEffect)(()=>{ut.current&&(ut.current.innerHTML=We)},[We]),gt.createElement("div",{ref:Ue})},Te=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,se=(We,Ue,ut)=>Ue in We?Te(We,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ut}):We[Ue]=ut,ge=(We,Ue)=>{for(var ut in Ue||(Ue={}))ne.call(Ue,ut)&&se(We,ut,Ue[ut]);if(te)for(var ut of te(Ue))he.call(Ue,ut)&&se(We,ut,Ue[ut]);return We};const ve="@\u2581\u2581@",Pe="@\u2581@",ke=/<pre[^>]*>/g;function we(We){let Ue=document.createElement("div");return Ue.innerHTML=We,Ue.childNodes.length===0?"":Ue.childNodes[0].nodeValue}const Oe=(We,Ue)=>{We=We||"";const ut=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ht=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,St=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ue?We.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ut,(_t,Qt,qt,sn,Bn,yt,Ge)=>{const tn=Qt||sn||yt,Wn=qt||Bn||Ge||"?";return pt.Z.API_SERVER+"/api/attachments/"+tn+Wn+"&t="+(0,Fe.Jn)(tn,Date.now())+(_t.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(We=We.replace(St,(_t,Qt,qt,sn,Bn,yt,Ge)=>{const tn=Qt||sn||yt,Wn=qt||Bn||Ge||"?";return pt.Z.API_SERVER+"/attachments/download/"+tn+Wn+"&t="+(0,Fe.Jn)(tn,Date.now())+(_t.indexOf(")")>-1?")":"&")}).replace(ut,(_t,Qt,qt,sn,Bn,yt,Ge)=>{const tn=Qt||sn||yt,Wn=qt||Bn||Ge||"?";return pt.Z.API_SERVER+"/api/attachments/"+tn+Wn+"&t="+(0,Fe.Jn)(tn,Date.now())+(_t.indexOf(")")>-1?")":"&")}).replace(Ke,(_t,Qt,qt,sn,Bn)=>{const yt=Qt||sn,Ge=qt||Bn||"";return'"'+pt.Z.API_SERVER+"/api/attachments/"+yt+Ge+yt+Ge+"&t="+(0,Fe.Jn)(yt,Date.now())}).replace(Ht,(_t,Qt,qt,sn,Bn)=>{const yt=Qt||sn,Ge=qt||Bn||"";return"("+pt.Z.API_SERVER+"/files/uploads/"+yt+Ge+yt+Ge+"&t="+(0,Fe.Jn)(yt,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,`
|
|
|
`),We)};var ze=({value:We="",className:Ue,showTextOnly:ut,showLines:Ke,style:Ht={},stylesPrev:St={},highlightKeywords:_t,showProgramFill:Qt,isProgramFill:qt,disabledFill:sn=!1,programFillValue:Bn,onFillChange:yt=Wn=>{},onFillBlur:Ge=()=>{},onFillFocus:tn=()=>{}})=>{let Wn=String(We);const[Qn,Dt]=(0,Ee.useState)(""),[$t,cn]=(0,Ee.useState)("office"),[Zn,hn]=(0,Ee.useState)([]),ii=(0,Ee.useRef)("a"+(0,Ct.Z)()),mt={},Xn=(De,xe,me)=>{const Ne=document.createElement(De===Pe?"input":"textarea");Ne.style.width="100%",Ne.style.height=De===Pe?"40px":"151px",Ne.rows=5,Ne.spellcheck=!1,Ne.name="edu-program-fill",Ne.placeholder="\u8BF7\u8F93\u5165",Ne.dataset.id=xe;const He=Object.keys(mt).length;return mt[He]=Ne,`<span class="edu-program-fill-wrap ${De===Pe?"":"show"}" style="width:${De===Pe?"400px":"100%"}" title=${me||""}><span>${Ne.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ri(De){return De=De.replace(/!\[.*?\]\(.*?\)/g,""),De=De.replace(/\[.*?\]\(.*?\)/g,""),De=De.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),De=De.replace(/<embed.*?>/g,""),De=De.replace(/<img.*?>/g,""),De=De.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),De=De.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),De=De.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),De=De.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),De}const pi=De=>De.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(xe,me){let Ne=me.replace(/(\n|\r)/g,"").split("}"),He=[];return Ne.map(Me=>{Me!=""&&He.push(`.${ii.current} ${Me}`)}),`<style>${He.join("}")}</style>`}),Mn=(0,Ee.useMemo)(()=>{try{const Ne=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,He=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Me=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,et=/\(\/attachments\/download\//g;Wn=Wn.replace(et,"("+pt.Z.API_SERVER+"/attachments/download/").replace(Ne,"("+pt.Z.API_SERVER+"/api/attachments/").replace(He,'"'+pt.Z.API_SERVER+"/api/attachments/").replace(Me,'"'+pt.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(Ne){}if(Qt){let Ne=-1;return Wn=Wn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(He,Me,et){var Ut;return++Ne,Xn(He,Ne,(Ut=Bn==null?void 0:Bn[Ne])==null?void 0:Ut.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${pi(Wn||"")}</pre>`}let De=pi(Wn);De=(0,it.ZP)(De);const xe=(0,it.ez)();Wn.match(/\[TOC\]/)&&(De=De.replace("<p>[TOC]</p>",(0,it.Qv)()),(0,it.Iy)()),De=De.replace(/(__special_katext_id_\d+__)/g,(Ne,He)=>{const{type:Me,expression:et}=xe[He];return(0,Ft.renderToString)(we(et)||"",{displayMode:Me==="block",throwOnError:!1,output:"html"})}),De=De.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,it.AL)();const me=document.createElement("div");if(me.innerHTML=De,ut)return me.innerText;if(_t){const Ne=_t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return at(me,Ne),me.innerHTML}return setTimeout(()=>dt(),500),me.innerHTML},[Wn,_t]);(0,Ee.useEffect)(()=>{jt.current&&jt.current.querySelectorAll(["input","textarea"]).forEach(xe=>{xe.oninput=Gt,xe.onblur=zt,xe.onfocus=Mt})},[Zn]),(0,Ee.useEffect)(()=>{var De,xe,me,Ne,He;if(Bn!=null&&Bn.length)try{const Me=jt.current.querySelectorAll(".edu-program-fill-score"),et=jt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ut,rn]of et.entries())rn.value=((De=Bn==null?void 0:Bn[Ut])==null?void 0:De.value)||"",((xe=Bn==null?void 0:Bn[Ut])==null?void 0:xe.type)==="warning"?rn.className="program-fill-warning":((me=Bn==null?void 0:Bn[Ut])==null?void 0:me.type)==="success"?rn.className="program-fill-success":rn.className="";for(const[Ut,rn]of Me.entries())rn.innerHTML=(Ne=Bn==null?void 0:Bn[Ut])!=null&&Ne.score?`${(He=Bn==null?void 0:Bn[Ut])==null?void 0:He.score}\u5206`:"";hn(Bn)}catch(Me){console.log(Me,"error")}},[Bn]);const Gt=De=>{Zn[De.target.dataset.id]=Zn[De.target.dataset.id]||{},Zn[De.target.dataset.id].value=De.target.value,hn([...Zn]),yt(Zn,De.target.dataset.id)},zt=De=>{Zn[De.target.dataset.id]=Zn[De.target.dataset.id]||{},Zn[De.target.dataset.id].value=De.target.value,hn([...Zn]),Ge(Zn,De.target.dataset.id)},Mt=De=>{Zn[De.target.dataset.id]=Zn[De.target.dataset.id]||{},Zn[De.target.dataset.id].value=De.target.value,hn([...Zn]),tn(Zn,De.target.dataset.id)};function at(De,xe){return De.childNodes.forEach(me=>{var Ne;if(me.childNodes.length>0)at(me,xe);else if(me.nodeName!=="IMG")if(me.innerHTML)me.innerHTML=(Ne=me.innerHTML)==null?void 0:Ne.replace(new RegExp(xe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const He=document.createElement("span");He.innerHTML=me.textContent.replace(new RegExp(xe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),me.replaceWith(He)}})}const jt=(0,Ee.useRef)();it.jb.WebkitLineClamp=Ke,Ke&&(Ht=ge(ge({},Ht),it.jb));function Et(De){let xe=De.target;if(xe.tagName.toUpperCase()==="A"){let me=xe.getAttribute("href");if(me.indexOf("office")>-1)De.preventDefault(),Dt(me),cn("office");else if(me.indexOf("application/pdf")>-1)De.preventDefault(),Dt(me),cn("pdf");else if(me.indexOf("text/html")>-1)De.preventDefault(),Dt(me),cn("html");else if(me.startsWith("#")){De.preventDefault();let Ne=document.getElementById(me.replace("#",""));Ne&&Ne.scrollIntoView(!0)}}}const dt=()=>{var De;const xe=(De=jt.current)==null?void 0:De.querySelectorAll("video");xe==null||xe.forEach(me=>{if(me.oncontextmenu=()=>!1,me.src.indexOf(".m3u8")>-1&&!me.canPlayType("application/vnd.apple.mpegurl")){if(Xe.ZP.isSupported()){var Ne=new Xe.ZP;Ne.loadSource(me.src),Ne.attachMedia(me)}}})};(0,Ee.useEffect)(()=>{if(jt.current&&Mn&&Mn.match(ke)&&window.PR.prettyPrint(),jt.current)return jt.current.addEventListener("click",Et),()=>{var De;(De=jt.current)==null||De.removeEventListener("click",Et),(0,it.AL)(),(0,it.Iy)()}},[Mn,jt.current,Et]),(0,Ee.useEffect)(()=>{var De;const xe=me=>{me.preventDefault(),me.clipboardData.setData("text",window.getSelection().toString())};return(De=jt.current)==null||De.addEventListener("copy",xe),()=>{var me;(me=jt.current)==null||me.removeEventListener("copy",xe)}},[jt.current]);const ot=De=>/<style[\s\S]*?>/i.test(De||"");return Ee.createElement(Ee.Fragment,null,ut&&Ee.createElement("div",{ref:jt},Mn),!ut&&!ot(Mn)&&Ee.createElement("div",{ref:jt,style:ge({},Ht),className:`${Ue||""} ${sn?"disabled-fill":""} markdown-body ${ii.current}`,dangerouslySetInnerHTML:{__html:Mn}}),!ut&&ot(Mn)&&Ee.createElement(xt,{html:Mn}),Ee.createElement(nt.Z,{close:!0,data:Qn,type:Qn!=null&&Qn.length?$t:"",style:ge({},St),onClose:()=>Dt("")}))}},83476:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(59301),je={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},it=Se(43418),kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",pt=(Ct,nt,gt)=>new Promise((wt,xt)=>{var Te=he=>{try{ne(gt.next(he))}catch(se){xt(se)}},te=he=>{try{ne(gt.throw(he))}catch(se){xt(se)}},ne=he=>he.done?wt(he.value):Promise.resolve(he.value).then(Te,te);ne((gt=gt.apply(Ct,nt)).next())}),Ft=({type:Ct,resdata:nt,onok:gt,oktext:wt,okloading:xt})=>{const[Te,te]=(0,Ee.useState)(!1),{can_copy_list:ne,can_copy_num:he,challenge_type:se,course_data_list:ge,no_copy_list:ve,no_copy_num:Pe,no_use_list:ke,no_use_num:we,repeat_shixun_num:Oe,student_count:ze,total_num:We,use_num:Ue}=nt;let ut=he>0||Ct==="exercise";(0,Ee.useEffect)(()=>{(nt==null?void 0:nt.student_count)>0&&te(!0)},[nt]),console.log("---11",xt),(0,Ee.useEffect)(()=>{xt||te(!1)},[xt]);const Ke=()=>{if(Ct==="exercise"&&se===1)return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",Ee.createElement("span",{className:je.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Ee.createElement("span",{className:je.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Ct==="exercise"&&se===2)return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",Ee.createElement("span",{className:je.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Ee.createElement("span",{className:je.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ct==="shixun"&&se===1)return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",Ee.createElement("span",{className:je.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ct==="shixun"&&se===2)return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",Ee.createElement("span",{className:je.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ct==="subject"&&se===1)return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",Ee.createElement("span",{className:je.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Ee.createElement("span",{className:je.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ct==="subject"&&se===2)return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",Ee.createElement("span",{className:je.orangeColor},ze)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",Ee.createElement("span",{className:je.orangeColor},Ue)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ct==="exercisepush")return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",Ee.createElement("span",{className:je.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",Ee.createElement("span",{className:je.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Ct==="shixunpush"&&se===1)return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",Ee.createElement("span",{className:je.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Ee.createElement("span",{className:je.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ct==="shixunpush"&&se===2)return Ee.createElement(Ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",Ee.createElement("span",{className:je.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",Ee.createElement("span",{className:je.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Ee.createElement("span",{className:je.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Ht=()=>{if(Ct==="exercise"||Ct==="subject"||Ct==="exercisepush"||Ct==="shixunpush")return Ee.createElement("div",{style:{marginTop:20}},Pe>0&&Ee.createElement("div",null,Ee.createElement("span",{className:je.flex},Ee.createElement("img",{src:Xe,style:{width:14}}),Ee.createElement("span",{className:je.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),Ee.createElement("div",{className:je.statusbody},Ct==="exercise"&&Ee.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ee.createElement("span",{className:je.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Ct==="subject"||Ct==="exercisepush")&&Ee.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&Ee.createElement("span",{className:je.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Ct==="shixunpush"&&Ee.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&Ee.createElement("span",{className:je.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Ee.createElement("div",null,ve==null?void 0:ve.map((St,_t)=>Ee.createElement("a",{href:`/shixuns/${St.identifier}/challenges`,target:"_blank"},"\u300A",St==null?void 0:St.name,"\u300B",_t+1!==Pe&&"\u3001"))))),he>0&&Ee.createElement("div",{style:{marginTop:20}},Ee.createElement("span",{className:je.flex},Ee.createElement("img",{src:kt,style:{width:14}}),Ee.createElement("span",{className:je.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),Ee.createElement("div",{className:je.statusbody},Ct==="exercise"&&Ee.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Ct==="subject"||Ct==="exercisepush")&&Ee.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Ct==="shixunpush"&&Ee.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Ee.createElement("div",null,ne==null?void 0:ne.map((St,_t)=>Ee.createElement("a",{href:`/shixuns/${St.identifier}/challenges`,target:"_blank"},"\u300A",St==null?void 0:St.name,"\u300B",_t+1!==he&&"\u3001"))))));if(Ct==="shixun")return Ee.createElement("div",{style:{marginTop:20}},he>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return Ee.createElement(it.default,{open:Te,onCancel:()=>{te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ut&&"none"}},zIndex:1003,confirmLoading:xt,okText:ut?wt:"\u6211\u77E5\u9053\u4E86",onOk:()=>pt(void 0,null,function*(){ut?yield gt([...ne,...ke]):te(!1)})},Ee.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Ke(),Ht()))}},36866:function(On,Pn,Se){"use strict";Se.d(Pn,{h:function(){return Pe},Z:function(){return ve}});var Ee=Se(59301),je=Se(57809),it=Se(78241),kt=Se(3113),Xe=Se(89780),pt=Se.n(Xe),Fe=Se(79906),Ft=Object.defineProperty,Ct=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Te=(ke,we,Oe)=>we in ke?Ft(ke,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ke[we]=Oe,te=(ke,we)=>{for(var Oe in we||(we={}))wt.call(we,Oe)&&Te(ke,Oe,we[Oe]);if(gt)for(var Oe of gt(we))xt.call(we,Oe)&&Te(ke,Oe,we[Oe]);return ke},ne=(ke,we)=>Ct(ke,nt(we));const he=je.default.Option,se={labelCol:{span:4},wrapperCol:{span:20}},ge={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 ve=({callback:ke,onCancel:we})=>{const[Oe,ze]=(0,Ee.useState)("python");function We(ut){ze(ge[ut][1])}function Ue(ut){ke(ut)}return Ee.createElement(it.default,ne(te({},se),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ue,style:{width:500}}),Ee.createElement(it.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ee.createElement(je.default,{getPopupContainer:ut=>ut.parentNode,onChange:We},Object.keys(ge).map(ut=>Ee.createElement(he,{key:ut,value:ut},ge[ut][0])))),Ee.createElement(it.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ee.createElement(Pe,{mode:Oe})),Ee.createElement("div",{className:"flex-container flex-end"},Ee.createElement(kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ee.createElement(kt.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))};function Pe({value:ke,onChange:we,mode:Oe,options:ze={}}){const We=(0,Ee.useRef)(),[Ue,ut]=(0,Ee.useState)();return(0,Ee.useEffect)(()=>{if(Ue){let Ke=function(Ht){const St=Ht.getValue();we&&we(St)};return Ue.on("change",Ke),()=>{Ue.off("change",Ke)}}},[Ue,we]),(0,Ee.useEffect)(()=>{Ue&&Ue.setOption("mode",Oe)},[Ue,Oe]),(0,Ee.useEffect)(()=>{Ue&&(ke!==Ue.getValue()||ke==="")&&setTimeout(()=>{Ue.setValue(ke||"")},300)},[Ue,ke]),(0,Ee.useEffect)(()=>{if(We.current&&!Ue){const Ke=pt().fromTextArea(We.current,te({mode:Oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ze));ut(Ke)}},[We.current,Ue]),Ee.createElement("div",{className:"my-codemirror-container"},Ee.createElement("textarea",{ref:We}))}},23469:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Co}});var Ee=Se(59301),je=Se(89780),it=Se.n(je),kt=Se(76374),Xe=Se(79906),pt=Se(6313),Fe=Se(25717),Ft=Se(99498),Ct=Se(25419),nt=Se(67549),gt=Se(25711),wt=({value:vn="",className:an,showTextOnly:Jt,showLines:ft,style:pn={}})=>{const Rn=(0,Ee.useMemo)(()=>"",[vn]);return Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{dangerouslySetInnerHTML:{__html:Rn}}))},xt=Se(59301),Te=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ve=(vn,an,Jt)=>an in vn?Te(vn,an,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):vn[an]=Jt,Pe=(vn,an)=>{for(var Jt in an||(an={}))se.call(an,Jt)&&ve(vn,Jt,an[Jt]);if(he)for(var Jt of he(an))ge.call(an,Jt)&&ve(vn,Jt,an[Jt]);return vn},ke=(vn,an)=>te(vn,ne(an));let we=[{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 Oe({onActionCallback:vn,title:an,icon:Jt,actionName:ft,className:pn="",children:Rn}){function It(){vn(ft)}return xt.createElement("a",{title:an,className:pn,onClick:It},xt.createElement("i",{className:`${Jt}`}),Rn)}var ze=({watch:vn,showNullButton:an,showNullProgramButton:Jt,onActionCallback:ft,fullScreen:pn,insertTemp:Rn,hidetoolBar:It,extraUse:lt})=>{const yn=[...we,{title:`${vn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${vn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xt.createElement("ul",{className:"markdown-toolbar-container"},!It&&yn.map((Yn,Di)=>xt.createElement("li",{key:Di},Yn.actionName?xt.createElement(Oe,ke(Pe({},Yn),{onActionCallback:ft})):xt.createElement("span",{className:"v-line"}))),an?xt.createElement("li",null,xt.createElement(Oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ft},xt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Jt?xt.createElement(xt.Fragment,null,xt.createElement("li",null,xt.createElement(Oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ft},xt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xt.createElement("li",null,xt.createElement(Oe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ft},xt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Rn&&xt.createElement("li",null,xt.createElement(Oe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Rn}`,onActionCallback:ft},xt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),lt&&xt.createElement("li",null,lt),xt.createElement("li",{className:"btn-full-screen"},xt.createElement(Oe,{icon:`${pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ft})))},We=Se(50474),Ue=Se(78241),ut=Se(92832),Ke=Se(3113),Ht=Object.defineProperty,St=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,Bn=(vn,an,Jt)=>an in vn?Ht(vn,an,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):vn[an]=Jt,yt=(vn,an)=>{for(var Jt in an||(an={}))qt.call(an,Jt)&&Bn(vn,Jt,an[Jt]);if(Qt)for(var Jt of Qt(an))sn.call(an,Jt)&&Bn(vn,Jt,an[Jt]);return vn},Ge=(vn,an)=>St(vn,_t(an));const tn={labelCol:{span:4},wrapperCol:{span:20}};var Wn=({callback:vn,onCancel:an})=>{function Jt(ft){vn(ft)}return Ee.createElement(Ue.default,Ge(yt({},tn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Jt,style:{width:500}}),Ee.createElement(Ue.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ee.createElement(ut.default,null)),Ee.createElement(Ue.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ee.createElement(ut.default,null)),Ee.createElement("div",{className:"flex-container flex-end"},Ee.createElement(Ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ee.createElement(Ke.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},Qn=Se(36866),Dt=Se(56701),$t=Se(43418),cn=Se(95237),Zn=Se(65983),hn=Se(59301),ii=({callback:vn,onCancel:an})=>{const Jt=document.createElement("canvas"),ft=Jt.getContext("2d");Jt.width=1e3,Jt.height=800,ft.fillStyle="#ffffff",ft.fillRect(0,0,Jt.width,Jt.height);const pn=Jt.toDataURL("image/png");return hn.createElement($t.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},hn.createElement(cn.Z,{style:{height:"100vh"}},hn.createElement(Zn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pn,visible:!0,title:String(Date.now())},onOk:Rn=>{vn({src:Rn.url})},onClose:an})))},mt=Se(12378);function Xn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Xn,go.CommandHandler),Xn.prototype.canAlignSelection=function(){var vn=this.diagram;return!(vn===null||vn.isReadOnly||vn.isModelReadOnly||vn.selection.count<2)},Xn.prototype.alignLeft=function(){var vn=this.diagram;vn.startTransaction("aligning left");var an=1/0;vn.selection.each(function(Jt){Jt instanceof go.Link||(an=Math.min(Jt.position.x,an))}),vn.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(an,Jt.position.y))}),vn.commitTransaction("aligning left")},Xn.prototype.alignRight=function(){var vn=this.diagram;vn.startTransaction("aligning right");var an=-1/0;vn.selection.each(function(Jt){if(!(Jt instanceof go.Link)){var ft=Jt.actualBounds.x+Jt.actualBounds.width;an=Math.max(ft,an)}}),vn.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(an-Jt.actualBounds.width,Jt.position.y))}),vn.commitTransaction("aligning right")},Xn.prototype.alignTop=function(){var vn=this.diagram;vn.startTransaction("alignTop");var an=1/0;vn.selection.each(function(Jt){Jt instanceof go.Link||(an=Math.min(Jt.position.y,an))}),vn.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(Jt.position.x,an))}),vn.commitTransaction("alignTop")},Xn.prototype.alignBottom=function(){var vn=this.diagram;vn.startTransaction("aligning bottom");var an=-1/0;vn.selection.each(function(Jt){if(!(Jt instanceof go.Link)){var ft=Jt.actualBounds.y+Jt.actualBounds.height;an=Math.max(ft,an)}}),vn.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(Jt.actualBounds.x,an-Jt.actualBounds.height))}),vn.commitTransaction("aligning bottom")},Xn.prototype.alignCenterX=function(){var vn=this.diagram,an=vn.selection.first();if(an){vn.startTransaction("aligning Center X");var Jt=an.actualBounds.x+an.actualBounds.width/2;vn.selection.each(function(ft){ft instanceof go.Link||ft.move(new go.Point(Jt-ft.actualBounds.width/2,ft.actualBounds.y))}),vn.commitTransaction("aligning Center X")}},Xn.prototype.alignCenterY=function(){var vn=this.diagram,an=vn.selection.first();if(an){vn.startTransaction("aligning Center Y");var Jt=an.actualBounds.y+an.actualBounds.height/2;vn.selection.each(function(ft){ft instanceof go.Link||ft.move(new go.Point(ft.actualBounds.x,Jt-ft.actualBounds.height/2))}),vn.commitTransaction("aligning Center Y")}},Xn.prototype.alignColumn=function(vn){var an=this.diagram;an.startTransaction("align Column"),vn===void 0&&(vn=0),vn=parseFloat(vn);var Jt=new Array;an.selection.each(function(lt){lt instanceof go.Link||Jt.push(lt)});for(var ft=0;ft<Jt.length-1;ft++){var pn=Jt[ft],Rn=pn.actualBounds.y+pn.actualBounds.height+vn,It=Jt[ft+1];It.move(new go.Point(pn.actualBounds.x,Rn))}an.commitTransaction("align Column")},Xn.prototype.alignRow=function(vn){vn===void 0&&(vn=0),vn=parseFloat(vn);var an=this.diagram;an.startTransaction("align Row");var Jt=new Array;an.selection.each(function(lt){lt instanceof go.Link||Jt.push(lt)});for(var ft=0;ft<Jt.length-1;ft++){var pn=Jt[ft],Rn=pn.actualBounds.x+pn.actualBounds.width+vn,It=Jt[ft+1];It.move(new go.Point(Rn,pn.actualBounds.y))}an.commitTransaction("align Row")},Xn.prototype.canRotate=function(vn){var an=this.diagram;return!(an===null||an.isReadOnly||an.isModelReadOnly||an.selection.count<1)},Xn.prototype.rotate=function(vn){vn===void 0&&(vn=90);var an=this.diagram;an.startTransaction("rotate "+vn.toString());var an=this.diagram;an.selection.each(function(Jt){Jt instanceof go.Link||Jt instanceof go.Group||(Jt.angle+=vn)}),an.commitTransaction("rotate "+vn.toString())},Xn.prototype.pullToFront=function(){var vn=this.diagram;vn.startTransaction("pullToFront");var an=new go.Map;vn.selection.each(function(Jt){an.set(Jt.layer,0)}),an.iteratorKeys.each(function(Jt){var ft=0;Jt.parts.each(function(pn){if(!pn.isSelected){var Rn=pn.zOrder;isNaN(Rn)?pn.zOrder=0:ft=Math.max(ft,Rn)}}),an.set(Jt,ft)}),vn.selection.each(function(Jt){Xn._assignZOrder(Jt,an.get(Jt.layer)+1)}),vn.commitTransaction("pullToFront")},Xn.prototype.pushToBack=function(){var vn=this.diagram;vn.startTransaction("pushToBack");var an=new go.Map;vn.selection.each(function(Jt){an.set(Jt.layer,0)}),an.iteratorKeys.each(function(Jt){var ft=0;Jt.parts.each(function(pn){if(!pn.isSelected){var Rn=pn.zOrder;isNaN(Rn)?pn.zOrder=0:ft=Math.min(ft,Rn)}}),an.set(Jt,ft)}),vn.selection.each(function(Jt){Xn._assignZOrder(Jt,an.get(Jt.layer)-1-Xn._findGroupDepth(Jt))}),vn.commitTransaction("pushToBack")},Xn._assignZOrder=function(vn,an,Jt){Jt===void 0&&(Jt=vn),vn.layer===Jt.layer&&(vn.zOrder=an),vn instanceof go.Group&&vn.memberParts.each(function(ft){Xn._assignZOrder(ft,an+1,Jt)})},Xn._findGroupDepth=function(vn){if(vn instanceof go.Group){var an=0;return vn.memberParts.each(function(Jt){an=Math.max(an,Xn._findGroupDepth(Jt))}),an+1}else return 0},Xn.prototype.doKeyDown=function(){var vn=this.diagram;if(vn!==null){var an=vn.lastInput;if(an.key==="Up"||an.key==="Down"||an.key==="Left"||an.key==="Right"){var Jt=this.arrowKeyBehavior;if(Jt==="none")return;if(Jt==="select"){this._arrowKeySelect();return}else if(Jt==="move"){this._arrowKeyMove();return}else if(Jt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Xn.prototype._getAllParts=function(){var vn=new Array;return this.diagram.nodes.each(function(an){vn.push(an)}),this.diagram.parts.each(function(an){vn.push(an)}),vn},Xn.prototype._arrowKeyMove=function(){var vn=this.diagram,an=vn.lastInput,Jt=0,ft=0;if(an.control||an.meta)Jt=1,ft=1;else if(vn.grid!==null){var pn=vn.grid.gridCellSize;ft=pn.width,Jt=pn.height}vn.startTransaction("arrowKeyMove"),vn.selection.each(function(Rn){an.key==="Up"?Rn.move(new go.Point(Rn.actualBounds.x,Rn.actualBounds.y-Jt)):an.key==="Down"?Rn.move(new go.Point(Rn.actualBounds.x,Rn.actualBounds.y+Jt)):an.key==="Left"?Rn.move(new go.Point(Rn.actualBounds.x-ft,Rn.actualBounds.y)):an.key==="Right"&&Rn.move(new go.Point(Rn.actualBounds.x+ft,Rn.actualBounds.y))}),vn.commitTransaction("arrowKeyMove")},Xn.prototype._arrowKeySelect=function(){var vn=this.diagram,an=vn.lastInput,Jt=null;an.key==="Up"?Jt=this._findNearestPartTowards(270):an.key==="Down"?Jt=this._findNearestPartTowards(90):an.key==="Left"?Jt=this._findNearestPartTowards(180):an.key==="Right"&&(Jt=this._findNearestPartTowards(0)),Jt!==null&&(an.shift?Jt.isSelected=!0:an.control||an.meta?Jt.isSelected=!Jt.isSelected:vn.select(Jt))},Xn.prototype._findNearestPartTowards=function(vn){var an=this.diagram.selection.first();if(an===null)return null;for(var Jt=an.actualBounds.center,ft=this._getAllParts(),pn=1/0,Rn=an,It=0;It<ft.length;It++){var lt=ft[It];if(lt!==an&<.canSelect()){var yn=lt.actualBounds.center,Yn=Jt.directionPoint(yn),Di=this._angleCloseness(Yn,vn);if(Di<=45){var Cn=Jt.distanceSquaredPoint(yn);Cn*=1+Math.sin(Di*Math.PI/180),Cn<pn&&(pn=Cn,Rn=lt)}}}return Rn},Xn.prototype._angleCloseness=function(vn,an){return Math.min(Math.abs(an-vn),Math.min(Math.abs(an+360-vn),Math.abs(an-360-vn)))},Xn.prototype._arrowKeyTree=function(){var vn=this.diagram,an=vn.selection.first();if(an instanceof go.Node){var Jt=vn.lastInput;if(Jt.key==="Right"){if(!an.isTreeLeaf)if(!an.isTreeExpanded)vn.commandHandler.canExpandTree(an)&&vn.commandHandler.expandTree(an);else{var ft=this._sortTreeChildrenByY(an).first();ft!==null&&vn.select(ft)}}else if(Jt.key==="Left")if(!an.isTreeLeaf&&an.isTreeExpanded)vn.commandHandler.canCollapseTree(an)&&vn.commandHandler.collapseTree(an);else{var pn=an.findTreeParentNode();pn!==null&&vn.select(pn)}else if(Jt.key==="Up"){var pn=an.findTreeParentNode();if(pn!==null){var Rn=this._sortTreeChildrenByY(pn),It=Rn.indexOf(an);if(It>0){for(var lt=Rn.elt(It-1);lt!==null&<.isTreeExpanded&&!lt.isTreeLeaf;){var yn=this._sortTreeChildrenByY(lt);lt=yn.last()}lt!==null&&vn.select(lt)}else vn.select(pn)}}else if(Jt.key==="Down")if(an.isTreeExpanded&&!an.isTreeLeaf){var ft=this._sortTreeChildrenByY(an).first();ft!==null&&vn.select(ft)}else for(;an!==null;){var pn=an.findTreeParentNode();if(pn===null)break;var Rn=this._sortTreeChildrenByY(pn),It=Rn.indexOf(an);if(It<Rn.length-1){vn.select(Rn.elt(It+1));break}else an=pn}var Yn=vn.selection.first();Yn!==null&&vn.scrollToRect(Yn.actualBounds)}},Xn.prototype._sortTreeChildrenByY=function(vn){var an=new go.List().addAll(vn.findTreeChildrenNodes());return an.sort(function(Jt,ft){var pn=Jt.location,Rn=ft.location;return pn.y<Rn.y?-1:pn.y>Rn.y?1:pn.x<Rn.x?-1:pn.x>Rn.x?1:0}),an},Xn.prototype.copyToClipboard=function(vn){go.CommandHandler.prototype.copyToClipboard.call(this,vn),this._lastPasteOffset.set(this.pasteOffset)},Xn.prototype.pasteFromClipboard=function(){var vn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(vn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),vn},Object.defineProperty(Xn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(vn){if(vn!=="move"&&vn!=="select"&&vn!=="scroll"&&vn!=="tree"&&vn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+vn);this._arrowKeyBehavior=vn}}),Object.defineProperty(Xn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(vn){if(!(vn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+vn);this._pasteOffset.set(vn)}});var ri=Xn,pi=Se(37404),Mn=Se(43604),Gt=Se(70635),zt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Mt=Se(59301),at=(vn,an,Jt)=>new Promise((ft,pn)=>{var Rn=yn=>{try{lt(Jt.next(yn))}catch(Yn){pn(Yn)}},It=yn=>{try{lt(Jt.throw(yn))}catch(Yn){pn(Yn)}},lt=yn=>yn.done?ft(yn.value):Promise.resolve(yn.value).then(Rn,It);lt((Jt=Jt.apply(vn,an)).next())});function jt({onCancel:vn,callback:an}){let Jt=(0,Ee.useRef)(),ft=(0,Ee.useRef)(),pn=(0,Ee.useRef)(),Rn=(0,Ee.useRef)(!1);const It=(0,Ee.useRef)(!1),[lt,yn]=(0,Ee.useState)(0);function Yn(){const Cn=mt.bx.make,bt={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"};Jt.current=new mt.S0(ft.current,{padding:20,grid:Cn(mt.s_,"Grid",Cn(mt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Cn(mt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Bt=>{var Si=Bt.diagram.commandHandler.addTopLevelParts(Bt.diagram.selection,!0);Si||Bt.diagram.currentTool.doCancel()},commandHandler:Cn(ri),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Bt=>{var Si=Bt.subject;Si.location=Si.location.copy().snapToGridPoint(Bt.diagram.grid.gridOrigin,Bt.diagram.grid.gridCellSize),setTimeout(()=>{Bt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Bt=>{var Si=Bt.subject;setTimeout(()=>{Bt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Bt=>{var Si=Bt.parameter.part;Si.invalidateConnectedLinks();var Hi=Bt.subject;Bt.diagram.toolManager.linkingTool.isForwards?Hi.toNode.invalidateConnectedLinks():Hi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Jt.current.nodeTemplate=Cn(mt.NB,"Auto",{locationSpot:mt.z6.Center,locationObjectName:"SHAPE",desiredSize:new mt.$u(120,60),minSize:new mt.$u(40,40),resizable:!0,resizeCellSize:new mt.$u(10,10),rotatable:!0},new mt.KX("location","loc",mt.E9.parse).makeTwoWay(mt.E9.stringify),new mt.KX("desiredSize","size",mt.$u.parse).makeTwoWay(mt.$u.stringify),Cn(mt.bn,{name:"SHAPE",fill:bt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:mt.z6.AllSides,toSpot:mt.z6.AllSides},new mt.KX("figure"),new mt.KX("fill"),new mt.KX("stroke","borderColor"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),Cn(mt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Cn(mt.al,{margin:1,textAlign:"center",overflow:mt.al.OverflowEllipsis,editable:!0},new mt.KX("text").makeTwoWay(),new mt.KX("stroke","color"))),Jt.current.nodeTemplate.toolTip=Cn("ToolTip",Cn(mt.s_,"Vertical",{maxSize:new mt.$u(200,NaN)},Cn(mt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new mt.KX("text")),Cn(mt.al,{font:"10pt sans-serif",textAlign:"center"},new mt.KX("text","details"))));function In(Bt,Si){var Hi=(ki,Pr)=>{ki.handled=!0,ki.diagram.model.commit(yr=>{var kr=Pr.part.adornedPart,rr=new mt.E9().setRectSpot(kr.actualBounds,Bt);rr.subtract(kr.location),rr.scale(2,2),rr.x+=Math.sign(rr.x)*130,rr.y+=Math.sign(rr.y)*130,rr.add(kr.location),rr.snapToGridPoint(ki.diagram.grid.gridOrigin,ki.diagram.grid.gridCellSize);var Ri=yr.copyNodeData(kr.data);yr.setGroupKeyForNodeData(Ri,yr.getGroupKeyForNodeData(kr.data)),yr.addNodeData(Ri);var Gr={from:kr.key,to:yr.getKeyForNodeData(Ri)};yr.addLinkData(Gr);var xn=ki.diagram.findNodeForData(Ri);xn.location=rr,ki.diagram.select(xn),setTimeout(()=>{ki.diagram.commandHandler.editTextBlock()},20)})};return Cn(mt.bn,{figure:Si,alignment:Bt,alignmentFocus:Bt.opposite(),width:Bt.equals(mt.z6.Top)||Bt.equals(mt.z6.Bottom)?25:18,height:Bt.equals(mt.z6.Top)||Bt.equals(mt.z6.Bottom)?18:25,fill:"orange",stroke:bt.white,strokeWidth:4,mouseEnter:(ki,Pr)=>Pr.fill="dodgerblue",mouseLeave:(ki,Pr)=>Pr.fill="orange",isActionable:!0,click:Hi,contextClick:Hi})}function gi(Bt){return Cn(mt.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Si,Hi)=>Hi.fill="dodgerblue",mouseLeave:(Si,Hi)=>Hi.fill="orange",click:(Si,Hi)=>{Si.diagram.commandHandler.showContextMenu(Hi.part.adornedPart)}},Bt||{})}Jt.current.nodeTemplate.selectionAdornmentTemplate=Cn(mt.uz,"Spot",Cn(mt.Vm,{padding:10}),In(mt.z6.Top,"TriangleUp"),In(mt.z6.Left,"TriangleLeft"),In(mt.z6.Right,"TriangleRight"),In(mt.z6.Bottom,"TriangleDown"),gi({alignment:new mt.z6(.75,0)}));function Oi(Bt,Si){return(Hi,ki)=>{Hi.handled=!0,Hi.diagram.model.commit(Pr=>{Pr.set(ki.part.adornedPart.data,Bt,Si)})}}function Kt(Bt,Si){return Si||(Si="color"),Cn(mt.bn,{width:16,height:16,stroke:"lightgray",fill:Bt,margin:1,background:"transparent",mouseEnter:(Hi,ki)=>ki.stroke="dodgerblue",mouseLeave:(Hi,ki)=>ki.stroke="lightgray",click:Oi(Si,Bt),contextClick:Oi(Si,Bt)})}function Sn(){return[Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",Kt(bt.white,"fill"),Kt(bt.beige,"fill"),Kt(bt.extralightblue,"fill"),Kt(bt.extralightred,"fill"))),Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",Kt(bt.lightgray,"fill"),Kt(bt.lightgreen,"fill"),Kt(bt.lightblue,"fill"),Kt(bt.lightred,"fill")))]}function Wt(){return[Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",Kt(bt.black),Kt(bt.green),Kt(bt.blue),Kt(bt.red))),Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",Kt(bt.white),Kt(bt.magenta),Kt(bt.purple),Kt(bt.orange)))]}function on(Bt,Si){return Si||(Si="thickness"),Cn(mt.bn,"LineH",{width:16,height:16,strokeWidth:Bt,margin:1,background:"transparent",mouseEnter:(Hi,ki)=>ki.background="dodgerblue",mouseLeave:(Hi,ki)=>ki.background="transparent",click:Oi(Si,Bt),contextClick:Oi(Si,Bt)})}function gn(Bt,Si){return Si||(Si="dash"),Cn(mt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Bt,margin:1,background:"transparent",mouseEnter:(Hi,ki)=>ki.background="dodgerblue",mouseLeave:(Hi,ki)=>ki.background="transparent",click:Oi(Si,Bt),contextClick:Oi(Si,Bt)})}function un(){return[Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",on(1),on(2),on(3),on(4))),Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",gn(null),gn([2,4]),gn([4,4])))]}function En(Bt,Si){return Si||(Si="figure"),Cn(mt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Bt,margin:1,background:"transparent",mouseEnter:(Hi,ki)=>ki.fill="dodgerblue",mouseLeave:(Hi,ki)=>ki.fill="lightgray",click:Oi(Si,Bt),contextClick:Oi(Si,Bt)})}Jt.current.nodeTemplate.contextMenu=Cn("ContextMenu",Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",En("Rectangle"),En("RoundedRectangle"),En("Ellipse"),En("Diamond"))),Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",En("Parallelogram2"),En("ManualOperation"),En("Procedure"),En("Cylinder1"))),Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",En("Terminator"),En("CreateRequest"),En("Document"),En("TriangleDown"))),Sn(),Wt(),un()),Jt.current.groupTemplate=Cn(mt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:mt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Bt,Si)=>{var Hi=Si.addMembers(Si.diagram.selection,!0);Hi||Si.diagram.currentTool.doCancel()},avoidable:!1},new mt.KX("location","loc",mt.E9.parse).makeTwoWay(mt.E9.stringify),Cn(mt.s_,"Auto",{name:"BODY"},Cn(mt.bn,{parameter1:10,fill:bt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:mt.z6.AllSides,toSpot:mt.z6.AllSides},new mt.KX("fill"),new mt.KX("stroke","color"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),Cn(mt.Vm,{background:"transparent",margin:20})),Cn(mt.al,{alignment:mt.z6.Top,alignmentFocus:mt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new mt.KX("text"),new mt.KX("stroke","color"))),Jt.current.groupTemplate.selectionAdornmentTemplate=Cn(mt.uz,"Spot",Cn(mt.s_,"Auto",Cn(mt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Cn(mt.Vm,{margin:1.5})),gi({alignment:mt.z6.TopRight,alignmentFocus:mt.z6.BottomRight})),Jt.current.groupTemplate.contextMenu=Cn("ContextMenu",Sn(),Wt(),un()),Jt.current.linkTemplate=Cn(mt.rU,{layerName:"Foreground",routing:mt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new mt.KX("fromSpot","fromSpot",mt.z6.parse),new mt.KX("toSpot","toSpot",mt.z6.parse),new mt.KX("fromShortLength","dir",Bt=>Bt>=1?10:0),new mt.KX("toShortLength","dir",Bt=>Bt>=1?10:0),new mt.KX("points").makeTwoWay(),Cn(mt.bn,{strokeWidth:2},new mt.KX("stroke","color"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),Cn(mt.bn,{segmentIndex:0,segmentOffset:new mt.E9(15,0),segmentOrientation:mt.rU.OrientAlong,alignmentFocus:mt.z6.Right,figure:"circle",width:10,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",Bt=>Bt===1)),Cn(mt.bn,{segmentIndex:-1,segmentOffset:new mt.E9(-10,6),segmentOrientation:mt.rU.OrientPlus90,alignmentFocus:mt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",Bt=>Bt>=1),new mt.KX("width","thickness",Bt=>7+3*Bt),new mt.KX("height","thickness",Bt=>7+3*Bt),new mt.KX("segmentOffset","thickness",Bt=>new mt.E9(-15,4+1.5*Bt))),Cn(mt.bn,{segmentIndex:0,segmentOffset:new mt.E9(15,-6),segmentOrientation:mt.rU.OrientMinus90,alignmentFocus:mt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",Bt=>Bt===2),new mt.KX("width","thickness",Bt=>7+3*Bt),new mt.KX("height","thickness",Bt=>7+3*Bt),new mt.KX("segmentOffset","thickness",Bt=>new mt.E9(-15,4+1.5*Bt))),Cn(mt.al,{alignmentFocus:new mt.z6(0,1,-4,0),editable:!0},new mt.KX("text").makeTwoWay(),new mt.KX("stroke","color"))),Jt.current.linkTemplate.selectionAdornmentTemplate=Cn(mt.uz,Cn(mt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Nn(2)},new mt.KX("pathPattern","thickness",Nn)),gi({alignmentFocus:new mt.z6(0,0,-6,-4)}));function Nn(Bt){return Cn(mt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Bt+4).toString()+" H3"})}function Vn(Bt){var Si="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Bt===0?Si="M0 0 M16 16 M0 8 L16 8":Bt===2&&(Si="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Cn(mt.bn,{geometryString:Si,margin:2,background:"transparent",mouseEnter:(Hi,ki)=>ki.background="dodgerblue",mouseLeave:(Hi,ki)=>ki.background="transparent",click:Oi("dir",Bt),contextClick:Oi("dir",Bt)})}function $n(Bt){var Si=(Hi,ki)=>{Hi.handled=!0,Hi.diagram.model.commit(Pr=>{var yr=ki.part.adornedPart;Pr.set(yr.data,Bt?"toSpot":"fromSpot",mt.z6.stringify(mt.z6.AllSides)),(Bt?yr.toNode:yr.fromNode).invalidateConnectedLinks()})};return Cn(mt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Hi,ki)=>ki.background="dodgerblue",mouseLeave:(Hi,ki)=>ki.background="transparent",click:Si,contextClick:Si})}function Tn(Bt,Si){var Hi=0,ki=mt.z6.RightSide;Bt.equals(mt.z6.Top)?(Hi=270,ki=mt.z6.TopSide):Bt.equals(mt.z6.Left)?(Hi=180,ki=mt.z6.LeftSide):Bt.equals(mt.z6.Bottom)&&(Hi=90,ki=mt.z6.BottomSide),Si||(Hi-=180);var Pr=(yr,kr)=>{yr.handled=!0,yr.diagram.model.commit(rr=>{var Ri=kr.part.adornedPart;rr.set(Ri.data,Si?"toSpot":"fromSpot",mt.z6.stringify(ki)),(Si?Ri.toNode:Ri.fromNode).invalidateConnectedLinks()})};return Cn(mt.bn,{alignment:Bt,alignmentFocus:Bt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Hi,background:"transparent",mouseEnter:(yr,kr)=>kr.background="dodgerblue",mouseLeave:(yr,kr)=>kr.background="transparent",click:Pr,contextClick:Pr})}Jt.current.linkTemplate.contextMenu=Cn("ContextMenu",Wt(),un(),Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",Vn(0),Vn(1),Vn(2))),Cn("ContextMenuButton",Cn(mt.s_,"Horizontal",Cn(mt.s_,"Spot",$n(!1),Tn(mt.z6.Top,!1),Tn(mt.z6.Left,!1),Tn(mt.z6.Right,!1),Tn(mt.z6.Bottom,!1)),Cn(mt.s_,"Spot",{margin:new mt.Zt(0,0,0,2)},$n(!0),Tn(mt.z6.Top,!0),Tn(mt.z6.Left,!0),Tn(mt.z6.Right,!0),Tn(mt.z6.Bottom,!0)))));const ai=`{ "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 Qi=["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 Lr(Bt){return console.log("shapeName:",Bt),Qi.indexOf(Bt)>=0}var qi=new mt.YI(pn.current,{maxSelectionCount:1,linkTemplate:Cn(mt.rU,{locationSpot:mt.z6.Center,selectionAdornmentTemplate:Cn(mt.uz,"Link",{locationSpot:mt.z6.Center},Cn(mt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Cn(mt.bn,{toArrow:"Standard",stroke:null}))},{routing:mt.rU.AvoidsNodes,curve:mt.rU.JumpOver,corner:5,toShortLength:4},new mt.KX("points"),Cn(mt.bn,{isPanelMain:!0,strokeWidth:2}),Cn(mt.bn,{toArrow:"Standard",stroke:null})),model:new mt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...mt.bn.getFigureGenerators().toArray().map(Bt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Bt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Jt.current.addDiagramListener("TextEdited",function(Bt){var Si;const Hi=Bt.subject.part;var ki=(Si=document.activeElement)==null?void 0:Si.value;typeof ki=="string"&&ki.trim()===""&&Jt.current.model.commit(function(Pr){Pr.set(Hi.data,"text","\u672A\u547D\u540D"),Jt.current.commandHandler.stopCommand()},"increment")}),qi.nodeTemplate=Cn(mt.NB,"Auto",{locationSpot:mt.z6.Center},new mt.KX("location","location",mt.E9.parse).makeTwoWay(mt.E9.stringify),Cn(mt.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new mt.KX("stroke").makeTwoWay(),new mt.KX("fill").makeTwoWay(),new mt.KX("figure")),Cn(mt.al,{margin:new mt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new mt.$u(16,16),maxSize:new mt.$u(10,NaN),textAlign:"center",editable:!0},new mt.KX("key").makeTwoWay())),setTimeout(()=>{Jt.current.grid=Cn(mt.s_,"Grid",Cn(mt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Cn(mt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Jt.current.grid.visible=!0,Jt.current.grid.gridCellStroke="darkgray",Jt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Jt.current,Jt.current}const Di=()=>at(this,null,function*(){var Cn=Jt.current.makeImage();const bt=yield(0,Gt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Cn.src}});an({src:bt.url})});return(0,Ee.useEffect)(()=>(setTimeout(()=>{Yn()},500),yn(lt+1),()=>{Jt.current=null}),[]),Mt.createElement("div",{ref:It,className:Rn.current?`${zt.maxH60} body-overflow-initial`:"body-overflow-initial"},Mt.createElement($t.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!lt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Mt.createElement(cn.Z,null,Mt.createElement(Mn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Mt.createElement(Mn.Z,{onClick:()=>{var Cn,bt,In=Jt.current.selection.first();if(Rn.current=!Rn.current,document.activeElement&&In){let gi=(bt=(Cn=document.activeElement)==null?void 0:Cn.value)==null?void 0:bt.trim();typeof gi=="string"&&Jt.current.model.commit(function(Oi){Oi.set(In.data,"text",gi||"\u672A\u547D\u540D"),Jt.current.commandHandler.stopCommand()},"increment")}yn(lt+1)}},Mt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:vn},Mt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:zt.flowChartWrp},Mt.createElement("div",{style:{display:"flex",height:"100%"}},Mt.createElement("div",{style:{width:"300px",height:"100%"}},Mt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Mt.createElement("div",{style:{height:"calc(100% - 50px)"},className:zt.myPaletteDiv,ref:pn})),Mt.createElement("div",{style:{flex:1,position:"relative"}},Mt.createElement("div",{ref:ft,style:{height:"80vh"}}))),Mt.createElement("div",{className:"tr"},Mt.createElement(Ke.ZP,{size:"large",onClick:Di,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Et=jt,dt=Se(5112),ot=Se(88897);const De=dt.ZP.Group,xe={margin:"0 8px"};var me=({callback:vn,onCancel:an})=>{function Jt(ft){vn(ft)}return Ee.createElement(Ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Jt},Ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ee.createElement("span",{style:xe},"\u5355\u5143\u683C\u6570\uFF1A"),Ee.createElement("span",{style:xe},"\u884C\u6570"),Ee.createElement(Ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ee.createElement(ot.Z,null)),Ee.createElement("span",{style:xe},"\u5217\u6570"),Ee.createElement(Ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ee.createElement(ot.Z,null))),Ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ee.createElement("span",{style:xe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ee.createElement(Ue.default.Item,{name:"align"},Ee.createElement(De,null,Ee.createElement(dt.ZP,{value:"default"},Ee.createElement("i",{className:"fa fa-align-justify"})),Ee.createElement(dt.ZP,{value:"left"},Ee.createElement("i",{className:"fa fa-align-left"})),Ee.createElement(dt.ZP,{value:"center"},Ee.createElement("i",{className:"fa fa-align-center"})),Ee.createElement(dt.ZP,{value:"right"},Ee.createElement("i",{className:"fa fa-align-right"}))))),Ee.createElement("div",{className:"flex-container flex-end"},Ee.createElement(Ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ee.createElement(Ke.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},Ne=Se(78673),He=Se(98598),Me=Se.n(He),Ut=(0,Ee.forwardRef)(({use3d:vn,width:an,height:Jt,callback:ft,showSaveButton:pn},Rn)=>{const It=(0,Ee.useRef)(),lt=(0,Ee.useRef)(),[yn,Yn]=(0,Ee.useState)(!1),Di=(0,Ee.useRef)({id:It,appName:"graphing",width:an||1e3,height:Jt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ee.useEffect)(()=>{lt.current=new(Me())(Di.current,!0),window.onload=function(){lt.current.inject("applet_container")}},[]);const Cn=()=>{var bt=window.ggbApplet.getPNGBase64(1,!0,72);return ft&&ft(bt),bt};return(0,Ee.useEffect)(()=>{Di.current.appName=yn?"3D":"graphing",lt.current.inject("applet_container")},[yn]),(0,Ee.useEffect)(()=>{Yn(vn)},[vn]),(0,Ee.useImperativeHandle)(Rn,()=>({getImgData:Cn})),Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:It}),Ee.createElement(cn.Z,{align:"middle"},Ee.createElement(Mn.Z,{flex:1},Ee.createElement(Ne.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:yn,onChange:bt=>Yn(bt)})),Ee.createElement(Mn.Z,null,Ee.createElement(Ke.ZP,{size:"large",onClick:Cn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),rn=Se(75890),ht=Se(8591);const Pt="link",ln="upload-image",Fn="add-flowchart",oi="draw-image",ci="add-flowchart",di="code-block",mi="add-table",Ui="------------",vr={default:Ui,left:`:${Ui}`,center:`:${Ui}:`,right:`${Ui}:`};var lr=Se(91300);function gr(){}let wr=0;const Zr=1e4,Ki="\u2581",Xr="@\u2581\u2581@",Vi="@\u2581@",be=`
|
|
|
**\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`,Pi=["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 Gi(vn){return/^\d+$/.test(vn)?`${vn}px`:vn}const $i=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",fo={[$i+"-B"]:"bold",[$i+"-I"]:"italic"},_r={[Pt]:"\u6DFB\u52A0\u94FE\u63A5",[di]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ln]:"\u6DFB\u52A0\u56FE\u7247",[oi]:"\u6DFB\u52A0\u753B\u56FE",[Fn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[mi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Co=({defaultValue:vn="",onChange:an,width:Jt="100%",height:ft=400,miniToolbar:pn=!1,isFocus:Rn=!1,watch:It,insertTemp:lt,mode:yn="markdown",id:Yn="markdown-editor-id",showResizeBar:Di=!1,noStorage:Cn=!1,showNullButton:bt=!1,showNullProgramButton:In=!1,hidetoolBar:gi=!1,fullScreen:Oi=!1,onBlur:Kt,onCMBeforeChange:Sn,onFullScreen:Wt,className:on="",disablePaste:gn=!1,disabled:un=!1,disabledFill:En=!1,placeholder:Nn="",values:Vn="",extraUse:$n})=>{const[Tn,ai]=(0,Ee.useState)(null),[Qi,Lr]=(0,Ee.useState)(vn),[qi,Bt]=(0,Ee.useState)(It),[Si,Hi]=(0,Ee.useState)(Oi),[ki,Pr]=(0,Ee.useState)(""),[yr,kr]=(0,Ee.useState)(0),[rr,Ri]=(0,Ee.useState)(ft),[Gr,xn]=(0,Ee.useState)(!1),[Fo,An]=(0,Ee.useState)(0),[Ir,_o]=(0,Ee.useState)(0),oo=(0,Ee.useRef)(),Fa=(0,Ee.useRef)(),Qo=(0,Ee.useRef)(),dr=(0,Ee.useRef)();(0,Ee.useEffect)(()=>{const sr=window.scrollY||window.pageYOffset;Lr(Vn),Tn==null||Tn.setValue(Vn),window.scrollTo(0,sr)},[Vn]),(0,Ee.useEffect)(()=>{Wt==null||Wt(Si)},[Si]),(0,Ee.useEffect)(()=>{if(oo.current){let sr=function(Nr,ei){var Ro;if(gn){ei.preventDefault();return}const ia=ei.clipboardData;if(ia){const Za=ia.types.toString(),ha=ia.items;if(Za==="Files"||ia.types.indexOf("Files")>-1){if(ei.preventDefault(),yn=="stex")return;try{let Oa=ha[1];((Ro=ha[0])==null?void 0:Ro.kind)==="file"&&(Oa=ha[0]);const Ia=Oa.getAsFile(),ys=Ia.name.split(".").pop();(0,Dt.I)(Ia,Ds=>{var _s,Ys,dn;Ds.id?((_s=Ia==null?void 0:Ia.type)==null?void 0:_s.indexOf("image"))>-1?tr.replaceSelection(``):((Ys=Ia==null?void 0:Ia.type)==null?void 0:Ys.indexOf("video"))>-1?tr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ds.id}"></video>`):((dn=Ia==null?void 0:Ia.type)==null?void 0:dn.indexOf("pdf"))>-1?tr.replaceSelection(`<a href="/api/attachments/${Ds.id}?type=${Ia.type}&disposition=inline" target="_blank">${Ia.name}</a>`):Pi.includes(ys)?tr.replaceSelection(`<a href="/api/attachments/${Ds.id}?type=office&disposition=inline" target="_blank">${Ia.name}</a>`):tr.replaceSelection(`[${Ia.name}](/api/attachments/${Ds.id}?type=${Ds.content_type})`):(Ds==null?void 0:Ds.status)===401&&(document.location.href="/user/login")})}catch(Oa){ht.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const tr=it().fromTextArea(oo.current,{mode:yn,lineNumbers:!pn,lineWrapping:!0,value:vn,autoCloseTags:!0,autoCloseBrackets:!0});return tr.on("keyup",function(Nr,ei){ei.keyCode===8&&(Nr.getValue()==""?tr.setOption("placeholder",Nn):tr.setOption("placeholder",null))}),tr.on("keydown",function(Nr,ei){if(ei.keyCode===8){var Ro=no(Nr);Ro&&ei.preventDefault()}}),Rn&&tr.focus(),tr.on("paste",sr),un&&tr.on("beforeChange",function(Nr,ei){(ei.origin==="paste"||ei.origin==="+input")&&ei.cancel()}),ai(tr),()=>{tr.off("paste",sr)}}},[]);const nr=(0,Ee.useCallback)(()=>{if(Fa.current)try{}catch(sr){console.log(sr,"---- to set md editor body height")}},[rr,Fa,Si]);(0,Ee.useEffect)(()=>{function sr(){let tr=new kt.Z(Nr=>{for(let ei of Nr)(ei.target.offsetHeight>0||ei.target.offsetWidth>0)&&(nr(),Tn.setSize("100%","100%"),Tn.refresh())});return tr.observe(oo.current.parentElement),tr}if(Tn){const tr=sr();return()=>{var Nr,ei;(Nr=oo.current)!=null&&Nr.parentElement&&tr.unobserve((ei=oo.current)==null?void 0:ei.parentElement)}}},[Tn,nr]),(0,Ee.useEffect)(()=>{if(Tn){let sr=[];for(const[tr,Nr]of Object.entries(fo)){let ei={[tr]:()=>{Lo(Nr)}};sr.push(ei),Tn.addKeyMap(ei)}return()=>{for(let tr of sr)Tn.removeKeyMap(tr)}}},[Tn]),(0,Ee.useEffect)(()=>{Oi!==Si&&Hi(Oi)},[Oi]),(0,lr.Z)(()=>{if(!Cn&&yr>0){let sr=new Date().getTime(),tr=window.sessionStorage.getItem(Yn);sr>=yr+Zr&&(!tr||tr!==Qi)&&(window.sessionStorage.setItem(Yn,Qi),xn(!0))}},Zr),(0,Ee.useEffect)(()=>{Bt(It)},[Tn,It]),(0,Ee.useEffect)(()=>{Tn&&Rn&&Tn.focus()},[Tn,Rn]),(0,Ee.useEffect)(()=>{if(qi&&Tn){let sr=function(Nr){let ei=Nr.target;if(dr.current){let Ro=ei.scrollTop/ei.scrollHeight;dr.current.scrollTop=dr.current.scrollHeight*Ro}};const tr=Tn.getScrollerElement();return tr.addEventListener("scroll",sr),()=>{tr.removeEventListener("scroll",sr)}}},[Tn,qi]),(0,Ee.useEffect)(()=>{if(Tn&&Sn){let sr=function(tr,Nr){Sn(tr,Nr)};return Tn.on("beforeChange",sr),()=>{Tn.off("beforeChange",sr)}}},[Tn,Sn]),(0,Ee.useEffect)(()=>{if(Tn&&Kt){let sr=function(){Kt(Tn.getValue())};return Tn.on("blur",sr),()=>{Tn.off("blur",sr)}}},[Tn,Kt]);function no(sr,tr){var Nr=sr.getDoc(),ei=Nr.getCursor(),Ro=Nr.getLine(ei.line),ia=Ro.charAt(ei.ch-1),Za=Ro.lastIndexOf("@\u2581@",ei.ch),ha=Ro.lastIndexOf("@\u2581\u2581@",ei.ch),Oa=Za>ha?Za:ha,Ia=Za>ha?3:4;if(Xr.indexOf(ia)===-1)return null;if(console.log("change1:",tr,sr,Ro,ei,Oa,Za,ha,ia),Oa>=0&&ei.ch-Oa<5){var ys=Oa+Ia;return Nr.replaceRange("",{line:ei.line,ch:Oa},{line:ei.line,ch:ys}),{line:ei.line,ch:ys}}return null}(0,Ee.useEffect)(()=>{if(Tn){let sr=function(tr,Nr){const ei=tr.getValue();Lr(ei),kr(new Date().getTime()),tr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),an&&(In?an(ei,Sr(ei)):an(ei))};return Tn.on("change",sr),()=>{Tn.off("change",sr)}}},[Tn,an]),(0,Ee.useEffect)(()=>{if(Tn)if(vn==null)Tn.setValue(""),Lr("");else{const sr=window.scrollY||window.pageYOffset;vn!==Tn.getValue()&&(Tn.setValue(vn),Lr(vn),Tn.setCursor(un?1:Tn.lineCount(),0),window.scrollTo(0,sr))}},[Tn,vn]);const Lo=(0,Ee.useCallback)(sr=>{const tr=Tn.getCursor(),Nr=Tn.getSelection();let ei=Nr.split(`
|
|
|
`);switch(sr){case"bold":return Tn.replaceSelection("**"+Nr+"**"),Nr===""&&Tn.setCursor(tr.line,tr.ch+2),Tn.focus();case"italic":return Tn.replaceSelection("*"+Nr+"*"),Nr===""&&Tn.setCursor(tr.line,tr.ch+1),Tn.focus();case"code":return Tn.replaceSelection("`"+Nr+"`"),Nr===""&&Tn.setCursor(tr.line,tr.ch+1),Tn.focus();case"inline-latex":return Pr("inline-latex"),Tn.focus();case"latex":return Tn.replaceSelection("```latex\n"+Nr+"\n```"),Tn.setCursor(tr.line+1,Nr.length+1),Tn.focus();case"line-break":return Tn.replaceSelection(`<br/>
|
|
|
`),Tn.focus();case"list-ul":return Nr===""?Tn.replaceSelection("- "+Nr):Tn.replaceSelection(ei.map(Ro=>Ro===""?"":`- ${Ro}`).join(`
|
|
|
`)),Tn.focus();case"list-ol":return Nr===""?Tn.replaceSelection("1. "+Nr):Tn.replaceSelection(ei.map((Ro,ia)=>Ro===""?"":`${ia+1}. ${Ro}`).join(`
|
|
|
`)),Tn.focus();case"add-null-ch":return Nr===""&&Tn.setCursor(tr.line,tr.ch),Tn.replaceSelection(Ki),Tn.focus();case"add-signal":return Nr===""&&Tn.setCursor(tr.line,tr.ch),Tn.replaceSelection(Vi),Tn.focus();case"add-multiple":return Nr===""&&Tn.setCursor(tr.line,tr.ch),Tn.replaceSelection(Xr),Tn.focus();case"inster-template-1":return Nr===""&&Tn.setCursor(tr.line,tr.ch),Tn.replaceSelection(be),Tn.focus();case"eraser":return Tn.setValue(""),Tn.focus();case"trigger-watch":return Bt(!qi),Tn.focus();case"trigger-full-screen":return Hi(!Si),Tn.focus();case Pt:Pr(Pt);return;case di:Pr(di);return;case ln:Pr(ln);return;case oi:Pr(oi);return;case"maths-latex":Pr("maths-latex");return;case Fn:Pr(Fn);return;case mi:Pr(mi);return;default:throw new Error}},[Tn,qi,Si]),wi=(0,Ee.useCallback)((sr,tr)=>{var Nr,ei,Ro,ia,Za,ha;switch(Pr(""),ki){case Pt:const{title:_s,link:Ys}=sr;return Tn.replaceSelection(`[${_s}](${Ys})`),Tn.focus();case di:const{language:dn,content:js}=sr;return Tn.replaceSelection(["```"+dn,js,"```"].join(`
|
|
|
`)),Tn.focus();case"maths-latex":for(var Oa=atob(sr),Ia=new Uint8Array(Oa.length),ys=0;ys<Oa.length;ys++)Ia[ys]=Oa.charCodeAt(ys);var Ds=new Blob([Ia],{type:"image/png"});(0,Dt.I)(Ds,bs=>{bs.id?Tn.replaceSelection(``):(bs==null?void 0:bs.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Tn.replaceSelection("`$$"+sr+"$$`");break;case ln:case oi:case ci:const{src:au,alt:su}=sr,No=tr,ga=(Ro=(ei=(Nr=No==null?void 0:No.name)==null?void 0:Nr.split("."))==null?void 0:ei.pop)==null?void 0:Ro.call(ei);return((ia=No==null?void 0:No.type)==null?void 0:ia.indexOf("image"))>-1||!(No!=null&&No.type)?su?Tn.replaceSelection(``):Tn.replaceSelection(``):((Za=No==null?void 0:No.type)==null?void 0:Za.indexOf("video"))>-1?Tn.replaceSelection(`<video width="100%" controls src="${au}"></video>`):((ha=No==null?void 0:No.type)==null?void 0:ha.indexOf("pdf"))>-1?Tn.replaceSelection(`<a href="${au}?type=${No.type}&disposition=inline" target="_blank">${No.name}</a>`):Pi.includes(ga)?Tn.replaceSelection(`<a href="${au}?type=office&disposition=inline" target="_blank">${No.name}</a>`):Tn.replaceSelection(`[${No.name}](${au})`),Tn.focus();case mi:const{row:os,col:pa,align:To}=sr;let la=`
|
|
|
`;for(let bs=0;bs<os;bs++){let to=[],zo=[];for(let Oo=0;Oo<pa;Oo++)bs===1&&zo.push(vr[To]),to.push(" ");bs===1&&(la+=`| ${zo.join(" | ")} |
|
|
|
`),la+=`| ${to.join(pa===1?"":" | ")} |
|
|
|
`}return Tn.replaceSelection(la+`
|
|
|
`),Tn.focus();default:throw new Error}},[Tn,ki]),Ye=(0,Ee.useMemo)(()=>{switch(ki){case Pt:return Ee.createElement(Wn,{callback:wi,onCancel:$r});case di:return Ee.createElement(Qn.Z,{callback:wi,onCancel:$r});case ln:return Ee.createElement(Dt.Z,{callback:wi,onCancel:$r});case Fn:return Ee.createElement(Et,{callback:wi,onCancel:$r});case mi:return Ee.createElement(me,{callback:wi,onCancel:$r});case"maths-latex":return Ee.createElement(Ut,{showSaveButton:!0,callback:wi});case"inline-latex":return Ee.createElement(rn.Z,{showSaveButton:!0,callback:wi});default:return null}},[ki]);function $r(){Pr("")}(0,Ee.useEffect)(()=>{if(Qo.current){let sr=function(Za){Ro=!0,ia=Za.pageY},tr=function(){Ro=!1},Nr=function(Za){if(Ro){let ha=Za.pageY-ia;ha<0&&(ha=0),ha>300&&(ha=300);let Oa=ft+ha+"px";Ri(Oa)}},ei=Qo.current,Ro=!1,ia=0;return ei.addEventListener("mousedown",sr),document.addEventListener("mousemove",Nr),document.addEventListener("mouseup",tr),()=>{ei.removeEventListener("mousedown",sr),document.removeEventListener("mousemove",Nr),document.removeEventListener("mouseup",tr)}}},[Tn,Qo]),(0,Ee.useEffect)(()=>{Ri(ft)},[ft]);const ca=Gi(Jt),qr=Gi(rr),$o={width:ca,height:qr},Fr=(0,Ee.useMemo)(()=>{if(yr){let sr=new Date(yr),tr=sr.getHours(),Nr=sr.getMinutes(),ei=sr.getSeconds();return tr=tr<10?"0"+tr:tr,Nr=Nr<10?"0"+Nr:Nr,ei=ei<10?"0"+ei:ei,`${tr}:${Nr}:${ei}`}return 0},[yr]),Sr=sr=>{const tr=[];if(In){let Nr=-1;sr=sr.replace(/(@▁▁@|@▁@)/g,function(ei,Ro,ia){tr.push({multiLine:ei!==Vi})})}return tr};function xo(){window.sessionStorage.removeItem(Yn),xn(!1),kr(0)}function Wo(){xn(!1),kr(0),Tn.setValue(window.sessionStorage.getItem(Yn))}(0,Ee.useEffect)(()=>{_r[ki]&&ki!==oi&&ki!==Fn&&setTimeout(()=>{const sr=document.getElementsByClassName("markdown-popup-form")[0],tr=window.innerWidth/2-sr.offsetWidth/2,Nr=window.innerHeight/2-sr.offsetHeight/2;An(tr),_o(Nr)},0)},[ki]);const eo=sr=>{sr.preventDefault();const tr=sr.clientX-Fo,Nr=sr.clientY-Ir;document.body.onmousemove=ei=>{let Ro=ei.clientX-tr,ia=ei.clientY-Nr;const Za=document.getElementsByClassName("markdown-popup-form")[0],ha=window.innerWidth-Za.offsetWidth,Oa=window.innerHeight-Za.offsetHeight;Ro=Math.max(0,Math.min(Ro,ha)),ia=Math.max(0,Math.min(ia,Oa)),fa(ei.clientX,ei.clientY,tr,Nr)&&(An(Ro),_o(ia))},document.body.onmouseup=function(){document.body.onmousemove=null}},fa=(sr,tr,Nr,ei)=>{const Ro=document.body.clientHeight,ia=document.body.clientWidth;return sr<20&&Nr>sr||sr>ia-20&&Nr<sr||tr<20&&ei>tr||tr>Ro-20&&ei<tr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{className:"markdown-editor-wrapper",ref:Fa},Ee.createElement("div",{className:`markdown-editor-container ${on} ${qi?"on-preview":""} ${pn?"mini":""} ${Si?"full-screen":""}`,style:$o},Ee.createElement(ze,{insertTemp:lt,watch:qi,fullScreen:Si,showNullButton:bt,showNullProgramButton:In,onActionCallback:Lo,hidetoolBar:gi,extraUse:$n}),Ee.createElement("div",{className:"markdown-editor-body"},Ee.createElement("div",{className:"codemirror-container"},Ee.createElement("textarea",{ref:oo,placeholder:Nn})),qi?Ee.createElement("div",{ref:dr,className:"preview-container"},yn==="stex"&&Ee.createElement(wt,{value:Qi}),yn!=="stex"&&Ee.createElement(gt.Z,{disabledFill:En,showProgramFill:In,value:Qi})):null))),Di?Ee.createElement("a",{ref:Qo,className:"editor-resize"}):null,ki===oi&&Ee.createElement(ii,{callback:wi,onCancel:$r}),ki===Fn&&Ee.createElement(Et,{callback:wi,onCancel:$r}),Ee.createElement(We.Z,null,_r[ki]&&ki!==oi&&ki!==Fn?Ee.createElement($t.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Fo,top:Ir},title:Ee.createElement("div",{style:{cursor:"move"},onMouseDown:eo},_r[ki]),open:!0,onCancel:$r,footer:null,destroyOnClose:!0,width:ki===Fn?"1200px":null,height:ki===Fn?"80vh":null,className:"markdown-popup-form"},Ye):null))}},56701:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ve},I:function(){return ke}});var Ee=Se(78241),je=Se(8591),it=Se(92832),kt=Se(3113),Xe=Se(58788),pt=Se(59301),Fe=Se(59301),Ft=Object.defineProperty,Ct=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Te=(we,Oe,ze)=>Oe in we?Ft(we,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):we[Oe]=ze,te=(we,Oe)=>{for(var ze in Oe||(Oe={}))wt.call(Oe,ze)&&Te(we,ze,Oe[ze]);if(gt)for(var ze of gt(Oe))xt.call(Oe,ze)&&Te(we,ze,Oe[ze]);return we},ne=(we,Oe)=>Ct(we,nt(Oe));const{useForm:he}=Ee.default,se={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var ve=({callback:we,onCancel:Oe})=>{const[ze]=he();let We=(0,pt.useRef)();function Ue(Ht){we(Ht,We.current)}function ut(Ht,St){if(Ht.status===-1){je.ZP.error(Ht.message);return}ze.setFieldsValue({src:`/api/attachments/${Ht.id}`,type:St.type})}function Ke(Ht){let St=Ht.target.files[0];We.current=St,ke(St,ut)}return Fe.createElement(Ee.default,ne(te({form:ze},ge),{className:"upload-image-panel",onFinish:Ue,style:{width:470,overflow:"hidden"}}),Fe.createElement(Ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Fe.createElement("div",{className:"flex-container"},Fe.createElement(Ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Fe.createElement(it.default,{style:se})),Fe.createElement(Pe,{onFileChange:Ke}))),Fe.createElement(Ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Fe.createElement(it.default,{style:{width:264}})),Fe.createElement(Ee.default.Item,{style:{textAlign:"right"}},Fe.createElement(kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Fe.createElement(kt.ZP,{type:"default",onClick:Oe},"\u53D6\u6D88")))};function Pe({onFileChange:we}){return Fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Fe.createElement("input",{type:"file",onChange:we}))}function ke(we,Oe){if(!we)throw new String("\u6CA1\u6709\u6587\u4EF6");let ze=new FormData;ze.append("editormd-image-file",we),ze.append("file_param_name","editormd-image-file"),ze.append("byxhr","true");var We=new window.XMLHttpRequest;We.withCredentials=!0,We.addEventListener("load",function(Ue){Oe(JSON.parse(Ue.target.responseText),we)},!1),We.addEventListener("error",function(Ue){console.error(Ue)},!1),We.open("POST",`${Xe.KI}/api/attachments.json`),We.send(ze)}},50474:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return it}});var Ee=Se(59301),je=Se(4676);class it extends Ee.Component{constructor(Xe){super(Xe);const pt=window.document;this.node=pt.createElement("div"),pt.body.appendChild(this.node)}render(){const{children:Xe}=this.props;return(0,je.createPortal)(Xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(On,Pn,Se){"use strict";Se.d(Pn,{SV:function(){return jt},ZP:function(){return at}});var Ee=Se(59301),je=Se(76374);const it={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"]},kt={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"]},Xe={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(`
|
|
|
`)}]},pt={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Fe={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var Ft=Se(86061),Ct=Se.n(Ft),nt=Object.defineProperty,gt=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Et,dt,ot)=>dt in Et?nt(Et,dt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Et[dt]=ot,he=(Et,dt)=>{for(var ot in dt||(dt={}))Te.call(dt,ot)&&ne(Et,ot,dt[ot]);if(xt)for(var ot of xt(dt))te.call(dt,ot)&&ne(Et,ot,dt[ot]);return Et},se=(Et,dt)=>gt(Et,wt(dt)),ge=(Et,dt,ot)=>new Promise((De,xe)=>{var me=Me=>{try{He(ot.next(Me))}catch(et){xe(et)}},Ne=Me=>{try{He(ot.throw(Me))}catch(et){xe(et)}},He=Me=>Me.done?De(Me.value):Promise.resolve(Me.value).then(me,Ne);He((ot=ot.apply(Et,dt)).next())});const ve={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=(Et,dt)=>dt.map(ot=>({label:ot,kind:Et.languages.CompletionItemKind.Keyword,insertText:ot})),ke=Et=>Object.keys(ve.tables).map(dt=>({label:dt,kind:Et.languages.CompletionItemKind.Variable,insertText:dt})),we=(Et,dt)=>{const ot=ve.tables[Et];return ot?ot.map(De=>({label:De,kind:dt.languages.CompletionItemKind.Field,insertText:De})):[]};function Oe(Et,dt,ot,De,xe){let me=dt.getWordUntilPosition(ot),Ne={startLineNumber:ot.lineNumber,endLineNumber:ot.lineNumber,startColumn:me.startColumn,endColumn:me.endColumn},He=De.map(Me=>({label:Me,kind:Et.languages.CompletionItemKind.Keyword,insertText:Me,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}));return xe.map(Me=>{He.push(se(he({},Me),{range:Ne}))}),He}var ze=Et=>{ve.languages.map(xe=>(Et.languages.registerDocumentFormattingEditProvider(xe,{provideDocumentFormattingEdits(me,Ne,He){return ge(this,null,function*(){const Me=Ct()(me.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:me.getFullModelRange(),text:Me}]})}}),xe));const dt=Xe.quickKey.map(xe=>({label:xe.label,kind:Et.languages.CompletionItemKind.Method,insertText:xe.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ot=pt.quickKey.map(xe=>({label:xe.label,kind:Et.languages.CompletionItemKind.Method,insertText:xe.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet})),De=kt.quickKey.map(xe=>({label:xe.label,kind:Et.languages.CompletionItemKind.Method,insertText:xe.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Et.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(xe,me){var Ne=xe.getWordUntilPosition(me),He={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},Me=xe.getLineContent(me.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...Xe.keywords.map(et=>({label:et,kind:Et.languages.CompletionItemKind.Function,documentation:et,insertText:et,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He})),...Xe.quickKey.map(et=>({label:et.label,kind:Et.languages.CompletionItemKind.Function,documentation:et.content,insertText:Me.startsWith("#")?et.content.replace(/#/,""):et.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}))]}}}),Et.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(xe,me){var Ne=xe.getWordUntilPosition(me),He={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn};return{suggestions:[...it.keywords.map(Me=>({label:Me,kind:Et.languages.CompletionItemKind.Function,documentation:Me,insertText:Me,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}))]}}}),Et.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(xe,me){var Ne=xe.getWordUntilPosition(me),He={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},Me=xe.getLineContent(me.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...kt.keywords.map(et=>({label:et,kind:Et.languages.CompletionItemKind.Function,documentation:et,insertText:et,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He})),...kt.quickKey.map(et=>({label:et.label,kind:Et.languages.CompletionItemKind.Function,documentation:et.content,insertText:Me.startsWith("#")?et.content.replace(/#/,""):et.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}))]}}}),Et.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(xe,me){var Ne=xe.getWordUntilPosition(me),He={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},Me=xe.getLineContent(me.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...Fe.keywords.map(et=>({label:et,kind:Et.languages.CompletionItemKind.Function,documentation:et,insertText:et,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He})),...Fe.quickKey.map(et=>({label:et.label,kind:Et.languages.CompletionItemKind.Function,documentation:et.content,insertText:Me.startsWith("#")?et.content.replace(/#/,""):et.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}))]}}}),Et.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(xe,me){var Ne=xe.getWordUntilPosition(me),He={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},Me=xe.getLineContent(me.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...pt.keywords.map(et=>({label:et,kind:Et.languages.CompletionItemKind.Function,documentation:et,insertText:et,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He})),...pt.quickKey.map(et=>({label:et.label,kind:Et.languages.CompletionItemKind.Function,documentation:et.content,insertText:Me.startsWith("#")?et.content.replace(/#/,""):et.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}))]}}})};const We="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ue=Object.defineProperty,ut=(Et,dt,ot)=>dt in Et?Ue(Et,dt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Et[dt]=ot,Ke=(Et,dt,ot)=>ut(Et,typeof dt!="symbol"?dt+"":dt,ot);const Ht=class px{constructor(dt,ot,De){this.placeholder=dt,this.editor=ot,this.monaco=De,ot.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};Ke(Ht,"ID","editor.widget.placeholderHint");var _t=Ht,Qt=Se(96236),qt=Se(8591),sn=Se(6848),Bn=Se(89392),yt=Se(86766),Ge=Se(56102),tn=Object.defineProperty,Wn=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,Zn=(Et,dt,ot)=>dt in Et?tn(Et,dt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Et[dt]=ot,hn=(Et,dt)=>{for(var ot in dt||(dt={}))$t.call(dt,ot)&&Zn(Et,ot,dt[ot]);if(Dt)for(var ot of Dt(dt))cn.call(dt,ot)&&Zn(Et,ot,dt[ot]);return Et},ii=(Et,dt)=>Wn(Et,Qn(dt)),mt=(Et,dt)=>{var ot={};for(var De in Et)$t.call(Et,De)&&dt.indexOf(De)<0&&(ot[De]=Et[De]);if(Et!=null&&Dt)for(var De of Dt(Et))dt.indexOf(De)<0&&cn.call(Et,De)&&(ot[De]=Et[De]);return ot},Xn=(Et,dt,ot)=>new Promise((De,xe)=>{var me=Me=>{try{He(ot.next(Me))}catch(et){xe(et)}},Ne=Me=>{try{He(ot.throw(Me))}catch(et){xe(et)}},He=Me=>Me.done?De(Me.value):Promise.resolve(Me.value).then(me,Ne);He((ot=ot.apply(Et,dt)).next())});function ri(Et){return/^\d+$/.test(Et)?`${Et}px`:Et}function pi(){}let Mn=!1;const Gt={"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 zt(Et=[]){let dt=Et;if(Array.isArray(Et)){for(let ot=0;ot<Et.length;ot++){let De=Gt[Et[ot]];if(De)return De}return dt[0]}return Gt[dt]||dt}let Mt=null;var at=Et=>{var dt=Et,{width:ot="100%",height:De="100%",value:xe,language:me="javascript",style:Ne={},options:He={},overrideServices:Me={},theme:et="vs-dark",onEditBlur:Ut,isCopy:rn=!1,onSave:ht,autoHeight:Pt=!1,forbidCopy:ln=!1,onChange:Fn=pi,editorDidMount:oi=pi,onFocus:ci=pi,onBreakPoint:di=pi,breakPointValue:mi=[],filename:Ui="educoder.txt",errorLine:vr,errorContent:lr="",highlightLine:gr,openBreakPoint:wr=!1,placeholder:Zr=""}=dt,Ki=mt(dt,["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 Xr=(0,Ee.useRef)(),Vi=(0,Ee.useRef)({}),be=(0,Ee.useRef)(),Pi=(0,Ee.useRef)(),Gi=(0,Ee.useRef)([]),hr=(0,Ee.useRef)(!1),$i=(0,Ee.useRef)(),fo=(0,Ee.useRef)(),_r=(0,Ee.useRef)(!1),[Co,vn]=(0,Ee.useState)(!1);function an(){let Kt;return Xr.current&&(Kt=new je.Z(Sn=>{for(let Wt of Sn)(Wt.target.offsetHeight>0||Wt.target.offsetWidth>0)&&Vi.current.instance.layout()}),Kt.observe(Xr.current)),Kt}function Jt(){qt.ZP.warning({content:decodeURIComponent(We),key:"monaco-editor-tip"})}const ft=()=>{let Kt=Vi.current.instance;if(xe!=null&&Kt&&Co){const Sn=Kt.getModel();Sn&&xe!==Sn.getValue()&&(Mn=!0,Sn.setValue(xe),Kt.layout(),Mn=!1)}};(0,Ee.useEffect)(()=>{const Kt=yt.Z.subscribe("formatDocument",Sn=>{var Wt;let on=Vi.current.instance;(Wt=on==null?void 0:on.getAction)==null||Wt.call(on,"editor.action.formatDocument").run()});return window.updateMonacoValue=Sn=>{Fn(Sn)},Kt},[]),(0,Ee.useEffect)(()=>{var Kt;let Sn=Vi.current.instance;Pi.current&&clearTimeout(Pi.current),Pi.current=setTimeout(()=>{ft()},500),xe&&(xe!=null&&xe.length)&&((Kt=Sn==null?void 0:Sn.updateOptions)==null||Kt.call(Sn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(xe.split(/\r\n|\r|\n/g).length))+3,5)}))},[xe,Co,Vi.current]),(0,Ee.useEffect)(()=>{if(vr&&Vi.current&&Vi.current.instance){let Sn=Vi.current.instance;Sn.changeViewZones(function(Wt){var on=document.createElement("div");on.style.padding="10px 20px",on.style.width="calc(100% - 20px)",on.className="my-error-line-wrp",on.innerHTML=lr,Wt.addZone({afterLineNumber:vr||11,heightInLines:3,domNode:on})});var Kt={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}};Sn.addOverlayWidget(Kt),Sn.revealPositionInCenter({lineNumber:20,column:1})}},[vr,Vi.current,Co]);const pn=(Kt="",Sn)=>{if(!Kt||Kt.trim()==="")return!0;const on=Vi.current.instance.getModel().getLineTokens(Sn);let gn=!1;for(let un=0;un<2;un++)on.getStandardTokenType(un)===1&&(gn=!0);return gn};(0,Ee.useEffect)(()=>{var Kt;const Sn=(Kt=Vi.current)==null?void 0:Kt.instance;if(Sn&&Co&&ln){const Wt=Sn.onDidBlurEditorWidget(()=>{_r.current=!1}),on=Sn.onDidFocusEditorText(()=>{_r.current=!0});return()=>{Wt.dispose(),on.dispose()}}},[Vi.current,Co,ln]),(0,Ee.useEffect)(()=>{var Kt;if((Kt=Vi.current)!=null&&Kt.instance&&Co&&wr){let Sn=Vi.current.instance,Wt=Sn.getModel();if(!Wt)return;(()=>{var qi;let Bt=[],Si=[];const Hi=Wt.getAllDecorations();for(let Pr of Hi)Pr.options.className==="highlighted-line"&&(Bt.push((qi=Pr==null?void 0:Pr.range)==null?void 0:qi.startLineNumber),Si.push(Pr==null?void 0:Pr.id));if(gr===Bt[0])return;Wt.deltaDecorations(Si,[]);const ki=Wt.getLineCount();gr&&gr<=ki&&(Sn.deltaDecorations([],[{range:new Mt.Range(gr,1,gr,Wt.getLineMaxColumn(gr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Sn.revealLineInCenter(gr))})();const gn=(qi=!1)=>{var Bt;let Si=[],Hi=[];const ki=Wt.getAllDecorations();for(let Pr of ki)Pr.options.linesDecorationsClassName==="breakpoints-select"&&(Si.push((Bt=Pr==null?void 0:Pr.range)==null?void 0:Bt.startLineNumber),Hi.push(Pr==null?void 0:Pr.id));if(qi)return{lines:Si,ids:Hi};di(Si)},un=qi=>Xn(void 0,null,function*(){let Bt={range:new Mt.Range(qi,1,qi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Wt.deltaDecorations([],[Bt]),gn()}),En=qi=>Xn(void 0,null,function*(){let Bt=[];const Si=Sn.getLineDecorations(qi);for(let Hi of Si)Hi.options.linesDecorationsClassName==="breakpoints-select"&&Bt.push(Hi.id);yield Wt.deltaDecorations(Bt,[]),gn()}),Nn=qi=>{let Bt=Sn.getLineDecorations(qi);for(let Si of Bt)if(Si.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Bn.isEqual)(mi,gn(!0).lines)){Wt.deltaDecorations(gn(!0).ids,[]);const qi=mi.map(Bt=>({range:new Mt.Range(Bt,1,Bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Wt.deltaDecorations([],qi)}const Vn=Sn.onDidChangeModelContent(qi=>{let Bt=Sn.getPosition();if(Bt){let Si=Bt.lineNumber;clearTimeout(fo.current),fo.current=setTimeout(()=>{pn(Wt.getLineContent(Si),Si)?En(Si):Nn(Si)?(En(Si),un(Si)):gn()},100)}}),$n=Sn.onMouseDown(qi=>{var Bt,Si,Hi;if(qi.target.detail&&((Hi=(Si=(Bt=qi.target)==null?void 0:Bt.element)==null?void 0:Si.className)!=null&&Hi.includes("line-numbers"))){let ki=qi.target.position.lineNumber;if(pn(Wt.getLineContent(ki),ki))return;Nn(ki)?En(ki):un(ki)}}),Tn=qi=>{let Bt={range:new Mt.Range(qi,1,qi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Gi.current=Sn.deltaDecorations(Gi.current,[Bt])},ai=()=>{Gi.current=Sn.deltaDecorations(Gi.current,[])},Qi=Sn.onMouseMove(qi=>{var Bt,Si,Hi;if(ai(),qi.target.detail&&((Hi=(Si=(Bt=qi.target)==null?void 0:Bt.element)==null?void 0:Si.className)!=null&&Hi.includes("line-numbers"))){let ki=qi.target.position.lineNumber;if(pn(Wt.getLineContent(ki),ki))return;Tn(ki)}}),Lr=Sn.onMouseLeave(()=>{ai()});return()=>{Vn.dispose(),$n.dispose(),Qi.dispose(),Lr.dispose()}}},[Vi.current,Co,mi,gr,wr,me]),(0,Ee.useEffect)(()=>{var Kt;(Kt=Vi.current)!=null&&Kt.instance&&wr&&Vi.current.instance.setPosition({lineNumber:0,column:0})},[gr]);function Rn(){let Kt=Vi.current.instance;if(Kt){const Sn=Kt.getSelection(),Wt=Vi.current.pastePos||{},on=new Mt.Range(Wt.startLineNumber||Sn.endLineNumber,Wt.startColumn||Sn.endColumn,Wt.endLineNumber||Sn.endLineNumber,Wt.endColumn||Sn.endColumn);setTimeout(()=>{Kt.executeEdits("",[{range:on,text:""}])},300)}}function It(Kt){(window.navigator.platform.match("Mac")?Kt.metaKey:Kt.ctrlKey)&&Kt.keyCode==83&&(Kt.preventDefault(),ht())}const lt=()=>{if(Pt&&Vi.current.instance){const Kt=Vi.current.instance.getContentHeight();gi(Kt<De?De:Kt)}else gi(De)};function yn(Kt){var Sn=document.createEvent("MouseEvents");Sn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Kt.dispatchEvent(Sn)}const Yn=Kt=>{if(!_r.current)return;const{keyCode:Sn,ctrlKey:Wt,metaKey:on,target:gn,type:un}=Kt;return(un==="paste"||(Sn===67||Sn===86)&&(on||Wt))&&gn.nodeName==="TEXTAREA"&&(Jt(),Kt.preventDefault()),!1};function Di(Kt,Sn){var Wt=window.URL||window.webkitURL||window,on=new Blob([Sn]),gn=document.createElementNS("http://www.w3.org/1999/xhtml","a");gn.href=Wt.createObjectURL(on),gn.download=Kt,yn(gn)}(0,Ee.useEffect)(()=>{lt()},[lt]),(0,Ee.useEffect)(()=>{Xr.current&&!Co&&Promise.all([Se.e(8909),Se.e(1810)]).then(Se.bind(Se,71448)).then(Kt=>{try{Mt=Kt,Vi.current.instance=Mt.editor.create(Xr.current,{value:xe,language:zt(me),theme:et,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Me);const Sn=Vi.current.instance;let gn=[...Qt.BH._menuItems].find(Vn=>Vn[0]._debugName=="EditorContext")[1],un=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],En=(Vn,$n)=>{var Tn,ai;let Qi=Vn._first;do $n.includes((ai=(Tn=Qi.element)==null?void 0:Tn.command)==null?void 0:ai.id)&&Vn._remove(Qi);while(Qi=Qi.next)};if(oi(Sn,Mt),setTimeout(()=>{lt(),Vi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Di(Ui||"educoder.txt",Sn.getValue())}})},500),Vi.current.subscription=Sn.onDidChangeModelContent(Vn=>{hr.current?clearTimeout($i.current):(lt(),Fn(Sn.getValue(),Vn)),$i.current=setTimeout(()=>{hr.current=!1},500)}),window.Monaco||ze(Mt,zt(me)),ln&&(En(gn,un),Xr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Yn),window.removeEventListener("paste",Yn),window.addEventListener("keydown",Yn),window.addEventListener("paste",Yn)),window.Monaco=Mt,Ut&&Sn.onDidBlurEditorWidget(()=>{Ut(Sn.getValue())}),ci&&Sn.onDidFocusEditorText(()=>{ci(Sn.getValue())}),ln)try{Sn.onDidPaste(Vn=>{const $n=Sn.getSelection(),Tn=Vi.current.pastePos||{},ai=new Mt.Range(Tn.startLineNumber||$n.endLineNumber,Tn.startColumn||$n.endColumn,Tn.endLineNumber||$n.endLineNumber,Tn.endColumn||$n.endColumn);Sn.executeEdits("",[{range:Vn.range,text:""}])})}catch(Vn){}let Nn=an();return Zr&&typeof Zr=="string"&&new _t(Zr,Sn,Mt),vn(!0),()=>{const Vn=Vi.current.instance;Vn.dispose();const $n=Vn.getModel();$n&&$n.dispose(),Vi.current.subscription&&Vi.current.subscription.dispose(),Nn.unobserve(Xr.current)}}catch(Sn){}})},[]),(0,Ee.useEffect)(()=>{if(Vi.current.instance&&Co)return document.addEventListener("keydown",It,!1),()=>{document.removeEventListener("keydown",It)}},[ht,Co]),(0,Ee.useEffect)(()=>{let Kt=Vi.current.instance;if(Kt&&Co){let Sn=zt(me);Mt.editor.setModelLanguage(Kt.getModel(),Sn)}},[me,Co]),(0,Ee.useEffect)(()=>{Vi.current.instance&&Co&&Mt.editor.setTheme(et)},[et,Co]),(0,Ee.useEffect)(()=>{let Kt=Vi.current.instance;be.current=He,Kt&&Co&&(Kt.updateOptions(hn({},He)),setTimeout(()=>{Kt.getModel().updateOptions(hn({},He))},200))},[JSON.stringify(He),Co]),(0,Ee.useEffect)(()=>{let Kt=Vi.current.instance;Kt&&Co&&Kt.layout()},[ot,De,Co]);const[Cn,bt]=(0,Ee.useState)(ri(ot)),[In,gi]=(0,Ee.useState)(ri(De)),Oi=ii(hn({},Ne),{width:Cn,height:In,position:"relative"});return Ee.createElement("div",{className:"my-monaco-editor",ref:Xr,style:Oi},rn&&Ee.createElement(Ge.CopyToClipboard,{text:xe,onCopy:()=>qt.ZP.success("\u590D\u5236\u6210\u529F")},Ee.createElement(sn.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ee.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ee.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function jt({width:Et="100%",height:dt="100%",original:ot,modified:De,language:xe,options:me={}}){const Ne=(0,Ee.useRef)(),[He,Me]=(0,Ee.useState)(null);function et(Pt){let ln;return Ne.current&&(ln=new je.Z(Fn=>{for(let oi of Fn)(oi.target.offsetHeight>0||oi.target.offsetWidth>0)&&Pt.layout()}),ln.observe(Ne.current)),ln}(0,Ee.useEffect)(()=>(Ne.current&&Promise.all([Se.e(8909),Se.e(9404)]).then(Se.bind(Se,2550)).then(Pt=>{Mt=Pt;const ln=Mt.editor.createDiffEditor(Ne.current,ii(hn({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},me),{wordWrap:!0}));Me(ln);let Fn=et(ln);return()=>{ln.dispose();const oi=ln.getModel();oi&&oi.dispose(),Fn.unobserve(Ne.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ee.useEffect)(()=>{He&&He.setModel({original:Mt.editor.createModel(ot,xe),modified:Mt.editor.createModel(De,xe)})},[ot,De,xe,He]);const Ut=ri(Et),rn=ri(dt),ht={width:Ut,height:rn};return Ee.createElement("div",{className:"my-diff-editor",ref:Ne,style:ht})}},91300:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return je}});var Ee=Se(59301);function je(it,kt){const Xe=(0,Ee.useRef)();(0,Ee.useEffect)(()=>{Xe.current=it}),(0,Ee.useEffect)(()=>{function pt(){Xe.current()}if(kt!==null){let Fe=setInterval(pt,kt);return()=>clearInterval(Fe)}},[kt])}},66539:function(On,Pn,Se){"use strict";Se.d(Pn,{Q8:function(){return Ge},d0:function(){return tn},w6:function(){return yt}});var Ee=Se(59301),je=Se(78550),it=Se(57809),kt=Se(8591),Xe=Se(43418),pt=Se(5112),Fe=Se(95237),Ft=Se(43604),Ct=Se(6848),nt=Se(24905),gt=Se(3113),wt=Se(61186),xt=Se.n(wt),Te=Se(2119),te=Se(70635),ne=Se(89392),he=Se.n(ne),se=Se(58130),ge=Se(57534),ve=Se(42203),Pe=Se(46898),ke=Se(18032),we=Se(30738),Oe=Se(83476),ze=Se(20387),We=Se(59301),Ue=Object.defineProperty,ut=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,Qt=($t,cn,Zn)=>cn in $t?Ue($t,cn,{enumerable:!0,configurable:!0,writable:!0,value:Zn}):$t[cn]=Zn,qt=($t,cn)=>{for(var Zn in cn||(cn={}))St.call(cn,Zn)&&Qt($t,Zn,cn[Zn]);if(Ht)for(var Zn of Ht(cn))_t.call(cn,Zn)&&Qt($t,Zn,cn[Zn]);return $t},sn=($t,cn)=>ut($t,Ke(cn)),Bn=($t,cn,Zn)=>new Promise((hn,ii)=>{var mt=pi=>{try{ri(Zn.next(pi))}catch(Mn){ii(Mn)}},Xn=pi=>{try{ri(Zn.throw(pi))}catch(Mn){ii(Mn)}},ri=pi=>pi.done?hn(pi.value):Promise.resolve(pi.value).then(mt,Xn);ri((Zn=Zn.apply($t,cn)).next())});function yt($t,cn){const Zn=[];for(let hn=$t;hn<cn;hn++)Zn.push(hn);return Zn}const Ge=($t,cn,Zn)=>{const hn=$t<xt()().startOf("day"),ii=$t>xt()(cn).endOf("day"),mt=$t<xt()(Zn).startOf("day");return cn?Zn?xt()()<=xt()(Zn)?mt||ii:hn||ii:$t&&hn||ii:Zn&&xt()()<=xt()(Zn)?mt:hn},tn=($t,cn)=>{const Zn=parseInt(xt()($t).format("HH")),hn=parseInt(xt()().format("HH")),ii=parseInt(xt()().format("mm"));if(!$t)return{disabledHours:()=>yt(0,hn),disabledMinutes:()=>yt(0,ii)};if(cn){const mt=parseInt(xt()(cn).format("HH")),Xn=parseInt(xt()(cn).format("mm"));return xt()($t).isSame(xt()(cn),"day")?{disabledHours:()=>yt(0,mt),disabledMinutes:()=>Zn<=mt?yt(0,Xn):[]}:void 0}if(xt()($t).isSame(xt()(),"day"))return{disabledHours:()=>yt(0,hn),disabledMinutes:()=>xt()($t).isSame(xt()(),"hour")&&Zn<=hn?yt(0,ii):[]}},{RangePicker:Wn}=je.default,{Option:Qn}=it.default,Dt=({shixunHomeworks:$t,loading:cn,dispatch:Zn,classroomList:hn,user:ii})=>{var mt,Xn,ri,pi,Mn,Gt,zt,Mt,at;const jt=(0,ve.useParams)(),{workSetting:Et,workList:dt,shixunWorkList:ot,headerInfo:De,changeData:xe}=$t,[me,Ne]=(0,Ee.useState)(!1),[He,Me]=(0,Ee.useState)(!1);let[et,Ut]=(0,Ee.useState)([]),[rn,ht]=(0,Ee.useState)([]),[Pt,ln]=(0,Ee.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Pe.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Fn,oi]=(0,Ee.useState)({}),[ci,di]=(0,Ee.useState)({});(0,Ee.useEffect)(()=>()=>{Ut([])},[]),(0,Ee.useEffect)(()=>{Ne(!(0,Te.GJ)())},[(0,Te.GJ)()]);const mi=()=>{Zn({type:"shixunHomeworks/getWorkSetting",payload:qt({},jt)})};(0,Ee.useEffect)(()=>{if(!(Et!=null&&Et.course_id))return;Object.keys(Pt).map(function(Pi){Pt[Pi]=Et[Pi]}),(!Pt.allow_late||!Pt.unified_late)&&(Pt.late_penalty=20,Pt.penalty_type=Pe.Q.Percent),Pt.unified_setting||(Pt.unified_late=!1,Pt.unified_anonymous_comment=!1,Pt.unified_anonymous_appeal=!1),et=JSON.parse(JSON.stringify(Et.group_settings.map(Pi=>sn(qt({},Pi),{group_name:[Pi.group_name]})).filter(Pi=>Pi.publish_time!==null))),rn=JSON.parse(JSON.stringify(Et.allow_late_settings.map(Pi=>sn(qt({},Pi),{group_name:[Pi.group_name]})).filter(Pi=>Pi.late_time!==null))),ln(qt({},Pt));const be=(0,se.QE)((et==null?void 0:et.length)>0?et:[]);Ut([...be]),(rn==null?void 0:rn.length)<=0?ht([{penalty_type:Pe.Q.Percent,late_penalty:20}]):ht([...rn])},[Et]);const Ui=()=>Bn(void 0,null,function*(){var be,Pi;if(((be=ii==null?void 0:ii.userInfo)==null?void 0:be.user_status)===2){(0,ke.Rd)();return}const Gi=JSON.parse(JSON.stringify(Pt));if(Gi.challenge_settings.filter($i=>!$i.hide),Gi.categoryId=jt.categoryId,(Pi=Gi.challenge_settings)!=null&&Pi.every($i=>!$i.checked)){kt.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(et),!Pt.unified_setting)et=et==null?void 0:et.map($i=>{var fo;if(!$i.publish_time||!$i.end_time)throw kt.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!$i.group_name)throw kt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return $i.group_name=typeof($i==null?void 0:$i.group_name)=="string"?[$i==null?void 0:$i.group_name]:$i==null?void 0:$i.group_name,$i.group_id=(fo=Et.group_settings)==null?void 0:fo.filter(_r=>{var Co;return(Co=$i==null?void 0:$i.group_name)==null?void 0:Co.includes(_r.group_name)}).map(_r=>_r.group_id||_r.id).toString().split(","),$i});else if(!Pt.publish_time||!Pt.end_time)throw kt.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(Gi.group_settings=et,Pt.allow_late)if(Pt.unified_late){if(Pt.late_penalty===null||Pt.late_penalty===void 0||Pt.late_penalty<0||Pt.late_penalty>100)throw kt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Pt.late_time)throw kt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else rn=rn==null?void 0:rn.map($i=>{var fo,_r;if($i.late_penalty===null||$i.late_penalty===void 0||$i.late_penalty<0||$i.late_penalty>100)throw kt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!$i.late_time)throw kt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!$i.group_name)throw kt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return $i.group_name=typeof($i==null?void 0:$i.group_name)=="string"?[$i==null?void 0:$i.group_name]:$i==null?void 0:$i.group_name,$i.group_id=(_r=(fo=$i==null?void 0:$i.group_name)==null?void 0:fo.map(Co=>{var vn,an;let Jt=(an=(vn=Et.group_settings)==null?void 0:vn.filter(ft=>(ft==null?void 0:ft.group_name)===Co))==null?void 0:an[0];return Jt==null?void 0:Jt.group_id}))==null?void 0:_r.toString().split(","),$i}),Gi.allow_late_settings=rn;let hr=yield(0,ze.Tr)({homework_common_ids:[parseInt(jt.categoryId)],course_id:jt.coursesId,type:"homework_common"});(hr==null?void 0:hr.student_count)===0?vr(Gi):(di(Gi),oi(hr))}),vr=be=>{var Pi;if(be.total_score===null){kt.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(be!=null&&be.work_efficiency&&be.eff_score===null){kt.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Gi=be.challenge_settings.reduce((fo,_r)=>fo+Number(_r.challenge_score),0);if((Gi==null?void 0:Gi.toFixed(10))!==((Pi=be.total_score-be.eff_score)==null?void 0:Pi.toFixed(10))){kt.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${be.total_score}\u5206`);return}const hr={shixun_evaluation:be.shixun_evaluation,challenge_settings:be.challenge_settings};let $i=()=>{var fo;const _r=()=>Bn(void 0,null,function*(){Me(!0),(yield(0,te.ZP)(`/api/homework_commons/${jt.categoryId}/publish_setting.json`,{method:"post",body:qt({},be)})).status===0&&(kt.ZP.success("\u66F4\u65B0\u6210\u529F"),mi(),Zn({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:qt({},jt)})),Me(!1)});!(0,ne.isEqual)(xe,hr)&&!((fo=De==null?void 0:De.homework_status)!=null&&fo.includes("\u672A\u53D1\u5E03"))?Xe.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:_r}):_r()};Et!=null&&Et.high_resources_consume&&!(Et!=null&&Et.high_resources_consume_permission)?Zn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:jt.coursesId,type:"shixun",type_id:jt.categoryId,name:Et.homework_name,fn:()=>{$i()}}}):$i()},lr=(be,Pi,Gi="group_id")=>{var hr;return Pi?Pi.find($i=>$i[Gi]===be):(hr=Et==null?void 0:Et.group_settings)==null?void 0:hr.find($i=>$i.group_id[0]===be)},gr=(Et==null?void 0:Et.allow_late)||(Et==null?void 0:Et.anonymous_comment),wr=be=>{var Pi,Gi;const hr=lr(be,Et==null?void 0:Et.allow_late_settings,"id"),$i=lr(be,Et==null?void 0:Et.anonymous_comment_settings),fo=lr(be);return(Et==null?void 0:Et.allow_late)&&hr&&xt()(hr==null?void 0:hr.late_time)<=xt()()||(Et==null?void 0:Et.anonymous_comment)&&$i&&($i==null?void 0:$i.evaluation_start)!==null||((Gi=(xt()(fo==null?void 0:fo.end_time)<=xt()()&&((Pi=Et==null?void 0:Et.allow_late_settings)==null?void 0:Pi.filter(_r=>_r.group_id.includes(be))))[0])==null?void 0:Gi.late_time)!=null},Zr=(0,Ee.useMemo)(()=>(Et==null?void 0:Et.allow_late)||(Et==null?void 0:Et.all_group_late),[Et,De]),Ki=Et==null?void 0:Et.anonymous_comment,Xr=be=>{if(!be)return!1;const Pi=lr(be,Et==null?void 0:Et.anonymous_comment_settings);return(Et==null?void 0:Et.anonymous_comment)&&Pi&&(Pi==null?void 0:Pi.evaluation_start)!==null},Vi=(be,Pi)=>{var Gi,hr,$i;Zn({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:be,index:Pi,rangePickerDisabled:me||(xt()()<=xt()((hr=lr((Gi=be==null?void 0:be.group_id)==null?void 0:Gi[0]))==null?void 0:hr.publish_time)?!1:[!0,wr(($i=be==null?void 0:be.group_id)==null?void 0:$i[0])]),disabledDate:Et==null?void 0:Et.course_end_date}})};return We.createElement("section",{className:ge.Z.form},We.createElement("div",{className:ge.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",We.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),We.createElement("div",null,We.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},We.createElement(pt.ZP.Group,{disabled:me||!((mt=De==null?void 0:De.homework_status)!=null&&mt.includes("\u672A\u53D1\u5E03"))||(0,Te.Rm)()&&!((Xn=hn.AssistantObject.practice)!=null&&Xn.can_publish),value:Pt.unified_setting,onChange:be=>{var Pi;if(!((Pi=De==null?void 0:De.homework_status)!=null&&Pi.includes("\u672A\u53D1\u5E03"))){kt.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Pt.unified_setting=!Pt.unified_setting,Pt.unified_setting||(Pt.unified_late=!1,ht([{late_penalty:5}])),ln(Object.assign({},Pt)),Pt.unified_setting===!1&&et==""){Ut(et.concat({}));return}Pt.unified_setting&&(Ut([]),ht([{late_penalty:5}]))}},We.createElement(pt.ZP,{value:!0,disabled:me||!(Et!=null&&Et.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),We.createElement(pt.ZP,{disabled:me||!((ri=Et==null?void 0:Et.group_settings)!=null&&ri.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((pi=Et==null?void 0:Et.group_settings)==null?void 0:pi.length)===0&&We.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),Pt.unified_setting&&We.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},We.createElement(Fe.Z,{align:"middle"},We.createElement(Ft.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),We.createElement(Ft.Z,{className:"ml10"},We.createElement(je.default,{size:"large",disabled:me||!((Mn=De==null?void 0:De.homework_status)!=null&&Mn.includes("\u672A\u53D1\u5E03")||(Gt=De==null?void 0:De.homework_status)!=null&&Gt.includes("\u672A\u5F00\u59CB"))||(0,Te.Rm)()&&!((zt=hn.AssistantObject.practice)!=null&&zt.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:be=>Ge(be,Et==null?void 0:Et.course_end_date),disabledTime:be=>tn(be),value:Pt.publish_time?xt()(Pt.publish_time):"",onChange:(be,Pi)=>{Pt.publish_time=Pi,(Pt.end_time==""||!Pt.end_time)&&Pt.unified_setting&&(Pt.end_time=xt()(be).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),ln(Object.assign({},Pt))}}))),We.createElement(Fe.Z,{align:"middle",className:"pl30"},We.createElement(Ft.Z,null,"\u622A\u6B62\u65F6\u95F4"),We.createElement(Ft.Z,{className:"ml10"},We.createElement(je.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:xt()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Et==null?void 0:Et.allow_late)&&(Et==null?void 0:Et.homework_status.includes("\u5DF2\u622A\u6B62"))||me||(Et==null?void 0:Et.allow_late)&&xt()()>=xt()(Et==null?void 0:Et.end_time)||(0,Te.Rm)()&&!((Mt=hn.AssistantObject.practice)!=null&&Mt.can_publish),disabledDate:be=>Ge(be,Et==null?void 0:Et.course_end_date,Pt.publish_time),disabledTime:be=>tn(be,Pt.publish_time),value:Pt.end_time?xt()(Pt.end_time):"",onChange:(be,Pi)=>{Pt.end_time=Pi,ln(Object.assign({},Pt))}})))),!Pt.unified_setting&&(et==null?void 0:et.length)>0&&We.createElement(Fe.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},et&&et.map(function(be,Pi){var Gi,hr,$i,fo,_r,Co,vn;return We.createElement(Ft.Z,{span:24,key:Pi},We.createElement(Fe.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Pi==(et==null?void 0:et.length)-1?"0px":"10px"}},We.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Pi+1),We.createElement(it.default,{disabled:me||((Gi=De==null?void 0:De.homework_status)!=null&&Gi.includes("\u672A\u53D1\u5E03")&&be.id||xt()()<xt()(be==null?void 0:be.publish_time)?!1:!!(be!=null&&be.publish_time))||(0,Te.Rm)()&&!((hr=hn.AssistantObject.practice)!=null&&hr.can_publish),mode:"multiple",className:ge.Z.multiple_select,style:{width:"250px"},value:be.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:an=>{var Jt;if((0,Te.Rm)()&&!((Jt=hn.AssistantObject.practice)!=null&&Jt.can_publish)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}et[Pi].group_name=an,et[Pi].group_id=be.group_id;const ft=(0,ne.flattenDeep)(et.map(Rn=>Rn.group_name)),pn=rn.map(Rn=>{let It=(Rn==null?void 0:Rn.group_name)||[];return sn(qt({},Rn),{group_name:(0,ne.remove)(It,lt=>ft.includes(lt))})});ht(pn),Ut(et.slice())},maxTagCount:4,maxTagPlaceholder:an=>We.createElement("div",{style:{cursor:"pointer"},onClick:()=>Vi(be,Pi)},"+",an==null?void 0:an.length)},Et.group_settings&&Et.group_settings.map(function(an){if(!et.map(ft=>ft.group_name).flat().includes(an.group_name))return We.createElement(Qn,{value:an.group_name,key:an.id},an.group_name)})),We.createElement("div",{className:"ml20"},We.createElement(Wn,{size:"large",ranges:{\u6B64\u523B:[be.publish_time?xt()(be.publish_time):xt()(),xt()()]},allowClear:!1,disabled:me||(xt()()<=xt()((fo=lr(($i=be==null?void 0:be.group_id)==null?void 0:$i[0]))==null?void 0:fo.publish_time)?!1:[!0,wr((_r=be==null?void 0:be.group_id)==null?void 0:_r[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:an=>Ge(an,Et==null?void 0:Et.course_end_date),disabledTime:an=>tn(an),showTime:{showNow:!0,format:"HH:mm",defaultValue:[xt()((0,se.U6)(),"HH:mm"),xt()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:be.publish_time&&[xt()(be.publish_time),be.end_time?xt()(be.end_time):void 0],onChange:(an,Jt)=>{var ft;if((0,Te.Rm)()&&!((ft=hn.AssistantObject.practice)!=null&&ft.can_publish)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}et[Pi].publish_time=Jt[0],!be.end_time&&Jt[0]?et[Pi].end_time=xt()(Jt[0]).add(7,"days"):et[Pi].end_time=Jt[1],Ut([...et])},onCalendarChange:(an,Jt,ft)=>{if(Jt!=null&&Jt[0]&&!Jt[1]){const pn=xt()(Jt[0]).add(7,"days");et[Pi].publish_time=Jt[0],et[Pi].end_time=pn,Ut([...et])}}})),!me&&We.createElement("div",{style:{display:"flex",width:"50px"}},((Co=be==null?void 0:be.group_id)==null?void 0:Co.length)>1&&We.createElement(Ct.Z,{title:"\u89C4\u5219\u62C6\u5206"},We.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Vi(be,Pi)})),et.length<((vn=Et==null?void 0:Et.group_settings)==null?void 0:vn.length)&&We.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var an;if((0,Te.Rm)()&&!((an=hn.AssistantObject.practice)!=null&&an.can_publish)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ut(et.concat({}))}}),((be==null?void 0:be.publish_time)&&xt()()<xt()(be==null?void 0:be.publish_time)||!(be!=null&&be.publish_time))&&Pi!=0&&We.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const an=(0,ne.cloneDeep)(rn);an.forEach((Jt,ft)=>{Jt.group_name&&(Jt.group_name=Jt.group_name.filter(pn=>{var Rn;return!((Rn=et[Pi].group_name)!=null&&Rn.includes(pn))}))}),et=et.filter((Jt,ft)=>Pi!==ft),ht(an),Ut(et.slice()),setTimeout(()=>Ut(et.slice()),10)}}))))}))),We.createElement(Fe.Z,null,We.createElement(Ft.Z,null,We.createElement("div",{className:ge.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",We.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),We.createElement(Ft.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},We.createElement(nt.default,{checked:Pt.allow_late,disabled:me||Zr,onChange:be=>{var Pi;if((0,Te.Rm)()&&!((Pi=hn.AssistantObject.practice)!=null&&Pi.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}be.target.checked&&Xe.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:We.createElement("div",{style:{padding:10,background:"#f5f6f9"}},We.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),We.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),We.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),Pt.allow_late=!Pt.allow_late,rn==""&&ht([{late_penalty:5}]),ln(Object.assign({},Pt))}},We.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Pt==null?void 0:Pt.allow_late)&&We.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},We.createElement("div",{style:{display:"flex"}},We.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),We.createElement(pt.ZP.Group,{style:{marginLeft:"20px"},disabled:me||(Et==null?void 0:Et.anonymous_comment)||(Et==null?void 0:Et.allow_late),value:Pt.unified_late,onChange:be=>{var Pi;if((0,Te.Rm)()&&!((Pi=hn.AssistantObject.practice)!=null&&Pi.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Pt.unified_late=be.target.value,rn==""&&!be.target.value&&ht([{penalty_type:Pe.Q.Percent,late_penalty:20}]),ln(qt({},Pt))}},(Pt==null?void 0:Pt.unified_setting)&&We.createElement(pt.ZP,{value:!0,disabled:!(Et!=null&&Et.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((at=Et==null?void 0:Et.group_settings)==null?void 0:at.length)>0&&We.createElement(pt.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Pt!=null&&Pt.unified_late?We.createElement(We.Fragment,null,We.createElement(Fe.Z,{align:"middle",style:{marginTop:"10px"}},We.createElement(Ft.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),We.createElement(Ft.Z,{className:"ml20"},We.createElement(Pe.Z,{disabled:me||Ki,value:{type:Pt.penalty_type,inputValue:Pt.late_penalty},onChange:be=>{var Pi;if((0,Te.Rm)()&&!((Pi=hn.AssistantObject.practice)!=null&&Pi.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ln(sn(qt({},Pt),{late_penalty:be.inputValue,penalty_type:be.type}))}})),We.createElement(Ft.Z,{flex:"1",className:"ml5"},We.createElement("span",{className:"c-grey-c ml10"},Pt.penalty_type===Pe.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),We.createElement(Fe.Z,{align:"middle",style:{marginTop:"15px"}},We.createElement(Ft.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),We.createElement(Ft.Z,{className:"ml20"},We.createElement(je.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:xt()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:me||Ki,value:Pt.late_time?xt()(Pt.late_time):"",disabledDate:be=>Ge(be,Et==null?void 0:Et.course_end_date),onChange:(be,Pi)=>{var Gi;if((0,Te.Rm)()&&!((Gi=hn.AssistantObject.practice)!=null&&Gi.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Pt.late_time=Pi,ln(Object.assign({},Pt))}})))):rn.map(function(be,Pi){var Gi;return We.createElement(Ft.Z,{span:24,key:Pi},We.createElement(Fe.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},We.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Pi+1),We.createElement(it.default,{disabled:me||!((Gi=De==null?void 0:De.homework_status)!=null&&Gi.includes("\u672A\u53D1\u5E03"))&&be.id||(Et==null?void 0:Et.anonymous_comment),mode:"multiple",className:ge.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof be.group_name=="string"?[be.group_name]:be.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:hr=>{var $i;if((0,Te.Rm)()&&!(($i=hn.AssistantObject.practice)!=null&&$i.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}rn[Pi].group_name=hr,rn[Pi].group_id=be.group_id,ht(rn.slice())}},Et.group_settings&&Et.group_settings.map(function(hr){const $i=rn.map(_r=>_r.group_name).flat(),fo=et.map(_r=>_r.group_name).flat();if(Pt!=null&&Pt.unified_setting){if(!$i.includes(hr.group_name))return We.createElement(Qn,{value:hr.group_name,key:hr.id},hr.group_name)}else if(fo.includes(hr.group_name)&&!$i.includes(hr.group_name))return We.createElement(Qn,{value:hr.group_name,key:hr.id},hr.group_name)})),We.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),We.createElement(Pe.Z,{disabled:me||Xr(be.id),value:{type:be.penalty_type,inputValue:be.late_penalty},onChange:hr=>{var $i;if((0,Te.Rm)()&&!(($i=hn.AssistantObject.practice)!=null&&$i.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}rn[Pi].late_penalty=hr.inputValue,rn[Pi].penalty_type=hr.type,ht([...rn])}}),We.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),We.createElement(je.default,{size:"large",disabled:me||Xr(be.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:xt()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:hr=>Ge(hr,Et==null?void 0:Et.course_end_date),format:"YYYY-MM-DD HH:mm",value:be!=null&&be.late_time?xt()(be.late_time):void 0,onChange:(hr,$i)=>{var fo;if((0,Te.Rm)()&&!((fo=hn.AssistantObject.practice)!=null&&fo.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}rn[Pi].late_time=$i,ht([...rn])}}),!me&&We.createElement("div",{style:{display:"flex",width:"50px"}},We.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var hr;if((0,Te.Rm)()&&!((hr=hn.AssistantObject.practice)!=null&&hr.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ht(rn.concat({penalty_type:Pe.Q.Percent,late_penalty:20}))}}),Pi>0&&!be.id&&We.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var hr;if((0,Te.Rm)()&&!((hr=hn.AssistantObject.practice)!=null&&hr.can_late)){kt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}rn=rn.filter(($i,fo)=>Pi!==fo),ht(rn.slice()),setTimeout(()=>ht(rn.slice()),10)}}))))})),!me&&We.createElement(We.Fragment,null,We.createElement(gt.ZP,{type:"primary",size:"large",loading:He,style:{width:"138px",marginTop:"30px"},onClick:()=>Ui()},"\u4FDD\u5B58")),We.createElement(we.Z,{onConfirm:(be,Pi)=>{et.splice(be,0,...Pi),et.splice(be+Pi.length,1);const Gi=(0,se.QE)([...et]);Ut([...Gi])}}),We.createElement(Oe.Z,{resdata:Fn,type:"shixun",okloading:He,oktext:(Fn==null?void 0:Fn.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:be=>Bn(void 0,null,function*(){Me(!0);let Pi=yield(0,te.ZP)(`/api/courses/${jt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(jt.categoryId)]}});Me(!1),(Pi==null?void 0:Pi.status)===0&&vr(ci)})}))};Pn.ZP=(0,ve.connect)(({shixunHomeworks:$t,classroomList:cn,loading:Zn,user:hn})=>({shixunHomeworks:$t,classroomList:cn,loading:Zn.effects,user:hn}))(Dt)},68641:function(On,Pn,Se){"use strict";var Ee=Se(59301),je=Se(24645),it=Se(78241),kt=Se(43418),Xe=Se(8591),pt=Se(2595),Fe=Se(42203),Ft=Se(10148),Ct=Se(63593),nt=Se(70635),gt=Se(61186),wt=Se.n(gt),xt=Se(58130),Te=Se(59301),te=Object.defineProperty,ne=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(Oe,ze,We)=>ze in Oe?te(Oe,ze,{enumerable:!0,configurable:!0,writable:!0,value:We}):Oe[ze]=We,ve=(Oe,ze)=>{for(var We in ze||(ze={}))he.call(ze,We)&&ge(Oe,We,ze[We]);if(ne)for(var We of ne(ze))se.call(ze,We)&&ge(Oe,We,ze[We]);return Oe},Pe=(Oe,ze,We)=>new Promise((Ue,ut)=>{var Ke=_t=>{try{St(We.next(_t))}catch(Qt){ut(Qt)}},Ht=_t=>{try{St(We.throw(_t))}catch(Qt){ut(Qt)}},St=_t=>_t.done?Ue(_t.value):Promise.resolve(_t.value).then(Ke,Ht);St((We=We.apply(Oe,ze)).next())});const{Dragger:ke}=je.default,we=({classroomList:Oe,dispatch:ze,onOk:We})=>{const Ue=(0,Fe.useParams)(),[ut]=it.default.useForm(),[Ke,Ht]=(0,Ee.useState)(),[St,_t]=(0,Ee.useState)(!1),Qt={height:100,onRemove:()=>{Ht("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:qt=>Pe(void 0,null,function*(){return Ht(qt),!1})};return(0,Ee.useEffect)(()=>{ut.setFieldsValue({publish_time:wt()(wt()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:wt()(wt()(new Date((0,xt.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Te.createElement(kt.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Oe.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:St},onOk:()=>Pe(void 0,null,function*(){ut.submit()}),onCancel:()=>{ut.resetFields(),ze({type:"classroomList/setActionTabs",payload:{}})}},Te.createElement(it.default,{form:ut,onFinish:qt=>Pe(void 0,null,function*(){var sn,Bn,yt;if(!(Ke!=null&&Ke.size)){Xe.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}_t(!0);let Ge=new FormData;Ge.append("type",Oe.actionTabs.type),Ge.append("file",Ke);let tn;window.location.href.indexOf("exercise")>-1?tn=`/api/exercises/${Oe.actionTabs.id}/supplement_score.json`:tn=`/api/homework_commons/${Oe.actionTabs.id}/supplement_score.json`;let Wn=yield(0,nt.ZP)(tn,{method:"post",body:Ge},!0);_t(!1),(Wn==null?void 0:Wn.status)===0&&(We(),ut.resetFields(),ze({type:"classroomList/setActionTabs",payload:{}}),((Bn=(sn=Wn==null?void 0:Wn.data)==null?void 0:sn.fail)==null?void 0:Bn.length)>0&&kt.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Te.createElement(pt.default,{pagination:!1,dataSource:(yt=Wn==null?void 0:Wn.data)==null?void 0:yt.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,xt.FH)("",Ft.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Oe.actionTabs.type}`)}}))})},Te.createElement(it.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Oe.actionTabs.name),Te.createElement(it.default.Item,{style:{marginBottom:0},label:Te.createElement("div",null,Te.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Te.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Te.createElement("div",null,Te.createElement("a",{download:"\u6A21\u7248.xlsx",className:Ct.Z.downloadbutton,href:Ft.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Oe.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Te.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Te.createElement(it.default.Item,{style:{marginBottom:0}},Te.createElement(ke,ve({},Qt),Te.createElement("a",{className:Ct.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Te.createElement("br",null),Te.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Pn.Z=(0,Fe.connect)(({classroomList:Oe})=>({classroomList:Oe}))(we)},706:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return nt}});var Ee=Se(59301),je=Se(92832),it=Se(24905),kt=Se(95237),Xe={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",Fe=Se(97267),Ft=(gt,wt,xt)=>new Promise((Te,te)=>{var ne=ge=>{try{se(xt.next(ge))}catch(ve){te(ve)}},he=ge=>{try{se(xt.throw(ge))}catch(ve){te(ve)}},se=ge=>ge.done?Te(ge.value):Promise.resolve(ge.value).then(ne,he);se((xt=xt.apply(gt,wt)).next())}),nt=({data:gt,value:wt=[],handleChangePage:xt,setSelectedRowKeys:Te,selectedRowKeys:te,onChange:ne=()=>{}})=>{const[he,se]=(0,Ee.useState)([]),[ge,ve]=(0,Ee.useState)([]),[Pe,ke]=(0,Ee.useState)([]);let[we,Oe]=(0,Ee.useState)(1),[ze,We]=(0,Ee.useState)();return(0,Ee.useEffect)(()=>{se(gt),ve([]),ke([])},[gt]),(0,Ee.useEffect)(()=>{Te&&(ve(te),ke(te))},[te]),Ee.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},Ee.createElement("div",{className:Xe.leftdiv},Ee.createElement(je.default.Search,{size:"middle",onChange:Ue=>Ft(void 0,null,function*(){se(gt.filter(ut=>{var Ke;return(Ke=ut==null?void 0:ut.name)==null?void 0:Ke.includes(Ue.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),he.length===0&&Ee.createElement(Fe.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),Ee.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},Ee.createElement(it.default.Group,{value:ge.map(Ue=>`${Ue.id}`),onChange:Ue=>{Te(he.filter(ut=>Ue.includes(`${ut.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},he.map((Ue,ut)=>Ee.createElement(kt.Z,{key:Ue.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},Ee.createElement(it.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Ue.is_published,value:`${Ue.id}`},Ee.createElement("div",{className:Xe.listClass},Ee.createElement("span",{className:Xe.spantitle,style:{width:Ue.is_published?"108px":"170px"}},Ue.name),Ue.is_published&&Ee.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),Ee.createElement("div",{className:Xe.rightdiv},Ee.createElement(je.default.Search,{onChange:Ue=>{ke(ge.filter(ut=>ut.name.includes(Ue.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Pe.length===0&&Ee.createElement(Fe.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Pe.length>0&&Ee.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},Ee.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Pe.map((Ue,ut)=>Ee.createElement(kt.Z,{justify:"space-between",style:{marginTop:"10px"},key:Ue.id},Ee.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Ue.name),Ee.createElement("img",{src:pt,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Te(ge.filter(Ke=>`${Ke.id}`!=`${Ue.id}`))}})))))))}},30738:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ne}});var Ee=Se(59301),je=Se(42203),it=Se(78550),kt=Se(43418),Xe=Se(92832),pt=Se(95237),Fe=Se(43604),Ft={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Ct=Se(61186),nt=Se.n(Ct),gt=Se(58130),wt=Se(97267),xt=Se(59301);const{RangePicker:Te}=it.default,te=({dispatch:he,classroomList:se,onConfirm:ge})=>{const[ve,Pe]=(0,Ee.useState)([]),[ke,we]=(0,Ee.useState)([]),[Oe,ze]=(0,Ee.useState)("");(0,Ee.useEffect)(()=>{var ut;if(se.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let Ke=se.actionTabs.data;console.log("data",Ke);let Ht=(ut=Ke==null?void 0:Ke.group_name)==null?void 0:ut.map((St,_t)=>{var Qt;return{group_id:Ke==null?void 0:Ke.group_id[_t],group_name:Ke==null?void 0:Ke.group_name[_t],is_admin:Ke==null?void 0:Ke.is_admin,end_time:Ke==null?void 0:Ke.end_time,publish_time:Array.isArray(Ke==null?void 0:Ke.publish_time)?(Qt=Ke==null?void 0:Ke.publish_time)==null?void 0:Qt[0]:Ke==null?void 0:Ke.publish_time}});Ht&&(Pe([...Ht]),we([...Ht]))}},[se.actionTabs]);const We=()=>{he({type:"classroomList/setActionTabs",payload:{}}),ze("")},Ue=ut=>{if(ut){const Ke=ke==null?void 0:ke.filter(Ht=>{var St,_t;return(_t=(St=Ht==null?void 0:Ht.group_name)==null?void 0:St.toLowerCase())==null?void 0:_t.includes(ut==null?void 0:ut.toLowerCase())});Pe(Ke)}else Pe(ke)};return xt.createElement(kt.default,{width:980,title:xt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},xt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",xt.createElement("span",{className:Ft.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),xt.createElement(Xe.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Oe,onChange:ut=>{ze(ut.target.value.trim()),Ue(ut.target.value.trim())}})),centered:!0,maskClosable:!1,open:se.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>We(),onOk:()=>{var ut;ge((ut=se.actionTabs)==null?void 0:ut.index,ke),We()}},xt.createElement("div",{className:Ft.modal_con},xt.createElement(pt.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ve==null?void 0:ve.length)>0?ve.map(function(ut,Ke){var Ht,St;return xt.createElement(Fe.Z,{span:24,key:Ke},xt.createElement(pt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ke==(ve==null?void 0:ve.length)-1?"0px":"10px"}},xt.createElement("div",{className:Ft.multiple_select,title:ut.group_name},ut.group_name),xt.createElement("div",{className:"ml20"},xt.createElement(Te,{size:"large",ranges:{\u6B64\u523B:[ut.publish_time?nt()(ut.publish_time):nt()(),nt()()]},allowClear:!1,disabled:(Ht=se.actionTabs)==null?void 0:Ht.rangePickerDisabled,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:_t=>{var Qt;return(0,gt.Q8)(_t,(Qt=se.actionTabs)==null?void 0:Qt.disabledDate)},disabledTime:_t=>(0,gt.d0)(_t),showTime:{showNow:!0,format:"HH:mm",defaultValue:[nt()((0,gt.U6)(),"HH:mm"),nt()((0,gt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:ut.publish_time&&[nt()(ut.publish_time),ut.end_time?nt()(ut.end_time):void 0],onChange:(_t,Qt)=>{ve[Ke].publish_time=Qt[0],ve[Ke].end_time=Qt[1],Pe([...ve]),ke.forEach(qt=>{qt.group_id===ut.group_id&&(qt.publish_time=Qt[0],qt.end_time=Qt[1])}),we([...ke])}})),(St=se.actionTabs)!=null&&St.rangePickerDisabled?xt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):xt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ve.splice(Ke,1),Pe([...ve]),ke.forEach((_t,Qt)=>{_t.group_id===ut.group_id&&ke.splice(Qt,1)}),we([...ke])}})))}):xt.createElement(wt.Z,null))))};var ne=(0,je.connect)(({classroomList:he})=>({classroomList:he}))(te)},31087:function(On,Pn,Se){"use strict";Se.d(Pn,{AL:function(){return Pe},Iy:function(){return gt},Qv:function(){return Te},ez:function(){return ve},jb:function(){return wt}});var Ee=Se(32834),je=Se.n(Ee),it=Se(11690),kt=Se.n(it);let Xe=1;function pt(We,Ue){const ut=We.match(/^(\s+)(?:```)/);if(ut===null)return Ue;const Ke=ut[1];return Ue.split(`
|
|
|
`).map(Ht=>{const St=Ht.match(/^\s+/);if(St===null)return Ht;const[_t]=St;return _t.length>=Ke.length?Ht.slice(Ke.length):Ht}).join(`
|
|
|
`)}let Fe=[],Ft=["<ul>"];const Ct=new(je()).Renderer,nt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function gt(){Fe.length=0,Ft=["<ul>"]}const wt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function xt(We,Ue,ut,Ke){if(Ue>=We.length||We[Ue].level<=ut)return Ue;var Ht=We[Ue];Ke.push("<li><a href='#"+Xe+Ht.anchor+"'>"+Ht.text+"</a>"),Ue++;var St=[];return Ue=xt(We,Ue,Ht.level,St),St.length>0&&(Ke.push("<ul>"),St.forEach(function(_t){Ke.push(_t)}),Ke.push("</ul>")),Ke.push("</li>"),Ue=xt(We,Ue,ut,Ke),Ue}function Te(){return xt(Fe,0,0,Ft),Ft.push("</ul>"),Ft.join("")}const te={heading(We){const Ue=nt.exec(We);if(Xe+=1,Ue)return{type:"heading",raw:Ue[0],depth:Ue[1].length,text:Ue[2]}},fences(We){const Ue=this.rules.block.fences.exec(We);if(Ue){const ut=Ue[0];let Ke=pt(ut,Ue[3]||"");const Ht=Ue[2]?Ue[2].trim():Ue[2];if(["latex","katex","math"].indexOf(Ht)>=0){const St=se(),_t=Ke;Ke=St,ge[St]={type:"block",expression:_t}}return{type:"code",raw:ut,lang:Ht,text:Ke}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const se=()=>`__special_katext_id_${he++}__`;let ge={};function ve(){return ge}function Pe(){he=0,ge={}}function ke(We){return We=We.replace(ne,(Ue,ut)=>{const Ke=se();return ge[Ke]={type:"inline",expression:ut},Ke}),We}const we=Ct.listitem;Ct.listitem=function(We){return we(ke(We))};const Oe=Ct.paragraph;Ct.paragraph=function(We){return Oe(ke(We))};const ze=Ct.tablecell;Ct.tablecell=function(We,Ue){return ze(ke(We),Ue)},Ct.code=function(We,Ue,ut){const Ke=(Ue||"").match(/\S*/)[0];return Ke?["latex","katex","math"].indexOf(Ke)>=0?`<p class='editormd-tex'>${We}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ue}">${ut?We:(0,it.escape)(We,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ut?We:(0,it.escape)(We,!0))+"</code></pre>"},Ct.heading=function(We,Ue,ut){let Ke=this.options.headerPrefix+ut.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Fe.push({anchor:Ke,level:Ue,text:We}),"<h"+Ue+' id="'+Xe+Ke+'">'+We+"</h"+Ue+">"},je().setOptions({silent:!0,gfm:!0,pedantic:!1}),je().use({tokenizer:te,renderer:Ct}),Pn.ZP=je()},18032:function(On,Pn,Se){"use strict";Se.d(Pn,{rX:function(){return Pe},pW:function(){return ke},gy:function(){return we},xY:function(){return ve},O5:function(){return ge},tJ:function(){return Te},o1:function(){return te},Rd:function(){return se}});var Ee=Se(42203),je=Se(43418),it=Se(28103),kt=Se(8591),Xe=Se(2119),pt=Se(58130),Fe=Se(80205),Ft=Se(25510),Ct="data:image/png;base64,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",nt=Se.p+"static/newqrcode.a8740efb.png",gt=Se(32637),wt=Se(59301),xt=(Oe,ze,We)=>new Promise((Ue,ut)=>{var Ke=_t=>{try{St(We.next(_t))}catch(Qt){ut(Qt)}},Ht=_t=>{try{St(We.throw(_t))}catch(Qt){ut(Qt)}},St=_t=>_t.done?Ue(_t.value):Promise.resolve(_t.value).then(Ke,Ht);St((We=We.apply(Oe,ze)).next())});const Te=(Oe,ze=!1)=>!!(te(Oe)&&ne(ze)),te=Oe=>(0,Xe.bg)()?!0:(Oe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ne=(Oe=!1)=>{var ze;const{user:We}=(0,Ee.getDvaApp)()._store.getState();return(ze=We.userInfo)!=null&&ze.profile_completed?!0:(je.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,pt.xg)("/account/profile/edit"),he()}}),!1)},he=()=>{je.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},se=()=>{je.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:wt.createElement("div",{style:{textAlign:"center"}},wt.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),wt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:gt}),wt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ge=()=>{var Oe;const{user:ze}=(0,Ee.getDvaApp)()._store.getState();return(Oe=ze.userInfo)!=null&&Oe.professional_certification?!0:(je.default.confirm({title:"\u63D0\u793A",centered:!0,content:wt.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,pt.xg)("/account/certification")}}),!1)},ve=()=>(0,Xe.V9)()?!0:(je.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:wt.createElement("div",{className:"tc",style:{marginLeft:-38}},wt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),wt.createElement("img",{src:nt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Pe=(Oe,ze)=>Oe?!0:(je.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:wt.createElement("div",null,wt.createElement("p",null,ze||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),wt.createElement("div",{style:{marginLeft:"110px"}},wt.createElement("img",{src:Ct,width:200}),wt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,pt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ke=Oe=>{je.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:wt.createElement("div",null,wt.createElement("div",null,wt.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),wt.createElement(it.Z,null),wt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",wt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",wt.createElement("a",null,Oe),"\u5929\u3002"),wt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",wt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),wt.createElement("div",{style:{textAlign:"center",marginTop:30}},wt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ft,alt:"\u4E8C\u7EF4\u7801",width:160})))})},we=(Oe,ze="")=>{const{shixunsDetail:{detail:We}}=(0,Ee.getDvaApp)()._store.getState();if((We==null?void 0:We.public)===2||(We==null?void 0:We.public)===1||(We==null?void 0:We.shixun_status)===3){let Ue="";return(We==null?void 0:We.public)===2&&(Ue="\u5DF2\u516C\u5F00"),(We==null?void 0:We.public)===1&&(Ue="\u5F85\u5BA1\u6838"),(We==null?void 0:We.shixun_status)===3&&(Ue="\u5DF2\u5173\u95ED"),je.default.info({centered:!0,icon:wt.createElement(Fe.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:wt.createElement("div",{className:"tc",style:{marginLeft:-38}},wt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},wt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Ue,"\uFF0C",ze,"\u3002"),wt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),wt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ft,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(We==null?void 0:We.shixun_status)===2?(je.default.confirm({centered:!0,icon:wt.createElement(Fe.Z,null),title:"\u63D0\u793A",content:wt.createElement("div",null,wt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",ze,"\u3002"),wt.createElement("br",null),wt.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{je.default.confirm({width:440,centered:!0,icon:wt.createElement(Fe.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>xt(void 0,null,function*(){(yield Oe({type:"shixunsDetail/cancelRelease",payload:{id:We==null?void 0:We.identifier}})).status!==401&&(kt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Oe({type:"shixunsDetail/getShixunsDetail",payload:{id:We==null?void 0:We.identifier}}),Oe({type:"practiceSetting/getCommonData",payload:{id:We==null?void 0:We.identifier}}))})})}}),!0):!1}},50371:function(On,Pn){"use strict";function Se(){const Ee=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let je=1;je<arguments.length;je++){const it=je<0||arguments.length<=je?void 0:arguments[je];it&&Object.keys(it).forEach(kt=>{const Xe=it[kt];Xe!==void 0&&(Ee[kt]=Xe)})}return Ee}Pn.Z=Se},13845:function(On,Pn,Se){"use strict";Se.d(Pn,{F:function(){return Ee},Z:function(){return je}});function Ee(it){return it!=null&&it===it.window}function je(it,kt){var Xe,pt;if(typeof window=="undefined")return 0;const Fe=kt?"scrollTop":"scrollLeft";let Ft=0;return Ee(it)?Ft=it[kt?"pageYOffset":"pageXOffset"]:it instanceof Document?Ft=it.documentElement[Fe]:(it instanceof HTMLElement||it)&&(Ft=it[Fe]),it&&!Ee(it)&&typeof Ft!="number"&&(Ft=(pt=((Xe=it.ownerDocument)!==null&&Xe!==void 0?Xe:it).documentElement)===null||pt===void 0?void 0:pt[Fe]),Ft}},56762:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return je}});var Ee=Se(59301);function je(){const[,it]=Ee.useReducer(kt=>kt+1,0);return it}},68031:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return kt}});var Ee=Se(23073);function je(Xe,pt,Fe,Ft){const Ct=Fe-pt;return Xe/=Ft/2,Xe<1?Ct/2*Xe*Xe*Xe+pt:Ct/2*((Xe-=2)*Xe*Xe+2)+pt}var it=Se(13845);function kt(Xe){let pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Fe=()=>window,callback:Ft,duration:Ct=450}=pt,nt=Fe(),gt=(0,it.Z)(nt,!0),wt=Date.now(),xt=()=>{const te=Date.now()-wt,ne=je(te>Ct?Ct:te,gt,Xe,Ct);(0,it.F)(nt)?nt.scrollTo(window.pageXOffset,ne):nt instanceof Document||nt.constructor.name==="HTMLDocument"?nt.documentElement.scrollTop=ne:nt.scrollTop=ne,te<Ct?(0,Ee.Z)(xt):typeof Ft=="function"&&Ft()};(0,Ee.Z)(xt)}},24905:function(On,Pn,Se){"use strict";Se.d(Pn,{default:function(){return Oe}});var Ee=Se(92310),je=Se.n(Ee),it=Se(5630),kt=Se(59301),Xe=Se(36355),pt=Se(1684),Fe=Se(32441),Ct=kt.createContext(null),nt=Se(98447),gt=Se(14088),wt=Se(4572),xt=function(ze,We){var Ue={};for(var ut in ze)Object.prototype.hasOwnProperty.call(ze,ut)&&We.indexOf(ut)<0&&(Ue[ut]=ze[ut]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ut=Object.getOwnPropertySymbols(ze);Ke<ut.length;Ke++)We.indexOf(ut[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ze,ut[Ke])&&(Ue[ut[Ke]]=ze[ut[Ke]]);return Ue};const Te=(ze,We)=>{var Ue;const{prefixCls:ut,className:Ke,rootClassName:Ht,children:St,indeterminate:_t=!1,style:Qt,onMouseEnter:qt,onMouseLeave:sn,skipGroup:Bn=!1,disabled:yt}=ze,Ge=xt(ze,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:tn,direction:Wn,checkbox:Qn}=kt.useContext(Xe.E_),Dt=kt.useContext(Ct),{isFormItemInput:$t}=kt.useContext(Fe.aM),cn=kt.useContext(pt.Z),Zn=(Ue=(Dt==null?void 0:Dt.disabled)||yt)!==null&&Ue!==void 0?Ue:cn,hn=kt.useRef(Ge.value);kt.useEffect(()=>{Dt==null||Dt.registerValue(Ge.value)},[]),kt.useEffect(()=>{if(!Bn)return Ge.value!==hn.current&&(Dt==null||Dt.cancelValue(hn.current),Dt==null||Dt.registerValue(Ge.value),hn.current=Ge.value),()=>Dt==null?void 0:Dt.cancelValue(Ge.value)},[Ge.value]);const ii=tn("checkbox",ut),[mt,Xn]=(0,nt.ZP)(ii),ri=Object.assign({},Ge);Dt&&!Bn&&(ri.onChange=function(){Ge.onChange&&Ge.onChange.apply(Ge,arguments),Dt.toggleOption&&Dt.toggleOption({label:St,value:Ge.value})},ri.name=Dt.name,ri.checked=Dt.value.includes(Ge.value));const pi=je()(`${ii}-wrapper`,{[`${ii}-rtl`]:Wn==="rtl",[`${ii}-wrapper-checked`]:ri.checked,[`${ii}-wrapper-disabled`]:Zn,[`${ii}-wrapper-in-form-item`]:$t},Qn==null?void 0:Qn.className,Ke,Ht,Xn),Mn=je()({[`${ii}-indeterminate`]:_t},wt.A,Xn),Gt=_t?"mixed":void 0;return mt(kt.createElement(gt.Z,{component:"Checkbox",disabled:Zn},kt.createElement("label",{className:pi,style:Object.assign(Object.assign({},Qn==null?void 0:Qn.style),Qt),onMouseEnter:qt,onMouseLeave:sn},kt.createElement(it.Z,Object.assign({"aria-checked":Gt},ri,{prefixCls:ii,className:Mn,disabled:Zn,ref:We})),St!==void 0&&kt.createElement("span",null,St))))};var ne=kt.forwardRef(Te),he=Se(26390),se=Se(64002),ge=function(ze,We){var Ue={};for(var ut in ze)Object.prototype.hasOwnProperty.call(ze,ut)&&We.indexOf(ut)<0&&(Ue[ut]=ze[ut]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ut=Object.getOwnPropertySymbols(ze);Ke<ut.length;Ke++)We.indexOf(ut[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ze,ut[Ke])&&(Ue[ut[Ke]]=ze[ut[Ke]]);return Ue};const ve=(ze,We)=>{const{defaultValue:Ue,children:ut,options:Ke=[],prefixCls:Ht,className:St,rootClassName:_t,style:Qt,onChange:qt}=ze,sn=ge(ze,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Bn,direction:yt}=kt.useContext(Xe.E_),[Ge,tn]=kt.useState(sn.value||Ue||[]),[Wn,Qn]=kt.useState([]);kt.useEffect(()=>{"value"in sn&&tn(sn.value||[])},[sn.value]);const Dt=kt.useMemo(()=>Ke.map(zt=>typeof zt=="string"||typeof zt=="number"?{label:zt,value:zt}:zt),[Ke]),$t=zt=>{Qn(Mt=>Mt.filter(at=>at!==zt))},cn=zt=>{Qn(Mt=>[].concat((0,he.Z)(Mt),[zt]))},Zn=zt=>{const Mt=Ge.indexOf(zt.value),at=(0,he.Z)(Ge);Mt===-1?at.push(zt.value):at.splice(Mt,1),"value"in sn||tn(at),qt==null||qt(at.filter(jt=>Wn.includes(jt)).sort((jt,Et)=>{const dt=Dt.findIndex(De=>De.value===jt),ot=Dt.findIndex(De=>De.value===Et);return dt-ot}))},hn=Bn("checkbox",Ht),ii=`${hn}-group`,[mt,Xn]=(0,nt.ZP)(hn),ri=(0,se.Z)(sn,["value","disabled"]),pi=Ke.length?Dt.map(zt=>kt.createElement(ne,{prefixCls:hn,key:zt.value.toString(),disabled:"disabled"in zt?zt.disabled:sn.disabled,value:zt.value,checked:Ge.includes(zt.value),onChange:zt.onChange,className:`${ii}-item`,style:zt.style,title:zt.title},zt.label)):ut,Mn={toggleOption:Zn,value:Ge,disabled:sn.disabled,name:sn.name,registerValue:cn,cancelValue:$t},Gt=je()(ii,{[`${ii}-rtl`]:yt==="rtl"},St,_t,Xn);return mt(kt.createElement("div",Object.assign({className:Gt,style:Qt},ri,{ref:We}),kt.createElement(Ct.Provider,{value:Mn},pi)))},Pe=kt.forwardRef(ve);var ke=kt.memo(Pe);const we=ne;we.Group=ke,we.__ANT_CHECKBOX=!0;var Oe=we},98447:function(On,Pn,Se){"use strict";Se.d(Pn,{C2:function(){return Xe}});var Ee=Se(17313),je=Se(37613),it=Se(83116);const kt=pt=>{const{checkboxCls:Fe}=pt,Ft=`${Fe}-wrapper`;return[{[`${Fe}-group`]:Object.assign(Object.assign({},(0,Ee.Wf)(pt)),{display:"inline-flex",flexWrap:"wrap",columnGap:pt.marginXS,[`> ${pt.antCls}-row`]:{flex:1}}),[Ft]:Object.assign(Object.assign({},(0,Ee.Wf)(pt)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ft}`]:{marginInlineStart:0},[`&${Ft}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Fe]:Object.assign(Object.assign({},(0,Ee.Wf)(pt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:pt.borderRadiusSM,alignSelf:"center",[`${Fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Fe}-inner`]:Object.assign({},(0,Ee.oN)(pt))},[`${Fe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:pt.checkboxSize,height:pt.checkboxSize,direction:"ltr",backgroundColor:pt.colorBgContainer,border:`${pt.lineWidth}px ${pt.lineType} ${pt.colorBorder}`,borderRadius:pt.borderRadiusSM,borderCollapse:"separate",transition:`all ${pt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:pt.checkboxSize/14*5,height:pt.checkboxSize/14*8,border:`${pt.lineWidthBold}px solid ${pt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${pt.motionDurationFast} ${pt.motionEaseInBack}, opacity ${pt.motionDurationFast}`}},"& + span":{paddingInlineStart:pt.paddingXS,paddingInlineEnd:pt.paddingXS}})},{[`
|
|
|
${Ft}:not(${Ft}-disabled),
|
|
|
${Fe}:not(${Fe}-disabled)
|
|
|
`]:{[`&:hover ${Fe}-inner`]:{borderColor:pt.colorPrimary}},[`${Ft}:not(${Ft}-disabled)`]:{[`&:hover ${Fe}-checked:not(${Fe}-disabled) ${Fe}-inner`]:{backgroundColor:pt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Fe}-checked:not(${Fe}-disabled):after`]:{borderColor:pt.colorPrimaryHover}}},{[`${Fe}-checked`]:{[`${Fe}-inner`]:{backgroundColor:pt.colorPrimary,borderColor:pt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${pt.motionDurationMid} ${pt.motionEaseOutBack} ${pt.motionDurationFast}`}}},[`
|
|
|
${Ft}-checked:not(${Ft}-disabled),
|
|
|
${Fe}-checked:not(${Fe}-disabled)
|
|
|
`]:{[`&:hover ${Fe}-inner`]:{backgroundColor:pt.colorPrimaryHover,borderColor:"transparent"}}},{[Fe]:{"&-indeterminate":{[`${Fe}-inner`]:{backgroundColor:pt.colorBgContainer,borderColor:pt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:pt.fontSizeLG/2,height:pt.fontSizeLG/2,backgroundColor:pt.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ft}-disabled`]:{cursor:"not-allowed"},[`${Fe}-disabled`]:{[`&, ${Fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Fe}-inner`]:{background:pt.colorBgContainerDisabled,borderColor:pt.colorBorder,"&:after":{borderColor:pt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:pt.colorTextDisabled},[`&${Fe}-indeterminate ${Fe}-inner::after`]:{background:pt.colorTextDisabled}}}]};function Xe(pt,Fe){const Ft=(0,je.TS)(Fe,{checkboxCls:`.${pt}`,checkboxSize:Fe.controlInteractiveSize});return[kt(Ft)]}Pn.ZP=(0,it.Z)("Checkbox",(pt,Fe)=>{let{prefixCls:Ft}=Fe;return[Xe(Ft,pt)]})},93891:function(On,Pn,Se){"use strict";var Ee=Se(59301),je=Se(36355),it=Se(64165);const kt=Xe=>{const{componentName:pt}=Xe,{getPrefixCls:Fe}=(0,Ee.useContext)(je.E_),Ft=Fe("empty");switch(pt){case"Table":case"List":return Ee.createElement(it.Z,{image:it.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ee.createElement(it.Z,{image:it.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ft}-small`});default:return Ee.createElement(it.Z,null)}};Pn.Z=kt},78550:function(On,Pn,Se){"use strict";Se.d(Pn,{default:function(){return Us}});var Ee=Se(61186),je=Se.n(Ee),it=Se(51395),kt=Se(90111),Xe=Se.n(kt),pt=Se(58319),Fe=Se.n(pt),Ft=Se(23250),Ct=Se.n(Ft),nt=Se(74959),gt=Se.n(nt),wt=Se(10238),xt=Se.n(wt),Te=Se(33656),te=Se.n(Te);je().extend(te()),je().extend(xt()),je().extend(Xe()),je().extend(Fe()),je().extend(Ct()),je().extend(gt()),je().extend(function(Ie,Ve){var _e=Ve.prototype,Rt=_e.format;_e.format=function(fn){var mn=(fn||"").replace("Wo","wo");return Rt.bind(this)(mn)}});var ne={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},he=function(Ve){var _e=ne[Ve];return _e||Ve.split("_")[0]},se=function(){(0,it.ET)(!1,"Not match any format. Please help to fire a issue about this.")},ge={getNow:function(){return je()()},getFixedDate:function(Ve){return je()(Ve,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Ve){return Ve.endOf("month")},getWeekDay:function(Ve){var _e=Ve.locale("en");return _e.weekday()+_e.localeData().firstDayOfWeek()},getYear:function(Ve){return Ve.year()},getMonth:function(Ve){return Ve.month()},getDate:function(Ve){return Ve.date()},getHour:function(Ve){return Ve.hour()},getMinute:function(Ve){return Ve.minute()},getSecond:function(Ve){return Ve.second()},addYear:function(Ve,_e){return Ve.add(_e,"year")},addMonth:function(Ve,_e){return Ve.add(_e,"month")},addDate:function(Ve,_e){return Ve.add(_e,"day")},setYear:function(Ve,_e){return Ve.year(_e)},setMonth:function(Ve,_e){return Ve.month(_e)},setDate:function(Ve,_e){return Ve.date(_e)},setHour:function(Ve,_e){return Ve.hour(_e)},setMinute:function(Ve,_e){return Ve.minute(_e)},setSecond:function(Ve,_e){return Ve.second(_e)},isAfter:function(Ve,_e){return Ve.isAfter(_e)},isValidate:function(Ve){return Ve.isValid()},locale:{getWeekFirstDay:function(Ve){return je()().locale(he(Ve)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Ve,_e){return _e.locale(he(Ve)).weekday(0)},getWeek:function(Ve,_e){return _e.locale(he(Ve)).week()},getShortWeekDays:function(Ve){return je()().locale(he(Ve)).localeData().weekdaysMin()},getShortMonths:function(Ve){return je()().locale(he(Ve)).localeData().monthsShort()},format:function(Ve,_e,Rt){return _e.locale(he(Ve)).format(Rt)},parse:function(Ve,_e,Rt){for(var Zt=he(Ve),fn=0;fn<Rt.length;fn+=1){var mn=Rt[fn],Gn=_e;if(mn.includes("wo")||mn.includes("Wo")){for(var Un=Gn.split("-")[0],ui=Gn.split("-")[1],Ii=je()(Un,"YYYY").startOf("year").locale(Zt),li=0;li<=52;li+=1){var Li=Ii.add(li,"week");if(Li.format("Wo")===ui)return Li}return se(),null}var si=je()(Gn,mn,!0).locale(Zt);if(si.isValid())return si}return _e&&se(),null}}},ve=ge,Pe=Se(53487),ke=Se(5891),we=Se(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},ze=Oe,We=Se(88853),Ue=function(Ve,_e){return we.createElement(We.Z,(0,ke.Z)({},Ve,{ref:_e,icon:ze}))},ut=we.forwardRef(Ue),Ke=ut,Ht={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},St=Ht,_t=function(Ve,_e){return we.createElement(We.Z,(0,ke.Z)({},Ve,{ref:_e,icon:St}))},Qt=we.forwardRef(_t),qt=Qt,sn=Se(33130),Bn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},yt=Bn,Ge=function(Ve,_e){return we.createElement(We.Z,(0,ke.Z)({},Ve,{ref:_e,icon:yt}))},tn=we.forwardRef(Ge),Wn=tn,Qn=Se(92310),Dt=Se.n(Qn),$t=Se(79545),cn=Se(68550),Zn=Se(21882),hn=Se(17928),ii=Se(7711),mt=Se(80962),Xn=Se(57259),ri=Se(29043),pi=Se(35788),Mn=Se(36994),Gt=Se(79722),zt=Se(51346),Mt=10,at=Mt*10,jt=7;function Et(Ie,Ve){if(!Ie&&!Ve)return!0;if(!Ie||!Ve)return!1}function dt(Ie,Ve,_e){var Rt=Et(Ve,_e);if(typeof Rt=="boolean")return Rt;var Zt=Math.floor(Ie.getYear(Ve)/10),fn=Math.floor(Ie.getYear(_e)/10);return Zt===fn}function ot(Ie,Ve,_e){var Rt=Et(Ve,_e);return typeof Rt=="boolean"?Rt:Ie.getYear(Ve)===Ie.getYear(_e)}function De(Ie,Ve){var _e=Math.floor(Ie.getMonth(Ve)/3);return _e+1}function xe(Ie,Ve,_e){var Rt=Et(Ve,_e);return typeof Rt=="boolean"?Rt:ot(Ie,Ve,_e)&&De(Ie,Ve)===De(Ie,_e)}function me(Ie,Ve,_e){var Rt=Et(Ve,_e);return typeof Rt=="boolean"?Rt:ot(Ie,Ve,_e)&&Ie.getMonth(Ve)===Ie.getMonth(_e)}function Ne(Ie,Ve,_e){var Rt=Et(Ve,_e);return typeof Rt=="boolean"?Rt:Ie.getYear(Ve)===Ie.getYear(_e)&&Ie.getMonth(Ve)===Ie.getMonth(_e)&&Ie.getDate(Ve)===Ie.getDate(_e)}function He(Ie,Ve,_e){var Rt=Et(Ve,_e);return typeof Rt=="boolean"?Rt:Ie.getHour(Ve)===Ie.getHour(_e)&&Ie.getMinute(Ve)===Ie.getMinute(_e)&&Ie.getSecond(Ve)===Ie.getSecond(_e)}function Me(Ie,Ve,_e,Rt){var Zt=Et(_e,Rt);return typeof Zt=="boolean"?Zt:ot(Ie,_e,Rt)&&Ie.locale.getWeek(Ve,_e)===Ie.locale.getWeek(Ve,Rt)}function et(Ie,Ve,_e){return Ne(Ie,Ve,_e)&&He(Ie,Ve,_e)}function Ut(Ie,Ve,_e,Rt){return!Ve||!_e||!Rt?!1:!Ne(Ie,Ve,Rt)&&!Ne(Ie,_e,Rt)&&Ie.isAfter(Rt,Ve)&&Ie.isAfter(_e,Rt)}function rn(Ie,Ve,_e){var Rt=Ve.locale.getWeekFirstDay(Ie),Zt=Ve.setDate(_e,1),fn=Ve.getWeekDay(Zt),mn=Ve.addDate(Zt,Rt-fn);return Ve.getMonth(mn)===Ve.getMonth(_e)&&Ve.getDate(mn)>1&&(mn=Ve.addDate(mn,-7)),mn}function ht(Ie,Ve,_e){var Rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Ve){case"year":return _e.addYear(Ie,Rt*10);case"quarter":case"month":return _e.addYear(Ie,Rt);default:return _e.addMonth(Ie,Rt)}}function Pt(Ie,Ve){var _e=Ve.generateConfig,Rt=Ve.locale,Zt=Ve.format;return typeof Zt=="function"?Zt(Ie):_e.locale.format(Rt.locale,Ie,Zt)}function ln(Ie,Ve){var _e=Ve.generateConfig,Rt=Ve.locale,Zt=Ve.formatList;return!Ie||typeof Zt[0]=="function"?null:_e.locale.parse(Rt.locale,Ie,Zt)}function Fn(Ie){var Ve=Ie.cellDate,_e=Ie.mode,Rt=Ie.disabledDate,Zt=Ie.generateConfig;if(!Rt)return!1;var fn=function(Xi,zn,Mi){for(var Ji=zn;Ji<=Mi;){var jr=void 0;switch(Xi){case"date":{if(jr=Zt.setDate(Ve,Ji),!Rt(jr))return!1;break}case"month":{if(jr=Zt.setMonth(Ve,Ji),!Fn({cellDate:jr,mode:"month",generateConfig:Zt,disabledDate:Rt}))return!1;break}case"year":{if(jr=Zt.setYear(Ve,Ji),!Fn({cellDate:jr,mode:"year",generateConfig:Zt,disabledDate:Rt}))return!1;break}}Ji+=1}return!0};switch(_e){case"date":case"week":return Rt(Ve);case"month":{var mn=1,Gn=Zt.getDate(Zt.getEndDate(Ve));return fn("date",mn,Gn)}case"quarter":{var Un=Math.floor(Zt.getMonth(Ve)/3)*3,ui=Un+2;return fn("month",Un,ui)}case"year":return fn("month",0,11);case"decade":{var Ii=Zt.getYear(Ve),li=Math.floor(Ii/Mt)*Mt,Li=li+Mt-1;return fn("year",li,Li)}}}function oi(Ie,Ve){var _e=Ve.formatList,Rt=Ve.generateConfig,Zt=Ve.locale;return(0,Gt.Z)(function(){if(!Ie)return[[""],""];for(var fn="",mn=[],Gn=0;Gn<_e.length;Gn+=1){var Un=_e[Gn],ui=Pt(Ie,{generateConfig:Rt,locale:Zt,format:Un});mn.push(ui),Gn===0&&(fn=ui)}return[mn,fn]},[Ie,_e,Zt],function(fn,mn){return!et(Rt,fn[0],mn[0])||!(0,zt.Z)(fn[1],mn[1],!0)||!(0,zt.Z)(fn[2],mn[2],!0)})}function ci(Ie,Ve){var _e=Ve.formatList,Rt=Ve.generateConfig,Zt=Ve.locale,fn=(0,we.useState)(null),mn=(0,ri.Z)(fn,2),Gn=mn[0],Un=mn[1],ui=(0,we.useRef)(null);function Ii(Mi){var Ji=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(ui.current),Ji){Un(Mi);return}ui.current=requestAnimationFrame(function(){Un(Mi)})}var li=oi(Gn,{formatList:_e,generateConfig:Rt,locale:Zt}),Li=(0,ri.Z)(li,2),si=Li[1];function Xi(Mi){Ii(Mi)}function zn(){var Mi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ii(null,Mi)}return(0,we.useEffect)(function(){zn(!0)},[Ie]),(0,we.useEffect)(function(){return function(){return cancelAnimationFrame(ui.current)}},[]),[si,Xi,zn]}var di=Se(85108),mi=Se(23073),Ui=Se(26390),vr=Se(48886),lr=new Map;function gr(Ie,Ve){var _e;function Rt(){(0,vr.Z)(Ie)?Ve():_e=(0,mi.Z)(function(){Rt()})}return Rt(),function(){mi.Z.cancel(_e)}}function wr(Ie,Ve,_e){if(lr.get(Ie)&&cancelAnimationFrame(lr.get(Ie)),_e<=0){lr.set(Ie,requestAnimationFrame(function(){Ie.scrollTop=Ve}));return}var Rt=Ve-Ie.scrollTop,Zt=Rt/_e*10;lr.set(Ie,requestAnimationFrame(function(){Ie.scrollTop+=Zt,Ie.scrollTop!==Ve&&wr(Ie,Ve,_e-10)}))}function Zr(Ie,Ve){var _e=Ve.onLeftRight,Rt=Ve.onCtrlLeftRight,Zt=Ve.onUpDown,fn=Ve.onPageUpDown,mn=Ve.onEnter,Gn=Ie.which,Un=Ie.ctrlKey,ui=Ie.metaKey;switch(Gn){case di.Z.LEFT:if(Un||ui){if(Rt)return Rt(-1),!0}else if(_e)return _e(-1),!0;break;case di.Z.RIGHT:if(Un||ui){if(Rt)return Rt(1),!0}else if(_e)return _e(1),!0;break;case di.Z.UP:if(Zt)return Zt(-1),!0;break;case di.Z.DOWN:if(Zt)return Zt(1),!0;break;case di.Z.PAGE_UP:if(fn)return fn(-1),!0;break;case di.Z.PAGE_DOWN:if(fn)return fn(1),!0;break;case di.Z.ENTER:if(mn)return mn(),!0;break}return!1}function Ki(Ie,Ve,_e,Rt){var Zt=Ie;if(!Zt)switch(Ve){case"time":Zt=Rt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Zt="gggg-wo";break;case"month":Zt="YYYY-MM";break;case"quarter":Zt="YYYY-[Q]Q";break;case"year":Zt="YYYY";break;default:Zt=_e?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Zt}function Xr(Ie,Ve,_e){var Rt=Ie==="time"?8:10,Zt=typeof Ve=="function"?Ve(_e.getNow()).length:Ve.length;return Math.max(Rt,Zt)+2}var Vi=null,be=new Set;function Pi(Ie){return!Vi&&typeof window!="undefined"&&window.addEventListener&&(Vi=function(_e){(0,Ui.Z)(be).forEach(function(Rt){Rt(_e)})},window.addEventListener("mousedown",Vi)),be.add(Ie),function(){be.delete(Ie),be.size===0&&(window.removeEventListener("mousedown",Vi),Vi=null)}}function Gi(Ie){var Ve=Ie.target;if(Ie.composed&&Ve.shadowRoot){var _e;return((_e=Ie.composedPath)===null||_e===void 0?void 0:_e.call(Ie)[0])||Ve}return Ve}var hr=function(Ve){return Ve==="month"||Ve==="date"?"year":Ve},$i=function(Ve){return Ve==="date"?"month":Ve},fo=function(Ve){return Ve==="month"||Ve==="date"?"quarter":Ve},_r=function(Ve){return Ve==="date"?"week":Ve},Co={year:hr,month:$i,quarter:fo,week:_r,time:null,date:null};function vn(Ie,Ve){return Ie.some(function(_e){return _e&&_e.contains(Ve)})}function an(Ie){var Ve=Ie.open,_e=Ie.value,Rt=Ie.isClickOutside,Zt=Ie.triggerOpen,fn=Ie.forwardKeyDown,mn=Ie.onKeyDown,Gn=Ie.blurToCancel,Un=Ie.onSubmit,ui=Ie.onCancel,Ii=Ie.onFocus,li=Ie.onBlur,Li=Ie.changeOnBlur,si=(0,we.useState)(!1),Xi=(0,ri.Z)(si,2),zn=Xi[0],Mi=Xi[1],Ji=(0,we.useState)(!1),jr=(0,ri.Z)(Ji,2),Tr=jr[0],Kr=jr[1],Vr=(0,we.useRef)(!1),Hr=(0,we.useRef)(!1),zi=(0,we.useRef)(!1),Yo={onMouseDown:function(){Mi(!0),Zt(!0)},onKeyDown:function(ta){var ka=function(){zi.current=!0};if(mn(ta,ka),!zi.current){switch(ta.which){case di.Z.ENTER:{Ve?Un()!==!1&&Mi(!0):Zt(!0),ta.preventDefault();return}case di.Z.TAB:{zn&&Ve&&!ta.shiftKey?(Mi(!1),ta.preventDefault()):!zn&&Ve&&!fn(ta)&&ta.shiftKey&&(Mi(!0),ta.preventDefault());return}case di.Z.ESC:{Mi(!0),ui();return}}!Ve&&![di.Z.SHIFT].includes(ta.which)?Zt(!0):zn||fn(ta)}},onFocus:function(ta){Mi(!0),Kr(!0),Ii&&Ii(ta)},onBlur:function(ta){if(Vr.current||!Rt(document.activeElement)){Vr.current=!1;return}Gn?setTimeout(function(){for(var ka=document,La=ka.activeElement;La&&La.shadowRoot;)La=La.shadowRoot.activeElement;Rt(La)&&ui()},0):Ve&&(Zt(!1),Hr.current&&Un()),Kr(!1),li==null||li(ta)}};return(0,we.useEffect)(function(){Hr.current=!1},[Ve]),(0,we.useEffect)(function(){Hr.current=!0},[_e]),(0,we.useEffect)(function(){return Pi(function(jo){var ta=Gi(jo),ka=Rt(ta);Ve&&(ka?!Li&&(!Tr||ka)&&Zt(!1):(Vr.current=!0,(0,mi.Z)(function(){Vr.current=!1})))})}),[Yo,{focused:Tr,typing:zn}]}function Jt(Ie,Ve){return we.useMemo(function(){return Ie||(Ve?((0,it.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ve).map(function(_e){var Rt=(0,ri.Z)(_e,2),Zt=Rt[0],fn=Rt[1];return{label:Zt,value:fn}})):[])},[Ie,Ve])}var ft=Se(28800);function pn(Ie){var Ve=Ie.valueTexts,_e=Ie.onTextChange,Rt=we.useState(""),Zt=(0,ri.Z)(Rt,2),fn=Zt[0],mn=Zt[1],Gn=we.useRef([]);Gn.current=Ve;function Un(Ii){mn(Ii),_e(Ii)}function ui(){mn(Gn.current[0])}return(0,ft.Z)(function(){Ve.every(function(Ii){return Ii!==fn})&&ui()},[Ve.join("||")]),[fn,Un,ui]}var Rn=we.createContext({}),It=Rn,lt=Se(80665);function yn(Ie){var Ve=Ie.cellRender,_e=Ie.monthCellRender,Rt=Ie.dateRender,Zt=we.useMemo(function(){if(Ve)return Ve;if(!(!_e&&!Rt))return function(fn,mn){var Gn=fn;return Rt&&mn.type==="date"?Rt(Gn,mn.today):_e&&mn.type==="month"?_e(Gn,mn.locale):mn.originNode}},[Ve,_e,Rt]);return Zt}function Yn(Ie,Ve){for(var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Rt=String(Ie);Rt.length<Ve;)Rt="".concat(_e).concat(Ie);return Rt}var Di=function(){for(var Ve=arguments.length,_e=new Array(Ve),Rt=0;Rt<Ve;Rt++)_e[Rt]=arguments[Rt];return _e};function Cn(Ie){return Ie==null?[]:Array.isArray(Ie)?Ie:[Ie]}function bt(Ie,Ve){return Ie?Ie[Ve]:null}function In(Ie,Ve,_e){var Rt=[bt(Ie,0),bt(Ie,1)];return Rt[_e]=typeof Ve=="function"?Ve(Rt[_e]):Ve,!Rt[0]&&!Rt[1]?null:Rt}function gi(Ie){return typeof Ie=="function"?Ie():Ie}function Oi(Ie){var Ve=Ie.cellPrefixCls,_e=Ie.generateConfig,Rt=Ie.rangedValue,Zt=Ie.hoverRangedValue,fn=Ie.isInView,mn=Ie.isSameCell,Gn=Ie.offsetCell,Un=Ie.today,ui=Ie.value;function Ii(li){var Li,si=Gn(li,-1),Xi=Gn(li,1),zn=bt(Rt,0),Mi=bt(Rt,1),Ji=bt(Zt,0),jr=bt(Zt,1),Tr=Ut(_e,Ji,jr,li);function Kr(ta){return mn(zn,ta)}function Vr(ta){return mn(Mi,ta)}var Hr=mn(Ji,li),zi=mn(jr,li),Yo=(Tr||zi)&&(!fn(si)||Vr(si)),jo=(Tr||Hr)&&(!fn(Xi)||Kr(Xi));return Li={},(0,mt.Z)(Li,"".concat(Ve,"-in-view"),fn(li)),(0,mt.Z)(Li,"".concat(Ve,"-in-range"),Ut(_e,zn,Mi,li)),(0,mt.Z)(Li,"".concat(Ve,"-range-start"),Kr(li)),(0,mt.Z)(Li,"".concat(Ve,"-range-end"),Vr(li)),(0,mt.Z)(Li,"".concat(Ve,"-range-start-single"),Kr(li)&&!Mi),(0,mt.Z)(Li,"".concat(Ve,"-range-end-single"),Vr(li)&&!zn),(0,mt.Z)(Li,"".concat(Ve,"-range-start-near-hover"),Kr(li)&&(mn(si,Ji)||Ut(_e,Ji,jr,si))),(0,mt.Z)(Li,"".concat(Ve,"-range-end-near-hover"),Vr(li)&&(mn(Xi,jr)||Ut(_e,Ji,jr,Xi))),(0,mt.Z)(Li,"".concat(Ve,"-range-hover"),Tr),(0,mt.Z)(Li,"".concat(Ve,"-range-hover-start"),Hr),(0,mt.Z)(Li,"".concat(Ve,"-range-hover-end"),zi),(0,mt.Z)(Li,"".concat(Ve,"-range-hover-edge-start"),Yo),(0,mt.Z)(Li,"".concat(Ve,"-range-hover-edge-end"),jo),(0,mt.Z)(Li,"".concat(Ve,"-range-hover-edge-start-near-range"),Yo&&mn(si,Mi)),(0,mt.Z)(Li,"".concat(Ve,"-range-hover-edge-end-near-range"),jo&&mn(Xi,zn)),(0,mt.Z)(Li,"".concat(Ve,"-today"),mn(Un,li)),(0,mt.Z)(Li,"".concat(Ve,"-selected"),mn(ui,li)),Li}return Ii}var Kt=we.createContext({}),Sn=Kt;function Wt(Ie,Ve,_e,Rt,Zt){var fn=Ie.setHour(Ve,_e);return fn=Ie.setMinute(fn,Rt),fn=Ie.setSecond(fn,Zt),fn}function on(Ie,Ve,_e){if(!_e)return Ve;var Rt=Ve;return Rt=Ie.setHour(Rt,Ie.getHour(_e)),Rt=Ie.setMinute(Rt,Ie.getMinute(_e)),Rt=Ie.setSecond(Rt,Ie.getSecond(_e)),Rt}function gn(Ie,Ve,_e,Rt,Zt,fn){var mn=Math.floor(Ie/Rt)*Rt;if(mn<Ie)return[mn,60-Zt,60-fn];var Gn=Math.floor(Ve/Zt)*Zt;if(Gn<Ve)return[mn,Gn,60-fn];var Un=Math.floor(_e/fn)*fn;return[mn,Gn,Un]}function un(Ie,Ve){var _e=Ie.getYear(Ve),Rt=Ie.getMonth(Ve)+1,Zt=Ie.getEndDate(Ie.getFixedDate("".concat(_e,"-").concat(Rt,"-01"))),fn=Ie.getDate(Zt),mn=Rt<10?"0".concat(Rt):"".concat(Rt);return"".concat(_e,"-").concat(mn,"-").concat(fn)}function En(Ie){for(var Ve=Ie.prefixCls,_e=Ie.disabledDate,Rt=Ie.onSelect,Zt=Ie.picker,fn=Ie.rowNum,mn=Ie.colNum,Gn=Ie.prefixColumn,Un=Ie.rowClassName,ui=Ie.baseDate,Ii=Ie.getCellClassName,li=Ie.getCellText,Li=Ie.getCellNode,si=Ie.getCellDate,Xi=Ie.generateConfig,zn=Ie.titleCell,Mi=Ie.headerCells,Ji=we.useContext(It),jr=Ji.onDateMouseEnter,Tr=Ji.onDateMouseLeave,Kr=Ji.mode,Vr="".concat(Ve,"-cell"),Hr=[],zi=0;zi<fn;zi+=1){for(var Yo=[],jo=void 0,ta=function(){var Sa,es=zi*mn+ka,ma=si(ui,es),oa=Fn({cellDate:ma,mode:Kr,disabledDate:_e,generateConfig:Xi});ka===0&&(jo=ma,Gn&&Yo.push(Gn(jo)));var xa=zn&&zn(ma),Ua=we.createElement("div",{className:"".concat(Vr,"-inner")},li(ma));Yo.push(we.createElement("td",{key:ka,title:xa,className:Dt()(Vr,(0,Xn.Z)((Sa={},(0,mt.Z)(Sa,"".concat(Vr,"-disabled"),oa),(0,mt.Z)(Sa,"".concat(Vr,"-start"),li(ma)===1||Zt==="year"&&Number(xa)%10===0),(0,mt.Z)(Sa,"".concat(Vr,"-end"),xa===un(Xi,ma)||Zt==="year"&&Number(xa)%10===9),Sa),Ii(ma))),onClick:function(){oa||Rt(ma)},onMouseEnter:function(){!oa&&jr&&jr(ma)},onMouseLeave:function(){!oa&&Tr&&Tr(ma)}},Li?Li(ma,Ua):Ua))},ka=0;ka<mn;ka+=1)ta();Hr.push(we.createElement("tr",{key:zi,className:Un&&Un(jo)},Yo))}return we.createElement("div",{className:"".concat(Ve,"-body")},we.createElement("table",{className:"".concat(Ve,"-content")},Mi&&we.createElement("thead",null,we.createElement("tr",null,Mi)),we.createElement("tbody",null,Hr)))}function Nn(Ie){var Ve=Ie.prefixCls,_e=Ie.generateConfig,Rt=Ie.prefixColumn,Zt=Ie.locale,fn=Ie.rowCount,mn=Ie.viewDate,Gn=Ie.value,Un=Ie.cellRender,ui=Ie.isSameCell,Ii=we.useContext(Sn),li=Ii.rangedValue,Li=Ii.hoverRangedValue,si=rn(Zt.locale,_e,mn),Xi="".concat(Ve,"-cell"),zn=_e.locale.getWeekFirstDay(Zt.locale),Mi=_e.getNow(),Ji=[],jr=Zt.shortWeekDays||(_e.locale.getShortWeekDays?_e.locale.getShortWeekDays(Zt.locale):[]);Rt&&Ji.push(we.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Tr=0;Tr<jt;Tr+=1)Ji.push(we.createElement("th",{key:Tr},jr[(Tr+zn)%jt]));var Kr=Oi({cellPrefixCls:Xi,today:Mi,value:Gn,generateConfig:_e,rangedValue:Rt?null:li,hoverRangedValue:Rt?null:Li,isSameCell:ui||function(Hr,zi){return Ne(_e,Hr,zi)},isInView:function(zi){return me(_e,zi,mn)},offsetCell:function(zi,Yo){return _e.addDate(zi,Yo)}}),Vr=Un?function(Hr,zi){return Un(Hr,{originNode:zi,today:Mi,type:"date",locale:Zt})}:void 0;return we.createElement(En,(0,ke.Z)({},Ie,{rowNum:fn,colNum:jt,baseDate:si,getCellNode:Vr,getCellText:_e.getDate,getCellClassName:Kr,getCellDate:_e.addDate,titleCell:function(zi){return Pt(zi,{locale:Zt,format:"YYYY-MM-DD",generateConfig:_e})},headerCells:Ji}))}var Vn=Nn,$n={visibility:"hidden"};function Tn(Ie){var Ve=Ie.prefixCls,_e=Ie.prevIcon,Rt=_e===void 0?"\u2039":_e,Zt=Ie.nextIcon,fn=Zt===void 0?"\u203A":Zt,mn=Ie.superPrevIcon,Gn=mn===void 0?"\xAB":mn,Un=Ie.superNextIcon,ui=Un===void 0?"\xBB":Un,Ii=Ie.onSuperPrev,li=Ie.onSuperNext,Li=Ie.onPrev,si=Ie.onNext,Xi=Ie.children,zn=we.useContext(It),Mi=zn.hideNextBtn,Ji=zn.hidePrevBtn;return we.createElement("div",{className:Ve},Ii&&we.createElement("button",{type:"button",onClick:Ii,tabIndex:-1,className:"".concat(Ve,"-super-prev-btn"),style:Ji?$n:{}},Gn),Li&&we.createElement("button",{type:"button",onClick:Li,tabIndex:-1,className:"".concat(Ve,"-prev-btn"),style:Ji?$n:{}},Rt),we.createElement("div",{className:"".concat(Ve,"-view")},Xi),si&&we.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(Ve,"-next-btn"),style:Mi?$n:{}},fn),li&&we.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(Ve,"-super-next-btn"),style:Mi?$n:{}},ui))}var ai=Tn;function Qi(Ie){var Ve=Ie.prefixCls,_e=Ie.generateConfig,Rt=Ie.locale,Zt=Ie.viewDate,fn=Ie.onNextMonth,mn=Ie.onPrevMonth,Gn=Ie.onNextYear,Un=Ie.onPrevYear,ui=Ie.onYearClick,Ii=Ie.onMonthClick,li=we.useContext(It),Li=li.hideHeader;if(Li)return null;var si="".concat(Ve,"-header"),Xi=Rt.shortMonths||(_e.locale.getShortMonths?_e.locale.getShortMonths(Rt.locale):[]),zn=_e.getMonth(Zt),Mi=we.createElement("button",{type:"button",key:"year",onClick:ui,tabIndex:-1,className:"".concat(Ve,"-year-btn")},Pt(Zt,{locale:Rt,format:Rt.yearFormat,generateConfig:_e})),Ji=we.createElement("button",{type:"button",key:"month",onClick:Ii,tabIndex:-1,className:"".concat(Ve,"-month-btn")},Rt.monthFormat?Pt(Zt,{locale:Rt,format:Rt.monthFormat,generateConfig:_e}):Xi[zn]),jr=Rt.monthBeforeYear?[Ji,Mi]:[Mi,Ji];return we.createElement(ai,(0,ke.Z)({},Ie,{prefixCls:si,onSuperPrev:Un,onPrev:mn,onNext:fn,onSuperNext:Gn}),jr)}var Lr=Qi,qi=6;function Bt(Ie){var Ve=Ie.prefixCls,_e=Ie.panelName,Rt=_e===void 0?"date":_e,Zt=Ie.keyboardConfig,fn=Ie.active,mn=Ie.operationRef,Gn=Ie.generateConfig,Un=Ie.value,ui=Ie.viewDate,Ii=Ie.onViewDateChange,li=Ie.onPanelChange,Li=Ie.onSelect,si="".concat(Ve,"-").concat(Rt,"-panel");mn.current={onKeyDown:function(Ji){return Zr(Ji,(0,Xn.Z)({onLeftRight:function(Tr){Li(Gn.addDate(Un||ui,Tr),"key")},onCtrlLeftRight:function(Tr){Li(Gn.addYear(Un||ui,Tr),"key")},onUpDown:function(Tr){Li(Gn.addDate(Un||ui,Tr*jt),"key")},onPageUpDown:function(Tr){Li(Gn.addMonth(Un||ui,Tr),"key")}},Zt))}};var Xi=function(Ji){var jr=Gn.addYear(ui,Ji);Ii(jr),li(null,jr)},zn=function(Ji){var jr=Gn.addMonth(ui,Ji);Ii(jr),li(null,jr)};return we.createElement("div",{className:Dt()(si,(0,mt.Z)({},"".concat(si,"-active"),fn))},we.createElement(Lr,(0,ke.Z)({},Ie,{prefixCls:Ve,value:Un,viewDate:ui,onPrevYear:function(){Xi(-1)},onNextYear:function(){Xi(1)},onPrevMonth:function(){zn(-1)},onNextMonth:function(){zn(1)},onMonthClick:function(){li("month",ui)},onYearClick:function(){li("year",ui)}})),we.createElement(Vn,(0,ke.Z)({},Ie,{onSelect:function(Ji){return Li(Ji,"mouse")},prefixCls:Ve,value:Un,viewDate:ui,rowCount:qi})))}var Si=Bt;function Hi(Ie){var Ve=we.useContext(It),_e=Ve.hideHeader;if(_e)return null;var Rt=Ie.prefixCls,Zt=Ie.generateConfig,fn=Ie.locale,mn=Ie.value,Gn=Ie.format,Un="".concat(Rt,"-header");return we.createElement(ai,{prefixCls:Un},mn?Pt(mn,{locale:fn,format:Gn,generateConfig:Zt}):"\xA0")}var ki=Hi;function Pr(Ie){var Ve=Ie.value,_e=Ie.generateConfig,Rt=Ie.disabledMinutes,Zt=Ie.disabledSeconds,fn=Ie.minutes,mn=Ie.seconds,Gn=Ie.use12Hours,Un=function(Ii,li,Li,si){var Xi=_e.getNow(),zn=Ve||Xi,Mi=li<0?_e.getHour(Xi):li,Ji=Li<0?_e.getMinute(Xi):Li,jr=si<0?_e.getSecond(Xi):si,Tr=Rt&&Rt(Mi);if(Tr!=null&&Tr.includes(Ji)){var Kr=fn.find(function(zi){return!Tr.includes(zi.value)});if(Kr)Ji=Kr.value;else return null}var Vr=Zt&&Zt(Mi,Ji);if(Vr!=null&&Vr.includes(jr)){var Hr=mn.find(function(zi){return!Vr.includes(zi.value)});if(Hr)jr=Hr.value;else return null}return zn=Wt(_e,zn,!Gn||!Ii?Mi:Mi+12,Ji,jr),zn};return Un}function yr(Ie){var Ve=Ie.prefixCls,_e=Ie.units,Rt=Ie.onSelect,Zt=Ie.value,fn=Ie.active,mn=Ie.hideDisabledOptions,Gn=Ie.info,Un=Ie.type,ui="".concat(Ve,"-cell"),Ii=we.useContext(It),li=Ii.open,Li=(0,we.useRef)(null),si=(0,we.useRef)(new Map),Xi=(0,we.useRef)();return(0,we.useLayoutEffect)(function(){var zn=si.current.get(Zt);zn&&li!==!1&&wr(Li.current,zn.offsetTop,120)},[Zt]),(0,we.useLayoutEffect)(function(){if(li){var zn=si.current.get(Zt);zn&&(Xi.current=gr(zn,function(){wr(Li.current,zn.offsetTop,0)}))}return function(){var Mi;(Mi=Xi.current)===null||Mi===void 0||Mi.call(Xi)}},[li]),we.createElement("ul",{className:Dt()("".concat(Ve,"-column"),(0,mt.Z)({},"".concat(Ve,"-column-active"),fn)),ref:Li,style:{position:"relative"}},_e.map(function(zn){var Mi;return mn&&zn.disabled?null:we.createElement("li",{key:zn.value,ref:function(jr){si.current.set(zn.value,jr)},className:Dt()(ui,(Mi={},(0,mt.Z)(Mi,"".concat(ui,"-disabled"),zn.disabled),(0,mt.Z)(Mi,"".concat(ui,"-selected"),Zt===zn.value),Mi)),onClick:function(){zn.disabled||Rt(zn.value)}},Gn.cellRender?Gn.cellRender(zn.value,{today:Gn.today,locale:Gn.locale,originNode:we.createElement("div",{className:"".concat(ui,"-inner")},zn.label),type:"time",subType:Un}):we.createElement("div",{className:"".concat(ui,"-inner")},zn.label))}))}var kr=yr;function rr(Ie,Ve){if(Ie.length!==Ve.length)return!0;for(var _e=0;_e<Ie.length;_e+=1)if(Ie[_e].disabled!==Ve[_e].disabled)return!0;return!1}function Ri(Ie,Ve,_e,Rt){for(var Zt=[],fn=_e>=1?_e|0:1,mn=Ie;mn<=Ve;mn+=fn)Zt.push({label:Yn(mn,2),value:mn,disabled:(Rt||[]).includes(mn)});return Zt}function Gr(Ie){var Ve=Ie.generateConfig,_e=Ie.prefixCls,Rt=Ie.operationRef,Zt=Ie.activeColumnIndex,fn=Ie.value,mn=Ie.showHour,Gn=Ie.showMinute,Un=Ie.showSecond,ui=Ie.use12Hours,Ii=Ie.hourStep,li=Ii===void 0?1:Ii,Li=Ie.minuteStep,si=Li===void 0?1:Li,Xi=Ie.secondStep,zn=Xi===void 0?1:Xi,Mi=Ie.disabledHours,Ji=Ie.disabledMinutes,jr=Ie.disabledSeconds,Tr=Ie.disabledTime,Kr=Ie.hideDisabledOptions,Vr=Ie.onSelect,Hr=Ie.cellRender,zi=Ie.locale,Yo=[],jo="".concat(_e,"-content"),ta="".concat(_e,"-time-panel"),ka,La=fn?Ve.getHour(fn):-1,Sa=La,es=fn?Ve.getMinute(fn):-1,ma=fn?Ve.getSecond(fn):-1,oa=Ve.getNow(),xa=we.useMemo(function(){if(Tr){var jn=Tr(oa);return[jn.disabledHours,jn.disabledMinutes,jn.disabledSeconds]}return[Mi,Ji,jr]},[Mi,Ji,jr,Tr,oa]),Ua=(0,ri.Z)(xa,3),ts=Ua[0],Ra=Ua[1],wa=Ua[2],Ms=Ri(0,23,li,ts&&ts()),el=(0,Gt.Z)(function(){return Ms},Ms,rr);ui&&(ka=Sa>=12,Sa%=12);var Je=we.useMemo(function(){if(!ui)return[!1,!1];var jn=[!0,!0];return el.forEach(function(_n){var Ei=_n.disabled,Ci=_n.value;Ei||(Ci>=12?jn[1]=!1:jn[0]=!1)}),jn},[ui,el]),tt=(0,ri.Z)(Je,2),Tt=tt[0],Ot=tt[1],en=we.useMemo(function(){return ui?el.filter(ka?function(jn){return jn.value>=12}:function(jn){return jn.value<12}).map(function(jn){var _n=jn.value%12,Ei=_n===0?"12":Yn(_n,2);return(0,Xn.Z)((0,Xn.Z)({},jn),{},{label:Ei,value:_n})}):el},[ui,ka,el]),Vt=Ri(0,59,si,Ra&&Ra(La)),Ln=Ri(0,59,zn,wa&&wa(La,es)),bn=Pr({value:fn,generateConfig:Ve,disabledMinutes:Ra,disabledSeconds:wa,minutes:Vt,seconds:Ln,use12Hours:ui});Rt.current={onUpDown:function(_n){var Ei=Yo[Zt];if(Ei)for(var Ci=Ei.units.findIndex(function(ir){return ir.value===Ei.value}),vi=Ei.units.length,Yi=1;Yi<vi;Yi+=1){var xi=Ei.units[(Ci+_n*Yi+vi)%vi];if(xi.disabled!==!0){Ei.onSelect(xi.value);break}}}};function wn(jn,_n,Ei,Ci,vi){jn!==!1&&Yo.push({node:we.cloneElement(_n,{prefixCls:ta,value:Ei,active:Zt===Yo.length,onSelect:vi,units:Ci,hideDisabledOptions:Kr}),onSelect:vi,value:Ei,units:Ci})}wn(mn,we.createElement(kr,{key:"hour",type:"hour",info:{today:oa,locale:zi,cellRender:Hr}}),Sa,en,function(jn){Vr(bn(ka,jn,es,ma),"mouse")}),wn(Gn,we.createElement(kr,{key:"minute",type:"minute",info:{today:oa,locale:zi,cellRender:Hr}}),es,Vt,function(jn){Vr(bn(ka,Sa,jn,ma),"mouse")}),wn(Un,we.createElement(kr,{key:"second",type:"second",info:{today:oa,locale:zi,cellRender:Hr}}),ma,Ln,function(jn){Vr(bn(ka,Sa,es,jn),"mouse")});var ni=-1;return typeof ka=="boolean"&&(ni=ka?1:0),wn(ui===!0,we.createElement(kr,{key:"meridiem",type:"meridiem",info:{today:oa,locale:zi,cellRender:Hr}}),ni,[{label:"AM",value:0,disabled:Tt},{label:"PM",value:1,disabled:Ot}],function(jn){Vr(bn(!!jn,Sa,es,ma),"mouse")}),we.createElement("div",{className:jo},Yo.map(function(jn){var _n=jn.node;return _n}))}var xn=Gr,Fo=function(Ve){return Ve.filter(function(_e){return _e!==!1}).length};function An(Ie){var Ve=Ie.generateConfig,_e=Ie.format,Rt=_e===void 0?"HH:mm:ss":_e,Zt=Ie.prefixCls,fn=Ie.active,mn=Ie.operationRef,Gn=Ie.showHour,Un=Ie.showMinute,ui=Ie.showSecond,Ii=Ie.use12Hours,li=Ii===void 0?!1:Ii,Li=Ie.onSelect,si=Ie.value,Xi="".concat(Zt,"-time-panel"),zn=we.useRef(),Mi=we.useState(-1),Ji=(0,ri.Z)(Mi,2),jr=Ji[0],Tr=Ji[1],Kr=Fo([Gn,Un,ui,li]);return mn.current={onKeyDown:function(Hr){return Zr(Hr,{onLeftRight:function(Yo){Tr((jr+Yo+Kr)%Kr)},onUpDown:function(Yo){jr===-1?Tr(0):zn.current&&zn.current.onUpDown(Yo)},onEnter:function(){Li(si||Ve.getNow(),"key"),Tr(-1)}})},onBlur:function(){Tr(-1)}},we.createElement("div",{className:Dt()(Xi,(0,mt.Z)({},"".concat(Xi,"-active"),fn))},we.createElement(ki,(0,ke.Z)({},Ie,{format:Rt,prefixCls:Zt})),we.createElement(xn,(0,ke.Z)({},Ie,{prefixCls:Zt,activeColumnIndex:jr,operationRef:zn})))}var Ir=An,_o=Di("date","time");function oo(Ie){var Ve=Ie.prefixCls,_e=Ie.operationRef,Rt=Ie.generateConfig,Zt=Ie.value,fn=Ie.defaultValue,mn=Ie.disabledTime,Gn=Ie.showTime,Un=Ie.onSelect,ui=Ie.cellRender,Ii="".concat(Ve,"-datetime-panel"),li=we.useState(null),Li=(0,ri.Z)(li,2),si=Li[0],Xi=Li[1],zn=we.useRef({}),Mi=we.useRef({}),Ji=(0,lt.Z)(Gn)==="object"?(0,Xn.Z)({},Gn):{};function jr(Hr){var zi=_o.indexOf(si)+Hr,Yo=_o[zi]||null;return Yo}var Tr=function(zi){Mi.current.onBlur&&Mi.current.onBlur(zi),Xi(null)};_e.current={onKeyDown:function(zi){if(zi.which===di.Z.TAB){var Yo=jr(zi.shiftKey?-1:1);return Xi(Yo),Yo&&zi.preventDefault(),!0}if(si){var jo=si==="date"?zn:Mi;return jo.current&&jo.current.onKeyDown&&jo.current.onKeyDown(zi),!0}return[di.Z.LEFT,di.Z.RIGHT,di.Z.UP,di.Z.DOWN].includes(zi.which)?(Xi("date"),!0):!1},onBlur:Tr,onClose:Tr};var Kr=function(zi,Yo){var jo=zi;Yo==="date"&&!Zt&&Ji.defaultValue?(jo=Rt.setHour(jo,Rt.getHour(Ji.defaultValue)),jo=Rt.setMinute(jo,Rt.getMinute(Ji.defaultValue)),jo=Rt.setSecond(jo,Rt.getSecond(Ji.defaultValue))):Yo==="time"&&!Zt&&fn&&(jo=Rt.setYear(jo,Rt.getYear(fn)),jo=Rt.setMonth(jo,Rt.getMonth(fn)),jo=Rt.setDate(jo,Rt.getDate(fn))),Un&&Un(jo,"mouse")},Vr=mn?mn(Zt||null):{};return we.createElement("div",{className:Dt()(Ii,(0,mt.Z)({},"".concat(Ii,"-active"),si))},we.createElement(Si,(0,ke.Z)({},Ie,{cellRender:ui,operationRef:zn,active:si==="date",onSelect:function(zi){Kr(on(Rt,zi,!Zt&&(0,lt.Z)(Gn)==="object"?Gn.defaultValue:null),"date")}})),we.createElement(Ir,(0,ke.Z)({},Ie,{cellRender:ui?function(Hr,zi){return ui(Hr,(0,Xn.Z)((0,Xn.Z)({},zi),{},{type:"time"}))}:void 0,format:void 0},Ji,Vr,{disabledTime:null,defaultValue:void 0,operationRef:Mi,active:si==="time",onSelect:function(zi){Kr(zi,"time")}})))}var Fa=oo;function Qo(Ie){var Ve=Ie.prefixCls,_e=Ie.generateConfig,Rt=Ie.viewDate,Zt=Ie.onPrevDecades,fn=Ie.onNextDecades,mn=we.useContext(It),Gn=mn.hideHeader;if(Gn)return null;var Un="".concat(Ve,"-header"),ui=_e.getYear(Rt),Ii=Math.floor(ui/at)*at,li=Ii+at-1;return we.createElement(ai,(0,ke.Z)({},Ie,{prefixCls:Un,onSuperPrev:Zt,onSuperNext:fn}),Ii,"-",li)}var dr=Qo,nr=3,no=4;function Lo(Ie){var Ve=Mt-1,_e=Ie.prefixCls,Rt=Ie.viewDate,Zt=Ie.generateConfig,fn=Ie.cellRender,mn=Ie.locale,Gn="".concat(_e,"-cell"),Un=Zt.getYear(Rt),ui=Math.floor(Un/Mt)*Mt,Ii=Math.floor(Un/at)*at,li=Ii+at-1,Li=Zt.setYear(Rt,Ii-Math.ceil((nr*no*Mt-at)/2)),si=function(Mi){var Ji,jr=Zt.getYear(Mi),Tr=jr+Ve;return Ji={},(0,mt.Z)(Ji,"".concat(Gn,"-in-view"),Ii<=jr&&Tr<=li),(0,mt.Z)(Ji,"".concat(Gn,"-selected"),jr===ui),Ji},Xi=fn?function(zn,Mi){return fn(zn,{originNode:Mi,today:Zt.getNow(),type:"decade",locale:mn})}:void 0;return we.createElement(En,(0,ke.Z)({},Ie,{rowNum:no,colNum:nr,baseDate:Li,getCellNode:Xi,getCellText:function(Mi){var Ji=Zt.getYear(Mi);return"".concat(Ji,"-").concat(Ji+Ve)},getCellClassName:si,getCellDate:function(Mi,Ji){return Zt.addYear(Mi,Ji*Mt)}}))}var wi=Lo;function Ye(Ie){var Ve=Ie.prefixCls,_e=Ie.onViewDateChange,Rt=Ie.generateConfig,Zt=Ie.viewDate,fn=Ie.operationRef,mn=Ie.onSelect,Gn=Ie.onPanelChange,Un="".concat(Ve,"-decade-panel");fn.current={onKeyDown:function(Li){return Zr(Li,{onLeftRight:function(Xi){mn(Rt.addYear(Zt,Xi*Mt),"key")},onCtrlLeftRight:function(Xi){mn(Rt.addYear(Zt,Xi*at),"key")},onUpDown:function(Xi){mn(Rt.addYear(Zt,Xi*Mt*nr),"key")},onEnter:function(){Gn("year",Zt)}})}};var ui=function(Li){var si=Rt.addYear(Zt,Li*at);_e(si),Gn(null,si)},Ii=function(Li){mn(Li,"mouse"),Gn("year",Li)};return we.createElement("div",{className:Un},we.createElement(dr,(0,ke.Z)({},Ie,{prefixCls:Ve,onPrevDecades:function(){ui(-1)},onNextDecades:function(){ui(1)}})),we.createElement(wi,(0,ke.Z)({},Ie,{prefixCls:Ve,onSelect:Ii})))}var $r=Ye;function ca(Ie){var Ve=Ie.prefixCls,_e=Ie.generateConfig,Rt=Ie.locale,Zt=Ie.viewDate,fn=Ie.onNextYear,mn=Ie.onPrevYear,Gn=Ie.onYearClick,Un=we.useContext(It),ui=Un.hideHeader;if(ui)return null;var Ii="".concat(Ve,"-header");return we.createElement(ai,(0,ke.Z)({},Ie,{prefixCls:Ii,onSuperPrev:mn,onSuperNext:fn}),we.createElement("button",{type:"button",onClick:Gn,className:"".concat(Ve,"-year-btn")},Pt(Zt,{locale:Rt,format:Rt.yearFormat,generateConfig:_e})))}var qr=ca,$o=3,Fr=4;function Sr(Ie){var Ve=Ie.prefixCls,_e=Ie.locale,Rt=Ie.value,Zt=Ie.viewDate,fn=Ie.generateConfig,mn=Ie.cellRender,Gn=we.useContext(Sn),Un=Gn.rangedValue,ui=Gn.hoverRangedValue,Ii="".concat(Ve,"-cell"),li=Oi({cellPrefixCls:Ii,value:Rt,generateConfig:fn,rangedValue:Un,hoverRangedValue:ui,isSameCell:function(Mi,Ji){return me(fn,Mi,Ji)},isInView:function(){return!0},offsetCell:function(Mi,Ji){return fn.addMonth(Mi,Ji)}}),Li=_e.shortMonths||(fn.locale.getShortMonths?fn.locale.getShortMonths(_e.locale):[]),si=fn.setMonth(Zt,0),Xi=mn?function(zn,Mi){return mn(zn,{originNode:Mi,locale:_e,today:fn.getNow(),type:"month"})}:void 0;return we.createElement(En,(0,ke.Z)({},Ie,{rowNum:Fr,colNum:$o,baseDate:si,getCellNode:Xi,getCellText:function(Mi){return _e.monthFormat?Pt(Mi,{locale:_e,format:_e.monthFormat,generateConfig:fn}):Li[fn.getMonth(Mi)]},getCellClassName:li,getCellDate:fn.addMonth,titleCell:function(Mi){return Pt(Mi,{locale:_e,format:"YYYY-MM",generateConfig:fn})}}))}var xo=Sr;function Wo(Ie){var Ve=Ie.prefixCls,_e=Ie.operationRef,Rt=Ie.onViewDateChange,Zt=Ie.generateConfig,fn=Ie.value,mn=Ie.viewDate,Gn=Ie.onPanelChange,Un=Ie.onSelect,ui="".concat(Ve,"-month-panel");_e.current={onKeyDown:function(Li){return Zr(Li,{onLeftRight:function(Xi){Un(Zt.addMonth(fn||mn,Xi),"key")},onCtrlLeftRight:function(Xi){Un(Zt.addYear(fn||mn,Xi),"key")},onUpDown:function(Xi){Un(Zt.addMonth(fn||mn,Xi*$o),"key")},onEnter:function(){Gn("date",fn||mn)}})}};var Ii=function(Li){var si=Zt.addYear(mn,Li);Rt(si),Gn(null,si)};return we.createElement("div",{className:ui},we.createElement(qr,(0,ke.Z)({},Ie,{prefixCls:Ve,onPrevYear:function(){Ii(-1)},onNextYear:function(){Ii(1)},onYearClick:function(){Gn("year",mn)}})),we.createElement(xo,(0,ke.Z)({},Ie,{prefixCls:Ve,onSelect:function(Li){Un(Li,"mouse"),Gn("date",Li)}})))}var eo=Wo;function fa(Ie){var Ve=Ie.prefixCls,_e=Ie.generateConfig,Rt=Ie.locale,Zt=Ie.viewDate,fn=Ie.onNextYear,mn=Ie.onPrevYear,Gn=Ie.onYearClick,Un=we.useContext(It),ui=Un.hideHeader;if(ui)return null;var Ii="".concat(Ve,"-header");return we.createElement(ai,(0,ke.Z)({},Ie,{prefixCls:Ii,onSuperPrev:mn,onSuperNext:fn}),we.createElement("button",{type:"button",onClick:Gn,className:"".concat(Ve,"-year-btn")},Pt(Zt,{locale:Rt,format:Rt.yearFormat,generateConfig:_e})))}var sr=fa,tr=4,Nr=1;function ei(Ie){var Ve=Ie.prefixCls,_e=Ie.locale,Rt=Ie.value,Zt=Ie.viewDate,fn=Ie.generateConfig,mn=Ie.cellRender,Gn=we.useContext(Sn),Un=Gn.rangedValue,ui=Gn.hoverRangedValue,Ii="".concat(Ve,"-cell"),li=Oi({cellPrefixCls:Ii,value:Rt,generateConfig:fn,rangedValue:Un,hoverRangedValue:ui,isSameCell:function(zn,Mi){return xe(fn,zn,Mi)},isInView:function(){return!0},offsetCell:function(zn,Mi){return fn.addMonth(zn,Mi*3)}}),Li=fn.setDate(fn.setMonth(Zt,0),1),si=mn?function(Xi,zn){return mn(Xi,{originNode:zn,locale:_e,today:fn.getNow(),type:"quarter"})}:void 0;return we.createElement(En,(0,ke.Z)({},Ie,{rowNum:Nr,colNum:tr,baseDate:Li,getCellNode:si,getCellText:function(zn){return Pt(zn,{locale:_e,format:_e.quarterFormat||"[Q]Q",generateConfig:fn})},getCellClassName:li,getCellDate:function(zn,Mi){return fn.addMonth(zn,Mi*3)},titleCell:function(zn){return Pt(zn,{locale:_e,format:"YYYY-[Q]Q",generateConfig:fn})}}))}var Ro=ei;function ia(Ie){var Ve=Ie.prefixCls,_e=Ie.operationRef,Rt=Ie.onViewDateChange,Zt=Ie.generateConfig,fn=Ie.value,mn=Ie.viewDate,Gn=Ie.onPanelChange,Un=Ie.onSelect,ui="".concat(Ve,"-quarter-panel");_e.current={onKeyDown:function(Li){return Zr(Li,{onLeftRight:function(Xi){Un(Zt.addMonth(fn||mn,Xi*3),"key")},onCtrlLeftRight:function(Xi){Un(Zt.addYear(fn||mn,Xi),"key")},onUpDown:function(Xi){Un(Zt.addYear(fn||mn,Xi),"key")}})}};var Ii=function(Li){var si=Zt.addYear(mn,Li);Rt(si),Gn(null,si)};return we.createElement("div",{className:ui},we.createElement(sr,(0,ke.Z)({},Ie,{prefixCls:Ve,onPrevYear:function(){Ii(-1)},onNextYear:function(){Ii(1)},onYearClick:function(){Gn("year",mn)}})),we.createElement(Ro,(0,ke.Z)({},Ie,{prefixCls:Ve,onSelect:function(Li){Un(Li,"mouse")}})))}var Za=ia;function ha(Ie){var Ve=Ie.prefixCls,_e=Ie.generateConfig,Rt=Ie.locale,Zt=Ie.value,fn=Ie.disabledDate,mn=Ie.onSelect,Gn=we.useContext(Sn),Un=Gn.rangedValue,ui=Gn.hoverRangedValue,Ii=we.useContext(It),li=Ii.onDateMouseEnter,Li=Ii.onDateMouseLeave,si=(ui==null?void 0:ui[0])||(Un==null?void 0:Un[0]),Xi=(ui==null?void 0:ui[1])||(Un==null?void 0:Un[1]),zn="".concat(Ve,"-cell"),Mi=function(Kr){var Vr=Fn({cellDate:Kr,mode:"week",disabledDate:fn,generateConfig:_e});return we.createElement("td",{key:"week",className:Dt()(zn,"".concat(zn,"-week")),onClick:function(){Vr||mn(Kr,"mouse")},onMouseEnter:function(){!Vr&&li&&li(Kr)},onMouseLeave:function(){!Vr&&Li&&Li(Kr)}},we.createElement("div",{className:"".concat(zn,"-inner")},_e.locale.getWeek(Rt.locale,Kr)))},Ji="".concat(Ve,"-week-panel-row"),jr=function(Kr){var Vr,Hr=Me(_e,Rt.locale,si,Kr),zi=Me(_e,Rt.locale,Xi,Kr);return Dt()(Ji,(Vr={},(0,mt.Z)(Vr,"".concat(Ji,"-selected"),!Un&&Me(_e,Rt.locale,Zt,Kr)),(0,mt.Z)(Vr,"".concat(Ji,"-range-start"),Hr),(0,mt.Z)(Vr,"".concat(Ji,"-range-end"),zi),(0,mt.Z)(Vr,"".concat(Ji,"-range-hover"),!Hr&&!zi&&Ut(_e,si,Xi,Kr)),Vr))};return we.createElement(Si,(0,ke.Z)({},Ie,{panelName:"week",prefixColumn:Mi,rowClassName:jr,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Oa=ha,Ia=10;function ys(Ie){var Ve=Ie.prefixCls,_e=Ie.generateConfig,Rt=Ie.viewDate,Zt=Ie.onPrevDecade,fn=Ie.onNextDecade,mn=Ie.onDecadeClick,Gn=we.useContext(It),Un=Gn.hideHeader;if(Un)return null;var ui="".concat(Ve,"-header"),Ii=_e.getYear(Rt),li=Math.floor(Ii/Ia)*Ia,Li=li+Ia-1;return we.createElement(ai,(0,ke.Z)({},Ie,{prefixCls:ui,onSuperPrev:Zt,onSuperNext:fn}),we.createElement("button",{type:"button",onClick:mn,className:"".concat(Ve,"-decade-btn")},li,"-",Li))}var Ds=ys,_s=3,Ys=4;function dn(Ie){var Ve=Ie.prefixCls,_e=Ie.value,Rt=Ie.viewDate,Zt=Ie.locale,fn=Ie.generateConfig,mn=Ie.cellRender,Gn=we.useContext(Sn),Un=Gn.rangedValue,ui=Gn.hoverRangedValue,Ii="".concat(Ve,"-cell"),li=fn.getYear(Rt),Li=Math.floor(li/Ia)*Ia,si=Li+Ia-1,Xi=fn.setYear(Rt,Li-Math.ceil((_s*Ys-Ia)/2)),zn=fn.getNow(),Mi=function(Kr){var Vr=fn.getYear(Kr);return Li<=Vr&&Vr<=si},Ji=Oi({cellPrefixCls:Ii,value:_e,generateConfig:fn,rangedValue:Un,hoverRangedValue:ui,isSameCell:function(Kr,Vr){return ot(fn,Kr,Vr)},isInView:Mi,offsetCell:function(Kr,Vr){return fn.addYear(Kr,Vr)}}),jr=mn?function(Tr,Kr){return mn(Tr,{originNode:Kr,today:zn,type:"year",locale:Zt})}:void 0;return we.createElement(En,(0,ke.Z)({},Ie,{rowNum:Ys,colNum:_s,baseDate:Xi,getCellNode:jr,getCellText:fn.getYear,getCellClassName:Ji,getCellDate:fn.addYear,titleCell:function(Kr){return Pt(Kr,{locale:Zt,format:"YYYY",generateConfig:fn})}}))}var js=dn;function au(Ie){var Ve=Ie.prefixCls,_e=Ie.operationRef,Rt=Ie.onViewDateChange,Zt=Ie.generateConfig,fn=Ie.value,mn=Ie.viewDate,Gn=Ie.sourceMode,Un=Ie.onSelect,ui=Ie.onPanelChange,Ii="".concat(Ve,"-year-panel");_e.current={onKeyDown:function(si){return Zr(si,{onLeftRight:function(zn){Un(Zt.addYear(fn||mn,zn),"key")},onCtrlLeftRight:function(zn){Un(Zt.addYear(fn||mn,zn*Ia),"key")},onUpDown:function(zn){Un(Zt.addYear(fn||mn,zn*_s),"key")},onEnter:function(){ui(Gn==="date"?"date":"month",fn||mn)}})}};var li=function(si){var Xi=Zt.addYear(mn,si*10);Rt(Xi),ui(null,Xi)};return we.createElement("div",{className:Ii},we.createElement(Ds,(0,ke.Z)({},Ie,{prefixCls:Ve,onPrevDecade:function(){li(-1)},onNextDecade:function(){li(1)},onDecadeClick:function(){ui("decade",mn)}})),we.createElement(js,(0,ke.Z)({},Ie,{prefixCls:Ve,onSelect:function(si){ui(Gn==="date"?"date":"month",si),Un(si,"mouse")}})))}var su=au;function No(Ie,Ve,_e){return _e?we.createElement("div",{className:"".concat(Ie,"-footer-extra")},_e(Ve)):null}function ga(Ie){var Ve=Ie.prefixCls,_e=Ie.components,Rt=_e===void 0?{}:_e,Zt=Ie.needConfirmButton,fn=Ie.onNow,mn=Ie.onOk,Gn=Ie.okDisabled,Un=Ie.showNow,ui=Ie.locale,Ii,li;if(Zt){var Li=Rt.button||"button";fn&&Un!==!1&&(Ii=we.createElement("li",{className:"".concat(Ve,"-now")},we.createElement("a",{className:"".concat(Ve,"-now-btn"),onClick:fn},ui.now))),li=Zt&&we.createElement("li",{className:"".concat(Ve,"-ok")},we.createElement(Li,{disabled:Gn,onClick:mn},ui.ok))}return!Ii&&!li?null:we.createElement("ul",{className:"".concat(Ve,"-ranges")},Ii,li)}var os=["date","month"];function pa(Ie){var Ve,_e=Ie,Rt=_e.prefixCls,Zt=Rt===void 0?"rc-picker":Rt,fn=_e.className,mn=_e.style,Gn=_e.locale,Un=_e.generateConfig,ui=_e.value,Ii=_e.defaultValue,li=_e.pickerValue,Li=_e.defaultPickerValue,si=_e.disabledDate,Xi=_e.mode,zn=_e.picker,Mi=zn===void 0?"date":zn,Ji=_e.tabIndex,jr=Ji===void 0?0:Ji,Tr=_e.showNow,Kr=_e.showTime,Vr=_e.showToday,Hr=_e.renderExtraFooter,zi=_e.hideHeader,Yo=_e.onSelect,jo=_e.onChange,ta=_e.onPanelChange,ka=_e.onMouseDown,La=_e.onPickerValueChange,Sa=_e.onOk,es=_e.components,ma=_e.direction,oa=_e.hourStep,xa=oa===void 0?1:oa,Ua=_e.minuteStep,ts=Ua===void 0?1:Ua,Ra=_e.secondStep,wa=Ra===void 0?1:Ra,Ms=_e.dateRender,el=_e.monthCellRender,Je=_e.cellRender,tt=Mi==="date"&&!!Kr||Mi==="time",Tt=24%xa===0,Ot=60%ts===0,en=60%wa===0,Vt=we.useContext(It),Ln=Vt.operationRef,bn=Vt.onSelect,wn=Vt.hideRanges,ni=Vt.defaultOpenValue,jn=we.useContext(Sn),_n=jn.inRange,Ei=jn.panelPosition,Ci=jn.rangedValue,vi=jn.hoverRangedValue,Yi=we.useRef({}),xi=we.useRef(!0),ir=(0,pi.Z)(null,{value:ui,defaultValue:Ii,postState:function(Ai){return!Ai&&ni&&Mi==="time"?ni:Ai}}),_i=(0,ri.Z)(ir,2),ur=_i[0],Yr=_i[1],ao=(0,pi.Z)(null,{value:li,defaultValue:Li||ur,postState:function(Ai){var xr=Un.getNow();if(!Ai)return xr;if(!ur&&Kr){var ko=(0,lt.Z)(Kr)==="object"?Kr.defaultValue:Ii;return on(Un,Array.isArray(Ai)?Ai[0]:Ai,ko||xr)}return Array.isArray(Ai)?Ai[0]:Ai}}),pr=(0,ri.Z)(ao,2),Ar=pr[0],bo=pr[1],cr=function(Ai){bo(Ai),La&&La(Ai)},Or=function(Ai){var xr=Co[Mi];return xr?xr(Ai):Ai},mr=(0,pi.Z)(function(){return Mi==="time"?"time":Or("date")},{value:Xi}),Zi=(0,ri.Z)(mr,2),or=Zi[0],Rr=Zi[1];we.useEffect(function(){Rr(Mi)},[Mi]);var so=we.useState(function(){return or}),uo=(0,ri.Z)(so,2),ar=uo[0],Eo=uo[1],Io=function(Ai,xr){var ko=Or(Ai||or);Eo(or),Rr(ko),ta&&(or!==ko||et(Un,Ar,Ar))&&ta(xr,ko)},Zo=function(Ai,xr){var ko=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(or===Mi||ko)&&(Yr(Ai),Yo&&Yo(Ai),bn&&bn(Ai,xr),jo&&!et(Un,Ai,ur)&&!(si!=null&&si(Ai))&&jo(Ai))},Ho=function(Ai){if(os.includes(or)){var xr,ko,Uo=or==="date";switch(Ai===di.Z.PAGE_UP||Ai===di.Z.PAGE_DOWN?ko=Uo?Un.addMonth:Un.addYear:ko=Uo?Un.addDate:Un.addMonth,Ai){case di.Z.LEFT:case di.Z.PAGE_UP:xr=ko(Ar,-1);break;case di.Z.RIGHT:case di.Z.PAGE_DOWN:xr=ko(Ar,1);break;case di.Z.UP:case di.Z.DOWN:xr=ko(Ar,Number("".concat(Ai===di.Z.UP?"-":"").concat(Uo?jt:$o)));break}if(xr)return!(si!=null&&si(xr))}return!0},za=function(Ai){if(Yi.current&&Yi.current.onKeyDown){var xr=!0,ko=Ai.which;if([di.Z.LEFT,di.Z.RIGHT,di.Z.UP,di.Z.DOWN,di.Z.PAGE_UP,di.Z.PAGE_DOWN,di.Z.ENTER].includes(ko)&&(Ai.preventDefault(),ko!==di.Z.ENTER&&jr===0&&(xr=Ho(ko))),xr)return Yi.current.onKeyDown(Ai)}return(0,it.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},qo=function(Ai){Yi.current&&Yi.current.onBlur&&Yi.current.onBlur(Ai)};Ln&&Ei!=="right"&&(Ln.current={onKeyDown:za,onClose:function(){Yi.current&&Yi.current.onClose&&Yi.current.onClose()}}),we.useEffect(function(){ui&&!xi.current&&bo(ui)},[ui]),we.useEffect(function(){xi.current=!1},[]);var wo,Jr=yn({cellRender:Je,monthCellRender:el,dateRender:Ms}),po=(0,Xn.Z)((0,Xn.Z)({},Ie),{},{cellRender:Jr,operationRef:Yi,prefixCls:Zt,viewDate:Ar,value:ur,onViewDateChange:cr,sourceMode:ar,onPanelChange:Io,disabledDate:si});switch(delete po.onChange,delete po.onSelect,or){case"decade":wo=we.createElement($r,(0,ke.Z)({},po,{onSelect:function(Ai,xr){cr(Ai),Zo(Ai,xr)}}));break;case"year":wo=we.createElement(su,(0,ke.Z)({},po,{onSelect:function(Ai,xr){cr(Ai),Zo(Ai,xr)}}));break;case"month":wo=we.createElement(eo,(0,ke.Z)({},po,{onSelect:function(Ai,xr){cr(Ai),Zo(Ai,xr)}}));break;case"quarter":wo=we.createElement(Za,(0,ke.Z)({},po,{onSelect:function(Ai,xr){cr(Ai),Zo(Ai,xr)}}));break;case"week":wo=we.createElement(Oa,(0,ke.Z)({},po,{onSelect:function(Ai,xr){cr(Ai),Zo(Ai,xr)}}));break;case"time":delete po.showTime,wo=we.createElement(Ir,(0,ke.Z)({},po,(0,lt.Z)(Kr)==="object"?Kr:null,{onSelect:function(Ai,xr){cr(Ai),Zo(Ai,xr)}}));break;default:Kr?wo=we.createElement(Fa,(0,ke.Z)({},po,{onSelect:function(Ai,xr){cr(Ai),Zo(Ai,xr)}})):wo=we.createElement(Si,(0,ke.Z)({},po,{onSelect:function(Ai,xr){cr(Ai),Zo(Ai,xr)}}))}var Ta,Pa,Ga=function(){var Ai=Un.getNow(),xr=gn(Un.getHour(Ai),Un.getMinute(Ai),Un.getSecond(Ai),Tt?xa:1,Ot?ts:1,en?wa:1),ko=Wt(Un,Ai,xr[0],xr[1],xr[2]);Zo(ko,"submit")};wn||(Ta=No(Zt,or,Hr),Kr&&or!=="date"?Pa=null:Pa=ga({prefixCls:Zt,components:es,needConfirmButton:tt,okDisabled:!ur||si&&si(ur),locale:Gn,showNow:Tr,onNow:tt&&Ga,onOk:function(){ur&&(Zo(ur,"submit",!0),Sa&&Sa(ur))}}));var vo;if(Vr&&or==="date"&&Mi==="date"&&!Kr){var io=Un.getNow(),Po="".concat(Zt,"-today-btn"),Ur=si&&si(io);vo=we.createElement("a",{className:Dt()(Po,Ur&&"".concat(Po,"-disabled")),"aria-disabled":Ur,onClick:function(){Ur||Zo(io,"mouse",!0)}},Gn.today)}return we.createElement(It.Provider,{value:(0,Xn.Z)((0,Xn.Z)({},Vt),{},{mode:or,hideHeader:"hideHeader"in Ie?zi:Vt.hideHeader,hidePrevBtn:_n&&Ei==="right",hideNextBtn:_n&&Ei==="left"})},we.createElement("div",{tabIndex:jr,className:Dt()("".concat(Zt,"-panel"),fn,(Ve={},(0,mt.Z)(Ve,"".concat(Zt,"-panel-has-range"),Ci&&Ci[0]&&Ci[1]),(0,mt.Z)(Ve,"".concat(Zt,"-panel-has-range-hover"),vi&&vi[0]&&vi[1]),(0,mt.Z)(Ve,"".concat(Zt,"-panel-rtl"),ma==="rtl"),Ve)),style:mn,onKeyDown:za,onBlur:qo,onMouseDown:ka},wo,Ta||Pa||vo?we.createElement("div",{className:"".concat(Zt,"-footer")},Ta,Pa,vo):null))}var To=pa,la=Se(35593),bs={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function to(Ie){var Ve,_e=Ie.prefixCls,Rt=Ie.popupElement,Zt=Ie.popupStyle,fn=Ie.visible,mn=Ie.dropdownClassName,Gn=Ie.dropdownAlign,Un=Ie.transitionName,ui=Ie.getPopupContainer,Ii=Ie.children,li=Ie.range,Li=Ie.popupPlacement,si=Ie.direction,Xi="".concat(_e,"-dropdown"),zn=function(){return Li!==void 0?Li:si==="rtl"?"bottomRight":"bottomLeft"};return we.createElement(la.Z,{showAction:[],hideAction:[],popupPlacement:zn(),builtinPlacements:bs,prefixCls:Xi,popupTransitionName:Un,popup:Rt,popupAlign:Gn,popupVisible:fn,popupClassName:Dt()(mn,(Ve={},(0,mt.Z)(Ve,"".concat(Xi,"-range"),li),(0,mt.Z)(Ve,"".concat(Xi,"-rtl"),si==="rtl"),Ve)),popupStyle:Zt,getPopupContainer:ui},Ii)}var zo=to;function Oo(Ie){var Ve=Ie.prefixCls,_e=Ie.presets,Rt=Ie.onClick,Zt=Ie.onHover;return _e.length?we.createElement("div",{className:"".concat(Ve,"-presets")},we.createElement("ul",null,_e.map(function(fn,mn){var Gn=fn.label,Un=fn.value;return we.createElement("li",{key:mn,onClick:function(){return Rt==null?void 0:Rt(gi(Un))},onMouseEnter:function(){return Zt==null?void 0:Zt(gi(Un))},onMouseLeave:function(){return Zt==null?void 0:Zt(null)}},Gn)}))):null}function Wi(Ie){var Ve=Ie.picker,_e=Ie.disabledHours,Rt=Ie.disabledMinutes,Zt=Ie.disabledSeconds;Ve==="time"&&(_e||Rt||Zt)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function cs(Ie,Ve,_e){var Rt=(0,lt.Z)(Ve)==="object"?Ve.clearIcon:_e;return Rt||we.createElement("span",{className:"".concat(Ie,"-clear-btn")})}function Ss(Ie){var Ve,_e=Ie,Rt=_e.prefixCls,Zt=Rt===void 0?"rc-picker":Rt,fn=_e.id,mn=_e.name,Gn=_e.tabIndex,Un=_e.style,ui=_e.className,Ii=_e.dropdownClassName,li=_e.dropdownAlign,Li=_e.popupStyle,si=_e.transitionName,Xi=_e.generateConfig,zn=_e.locale,Mi=_e.inputReadOnly,Ji=_e.allowClear,jr=_e.autoFocus,Tr=_e.showTime,Kr=_e.picker,Vr=Kr===void 0?"date":Kr,Hr=_e.format,zi=_e.use12Hours,Yo=_e.value,jo=_e.defaultValue,ta=_e.presets,ka=_e.open,La=_e.defaultOpen,Sa=_e.defaultOpenValue,es=_e.suffixIcon,ma=_e.clearIcon,oa=_e.disabled,xa=_e.disabledDate,Ua=_e.placeholder,ts=_e.getPopupContainer,Ra=_e.pickerRef,wa=_e.panelRender,Ms=_e.onChange,el=_e.onOpenChange,Je=_e.onFocus,tt=_e.onBlur,Tt=_e.onMouseDown,Ot=_e.onMouseUp,en=_e.onMouseEnter,Vt=_e.onMouseLeave,Ln=_e.onContextMenu,bn=_e.onClick,wn=_e.onKeyDown,ni=_e.onSelect,jn=_e.direction,_n=_e.autoComplete,Ei=_n===void 0?"off":_n,Ci=_e.inputRender,vi=_e.changeOnBlur,Yi=we.useRef(null),xi=Vr==="date"&&!!Tr||Vr==="time",ir=Jt(ta),_i=Cn(Ki(Hr,Vr,Tr,zi)),ur=we.useRef(null),Yr=we.useRef(null),ao=we.useRef(null),pr=(0,pi.Z)(null,{value:Yo,defaultValue:jo}),Ar=(0,ri.Z)(pr,2),bo=Ar[0],cr=Ar[1],Or=we.useState(bo),mr=(0,ri.Z)(Or,2),Zi=mr[0],or=mr[1],Rr=we.useRef(null),so=(0,pi.Z)(!1,{value:ka,defaultValue:La,postState:function(yo){return oa?!1:yo},onChange:function(yo){el&&el(yo),!yo&&Rr.current&&Rr.current.onClose&&Rr.current.onClose()}}),uo=(0,ri.Z)(so,2),ar=uo[0],Eo=uo[1],Io=oi(Zi,{formatList:_i,generateConfig:Xi,locale:zn}),Zo=(0,ri.Z)(Io,2),Ho=Zo[0],za=Zo[1],qo=pn({valueTexts:Ho,onTextChange:function(yo){var gs=ln(yo,{locale:zn,formatList:_i,generateConfig:Xi});gs&&(!xa||!xa(gs))&&or(gs)}}),wo=(0,ri.Z)(qo,3),Jr=wo[0],po=wo[1],Ta=wo[2],Pa=function(yo){or(yo),cr(yo),Ms&&!et(Xi,bo,yo)&&Ms(yo,yo?Pt(yo,{generateConfig:Xi,locale:zn,format:_i[0]}):"")},Ga=function(yo){oa&&yo||Eo(yo)},vo=function(yo){return ar&&Rr.current&&Rr.current.onKeyDown?Rr.current.onKeyDown(yo):((0,it.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},io=function(){for(var yo=arguments.length,gs=new Array(yo),Is=0;Is<yo;Is++)gs[Is]=arguments[Is];bn==null||bn.apply(void 0,gs),Yi.current&&(Yi.current.focus(),Ga(!0))},Po=function(yo){vi&&Pa(Zi),tt==null||tt(yo)},Ur=an({blurToCancel:xi,open:ar,value:Jr,triggerOpen:Ga,forwardKeyDown:vo,isClickOutside:function(yo){return!vn([ur.current,Yr.current,ao.current],yo)},onSubmit:function(){return!Zi||xa&&xa(Zi)?!1:(Pa(Zi),Ga(!1),Ta(),!0)},onCancel:function(){Ga(!1),or(bo),Ta()},onKeyDown:function(yo,gs){wn==null||wn(yo,gs)},onFocus:Je,onBlur:Po,changeOnBlur:vi}),Br=(0,ri.Z)(Ur,2),Ai=Br[0],xr=Br[1],ko=xr.focused,Uo=xr.typing;we.useEffect(function(){ar||(or(bo),!Ho.length||Ho[0]===""?po(""):za!==Jr&&Ta())},[ar,Ho]),we.useEffect(function(){ar||Ta()},[Vr]),we.useEffect(function(){or(bo)},[bo]),Ra&&(Ra.current={focus:function(){var yo;(yo=Yi.current)===null||yo===void 0||yo.focus()},blur:function(){var yo;(yo=Yi.current)===null||yo===void 0||yo.blur()}});var Xs=ci(Jr,{formatList:_i,generateConfig:Xi,locale:zn}),As=(0,ri.Z)(Xs,3),sl=As[0],ya=As[1],Da=As[2],ho=(0,Xn.Z)((0,Xn.Z)({},Ie),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Bs=we.createElement("div",{className:"".concat(Zt,"-panel-layout")},we.createElement(Oo,{prefixCls:Zt,presets:ir,onClick:function(yo){Pa(yo),Ga(!1)}}),we.createElement(To,(0,ke.Z)({},ho,{generateConfig:Xi,className:Dt()((0,mt.Z)({},"".concat(Zt,"-panel-focused"),!Uo)),value:Zi,locale:zn,tabIndex:-1,onSelect:function(yo){ni==null||ni(yo),or(yo)},direction:jn,onPanelChange:function(yo,gs){var Is=Ie.onPanelChange;Da(!0),Is==null||Is(yo,gs)}})));wa&&(Bs=wa(Bs));var ll=we.createElement("div",{className:"".concat(Zt,"-panel-container"),ref:ur,onMouseDown:function(yo){yo.preventDefault()}},Bs),Ma;es&&(Ma=we.createElement("span",{className:"".concat(Zt,"-suffix"),onMouseDown:function(yo){yo.preventDefault()}},es));var ja=cs(Zt,Ji,ma),Ka=we.createElement("span",{onMouseDown:function(yo){yo.preventDefault(),yo.stopPropagation()},onMouseUp:function(yo){yo.preventDefault(),yo.stopPropagation(),Pa(null),Ga(!1)},className:"".concat(Zt,"-clear"),role:"button"},ja),us=!!Ji&&bo&&!oa,Os=(0,Xn.Z)((0,Xn.Z)((0,Xn.Z)({id:fn,tabIndex:Gn,disabled:oa,readOnly:Mi||typeof _i[0]=="function"||!Uo,value:sl||Jr,onChange:function(yo){po(yo.target.value)},autoFocus:jr,placeholder:Ua,ref:Yi,title:Jr},Ai),{},{size:Xr(Vr,_i[0],Xi),name:mn},(0,Mn.Z)(Ie,{aria:!0,data:!0})),{},{autoComplete:Ei}),na=Ci?Ci(Os):we.createElement("input",Os),Xa=function(yo,gs){(gs==="submit"||gs!=="key"&&!xi)&&(Pa(yo),Ga(!1))},Hs=jn==="rtl"?"bottomRight":"bottomLeft";return we.createElement(It.Provider,{value:{operationRef:Rr,hideHeader:Vr==="time",onSelect:Xa,open:ar,defaultOpenValue:Sa,onDateMouseEnter:ya,onDateMouseLeave:Da}},we.createElement(zo,{visible:ar,popupElement:ll,popupStyle:Li,prefixCls:Zt,dropdownClassName:Ii,dropdownAlign:li,getPopupContainer:ts,transitionName:si,popupPlacement:Hs,direction:jn},we.createElement("div",{ref:ao,className:Dt()(Zt,ui,(Ve={},(0,mt.Z)(Ve,"".concat(Zt,"-disabled"),oa),(0,mt.Z)(Ve,"".concat(Zt,"-focused"),ko),(0,mt.Z)(Ve,"".concat(Zt,"-rtl"),jn==="rtl"),Ve)),style:Un,onMouseDown:Tt,onMouseUp:Ot,onMouseEnter:en,onMouseLeave:Vt,onContextMenu:Ln,onClick:io},we.createElement("div",{className:Dt()("".concat(Zt,"-input"),(0,mt.Z)({},"".concat(Zt,"-input-placeholder"),!!sl)),ref:Yr},na,Ma,us&&Ka))))}var dl=function(Ie){(0,hn.Z)(_e,Ie);var Ve=(0,ii.Z)(_e);function _e(){var Rt;(0,$t.Z)(this,_e);for(var Zt=arguments.length,fn=new Array(Zt),mn=0;mn<Zt;mn++)fn[mn]=arguments[mn];return Rt=Ve.call.apply(Ve,[this].concat(fn)),(0,mt.Z)((0,Zn.Z)(Rt),"pickerRef",we.createRef()),(0,mt.Z)((0,Zn.Z)(Rt),"focus",function(){Rt.pickerRef.current&&Rt.pickerRef.current.focus()}),(0,mt.Z)((0,Zn.Z)(Rt),"blur",function(){Rt.pickerRef.current&&Rt.pickerRef.current.blur()}),Rt}return(0,cn.Z)(_e,[{key:"render",value:function(){return we.createElement(Ss,(0,ke.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),_e}(we.Component),lu=dl;function wu(Ie,Ve){var _e=Ie.picker,Rt=Ie.locale,Zt=Ie.selectedValue,fn=Ie.disabledDate,mn=Ie.disabled,Gn=Ie.generateConfig,Un=bt(Zt,0),ui=bt(Zt,1);function Ii(zn){return Gn.locale.getWeekFirstDate(Rt.locale,zn)}function li(zn){var Mi=Gn.getYear(zn),Ji=Gn.getMonth(zn);return Mi*100+Ji}function Li(zn){var Mi=Gn.getYear(zn),Ji=De(Gn,zn);return Mi*10+Ji}var si=we.useCallback(function(zn){if(mn[0]||fn&&fn(zn))return!0;if(mn[1]&&ui)return!Ne(Gn,zn,ui)&&Gn.isAfter(zn,ui);if(!Ve&&ui)switch(_e){case"quarter":return Li(zn)>Li(ui);case"month":return li(zn)>li(ui);case"week":return Ii(zn)>Ii(ui);default:return!Ne(Gn,zn,ui)&&Gn.isAfter(zn,ui)}return!1},[fn,mn[1],ui,Ve]),Xi=we.useCallback(function(zn){if(mn[1]||fn&&fn(zn))return!0;if(mn[0]&&Un)return!Ne(Gn,zn,ui)&&Gn.isAfter(Un,zn);if(!Ve&&Un)switch(_e){case"quarter":return Li(zn)<Li(Un);case"month":return li(zn)<li(Un);case"week":return Ii(zn)<Ii(Un);default:return!Ne(Gn,zn,Un)&&Gn.isAfter(Un,zn)}return!1},[fn,mn[0],Un,Ve]);return[si,Xi]}var Fi=Se(80764),Ya=Se(8107);function Es(Ie,Ve,_e,Rt,Zt,fn,mn,Gn,Un,ui){var Ii=we.useState(!1),li=(0,ri.Z)(Ii,2),Li=li[0],si=li[1],Xi=(0,Fi.useMergedState)(Ie||!1,{value:Ve}),zn=(0,ri.Z)(Xi,2),Mi=zn[0],Ji=zn[1],jr=(0,Fi.useMergedState)(Ie||!1,{value:Ve,onChange:function(xa){ui==null||ui(xa)}}),Tr=(0,ri.Z)(jr,2),Kr=Tr[0],Vr=Tr[1],Hr=(0,Fi.useMergedState)(0,{value:_e}),zi=(0,ri.Z)(Hr,2),Yo=zi[0],jo=zi[1],ta=we.useState(null),ka=(0,ri.Z)(ta,2),La=ka[0],Sa=ka[1];we.useEffect(function(){Kr&&si(!0)},[Kr]);var es=function(xa){return xa===0?1:0},ma=(0,Ya.Z)(function(oa,xa,Ua){if(xa===!1)Vr(oa);else if(oa){jo(xa),Vr(oa);var ts=es(xa);!Kr||![mn,Gn][ts]?Sa(ts):(si(!1),La!==null&&Sa(null))}else if(Ua==="confirm"||Ua==="blur"&&Rt){var Ra=Mi?es(xa):La;Ra!==null&&(si(!1),jo(Ra)),Sa(null),Ra!==null&&!Un[Ra]?(0,mi.Z)(function(){var wa,Ms=[Zt,fn][Ra];(wa=Ms.current)===null||wa===void 0||wa.focus()}):Vr(!1)}else Vr(!1),Ji(!1)});return[Kr,Yo,Li,ma]}function Jl(Ie,Ve,_e,Rt){var Zt=ht(Ie,_e,Rt,1);function fn(mn){return mn(Ie,Ve)?"same":mn(Zt,Ve)?"closing":"far"}switch(_e){case"year":return fn(function(mn,Gn){return dt(Rt,mn,Gn)});case"quarter":case"month":return fn(function(mn,Gn){return ot(Rt,mn,Gn)});default:return fn(function(mn,Gn){return me(Rt,mn,Gn)})}}function uu(Ie,Ve,_e,Rt){var Zt=bt(Ie,0),fn=bt(Ie,1);if(Ve===0)return Zt;if(Zt&&fn){var mn=Jl(Zt,fn,_e,Rt);switch(mn){case"same":return Zt;case"closing":return Zt;default:return ht(fn,_e,Rt,-1)}}return Zt}function hu(Ie){var Ve=Ie.values,_e=Ie.picker,Rt=Ie.defaultDates,Zt=Ie.generateConfig,fn=we.useState(function(){return[bt(Rt,0),bt(Rt,1)]}),mn=(0,ri.Z)(fn,2),Gn=mn[0],Un=mn[1],ui=we.useState(null),Ii=(0,ri.Z)(ui,2),li=Ii[0],Li=Ii[1],si=bt(Ve,0),Xi=bt(Ve,1);function zn(Ji){return Gn[Ji]?Gn[Ji]:bt(li,Ji)||uu(Ve,Ji,_e,Zt)||si||Xi||Zt.getNow()}function Mi(Ji,jr){if(Ji){var Tr=In(li,Ji,jr);Un(In(Gn,null,jr)||[null,null]);var Kr=(jr+1)%2;bt(Ve,Kr)||(Tr=In(Tr,Ji,Kr)),Li(Tr)}else(si||Xi)&&Li(null)}return[zn,Mi]}function lo(Ie,Ve){return Ie&&Ie[0]&&Ie[1]&&Ve.isAfter(Ie[0],Ie[1])?[Ie[1],Ie[0]]:Ie}function Sh(Ie,Ve,_e,Rt){return!!(Ie||Rt&&Rt[Ve]||_e[(Ve+1)%2])}function El(Ie){var Ve,_e,Rt,Zt=Ie,fn=Zt.prefixCls,mn=fn===void 0?"rc-picker":fn,Gn=Zt.id,Un=Zt.style,ui=Zt.className,Ii=Zt.popupStyle,li=Zt.dropdownClassName,Li=Zt.transitionName,si=Zt.dropdownAlign,Xi=Zt.getPopupContainer,zn=Zt.generateConfig,Mi=Zt.locale,Ji=Zt.placeholder,jr=Zt.autoFocus,Tr=Zt.disabled,Kr=Zt.format,Vr=Zt.picker,Hr=Vr===void 0?"date":Vr,zi=Zt.showTime,Yo=Zt.use12Hours,jo=Zt.separator,ta=jo===void 0?"~":jo,ka=Zt.value,La=Zt.defaultValue,Sa=Zt.defaultPickerValue,es=Zt.open,ma=Zt.defaultOpen,oa=Zt.disabledDate,xa=Zt.disabledTime,Ua=Zt.dateRender,ts=Zt.monthCellRender,Ra=Zt.cellRender,wa=Zt.panelRender,Ms=Zt.presets,el=Zt.ranges,Je=Zt.allowEmpty,tt=Zt.allowClear,Tt=Zt.suffixIcon,Ot=Zt.clearIcon,en=Zt.pickerRef,Vt=Zt.inputReadOnly,Ln=Zt.mode,bn=Zt.renderExtraFooter,wn=Zt.onChange,ni=Zt.onOpenChange,jn=Zt.onPanelChange,_n=Zt.onCalendarChange,Ei=Zt.onFocus,Ci=Zt.onBlur,vi=Zt.onMouseDown,Yi=Zt.onMouseUp,xi=Zt.onMouseEnter,ir=Zt.onMouseLeave,_i=Zt.onClick,ur=Zt.onOk,Yr=Zt.onKeyDown,ao=Zt.components,pr=Zt.order,Ar=Zt.direction,bo=Zt.activePickerIndex,cr=Zt.autoComplete,Or=cr===void 0?"off":cr,mr=Zt.changeOnBlur,Zi=Hr==="date"&&!!zi||Hr==="time",or=(0,we.useRef)(null),Rr=(0,we.useRef)(null),so=(0,we.useRef)(null),uo=(0,we.useRef)(null),ar=(0,we.useRef)(null),Eo=(0,we.useRef)(null),Io=(0,we.useRef)(null),Zo=(0,we.useRef)(null),Ho=Cn(Ki(Kr,Hr,zi,Yo)),za=(0,we.useRef)(null),qo=we.useMemo(function(){return Array.isArray(Tr)?Tr:[Tr||!1,Tr||!1]},[Tr]),wo=(0,pi.Z)(null,{value:ka,defaultValue:La,postState:function(Mo){return Hr==="time"&&!pr?Mo:lo(Mo,zn)}}),Jr=(0,ri.Z)(wo,2),po=Jr[0],Ta=Jr[1],Pa=hu({values:po,picker:Hr,defaultDates:Sa,generateConfig:zn}),Ga=(0,ri.Z)(Pa,2),vo=Ga[0],io=Ga[1],Po=(0,pi.Z)(po,{postState:function(Mo){var Xo=Mo;if(qo[0]&&qo[1])return Xo;for(var Va=0;Va<2;Va+=1)qo[Va]&&!Xo&&!bt(Xo,Va)&&!bt(Je,Va)&&(Xo=In(Xo,zn.getNow(),Va));return Xo}}),Ur=(0,ri.Z)(Po,2),Br=Ur[0],Ai=Ur[1],xr=(0,pi.Z)([Hr,Hr],{value:Ln}),ko=(0,ri.Z)(xr,2),Uo=ko[0],Xs=ko[1];(0,we.useEffect)(function(){Xs([Hr,Hr])},[Hr]);var As=function(Mo,Xo){Xs(Mo),jn&&jn(Xo,Mo)},sl=Es(ma,es,bo,mr,Eo,Io,bt(Br,0),bt(Br,1),qo,ni),ya=(0,ri.Z)(sl,4),Da=ya[0],ho=ya[1],Bs=ya[2],ll=ya[3],Ma=Da&&ho===0,ja=Da&&ho===1,Ka=wu({picker:Hr,selectedValue:Br,locale:Mi,disabled:qo,disabledDate:oa,generateConfig:zn},!Da||Bs),us=(0,ri.Z)(Ka,2),Os=us[0],na=us[1],Xa=(0,we.useState)(0),Hs=(0,ri.Z)(Xa,2),Ba=Hs[0],yo=Hs[1];(0,we.useEffect)(function(){!Da&&or.current&&yo(or.current.offsetWidth)},[Da]);function gs(Qa){ll(!0,Qa,"open"),(0,mi.Z)(function(){var Mo,Xo=[Eo,Io][Qa];(Mo=Xo.current)===null||Mo===void 0||Mo.focus()},0)}function Is(Qa,Mo){var Xo=Qa,Va=bt(Xo,0),Qs=bt(Xo,1);Va&&Qs&&zn.isAfter(Va,Qs)&&(Hr==="week"&&!Me(zn,Mi.locale,Va,Qs)||Hr==="quarter"&&!xe(zn,Va,Qs)||Hr!=="week"&&Hr!=="quarter"&&Hr!=="time"&&!Ne(zn,Va,Qs)?Mo===0?(Xo=[Va,null],Qs=null):(Va=null,Xo=[null,Qs]):(Hr!=="time"||pr!==!1)&&(Xo=lo(Xo,zn))),Ai(Xo);var ad=Xo&&Xo[0]?Pt(Xo[0],{generateConfig:zn,locale:Mi,format:Ho[0]}):"",Rl=Xo&&Xo[1]?Pt(Xo[1],{generateConfig:zn,locale:Mi,format:Ho[0]}):"";if(_n){var Wh={range:Mo===0?"start":"end"};_n(Xo,[ad,Rl],Wh)}var uh=Sh(Va,0,qo,Je),cc=Sh(Qs,1,qo,Je),Zh=Xo===null||uh&&cc;Zh&&(Ta(Xo),wn&&(!et(zn,bt(po,0),Va)||!et(zn,bt(po,1),Qs))&&wn(Xo,[ad,Rl]))}var bu=function(Mo){return Da&&za.current&&za.current.onKeyDown?za.current.onKeyDown(Mo):((0,it.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},$l={formatList:Ho,generateConfig:zn,locale:Mi},Ha=oi(bt(Br,0),$l),ul=(0,ri.Z)(Ha,2),ss=ul[0],ns=ul[1],du=oi(bt(Br,1),$l),ah=(0,ri.Z)(du,2),Ol=ah[0],Ku=ah[1],Vu=function(Mo,Xo){var Va=ln(Mo,{locale:Mi,formatList:Ho,generateConfig:zn}),Qs=Xo===0?Os:na;Va&&!Qs(Va)&&(Ai(In(Br,Va,Xo)),io(Va,Xo))},ql=pn({valueTexts:ss,onTextChange:function(Mo){return Vu(Mo,0)}}),Ca=(0,ri.Z)(ql,3),Ja=Ca[0],Ws=Ca[1],is=Ca[2],ba=pn({valueTexts:Ol,onTextChange:function(Mo){return Vu(Mo,1)}}),Zs=(0,ri.Z)(ba,3),Sl=Zs[0],Eu=Zs[1],ac=Zs[2],Yt=(0,we.useState)(null),wh=(0,ri.Z)(Yt,2),sh=wh[0],Rc=wh[1],vd=(0,we.useState)(null),Rh=(0,ri.Z)(vd,2),Ph=Rh[0],cf=Rh[1],fl=ci(Ja,{formatList:Ho,generateConfig:zn,locale:Mi}),id=(0,ri.Z)(fl,3),Od=id[0],Id=id[1],Rd=id[2],ff=ci(Sl,{formatList:Ho,generateConfig:zn,locale:Mi}),zd=(0,ri.Z)(ff,3),jd=zd[0],cu=zd[1],zh=zd[2],zc=function(Mo){cf(In(Br,Mo,ho)),ho===0?Id(Mo):cu(Mo)},Yu=function(){cf(In(Br,null,ho)),ho===0?Rd():zh()},jh=we.useState(Da),rd=(0,ri.Z)(jh,2),od=rd[0],Il=rd[1];we.useEffect(function(){Il(Da)},[Da]);var sc=function(Mo){if(mr&&od){var Xo=bt(Br,ho);Xo&&Is(Br,ho)}return Ci==null?void 0:Ci(Mo)},Hd=function(Mo,Xo){return{blurToCancel:!mr&&Zi,forwardKeyDown:bu,onBlur:sc,isClickOutside:function(Qs){return!vn([Rr.current,so.current,uo.current,or.current],Qs)},onFocus:function(Qs){Ei&&Ei(Qs)},triggerOpen:function(Qs){Qs?ll(Qs,Mo,"open"):ll(Qs,bt(Br,Mo)?Mo:!1,"blur")},onSubmit:function(){if(!Br||oa&&oa(Br[Mo]))return!1;Is(Br,Mo),Xo(),ll(!1,ho,"confirm")},onCancel:function(){ll(!1,Mo,"cancel"),Ai(po),Xo()}}},_l={onKeyDown:function(Mo,Xo){Yr==null||Yr(Mo,Xo)},changeOnBlur:mr},yd=an((0,Xn.Z)((0,Xn.Z)({},Hd(0,is)),{},{open:Ma,value:Ja},_l)),Wd=(0,ri.Z)(yd,2),lc=Wd[0],Ch=Wd[1],xl=Ch.focused,Zd=Ch.typing,Js=an((0,Xn.Z)((0,Xn.Z)({},Hd(1,ac)),{},{open:ja,value:Sl},_l)),Na=(0,ri.Z)(Js,2),hs=Na[0],gl=Na[1],fu=gl.focused,gu=gl.typing,uc=function(Mo){_i&&_i(Mo),!Da&&!Eo.current.contains(Mo.target)&&!Io.current.contains(Mo.target)&&(qo[0]?qo[1]||gs(1):gs(0))},Hh=function(Mo){vi&&vi(Mo),Da&&(xl||fu)&&!Eo.current.contains(Mo.target)&&!Io.current.contains(Mo.target)&&Mo.preventDefault()},Gd=po&&po[0]?Pt(po[0],{locale:Mi,format:"YYYYMMDDHHmmss",generateConfig:zn}):"",Du=po&&po[1]?Pt(po[1],{locale:Mi,format:"YYYYMMDDHHmmss",generateConfig:zn}):"";(0,we.useEffect)(function(){Da||(Ai(po),!ss.length||ss[0]===""?Ws(""):ns!==Ja&&is(),!Ol.length||Ol[0]===""?Eu(""):Ku!==Sl&&ac())},[Da,ss,Ol]),(0,we.useEffect)(function(){Ai(po)},[Gd,Du]);var Uu=yn({cellRender:Ra,monthCellRender:ts,dateRender:Ua}),gf=we.useMemo(function(){if(Uu)return function(Qa,Mo){return Uu(Qa,(0,Xn.Z)((0,Xn.Z)({},Mo),{},{range:ho?"end":"start"}))}},[ho,Uu]);en&&(en.current={focus:function(){Eo.current&&Eo.current.focus()},blur:function(){Eo.current&&Eo.current.blur(),Io.current&&Io.current.blur()}});var pf=Jt(Ms,el);function hc(){var Qa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Mo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xo=null;Da&&Ph&&Ph[0]&&Ph[1]&&zn.isAfter(Ph[1],Ph[0])&&(Xo=Ph);var Va=zi;if(zi&&(0,lt.Z)(zi)==="object"&&zi.defaultValue){var Qs=zi.defaultValue;Va=(0,Xn.Z)((0,Xn.Z)({},zi),{},{defaultValue:bt(Qs,ho)||void 0})}return we.createElement(Sn.Provider,{value:{inRange:!0,panelPosition:Qa,rangedValue:sh||Br,hoverRangedValue:Xo}},we.createElement(To,(0,ke.Z)({},Ie,Mo,{cellRender:gf,showTime:Va,mode:Uo[ho],generateConfig:zn,style:void 0,direction:Ar,disabledDate:ho===0?Os:na,disabledTime:function(Rl){return xa?xa(Rl,ho===0?"start":"end"):!1},className:Dt()((0,mt.Z)({},"".concat(mn,"-panel-focused"),ho===0?!Zd:!gu)),value:bt(Br,ho),locale:Mi,tabIndex:-1,onPanelChange:function(Rl,Wh){ho===0&&Rd(!0),ho===1&&zh(!0),As(In(Uo,Wh,ho),In(Br,Rl,ho));var uh=Rl;Qa==="right"&&Uo[ho]===Wh&&(uh=ht(uh,Wh,zn,-1)),io(uh,ho)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:ho===0?bt(Br,1):bt(Br,0)})))}var Bu=0,mf=0;if(ho&&so.current&&ar.current&&Rr.current&&Zo.current){Bu=so.current.offsetWidth+ar.current.offsetWidth;var Wf=Zo.current.offsetLeft>Bu?Zo.current.offsetLeft-Bu:Zo.current.offsetLeft,vf=Rr.current.offsetWidth,lh=Zo.current.offsetWidth;vf&&lh&&Bu>vf-lh-(Ar==="rtl"?0:Wf)&&(mf=Bu)}var Sg=Ar==="rtl"?{right:Bu}:{left:Bu};function Zf(){var Qa,Mo=No(mn,Uo[ho],bn),Xo=ga({prefixCls:mn,components:ao,needConfirmButton:Zi,okDisabled:!bt(Br,ho)||oa&&oa(Br[ho]),locale:Mi,onOk:function(){var hh=bt(Br,ho);hh&&(Is(Br,ho),ur==null||ur(Br),ll(!1,ho,"confirm"))}});if(Hr!=="time"&&!zi){var Va=vo(ho),Qs=ht(Va,Hr,zn),ad=Uo[ho],Rl=ad===Hr,Wh=hc(Rl?"left":!1,{pickerValue:Va,onPickerValueChange:function(hh){io(hh,ho)}}),uh=hc("right",{pickerValue:Qs,onPickerValueChange:function(hh){io(ht(hh,Hr,zn,-1),ho)}});Ar==="rtl"?Qa=we.createElement(we.Fragment,null,uh,Rl&&Wh):Qa=we.createElement(we.Fragment,null,Wh,Rl&&uh)}else Qa=hc();var cc=we.createElement("div",{className:"".concat(mn,"-panel-layout")},we.createElement(Oo,{prefixCls:mn,presets:pf,onClick:function(hh){Is(hh,null),ll(!1,ho,"preset")},onHover:function(hh){Rc(hh)}}),we.createElement("div",null,we.createElement("div",{className:"".concat(mn,"-panels")},Qa),(Mo||Xo)&&we.createElement("div",{className:"".concat(mn,"-footer")},Mo,Xo)));return wa&&(cc=wa(cc)),we.createElement("div",{className:"".concat(mn,"-panel-container"),style:{marginLeft:mf},ref:Rr,onMouseDown:function(hh){hh.preventDefault()}},cc)}var dc=we.createElement("div",{className:Dt()("".concat(mn,"-range-wrapper"),"".concat(mn,"-").concat(Hr,"-range-wrapper")),style:{minWidth:Ba}},we.createElement("div",{ref:Zo,className:"".concat(mn,"-range-arrow"),style:Sg}),Zf()),Sd;Tt&&(Sd=we.createElement("span",{className:"".concat(mn,"-suffix"),onMouseDown:function(Mo){Mo.preventDefault()}},Tt));var Gf=cs(mn,tt,Ot),bh=we.createElement("span",{onMouseDown:function(Mo){Mo.preventDefault(),Mo.stopPropagation()},onMouseUp:function(Mo){Mo.preventDefault(),Mo.stopPropagation();var Xo=po;qo[0]||(Xo=In(Xo,null,0)),qo[1]||(Xo=In(Xo,null,1)),Is(Xo,null),ll(!1,ho,"clear")},className:"".concat(mn,"-clear"),role:"button"},Gf),Kf=tt&&(bt(po,0)&&!qo[0]||bt(po,1)&&!qo[1]),jc={size:Xr(Hr,Ho[0],zn)},yf=0,Hc=0;so.current&&uo.current&&ar.current&&(ho===0?Hc=so.current.offsetWidth:(yf=Bu,Hc=uo.current.offsetWidth));var Vf=Ar==="rtl"?{right:yf}:{left:yf},sp=function(Mo,Xo){var Va=In(Br,Mo,ho);if(Xo==="submit"||Xo!=="key"&&!Zi){Is(Va,ho),ho===0?Rd():zh();var Qs=ho===0?1:0;qo[Qs]?ll(!1,!1,"confirm"):ll(!1,ho,"confirm")}else Ai(Va)};return we.createElement(It.Provider,{value:{operationRef:za,hideHeader:Hr==="time",onDateMouseEnter:zc,onDateMouseLeave:Yu,hideRanges:!0,onSelect:sp,open:Da}},we.createElement(zo,{visible:Da,popupElement:dc,popupStyle:Ii,prefixCls:mn,dropdownClassName:li,dropdownAlign:si,getPopupContainer:Xi,transitionName:Li,range:!0,direction:Ar},we.createElement("div",(0,ke.Z)({ref:or,className:Dt()(mn,"".concat(mn,"-range"),ui,(Ve={},(0,mt.Z)(Ve,"".concat(mn,"-disabled"),qo[0]&&qo[1]),(0,mt.Z)(Ve,"".concat(mn,"-focused"),ho===0?xl:fu),(0,mt.Z)(Ve,"".concat(mn,"-rtl"),Ar==="rtl"),Ve)),style:Un,onClick:uc,onMouseEnter:xi,onMouseLeave:ir,onMouseDown:Hh,onMouseUp:Yi},(0,Mn.Z)(Ie,{aria:!0,data:!0})),we.createElement("div",{className:Dt()("".concat(mn,"-input"),(_e={},(0,mt.Z)(_e,"".concat(mn,"-input-active"),ho===0),(0,mt.Z)(_e,"".concat(mn,"-input-placeholder"),!!Od),_e)),ref:so},we.createElement("input",(0,ke.Z)({id:Gn,disabled:qo[0],readOnly:Vt||typeof Ho[0]=="function"||!Zd,value:Od||Ja,onChange:function(Mo){Ws(Mo.target.value)},autoFocus:jr,placeholder:bt(Ji,0)||"",ref:Eo},lc,jc,{autoComplete:Or}))),we.createElement("div",{className:"".concat(mn,"-range-separator"),ref:ar},ta),we.createElement("div",{className:Dt()("".concat(mn,"-input"),(Rt={},(0,mt.Z)(Rt,"".concat(mn,"-input-active"),ho===1),(0,mt.Z)(Rt,"".concat(mn,"-input-placeholder"),!!jd),Rt)),ref:uo},we.createElement("input",(0,ke.Z)({disabled:qo[1],readOnly:Vt||typeof Ho[0]=="function"||!gu,value:jd||Sl,onChange:function(Mo){Eu(Mo.target.value)},placeholder:bt(Ji,1)||"",ref:Io},hs,jc,{autoComplete:Or}))),we.createElement("div",{className:"".concat(mn,"-active-bar"),style:(0,Xn.Z)((0,Xn.Z)({},Vf),{},{width:Hc,position:"absolute"})}),Sd,Kf&&bh)))}var Ll=function(Ie){(0,hn.Z)(_e,Ie);var Ve=(0,ii.Z)(_e);function _e(){var Rt;(0,$t.Z)(this,_e);for(var Zt=arguments.length,fn=new Array(Zt),mn=0;mn<Zt;mn++)fn[mn]=arguments[mn];return Rt=Ve.call.apply(Ve,[this].concat(fn)),(0,mt.Z)((0,Zn.Z)(Rt),"pickerRef",we.createRef()),(0,mt.Z)((0,Zn.Z)(Rt),"focus",function(){Rt.pickerRef.current&&Rt.pickerRef.current.focus()}),(0,mt.Z)((0,Zn.Z)(Rt),"blur",function(){Rt.pickerRef.current&&Rt.pickerRef.current.blur()}),Rt}return(0,cn.Z)(_e,[{key:"render",value:function(){return we.createElement(El,(0,ke.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),_e}(we.Component),ml=Ll,Zu=lu,Pu=Se(19080),vl=Se(36355),Ml=Se(1684),Bh=Se(19716),_h=Se(32441),Oh=Se(9763),gd=Se(33234),Ih=Se(48183),Gu=Se(64993),Dl=Se(9937),Bl=Se(17313),pd=Se(47585),ed=Se(74207),Cu=Se(13826),Bo=Se(92899),da=Se(37613),cl=Se(83116);const xs=(Ie,Ve,_e,Rt)=>{const{lineHeight:Zt}=Ie,fn=Math.floor(_e*Zt)+2,mn=Math.max((Ve-fn)/2,0),Gn=Math.max(Ve-fn-mn,0);return{padding:`${mn}px ${Rt}px ${Gn}px`}},ws=Ie=>{const{componentCls:Ve,pickerCellCls:_e,pickerCellInnerCls:Rt,cellHeight:Zt,motionDurationSlow:fn,borderRadiusSM:mn,motionDurationMid:Gn,cellHoverBg:Un,lineWidth:ui,lineType:Ii,colorPrimary:li,cellActiveWithRangeBg:Li,colorTextLightSolid:si,controlHeightSM:Xi,cellRangeBorderColor:zn,pickerCellBorderGap:Mi,cellHoverWithRangeBg:Ji,cellWidth:jr,colorTextDisabled:Tr,cellBgDisabled:Kr}=Ie;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Zt,transform:"translateY(-50%)",transition:`all ${fn}`,content:'""'},[Rt]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Zt,height:Zt,lineHeight:`${Zt}px`,borderRadius:mn,transition:`background ${Gn}, border ${Gn}`},"&-range-hover-start, &-range-hover-end":{[Rt]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${_e}-in-view),
|
|
|
&:hover:not(${_e}-selected):not(${_e}-range-start):not(${_e}-range-end):not(${_e}-range-hover-start):not(${_e}-range-hover-end)`]:{[Rt]:{background:Un}},[`&-in-view${_e}-today ${Rt}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ui}px ${Ii} ${li}`,borderRadius:mn,content:'""'}},[`&-in-view${_e}-in-range`]:{position:"relative","&::before":{background:Li}},[`&-in-view${_e}-selected ${Rt},
|
|
|
&-in-view${_e}-range-start ${Rt},
|
|
|
&-in-view${_e}-range-end ${Rt}`]:{color:si,background:li},[`&-in-view${_e}-range-start:not(${_e}-range-start-single),
|
|
|
&-in-view${_e}-range-end:not(${_e}-range-end-single)`]:{"&::before":{background:Li}},[`&-in-view${_e}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${_e}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${_e}-range-hover-start:not(${_e}-in-range):not(${_e}-range-start):not(${_e}-range-end),
|
|
|
&-in-view${_e}-range-hover-end:not(${_e}-in-range):not(${_e}-range-start):not(${_e}-range-end),
|
|
|
&-in-view${_e}-range-hover-start${_e}-range-start-single,
|
|
|
&-in-view${_e}-range-hover-start${_e}-range-start${_e}-range-end${_e}-range-end-near-hover,
|
|
|
&-in-view${_e}-range-hover-end${_e}-range-start${_e}-range-end${_e}-range-start-near-hover,
|
|
|
&-in-view${_e}-range-hover-end${_e}-range-end-single,
|
|
|
&-in-view${_e}-range-hover:not(${_e}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Xi,borderTop:`${ui}px dashed ${zn}`,borderBottom:`${ui}px dashed ${zn}`,transform:"translateY(-50%)",transition:`all ${fn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:Mi},[`&-in-view${_e}-in-range${_e}-range-hover::before,
|
|
|
&-in-view${_e}-in-range${_e}-range-hover-start::before,
|
|
|
&-in-view${_e}-in-range${_e}-range-hover-end::before,
|
|
|
&-in-view${_e}-range-start${_e}-range-hover::before,
|
|
|
&-in-view${_e}-range-end${_e}-range-hover::before,
|
|
|
&-in-view${_e}-range-start:not(${_e}-range-start-single)${_e}-range-hover-start::before,
|
|
|
&-in-view${_e}-range-end:not(${_e}-range-end-single)${_e}-range-hover-end::before,
|
|
|
${Ve}-panel
|
|
|
> :not(${Ve}-date-panel)
|
|
|
&-in-view${_e}-in-range${_e}-range-hover-start::before,
|
|
|
${Ve}-panel
|
|
|
> :not(${Ve}-date-panel)
|
|
|
&-in-view${_e}-in-range${_e}-range-hover-end::before`]:{background:Ji},[`&-in-view${_e}-range-start:not(${_e}-range-start-single):not(${_e}-range-end) ${Rt}`]:{borderStartStartRadius:mn,borderEndStartRadius:mn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${_e}-range-end:not(${_e}-range-end-single):not(${_e}-range-start) ${Rt}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:mn,borderEndEndRadius:mn},[`&-range-hover${_e}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${_e}-range-hover:first-child::after,
|
|
|
tr > &-in-view${_e}-range-hover-end:first-child::after,
|
|
|
&-in-view${_e}-start${_e}-range-hover-edge-start${_e}-range-hover-edge-start-near-range::after,
|
|
|
&-in-view${_e}-range-hover-edge-start:not(${_e}-range-hover-edge-start-near-range)::after,
|
|
|
&-in-view${_e}-range-hover-start::after`]:{insetInlineStart:(jr-Zt)/2,borderInlineStart:`${ui}px dashed ${zn}`,borderStartStartRadius:mn,borderEndStartRadius:mn},[`tr > &-in-view${_e}-range-hover:last-child::after,
|
|
|
tr > &-in-view${_e}-range-hover-start:last-child::after,
|
|
|
&-in-view${_e}-end${_e}-range-hover-edge-end${_e}-range-hover-edge-end-near-range::after,
|
|
|
&-in-view${_e}-range-hover-edge-end:not(${_e}-range-hover-edge-end-near-range)::after,
|
|
|
&-in-view${_e}-range-hover-end::after`]:{insetInlineEnd:(jr-Zt)/2,borderInlineEnd:`${ui}px dashed ${zn}`,borderStartEndRadius:mn,borderEndEndRadius:mn},"&-disabled":{color:Tr,pointerEvents:"none",[Rt]:{background:"transparent"},"&::before":{background:Kr}},[`&-disabled${_e}-today ${Rt}::before`]:{borderColor:Tr}}},_a=Ie=>{const{componentCls:Ve,pickerCellCls:_e,pickerCellInnerCls:Rt,pickerYearMonthCellWidth:Zt,pickerControlIconSize:fn,cellWidth:mn,paddingSM:Gn,paddingXS:Un,paddingXXS:ui,colorBgContainer:Ii,lineWidth:li,lineType:Li,borderRadiusLG:si,colorPrimary:Xi,colorTextHeading:zn,colorSplit:Mi,pickerControlIconBorderWidth:Ji,colorIcon:jr,textHeight:Tr,motionDurationMid:Kr,colorIconHover:Vr,fontWeightStrong:Hr,cellHeight:zi,pickerCellPaddingVertical:Yo,colorTextDisabled:jo,colorText:ta,fontSize:ka,cellHoverWithRangeBg:La,motionDurationSlow:Sa,withoutTimeCellHeight:es,pickerQuarterPanelContentHeight:ma,colorLink:oa,colorLinkActive:xa,colorLinkHover:Ua,cellRangeBorderColor:ts,borderRadiusSM:Ra,colorTextLightSolid:wa,cellHoverBg:Ms,timeColumnHeight:el,timeColumnWidth:Je,timeCellHeight:tt,controlItemBgActive:Tt,marginXXS:Ot,pickerDatePanelPaddingHorizontal:en}=Ie,Vt=mn*7+en*2,Ln=(Vt-Un*2)/3-Zt-Gn,bn=(Vt-Un*2)/4-Zt;return{[Ve]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ii,border:`${li}px ${Li} ${Mi}`,borderRadius:si,outline:"none","&-focused":{borderColor:Xi},"&-rtl":{direction:"rtl",[`${Ve}-prev-icon,
|
|
|
${Ve}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Ve}-next-icon,
|
|
|
${Ve}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Vt},"&-header":{display:"flex",padding:`0 ${Un}px`,color:zn,borderBottom:`${li}px ${Li} ${Mi}`,"> *":{flex:"none"},button:{padding:0,color:jr,lineHeight:`${Tr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Kr}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:ka,"&:hover":{color:Vr}},"&-view":{flex:"auto",fontWeight:Hr,lineHeight:`${Tr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Un},"&:hover":{color:Xi}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:fn,height:fn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:fn,height:fn,border:"0 solid currentcolor",borderBlockStartWidth:Ji,borderBlockEndWidth:0,borderInlineStartWidth:Ji,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(fn/2),insetInlineStart:Math.ceil(fn/2),display:"inline-block",width:fn,height:fn,border:"0 solid currentcolor",borderBlockStartWidth:Ji,borderBlockEndWidth:0,borderInlineStartWidth:Ji,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:zi,fontWeight:"normal"},th:{height:zi+Yo*2,color:ta,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Yo}px 0`,color:jo,cursor:"pointer","&-in-view":{color:ta}},ws(Ie)),[`&-date-panel ${Ve}-cell-in-view${Ve}-cell-in-range${Ve}-cell-range-hover-start ${Rt},
|
|
|
&-date-panel ${Ve}-cell-in-view${Ve}-cell-in-range${Ve}-cell-range-hover-end ${Rt}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:La,transition:`all ${Sa}`,content:'""'}},[`&-date-panel
|
|
|
${Ve}-cell-in-view${Ve}-cell-in-range${Ve}-cell-range-hover-start
|
|
|
${Rt}::after`]:{insetInlineEnd:-(mn-zi)/2,insetInlineStart:0},[`&-date-panel ${Ve}-cell-in-view${Ve}-cell-in-range${Ve}-cell-range-hover-end ${Rt}::after`]:{insetInlineEnd:0,insetInlineStart:-(mn-zi)/2},[`&-range-hover${Ve}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ve}-content`]:{height:es*4},[Rt]:{padding:`0 ${Un}px`}},"&-quarter-panel":{[`${Ve}-content`]:{height:ma},[`${Ve}-cell-range-hover-start::after`]:{insetInlineStart:bn,borderInlineStart:`${li}px dashed ${ts}`,[`${Ve}-panel-rtl &`]:{insetInlineEnd:bn,borderInlineEnd:`${li}px dashed ${ts}`}},[`${Ve}-cell-range-hover-end::after`]:{insetInlineEnd:bn,borderInlineEnd:`${li}px dashed ${ts}`,[`${Ve}-panel-rtl &`]:{insetInlineStart:bn,borderInlineStart:`${li}px dashed ${ts}`}}},[`&-panel ${Ve}-footer`]:{borderTop:`${li}px ${Li} ${Mi}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Tr-2*li}px`,textAlign:"center","&-extra":{padding:`0 ${Gn}px`,lineHeight:`${Tr-2*li}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${li}px ${Li} ${Mi}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:oa,"&:hover":{color:Ua},"&:active":{color:xa},[`&${Ve}-today-btn-disabled`]:{color:jo,cursor:"not-allowed"}},"&-decade-panel":{[Rt]:{padding:`0 ${Un/2}px`},[`${Ve}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ve}-body`]:{padding:`0 ${Un}px`},[Rt]:{width:Zt},[`${Ve}-cell-range-hover-start::after`]:{borderStartStartRadius:Ra,borderEndStartRadius:Ra,borderStartEndRadius:0,borderEndEndRadius:0,[`${Ve}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ra,borderEndEndRadius:Ra}},[`${Ve}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ra,borderEndEndRadius:Ra,[`${Ve}-panel-rtl &`]:{borderStartStartRadius:Ra,borderEndStartRadius:Ra,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Ve}-cell-range-hover-start::after`]:{insetInlineStart:Ln,borderInlineStart:`${li}px dashed ${ts}`,[`${Ve}-panel-rtl &`]:{insetInlineEnd:Ln,borderInlineEnd:`${li}px dashed ${ts}`}},[`${Ve}-cell-range-hover-end::after`]:{insetInlineEnd:Ln,borderInlineEnd:`${li}px dashed ${ts}`,[`${Ve}-panel-rtl &`]:{insetInlineStart:Ln,borderInlineStart:`${li}px dashed ${ts}`}}},"&-week-panel":{[`${Ve}-body`]:{padding:`${Un}px ${Gn}px`},[`${Ve}-cell`]:{[`&:hover ${Rt},
|
|
|
&-selected ${Rt},
|
|
|
${Rt}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Kr}`},"&:first-child:before":{borderStartStartRadius:Ra,borderEndStartRadius:Ra},"&:last-child:before":{borderStartEndRadius:Ra,borderEndEndRadius:Ra}},"&:hover td":{"&:before":{background:Ms}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${_e}`]:{"&:before":{background:Xi},[`&${Ve}-cell-week`]:{color:new Gu.C(wa).setAlpha(.5).toHexString()},[Rt]:{color:wa}}},"&-range-hover td:before":{background:Tt}}},"&-date-panel":{[`${Ve}-body`]:{padding:`${Un}px ${en}px`},[`${Ve}-content`]:{width:mn*7,th:{width:mn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Ve}-time-panel`]:{borderInlineStart:`${li}px ${Li} ${Mi}`},[`${Ve}-date-panel,
|
|
|
${Ve}-time-panel`]:{transition:`opacity ${Sa}`},"&-active":{[`${Ve}-date-panel,
|
|
|
${Ve}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Ve}-content`]:{display:"flex",flex:"auto",height:el},"&-column":{flex:"1 0 auto",width:Je,margin:`${ui}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Kr}`,overflowX:"hidden","&::after":{display:"block",height:el-tt,content:'""'},"&:not(:first-child)":{borderInlineStart:`${li}px ${Li} ${Mi}`},"&-active":{background:new Gu.C(Tt).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Ve}-time-panel-cell`]:{marginInline:Ot,[`${Ve}-time-panel-cell-inner`]:{display:"block",width:Je-2*Ot,height:tt,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Je-tt)/2,color:ta,lineHeight:`${tt}px`,borderRadius:Ra,cursor:"pointer",transition:`background ${Kr}`,"&:hover":{background:Ms}},"&-selected":{[`${Ve}-time-panel-cell-inner`]:{background:Tt}},"&-disabled":{[`${Ve}-time-panel-cell-inner`]:{color:jo,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Ve}-time-panel-column:after`]:{height:el-tt+ui*2}}}},ls=Ie=>{const{componentCls:Ve,colorBgContainer:_e,colorError:Rt,errorActiveShadow:Zt,colorWarning:fn,warningActiveShadow:mn}=Ie;return{[`${Ve}:not(${Ve}-disabled)`]:{[`&${Ve}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:_e,borderColor:Rt},[`&${Ve}-focused, &:focus`]:Object.assign({},(0,Dl.M1)((0,da.TS)(Ie,{activeBorderColor:Rt,activeShadow:Zt}))),[`${Ve}-active-bar`]:{background:Rt}},[`&${Ve}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:_e,borderColor:fn},[`&${Ve}-focused, &:focus`]:Object.assign({},(0,Dl.M1)((0,da.TS)(Ie,{activeBorderColor:fn,activeShadow:mn}))),[`${Ve}-active-bar`]:{background:fn}}}}},Ls=Ie=>{const{componentCls:Ve,antCls:_e,controlHeight:Rt,fontSize:Zt,paddingInline:fn,colorBgContainer:mn,lineWidth:Gn,lineType:Un,colorBorder:ui,borderRadius:Ii,motionDurationMid:li,colorBgContainerDisabled:Li,colorTextDisabled:si,colorTextPlaceholder:Xi,controlHeightLG:zn,fontSizeLG:Mi,controlHeightSM:Ji,paddingInlineSM:jr,paddingXS:Tr,marginXS:Kr,colorTextDescription:Vr,lineWidthBold:Hr,lineHeight:zi,colorPrimary:Yo,motionDurationSlow:jo,zIndexPopup:ta,paddingXXS:ka,paddingSM:La,textHeight:Sa,cellActiveWithRangeBg:es,colorPrimaryBorder:ma,sizePopupArrow:oa,borderRadiusXS:xa,borderRadiusOuter:Ua,colorBgElevated:ts,borderRadiusLG:Ra,boxShadowSecondary:wa,borderRadiusSM:Ms,colorSplit:el,cellHoverBg:Je,presetsWidth:tt,presetsMaxWidth:Tt,boxShadowPopoverArrow:Ot,colorTextQuaternary:en}=Ie;return[{[Ve]:Object.assign(Object.assign(Object.assign({},(0,Bl.Wf)(Ie)),xs(Ie,Rt,Zt,fn)),{position:"relative",display:"inline-flex",alignItems:"center",background:mn,lineHeight:1,border:`${Gn}px ${Un} ${ui}`,borderRadius:Ii,transition:`border ${li}, box-shadow ${li}`,"&:hover, &-focused":Object.assign({},(0,Dl.pU)(Ie)),"&-focused":Object.assign({},(0,Dl.M1)(Ie)),[`&${Ve}-disabled`]:{background:Li,borderColor:ui,cursor:"not-allowed",[`${Ve}-suffix`]:{color:en}},[`&${Ve}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Ve}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Dl.ik)(Ie)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Ve}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Xi}}},"&-large":Object.assign(Object.assign({},xs(Ie,zn,Mi,fn)),{[`${Ve}-input > input`]:{fontSize:Mi}}),"&-small":Object.assign({},xs(Ie,Ji,Zt,jr)),[`${Ve}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Tr/2,color:si,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Kr}}},[`${Ve}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:si,lineHeight:1,background:mn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${li}, color ${li}`,"> *":{verticalAlign:"top"},"&:hover":{color:Vr}},[`${Ve}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Mi,color:si,fontSize:Mi,verticalAlign:"top",cursor:"default",[`${Ve}-focused &`]:{color:Vr},[`${Ve}-range-separator &`]:{[`${Ve}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Ve}-clear`]:{insetInlineEnd:fn},"&:hover":{[`${Ve}-clear`]:{opacity:1}},[`${Ve}-active-bar`]:{bottom:-Gn,height:Hr,marginInlineStart:fn,background:Yo,opacity:0,transition:`all ${jo} ease-out`,pointerEvents:"none"},[`&${Ve}-focused`]:{[`${Ve}-active-bar`]:{opacity:1}},[`${Ve}-range-separator`]:{alignItems:"center",padding:`0 ${Tr}px`,lineHeight:1},[`&${Ve}-small`]:{[`${Ve}-clear`]:{insetInlineEnd:jr},[`${Ve}-active-bar`]:{marginInlineStart:jr}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Bl.Wf)(Ie)),_a(Ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ta,[`&${Ve}-dropdown-hidden`]:{display:"none"},[`&${Ve}-dropdown-placement-bottomLeft`]:{[`${Ve}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Ve}-dropdown-placement-topLeft`]:{[`${Ve}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${_e}-slide-up-enter${_e}-slide-up-enter-active${Ve}-dropdown-placement-topLeft,
|
|
|
&${_e}-slide-up-enter${_e}-slide-up-enter-active${Ve}-dropdown-placement-topRight,
|
|
|
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Ve}-dropdown-placement-topLeft,
|
|
|
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Ve}-dropdown-placement-topRight`]:{animationName:Cu.Qt},[`&${_e}-slide-up-enter${_e}-slide-up-enter-active${Ve}-dropdown-placement-bottomLeft,
|
|
|
&${_e}-slide-up-enter${_e}-slide-up-enter-active${Ve}-dropdown-placement-bottomRight,
|
|
|
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Ve}-dropdown-placement-bottomLeft,
|
|
|
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Ve}-dropdown-placement-bottomRight`]:{animationName:Cu.fJ},[`&${_e}-slide-up-leave${_e}-slide-up-leave-active${Ve}-dropdown-placement-topLeft,
|
|
|
&${_e}-slide-up-leave${_e}-slide-up-leave-active${Ve}-dropdown-placement-topRight`]:{animationName:Cu.ly},[`&${_e}-slide-up-leave${_e}-slide-up-leave-active${Ve}-dropdown-placement-bottomLeft,
|
|
|
&${_e}-slide-up-leave${_e}-slide-up-leave-active${Ve}-dropdown-placement-bottomRight`]:{animationName:Cu.Uw},[`${Ve}-panel > ${Ve}-time-panel`]:{paddingTop:ka},[`${Ve}-ranges`]:{marginBottom:0,padding:`${ka}px ${La}px`,overflow:"hidden",lineHeight:`${Sa-2*Gn-Tr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Ve}-preset > ${_e}-tag-blue`]:{color:Yo,background:es,borderColor:ma,cursor:"pointer"},[`${Ve}-ok`]:{marginInlineStart:"auto"}},[`${Ve}-range-wrapper`]:{display:"flex",position:"relative"},[`${Ve}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:fn*1.5,transition:`left ${jo} ease-out`},(0,pd.r)(oa,xa,Ua,ts,Ot)),[`${Ve}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:ts,borderRadius:Ra,boxShadow:wa,transition:`margin ${jo}`,[`${Ve}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Ve}-presets`]:{display:"flex",flexDirection:"column",minWidth:tt,maxWidth:Tt,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Tr,borderInlineEnd:`${Gn}px ${Un} ${el}`,li:Object.assign(Object.assign({},Bl.vS),{borderRadius:Ms,paddingInline:Tr,paddingBlock:(Ji-Math.round(Zt*zi))/2,cursor:"pointer",transition:`all ${jo}`,"+ li":{marginTop:Kr},"&:hover":{background:Je}})}},[`${Ve}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Ve}-panel`]:{borderWidth:`0 0 ${Gn}px`},"&:last-child":{[`${Ve}-panel`]:{borderWidth:0}}},[`${Ve}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Ve}-content,
|
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:ui}}}}),"&-dropdown-range":{padding:`${oa*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Ve}-separator`]:{transform:"rotate(180deg)"},[`${Ve}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Cu.oN)(Ie,"slide-up"),(0,Cu.oN)(Ie,"slide-down"),(0,Bo.Fm)(Ie,"move-up"),(0,Bo.Fm)(Ie,"move-down")]},Ps=Ie=>{const{componentCls:Ve,controlHeightLG:_e,paddingXXS:Rt,padding:Zt}=Ie;return{pickerCellCls:`${Ve}-cell`,pickerCellInnerCls:`${Ve}-cell-inner`,pickerYearMonthCellWidth:_e*1.5,pickerQuarterPanelContentHeight:_e*1.4,pickerCellPaddingVertical:Rt+Rt/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Zt+Rt/2}},ih=Ie=>({cellHoverBg:Ie.controlItemBgHover,cellActiveWithRangeBg:Ie.controlItemBgActive,cellHoverWithRangeBg:new Gu.C(Ie.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Gu.C(Ie.colorPrimary).lighten(20).toHexString(),cellBgDisabled:Ie.colorBgContainerDisabled,timeColumnWidth:Ie.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:Ie.controlHeightSM*1.5,cellHeight:Ie.controlHeightSM,textHeight:Ie.controlHeightLG,withoutTimeCellHeight:Ie.controlHeightLG*1.65});var Ql=(0,cl.Z)("DatePicker",Ie=>{const Ve=(0,da.TS)((0,Dl.e5)(Ie),Ps(Ie));return[Ls(Ve),ls(Ve),(0,ed.c)(Ie,{focusElCls:`${Ie.componentCls}-focused`})]},Ie=>Object.assign(Object.assign(Object.assign({},(0,Dl.TM)(Ie)),ih(Ie)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:Ie.zIndexPopupBase+50}));function fs(Ie,Ve,_e){return _e!==void 0?_e:Ve==="year"&&Ie.lang.yearPlaceholder?Ie.lang.yearPlaceholder:Ve==="quarter"&&Ie.lang.quarterPlaceholder?Ie.lang.quarterPlaceholder:Ve==="month"&&Ie.lang.monthPlaceholder?Ie.lang.monthPlaceholder:Ve==="week"&&Ie.lang.weekPlaceholder?Ie.lang.weekPlaceholder:Ve==="time"&&Ie.timePickerLocale.placeholder?Ie.timePickerLocale.placeholder:Ie.lang.placeholder}function ic(Ie,Ve,_e){return _e!==void 0?_e:Ve==="year"&&Ie.lang.yearPlaceholder?Ie.lang.rangeYearPlaceholder:Ve==="quarter"&&Ie.lang.quarterPlaceholder?Ie.lang.rangeQuarterPlaceholder:Ve==="month"&&Ie.lang.monthPlaceholder?Ie.lang.rangeMonthPlaceholder:Ve==="week"&&Ie.lang.weekPlaceholder?Ie.lang.rangeWeekPlaceholder:Ve==="time"&&Ie.timePickerLocale.placeholder?Ie.timePickerLocale.rangePlaceholder:Ie.lang.rangePlaceholder}function md(Ie,Ve){const _e={adjustX:1,adjustY:1};switch(Ve){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:_e};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:_e};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:_e};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:_e};default:return{points:Ie==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:_e}}}function td(Ie){return Ie?Array.isArray(Ie)?Ie:[Ie]:[]}function Mr(Ie){const{format:Ve,picker:_e,showHour:Rt,showMinute:Zt,showSecond:fn,use12Hours:mn}=Ie,Gn=td(Ve)[0],Un=Object.assign({},Ie);return Ve&&Array.isArray(Ve)&&(Un.format=Gn),Gn&&typeof Gn=="string"&&(!Gn.includes("s")&&fn===void 0&&(Un.showSecond=!1),!Gn.includes("m")&&Zt===void 0&&(Un.showMinute=!1),!Gn.includes("H")&&!Gn.includes("h")&&!Gn.includes("K")&&!Gn.includes("k")&&Rt===void 0&&(Un.showHour=!1),(Gn.includes("a")||Gn.includes("A"))&&mn===void 0&&(Un.use12Hours=!0)),_e==="time"?Un:(typeof Gn=="function"&&delete Un.format,{showTime:Un})}function nd(Ie,Ve,_e){if(Ie===!1)return!1;const Rt={clearIcon:Ve!=null?Ve:_e};return typeof Ie=="object"?Object.assign(Object.assign({},Rt),Ie):Rt}var Nt=Se(3113);function ti(Ie){return we.createElement(Nt.ZP,Object.assign({size:"small",type:"primary"},Ie))}var rc={button:ti},rh=function(Ie,Ve){var _e={};for(var Rt in Ie)Object.prototype.hasOwnProperty.call(Ie,Rt)&&Ve.indexOf(Rt)<0&&(_e[Rt]=Ie[Rt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Rt=Object.getOwnPropertySymbols(Ie);Zt<Rt.length;Zt++)Ve.indexOf(Rt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Rt[Zt])&&(_e[Rt[Zt]]=Ie[Rt[Zt]]);return _e};function oh(Ie){return(0,we.forwardRef)((_e,Rt)=>{const{prefixCls:Zt,getPopupContainer:fn,className:mn,placement:Gn,size:Un,disabled:ui,bordered:Ii=!0,placeholder:li,popupClassName:Li,dropdownClassName:si,status:Xi,clearIcon:zn,allowClear:Mi,rootClassName:Ji}=_e,jr=rh(_e,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Tr=we.useRef(null),{getPrefixCls:Kr,direction:Vr,getPopupContainer:Hr}=(0,we.useContext)(vl.E_),zi=Kr("picker",Zt),{compactSize:Yo,compactItemClassnames:jo}=(0,gd.ri)(zi,Vr),{format:ta,showTime:ka,picker:La}=_e,Sa=Kr(),[es,ma]=Ql(zi),oa=Object.assign(Object.assign({},ka?Mr(Object.assign({format:ta,picker:La},ka)):{}),La==="time"?Mr(Object.assign(Object.assign({format:ta},_e),{picker:La})):{}),xa=(0,Bh.Z)(Ot=>{var en;return(en=Un!=null?Un:Yo)!==null&&en!==void 0?en:Ot}),Ua=we.useContext(Ml.Z),ts=ui!=null?ui:Ua,Ra=(0,we.useContext)(_h.aM),{hasFeedback:wa,status:Ms,feedbackIcon:el}=Ra,Je=we.createElement(we.Fragment,null,La==="time"?we.createElement(qt,null):we.createElement(Ke,null),wa&&el);(0,we.useImperativeHandle)(Rt,()=>({focus:()=>{var Ot;return(Ot=Tr.current)===null||Ot===void 0?void 0:Ot.focus()},blur:()=>{var Ot;return(Ot=Tr.current)===null||Ot===void 0?void 0:Ot.blur()}}));const[tt]=(0,Oh.Z)("Calendar",Ih.Z),Tt=Object.assign(Object.assign({},tt),_e.locale);return es(we.createElement(ml,Object.assign({separator:we.createElement("span",{"aria-label":"to",className:`${zi}-separator`},we.createElement(Wn,null)),disabled:ts,ref:Tr,dropdownAlign:md(Vr,Gn),placeholder:ic(Tt,La,li),suffixIcon:Je,prevIcon:we.createElement("span",{className:`${zi}-prev-icon`}),nextIcon:we.createElement("span",{className:`${zi}-next-icon`}),superPrevIcon:we.createElement("span",{className:`${zi}-super-prev-icon`}),superNextIcon:we.createElement("span",{className:`${zi}-super-next-icon`}),transitionName:`${Sa}-slide-up`},jr,oa,{className:Dt()({[`${zi}-${xa}`]:xa,[`${zi}-borderless`]:!Ii},(0,Pu.Z)(zi,(0,Pu.F)(Ms,Xi),wa),ma,jo,mn,Ji),locale:Tt.lang,prefixCls:zi,getPopupContainer:fn||Hr,generateConfig:Ie,components:rc,direction:Vr,dropdownClassName:Dt()(ma,Li||si,Ji),allowClear:nd(Mi,zn,we.createElement(sn.Z,null))})))})}var xh=function(Ie,Ve){var _e={};for(var Rt in Ie)Object.prototype.hasOwnProperty.call(Ie,Rt)&&Ve.indexOf(Rt)<0&&(_e[Rt]=Ie[Rt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Rt=Object.getOwnPropertySymbols(Ie);Zt<Rt.length;Zt++)Ve.indexOf(Rt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Rt[Zt])&&(_e[Rt[Zt]]=Ie[Rt[Zt]]);return _e};function oc(Ie){function Ve(Un,ui){const Ii=ui==="TimePicker"?"timePicker":"datePicker",li=(0,we.forwardRef)((Li,si)=>{const{prefixCls:Xi,getPopupContainer:zn,style:Mi,className:Ji,rootClassName:jr,size:Tr,bordered:Kr=!0,placement:Vr,placeholder:Hr,popupClassName:zi,dropdownClassName:Yo,disabled:jo,status:ta,clearIcon:ka,allowClear:La}=Li,Sa=xh(Li,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:es,direction:ma,getPopupContainer:oa,[Ii]:xa}=(0,we.useContext)(vl.E_),Ua=es("picker",Xi),{compactSize:ts,compactItemClassnames:Ra}=(0,gd.ri)(Ua,ma),wa=we.useRef(null),{format:Ms,showTime:el}=Li,[Je,tt]=Ql(Ua);(0,we.useImperativeHandle)(si,()=>({focus:()=>{var xi;return(xi=wa.current)===null||xi===void 0?void 0:xi.focus()},blur:()=>{var xi;return(xi=wa.current)===null||xi===void 0?void 0:xi.blur()}}));const Tt={showToday:!0};let Ot={};Un&&(Ot.picker=Un);const en=Un||Li.picker;Ot=Object.assign(Object.assign(Object.assign({},Ot),el?Mr(Object.assign({format:Ms,picker:en},el)):{}),en==="time"?Mr(Object.assign(Object.assign({format:Ms},Li),{picker:en})):{});const Vt=es(),Ln=(0,Bh.Z)(xi=>{var ir;return(ir=Tr!=null?Tr:ts)!==null&&ir!==void 0?ir:xi}),bn=we.useContext(Ml.Z),wn=jo!=null?jo:bn,ni=(0,we.useContext)(_h.aM),{hasFeedback:jn,status:_n,feedbackIcon:Ei}=ni,Ci=we.createElement(we.Fragment,null,en==="time"?we.createElement(qt,null):we.createElement(Ke,null),jn&&Ei),[vi]=(0,Oh.Z)("DatePicker",Ih.Z),Yi=Object.assign(Object.assign({},vi),Li.locale);return Je(we.createElement(Zu,Object.assign({ref:wa,placeholder:fs(Yi,en,Hr),suffixIcon:Ci,dropdownAlign:md(ma,Vr),prevIcon:we.createElement("span",{className:`${Ua}-prev-icon`}),nextIcon:we.createElement("span",{className:`${Ua}-next-icon`}),superPrevIcon:we.createElement("span",{className:`${Ua}-super-prev-icon`}),superNextIcon:we.createElement("span",{className:`${Ua}-super-next-icon`}),transitionName:`${Vt}-slide-up`},Tt,Sa,Ot,{locale:Yi.lang,className:Dt()({[`${Ua}-${Ln}`]:Ln,[`${Ua}-borderless`]:!Kr},(0,Pu.Z)(Ua,(0,Pu.F)(_n,ta),jn),tt,Ra,xa==null?void 0:xa.className,Ji,jr),style:Object.assign(Object.assign({},xa==null?void 0:xa.style),Mi),prefixCls:Ua,getPopupContainer:zn||oa,generateConfig:Ie,components:rc,direction:ma,disabled:wn,dropdownClassName:Dt()(tt,jr,zi||Yo),allowClear:nd(La,ka,we.createElement(sn.Z,null))})))});return ui&&(li.displayName=ui),li}const _e=Ve(),Rt=Ve("week","WeekPicker"),Zt=Ve("month","MonthPicker"),fn=Ve("year","YearPicker"),mn=Ve("time","TimePicker"),Gn=Ve("quarter","QuarterPicker");return{DatePicker:_e,WeekPicker:Rt,MonthPicker:Zt,YearPicker:fn,TimePicker:mn,QuarterPicker:Gn}}const Bd=null;function Cs(Ie){const{DatePicker:Ve,WeekPicker:_e,MonthPicker:Rt,YearPicker:Zt,TimePicker:fn,QuarterPicker:mn}=oc(Ie),Gn=oh(Ie),Un=Ve;return Un.WeekPicker=_e,Un.MonthPicker=Rt,Un.YearPicker=Zt,Un.RangePicker=Gn,Un.TimePicker=fn,Un.QuarterPicker=mn,Un}var mo=Cs;const il=mo(ve);function yl(Ie){const Ve=md(Ie.direction,Ie.placement);return Ve.overflow.adjustY=!1,Ve.overflow.adjustX=!1,Object.assign(Object.assign({},Ie),{dropdownAlign:Ve})}const as=(0,Pe.Z)(il,"picker",null,yl);il._InternalPanelDoNotUseOrYouWillBeFired=as;const ea=(0,Pe.Z)(il.RangePicker,"picker",null,yl);il._InternalRangePanelDoNotUseOrYouWillBeFired=ea,il.generatePicker=mo;var Us=il},28103:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return wt}});var Ee=Se(92310),je=Se.n(Ee),it=Se(59301),kt=Se(36355),Xe=Se(17313),pt=Se(83116),Fe=Se(37613);const Ft=xt=>{const{componentCls:Te,sizePaddingEdgeHorizontal:te,colorSplit:ne,lineWidth:he,textPaddingInline:se,orientationMargin:ge,verticalMarginInline:ve}=xt;return{[Te]:Object.assign(Object.assign({},(0,Xe.Wf)(xt)),{borderBlockStart:`${he}px solid ${ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ve,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${he}px solid ${ne}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${xt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Te}-with-text`]:{display:"flex",alignItems:"center",margin:`${xt.dividerHorizontalWithTextGutterMargin}px 0`,color:xt.colorTextHeading,fontWeight:500,fontSize:xt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ne}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${he}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Te}-with-text-left`]:{"&::before":{width:`${ge*100}%`},"&::after":{width:`${100-ge*100}%`}},[`&-horizontal${Te}-with-text-right`]:{"&::before":{width:`${100-ge*100}%`},"&::after":{width:`${ge*100}%`}},[`${Te}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:se},"&-dashed":{background:"none",borderColor:ne,borderStyle:"dashed",borderWidth:`${he}px 0 0`},[`&-horizontal${Te}-with-text${Te}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Te}-dashed`]:{borderInlineStartWidth:he,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Te}-with-text`]:{color:xt.colorText,fontWeight:"normal",fontSize:xt.fontSize},[`&-horizontal${Te}-with-text-left${Te}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Te}-inner-text`]:{paddingInlineStart:te}},[`&-horizontal${Te}-with-text-right${Te}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Te}-inner-text`]:{paddingInlineEnd:te}}})}};var Ct=(0,pt.Z)("Divider",xt=>{const Te=(0,Fe.TS)(xt,{dividerHorizontalWithTextGutterMargin:xt.margin,dividerHorizontalGutterMargin:xt.marginLG,sizePaddingEdgeHorizontal:0});return[Ft(Te)]},xt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:xt.marginXS})),nt=function(xt,Te){var te={};for(var ne in xt)Object.prototype.hasOwnProperty.call(xt,ne)&&Te.indexOf(ne)<0&&(te[ne]=xt[ne]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ne=Object.getOwnPropertySymbols(xt);he<ne.length;he++)Te.indexOf(ne[he])<0&&Object.prototype.propertyIsEnumerable.call(xt,ne[he])&&(te[ne[he]]=xt[ne[he]]);return te},wt=xt=>{const{getPrefixCls:Te,direction:te,divider:ne}=it.useContext(kt.E_),{prefixCls:he,type:se="horizontal",orientation:ge="center",orientationMargin:ve,className:Pe,rootClassName:ke,children:we,dashed:Oe,plain:ze,style:We}=xt,Ue=nt(xt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ut=Te("divider",he),[Ke,Ht]=Ct(ut),St=ge.length>0?`-${ge}`:ge,_t=!!we,Qt=ge==="left"&&ve!=null,qt=ge==="right"&&ve!=null,sn=je()(ut,ne==null?void 0:ne.className,Ht,`${ut}-${se}`,{[`${ut}-with-text`]:_t,[`${ut}-with-text${St}`]:_t,[`${ut}-dashed`]:!!Oe,[`${ut}-plain`]:!!ze,[`${ut}-rtl`]:te==="rtl",[`${ut}-no-default-orientation-margin-left`]:Qt,[`${ut}-no-default-orientation-margin-right`]:qt},Pe,ke),Bn=it.useMemo(()=>typeof ve=="number"?ve:/^\d+$/.test(ve)?Number(ve):ve,[ve]),yt=Object.assign(Object.assign({},Qt&&{marginLeft:Bn}),qt&&{marginRight:Bn});return Ke(it.createElement("div",Object.assign({className:sn,style:Object.assign(Object.assign({},ne==null?void 0:ne.style),We)},Ue,{role:"separator"}),we&&se!=="vertical"&&it.createElement("span",{className:`${ut}-inner-text`,style:yt},we)))}},91857:function(On,Pn,Se){"use strict";var Ee=Se(59301),je=Se(53878),it=Se(92310),kt=Se.n(it),Xe=Se(31561),pt=Se(80764),Fe=Se(35788),Ft=Se(64002),Ct=Se(79676),nt=Se(53487),gt=Se(92343),wt=Se(36355),xt=Se(20834),Te=Se(40875),te=Se(88088),ne=Se(47211);const he=null,se=ke=>{const{menu:we,arrow:Oe,prefixCls:ze,children:We,trigger:Ue,disabled:ut,dropdownRender:Ke,getPopupContainer:Ht,overlayClassName:St,rootClassName:_t,open:Qt,onOpenChange:qt,visible:sn,onVisibleChange:Bn,mouseEnterDelay:yt=.15,mouseLeaveDelay:Ge=.1,autoAdjustOverflow:tn=!0,placement:Wn="",overlay:Qn,transitionName:Dt}=ke,{getPopupContainer:$t,getPrefixCls:cn,direction:Zn}=Ee.useContext(wt.E_),hn=Ee.useMemo(()=>{const me=cn();return Dt!==void 0?Dt:Wn.includes("top")?`${me}-slide-down`:`${me}-slide-up`},[cn,Wn,Dt]),ii=Ee.useMemo(()=>Wn?Wn.includes("Center")?Wn.slice(0,Wn.indexOf("Center")):Wn:Zn==="rtl"?"bottomRight":"bottomLeft",[Wn,Zn]),mt=cn("dropdown",ze),[Xn,ri]=(0,ne.Z)(mt),[,pi]=(0,te.Z)(),Mn=Ee.Children.only(We),Gt=(0,gt.Tm)(Mn,{className:kt()(`${mt}-trigger`,{[`${mt}-rtl`]:Zn==="rtl"},Mn.props.className),disabled:ut}),zt=ut?[]:Ue;let Mt;zt&&zt.includes("contextMenu")&&(Mt=!0);const[at,jt]=(0,Fe.Z)(!1,{value:Qt!=null?Qt:sn}),Et=(0,pt.useEvent)(me=>{qt==null||qt(me),Bn==null||Bn(me),jt(me)}),dt=kt()(St,_t,ri,{[`${mt}-rtl`]:Zn==="rtl"}),ot=(0,Ct.Z)({arrowPointAtCenter:typeof Oe=="object"&&Oe.pointAtCenter,autoAdjustOverflow:tn,offset:pi.marginXXS,arrowWidth:Oe?pi.sizePopupArrow:0,borderRadius:pi.borderRadius}),De=Ee.useCallback(()=>{jt(!1)},[]),xe=()=>{let me;return we!=null&&we.items?me=Ee.createElement(xt.default,Object.assign({},we)):typeof Qn=="function"?me=Qn():me=Qn,Ke&&(me=Ke(me)),me=Ee.Children.only(typeof me=="string"?Ee.createElement("span",null,me):me),Ee.createElement(Te.J,{prefixCls:`${mt}-menu`,expandIcon:Ee.createElement("span",{className:`${mt}-menu-submenu-arrow`},Ee.createElement(je.Z,{className:`${mt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:De,validator:Ne=>{let{mode:He}=Ne}},me)};return Xn(Ee.createElement(Xe.Z,Object.assign({alignPoint:Mt},(0,Ft.Z)(ke,["rootClassName"]),{mouseEnterDelay:yt,mouseLeaveDelay:Ge,visible:at,builtinPlacements:ot,arrow:!!Oe,overlayClassName:dt,prefixCls:mt,getPopupContainer:Ht||$t,transitionName:hn,trigger:zt,overlay:xe,placement:ii,onVisibleChange:Et}),Gt))};function ge(ke){return Object.assign(Object.assign({},ke),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ve=(0,nt.Z)(se,"dropdown",ke=>ke,ge),Pe=ke=>Ee.createElement(ve,Object.assign({},ke),Ee.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Pe,Pn.Z=se},38854:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return te}});var Ee=Se(91857),je=Se(92310),it=Se.n(je),kt=Se(59301),Xe=Se(19362),pt=Se(3113),Fe=Se(36355),Ft=Se(81327),Ct=Se(33234),nt=Se(47211),gt=function(ne,he){var se={};for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&he.indexOf(ge)<0&&(se[ge]=ne[ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,ge=Object.getOwnPropertySymbols(ne);ve<ge.length;ve++)he.indexOf(ge[ve])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[ve])&&(se[ge[ve]]=ne[ge[ve]]);return se};const wt=ne=>{const{getPopupContainer:he,getPrefixCls:se,direction:ge}=kt.useContext(Fe.E_),{prefixCls:ve,type:Pe="default",danger:ke,disabled:we,loading:Oe,onClick:ze,htmlType:We,children:Ue,className:ut,menu:Ke,arrow:Ht,autoFocus:St,overlay:_t,trigger:Qt,align:qt,open:sn,onOpenChange:Bn,placement:yt,getPopupContainer:Ge,href:tn,icon:Wn=kt.createElement(Xe.Z,null),title:Qn,buttonsRender:Dt=xe=>xe,mouseEnterDelay:$t,mouseLeaveDelay:cn,overlayClassName:Zn,overlayStyle:hn,destroyPopupOnHide:ii,dropdownRender:mt}=ne,Xn=gt(ne,["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"]),ri=se("dropdown",ve),pi=`${ri}-button`,[Mn,Gt]=(0,nt.Z)(ri),zt={menu:Ke,arrow:Ht,autoFocus:St,align:qt,disabled:we,trigger:we?[]:Qt,onOpenChange:Bn,getPopupContainer:Ge||he,mouseEnterDelay:$t,mouseLeaveDelay:cn,overlayClassName:Zn,overlayStyle:hn,destroyPopupOnHide:ii,dropdownRender:mt},{compactSize:Mt,compactItemClassnames:at}=(0,Ct.ri)(ri,ge),jt=it()(pi,at,ut,Gt);"overlay"in ne&&(zt.overlay=_t),"open"in ne&&(zt.open=sn),"placement"in ne?zt.placement=yt:zt.placement=ge==="rtl"?"bottomLeft":"bottomRight";const Et=kt.createElement(pt.ZP,{type:Pe,danger:ke,disabled:we,loading:Oe,onClick:ze,htmlType:We,href:tn,title:Qn},Ue),dt=kt.createElement(pt.ZP,{type:Pe,danger:ke,icon:Wn}),[ot,De]=Dt([Et,dt]);return Mn(kt.createElement(Ft.Z.Compact,Object.assign({className:jt,size:Mt,block:!0},Xn),ot,kt.createElement(Ee.Z,Object.assign({},zt),De)))};wt.__ANT_BUTTON=!0;var xt=wt;const Te=Ee.Z;Te.Button=xt;var te=Te},47211:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return gt}});var Ee=Se(17313),je=Se(13826),it=Se(92899),kt=Se(29878),Xe=Se(19447),pt=Se(83116),Fe=Se(37613),Ct=wt=>{const{componentCls:xt,menuCls:Te,colorError:te,colorTextLightSolid:ne}=wt,he=`${Te}-item`;return{[`${xt}, ${xt}-menu-submenu`]:{[`${Te} ${he}`]:{[`&${he}-danger:not(${he}-disabled)`]:{color:te,"&:hover":{color:ne,backgroundColor:te}}}}}};const nt=wt=>{const{componentCls:xt,menuCls:Te,zIndexPopup:te,dropdownArrowDistance:ne,sizePopupArrow:he,antCls:se,iconCls:ge,motionDurationMid:ve,dropdownPaddingVertical:Pe,fontSize:ke,dropdownEdgeChildPadding:we,colorTextDisabled:Oe,fontSizeIcon:ze,controlPaddingHorizontal:We,colorBgElevated:Ue}=wt;return[{[xt]:Object.assign(Object.assign({},(0,Ee.Wf)(wt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:-ne+he/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${se}-btn`]:{[`& > ${ge}-down, & > ${se}-btn-icon > ${ge}-down`]:{fontSize:ze}},[`${xt}-wrap`]:{position:"relative",[`${se}-btn > ${ge}-down`]:{fontSize:ze},[`${ge}-down::before`]:{transition:`transform ${ve}`}},[`${xt}-wrap-open`]:{[`${ge}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${se}-slide-down-enter${se}-slide-down-enter-active${xt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${xt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-enter${se}-slide-down-enter-active${xt}-placement-bottom,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${xt}-placement-bottom,
|
|
|
&${se}-slide-down-enter${se}-slide-down-enter-active${xt}-placement-bottomRight,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${xt}-placement-bottomRight`]:{animationName:je.fJ},[`&${se}-slide-up-enter${se}-slide-up-enter-active${xt}-placement-topLeft,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${xt}-placement-topLeft,
|
|
|
&${se}-slide-up-enter${se}-slide-up-enter-active${xt}-placement-top,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${xt}-placement-top,
|
|
|
&${se}-slide-up-enter${se}-slide-up-enter-active${xt}-placement-topRight,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${xt}-placement-topRight`]:{animationName:je.Qt},[`&${se}-slide-down-leave${se}-slide-down-leave-active${xt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-leave${se}-slide-down-leave-active${xt}-placement-bottom,
|
|
|
&${se}-slide-down-leave${se}-slide-down-leave-active${xt}-placement-bottomRight`]:{animationName:je.Uw},[`&${se}-slide-up-leave${se}-slide-up-leave-active${xt}-placement-topLeft,
|
|
|
&${se}-slide-up-leave${se}-slide-up-leave-active${xt}-placement-top,
|
|
|
&${se}-slide-up-leave${se}-slide-up-leave-active${xt}-placement-topRight`]:{animationName:je.ly}})},(0,Xe.ZP)(wt,{colorBg:Ue,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xt} ${Te}`]:{position:"relative",margin:0},[`${Te}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xt}, ${xt}-menu-submenu`]:{[Te]:Object.assign(Object.assign({padding:we,listStyleType:"none",backgroundColor:Ue,backgroundClip:"padding-box",borderRadius:wt.borderRadiusLG,outline:"none",boxShadow:wt.boxShadowSecondary},(0,Ee.Qy)(wt)),{[`${Te}-item-group-title`]:{padding:`${Pe}px ${We}px`,color:wt.colorTextDescription,transition:`all ${ve}`},[`${Te}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Te}-item-icon`]:{minWidth:ke,marginInlineEnd:wt.marginXS,fontSize:wt.fontSizeSM},[`${Te}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ve}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Te}-item, ${Te}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Pe}px ${We}px`,color:wt.colorText,fontWeight:"normal",fontSize:ke,lineHeight:wt.lineHeight,cursor:"pointer",transition:`all ${ve}`,borderRadius:wt.borderRadiusSM,"&:hover, &-active":{backgroundColor:wt.controlItemBgHover}},(0,Ee.Qy)(wt)),{"&-selected":{color:wt.colorPrimary,backgroundColor:wt.controlItemBgActive,"&:hover, &-active":{backgroundColor:wt.controlItemBgActiveHover}},"&-disabled":{color:Oe,cursor:"not-allowed","&:hover":{color:Oe,backgroundColor:Ue,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${wt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:wt.colorSplit},[`${xt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:wt.paddingXS,[`${xt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:wt.colorTextDescription,fontSize:ze,fontStyle:"normal"}}}),[`${Te}-item-group-list`]:{margin:`0 ${wt.marginXS}px`,padding:0,listStyle:"none"},[`${Te}-submenu-title`]:{paddingInlineEnd:We+wt.fontSizeSM},[`${Te}-submenu-vertical`]:{position:"relative"},[`${Te}-submenu${Te}-submenu-disabled ${xt}-menu-submenu-title`]:{[`&, ${xt}-menu-submenu-arrow-icon`]:{color:Oe,backgroundColor:Ue,cursor:"not-allowed"}},[`${Te}-submenu-selected ${xt}-menu-submenu-title`]:{color:wt.colorPrimary}})}},[(0,je.oN)(wt,"slide-up"),(0,je.oN)(wt,"slide-down"),(0,it.Fm)(wt,"move-up"),(0,it.Fm)(wt,"move-down"),(0,kt._y)(wt,"zoom-big")]]};var gt=(0,pt.Z)("Dropdown",(wt,xt)=>{let{rootPrefixCls:Te}=xt;const{marginXXS:te,sizePopupArrow:ne,controlHeight:he,fontSize:se,lineHeight:ge,paddingXXS:ve,componentCls:Pe,borderRadiusLG:ke}=wt,we=(he-se*ge)/2,{dropdownArrowOffset:Oe}=(0,Xe.fS)({contentRadius:ke}),ze=(0,Fe.TS)(wt,{menuCls:`${Pe}-menu`,rootPrefixCls:Te,dropdownArrowDistance:ne/2+te,dropdownArrowOffset:Oe,dropdownPaddingVertical:we,dropdownEdgeChildPadding:ve});return[nt(ze),Ct(ze)]},wt=>({zIndexPopup:wt.zIndexPopupBase+50}))},64165:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ve}});var Ee=Se(92310),je=Se.n(Ee),it=Se(59301),kt=Se(36355),Xe=Se(9763),pt=Se(64993),Fe=Se(88088),Ct=()=>{const[,Pe]=(0,Fe.Z)(),we=new pt.C(Pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return it.createElement("svg",{style:we,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},it.createElement("g",{fill:"none",fillRule:"evenodd"},it.createElement("g",{transform:"translate(24 31.67)"},it.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),it.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"}),it.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)"}),it.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"}),it.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"})),it.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"}),it.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},it.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),it.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},gt=()=>{const[,Pe]=(0,Fe.Z)(),{colorFill:ke,colorFillTertiary:we,colorFillQuaternary:Oe,colorBgContainer:ze}=Pe,{borderColor:We,shadowColor:Ue,contentColor:ut}=(0,it.useMemo)(()=>({borderColor:new pt.C(ke).onBackground(ze).toHexShortString(),shadowColor:new pt.C(we).onBackground(ze).toHexShortString(),contentColor:new pt.C(Oe).onBackground(ze).toHexShortString()}),[ke,we,Oe,ze]);return it.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},it.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},it.createElement("ellipse",{fill:Ue,cx:"32",cy:"33",rx:"32",ry:"7"}),it.createElement("g",{fillRule:"nonzero",stroke:We},it.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"}),it.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:ut}))))},wt=Se(83116),xt=Se(37613);const Te=Pe=>{const{componentCls:ke,margin:we,marginXS:Oe,marginXL:ze,fontSize:We,lineHeight:Ue}=Pe;return{[ke]:{marginInline:Oe,fontSize:We,lineHeight:Ue,textAlign:"center",[`${ke}-image`]:{height:Pe.emptyImgHeight,marginBottom:Oe,opacity:Pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ke}-description`]:{color:Pe.colorText},[`${ke}-footer`]:{marginTop:we},"&-normal":{marginBlock:ze,color:Pe.colorTextDisabled,[`${ke}-description`]:{color:Pe.colorTextDisabled},[`${ke}-image`]:{height:Pe.emptyImgHeightMD}},"&-small":{marginBlock:Oe,color:Pe.colorTextDisabled,[`${ke}-image`]:{height:Pe.emptyImgHeightSM}}}}};var te=(0,wt.Z)("Empty",Pe=>{const{componentCls:ke,controlHeightLG:we}=Pe,Oe=(0,xt.TS)(Pe,{emptyImgCls:`${ke}-img`,emptyImgHeight:we*2.5,emptyImgHeightMD:we,emptyImgHeightSM:we*.875});return[Te(Oe)]}),ne=function(Pe,ke){var we={};for(var Oe in Pe)Object.prototype.hasOwnProperty.call(Pe,Oe)&&ke.indexOf(Oe)<0&&(we[Oe]=Pe[Oe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Oe=Object.getOwnPropertySymbols(Pe);ze<Oe.length;ze++)ke.indexOf(Oe[ze])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Oe[ze])&&(we[Oe[ze]]=Pe[Oe[ze]]);return we};const he=it.createElement(Ct,null),se=it.createElement(gt,null),ge=Pe=>{var{className:ke,rootClassName:we,prefixCls:Oe,image:ze=he,description:We,children:Ue,imageStyle:ut,style:Ke}=Pe,Ht=ne(Pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:St,direction:_t,empty:Qt}=it.useContext(kt.E_),qt=St("empty",Oe),[sn,Bn]=te(qt),[yt]=(0,Xe.Z)("Empty"),Ge=typeof We!="undefined"?We:yt==null?void 0:yt.description,tn=typeof Ge=="string"?Ge:"empty";let Wn=null;return typeof ze=="string"?Wn=it.createElement("img",{alt:tn,src:ze}):Wn=ze,sn(it.createElement("div",Object.assign({className:je()(Bn,qt,Qt==null?void 0:Qt.className,{[`${qt}-normal`]:ze===se,[`${qt}-rtl`]:_t==="rtl"},ke,we),style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),Ke)},Ht),it.createElement("div",{className:`${qt}-image`,style:ut},Wn),Ge&&it.createElement("div",{className:`${qt}-description`},Ge),Ue&&it.createElement("div",{className:`${qt}-footer`},Ue)))};ge.PRESENTED_IMAGE_DEFAULT=he,ge.PRESENTED_IMAGE_SIMPLE=se;var ve=ge},78241:function(On,Pn,Se){"use strict";Se.d(Pn,{default:function(){return Jt}});var Ee=Se(26390),je=Se(92310),it=Se.n(je),kt=Se(43469),Xe=Se(59301),pt=Se(62892),Fe=Se(32441);function Ft(ft){const[pn,Rn]=Xe.useState(ft);return Xe.useEffect(()=>{const It=setTimeout(()=>{Rn(ft)},ft.length?0:10);return()=>{clearTimeout(It)}},[ft]),pn}var Ct=Se(17313),nt=Se(29878),gt=Se(8378),wt=Se(37613),xt=Se(83116),te=ft=>{const{componentCls:pn}=ft,Rn=`${pn}-show-help`,It=`${pn}-show-help-item`;return{[Rn]:{transition:`opacity ${ft.motionDurationSlow} ${ft.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[It]:{overflow:"hidden",transition:`height ${ft.motionDurationSlow} ${ft.motionEaseInOut},
|
|
|
opacity ${ft.motionDurationSlow} ${ft.motionEaseInOut},
|
|
|
transform ${ft.motionDurationSlow} ${ft.motionEaseInOut} !important`,[`&${It}-appear, &${It}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${It}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ne=ft=>({legend:{display:"block",width:"100%",marginBottom:ft.marginLG,padding:0,color:ft.colorTextDescription,fontSize:ft.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ft.lineWidth}px ${ft.lineType} ${ft.colorBorder}`},label:{fontSize:ft.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 ${ft.controlOutlineWidth}px ${ft.controlOutline}`},output:{display:"block",paddingTop:15,color:ft.colorText,fontSize:ft.fontSize,lineHeight:ft.lineHeight}}),he=(ft,pn)=>{const{formItemCls:Rn}=ft;return{[Rn]:{[`${Rn}-label > label`]:{height:pn},[`${Rn}-control-input`]:{minHeight:pn}}}},se=ft=>{const{componentCls:pn}=ft;return{[ft.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(ft)),ne(ft)),{[`${pn}-text`]:{display:"inline-block",paddingInlineEnd:ft.paddingSM},"&-small":Object.assign({},he(ft,ft.controlHeightSM)),"&-large":Object.assign({},he(ft,ft.controlHeightLG))})}},ge=ft=>{const{formItemCls:pn,iconCls:Rn,componentCls:It,rootPrefixCls:lt,labelRequiredMarkColor:yn,labelColor:Yn,labelFontSize:Di,labelHeight:Cn,labelColonMarginInlineStart:bt,labelColonMarginInlineEnd:In,itemMarginBottom:gi}=ft;return{[pn]:Object.assign(Object.assign({},(0,Ct.Wf)(ft)),{marginBottom:gi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${lt}-row`]:{display:"none"},"&-has-warning":{[`${pn}-split`]:{color:ft.colorError}},"&-has-error":{[`${pn}-split`]:{color:ft.colorWarning}},[`${pn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${ft.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Cn,color:Yn,fontSize:Di,[`> ${Rn}`]:{fontSize:ft.fontSize,verticalAlign:"top"},[`&${pn}-required:not(${pn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ft.marginXXS,color:yn,fontSize:ft.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${It}-hide-required-mark &`]:{display:"none"}},[`${pn}-optional`]:{display:"inline-block",marginInlineStart:ft.marginXXS,color:ft.colorTextDescription,[`${It}-hide-required-mark &`]:{display:"none"}},[`${pn}-tooltip`]:{color:ft.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ft.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:bt,marginInlineEnd:In},[`&${pn}-no-colon::after`]:{content:'"\\a0"'}}},[`${pn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${lt}-col-'"]):not([class*="' ${lt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ft.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[pn]:{"&-explain, &-extra":{clear:"both",color:ft.colorTextDescription,fontSize:ft.fontSize,lineHeight:ft.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ft.controlHeightSM,transition:`color ${ft.motionDurationMid} ${ft.motionEaseOut}`},"&-explain":{"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning}}},[`&-with-help ${pn}-explain`]:{height:"auto",opacity:1},[`${pn}-feedback-icon`]:{fontSize:ft.fontSize,textAlign:"center",visibility:"visible",animationName:nt.kr,animationDuration:ft.motionDurationMid,animationTimingFunction:ft.motionEaseOutBack,pointerEvents:"none","&-success":{color:ft.colorSuccess},"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning},"&-validating":{color:ft.colorPrimary}}})}},ve=ft=>{const{componentCls:pn,formItemCls:Rn}=ft;return{[`${pn}-horizontal`]:{[`${Rn}-label`]:{flexGrow:0},[`${Rn}-control`]:{flex:"1 1 0",minWidth:0},[`${Rn}-label[class$='-24'], ${Rn}-label[class*='-24 ']`]:{[`& + ${Rn}-control`]:{minWidth:"unset"}}}}},Pe=ft=>{const{componentCls:pn,formItemCls:Rn}=ft;return{[`${pn}-inline`]:{display:"flex",flexWrap:"wrap",[Rn]:{flex:"none",marginInlineEnd:ft.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Rn}-label,
|
|
|
> ${Rn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Rn}-label`]:{flex:"none"},[`${pn}-text`]:{display:"inline-block"},[`${Rn}-has-feedback`]:{display:"inline-block"}}}}},ke=ft=>({padding:ft.verticalLabelPadding,margin:ft.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),we=ft=>{const{componentCls:pn,formItemCls:Rn,rootPrefixCls:It}=ft;return{[`${Rn} ${Rn}-label`]:ke(ft),[pn]:{[Rn]:{flexWrap:"wrap",[`${Rn}-label, ${Rn}-control`]:{[`&:not([class*=" ${It}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Oe=ft=>{const{componentCls:pn,formItemCls:Rn,rootPrefixCls:It}=ft;return{[`${pn}-vertical`]:{[Rn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${pn}-item-control`]:{width:"100%"}}},[`${pn}-vertical ${Rn}-label,
|
|
|
.${It}-col-24${Rn}-label,
|
|
|
.${It}-col-xl-24${Rn}-label`]:ke(ft),[`@media (max-width: ${ft.screenXSMax}px)`]:[we(ft),{[pn]:{[`.${It}-col-xs-24${Rn}-label`]:ke(ft)}}],[`@media (max-width: ${ft.screenSMMax}px)`]:{[pn]:{[`.${It}-col-sm-24${Rn}-label`]:ke(ft)}},[`@media (max-width: ${ft.screenMDMax}px)`]:{[pn]:{[`.${It}-col-md-24${Rn}-label`]:ke(ft)}},[`@media (max-width: ${ft.screenLGMax}px)`]:{[pn]:{[`.${It}-col-lg-24${Rn}-label`]:ke(ft)}}}},ze=(ft,pn)=>(0,wt.TS)(ft,{formItemCls:`${ft.componentCls}-item`,rootPrefixCls:pn});var We=(0,xt.Z)("Form",(ft,pn)=>{let{rootPrefixCls:Rn}=pn;const It=ze(ft,Rn);return[se(It),ge(It),te(It),ve(It),Pe(It),Oe(It),(0,gt.Z)(It),nt.kr]},ft=>({labelRequiredMarkColor:ft.colorError,labelColor:ft.colorTextHeading,labelFontSize:ft.fontSize,labelHeight:ft.controlHeight,labelColonMarginInlineStart:ft.marginXXS/2,labelColonMarginInlineEnd:ft.marginXS,itemMarginBottom:ft.marginLG,verticalLabelPadding:`0 0 ${ft.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ue=[];function ut(ft,pn,Rn){let It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ft=="string"?ft:`${pn}-${It}`,error:ft,errorStatus:Rn}}var Ht=ft=>{let{help:pn,helpStatus:Rn,errors:It=Ue,warnings:lt=Ue,className:yn,fieldId:Yn,onVisibleChanged:Di}=ft;const{prefixCls:Cn}=Xe.useContext(Fe.Rk),bt=`${Cn}-item-explain`,[,In]=We(Cn),gi=(0,Xe.useMemo)(()=>(0,pt.Z)(Cn),[Cn]),Oi=Ft(It),Kt=Ft(lt),Sn=Xe.useMemo(()=>pn!=null?[ut(pn,"help",Rn)]:[].concat((0,Ee.Z)(Oi.map((on,gn)=>ut(on,"error","error",gn))),(0,Ee.Z)(Kt.map((on,gn)=>ut(on,"warning","warning",gn)))),[pn,Rn,Oi,Kt]),Wt={};return Yn&&(Wt.id=`${Yn}_help`),Xe.createElement(kt.default,{motionDeadline:gi.motionDeadline,motionName:`${Cn}-show-help`,visible:!!Sn.length,onVisibleChanged:Di},on=>{const{className:gn,style:un}=on;return Xe.createElement("div",Object.assign({},Wt,{className:it()(bt,gn,yn,In),style:un,role:"alert"}),Xe.createElement(kt.CSSMotionList,Object.assign({keys:Sn},(0,pt.Z)(Cn),{motionName:`${Cn}-show-help-item`,component:!1}),En=>{const{key:Nn,error:Vn,errorStatus:$n,className:Tn,style:ai}=En;return Xe.createElement("div",{key:Nn,className:it()(Tn,{[`${bt}-${$n}`]:$n}),style:ai},Vn)}))})},St=Se(95013),_t=Se(36355),Qt=Se(1684),qt=Se(52946),sn=Se(19716),Bn=Se(16722);const yt=["parentNode"],Ge="form_item";function tn(ft){return ft===void 0||ft===!1?[]:Array.isArray(ft)?ft:[ft]}function Wn(ft,pn){if(!ft.length)return;const Rn=ft.join("_");return pn?`${pn}_${Rn}`:yt.includes(Rn)?`${Ge}_${Rn}`:Rn}function Qn(ft,pn,Rn,It,lt,yn){let Yn=It;return yn!==void 0?Yn=yn:Rn.validating?Yn="validating":ft.length?Yn="error":pn.length?Yn="warning":(Rn.touched||lt&&Rn.validated)&&(Yn="success"),Yn}function Dt(ft){return tn(ft).join("_")}function $t(ft){const[pn]=(0,St.useForm)(),Rn=Xe.useRef({}),It=Xe.useMemo(()=>ft!=null?ft:Object.assign(Object.assign({},pn),{__INTERNAL__:{itemRef:lt=>yn=>{const Yn=Dt(lt);yn?Rn.current[Yn]=yn:delete Rn.current[Yn]}},scrollToField:function(lt){let yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Yn=tn(lt),Di=Wn(Yn,It.__INTERNAL__.name),Cn=Di?document.getElementById(Di):null;Cn&&(0,Bn.Z)(Cn,Object.assign({scrollMode:"if-needed",block:"nearest"},yn))},getFieldInstance:lt=>{const yn=Dt(lt);return Rn.current[yn]}}),[ft,pn]);return[It]}var cn=Se(28726),Zn=function(ft,pn){var Rn={};for(var It in ft)Object.prototype.hasOwnProperty.call(ft,It)&&pn.indexOf(It)<0&&(Rn[It]=ft[It]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,It=Object.getOwnPropertySymbols(ft);lt<It.length;lt++)pn.indexOf(It[lt])<0&&Object.prototype.propertyIsEnumerable.call(ft,It[lt])&&(Rn[It[lt]]=ft[It[lt]]);return Rn};const hn=(ft,pn)=>{const Rn=Xe.useContext(Qt.Z),{getPrefixCls:It,direction:lt,form:yn}=Xe.useContext(_t.E_),{prefixCls:Yn,className:Di,rootClassName:Cn,size:bt,disabled:In=Rn,form:gi,colon:Oi,labelAlign:Kt,labelWrap:Sn,labelCol:Wt,wrapperCol:on,hideRequiredMark:gn,layout:un="horizontal",scrollToFirstError:En,requiredMark:Nn,onFinishFailed:Vn,name:$n,style:Tn,feedbackIcons:ai}=ft,Qi=Zn(ft,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Lr=(0,sn.Z)(bt),qi=Xe.useContext(cn.Z),Bt=(0,Xe.useMemo)(()=>Nn!==void 0?Nn:yn&&yn.requiredMark!==void 0?yn.requiredMark:!gn,[gn,Nn,yn]),Si=Oi!=null?Oi:yn==null?void 0:yn.colon,Hi=It("form",Yn),[ki,Pr]=We(Hi),yr=it()(Hi,`${Hi}-${un}`,{[`${Hi}-hide-required-mark`]:Bt===!1,[`${Hi}-rtl`]:lt==="rtl",[`${Hi}-${Lr}`]:Lr},Pr,yn==null?void 0:yn.className,Di,Cn),[kr]=$t(gi),{__INTERNAL__:rr}=kr;rr.name=$n;const Ri=(0,Xe.useMemo)(()=>({name:$n,labelAlign:Kt,labelCol:Wt,labelWrap:Sn,wrapperCol:on,vertical:un==="vertical",colon:Si,requiredMark:Bt,itemRef:rr.itemRef,form:kr,feedbackIcons:ai}),[$n,Kt,Wt,on,un,Si,Bt,kr,ai]);Xe.useImperativeHandle(pn,()=>kr);const Gr=(Fo,An)=>{if(Fo){let Ir={block:"nearest"};typeof Fo=="object"&&(Ir=Fo),kr.scrollToField(An,Ir)}},xn=Fo=>{if(Vn==null||Vn(Fo),Fo.errorFields.length){const An=Fo.errorFields[0].name;if(En!==void 0){Gr(En,An);return}yn&&yn.scrollToFirstError!==void 0&&Gr(yn.scrollToFirstError,An)}};return ki(Xe.createElement(Qt.n,{disabled:In},Xe.createElement(qt.q,{size:Lr},Xe.createElement(Fe.RV,Object.assign({},{validateMessages:qi}),Xe.createElement(Fe.q3.Provider,{value:Ri},Xe.createElement(St.default,Object.assign({id:$n},Qi,{name:$n,onFinishFailed:xn,form:kr,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),Tn),className:yr})))))))};var mt=Xe.forwardRef(hn),Xn=Se(12383),ri=Se(20475),pi=Se(92343),Mn=Se(38298);function Gt(ft){if(typeof ft=="function")return ft;const pn=(0,Mn.Z)(ft);return pn.length<=1?pn[0]:pn}const zt=()=>{const{status:ft,errors:pn=[],warnings:Rn=[]}=(0,Xe.useContext)(Fe.aM);return{status:ft,errors:pn,warnings:Rn}};zt.Context=Fe.aM;var Mt=zt,at=Se(23073);function jt(ft){const[pn,Rn]=Xe.useState(ft),It=(0,Xe.useRef)(null),lt=(0,Xe.useRef)([]),yn=(0,Xe.useRef)(!1);Xe.useEffect(()=>(yn.current=!1,()=>{yn.current=!0,at.Z.cancel(It.current),It.current=null}),[]);function Yn(Di){yn.current||(It.current===null&&(lt.current=[],It.current=(0,at.Z)(()=>{It.current=null,Rn(Cn=>{let bt=Cn;return lt.current.forEach(In=>{bt=In(bt)}),bt})})),lt.current.push(Di))}return[pn,Yn]}function Et(){const{itemRef:ft}=Xe.useContext(Fe.q3),pn=Xe.useRef({});function Rn(It,lt){const yn=lt&&typeof lt=="object"&<.ref,Yn=It.join("_");return(pn.current.name!==Yn||pn.current.originRef!==yn)&&(pn.current.name=Yn,pn.current.originRef=yn,pn.current.ref=(0,ri.sQ)(ft(It),yn)),pn.current.ref}return Rn}var dt=Se(48886),ot=Se(28800),De=Se(64002),xe=Se(27382),me=Se(37028);const Ne=ft=>{const{formItemCls:pn}=ft;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${pn}-control`]:{display:"flex"}}}};var He=(0,xt.b)(["Form","item-item"],(ft,pn)=>{let{rootPrefixCls:Rn}=pn;const It=ze(ft,Rn);return[Ne(It)]}),et=ft=>{const{prefixCls:pn,status:Rn,wrapperCol:It,children:lt,errors:yn,warnings:Yn,_internalItemRender:Di,extra:Cn,help:bt,fieldId:In,marginBottom:gi,onErrorVisibleChanged:Oi}=ft,Kt=`${pn}-item`,Sn=Xe.useContext(Fe.q3),Wt=It||Sn.wrapperCol||{},on=it()(`${Kt}-control`,Wt.className),gn=Xe.useMemo(()=>Object.assign({},Sn),[Sn]);delete gn.labelCol,delete gn.wrapperCol;const un=Xe.createElement("div",{className:`${Kt}-control-input`},Xe.createElement("div",{className:`${Kt}-control-input-content`},lt)),En=Xe.useMemo(()=>({prefixCls:pn,status:Rn}),[pn,Rn]),Nn=gi!==null||yn.length||Yn.length?Xe.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Xe.createElement(Fe.Rk.Provider,{value:En},Xe.createElement(Ht,{fieldId:In,errors:yn,warnings:Yn,help:bt,helpStatus:Rn,className:`${Kt}-explain-connected`,onVisibleChanged:Oi})),!!gi&&Xe.createElement("div",{style:{width:0,height:gi}})):null,Vn={};In&&(Vn.id=`${In}_extra`);const $n=Cn?Xe.createElement("div",Object.assign({},Vn,{className:`${Kt}-extra`}),Cn):null,Tn=Di&&Di.mark==="pro_table_render"&&Di.render?Di.render(ft,{input:un,errorList:Nn,extra:$n}):Xe.createElement(Xe.Fragment,null,un,Nn,$n);return Xe.createElement(Fe.q3.Provider,{value:gn},Xe.createElement(me.Z,Object.assign({},Wt,{className:on}),Tn),Xe.createElement(He,{prefixCls:pn}))},Ut=Se(86902),rn=Se(31724),ht=Se(9763),Pt=Se(6848),ln=function(ft,pn){var Rn={};for(var It in ft)Object.prototype.hasOwnProperty.call(ft,It)&&pn.indexOf(It)<0&&(Rn[It]=ft[It]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,It=Object.getOwnPropertySymbols(ft);lt<It.length;lt++)pn.indexOf(It[lt])<0&&Object.prototype.propertyIsEnumerable.call(ft,It[lt])&&(Rn[It[lt]]=ft[It[lt]]);return Rn};function Fn(ft){return ft?typeof ft=="object"&&!Xe.isValidElement(ft)?ft:{title:ft}:null}var ci=ft=>{let{prefixCls:pn,label:Rn,htmlFor:It,labelCol:lt,labelAlign:yn,colon:Yn,required:Di,requiredMark:Cn,tooltip:bt}=ft;var In;const[gi]=(0,ht.Z)("Form"),{vertical:Oi,labelAlign:Kt,labelCol:Sn,labelWrap:Wt,colon:on}=Xe.useContext(Fe.q3);if(!Rn)return null;const gn=lt||Sn||{},un=yn||Kt,En=`${pn}-item-label`,Nn=it()(En,un==="left"&&`${En}-left`,gn.className,{[`${En}-wrap`]:!!Wt});let Vn=Rn;const $n=Yn===!0||on!==!1&&Yn!==!1;$n&&!Oi&&typeof Rn=="string"&&Rn.trim()!==""&&(Vn=Rn.replace(/[:|:]\s*$/,""));const ai=Fn(bt);if(ai){const{icon:Bt=Xe.createElement(Ut.Z,null)}=ai,Si=ln(ai,["icon"]),Hi=Xe.createElement(Pt.Z,Object.assign({},Si),Xe.cloneElement(Bt,{className:`${pn}-item-tooltip`,title:""}));Vn=Xe.createElement(Xe.Fragment,null,Vn,Hi)}const Qi=Cn==="optional",Lr=typeof Cn=="function";Lr?Vn=Cn(Vn,{required:!!Di}):Qi&&!Di&&(Vn=Xe.createElement(Xe.Fragment,null,Vn,Xe.createElement("span",{className:`${pn}-item-optional`,title:""},(gi==null?void 0:gi.optional)||((In=rn.Z.Form)===null||In===void 0?void 0:In.optional))));const qi=it()({[`${pn}-item-required`]:Di,[`${pn}-item-required-mark-optional`]:Qi||Lr,[`${pn}-item-no-colon`]:!$n});return Xe.createElement(me.Z,Object.assign({},gn,{className:Nn}),Xe.createElement("label",{htmlFor:It,className:qi,title:typeof Rn=="string"?Rn:""},Vn))},di=Se(79999),mi=Se(33130),Ui=Se(85404),vr=Se(50023);const lr={success:di.Z,warning:Ui.Z,error:mi.Z,validating:vr.Z};function gr(ft){let{children:pn,errors:Rn,warnings:It,hasFeedback:lt,validateStatus:yn,prefixCls:Yn,meta:Di,noStyle:Cn}=ft;const bt=`${Yn}-item`,{feedbackIcons:In}=Xe.useContext(Fe.q3),gi=Qn(Rn,It,Di,null,!!lt,yn),{isFormItemInput:Oi,status:Kt}=Xe.useContext(Fe.aM),Sn=Xe.useMemo(()=>{var Wt;let on;if(lt){const En=lt!==!0&<.icons||In,Nn=gi&&((Wt=En==null?void 0:En({status:gi,errors:Rn,warnings:It}))===null||Wt===void 0?void 0:Wt[gi]),Vn=gi&&lr[gi];on=Nn!==!1&&Vn?Xe.createElement("span",{className:it()(`${bt}-feedback-icon`,`${bt}-feedback-icon-${gi}`)},Nn||Xe.createElement(Vn,null)):null}let gn=!0,un=gi||"";return Cn&&(gn=Oi,un=(gi!=null?gi:Kt)||""),{status:un,errors:Rn,warnings:It,hasFeedback:!!lt,feedbackIcon:on,isFormItemInput:gn}},[gi,lt,Cn,Oi,Kt]);return Xe.createElement(Fe.aM.Provider,{value:Sn},pn)}var wr=function(ft,pn){var Rn={};for(var It in ft)Object.prototype.hasOwnProperty.call(ft,It)&&pn.indexOf(It)<0&&(Rn[It]=ft[It]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,It=Object.getOwnPropertySymbols(ft);lt<It.length;lt++)pn.indexOf(It[lt])<0&&Object.prototype.propertyIsEnumerable.call(ft,It[lt])&&(Rn[It[lt]]=ft[It[lt]]);return Rn};function Zr(ft){const{prefixCls:pn,className:Rn,rootClassName:It,style:lt,help:yn,errors:Yn,warnings:Di,validateStatus:Cn,meta:bt,hasFeedback:In,hidden:gi,children:Oi,fieldId:Kt,required:Sn,isRequired:Wt,onSubItemMetaChange:on}=ft,gn=wr(ft,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),un=`${pn}-item`,{requiredMark:En}=Xe.useContext(Fe.q3),Nn=Xe.useRef(null),Vn=Ft(Yn),$n=Ft(Di),Tn=yn!=null,ai=!!(Tn||Yn.length||Di.length),Qi=!!Nn.current&&(0,dt.Z)(Nn.current),[Lr,qi]=Xe.useState(null);(0,ot.Z)(()=>{if(ai&&Nn.current){const Pr=getComputedStyle(Nn.current);qi(parseInt(Pr.marginBottom,10))}},[ai,Qi]);const Bt=Pr=>{Pr||qi(null)},Hi=function(){let Pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const yr=Pr?Vn:bt.errors,kr=Pr?$n:bt.warnings;return Qn(yr,kr,bt,"",!!In,Cn)}(),ki=it()(un,Rn,It,{[`${un}-with-help`]:Tn||Vn.length||$n.length,[`${un}-has-feedback`]:Hi&&In,[`${un}-has-success`]:Hi==="success",[`${un}-has-warning`]:Hi==="warning",[`${un}-has-error`]:Hi==="error",[`${un}-is-validating`]:Hi==="validating",[`${un}-hidden`]:gi});return Xe.createElement("div",{className:ki,style:lt,ref:Nn},Xe.createElement(xe.Z,Object.assign({className:`${un}-row`},(0,De.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"])),Xe.createElement(ci,Object.assign({htmlFor:Kt},ft,{requiredMark:En,required:Sn!=null?Sn:Wt,prefixCls:pn})),Xe.createElement(et,Object.assign({},ft,bt,{errors:Vn,warnings:$n,prefixCls:pn,status:Hi,help:yn,marginBottom:Lr,onErrorVisibleChanged:Bt}),Xe.createElement(Fe.qI.Provider,{value:on},Xe.createElement(gr,{prefixCls:pn,meta:bt,errors:bt.errors,warnings:bt.warnings,hasFeedback:In,validateStatus:Hi},Oi)))),!!Lr&&Xe.createElement("div",{className:`${un}-margin-offset`,style:{marginBottom:-Lr}}))}const Ki="__SPLIT__",Xr=null,Vi=Xe.memo(ft=>{let{children:pn}=ft;return pn},(ft,pn)=>ft.value===pn.value&&ft.update===pn.update&&ft.childProps.length===pn.childProps.length&&ft.childProps.every((Rn,It)=>Rn===pn.childProps[It]));function be(ft){return ft!=null}function Pi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Gi(ft){const{name:pn,noStyle:Rn,className:It,dependencies:lt,prefixCls:yn,shouldUpdate:Yn,rules:Di,children:Cn,required:bt,label:In,messageVariables:gi,trigger:Oi="onChange",validateTrigger:Kt,hidden:Sn,help:Wt}=ft,{getPrefixCls:on}=Xe.useContext(_t.E_),{name:gn}=Xe.useContext(Fe.q3),un=Gt(Cn),En=typeof un=="function",Nn=Xe.useContext(Fe.qI),{validateTrigger:Vn}=Xe.useContext(St.FieldContext),$n=Kt!==void 0?Kt:Vn,Tn=be(pn),ai=on("form",yn),[Qi,Lr]=We(ai),qi=Xe.useContext(St.ListContext),Bt=Xe.useRef(),[Si,Hi]=jt({}),[ki,Pr]=(0,Xn.Z)(()=>Pi()),yr=An=>{const Ir=qi==null?void 0:qi.getKey(An.name);if(Pr(An.destroy?Pi():An,!0),Rn&&Wt!==!1&&Nn){let _o=An.name;if(An.destroy)_o=Bt.current||_o;else if(Ir!==void 0){const[oo,Fa]=Ir;_o=[oo].concat((0,Ee.Z)(Fa)),Bt.current=_o}Nn(An,_o)}},kr=(An,Ir)=>{Hi(_o=>{const oo=Object.assign({},_o),Qo=[].concat((0,Ee.Z)(An.name.slice(0,-1)),(0,Ee.Z)(Ir)).join(Ki);return An.destroy?delete oo[Qo]:oo[Qo]=An,oo})},[rr,Ri]=Xe.useMemo(()=>{const An=(0,Ee.Z)(ki.errors),Ir=(0,Ee.Z)(ki.warnings);return Object.values(Si).forEach(_o=>{An.push.apply(An,(0,Ee.Z)(_o.errors||[])),Ir.push.apply(Ir,(0,Ee.Z)(_o.warnings||[]))}),[An,Ir]},[Si,ki.errors,ki.warnings]),Gr=Et();function xn(An,Ir,_o){return Rn&&!Sn?Xe.createElement(gr,{prefixCls:ai,hasFeedback:ft.hasFeedback,validateStatus:ft.validateStatus,meta:ki,errors:rr,warnings:Ri,noStyle:!0},An):Xe.createElement(Zr,Object.assign({key:"row"},ft,{className:it()(It,Lr),prefixCls:ai,fieldId:Ir,isRequired:_o,errors:rr,warnings:Ri,meta:ki,onSubItemMetaChange:kr}),An)}if(!Tn&&!En&&!lt)return Qi(xn(un));let Fo={};return typeof In=="string"?Fo.label=In:pn&&(Fo.label=String(pn)),gi&&(Fo=Object.assign(Object.assign({},Fo),gi)),Qi(Xe.createElement(St.Field,Object.assign({},ft,{messageVariables:Fo,trigger:Oi,validateTrigger:$n,onMetaChange:yr}),(An,Ir,_o)=>{const oo=tn(pn).length&&Ir?Ir.name:[],Fa=Wn(oo,gn),Qo=bt!==void 0?bt:!!(Di&&Di.some(no=>{if(no&&typeof no=="object"&&no.required&&!no.warningOnly)return!0;if(typeof no=="function"){const Lo=no(_o);return Lo&&Lo.required&&!Lo.warningOnly}return!1})),dr=Object.assign({},An);let nr=null;if(Array.isArray(un)&&Tn)nr=un;else if(!(En&&(!(Yn||lt)||Tn))){if(!(lt&&!En&&!Tn))if((0,pi.l$)(un)){const no=Object.assign(Object.assign({},un.props),dr);if(no.id||(no.id=Fa),Wt||rr.length>0||Ri.length>0||ft.extra){const Ye=[];(Wt||rr.length>0)&&Ye.push(`${Fa}_help`),ft.extra&&Ye.push(`${Fa}_extra`),no["aria-describedby"]=Ye.join(" ")}rr.length>0&&(no["aria-invalid"]="true"),Qo&&(no["aria-required"]="true"),(0,ri.Yr)(un)&&(no.ref=Gr(oo,un)),new Set([].concat((0,Ee.Z)(tn(Oi)),(0,Ee.Z)(tn($n)))).forEach(Ye=>{no[Ye]=function(){for(var $r,ca,qr,$o,Fr,Sr=arguments.length,xo=new Array(Sr),Wo=0;Wo<Sr;Wo++)xo[Wo]=arguments[Wo];(qr=dr[Ye])===null||qr===void 0||($r=qr).call.apply($r,[dr].concat(xo)),(Fr=($o=un.props)[Ye])===null||Fr===void 0||(ca=Fr).call.apply(ca,[$o].concat(xo))}});const wi=[no["aria-required"],no["aria-invalid"],no["aria-describedby"]];nr=Xe.createElement(Vi,{value:dr[ft.valuePropName||"value"],update:un,childProps:wi},(0,pi.Tm)(un,no))}else En&&(Yn||lt)&&!Tn?nr=un(_o):nr=un}return xn(nr,Fa,Qo)}))}const hr=Gi;hr.useStatus=Mt;var $i=hr,fo=function(ft,pn){var Rn={};for(var It in ft)Object.prototype.hasOwnProperty.call(ft,It)&&pn.indexOf(It)<0&&(Rn[It]=ft[It]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,It=Object.getOwnPropertySymbols(ft);lt<It.length;lt++)pn.indexOf(It[lt])<0&&Object.prototype.propertyIsEnumerable.call(ft,It[lt])&&(Rn[It[lt]]=ft[It[lt]]);return Rn},Co=ft=>{var{prefixCls:pn,children:Rn}=ft,It=fo(ft,["prefixCls","children"]);const{getPrefixCls:lt}=Xe.useContext(_t.E_),yn=lt("form",pn),Yn=Xe.useMemo(()=>({prefixCls:yn,status:"error"}),[yn]);return Xe.createElement(St.List,Object.assign({},It),(Di,Cn,bt)=>Xe.createElement(Fe.Rk.Provider,{value:Yn},Rn(Di.map(In=>Object.assign(Object.assign({},In),{fieldKey:In.key})),Cn,{errors:bt.errors,warnings:bt.warnings})))};function vn(){const{form:ft}=(0,Xe.useContext)(Fe.q3);return ft}const an=mt;an.Item=$i,an.List=Co,an.ErrorList=Ht,an.useForm=$t,an.useFormInstance=vn,an.useWatch=St.useWatch,an.Provider=Fe.RV,an.create=()=>{};var Jt=an},8628:function(On,Pn,Se){"use strict";var Ee=Se(59301),je=Se(28800),it=Se(56762),kt=Se(69507);function Xe(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Fe=(0,Ee.useRef)({}),Ft=(0,it.Z)(),Ct=(0,kt.ZP)();return(0,je.Z)(()=>{const nt=Ct.subscribe(gt=>{Fe.current=gt,pt&&Ft()});return()=>Ct.unsubscribe(nt)},[]),Fe.current}Pn.Z=Xe},9432:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ge},n:function(){return he}});var Ee=Se(33130),je=Se(92310),it=Se.n(je),kt=Se(93681),Xe=Se(20475),pt=Se(59301),Fe=Se(19080),Ft=Se(36355),Ct=Se(1684),nt=Se(19716),gt=Se(32441),wt=Se(33234),xt=Se(59412),Te=Se(9937);function te(ve){return!!(ve.prefix||ve.suffix||ve.allowClear)}var ne=function(ve,Pe){var ke={};for(var we in ve)Object.prototype.hasOwnProperty.call(ve,we)&&Pe.indexOf(we)<0&&(ke[we]=ve[we]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,we=Object.getOwnPropertySymbols(ve);Oe<we.length;Oe++)Pe.indexOf(we[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ve,we[Oe])&&(ke[we[Oe]]=ve[we[Oe]]);return ke};function he(ve,Pe){if(!ve)return;ve.focus(Pe);const{cursor:ke}=Pe||{};if(ke){const we=ve.value.length;switch(ke){case"start":ve.setSelectionRange(0,0);break;case"end":ve.setSelectionRange(we,we);break;default:ve.setSelectionRange(0,we);break}}}var ge=(0,pt.forwardRef)((ve,Pe)=>{var ke;const{prefixCls:we,bordered:Oe=!0,status:ze,size:We,disabled:Ue,onBlur:ut,onFocus:Ke,suffix:Ht,allowClear:St,addonAfter:_t,addonBefore:Qt,className:qt,style:sn,styles:Bn,rootClassName:yt,onChange:Ge,classNames:tn}=ve,Wn=ne(ve,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Qn,direction:Dt,input:$t}=pt.useContext(Ft.E_),cn=Qn("input",we),Zn=(0,pt.useRef)(null),[hn,ii]=(0,Te.ZP)(cn),{compactSize:mt,compactItemClassnames:Xn}=(0,wt.ri)(cn,Dt),ri=(0,nt.Z)(He=>{var Me;return(Me=We!=null?We:mt)!==null&&Me!==void 0?Me:He}),pi=pt.useContext(Ct.Z),Mn=Ue!=null?Ue:pi,{status:Gt,hasFeedback:zt,feedbackIcon:Mt}=(0,pt.useContext)(gt.aM),at=(0,Fe.F)(Gt,ze),jt=te(ve)||!!zt,Et=(0,pt.useRef)(jt);(0,pt.useEffect)(()=>{var He;jt&&Et.current,Et.current=jt},[jt]);const dt=(0,xt.Z)(Zn,!0),ot=He=>{dt(),ut==null||ut(He)},De=He=>{dt(),Ke==null||Ke(He)},xe=He=>{dt(),Ge==null||Ge(He)},me=(zt||Ht)&&pt.createElement(pt.Fragment,null,Ht,zt&&Mt);let Ne;return typeof St=="object"&&(St!=null&&St.clearIcon)?Ne=St:St&&(Ne={clearIcon:pt.createElement(Ee.Z,null)}),hn(pt.createElement(kt.default,Object.assign({ref:(0,Xe.sQ)(Pe,Zn),prefixCls:cn,autoComplete:$t==null?void 0:$t.autoComplete},Wn,{disabled:Mn,onBlur:ot,onFocus:De,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),sn),styles:Object.assign(Object.assign({},$t==null?void 0:$t.styles),Bn),suffix:me,allowClear:Ne,className:it()(qt,yt,Xn,$t==null?void 0:$t.className),onChange:xe,addonAfter:_t&&pt.createElement(wt.BR,null,pt.createElement(gt.Ux,{override:!0,status:!0},_t)),addonBefore:Qt&&pt.createElement(wt.BR,null,pt.createElement(gt.Ux,{override:!0,status:!0},Qt)),classNames:Object.assign(Object.assign(Object.assign({},tn),$t==null?void 0:$t.classNames),{input:it()({[`${cn}-sm`]:ri==="small",[`${cn}-lg`]:ri==="large",[`${cn}-rtl`]:Dt==="rtl",[`${cn}-borderless`]:!Oe},!jt&&(0,Fe.Z)(cn,at),tn==null?void 0:tn.input,(ke=$t==null?void 0:$t.classNames)===null||ke===void 0?void 0:ke.input,ii)}),classes:{affixWrapper:it()({[`${cn}-affix-wrapper-sm`]:ri==="small",[`${cn}-affix-wrapper-lg`]:ri==="large",[`${cn}-affix-wrapper-rtl`]:Dt==="rtl",[`${cn}-affix-wrapper-borderless`]:!Oe},(0,Fe.Z)(`${cn}-affix-wrapper`,at,zt),ii),wrapper:it()({[`${cn}-group-rtl`]:Dt==="rtl"},ii),group:it()({[`${cn}-group-wrapper-sm`]:ri==="small",[`${cn}-group-wrapper-lg`]:ri==="large",[`${cn}-group-wrapper-rtl`]:Dt==="rtl",[`${cn}-group-wrapper-disabled`]:Mn},(0,Fe.Z)(`${cn}-group-wrapper`,at,zt),ii)}})))})},1643:function(On,Pn,Se){"use strict";var Ee=Se(33130),je=Se(92310),it=Se.n(je),kt=Se(9296),Xe=Se(59301),pt=Se(19080),Fe=Se(36355),Ft=Se(1684),Ct=Se(19716),nt=Se(32441),gt=Se(9432),wt=Se(9937),xt=function(te,ne){var he={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ne.indexOf(se)<0&&(he[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,se=Object.getOwnPropertySymbols(te);ge<se.length;ge++)ne.indexOf(se[ge])<0&&Object.prototype.propertyIsEnumerable.call(te,se[ge])&&(he[se[ge]]=te[se[ge]]);return he};const Te=(0,Xe.forwardRef)((te,ne)=>{const{prefixCls:he,bordered:se=!0,size:ge,disabled:ve,status:Pe,allowClear:ke,showCount:we,classNames:Oe,rootClassName:ze,className:We}=te,Ue=xt(te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ut,direction:Ke}=Xe.useContext(Fe.E_),Ht=(0,Ct.Z)(ge),St=Xe.useContext(Ft.Z),_t=ve!=null?ve:St,{status:Qt,hasFeedback:qt,feedbackIcon:sn}=Xe.useContext(nt.aM),Bn=(0,pt.F)(Qt,Pe),yt=Xe.useRef(null);Xe.useImperativeHandle(ne,()=>{var Dt;return{resizableTextArea:(Dt=yt.current)===null||Dt===void 0?void 0:Dt.resizableTextArea,focus:$t=>{var cn,Zn;(0,gt.n)((Zn=(cn=yt.current)===null||cn===void 0?void 0:cn.resizableTextArea)===null||Zn===void 0?void 0:Zn.textArea,$t)},blur:()=>{var $t;return($t=yt.current)===null||$t===void 0?void 0:$t.blur()}}});const Ge=ut("input",he);let tn;typeof ke=="object"&&(ke!=null&&ke.clearIcon)?tn=ke:ke&&(tn={clearIcon:Xe.createElement(Ee.Z,null)});const[Wn,Qn]=(0,wt.ZP)(Ge);return Wn(Xe.createElement(kt.default,Object.assign({},Ue,{disabled:_t,allowClear:tn,className:it()(We,ze),classes:{affixWrapper:it()(`${Ge}-textarea-affix-wrapper`,{[`${Ge}-affix-wrapper-rtl`]:Ke==="rtl",[`${Ge}-affix-wrapper-borderless`]:!se,[`${Ge}-affix-wrapper-sm`]:Ht==="small",[`${Ge}-affix-wrapper-lg`]:Ht==="large",[`${Ge}-textarea-show-count`]:we},(0,pt.Z)(`${Ge}-affix-wrapper`,Bn),Qn)},classNames:Object.assign(Object.assign({},Oe),{textarea:it()({[`${Ge}-borderless`]:!se,[`${Ge}-sm`]:Ht==="small",[`${Ge}-lg`]:Ht==="large"},(0,pt.Z)(Ge,Bn),Qn,Oe==null?void 0:Oe.textarea)}),prefixCls:Ge,suffix:qt&&Xe.createElement("span",{className:`${Ge}-textarea-suffix`},sn),showCount:we,ref:yt})))});Pn.Z=Te},59412:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return je}});var Ee=Se(59301);function je(it,kt){const Xe=(0,Ee.useRef)([]),pt=()=>{Xe.current.push(setTimeout(()=>{var Fe,Ft,Ct,nt;!((Fe=it.current)===null||Fe===void 0)&&Fe.input&&((Ft=it.current)===null||Ft===void 0?void 0:Ft.input.getAttribute("type"))==="password"&&(!((Ct=it.current)===null||Ct===void 0)&&Ct.input.hasAttribute("value"))&&((nt=it.current)===null||nt===void 0||nt.input.removeAttribute("value"))}))};return(0,Ee.useEffect)(()=>(kt&&pt(),()=>Xe.current.forEach(Fe=>{Fe&&clearTimeout(Fe)})),[]),pt}},92832:function(On,Pn,Se){"use strict";Se.d(Pn,{default:function(){return Ht}});var Ee=Se(92310),je=Se.n(Ee),it=Se(59301),kt=Se(36355),Xe=Se(32441),pt=Se(9937),Ft=St=>{const{getPrefixCls:_t,direction:Qt}=(0,it.useContext)(kt.E_),{prefixCls:qt,className:sn}=St,Bn=_t("input-group",qt),yt=_t("input"),[Ge,tn]=(0,pt.ZP)(yt),Wn=je()(Bn,{[`${Bn}-lg`]:St.size==="large",[`${Bn}-sm`]:St.size==="small",[`${Bn}-compact`]:St.compact,[`${Bn}-rtl`]:Qt==="rtl"},tn,sn),Qn=(0,it.useContext)(Xe.aM),Dt=(0,it.useMemo)(()=>Object.assign(Object.assign({},Qn),{isFormItemInput:!1}),[Qn]);return Ge(it.createElement("span",{className:Wn,style:St.style,onMouseEnter:St.onMouseEnter,onMouseLeave:St.onMouseLeave,onFocus:St.onFocus,onBlur:St.onBlur},it.createElement(Xe.aM.Provider,{value:Dt},St.children)))},Ct=Se(9432),nt=Se(61441),gt=Se(30631),wt=Se(64002),xt=Se(20475),Te=Se(59412),te=function(St,_t){var Qt={};for(var qt in St)Object.prototype.hasOwnProperty.call(St,qt)&&_t.indexOf(qt)<0&&(Qt[qt]=St[qt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,qt=Object.getOwnPropertySymbols(St);sn<qt.length;sn++)_t.indexOf(qt[sn])<0&&Object.prototype.propertyIsEnumerable.call(St,qt[sn])&&(Qt[qt[sn]]=St[qt[sn]]);return Qt};const ne=St=>St?it.createElement(gt.Z,null):it.createElement(nt.Z,null),he={click:"onClick",hover:"onMouseOver"};var ge=it.forwardRef((St,_t)=>{const{visibilityToggle:Qt=!0}=St,qt=typeof Qt=="object"&&Qt.visible!==void 0,[sn,Bn]=(0,it.useState)(()=>qt?Qt.visible:!1),yt=(0,it.useRef)(null);it.useEffect(()=>{qt&&Bn(Qt.visible)},[qt,Qt]);const Ge=(0,Te.Z)(yt),tn=()=>{const{disabled:Mn}=St;Mn||(sn&&Ge(),Bn(Gt=>{var zt;const Mt=!Gt;return typeof Qt=="object"&&((zt=Qt.onVisibleChange)===null||zt===void 0||zt.call(Qt,Mt)),Mt}))},Wn=Mn=>{const{action:Gt="click",iconRender:zt=ne}=St,Mt=he[Gt]||"",at=zt(sn),jt={[Mt]:tn,className:`${Mn}-icon`,key:"passwordIcon",onMouseDown:Et=>{Et.preventDefault()},onMouseUp:Et=>{Et.preventDefault()}};return it.cloneElement(it.isValidElement(at)?at:it.createElement("span",null,at),jt)},{className:Qn,prefixCls:Dt,inputPrefixCls:$t,size:cn}=St,Zn=te(St,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:hn}=it.useContext(kt.E_),ii=hn("input",$t),mt=hn("input-password",Dt),Xn=Qt&&Wn(mt),ri=je()(mt,Qn,{[`${mt}-${cn}`]:!!cn}),pi=Object.assign(Object.assign({},(0,wt.Z)(Zn,["suffix","iconRender","visibilityToggle"])),{type:sn?"text":"password",className:ri,prefixCls:ii,suffix:Xn});return cn&&(pi.size=cn),it.createElement(Ct.Z,Object.assign({ref:(0,xt.sQ)(_t,yt)},pi))}),ve=Se(21970),Pe=Se(92343),ke=Se(3113),we=Se(19716),Oe=Se(33234),ze=function(St,_t){var Qt={};for(var qt in St)Object.prototype.hasOwnProperty.call(St,qt)&&_t.indexOf(qt)<0&&(Qt[qt]=St[qt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,qt=Object.getOwnPropertySymbols(St);sn<qt.length;sn++)_t.indexOf(qt[sn])<0&&Object.prototype.propertyIsEnumerable.call(St,qt[sn])&&(Qt[qt[sn]]=St[qt[sn]]);return Qt},Ue=it.forwardRef((St,_t)=>{const{prefixCls:Qt,inputPrefixCls:qt,className:sn,size:Bn,suffix:yt,enterButton:Ge=!1,addonAfter:tn,loading:Wn,disabled:Qn,onSearch:Dt,onChange:$t,onCompositionStart:cn,onCompositionEnd:Zn}=St,hn=ze(St,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ii,direction:mt}=it.useContext(kt.E_),Xn=it.useRef(!1),ri=ii("input-search",Qt),pi=ii("input",qt),{compactSize:Mn}=(0,Oe.ri)(ri,mt),Gt=(0,we.Z)(et=>{var Ut;return(Ut=Bn!=null?Bn:Mn)!==null&&Ut!==void 0?Ut:et}),zt=it.useRef(null),Mt=et=>{et&&et.target&&et.type==="click"&&Dt&&Dt(et.target.value,et,{source:"clear"}),$t&&$t(et)},at=et=>{var Ut;document.activeElement===((Ut=zt.current)===null||Ut===void 0?void 0:Ut.input)&&et.preventDefault()},jt=et=>{var Ut,rn;Dt&&Dt((rn=(Ut=zt.current)===null||Ut===void 0?void 0:Ut.input)===null||rn===void 0?void 0:rn.value,et,{source:"input"})},Et=et=>{Xn.current||Wn||jt(et)},dt=typeof Ge=="boolean"?it.createElement(ve.Z,null):null,ot=`${ri}-button`;let De;const xe=Ge||{},me=xe.type&&xe.type.__ANT_BUTTON===!0;me||xe.type==="button"?De=(0,Pe.Tm)(xe,Object.assign({onMouseDown:at,onClick:et=>{var Ut,rn;(rn=(Ut=xe==null?void 0:xe.props)===null||Ut===void 0?void 0:Ut.onClick)===null||rn===void 0||rn.call(Ut,et),jt(et)},key:"enterButton"},me?{className:ot,size:Gt}:{})):De=it.createElement(ke.ZP,{className:ot,type:Ge?"primary":void 0,size:Gt,disabled:Qn,key:"enterButton",onMouseDown:at,onClick:jt,loading:Wn,icon:dt},Ge),tn&&(De=[De,(0,Pe.Tm)(tn,{key:"addonAfter"})]);const Ne=je()(ri,{[`${ri}-rtl`]:mt==="rtl",[`${ri}-${Gt}`]:!!Gt,[`${ri}-with-button`]:!!Ge},sn),He=et=>{Xn.current=!0,cn==null||cn(et)},Me=et=>{Xn.current=!1,Zn==null||Zn(et)};return it.createElement(Ct.Z,Object.assign({ref:(0,xt.sQ)(zt,_t),onPressEnter:Et},hn,{size:Gt,onCompositionStart:He,onCompositionEnd:Me,prefixCls:pi,addonAfter:De,suffix:yt,onChange:Mt,className:Ne,disabled:Qn}))}),ut=Se(1643);const Ke=Ct.Z;Ke.Group=Ft,Ke.Search=Ue,Ke.TextArea=ut.Z,Ke.Password=ge;var Ht=Ke},99580:function(On,Pn,Se){"use strict";Se.d(Pn,{D:function(){return ve},Z:function(){return we}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(ze,We){return je.createElement(Xe.Z,(0,Ee.Z)({},ze,{ref:We,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe,Ct=Se(16537),nt=Se(53878),gt=Se(92310),wt=Se.n(gt),xt=Se(64002),te=Oe=>!isNaN(parseFloat(Oe))&&isFinite(Oe),ne=Se(36355),he=Se(84966),se=function(Oe,ze){var We={};for(var Ue in Oe)Object.prototype.hasOwnProperty.call(Oe,Ue)&&ze.indexOf(Ue)<0&&(We[Ue]=Oe[Ue]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ue=Object.getOwnPropertySymbols(Oe);ut<Ue.length;ut++)ze.indexOf(Ue[ut])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ue[ut])&&(We[Ue[ut]]=Oe[Ue[ut]]);return We};const ge={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ve=je.createContext({}),Pe=(()=>{let Oe=0;return function(){let ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Oe+=1,`${ze}${Oe}`}})();var we=je.forwardRef((Oe,ze)=>{const{prefixCls:We,className:Ue,trigger:ut,children:Ke,defaultCollapsed:Ht=!1,theme:St="dark",style:_t={},collapsible:Qt=!1,reverseArrow:qt=!1,width:sn=200,collapsedWidth:Bn=80,zeroWidthTriggerStyle:yt,breakpoint:Ge,onCollapse:tn,onBreakpoint:Wn}=Oe,Qn=se(Oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Dt}=(0,je.useContext)(he.Gs),[$t,cn]=(0,je.useState)("collapsed"in Oe?Oe.collapsed:Ht),[Zn,hn]=(0,je.useState)(!1);(0,je.useEffect)(()=>{"collapsed"in Oe&&cn(Oe.collapsed)},[Oe.collapsed]);const ii=(Gt,zt)=>{"collapsed"in Oe||cn(Gt),tn==null||tn(Gt,zt)},mt=(0,je.useRef)();mt.current=Gt=>{hn(Gt.matches),Wn==null||Wn(Gt.matches),$t!==Gt.matches&&ii(Gt.matches,"responsive")},(0,je.useEffect)(()=>{function Gt(Mt){return mt.current(Mt)}let zt;if(typeof window!="undefined"){const{matchMedia:Mt}=window;if(Mt&&Ge&&Ge in ge){zt=Mt(`(max-width: ${ge[Ge]})`);try{zt.addEventListener("change",Gt)}catch(at){zt.addListener(Gt)}Gt(zt)}}return()=>{try{zt==null||zt.removeEventListener("change",Gt)}catch(Mt){zt==null||zt.removeListener(Gt)}}},[Ge]),(0,je.useEffect)(()=>{const Gt=Pe("ant-sider-");return Dt.addSider(Gt),()=>Dt.removeSider(Gt)},[]);const Xn=()=>{ii(!$t,"clickTrigger")},{getPrefixCls:ri}=(0,je.useContext)(ne.E_),pi=()=>{const Gt=ri("layout-sider",We),zt=(0,xt.Z)(Qn,["collapsed"]),Mt=$t?Bn:sn,at=te(Mt)?`${Mt}px`:String(Mt),jt=parseFloat(String(Bn||0))===0?je.createElement("span",{onClick:Xn,className:wt()(`${Gt}-zero-width-trigger`,`${Gt}-zero-width-trigger-${qt?"right":"left"}`),style:yt},ut||je.createElement(Ft,null)):null,ot={expanded:qt?je.createElement(nt.Z,null):je.createElement(Ct.Z,null),collapsed:qt?je.createElement(Ct.Z,null):je.createElement(nt.Z,null)}[$t?"collapsed":"expanded"],De=ut!==null?jt||je.createElement("div",{className:`${Gt}-trigger`,onClick:Xn,style:{width:at}},ut||ot):null,xe=Object.assign(Object.assign({},_t),{flex:`0 0 ${at}`,maxWidth:at,minWidth:at,width:at}),me=wt()(Gt,`${Gt}-${St}`,{[`${Gt}-collapsed`]:!!$t,[`${Gt}-has-trigger`]:Qt&&ut!==null&&!jt,[`${Gt}-below`]:!!Zn,[`${Gt}-zero-width`]:parseFloat(at)===0},Ue);return je.createElement("aside",Object.assign({className:me},zt,{style:xe,ref:ze}),je.createElement("div",{className:`${Gt}-children`},Ke),Qt||Zn&&jt?De:null)},Mn=je.useMemo(()=>({siderCollapsed:$t}),[$t]);return je.createElement(ve.Provider,{value:Mn},pi())})},84966:function(On,Pn,Se){"use strict";Se.d(Pn,{VY:function(){return ve},$_:function(){return ge},h4:function(){return se},Gs:function(){return xt},ZP:function(){return Pe}});var Ee=Se(26390),je=Se(92310),it=Se.n(je),kt=Se(64002),Xe=Se(59301),pt=Se(36355),Fe=Se(83116),Ct=ke=>{const{componentCls:we,bodyBg:Oe,lightSiderBg:ze,lightTriggerBg:We,lightTriggerColor:Ue}=ke;return{[`${we}-sider-light`]:{background:ze,[`${we}-sider-trigger`]:{color:Ue,background:We},[`${we}-sider-zero-width-trigger`]:{color:Ue,background:We,border:`1px solid ${Oe}`,borderInlineStart:0}}}};const nt=ke=>{const{antCls:we,componentCls:Oe,colorText:ze,triggerColor:We,footerBg:Ue,triggerBg:ut,headerHeight:Ke,headerPadding:Ht,headerColor:St,footerPadding:_t,triggerHeight:Qt,zeroTriggerHeight:qt,zeroTriggerWidth:sn,motionDurationMid:Bn,motionDurationSlow:yt,fontSize:Ge,borderRadius:tn,bodyBg:Wn,headerBg:Qn,siderBg:Dt}=ke;return{[Oe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Wn,"&, *":{boxSizing:"border-box"},[`&${Oe}-has-sider`]:{flexDirection:"row",[`> ${Oe}, > ${Oe}-content`]:{width:0}},[`${Oe}-header, &${Oe}-footer`]:{flex:"0 0 auto"},[`${Oe}-sider`]:{position:"relative",minWidth:0,background:Dt,transition:`all ${Bn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${we}-menu${we}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Qt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Qt,color:We,lineHeight:`${Qt}px`,textAlign:"center",background:ut,cursor:"pointer",transition:`all ${Bn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ke,insetInlineEnd:-sn,zIndex:1,width:sn,height:qt,color:We,fontSize:ke.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Dt,borderStartStartRadius:0,borderStartEndRadius:tn,borderEndEndRadius:tn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${yt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${yt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-sn,borderStartStartRadius:tn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:tn}}}}},Ct(ke)),{"&-rtl":{direction:"rtl"}}),[`${Oe}-header`]:{height:Ke,padding:Ht,color:St,lineHeight:`${Ke}px`,background:Qn,[`${we}-menu`]:{lineHeight:"inherit"}},[`${Oe}-footer`]:{padding:_t,color:ze,fontSize:Ge,background:Ue},[`${Oe}-content`]:{flex:"auto",minHeight:0}}};var gt=(0,Fe.Z)("Layout",ke=>[nt(ke)],ke=>{const{colorBgLayout:we,controlHeight:Oe,controlHeightLG:ze,colorText:We,controlHeightSM:Ue,marginXXS:ut,colorTextLightSolid:Ke,colorBgContainer:Ht}=ke,St=ze*1.25;return{colorBgHeader:"#001529",colorBgBody:we,colorBgTrigger:"#002140",bodyBg:we,headerBg:"#001529",headerHeight:Oe*2,headerPadding:`0 ${St}px`,headerColor:We,footerPadding:`${Ue}px ${St}px`,footerBg:we,siderBg:"#001529",triggerHeight:ze+ut*2,triggerBg:"#002140",triggerColor:Ke,zeroTriggerWidth:ze,zeroTriggerHeight:ze,lightSiderBg:Ht,lightTriggerBg:Ht,lightTriggerColor:We}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),wt=function(ke,we){var Oe={};for(var ze in ke)Object.prototype.hasOwnProperty.call(ke,ze)&&we.indexOf(ze)<0&&(Oe[ze]=ke[ze]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ze=Object.getOwnPropertySymbols(ke);We<ze.length;We++)we.indexOf(ze[We])<0&&Object.prototype.propertyIsEnumerable.call(ke,ze[We])&&(Oe[ze[We]]=ke[ze[We]]);return Oe};const xt=Xe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Te(ke){let{suffixCls:we,tagName:Oe,displayName:ze}=ke;return We=>Xe.forwardRef((ut,Ke)=>Xe.createElement(We,Object.assign({ref:Ke,suffixCls:we,tagName:Oe},ut)))}const te=Xe.forwardRef((ke,we)=>{const{prefixCls:Oe,suffixCls:ze,className:We,tagName:Ue}=ke,ut=wt(ke,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ke}=Xe.useContext(pt.E_),Ht=Ke("layout",Oe),[St,_t]=gt(Ht),Qt=ze?`${Ht}-${ze}`:Ht;return St(Xe.createElement(Ue,Object.assign({className:it()(Oe||Qt,We,_t),ref:we},ut)))}),ne=Xe.forwardRef((ke,we)=>{const{direction:Oe}=Xe.useContext(pt.E_),[ze,We]=Xe.useState([]),{prefixCls:Ue,className:ut,rootClassName:Ke,children:Ht,hasSider:St,tagName:_t,style:Qt}=ke,qt=wt(ke,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),sn=(0,kt.Z)(qt,["suffixCls"]),{getPrefixCls:Bn,layout:yt}=Xe.useContext(pt.E_),Ge=Bn("layout",Ue),[tn,Wn]=gt(Ge),Qn=it()(Ge,{[`${Ge}-has-sider`]:typeof St=="boolean"?St:ze.length>0,[`${Ge}-rtl`]:Oe==="rtl"},yt==null?void 0:yt.className,ut,Ke,Wn),Dt=Xe.useMemo(()=>({siderHook:{addSider:$t=>{We(cn=>[].concat((0,Ee.Z)(cn),[$t]))},removeSider:$t=>{We(cn=>cn.filter(Zn=>Zn!==$t))}}}),[]);return tn(Xe.createElement(xt.Provider,{value:Dt},Xe.createElement(_t,Object.assign({ref:we,className:Qn,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),Qt)},sn),Ht)))}),he=Te({tagName:"div",displayName:"Layout"})(ne),se=Te({suffixCls:"header",tagName:"header",displayName:"Header"})(te),ge=Te({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(te),ve=Te({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var Pe=he},40875:function(On,Pn,Se){"use strict";Se.d(Pn,{J:function(){return pt}});var Ee=Se(59301),je=Se(33234),it=Se(80764),kt=function(Fe,Ft){var Ct={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&Ft.indexOf(nt)<0&&(Ct[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Fe);gt<nt.length;gt++)Ft.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[gt])&&(Ct[nt[gt]]=Fe[nt[gt]]);return Ct};const Xe=Ee.createContext(null),pt=Ee.forwardRef((Fe,Ft)=>{const{children:Ct}=Fe,nt=kt(Fe,["children"]),gt=Ee.useContext(Xe),wt=Ee.useMemo(()=>Object.assign(Object.assign({},gt),nt),[gt,nt.prefixCls,nt.mode,nt.selectable]);return Ee.createElement(Xe.Provider,{value:wt},Ee.createElement(je.BR,null,(0,it.supportNodeRef)(Ct)?Ee.cloneElement(Ct,{ref:Ft}):Ct))});Pn.Z=Xe},20834:function(On,Pn,Se){"use strict";Se.d(Pn,{default:function(){return Mn}});var Ee=Se(22798),je=Se(59301),it=Se(99580),kt=Se(92310),Xe=Se.n(kt),pt=Se(36355),Fe=function(Gt,zt){var Mt={};for(var at in Gt)Object.prototype.hasOwnProperty.call(Gt,at)&&zt.indexOf(at)<0&&(Mt[at]=Gt[at]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,at=Object.getOwnPropertySymbols(Gt);jt<at.length;jt++)zt.indexOf(at[jt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,at[jt])&&(Mt[at[jt]]=Gt[at[jt]]);return Mt},Ct=Gt=>{const{prefixCls:zt,className:Mt,dashed:at}=Gt,jt=Fe(Gt,["prefixCls","className","dashed"]),{getPrefixCls:Et}=je.useContext(pt.E_),dt=Et("menu",zt),ot=Xe()({[`${dt}-item-divider-dashed`]:!!at},Mt);return je.createElement(Ee.iz,Object.assign({className:ot},jt))},nt=Se(38298),gt=Se(64002),wt=Se(6848),xt=Se(92343),te=(0,je.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),he=Gt=>{var zt;const{className:Mt,children:at,icon:jt,title:Et,danger:dt}=Gt,{prefixCls:ot,firstLevel:De,direction:xe,disableMenuItemTitleTooltip:me,inlineCollapsed:Ne}=je.useContext(te),He=Pt=>{const ln=je.createElement("span",{className:`${ot}-title-content`},at);return(!jt||(0,xt.l$)(at)&&at.type==="span")&&at&&Pt&&De&&typeof at=="string"?je.createElement("div",{className:`${ot}-inline-collapsed-noicon`},at.charAt(0)):ln},{siderCollapsed:Me}=je.useContext(it.D);let et=Et;typeof Et=="undefined"?et=De?at:"":Et===!1&&(et="");const Ut={title:et};!Me&&!Ne&&(Ut.title=null,Ut.open=!1);const rn=(0,nt.Z)(at).length;let ht=je.createElement(Ee.ck,Object.assign({},(0,gt.Z)(Gt,["title","icon","danger"]),{className:Xe()({[`${ot}-item-danger`]:dt,[`${ot}-item-only-child`]:(jt?rn+1:rn)===1},Mt),title:typeof Et=="string"?Et:void 0}),(0,xt.Tm)(jt,{className:Xe()((0,xt.l$)(jt)?(zt=jt.props)===null||zt===void 0?void 0:zt.className:"",`${ot}-item-icon`)}),He(Ne));return me||(ht=je.createElement(wt.Z,Object.assign({},Ut,{placement:xe==="rtl"?"left":"right",overlayClassName:`${ot}-inline-collapsed-tooltip`}),ht)),ht},ge=Gt=>{var zt;const{popupClassName:Mt,icon:at,title:jt,theme:Et}=Gt,dt=je.useContext(te),{prefixCls:ot,inlineCollapsed:De,theme:xe}=dt,me=(0,Ee.Xl)();let Ne;if(!at)Ne=De&&!me.length&&jt&&typeof jt=="string"?je.createElement("div",{className:`${ot}-inline-collapsed-noicon`},jt.charAt(0)):je.createElement("span",{className:`${ot}-title-content`},jt);else{const Me=(0,xt.l$)(jt)&&jt.type==="span";Ne=je.createElement(je.Fragment,null,(0,xt.Tm)(at,{className:Xe()((0,xt.l$)(at)?(zt=at.props)===null||zt===void 0?void 0:zt.className:"",`${ot}-item-icon`)}),Me?jt:je.createElement("span",{className:`${ot}-title-content`},jt))}const He=je.useMemo(()=>Object.assign(Object.assign({},dt),{firstLevel:!1}),[dt]);return je.createElement(te.Provider,{value:He},je.createElement(Ee.Wd,Object.assign({},(0,gt.Z)(Gt,["icon"]),{title:Ne,popupClassName:Xe()(ot,Mt,`${ot}-${Et||xe}`)})))},ve=Se(19362),Pe=Se(80764),ke=Se(62892),we=Se(40875),Oe=function(Gt,zt){var Mt={};for(var at in Gt)Object.prototype.hasOwnProperty.call(Gt,at)&&zt.indexOf(at)<0&&(Mt[at]=Gt[at]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,at=Object.getOwnPropertySymbols(Gt);jt<at.length;jt++)zt.indexOf(at[jt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,at[jt])&&(Mt[at[jt]]=Gt[at[jt]]);return Mt};function ze(Gt){return(Gt||[]).map((zt,Mt)=>{if(zt&&typeof zt=="object"){const at=zt,{label:jt,children:Et,key:dt,type:ot}=at,De=Oe(at,["label","children","key","type"]),xe=dt!=null?dt:`tmp-${Mt}`;return Et||ot==="group"?ot==="group"?je.createElement(Ee.BW,Object.assign({key:xe},De,{title:jt}),ze(Et)):je.createElement(ge,Object.assign({key:xe},De,{title:jt}),ze(Et)):ot==="divider"?je.createElement(Ct,Object.assign({key:xe},De)):je.createElement(he,Object.assign({key:xe},De),jt)}return null}).filter(zt=>zt)}function We(Gt){return je.useMemo(()=>Gt&&ze(Gt),[Gt])}var Ue=Se(64993),ut=Se(17313),Ke=Se(8378),Ht=Se(13826),St=Se(29878),_t=Se(83116),Qt=Se(37613),sn=Gt=>{const{componentCls:zt,motionDurationSlow:Mt,horizontalLineHeight:at,colorSplit:jt,lineWidth:Et,lineType:dt,itemPaddingInline:ot}=Gt;return{[`${zt}-horizontal`]:{lineHeight:at,border:0,borderBottom:`${Et}px ${dt} ${jt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${zt}-item, ${zt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ot},[`> ${zt}-item:hover,
|
|
|
> ${zt}-item-active,
|
|
|
> ${zt}-submenu ${zt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${zt}-item, ${zt}-submenu-title`]:{transition:[`border-color ${Mt}`,`background ${Mt}`].join(",")},[`${zt}-submenu-arrow`]:{display:"none"}}}},yt=Gt=>{let{componentCls:zt,menuArrowOffset:Mt}=Gt;return{[`${zt}-rtl`]:{direction:"rtl"},[`${zt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${zt}-rtl${zt}-vertical,
|
|
|
${zt}-submenu-rtl ${zt}-vertical`]:{[`${zt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Mt})`},"&::after":{transform:`rotate(45deg) translateY(${Mt})`}}}}};const Ge=Gt=>Object.assign({},(0,ut.oN)(Gt));var Wn=(Gt,zt)=>{const{componentCls:Mt,itemColor:at,itemSelectedColor:jt,groupTitleColor:Et,itemBg:dt,subMenuItemBg:ot,itemSelectedBg:De,activeBarHeight:xe,activeBarWidth:me,activeBarBorderWidth:Ne,motionDurationSlow:He,motionEaseInOut:Me,motionEaseOut:et,itemPaddingInline:Ut,motionDurationMid:rn,itemHoverColor:ht,lineType:Pt,colorSplit:ln,itemDisabledColor:Fn,dangerItemColor:oi,dangerItemHoverColor:ci,dangerItemSelectedColor:di,dangerItemActiveBg:mi,dangerItemSelectedBg:Ui,itemHoverBg:vr,itemActiveBg:lr,menuSubMenuBg:gr,horizontalItemSelectedColor:wr,horizontalItemSelectedBg:Zr,horizontalItemBorderRadius:Ki,horizontalItemHoverBg:Xr,popupBg:Vi}=Gt;return{[`${Mt}-${zt}, ${Mt}-${zt} > ${Mt}`]:{color:at,background:dt,[`&${Mt}-root:focus-visible`]:Object.assign({},Ge(Gt)),[`${Mt}-item-group-title`]:{color:Et},[`${Mt}-submenu-selected`]:{[`> ${Mt}-submenu-title`]:{color:jt}},[`${Mt}-item-disabled, ${Mt}-submenu-disabled`]:{color:`${Fn} !important`},[`${Mt}-item:not(${Mt}-item-selected):not(${Mt}-submenu-selected)`]:{[`&:hover, > ${Mt}-submenu-title:hover`]:{color:ht}},[`&:not(${Mt}-horizontal)`]:{[`${Mt}-item:not(${Mt}-item-selected)`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:lr}},[`${Mt}-submenu-title`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:lr}}},[`${Mt}-item-danger`]:{color:oi,[`&${Mt}-item:hover`]:{[`&:not(${Mt}-item-selected):not(${Mt}-submenu-selected)`]:{color:ci}},[`&${Mt}-item:active`]:{background:mi}},[`${Mt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Mt}-item-selected`]:{color:jt,[`&${Mt}-item-danger`]:{color:di},"a, a:hover":{color:"inherit"}},[`& ${Mt}-item-selected`]:{backgroundColor:De,[`&${Mt}-item-danger`]:{backgroundColor:Ui}},[`${Mt}-item, ${Mt}-submenu-title`]:{[`&:not(${Mt}-item-disabled):focus-visible`]:Object.assign({},Ge(Gt))},[`&${Mt}-submenu > ${Mt}`]:{backgroundColor:gr},[`&${Mt}-popup > ${Mt}`]:{backgroundColor:Vi},[`&${Mt}-horizontal`]:Object.assign(Object.assign({},zt==="dark"?{borderBottom:0}:{}),{[`> ${Mt}-item, > ${Mt}-submenu`]:{top:Ne,marginTop:-Ne,marginBottom:0,borderRadius:Ki,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${xe}px solid transparent`,transition:`border-color ${He} ${Me}`,content:'""'},"&:hover, &-active, &-open":{background:Xr,"&::after":{borderBottomWidth:xe,borderBottomColor:wr}},"&-selected":{color:wr,backgroundColor:Zr,"&:hover":{backgroundColor:Zr},"&::after":{borderBottomWidth:xe,borderBottomColor:wr}}}}),[`&${Mt}-root`]:{[`&${Mt}-inline, &${Mt}-vertical`]:{borderInlineEnd:`${Ne}px ${Pt} ${ln}`}},[`&${Mt}-inline`]:{[`${Mt}-sub${Mt}-inline`]:{background:ot},[`${Mt}-item, ${Mt}-submenu-title`]:Ne&&me?{width:`calc(100% + ${Ne}px)`}:{},[`${Mt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${me}px solid ${jt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${rn} ${et}`,`opacity ${rn} ${et}`].join(","),content:'""'},[`&${Mt}-item-danger`]:{"&::after":{borderInlineEndColor:di}}},[`${Mt}-selected, ${Mt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${rn} ${Me}`,`opacity ${rn} ${Me}`].join(",")}}}}}};const Qn=Gt=>{const{componentCls:zt,itemHeight:Mt,itemMarginInline:at,padding:jt,menuArrowSize:Et,marginXS:dt,itemMarginBlock:ot}=Gt,De=jt+Et+dt;return{[`${zt}-item`]:{position:"relative",overflow:"hidden"},[`${zt}-item, ${zt}-submenu-title`]:{height:Mt,lineHeight:`${Mt}px`,paddingInline:jt,overflow:"hidden",textOverflow:"ellipsis",marginInline:at,marginBlock:ot,width:`calc(100% - ${at*2}px)`},[`> ${zt}-item,
|
|
|
> ${zt}-submenu > ${zt}-submenu-title`]:{height:Mt,lineHeight:`${Mt}px`},[`${zt}-item-group-list ${zt}-submenu-title,
|
|
|
${zt}-submenu-title`]:{paddingInlineEnd:De}}};var $t=Gt=>{const{componentCls:zt,iconCls:Mt,itemHeight:at,colorTextLightSolid:jt,dropdownWidth:Et,controlHeightLG:dt,motionDurationMid:ot,motionEaseOut:De,paddingXL:xe,itemMarginInline:me,fontSizeLG:Ne,motionDurationSlow:He,paddingXS:Me,boxShadowSecondary:et,collapsedWidth:Ut,collapsedIconSize:rn}=Gt,ht={height:at,lineHeight:`${at}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[zt]:{"&-inline, &-vertical":Object.assign({[`&${zt}-root`]:{boxShadow:"none"}},Qn(Gt))},[`${zt}-submenu-popup`]:{[`${zt}-vertical`]:Object.assign(Object.assign({},Qn(Gt)),{boxShadow:et})}},{[`${zt}-submenu-popup ${zt}-vertical${zt}-sub`]:{minWidth:Et,maxHeight:`calc(100vh - ${dt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${zt}-inline`]:{width:"100%",[`&${zt}-root`]:{[`${zt}-item, ${zt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${He}`,`background ${He}`,`padding ${ot} ${De}`].join(","),[`> ${zt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${zt}-sub${zt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${zt}-submenu > ${zt}-submenu-title`]:ht,[`& ${zt}-item-group-title`]:{paddingInlineStart:xe}},[`${zt}-item`]:ht}},{[`${zt}-inline-collapsed`]:{width:Ut,[`&${zt}-root`]:{[`${zt}-item, ${zt}-submenu ${zt}-submenu-title`]:{[`> ${zt}-inline-collapsed-noicon`]:{fontSize:Ne,textAlign:"center"}}},[`> ${zt}-item,
|
|
|
> ${zt}-item-group > ${zt}-item-group-list > ${zt}-item,
|
|
|
> ${zt}-item-group > ${zt}-item-group-list > ${zt}-submenu > ${zt}-submenu-title,
|
|
|
> ${zt}-submenu > ${zt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ne/2}px - ${me}px)`,textOverflow:"clip",[`
|
|
|
${zt}-submenu-arrow,
|
|
|
${zt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${zt}-item-icon, ${Mt}`]:{margin:0,fontSize:rn,lineHeight:`${at}px`,"+ span":{display:"inline-block",opacity:0}}},[`${zt}-item-icon, ${Mt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${zt}-item-icon, ${Mt}`]:{display:"none"},"a, a:hover":{color:jt}},[`${zt}-item-group-title`]:Object.assign(Object.assign({},ut.vS),{paddingInline:Me})}}]};const cn=Gt=>{const{componentCls:zt,motionDurationSlow:Mt,motionDurationMid:at,motionEaseInOut:jt,motionEaseOut:Et,iconCls:dt,iconSize:ot,iconMarginInlineEnd:De}=Gt;return{[`${zt}-item, ${zt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Mt}`,`background ${Mt}`,`padding ${Mt} ${jt}`].join(","),[`${zt}-item-icon, ${dt}`]:{minWidth:ot,fontSize:ot,transition:[`font-size ${at} ${Et}`,`margin ${Mt} ${jt}`,`color ${Mt}`].join(","),"+ span":{marginInlineStart:De,opacity:1,transition:[`opacity ${Mt} ${jt}`,`margin ${Mt}`,`color ${Mt}`].join(",")}},[`${zt}-item-icon`]:Object.assign({},(0,ut.Ro)()),[`&${zt}-item-only-child`]:{[`> ${dt}, > ${zt}-item-icon`]:{marginInlineEnd:0}}},[`${zt}-item-disabled, ${zt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${zt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Zn=Gt=>{const{componentCls:zt,motionDurationSlow:Mt,motionEaseInOut:at,borderRadius:jt,menuArrowSize:Et,menuArrowOffset:dt}=Gt;return{[`${zt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Gt.margin,width:Et,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Mt} ${at}, opacity ${Mt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Et*.6,height:Et*.15,backgroundColor:"currentcolor",borderRadius:jt,transition:[`background ${Mt} ${at}`,`transform ${Mt} ${at}`,`top ${Mt} ${at}`,`color ${Mt} ${at}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${dt})`},"&::after":{transform:`rotate(-45deg) translateY(${dt})`}}}}},hn=Gt=>{const{antCls:zt,componentCls:Mt,fontSize:at,motionDurationSlow:jt,motionDurationMid:Et,motionEaseInOut:dt,paddingXS:ot,padding:De,colorSplit:xe,lineWidth:me,zIndexPopup:Ne,borderRadiusLG:He,subMenuItemBorderRadius:Me,menuArrowSize:et,menuArrowOffset:Ut,lineType:rn,menuPanelMaskInset:ht,groupTitleLineHeight:Pt,groupTitleFontSize:ln}=Gt;return[{"":{[`${Mt}`]:Object.assign(Object.assign({},(0,ut.dF)()),{"&-hidden":{display:"none"}})},[`${Mt}-submenu-hidden`]:{display:"none"}},{[Mt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(Gt)),(0,ut.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:at,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${jt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Mt}-item`]:{flex:"none"}},[`${Mt}-item, ${Mt}-submenu, ${Mt}-submenu-title`]:{borderRadius:Gt.itemBorderRadius},[`${Mt}-item-group-title`]:{padding:`${ot}px ${De}px`,fontSize:ln,lineHeight:Pt,transition:`all ${jt}`},[`&-horizontal ${Mt}-submenu`]:{transition:[`border-color ${jt} ${dt}`,`background ${jt} ${dt}`].join(",")},[`${Mt}-submenu, ${Mt}-submenu-inline`]:{transition:[`border-color ${jt} ${dt}`,`background ${jt} ${dt}`,`padding ${Et} ${dt}`].join(",")},[`${Mt}-submenu ${Mt}-sub`]:{cursor:"initial",transition:[`background ${jt} ${dt}`,`padding ${jt} ${dt}`].join(",")},[`${Mt}-title-content`]:{transition:`color ${jt}`},[`${Mt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Mt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xe,borderStyle:rn,borderWidth:0,borderTopWidth:me,marginBlock:me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),cn(Gt)),{[`${Mt}-item-group`]:{[`${Mt}-item-group-list`]:{margin:0,padding:0,[`${Mt}-item, ${Mt}-submenu-title`]:{paddingInline:`${at*2}px ${De}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ne,borderRadius:He,boxShadow:"none",transformOrigin:"0 0",[`&${Mt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ht}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ht},"\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:Gt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Gt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Gt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Gt.paddingXS},[`> ${Mt}`]:Object.assign(Object.assign(Object.assign({borderRadius:He},cn(Gt)),Zn(Gt)),{[`${Mt}-item, ${Mt}-submenu > ${Mt}-submenu-title`]:{borderRadius:Me},[`${Mt}-submenu-title::after`]:{transition:`transform ${jt} ${dt}`}})}}),Zn(Gt)),{[`&-inline-collapsed ${Mt}-submenu-arrow,
|
|
|
&-inline ${Mt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut})`},"&::after":{transform:`rotate(45deg) translateX(-${Ut})`}},[`${Mt}-submenu-open${Mt}-submenu-inline > ${Mt}-submenu-title > ${Mt}-submenu-arrow`]:{transform:`translateY(-${et*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ut})`},"&::before":{transform:`rotate(45deg) translateX(${Ut})`}}})},{[`${zt}-layout-header`]:{[Mt]:{lineHeight:"inherit"}}}]};var ii=(Gt,zt)=>(0,_t.Z)("Menu",at=>{if(zt===!1)return[];const{colorBgElevated:jt,colorPrimary:Et,colorTextLightSolid:dt,controlHeightLG:ot,fontSize:De,darkItemColor:xe,darkDangerItemColor:me,darkItemBg:Ne,darkSubMenuItemBg:He,darkItemSelectedColor:Me,darkItemSelectedBg:et,darkDangerItemSelectedBg:Ut,darkItemHoverBg:rn,darkGroupTitleColor:ht,darkItemHoverColor:Pt,darkItemDisabledColor:ln,darkDangerItemHoverColor:Fn,darkDangerItemSelectedColor:oi,darkDangerItemActiveBg:ci}=at,di=De/7*5,mi=(0,Qt.TS)(at,{menuArrowSize:di,menuHorizontalHeight:ot*1.15,menuArrowOffset:`${di*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:jt}),Ui=(0,Qt.TS)(mi,{itemColor:xe,itemHoverColor:Pt,groupTitleColor:ht,itemSelectedColor:Me,itemBg:Ne,popupBg:Ne,subMenuItemBg:He,itemActiveBg:"transparent",itemSelectedBg:et,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:rn,itemDisabledColor:ln,dangerItemColor:me,dangerItemHoverColor:Fn,dangerItemSelectedColor:oi,dangerItemActiveBg:ci,dangerItemSelectedBg:Ut,menuSubMenuBg:He,horizontalItemSelectedColor:dt,horizontalItemSelectedBg:Et});return[hn(mi),sn(mi),$t(mi),Wn(mi,"light"),Wn(Ui,"dark"),yt(mi),(0,Ke.Z)(mi),(0,Ht.oN)(mi,"slide-up"),(0,Ht.oN)(mi,"slide-down"),(0,St._y)(mi,"zoom-big")]},at=>{const{colorPrimary:jt,colorError:Et,colorTextDisabled:dt,colorErrorBg:ot,colorText:De,colorTextDescription:xe,colorBgContainer:me,colorFillAlter:Ne,colorFillContent:He,lineWidth:Me,lineWidthBold:et,controlItemBgActive:Ut,colorBgTextHover:rn,controlHeightLG:ht,lineHeight:Pt,colorBgElevated:ln,marginXXS:Fn,padding:oi,fontSize:ci,controlHeightSM:di,fontSizeLG:mi,colorTextLightSolid:Ui,colorErrorHover:vr}=at,lr=new Ue.C(Ui).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:at.zIndexPopupBase+50,radiusItem:at.borderRadiusLG,itemBorderRadius:at.borderRadiusLG,radiusSubMenuItem:at.borderRadiusSM,subMenuItemBorderRadius:at.borderRadiusSM,colorItemText:De,itemColor:De,colorItemTextHover:De,itemHoverColor:De,colorItemTextHoverHorizontal:jt,horizontalItemHoverColor:jt,colorGroupTitle:xe,groupTitleColor:xe,colorItemTextSelected:jt,itemSelectedColor:jt,colorItemTextSelectedHorizontal:jt,horizontalItemSelectedColor:jt,colorItemBg:me,itemBg:me,colorItemBgHover:rn,itemHoverBg:rn,colorItemBgActive:He,itemActiveBg:Ut,colorSubItemBg:Ne,subMenuItemBg:Ne,colorItemBgSelected:Ut,itemSelectedBg:Ut,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:et,activeBarHeight:et,colorActiveBarBorderSize:Me,activeBarBorderWidth:Me,colorItemTextDisabled:dt,itemDisabledColor:dt,colorDangerItemText:Et,dangerItemColor:Et,colorDangerItemTextHover:Et,dangerItemHoverColor:Et,colorDangerItemTextSelected:Et,dangerItemSelectedColor:Et,colorDangerItemBgActive:ot,dangerItemActiveBg:ot,colorDangerItemBgSelected:ot,dangerItemSelectedBg:ot,itemMarginInline:at.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ht,groupTitleLineHeight:Pt,collapsedWidth:ht*2,popupBg:ln,itemMarginBlock:Fn,itemPaddingInline:oi,horizontalLineHeight:`${ht*1.15}px`,iconSize:ci,iconMarginInlineEnd:di-ci,collapsedIconSize:mi,groupTitleFontSize:ci,darkItemDisabledColor:new Ue.C(Ui).setAlpha(.25).toRgbString(),darkItemColor:lr,darkDangerItemColor:Et,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ui,darkItemSelectedBg:jt,darkDangerItemSelectedBg:Et,darkItemHoverBg:"transparent",darkGroupTitleColor:lr,darkItemHoverColor:Ui,darkDangerItemHoverColor:vr,darkDangerItemSelectedColor:Ui,darkDangerItemActiveBg:Et}},{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"]]})(Gt),mt=function(Gt,zt){var Mt={};for(var at in Gt)Object.prototype.hasOwnProperty.call(Gt,at)&&zt.indexOf(at)<0&&(Mt[at]=Gt[at]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,at=Object.getOwnPropertySymbols(Gt);jt<at.length;jt++)zt.indexOf(at[jt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,at[jt])&&(Mt[at[jt]]=Gt[at[jt]]);return Mt},ri=(0,je.forwardRef)((Gt,zt)=>{var Mt,at;const jt=je.useContext(we.Z),Et=jt||{},{getPrefixCls:dt,getPopupContainer:ot,direction:De,menu:xe}=je.useContext(pt.E_),me=dt(),{prefixCls:Ne,className:He,style:Me,theme:et="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:rn,inlineCollapsed:ht,siderCollapsed:Pt,items:ln,children:Fn,rootClassName:oi,mode:ci,selectable:di,onClick:mi,overflowedIndicatorPopupClassName:Ui}=Gt,vr=mt(Gt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),lr=(0,gt.Z)(vr,["collapsedWidth"]),gr=We(ln)||Fn;(Mt=Et.validator)===null||Mt===void 0||Mt.call(Et,{mode:ci});const wr=(0,Pe.useEvent)(function(){var _r;mi==null||mi.apply(void 0,arguments),(_r=Et.onClick)===null||_r===void 0||_r.call(Et)}),Zr=Et.mode||ci,Ki=di!=null?di:Et.selectable,Xr=je.useMemo(()=>Pt!==void 0?Pt:ht,[ht,Pt]),Vi={horizontal:{motionName:`${me}-slide-up`},inline:(0,ke.Z)(me),other:{motionName:`${me}-zoom-big`}},be=dt("menu",Ne||Et.prefixCls),[Pi,Gi]=ii(be,!jt),hr=Xe()(`${be}-${et}`,xe==null?void 0:xe.className,He);let $i;if(typeof Ut=="function")$i=Ut;else if(Ut===null||Ut===!1)$i=null;else if(Et.expandIcon===null||Et.expandIcon===!1)$i=null;else{const _r=Ut!=null?Ut:Et.expandIcon;$i=(0,xt.Tm)(_r,{className:Xe()(`${be}-submenu-expand-icon`,(0,xt.l$)(_r)?(at=_r.props)===null||at===void 0?void 0:at.className:"")})}const fo=je.useMemo(()=>({prefixCls:be,inlineCollapsed:Xr||!1,direction:De,firstLevel:!0,theme:et,mode:Zr,disableMenuItemTitleTooltip:rn}),[be,Xr,De,rn,et]);return Pi(je.createElement(we.Z.Provider,{value:null},je.createElement(te.Provider,{value:fo},je.createElement(Ee.ZP,Object.assign({getPopupContainer:ot,overflowedIndicator:je.createElement(ve.Z,null),overflowedIndicatorPopupClassName:Xe()(be,`${be}-${et}`,Ui),mode:Zr,selectable:Ki,onClick:wr},lr,{inlineCollapsed:Xr,style:Object.assign(Object.assign({},xe==null?void 0:xe.style),Me),className:hr,prefixCls:be,direction:De,defaultMotions:Vi,expandIcon:$i,ref:zt,rootClassName:Xe()(oi,Gi)}),gr))))});const pi=(0,je.forwardRef)((Gt,zt)=>{const Mt=(0,je.useRef)(null),at=je.useContext(it.D);return(0,je.useImperativeHandle)(zt,()=>({menu:Mt.current,focus:jt=>{var Et;(Et=Mt.current)===null||Et===void 0||Et.focus(jt)}})),je.createElement(ri,Object.assign({ref:Mt},Gt,at))});pi.Item=he,pi.SubMenu=ge,pi.Divider=Ct,pi.ItemGroup=Ee.BW;var Mn=pi},25700:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Et}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(ot,De){return je.createElement(Xe.Z,(0,Ee.Z)({},ot,{ref:De,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe,Ct=Se(93343),nt=Se(16537),gt=Se(53878),wt=Se(92310),xt=Se.n(wt),Te=Se(80962),te=Se(57259),ne=Se(79545),he=Se(68550),se=Se(17928),ge=Se(7711),ve=Se(36994),Pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ke=Pe,we=Se(91735),Oe=function(dt){(0,se.Z)(De,dt);var ot=(0,ge.Z)(De);function De(){var xe;(0,ne.Z)(this,De);for(var me=arguments.length,Ne=new Array(me),He=0;He<me;He++)Ne[He]=arguments[He];return xe=ot.call.apply(ot,[this].concat(Ne)),xe.state={goInputText:""},xe.getValidValue=function(){var Me=xe.state.goInputText;return!Me||Number.isNaN(Me)?void 0:Number(Me)},xe.buildOptionText=function(Me){return"".concat(Me," ").concat(xe.props.locale.items_per_page)},xe.changeSize=function(Me){xe.props.changeSize(Number(Me))},xe.handleChange=function(Me){xe.setState({goInputText:Me.target.value})},xe.handleBlur=function(Me){var et=xe.props,Ut=et.goButton,rn=et.quickGo,ht=et.rootPrefixCls,Pt=xe.state.goInputText;Ut||Pt===""||(xe.setState({goInputText:""}),!(Me.relatedTarget&&(Me.relatedTarget.className.indexOf("".concat(ht,"-item-link"))>=0||Me.relatedTarget.className.indexOf("".concat(ht,"-item"))>=0))&&rn(xe.getValidValue()))},xe.go=function(Me){var et=xe.state.goInputText;et!==""&&(Me.keyCode===ke.ENTER||Me.type==="click")&&(xe.setState({goInputText:""}),xe.props.quickGo(xe.getValidValue()))},xe}return(0,he.Z)(De,[{key:"getPageSizeOptions",value:function(){var me=this.props,Ne=me.pageSize,He=me.pageSizeOptions;return He.some(function(Me){return Me.toString()===Ne.toString()})?He:He.concat([Ne.toString()]).sort(function(Me,et){var Ut=Number.isNaN(Number(Me))?0:Number(Me),rn=Number.isNaN(Number(et))?0:Number(et);return Ut-rn})}},{key:"render",value:function(){var me=this,Ne=this.props,He=Ne.pageSize,Me=Ne.locale,et=Ne.rootPrefixCls,Ut=Ne.changeSize,rn=Ne.quickGo,ht=Ne.goButton,Pt=Ne.selectComponentClass,ln=Ne.buildOptionText,Fn=Ne.selectPrefixCls,oi=Ne.disabled,ci=this.state.goInputText,di="".concat(et,"-options"),mi=Pt,Ui=null,vr=null,lr=null;if(!Ut&&!rn)return null;var gr=this.getPageSizeOptions();if(Ut&&mi){var wr=gr.map(function(Zr,Ki){return je.createElement(mi.Option,{key:Ki,value:Zr.toString()},(ln||me.buildOptionText)(Zr))});Ui=je.createElement(mi,{disabled:oi,prefixCls:Fn,showSearch:!1,className:"".concat(di,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(He||gr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ki){return Ki.parentNode},"aria-label":Me.page_size,defaultOpen:!1},wr)}return rn&&(ht&&(lr=typeof ht=="boolean"?je.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:oi,className:"".concat(di,"-quick-jumper-button")},Me.jump_to_confirm):je.createElement("span",{onClick:this.go,onKeyUp:this.go},ht)),vr=je.createElement("div",{className:"".concat(di,"-quick-jumper")},Me.jump_to,je.createElement("input",{disabled:oi,type:"text",value:ci,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Me.page}),Me.page,lr)),je.createElement("li",{className:"".concat(di)},Ui,vr)}}]),De}(je.Component);Oe.defaultProps={pageSizeOptions:["10","20","50","100"]};var ze=Oe,We=function(ot){var De,xe=ot.rootPrefixCls,me=ot.page,Ne=ot.active,He=ot.className,Me=ot.showTitle,et=ot.onClick,Ut=ot.onKeyPress,rn=ot.itemRender,ht="".concat(xe,"-item"),Pt=xt()(ht,"".concat(ht,"-").concat(me),(De={},(0,Te.Z)(De,"".concat(ht,"-active"),Ne),(0,Te.Z)(De,"".concat(ht,"-disabled"),!me),(0,Te.Z)(De,ot.className,He),De)),ln=function(){et(me)},Fn=function(di){Ut(di,et,me)},oi=rn(me,"page",je.createElement("a",{rel:"nofollow"},me));return oi?je.createElement("li",{title:Me?me.toString():null,className:Pt,onClick:ln,onKeyPress:Fn,tabIndex:0},oi):null},Ue=We;function ut(){}function Ke(dt){var ot=Number(dt);return typeof ot=="number"&&!Number.isNaN(ot)&&isFinite(ot)&&Math.floor(ot)===ot}var Ht=function(ot,De,xe){return xe};function St(dt,ot,De){var xe=typeof dt=="undefined"?ot.pageSize:dt;return Math.floor((De.total-1)/xe)+1}var _t=function(dt){(0,se.Z)(De,dt);var ot=(0,ge.Z)(De);function De(xe){var me;(0,ne.Z)(this,De),me=ot.call(this,xe),me.paginationNode=je.createRef(),me.getJumpPrevPage=function(){return Math.max(1,me.state.current-(me.props.showLessItems?3:5))},me.getJumpNextPage=function(){return Math.min(St(void 0,me.state,me.props),me.state.current+(me.props.showLessItems?3:5))},me.getItemIcon=function(Ut,rn){var ht=me.props.prefixCls,Pt=Ut||je.createElement("button",{type:"button","aria-label":rn,className:"".concat(ht,"-item-link")});return typeof Ut=="function"&&(Pt=je.createElement(Ut,(0,te.Z)({},me.props))),Pt},me.isValid=function(Ut){var rn=me.props.total;return Ke(Ut)&&Ut!==me.state.current&&Ke(rn)&&rn>0},me.shouldDisplayQuickJumper=function(){var Ut=me.props,rn=Ut.showQuickJumper,ht=Ut.total,Pt=me.state.pageSize;return ht<=Pt?!1:rn},me.handleKeyDown=function(Ut){(Ut.keyCode===ke.ARROW_UP||Ut.keyCode===ke.ARROW_DOWN)&&Ut.preventDefault()},me.handleKeyUp=function(Ut){var rn=me.getValidValue(Ut),ht=me.state.currentInputValue;rn!==ht&&me.setState({currentInputValue:rn}),Ut.keyCode===ke.ENTER?me.handleChange(rn):Ut.keyCode===ke.ARROW_UP?me.handleChange(rn-1):Ut.keyCode===ke.ARROW_DOWN&&me.handleChange(rn+1)},me.handleBlur=function(Ut){var rn=me.getValidValue(Ut);me.handleChange(rn)},me.changePageSize=function(Ut){var rn=me.state.current,ht=St(Ut,me.state,me.props);rn=rn>ht?ht:rn,ht===0&&(rn=me.state.current),typeof Ut=="number"&&("pageSize"in me.props||me.setState({pageSize:Ut}),"current"in me.props||me.setState({current:rn,currentInputValue:rn})),me.props.onShowSizeChange(rn,Ut),"onChange"in me.props&&me.props.onChange&&me.props.onChange(rn,Ut)},me.handleChange=function(Ut){var rn=me.props,ht=rn.disabled,Pt=rn.onChange,ln=me.state,Fn=ln.pageSize,oi=ln.current,ci=ln.currentInputValue;if(me.isValid(Ut)&&!ht){var di=St(void 0,me.state,me.props),mi=Ut;return Ut>di?mi=di:Ut<1&&(mi=1),"current"in me.props||me.setState({current:mi}),mi!==ci&&me.setState({currentInputValue:mi}),Pt(mi,Fn),mi}return oi},me.prev=function(){me.hasPrev()&&me.handleChange(me.state.current-1)},me.next=function(){me.hasNext()&&me.handleChange(me.state.current+1)},me.jumpPrev=function(){me.handleChange(me.getJumpPrevPage())},me.jumpNext=function(){me.handleChange(me.getJumpNextPage())},me.hasPrev=function(){return me.state.current>1},me.hasNext=function(){return me.state.current<St(void 0,me.state,me.props)},me.runIfEnter=function(Ut,rn){if(Ut.key==="Enter"||Ut.charCode===13){for(var ht=arguments.length,Pt=new Array(ht>2?ht-2:0),ln=2;ln<ht;ln++)Pt[ln-2]=arguments[ln];rn.apply(void 0,Pt)}},me.runIfEnterPrev=function(Ut){me.runIfEnter(Ut,me.prev)},me.runIfEnterNext=function(Ut){me.runIfEnter(Ut,me.next)},me.runIfEnterJumpPrev=function(Ut){me.runIfEnter(Ut,me.jumpPrev)},me.runIfEnterJumpNext=function(Ut){me.runIfEnter(Ut,me.jumpNext)},me.handleGoTO=function(Ut){(Ut.keyCode===ke.ENTER||Ut.type==="click")&&me.handleChange(me.state.currentInputValue)},me.renderPrev=function(Ut){var rn=me.props,ht=rn.prevIcon,Pt=rn.itemRender,ln=Pt(Ut,"prev",me.getItemIcon(ht,"prev page")),Fn=!me.hasPrev();return(0,je.isValidElement)(ln)?(0,je.cloneElement)(ln,{disabled:Fn}):ln},me.renderNext=function(Ut){var rn=me.props,ht=rn.nextIcon,Pt=rn.itemRender,ln=Pt(Ut,"next",me.getItemIcon(ht,"next page")),Fn=!me.hasNext();return(0,je.isValidElement)(ln)?(0,je.cloneElement)(ln,{disabled:Fn}):ln};var Ne=xe.onChange!==ut,He="current"in xe;He&&!Ne&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Me=xe.defaultCurrent;"current"in xe&&(Me=xe.current);var et=xe.defaultPageSize;return"pageSize"in xe&&(et=xe.pageSize),Me=Math.min(Me,St(et,void 0,xe)),me.state={current:Me,currentInputValue:Me,pageSize:et},me}return(0,he.Z)(De,[{key:"componentDidUpdate",value:function(me,Ne){var He=this.props.prefixCls;if(Ne.current!==this.state.current&&this.paginationNode.current){var Me=this.paginationNode.current.querySelector(".".concat(He,"-item-").concat(Ne.current));if(Me&&document.activeElement===Me){var et;Me==null||(et=Me.blur)===null||et===void 0||et.call(Me)}}}},{key:"getValidValue",value:function(me){var Ne=me.target.value,He=St(void 0,this.state,this.props),Me=this.state.currentInputValue,et;return Ne===""?et=Ne:Number.isNaN(Number(Ne))?et=Me:Ne>=He?et=He:et=Number(Ne),et}},{key:"getShowSizeChanger",value:function(){var me=this.props,Ne=me.showSizeChanger,He=me.total,Me=me.totalBoundaryShowSizeChanger;return typeof Ne!="undefined"?Ne:He>Me}},{key:"render",value:function(){var me=this.props,Ne=me.prefixCls,He=me.className,Me=me.style,et=me.disabled,Ut=me.hideOnSinglePage,rn=me.total,ht=me.locale,Pt=me.showQuickJumper,ln=me.showLessItems,Fn=me.showTitle,oi=me.showTotal,ci=me.simple,di=me.itemRender,mi=me.showPrevNextJumpers,Ui=me.jumpPrevIcon,vr=me.jumpNextIcon,lr=me.selectComponentClass,gr=me.selectPrefixCls,wr=me.pageSizeOptions,Zr=this.state,Ki=Zr.current,Xr=Zr.pageSize,Vi=Zr.currentInputValue;if(Ut===!0&&rn<=Xr)return null;var be=St(void 0,this.state,this.props),Pi=[],Gi=null,hr=null,$i=null,fo=null,_r=null,Co=Pt&&Pt.goButton,vn=ln?1:2,an=Ki-1>0?Ki-1:0,Jt=Ki+1<be?Ki+1:be,ft=(0,ve.Z)(this.props,{aria:!0,data:!0}),pn=oi&&je.createElement("li",{className:"".concat(Ne,"-total-text")},oi(rn,[rn===0?0:(Ki-1)*Xr+1,Ki*Xr>rn?rn:Ki*Xr]));if(ci){Co&&(typeof Co=="boolean"?_r=je.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ht.jump_to_confirm):_r=je.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Co),_r=je.createElement("li",{title:Fn?"".concat(ht.jump_to).concat(Ki,"/").concat(be):null,className:"".concat(Ne,"-simple-pager")},_r));var Rn=this.renderPrev(an);return je.createElement("ul",(0,Ee.Z)({className:xt()(Ne,"".concat(Ne,"-simple"),(0,Te.Z)({},"".concat(Ne,"-disabled"),et),He),style:Me,ref:this.paginationNode},ft),pn,Rn?je.createElement("li",{title:Fn?ht.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:xt()("".concat(Ne,"-prev"),(0,Te.Z)({},"".concat(Ne,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Rn):null,je.createElement("li",{title:Fn?"".concat(Ki,"/").concat(be):null,className:"".concat(Ne,"-simple-pager")},je.createElement("input",{type:"text",value:Vi,disabled:et,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),je.createElement("span",{className:"".concat(Ne,"-slash")},"/"),be),je.createElement("li",{title:Fn?ht.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:xt()("".concat(Ne,"-next"),(0,Te.Z)({},"".concat(Ne,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Jt)),_r)}if(be<=3+vn*2){var It={locale:ht,rootPrefixCls:Ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Fn,itemRender:di};be||Pi.push(je.createElement(Ue,(0,Ee.Z)({},It,{key:"noPager",page:1,className:"".concat(Ne,"-item-disabled")})));for(var lt=1;lt<=be;lt+=1){var yn=Ki===lt;Pi.push(je.createElement(Ue,(0,Ee.Z)({},It,{key:lt,page:lt,active:yn})))}}else{var Yn=ln?ht.prev_3:ht.prev_5,Di=ln?ht.next_3:ht.next_5,Cn=di(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ui,"prev page")),bt=di(this.getJumpNextPage(),"jump-next",this.getItemIcon(vr,"next page"));mi&&(Gi=Cn?je.createElement("li",{title:Fn?Yn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:xt()("".concat(Ne,"-jump-prev"),(0,Te.Z)({},"".concat(Ne,"-jump-prev-custom-icon"),!!Ui))},Cn):null,hr=bt?je.createElement("li",{title:Fn?Di:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:xt()("".concat(Ne,"-jump-next"),(0,Te.Z)({},"".concat(Ne,"-jump-next-custom-icon"),!!vr))},bt):null),fo=je.createElement(Ue,{locale:ht,last:!0,rootPrefixCls:Ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:be,page:be,active:!1,showTitle:Fn,itemRender:di}),$i=je.createElement(Ue,{locale:ht,rootPrefixCls:Ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Fn,itemRender:di});var In=Math.max(1,Ki-vn),gi=Math.min(Ki+vn,be);Ki-1<=vn&&(gi=1+vn*2),be-Ki<=vn&&(In=be-vn*2);for(var Oi=In;Oi<=gi;Oi+=1){var Kt=Ki===Oi;Pi.push(je.createElement(Ue,{locale:ht,rootPrefixCls:Ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Oi,page:Oi,active:Kt,showTitle:Fn,itemRender:di}))}Ki-1>=vn*2&&Ki!==3&&(Pi[0]=(0,je.cloneElement)(Pi[0],{className:"".concat(Ne,"-item-after-jump-prev")}),Pi.unshift(Gi)),be-Ki>=vn*2&&Ki!==be-2&&(Pi[Pi.length-1]=(0,je.cloneElement)(Pi[Pi.length-1],{className:"".concat(Ne,"-item-before-jump-next")}),Pi.push(hr)),In!==1&&Pi.unshift($i),gi!==be&&Pi.push(fo)}var Sn=!this.hasPrev()||!be,Wt=!this.hasNext()||!be,on=this.renderPrev(an),gn=this.renderNext(Jt);return je.createElement("ul",(0,Ee.Z)({className:xt()(Ne,He,(0,Te.Z)({},"".concat(Ne,"-disabled"),et)),style:Me,ref:this.paginationNode},ft),pn,on?je.createElement("li",{title:Fn?ht.prev_page:null,onClick:this.prev,tabIndex:Sn?null:0,onKeyPress:this.runIfEnterPrev,className:xt()("".concat(Ne,"-prev"),(0,Te.Z)({},"".concat(Ne,"-disabled"),Sn)),"aria-disabled":Sn},on):null,Pi,gn?je.createElement("li",{title:Fn?ht.next_page:null,onClick:this.next,tabIndex:Wt?null:0,onKeyPress:this.runIfEnterNext,className:xt()("".concat(Ne,"-next"),(0,Te.Z)({},"".concat(Ne,"-disabled"),Wt)),"aria-disabled":Wt},gn):null,je.createElement(ze,{disabled:et,locale:ht,rootPrefixCls:Ne,selectComponentClass:lr,selectPrefixCls:gr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ki,pageSize:Xr,pageSizeOptions:wr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Co}))}}],[{key:"getDerivedStateFromProps",value:function(me,Ne){var He={};if("current"in me&&(He.current=me.current,me.current!==Ne.current&&(He.currentInputValue=He.current)),"pageSize"in me&&me.pageSize!==Ne.pageSize){var Me=Ne.current,et=St(me.pageSize,Ne,me);Me=Me>et?et:Me,"current"in me||(He.current=Me,He.currentInputValue=Me),He.pageSize=me.pageSize}return He}}]),De}(je.Component);_t.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ut,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ut,locale:we.Z,style:{},itemRender:Ht,totalBoundaryShowSizeChanger:50};var Qt=_t,qt=Se(22075),sn=Se(36355),Bn=Se(19716),yt=Se(8628),Ge=Se(9763),tn=Se(57809);const Wn=dt=>je.createElement(tn.default,Object.assign({},dt,{showSearch:!0,size:"small"})),Qn=dt=>je.createElement(tn.default,Object.assign({},dt,{showSearch:!0,size:"middle"}));Wn.Option=tn.default.Option,Qn.Option=tn.default.Option;var Dt=Se(9937),$t=Se(17313),cn=Se(83116),Zn=Se(37613);const hn=dt=>{const{componentCls:ot}=dt;return{[`${ot}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ot}-item-link`]:{color:dt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ot}-item-link`]:{color:dt.colorTextDisabled,cursor:"not-allowed"}}},[`&${ot}-disabled`]:{cursor:"not-allowed",[`${ot}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:dt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:dt.colorBorder,backgroundColor:dt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:dt.itemActiveBgDisabled},a:{color:dt.itemActiveColorDisabled}}},[`${ot}-item-link`]:{color:dt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ot}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ot}-simple-pager`]:{color:dt.colorTextDisabled},[`${ot}-jump-prev, ${ot}-jump-next`]:{[`${ot}-item-link-icon`]:{opacity:0},[`${ot}-item-ellipsis`]:{opacity:1}}},[`&${ot}-simple`]:{[`${ot}-prev, ${ot}-next`]:{[`&${ot}-disabled ${ot}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ii=dt=>{const{componentCls:ot}=dt;return{[`&${ot}-mini ${ot}-total-text, &${ot}-mini ${ot}-simple-pager`]:{height:dt.itemSizeSM,lineHeight:`${dt.itemSizeSM}px`},[`&${ot}-mini ${ot}-item`]:{minWidth:dt.itemSizeSM,height:dt.itemSizeSM,margin:0,lineHeight:`${dt.itemSizeSM-2}px`},[`&${ot}-mini:not(${ot}-disabled) ${ot}-item:not(${ot}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:dt.colorBgTextHover},"&:active":{backgroundColor:dt.colorBgTextActive}},[`&${ot}-mini ${ot}-prev, &${ot}-mini ${ot}-next`]:{minWidth:dt.itemSizeSM,height:dt.itemSizeSM,margin:0,lineHeight:`${dt.itemSizeSM}px`},[`&${ot}-mini:not(${ot}-disabled)`]:{[`${ot}-prev, ${ot}-next`]:{[`&:hover ${ot}-item-link`]:{backgroundColor:dt.colorBgTextHover},[`&:active ${ot}-item-link`]:{backgroundColor:dt.colorBgTextActive},[`&${ot}-disabled:hover ${ot}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${ot}-mini ${ot}-prev ${ot}-item-link,
|
|
|
&${ot}-mini ${ot}-next ${ot}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:dt.itemSizeSM,lineHeight:`${dt.itemSizeSM}px`}},[`&${ot}-mini ${ot}-jump-prev, &${ot}-mini ${ot}-jump-next`]:{height:dt.itemSizeSM,marginInlineEnd:0,lineHeight:`${dt.itemSizeSM}px`},[`&${ot}-mini ${ot}-options`]:{marginInlineStart:dt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:dt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:dt.itemSizeSM,lineHeight:`${dt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Dt.x0)(dt)),{width:dt.paginationMiniQuickJumperInputWidth,height:dt.controlHeightSM})}}}},mt=dt=>{const{componentCls:ot}=dt;return{[`
|
|
|
&${ot}-simple ${ot}-prev,
|
|
|
&${ot}-simple ${ot}-next
|
|
|
`]:{height:dt.itemSizeSM,lineHeight:`${dt.itemSizeSM}px`,verticalAlign:"top",[`${ot}-item-link`]:{height:dt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:dt.colorBgTextHover},"&:active":{backgroundColor:dt.colorBgTextActive},"&::after":{height:dt.itemSizeSM,lineHeight:`${dt.itemSizeSM}px`}}},[`&${ot}-simple ${ot}-simple-pager`]:{display:"inline-block",height:dt.itemSizeSM,marginInlineEnd:dt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:dt.marginXS,padding:`0 ${dt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:dt.itemInputBg,border:`${dt.lineWidth}px ${dt.lineType} ${dt.colorBorder}`,borderRadius:dt.borderRadius,outline:"none",transition:`border-color ${dt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:dt.colorPrimary},"&:focus":{borderColor:dt.colorPrimaryHover,boxShadow:`${dt.inputOutlineOffset}px 0 ${dt.controlOutlineWidth}px ${dt.controlOutline}`},"&[disabled]":{color:dt.colorTextDisabled,backgroundColor:dt.colorBgContainerDisabled,borderColor:dt.colorBorder,cursor:"not-allowed"}}}}},Xn=dt=>{const{componentCls:ot}=dt;return{[`${ot}-jump-prev, ${ot}-jump-next`]:{outline:0,[`${ot}-item-container`]:{position:"relative",[`${ot}-item-link-icon`]:{color:dt.colorPrimary,fontSize:dt.fontSizeSM,opacity:0,transition:`all ${dt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ot}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:dt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:dt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:dt.paginationEllipsisTextIndent,opacity:1,transition:`all ${dt.motionDurationMid}`}},"&:hover":{[`${ot}-item-link-icon`]:{opacity:1},[`${ot}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${ot}-prev,
|
|
|
${ot}-jump-prev,
|
|
|
${ot}-jump-next
|
|
|
`]:{marginInlineEnd:dt.marginXS},[`
|
|
|
${ot}-prev,
|
|
|
${ot}-next,
|
|
|
${ot}-jump-prev,
|
|
|
${ot}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:dt.itemSize,height:dt.itemSize,color:dt.colorText,fontFamily:dt.fontFamily,lineHeight:`${dt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:dt.borderRadius,cursor:"pointer",transition:`all ${dt.motionDurationMid}`},[`${ot}-prev, ${ot}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:dt.colorText,cursor:"pointer",userSelect:"none"},[`${ot}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:dt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${dt.lineWidth}px ${dt.lineType} transparent`,borderRadius:dt.borderRadius,outline:"none",transition:`all ${dt.motionDurationMid}`},[`&:hover ${ot}-item-link`]:{backgroundColor:dt.colorBgTextHover},[`&:active ${ot}-item-link`]:{backgroundColor:dt.colorBgTextActive},[`&${ot}-disabled:hover`]:{[`${ot}-item-link`]:{backgroundColor:"transparent"}}},[`${ot}-slash`]:{marginInlineEnd:dt.paginationSlashMarginInlineEnd,marginInlineStart:dt.paginationSlashMarginInlineStart},[`${ot}-options`]:{display:"inline-block",marginInlineStart:dt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:dt.controlHeight,marginInlineStart:dt.marginXS,lineHeight:`${dt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Dt.ik)(dt)),{width:dt.controlHeightLG*1.25,height:dt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:dt.marginXS,marginInlineEnd:dt.marginXS})}}}},ri=dt=>{const{componentCls:ot}=dt;return{[`${ot}-item`]:{display:"inline-block",minWidth:dt.itemSize,height:dt.itemSize,marginInlineEnd:dt.marginXS,fontFamily:dt.fontFamily,lineHeight:`${dt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${dt.lineWidth}px ${dt.lineType} transparent`,borderRadius:dt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${dt.paginationItemPaddingInline}px`,color:dt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ot}-item-active)`]:{"&:hover":{transition:`all ${dt.motionDurationMid}`,backgroundColor:dt.colorBgTextHover},"&:active":{backgroundColor:dt.colorBgTextActive}},"&-active":{fontWeight:dt.fontWeightStrong,backgroundColor:dt.itemActiveBg,borderColor:dt.colorPrimary,a:{color:dt.colorPrimary},"&:hover":{borderColor:dt.colorPrimaryHover},"&:hover a":{color:dt.colorPrimaryHover}}}}},pi=dt=>{const{componentCls:ot}=dt;return{[ot]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.Wf)(dt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ot}-total-text`]:{display:"inline-block",height:dt.itemSize,marginInlineEnd:dt.marginXS,lineHeight:`${dt.itemSize-2}px`,verticalAlign:"middle"}}),ri(dt)),Xn(dt)),mt(dt)),ii(dt)),hn(dt)),{[`@media only screen and (max-width: ${dt.screenLG}px)`]:{[`${ot}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${dt.screenSM}px)`]:{[`${ot}-options`]:{display:"none"}}}),[`&${dt.componentCls}-rtl`]:{direction:"rtl"}}},Mn=dt=>{const{componentCls:ot}=dt;return{[`${ot}${ot}-disabled:not(${ot}-mini)`]:{"&, &:hover":{[`${ot}-item-link`]:{borderColor:dt.colorBorder}},"&:focus-visible":{[`${ot}-item-link`]:{borderColor:dt.colorBorder}},[`${ot}-item, ${ot}-item-link`]:{backgroundColor:dt.colorBgContainerDisabled,borderColor:dt.colorBorder,[`&:hover:not(${ot}-item-active)`]:{backgroundColor:dt.colorBgContainerDisabled,borderColor:dt.colorBorder,a:{color:dt.colorTextDisabled}},[`&${ot}-item-active`]:{backgroundColor:dt.itemActiveBgDisabled}},[`${ot}-prev, ${ot}-next`]:{"&:hover button":{backgroundColor:dt.colorBgContainerDisabled,borderColor:dt.colorBorder,color:dt.colorTextDisabled},[`${ot}-item-link`]:{backgroundColor:dt.colorBgContainerDisabled,borderColor:dt.colorBorder}}},[`${ot}:not(${ot}-mini)`]:{[`${ot}-prev, ${ot}-next`]:{"&:hover button":{borderColor:dt.colorPrimaryHover,backgroundColor:dt.itemBg},[`${ot}-item-link`]:{backgroundColor:dt.itemLinkBg,borderColor:dt.colorBorder},[`&:hover ${ot}-item-link`]:{borderColor:dt.colorPrimary,backgroundColor:dt.itemBg,color:dt.colorPrimary},[`&${ot}-disabled`]:{[`${ot}-item-link`]:{borderColor:dt.colorBorder,color:dt.colorTextDisabled}}},[`${ot}-item`]:{backgroundColor:dt.itemBg,border:`${dt.lineWidth}px ${dt.lineType} ${dt.colorBorder}`,[`&:hover:not(${ot}-item-active)`]:{borderColor:dt.colorPrimary,backgroundColor:dt.itemBg,a:{color:dt.colorPrimary}},"&-active":{borderColor:dt.colorPrimary}}}}},Gt=dt=>{const{componentCls:ot}=dt;return{[`${ot}:not(${ot}-disabled)`]:{[`${ot}-item`]:Object.assign({},(0,$t.Qy)(dt)),[`${ot}-jump-prev, ${ot}-jump-next`]:{"&:focus-visible":Object.assign({[`${ot}-item-link-icon`]:{opacity:1},[`${ot}-item-ellipsis`]:{opacity:0}},(0,$t.oN)(dt))},[`${ot}-prev, ${ot}-next`]:{[`&:focus-visible ${ot}-item-link`]:Object.assign({},(0,$t.oN)(dt))}}}};var zt=(0,cn.Z)("Pagination",dt=>{const ot=(0,Zn.TS)(dt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:dt.marginXXS/2,paginationMiniQuickJumperInputWidth:dt.controlHeightLG*1.1,paginationItemPaddingInline:dt.marginXXS*1.5,paginationEllipsisLetterSpacing:dt.marginXXS/2,paginationSlashMarginInlineStart:dt.marginXXS,paginationSlashMarginInlineEnd:dt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Dt.e5)(dt),(0,Dt.TM)(dt));return[pi(ot),Gt(ot),dt.wireframe&&Mn(ot)]},dt=>({itemBg:dt.colorBgContainer,itemSize:dt.controlHeight,itemSizeSM:dt.controlHeightSM,itemActiveBg:dt.colorBgContainer,itemLinkBg:dt.colorBgContainer,itemActiveColorDisabled:dt.colorTextDisabled,itemActiveBgDisabled:dt.controlItemBgActiveDisabled,itemInputBg:dt.colorBgContainer,miniOptionsSizeChangerTop:0})),Mt=function(dt,ot){var De={};for(var xe in dt)Object.prototype.hasOwnProperty.call(dt,xe)&&ot.indexOf(xe)<0&&(De[xe]=dt[xe]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,xe=Object.getOwnPropertySymbols(dt);me<xe.length;me++)ot.indexOf(xe[me])<0&&Object.prototype.propertyIsEnumerable.call(dt,xe[me])&&(De[xe[me]]=dt[xe[me]]);return De},jt=dt=>{const{prefixCls:ot,selectPrefixCls:De,className:xe,rootClassName:me,style:Ne,size:He,locale:Me,selectComponentClass:et,responsive:Ut,showSizeChanger:rn}=dt,ht=Mt(dt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Pt}=(0,yt.Z)(Ut),{getPrefixCls:ln,direction:Fn,pagination:oi={}}=je.useContext(sn.E_),ci=ln("pagination",ot),[di,mi]=zt(ci),Ui=rn!=null?rn:oi.showSizeChanger,vr=je.useMemo(()=>{const be=je.createElement("span",{className:`${ci}-item-ellipsis`},"\u2022\u2022\u2022"),Pi=je.createElement("button",{className:`${ci}-item-link`,type:"button",tabIndex:-1},Fn==="rtl"?je.createElement(gt.Z,null):je.createElement(nt.Z,null)),Gi=je.createElement("button",{className:`${ci}-item-link`,type:"button",tabIndex:-1},Fn==="rtl"?je.createElement(nt.Z,null):je.createElement(gt.Z,null)),hr=je.createElement("a",{className:`${ci}-item-link`},je.createElement("div",{className:`${ci}-item-container`},Fn==="rtl"?je.createElement(Ct.Z,{className:`${ci}-item-link-icon`}):je.createElement(Ft,{className:`${ci}-item-link-icon`}),be)),$i=je.createElement("a",{className:`${ci}-item-link`},je.createElement("div",{className:`${ci}-item-container`},Fn==="rtl"?je.createElement(Ft,{className:`${ci}-item-link-icon`}):je.createElement(Ct.Z,{className:`${ci}-item-link-icon`}),be));return{prevIcon:Pi,nextIcon:Gi,jumpPrevIcon:hr,jumpNextIcon:$i}},[Fn,ci]),[lr]=(0,Ge.Z)("Pagination",qt.Z),gr=Object.assign(Object.assign({},lr),Me),wr=(0,Bn.Z)(He),Zr=wr==="small"||!!(Pt&&!wr&&Ut),Ki=ln("select",De),Xr=xt()({[`${ci}-mini`]:Zr,[`${ci}-rtl`]:Fn==="rtl"},oi==null?void 0:oi.className,xe,me,mi),Vi=Object.assign(Object.assign({},oi==null?void 0:oi.style),Ne);return di(je.createElement(Qt,Object.assign({},vr,ht,{style:Vi,prefixCls:ci,selectPrefixCls:Ki,className:Xr,selectComponentClass:et||(Zr?Wn:Qn),locale:gr,showSizeChanger:Ui})))},Et=jt},93948:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return rn}});var Ee=Se(59301),je=Se(79999),it=Se(10402),kt=Se(33130),Xe=Se(72119),pt=Se(92310),Fe=Se.n(pt),Ft=Se(64002),Ct=Se(36355),nt=Se(5891),gt=Se(57259),wt=Se(19149),xt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Te=function(){var Pt=(0,Ee.useRef)([]),ln=(0,Ee.useRef)(null);return(0,Ee.useEffect)(function(){var Fn=Date.now(),oi=!1;Pt.current.forEach(function(ci){if(ci){oi=!0;var di=ci.style;di.transitionDuration=".3s, .3s, .3s, .06s",ln.current&&Fn-ln.current<100&&(di.transitionDuration="0s, 0s")}}),oi&&(ln.current=Date.now())}),Pt.current},te=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ne=function(Pt){var ln=(0,gt.Z)((0,gt.Z)({},xt),Pt),Fn=ln.className,oi=ln.percent,ci=ln.prefixCls,di=ln.strokeColor,mi=ln.strokeLinecap,Ui=ln.strokeWidth,vr=ln.style,lr=ln.trailColor,gr=ln.trailWidth,wr=ln.transition,Zr=(0,wt.Z)(ln,te);delete Zr.gapPosition;var Ki=Array.isArray(oi)?oi:[oi],Xr=Array.isArray(di)?di:[di],Vi=Te(),be=Ui/2,Pi=100-Ui/2,Gi="M ".concat(mi==="round"?be:0,",").concat(be,`
|
|
|
L `).concat(mi==="round"?Pi:100,",").concat(be),hr="0 0 100 ".concat(Ui),$i=0;return Ee.createElement("svg",(0,nt.Z)({className:Fe()("".concat(ci,"-line"),Fn),viewBox:hr,preserveAspectRatio:"none",style:vr},Zr),Ee.createElement("path",{className:"".concat(ci,"-line-trail"),d:Gi,strokeLinecap:mi,stroke:lr,strokeWidth:gr||Ui,fillOpacity:"0"}),Ki.map(function(fo,_r){var Co=1;switch(mi){case"round":Co=1-Ui/100;break;case"square":Co=1-Ui/2/100;break;default:Co=1;break}var vn={strokeDasharray:"".concat(fo*Co,"px, 100px"),strokeDashoffset:"-".concat($i,"px"),transition:wr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},an=Xr[_r]||Xr[Xr.length-1];return $i+=fo,Ee.createElement("path",{key:_r,className:"".concat(ci,"-line-path"),d:Gi,strokeLinecap:mi,stroke:an,strokeWidth:Ui,fillOpacity:"0",ref:function(ft){Vi[_r]=ft},style:vn})}))},he=ne,se=Se(80665),ge=Se(29043),ve=Se(87746),Pe=0,ke=(0,ve.Z)();function we(){var ht;return ke?(ht=Pe,Pe+=1):ht="TEST_OR_SSR",ht}var Oe=function(ht){var Pt=Ee.useState(),ln=(0,ge.Z)(Pt,2),Fn=ln[0],oi=ln[1];return Ee.useEffect(function(){oi("rc_progress_".concat(we()))},[]),ht||Fn},ze=function(Pt){var ln=Pt.bg,Fn=Pt.children;return Ee.createElement("div",{style:{width:"100%",height:"100%",background:ln}},Fn)};function We(ht,Pt){return Object.keys(ht).map(function(ln){var Fn=parseFloat(ln),oi="".concat(Math.floor(Fn*Pt),"%");return"".concat(ht[ln]," ").concat(oi)})}var Ue=Ee.forwardRef(function(ht,Pt){var ln=ht.prefixCls,Fn=ht.color,oi=ht.gradientId,ci=ht.radius,di=ht.style,mi=ht.ptg,Ui=ht.strokeLinecap,vr=ht.strokeWidth,lr=ht.size,gr=ht.gapDegree,wr=Fn&&(0,se.Z)(Fn)==="object",Zr=wr?"#FFF":void 0,Ki=lr/2,Xr=Ee.createElement("circle",{className:"".concat(ln,"-circle-path"),r:ci,cx:Ki,cy:Ki,stroke:Zr,strokeLinecap:Ui,strokeWidth:vr,opacity:mi===0?0:1,style:di,ref:Pt});if(!wr)return Xr;var Vi="".concat(oi,"-conic"),be=gr?"".concat(180+gr/2,"deg"):"0deg",Pi=We(Fn,(360-gr)/360),Gi=We(Fn,1),hr="conic-gradient(from ".concat(be,", ").concat(Pi.join(", "),")"),$i="linear-gradient(to ".concat(gr?"bottom":"top",", ").concat(Gi.join(", "),")");return Ee.createElement(Ee.Fragment,null,Ee.createElement("mask",{id:Vi},Xr),Ee.createElement("foreignObject",{x:0,y:0,width:lr,height:lr,mask:"url(#".concat(Vi,")")},Ee.createElement(ze,{bg:$i},Ee.createElement(ze,{bg:hr}))))}),ut=Ue,Ke=100,Ht=function(Pt,ln,Fn,oi,ci,di,mi,Ui,vr,lr){var gr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,wr=Fn/100*360*((360-di)/360),Zr=di===0?0:{bottom:0,top:180,left:90,right:-90}[mi],Ki=(100-oi)/100*ln;vr==="round"&&oi!==100&&(Ki+=lr/2,Ki>=ln&&(Ki=ln-.01));var Xr=Ke/2;return{stroke:typeof Ui=="string"?Ui:void 0,strokeDasharray:"".concat(ln,"px ").concat(Pt),strokeDashoffset:Ki+gr,transform:"rotate(".concat(ci+wr+Zr,"deg)"),transformOrigin:"".concat(Xr,"px ").concat(Xr,"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}},St=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function _t(ht){var Pt=ht!=null?ht:[];return Array.isArray(Pt)?Pt:[Pt]}var Qt=function(Pt){var ln=(0,gt.Z)((0,gt.Z)({},xt),Pt),Fn=ln.id,oi=ln.prefixCls,ci=ln.steps,di=ln.strokeWidth,mi=ln.trailWidth,Ui=ln.gapDegree,vr=Ui===void 0?0:Ui,lr=ln.gapPosition,gr=ln.trailColor,wr=ln.strokeLinecap,Zr=ln.style,Ki=ln.className,Xr=ln.strokeColor,Vi=ln.percent,be=(0,wt.Z)(ln,St),Pi=Ke/2,Gi=Oe(Fn),hr="".concat(Gi,"-gradient"),$i=Pi-di/2,fo=Math.PI*2*$i,_r=vr>0?90+vr/2:-90,Co=fo*((360-vr)/360),vn=(0,se.Z)(ci)==="object"?ci:{count:ci,space:2},an=vn.count,Jt=vn.space,ft=_t(Vi),pn=_t(Xr),Rn=pn.find(function(bt){return bt&&(0,se.Z)(bt)==="object"}),It=Rn&&(0,se.Z)(Rn)==="object",lt=It?"butt":wr,yn=Ht(fo,Co,0,100,_r,vr,lr,gr,lt,di),Yn=Te(),Di=function(){var In=0;return ft.map(function(gi,Oi){var Kt=pn[Oi]||pn[pn.length-1],Sn=Ht(fo,Co,In,gi,_r,vr,lr,Kt,lt,di);return In+=gi,Ee.createElement(ut,{key:Oi,color:Kt,ptg:gi,radius:$i,prefixCls:oi,gradientId:hr,style:Sn,strokeLinecap:lt,strokeWidth:di,gapDegree:vr,ref:function(on){Yn[Oi]=on},size:Ke})}).reverse()},Cn=function(){var In=Math.round(an*(ft[0]/100)),gi=100/an,Oi=0;return new Array(an).fill(null).map(function(Kt,Sn){var Wt=Sn<=In-1?pn[0]:gr,on=Wt&&(0,se.Z)(Wt)==="object"?"url(#".concat(hr,")"):void 0,gn=Ht(fo,Co,Oi,gi,_r,vr,lr,Wt,"butt",di,Jt);return Oi+=(Co-gn.strokeDashoffset+Jt)*100/Co,Ee.createElement("circle",{key:Sn,className:"".concat(oi,"-circle-path"),r:$i,cx:Pi,cy:Pi,stroke:on,strokeWidth:di,opacity:1,style:gn,ref:function(En){Yn[Sn]=En}})})};return Ee.createElement("svg",(0,nt.Z)({className:Fe()("".concat(oi,"-circle"),Ki),viewBox:"0 0 ".concat(Ke," ").concat(Ke),style:Zr,id:Fn,role:"presentation"},be),!an&&Ee.createElement("circle",{className:"".concat(oi,"-circle-trail"),r:$i,cx:Pi,cy:Pi,stroke:gr,strokeLinecap:lt,strokeWidth:mi||di,style:yn}),an?Cn():Di())},qt=Qt,sn={Line:he,Circle:qt},Bn=Se(6848),yt=Se(93398);function Ge(ht){return!ht||ht<0?0:ht>100?100:ht}function tn(ht){let{success:Pt,successPercent:ln}=ht,Fn=ln;return Pt&&"progress"in Pt&&(Fn=Pt.progress),Pt&&"percent"in Pt&&(Fn=Pt.percent),Fn}const Wn=ht=>{let{percent:Pt,success:ln,successPercent:Fn}=ht;const oi=Ge(tn({success:ln,successPercent:Fn}));return[oi,Ge(Ge(Pt)-oi)]},Qn=ht=>{let{success:Pt={},strokeColor:ln}=ht;const{strokeColor:Fn}=Pt;return[Fn||yt.presetPrimaryColors.green,ln||null]},Dt=(ht,Pt,ln)=>{var Fn,oi,ci,di;let mi=-1,Ui=-1;if(Pt==="step"){const vr=ln.steps,lr=ln.strokeWidth;typeof ht=="string"||typeof ht=="undefined"?(mi=ht==="small"?2:14,Ui=lr!=null?lr:8):typeof ht=="number"?[mi,Ui]=[ht,ht]:[mi=14,Ui=8]=ht,mi*=vr}else if(Pt==="line"){const vr=ln==null?void 0:ln.strokeWidth;typeof ht=="string"||typeof ht=="undefined"?Ui=vr||(ht==="small"?6:8):typeof ht=="number"?[mi,Ui]=[ht,ht]:[mi=-1,Ui=8]=ht}else(Pt==="circle"||Pt==="dashboard")&&(typeof ht=="string"||typeof ht=="undefined"?[mi,Ui]=ht==="small"?[60,60]:[120,120]:typeof ht=="number"?[mi,Ui]=[ht,ht]:(mi=(oi=(Fn=ht[0])!==null&&Fn!==void 0?Fn:ht[1])!==null&&oi!==void 0?oi:120,Ui=(di=(ci=ht[0])!==null&&ci!==void 0?ci:ht[1])!==null&&di!==void 0?di:120));return[mi,Ui]},$t=3,cn=ht=>$t/ht*100;var hn=ht=>{const{prefixCls:Pt,trailColor:ln=null,strokeLinecap:Fn="round",gapPosition:oi,gapDegree:ci,width:di=120,type:mi,children:Ui,success:vr,size:lr=di}=ht,[gr,wr]=Dt(lr,"circle");let{strokeWidth:Zr}=ht;Zr===void 0&&(Zr=Math.max(cn(gr),6));const Ki={width:gr,height:wr,fontSize:gr*.15+6},Xr=Ee.useMemo(()=>{if(ci||ci===0)return ci;if(mi==="dashboard")return 75},[ci,mi]),Vi=oi||mi==="dashboard"&&"bottom"||void 0,be=Object.prototype.toString.call(ht.strokeColor)==="[object Object]",Pi=Qn({success:vr,strokeColor:ht.strokeColor}),Gi=Fe()(`${Pt}-inner`,{[`${Pt}-circle-gradient`]:be}),hr=Ee.createElement(qt,{percent:Wn(ht),strokeWidth:Zr,trailWidth:Zr,strokeColor:Pi,strokeLinecap:Fn,trailColor:ln,prefixCls:Pt,gapDegree:Xr,gapPosition:Vi});return Ee.createElement("div",{className:Gi,style:Ki},gr<=20?Ee.createElement(Bn.Z,{title:Ui},Ee.createElement("span",null,hr)):Ee.createElement(Ee.Fragment,null,hr,Ui))},ii=function(ht,Pt){var ln={};for(var Fn in ht)Object.prototype.hasOwnProperty.call(ht,Fn)&&Pt.indexOf(Fn)<0&&(ln[Fn]=ht[Fn]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oi=0,Fn=Object.getOwnPropertySymbols(ht);oi<Fn.length;oi++)Pt.indexOf(Fn[oi])<0&&Object.prototype.propertyIsEnumerable.call(ht,Fn[oi])&&(ln[Fn[oi]]=ht[Fn[oi]]);return ln};const mt=ht=>{let Pt=[];return Object.keys(ht).forEach(ln=>{const Fn=parseFloat(ln.replace(/%/g,""));isNaN(Fn)||Pt.push({key:Fn,value:ht[ln]})}),Pt=Pt.sort((ln,Fn)=>ln.key-Fn.key),Pt.map(ln=>{let{key:Fn,value:oi}=ln;return`${oi} ${Fn}%`}).join(", ")},Xn=(ht,Pt)=>{const{from:ln=yt.presetPrimaryColors.blue,to:Fn=yt.presetPrimaryColors.blue,direction:oi=Pt==="rtl"?"to left":"to right"}=ht,ci=ii(ht,["from","to","direction"]);if(Object.keys(ci).length!==0){const di=mt(ci);return{backgroundImage:`linear-gradient(${oi}, ${di})`}}return{backgroundImage:`linear-gradient(${oi}, ${ln}, ${Fn})`}};var pi=ht=>{const{prefixCls:Pt,direction:ln,percent:Fn,size:oi,strokeWidth:ci,strokeColor:di,strokeLinecap:mi="round",children:Ui,trailColor:vr=null,success:lr}=ht,gr=di&&typeof di!="string"?Xn(di,ln):{backgroundColor:di},wr=mi==="square"||mi==="butt"?0:void 0,Zr={backgroundColor:vr||void 0,borderRadius:wr},Ki=oi!=null?oi:[-1,ci||(oi==="small"?6:8)],[Xr,Vi]=Dt(Ki,"line",{strokeWidth:ci}),be=Object.assign({width:`${Ge(Fn)}%`,height:Vi,borderRadius:wr},gr),Pi=tn(ht),Gi={width:`${Ge(Pi)}%`,height:Vi,borderRadius:wr,backgroundColor:lr==null?void 0:lr.strokeColor},hr={width:Xr<0?"100%":Xr,height:Vi};return Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{className:`${Pt}-outer`,style:hr},Ee.createElement("div",{className:`${Pt}-inner`,style:Zr},Ee.createElement("div",{className:`${Pt}-bg`,style:be}),Pi!==void 0?Ee.createElement("div",{className:`${Pt}-success-bg`,style:Gi}):null)),Ui)},Gt=ht=>{const{size:Pt,steps:ln,percent:Fn=0,strokeWidth:oi=8,strokeColor:ci,trailColor:di=null,prefixCls:mi,children:Ui}=ht,vr=Math.round(ln*(Fn/100)),lr=Pt==="small"?2:14,gr=Pt!=null?Pt:[lr,oi],[wr,Zr]=Dt(gr,"step",{steps:ln,strokeWidth:oi}),Ki=wr/ln,Xr=new Array(ln);for(let Vi=0;Vi<ln;Vi++){const be=Array.isArray(ci)?ci[Vi]:ci;Xr[Vi]=Ee.createElement("div",{key:Vi,className:Fe()(`${mi}-steps-item`,{[`${mi}-steps-item-active`]:Vi<=vr-1}),style:{backgroundColor:Vi<=vr-1?be:di,width:Ki,height:Zr}})}return Ee.createElement("div",{className:`${mi}-steps-outer`},Xr,Ui)},zt=Se(9792),Mt=Se(17313),at=Se(83116),jt=Se(37613);const Et=ht=>{const Pt=ht?"100%":"-100%";return new zt.Keyframes(`antProgress${ht?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},dt=ht=>{const{componentCls:Pt,iconCls:ln}=ht;return{[Pt]:Object.assign(Object.assign({},(0,Mt.Wf)(ht)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ht.fontSize,marginInlineEnd:ht.marginXS,marginBottom:ht.marginXS},[`${Pt}-outer`]:{display:"inline-block",width:"100%"},[`&${Pt}-show-info`]:{[`${Pt}-outer`]:{marginInlineEnd:`calc(-2em - ${ht.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ht.paddingXS}px)`}},[`${Pt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ht.remainingColor,borderRadius:ht.lineBorderRadius},[`${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:ht.defaultColor}},[`${Pt}-success-bg, ${Pt}-bg`]:{position:"relative",backgroundColor:ht.defaultColor,borderRadius:ht.lineBorderRadius,transition:`all ${ht.motionDurationSlow} ${ht.motionEaseInOutCirc}`},[`${Pt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ht.colorSuccess},[`${Pt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ht.marginXS,color:ht.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ln]:{fontSize:ht.fontSize}},[`&${Pt}-status-active`]:{[`${Pt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ht.colorBgContainer,borderRadius:ht.lineBorderRadius,opacity:0,animationName:Et(),animationDuration:ht.progressActiveMotionDuration,animationTimingFunction:ht.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Pt}-rtl${Pt}-status-active`]:{[`${Pt}-bg::before`]:{animationName:Et(!0)}},[`&${Pt}-status-exception`]:{[`${Pt}-bg`]:{backgroundColor:ht.colorError},[`${Pt}-text`]:{color:ht.colorError}},[`&${Pt}-status-exception ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:ht.colorError}},[`&${Pt}-status-success`]:{[`${Pt}-bg`]:{backgroundColor:ht.colorSuccess},[`${Pt}-text`]:{color:ht.colorSuccess}},[`&${Pt}-status-success ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:ht.colorSuccess}}})}},ot=ht=>{const{componentCls:Pt,iconCls:ln}=ht;return{[Pt]:{[`${Pt}-circle-trail`]:{stroke:ht.remainingColor},[`&${Pt}-circle ${Pt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Pt}-circle ${Pt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ht.circleTextColor,fontSize:ht.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ln]:{fontSize:`${ht.fontSize/ht.fontSizeSM}em`}},[`${Pt}-circle&-status-exception`]:{[`${Pt}-text`]:{color:ht.colorError}},[`${Pt}-circle&-status-success`]:{[`${Pt}-text`]:{color:ht.colorSuccess}}},[`${Pt}-inline-circle`]:{lineHeight:1,[`${Pt}-inner`]:{verticalAlign:"bottom"}}}},De=ht=>{const{componentCls:Pt}=ht;return{[Pt]:{[`${Pt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ht.progressStepMinWidth,marginInlineEnd:ht.progressStepMarginInlineEnd,backgroundColor:ht.remainingColor,transition:`all ${ht.motionDurationSlow}`,"&-active":{backgroundColor:ht.defaultColor}}}}}},xe=ht=>{const{componentCls:Pt,iconCls:ln}=ht;return{[Pt]:{[`${Pt}-small&-line, ${Pt}-small&-line ${Pt}-text ${ln}`]:{fontSize:ht.fontSizeSM}}}};var me=(0,at.Z)("Progress",ht=>{const Pt=ht.marginXXS/2,ln=(0,jt.TS)(ht,{progressStepMarginInlineEnd:Pt,progressStepMinWidth:Pt,progressActiveMotionDuration:"2.4s"});return[dt(ln),ot(ln),De(ln),xe(ln)]},ht=>({circleTextColor:ht.colorText,defaultColor:ht.colorInfo,remainingColor:ht.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ne=function(ht,Pt){var ln={};for(var Fn in ht)Object.prototype.hasOwnProperty.call(ht,Fn)&&Pt.indexOf(Fn)<0&&(ln[Fn]=ht[Fn]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oi=0,Fn=Object.getOwnPropertySymbols(ht);oi<Fn.length;oi++)Pt.indexOf(Fn[oi])<0&&Object.prototype.propertyIsEnumerable.call(ht,Fn[oi])&&(ln[Fn[oi]]=ht[Fn[oi]]);return ln};const He=null,Me=["normal","exception","active","success"];var Ut=Ee.forwardRef((ht,Pt)=>{const{prefixCls:ln,className:Fn,rootClassName:oi,steps:ci,strokeColor:di,percent:mi=0,size:Ui="default",showInfo:vr=!0,type:lr="line",status:gr,format:wr,style:Zr}=ht,Ki=Ne(ht,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Xr=Ee.useMemo(()=>{var ft,pn;const Rn=tn(ht);return parseInt(Rn!==void 0?(ft=Rn!=null?Rn:0)===null||ft===void 0?void 0:ft.toString():(pn=mi!=null?mi:0)===null||pn===void 0?void 0:pn.toString(),10)},[mi,ht.success,ht.successPercent]),Vi=Ee.useMemo(()=>!Me.includes(gr)&&Xr>=100?"success":gr||"normal",[gr,Xr]),{getPrefixCls:be,direction:Pi,progress:Gi}=Ee.useContext(Ct.E_),hr=be("progress",ln),[$i,fo]=me(hr),_r=Ee.useMemo(()=>{if(!vr)return null;const ft=tn(ht);let pn;const Rn=wr||(lt=>`${lt}%`),It=lr==="line";return wr||Vi!=="exception"&&Vi!=="success"?pn=Rn(Ge(mi),Ge(ft)):Vi==="exception"?pn=It?Ee.createElement(kt.Z,null):Ee.createElement(Xe.Z,null):Vi==="success"&&(pn=It?Ee.createElement(je.Z,null):Ee.createElement(it.Z,null)),Ee.createElement("span",{className:`${hr}-text`,title:typeof pn=="string"?pn:void 0},pn)},[vr,mi,Xr,Vi,lr,hr,wr]),Co=Array.isArray(di)?di[0]:di,vn=typeof di=="string"||Array.isArray(di)?di:void 0;let an;lr==="line"?an=ci?Ee.createElement(Gt,Object.assign({},ht,{strokeColor:vn,prefixCls:hr,steps:ci}),_r):Ee.createElement(pi,Object.assign({},ht,{strokeColor:Co,prefixCls:hr,direction:Pi}),_r):(lr==="circle"||lr==="dashboard")&&(an=Ee.createElement(hn,Object.assign({},ht,{strokeColor:Co,prefixCls:hr,progressStatus:Vi}),_r));const Jt=Fe()(hr,`${hr}-status-${Vi}`,`${hr}-${lr==="dashboard"&&"circle"||ci&&"steps"||lr}`,{[`${hr}-inline-circle`]:lr==="circle"&&Dt(Ui,"circle")[0]<=20,[`${hr}-show-info`]:vr,[`${hr}-${Ui}`]:typeof Ui=="string",[`${hr}-rtl`]:Pi==="rtl"},Gi==null?void 0:Gi.className,Fn,oi,fo);return $i(Ee.createElement("div",Object.assign({ref:Pt,style:Object.assign(Object.assign({},Gi==null?void 0:Gi.style),Zr),className:Jt,role:"progressbar","aria-valuenow":Xr},(0,Ft.Z)(Ki,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),an))}),rn=Ut},57809:function(On,Pn,Se){"use strict";var Ee=Se(92310),je=Se.n(Ee),it=Se(77861),kt=Se(64002),Xe=Se(59301),pt=Se(53487),Fe=Se(62892),Ft=Se(19080),Ct=Se(36355),nt=Se(1684),gt=Se(93891),wt=Se(19716),xt=Se(32441),Te=Se(33234),te=Se(14154),ne=Se(58582),he=Se(84443),se=Se(66339),ge=function(Oe,ze){var We={};for(var Ue in Oe)Object.prototype.hasOwnProperty.call(Oe,Ue)&&ze.indexOf(Ue)<0&&(We[Ue]=Oe[Ue]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ue=Object.getOwnPropertySymbols(Oe);ut<Ue.length;ut++)ze.indexOf(Ue[ut])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ue[ut])&&(We[Ue[ut]]=Oe[Ue[ut]]);return We};const ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",Pe=(Oe,ze)=>{var We,{prefixCls:Ue,bordered:ut=!0,className:Ke,rootClassName:Ht,getPopupContainer:St,popupClassName:_t,dropdownClassName:Qt,listHeight:qt=256,placement:sn,listItemHeight:Bn=24,size:yt,disabled:Ge,notFoundContent:tn,status:Wn,builtinPlacements:Qn,dropdownMatchSelectWidth:Dt,popupMatchSelectWidth:$t,direction:cn,style:Zn,allowClear:hn}=Oe,ii=ge(Oe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:mt,getPrefixCls:Xn,renderEmpty:ri,direction:pi,virtual:Mn,popupMatchSelectWidth:Gt,popupOverflow:zt,select:Mt}=Xe.useContext(Ct.E_),at=Xn("select",Ue),jt=Xn(),Et=cn!=null?cn:pi,{compactSize:dt,compactItemClassnames:ot}=(0,Te.ri)(at,Et),[De,xe]=(0,te.Z)(at),me=Xe.useMemo(()=>{const{mode:Vi}=ii;if(Vi!=="combobox")return Vi===ve?"combobox":Vi},[ii.mode]),Ne=me==="multiple"||me==="tags",He=(0,he.Z)(ii.suffixIcon,ii.showArrow),Me=(We=$t!=null?$t:Dt)!==null&&We!==void 0?We:Gt,{status:et,hasFeedback:Ut,isFormItemInput:rn,feedbackIcon:ht}=Xe.useContext(xt.aM),Pt=(0,Ft.F)(et,Wn);let ln;tn!==void 0?ln=tn:me==="combobox"?ln=null:ln=(ri==null?void 0:ri("Select"))||Xe.createElement(gt.Z,{componentName:"Select"});const{suffixIcon:Fn,itemIcon:oi,removeIcon:ci,clearIcon:di}=(0,se.Z)(Object.assign(Object.assign({},ii),{multiple:Ne,hasFeedback:Ut,feedbackIcon:ht,showSuffixIcon:He,prefixCls:at,showArrow:ii.showArrow,componentName:"Select"})),mi=hn===!0?{clearIcon:di}:hn,Ui=(0,kt.Z)(ii,["suffixIcon","itemIcon"]),vr=je()(_t||Qt,{[`${at}-dropdown-${Et}`]:Et==="rtl"},Ht,xe),lr=(0,wt.Z)(Vi=>{var be;return(be=yt!=null?yt:dt)!==null&&be!==void 0?be:Vi}),gr=Xe.useContext(nt.Z),wr=Ge!=null?Ge:gr,Zr=je()({[`${at}-lg`]:lr==="large",[`${at}-sm`]:lr==="small",[`${at}-rtl`]:Et==="rtl",[`${at}-borderless`]:!ut,[`${at}-in-form-item`]:rn},(0,Ft.Z)(at,Pt,Ut),ot,Mt==null?void 0:Mt.className,Ke,Ht,xe),Ki=Xe.useMemo(()=>sn!==void 0?sn:Et==="rtl"?"bottomRight":"bottomLeft",[sn,Et]),Xr=(0,ne.Z)(Qn,zt);return De(Xe.createElement(it.ZP,Object.assign({ref:ze,virtual:Mn,showSearch:Mt==null?void 0:Mt.showSearch},Ui,{style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),Zn),dropdownMatchSelectWidth:Me,builtinPlacements:Xr,transitionName:(0,Fe.m)(jt,"slide-up",ii.transitionName),listHeight:qt,listItemHeight:Bn,mode:me,prefixCls:at,placement:Ki,direction:Et,suffixIcon:Fn,menuItemSelectedIcon:oi,removeIcon:ci,allowClear:mi,notFoundContent:ln,className:Zr,getPopupContainer:St||mt,dropdownClassName:vr,disabled:wr})))},ke=Xe.forwardRef(Pe),we=(0,pt.Z)(ke);ke.SECRET_COMBOBOX_MODE_DO_NOT_USE=ve,ke.Option=it.Wx,ke.OptGroup=it.Xo,ke._InternalPanelDoNotUseOrYouWillBeFired=we,Pn.default=ke},14154:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ke}});var Ee=Se(17313),je=Se(74207),it=Se(37613),kt=Se(83116),Xe=Se(13826),pt=Se(92899);const Fe=we=>{const{optionHeight:Oe,optionFontSize:ze,optionLineHeight:We,optionPadding:Ue}=we;return{position:"relative",display:"block",minHeight:Oe,padding:Ue,color:we.colorText,fontWeight:"normal",fontSize:ze,lineHeight:We,boxSizing:"border-box"}};var Ct=we=>{const{antCls:Oe,componentCls:ze}=we,We=`${ze}-item`,Ue=`&${Oe}-slide-up-enter${Oe}-slide-up-enter-active`,ut=`&${Oe}-slide-up-appear${Oe}-slide-up-appear-active`,Ke=`&${Oe}-slide-up-leave${Oe}-slide-up-leave-active`,Ht=`${ze}-dropdown-placement-`;return[{[`${ze}-dropdown`]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{position:"absolute",top:-9999,zIndex:we.zIndexPopup,boxSizing:"border-box",padding:we.paddingXXS,overflow:"hidden",fontSize:we.fontSize,fontVariant:"initial",backgroundColor:we.colorBgElevated,borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary,[`
|
|
|
${Ue}${Ht}bottomLeft,
|
|
|
${ut}${Ht}bottomLeft
|
|
|
`]:{animationName:Xe.fJ},[`
|
|
|
${Ue}${Ht}topLeft,
|
|
|
${ut}${Ht}topLeft,
|
|
|
${Ue}${Ht}topRight,
|
|
|
${ut}${Ht}topRight
|
|
|
`]:{animationName:Xe.Qt},[`${Ke}${Ht}bottomLeft`]:{animationName:Xe.Uw},[`
|
|
|
${Ke}${Ht}topLeft,
|
|
|
${Ke}${Ht}topRight
|
|
|
`]:{animationName:Xe.ly},"&-hidden":{display:"none"},[`${We}`]:Object.assign(Object.assign({},Fe(we)),{cursor:"pointer",transition:`background ${we.motionDurationSlow} ease`,borderRadius:we.borderRadiusSM,"&-group":{color:we.colorTextDescription,fontSize:we.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ee.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${We}-option-disabled)`]:{backgroundColor:we.optionActiveBg},[`&-selected:not(${We}-option-disabled)`]:{color:we.optionSelectedColor,fontWeight:we.optionSelectedFontWeight,backgroundColor:we.optionSelectedBg,[`${We}-option-state`]:{color:we.colorPrimary}},"&-disabled":{[`&${We}-option-selected`]:{backgroundColor:we.colorBgContainerDisabled},color:we.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:we.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Xe.oN)(we,"slide-up"),(0,Xe.oN)(we,"slide-down"),(0,pt.Fm)(we,"move-up"),(0,pt.Fm)(we,"move-down")]};const nt=2,gt=we=>{let{controlHeightSM:Oe,controlHeight:ze,lineWidth:We}=we;const Ue=(ze-Oe)/2-We,ut=Math.ceil(Ue/2);return[Ue,ut]};function wt(we,Oe){const{componentCls:ze,iconCls:We}=we,Ue=`${ze}-selection-overflow`,ut=we.multipleSelectItemHeight,[Ke]=gt(we),Ht=Oe?`${ze}-${Oe}`:"";return{[`${ze}-multiple${Ht}`]:{fontSize:we.fontSize,[Ue]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ze}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ke-nt}px ${nt*2}px`,borderRadius:we.borderRadius,[`${ze}-show-search&`]:{cursor:"text"},[`${ze}-disabled&`]:{background:we.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${nt}px 0`,lineHeight:`${ut}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${ze}-show-arrow ${ze}-selector,
|
|
|
&${ze}-allow-clear ${ze}-selector
|
|
|
`]:{paddingInlineEnd:we.fontSizeIcon+we.controlPaddingHorizontal},[`${ze}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ut,marginTop:nt,marginBottom:nt,lineHeight:`${ut-we.lineWidth*2}px`,background:we.multipleItemBg,border:`${we.lineWidth}px ${we.lineType} ${we.multipleItemBorderColor}`,borderRadius:we.borderRadiusSM,cursor:"default",transition:`font-size ${we.motionDurationSlow}, line-height ${we.motionDurationSlow}, height ${we.motionDurationSlow}`,userSelect:"none",marginInlineEnd:nt*2,paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS/2,[`${ze}-disabled&`]:{color:we.multipleItemColorDisabled,borderColor:we.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:we.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ee.Ro)()),{display:"inline-flex",alignItems:"center",color:we.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${We}`]:{verticalAlign:"-0.2em"},"&:hover":{color:we.colorIconHover}})},[`${Ue}-item + ${Ue}-item`]:{[`${ze}-selection-search`]:{marginInlineStart:0}},[`${ze}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:we.inputPaddingHorizontalBase-Ke,"\n &-input,\n &-mirror\n ":{height:ut,fontFamily:we.fontFamily,lineHeight:`${ut}px`,transition:`all ${we.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ze}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:we.inputPaddingHorizontalBase,insetInlineEnd:we.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${we.motionDurationSlow}`}}}}var Te=we=>{const{componentCls:Oe}=we,ze=(0,it.TS)(we,{controlHeight:we.controlHeightSM,multipleSelectItemHeight:we.controlHeightXS,borderRadius:we.borderRadiusSM,borderRadiusSM:we.borderRadiusXS}),We=(0,it.TS)(we,{fontSize:we.fontSizeLG,controlHeight:we.controlHeightLG,multipleSelectItemHeight:we.multipleItemHeightLG,borderRadius:we.borderRadiusLG,borderRadiusSM:we.borderRadius}),[,Ue]=gt(we);return[wt(we),wt(ze,"sm"),{[`${Oe}-multiple${Oe}-sm`]:{[`${Oe}-selection-placeholder`]:{insetInline:we.controlPaddingHorizontalSM-we.lineWidth},[`${Oe}-selection-search`]:{marginInlineStart:Ue}}},wt(We,"lg")]};function te(we,Oe){const{componentCls:ze,inputPaddingHorizontalBase:We,borderRadius:Ue}=we,ut=we.controlHeight-we.lineWidth*2,Ke=Math.ceil(we.fontSize*1.25),Ht=Oe?`${ze}-${Oe}`:"";return{[`${ze}-single${Ht}`]:{fontSize:we.fontSize,[`${ze}-selector`]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{display:"flex",borderRadius:Ue,[`${ze}-selection-search`]:{position:"absolute",top:0,insetInlineStart:We,insetInlineEnd:We,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${ze}-selection-item,
|
|
|
${ze}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${ut}px`,transition:`all ${we.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ut}px`}},[`${ze}-selection-item`]:{position:"relative",userSelect:"none"},[`${ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ze}-selection-item:after`,`${ze}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${ze}-show-arrow ${ze}-selection-item,
|
|
|
&${ze}-show-arrow ${ze}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ke},[`&${ze}-open ${ze}-selection-item`]:{color:we.colorTextPlaceholder},[`&:not(${ze}-customize-input)`]:{[`${ze}-selector`]:{width:"100%",height:we.controlHeight,padding:`0 ${We}px`,[`${ze}-selection-search-input`]:{height:ut},"&:after":{lineHeight:`${ut}px`}}},[`&${ze}-customize-input`]:{[`${ze}-selector`]:{"&:after":{display:"none"},[`${ze}-selection-search`]:{position:"static",width:"100%"},[`${ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${We}px`,"&:after":{display:"none"}}}}}}}function ne(we){const{componentCls:Oe}=we,ze=we.controlPaddingHorizontalSM-we.lineWidth;return[te(we),te((0,it.TS)(we,{controlHeight:we.controlHeightSM,borderRadius:we.borderRadiusSM}),"sm"),{[`${Oe}-single${Oe}-sm`]:{[`&:not(${Oe}-customize-input)`]:{[`${Oe}-selection-search`]:{insetInlineStart:ze,insetInlineEnd:ze},[`${Oe}-selector`]:{padding:`0 ${ze}px`},[`&${Oe}-show-arrow ${Oe}-selection-search`]:{insetInlineEnd:ze+we.fontSize*1.5},[`
|
|
|
&${Oe}-show-arrow ${Oe}-selection-item,
|
|
|
&${Oe}-show-arrow ${Oe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:we.fontSize*1.5}}}},te((0,it.TS)(we,{controlHeight:we.singleItemHeightLG,fontSize:we.fontSizeLG,borderRadius:we.borderRadiusLG}),"lg")]}const he=we=>{const{componentCls:Oe,selectorBg:ze}=we;return{position:"relative",backgroundColor:ze,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,transition:`all ${we.motionDurationMid} ${we.motionEaseInOut}`,input:{cursor:"pointer"},[`${Oe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Oe}-disabled&`]:{color:we.colorTextDisabled,background:we.colorBgContainerDisabled,cursor:"not-allowed",[`${Oe}-multiple&`]:{background:we.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},se=function(we,Oe){let ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:We,borderHoverColor:Ue,outlineColor:ut,antCls:Ke}=Oe,Ht=ze?{[`${We}-selector`]:{borderColor:Ue}}:{};return{[we]:{[`&:not(${We}-disabled):not(${We}-customize-input):not(${Ke}-pagination-size-changer)`]:Object.assign(Object.assign({},Ht),{[`${We}-focused& ${We}-selector`]:{borderColor:Ue,boxShadow:`0 0 0 ${Oe.controlOutlineWidth}px ${ut}`,outline:0},[`&:hover ${We}-selector`]:{borderColor:Ue}})}}},ge=we=>{const{componentCls:Oe}=we;return{[`${Oe}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ve=we=>{const{componentCls:Oe,inputPaddingHorizontalBase:ze,iconCls:We}=we;return{[Oe]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Oe}-customize-input) ${Oe}-selector`]:Object.assign(Object.assign({},he(we)),ge(we)),[`${Oe}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Ee.vS),[`${Oe}-selection-placeholder`]:Object.assign(Object.assign({},Ee.vS),{flex:1,color:we.colorTextPlaceholder,pointerEvents:"none"}),[`${Oe}-arrow`]:Object.assign(Object.assign({},(0,Ee.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,height:we.fontSizeIcon,marginTop:-we.fontSizeIcon/2,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[We]:{verticalAlign:"top",transition:`transform ${we.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Oe}-suffix)`]:{pointerEvents:"auto"}},[`${Oe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Oe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,zIndex:1,display:"inline-block",width:we.fontSizeIcon,height:we.fontSizeIcon,marginTop:-we.fontSizeIcon/2,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:we.clearBg,cursor:"pointer",opacity:0,transition:`color ${we.motionDurationMid} ease, opacity ${we.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:we.colorTextTertiary}},"&:hover":{[`${Oe}-clear`]:{opacity:1}}}),[`${Oe}-has-feedback`]:{[`${Oe}-clear`]:{insetInlineEnd:ze+we.fontSize+we.paddingXS}}}},Pe=we=>{const{componentCls:Oe}=we;return[{[Oe]:{[`&-borderless ${Oe}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Oe}-in-form-item`]:{width:"100%"}}},ve(we),ne(we),Te(we),Ct(we),{[`${Oe}-rtl`]:{direction:"rtl"}},se(Oe,(0,it.TS)(we,{borderHoverColor:we.colorPrimaryHover,outlineColor:we.controlOutline})),se(`${Oe}-status-error`,(0,it.TS)(we,{borderHoverColor:we.colorErrorHover,outlineColor:we.colorErrorOutline}),!0),se(`${Oe}-status-warning`,(0,it.TS)(we,{borderHoverColor:we.colorWarningHover,outlineColor:we.colorWarningOutline}),!0),(0,je.c)(we,{borderElCls:`${Oe}-selector`,focusElCls:`${Oe}-focused`})]};var ke=(0,kt.Z)("Select",(we,Oe)=>{let{rootPrefixCls:ze}=Oe;const We=(0,it.TS)(we,{rootPrefixCls:ze,inputPaddingHorizontalBase:we.paddingSM-1,multipleSelectItemHeight:we.multipleItemHeight});return[Pe(We)]},we=>{const{fontSize:Oe,lineHeight:ze,controlHeight:We,controlPaddingHorizontal:Ue,zIndexPopupBase:ut,colorText:Ke,fontWeightStrong:Ht,controlItemBgActive:St,controlItemBgHover:_t,colorBgContainer:Qt,colorFillSecondary:qt,controlHeightLG:sn,controlHeightSM:Bn,colorBgContainerDisabled:yt,colorTextDisabled:Ge}=we;return{zIndexPopup:ut+50,optionSelectedColor:Ke,optionSelectedFontWeight:Ht,optionSelectedBg:St,optionActiveBg:_t,optionPadding:`${(We-Oe*ze)/2}px ${Ue}px`,optionFontSize:Oe,optionLineHeight:ze,optionHeight:We,selectorBg:Qt,clearBg:Qt,singleItemHeightLG:sn,multipleItemBg:qt,multipleItemBorderColor:"transparent",multipleItemHeight:Bn,multipleItemHeightLG:We,multipleSelectorBgDisabled:yt,multipleItemColorDisabled:Ge,multipleItemBorderColorDisabled:"transparent"}})},58582:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return je}});const Ee=it=>{const Xe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:it==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Xe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Xe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Xe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Xe),{points:["br","tr"],offset:[0,-4]})}};function je(it,kt){return it||Ee(kt)}},84443:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ee}});function Ee(je,it){return it!==void 0?it:je!==null}},66339:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});var Ee=Se(10402),je=Se(33130),it=Se(72119),kt=Se(18290),Xe=Se(50023),pt=Se(21970),Fe=Se(59301);function Ft(Ct){let{suffixIcon:nt,clearIcon:gt,menuItemSelectedIcon:wt,removeIcon:xt,loading:Te,multiple:te,hasFeedback:ne,prefixCls:he,showSuffixIcon:se,feedbackIcon:ge,showArrow:ve,componentName:Pe}=Ct;const ke=gt!=null?gt:Fe.createElement(je.Z,null),we=Ue=>nt===null&&!ne&&!ve?null:Fe.createElement(Fe.Fragment,null,se!==!1&&Ue,ne&&ge);let Oe=null;if(nt!==void 0)Oe=we(nt);else if(Te)Oe=we(Fe.createElement(Xe.Z,{spin:!0}));else{const Ue=`${he}-suffix`;Oe=ut=>{let{open:Ke,showSearch:Ht}=ut;return we(Ke&&Ht?Fe.createElement(pt.Z,{className:Ue}):Fe.createElement(kt.Z,{className:Ue}))}}let ze=null;wt!==void 0?ze=wt:te?ze=Fe.createElement(Ee.Z,null):ze=null;let We=null;return xt!==void 0?We=xt:We=Fe.createElement(it.Z,null),{clearIcon:ke,suffixIcon:Oe,itemIcon:ze,removeIcon:We}}},81327:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return he}});var Ee=Se(59301),je=Se(92310),it=Se.n(je),kt=Se(38298),Xe=Se(36355),pt=Se(33234);const Fe=Ee.createContext({latestIndex:0}),Ft=Fe.Provider;var nt=se=>{let{className:ge,index:ve,children:Pe,split:ke,style:we}=se;const{latestIndex:Oe}=Ee.useContext(Fe);return Pe==null?null:Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{className:ge,style:we},Pe),ve<Oe&&ke&&Ee.createElement("span",{className:`${ge}-split`},ke))},gt=Se(2856);function wt(se){return["small","middle","large"].includes(se)}function xt(se){return se?typeof se=="number"&&!Number.isNaN(se):!1}var Te=function(se,ge){var ve={};for(var Pe in se)Object.prototype.hasOwnProperty.call(se,Pe)&&ge.indexOf(Pe)<0&&(ve[Pe]=se[Pe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Pe=Object.getOwnPropertySymbols(se);ke<Pe.length;ke++)ge.indexOf(Pe[ke])<0&&Object.prototype.propertyIsEnumerable.call(se,Pe[ke])&&(ve[Pe[ke]]=se[Pe[ke]]);return ve};const ne=Ee.forwardRef((se,ge)=>{var ve,Pe;const{getPrefixCls:ke,space:we,direction:Oe}=Ee.useContext(Xe.E_),{size:ze=(we==null?void 0:we.size)||"small",align:We,className:Ue,rootClassName:ut,children:Ke,direction:Ht="horizontal",prefixCls:St,split:_t,style:Qt,wrap:qt=!1,classNames:sn,styles:Bn}=se,yt=Te(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ge,tn]=Array.isArray(ze)?ze:[ze,ze],Wn=wt(tn),Qn=wt(Ge),Dt=xt(tn),$t=xt(Ge),cn=(0,kt.Z)(Ke,{keepEmpty:!0}),Zn=We===void 0&&Ht==="horizontal"?"center":We,hn=ke("space",St),[ii,mt]=(0,gt.Z)(hn),Xn=it()(hn,we==null?void 0:we.className,mt,`${hn}-${Ht}`,{[`${hn}-rtl`]:Oe==="rtl",[`${hn}-align-${Zn}`]:Zn,[`${hn}-gap-row-${tn}`]:Wn,[`${hn}-gap-col-${Ge}`]:Qn},Ue,ut),ri=it()(`${hn}-item`,(ve=sn==null?void 0:sn.item)!==null&&ve!==void 0?ve:(Pe=we==null?void 0:we.classNames)===null||Pe===void 0?void 0:Pe.item);let pi=0;const Mn=cn.map((Mt,at)=>{var jt,Et;Mt!=null&&(pi=at);const dt=Mt&&Mt.key||`${ri}-${at}`;return Ee.createElement(nt,{className:ri,key:dt,index:at,split:_t,style:(jt=Bn==null?void 0:Bn.item)!==null&&jt!==void 0?jt:(Et=we==null?void 0:we.styles)===null||Et===void 0?void 0:Et.item},Mt)}),Gt=Ee.useMemo(()=>({latestIndex:pi}),[pi]);if(cn.length===0)return null;const zt={};return qt&&(zt.flexWrap="wrap"),!Qn&&$t&&(zt.columnGap=Ge),!Wn&&Dt&&(zt.rowGap=tn),ii(Ee.createElement("div",Object.assign({ref:ge,className:Xn,style:Object.assign(Object.assign(Object.assign({},zt),we==null?void 0:we.style),Qt)},yt),Ee.createElement(Ft,{value:Gt},Mn)))});ne.Compact=pt.ZP;var he=ne},15969:function(On,Pn,Se){"use strict";Se.d(Pn,{N:function(){return Ee}});const Ee=je=>({color:je.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${je.motionDurationSlow}`,"&:focus, &:hover":{color:je.colorLinkHover},"&:active":{color:je.colorLinkActive}})},78673:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ht}});var Ee=Se(50023),je=Se(92310),it=Se.n(je),kt=Se(5891),Xe=Se(80962),pt=Se(29043),Fe=Se(19149),Ft=Se(59301),Ct=Se(35788),nt=Se(85108),gt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],wt=Ft.forwardRef(function(St,_t){var Qt,qt=St.prefixCls,sn=qt===void 0?"rc-switch":qt,Bn=St.className,yt=St.checked,Ge=St.defaultChecked,tn=St.disabled,Wn=St.loadingIcon,Qn=St.checkedChildren,Dt=St.unCheckedChildren,$t=St.onClick,cn=St.onChange,Zn=St.onKeyDown,hn=(0,Fe.Z)(St,gt),ii=(0,Ct.Z)(!1,{value:yt,defaultValue:Ge}),mt=(0,pt.Z)(ii,2),Xn=mt[0],ri=mt[1];function pi(Mt,at){var jt=Xn;return tn||(jt=Mt,ri(jt),cn==null||cn(jt,at)),jt}function Mn(Mt){Mt.which===nt.Z.LEFT?pi(!1,Mt):Mt.which===nt.Z.RIGHT&&pi(!0,Mt),Zn==null||Zn(Mt)}function Gt(Mt){var at=pi(!Xn,Mt);$t==null||$t(at,Mt)}var zt=it()(sn,Bn,(Qt={},(0,Xe.Z)(Qt,"".concat(sn,"-checked"),Xn),(0,Xe.Z)(Qt,"".concat(sn,"-disabled"),tn),Qt));return Ft.createElement("button",(0,kt.Z)({},hn,{type:"button",role:"switch","aria-checked":Xn,disabled:tn,className:zt,ref:_t,onKeyDown:Mn,onClick:Gt}),Wn,Ft.createElement("span",{className:"".concat(sn,"-inner")},Ft.createElement("span",{className:"".concat(sn,"-inner-checked")},Qn),Ft.createElement("span",{className:"".concat(sn,"-inner-unchecked")},Dt)))});wt.displayName="Switch";var xt=wt,Te=Se(14088),te=Se(36355),ne=Se(1684),he=Se(19716),se=Se(64993),ge=Se(17313),ve=Se(83116),Pe=Se(37613);const ke=St=>{const{componentCls:_t,trackHeightSM:Qt,trackPadding:qt,trackMinWidthSM:sn,innerMinMarginSM:Bn,innerMaxMarginSM:yt,handleSizeSM:Ge}=St,tn=`${_t}-inner`;return{[_t]:{[`&${_t}-small`]:{minWidth:sn,height:Qt,lineHeight:`${Qt}px`,[`${_t}-inner`]:{paddingInlineStart:yt,paddingInlineEnd:Bn,[`${tn}-checked`]:{marginInlineStart:`calc(-100% + ${Ge+qt*2}px - ${yt*2}px)`,marginInlineEnd:`calc(100% - ${Ge+qt*2}px + ${yt*2}px)`},[`${tn}-unchecked`]:{marginTop:-Qt,marginInlineStart:0,marginInlineEnd:0}},[`${_t}-handle`]:{width:Ge,height:Ge},[`${_t}-loading-icon`]:{top:(Ge-St.switchLoadingIconSize)/2,fontSize:St.switchLoadingIconSize},[`&${_t}-checked`]:{[`${_t}-inner`]:{paddingInlineStart:Bn,paddingInlineEnd:yt,[`${tn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${tn}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge+qt*2}px + ${yt*2}px)`,marginInlineEnd:`calc(-100% + ${Ge+qt*2}px - ${yt*2}px)`}},[`${_t}-handle`]:{insetInlineStart:`calc(100% - ${Ge+qt}px)`}},[`&:not(${_t}-disabled):active`]:{[`&:not(${_t}-checked) ${tn}`]:{[`${tn}-unchecked`]:{marginInlineStart:St.marginXXS/2,marginInlineEnd:-St.marginXXS/2}},[`&${_t}-checked ${tn}`]:{[`${tn}-checked`]:{marginInlineStart:-St.marginXXS/2,marginInlineEnd:St.marginXXS/2}}}}}}},we=St=>{const{componentCls:_t,handleSize:Qt}=St;return{[_t]:{[`${_t}-loading-icon${St.iconCls}`]:{position:"relative",top:(Qt-St.fontSize)/2,color:St.switchLoadingIconColor,verticalAlign:"top"},[`&${_t}-checked ${_t}-loading-icon`]:{color:St.switchColor}}}},Oe=St=>{const{componentCls:_t,motion:Qt,trackPadding:qt,handleBg:sn,handleShadow:Bn,handleSize:yt}=St,Ge=`${_t}-handle`;return{[_t]:{[Ge]:{position:"absolute",top:qt,insetInlineStart:qt,width:yt,height:yt,transition:`all ${St.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:sn,borderRadius:yt/2,boxShadow:Bn,transition:`all ${St.switchDuration} ease-in-out`,content:'""'}},[`&${_t}-checked ${Ge}`]:{insetInlineStart:`calc(100% - ${yt+qt}px)`},[`&:not(${_t}-disabled):active`]:Qt?{[`${Ge}::before`]:{insetInlineEnd:St.switchHandleActiveInset,insetInlineStart:0},[`&${_t}-checked ${Ge}::before`]:{insetInlineEnd:0,insetInlineStart:St.switchHandleActiveInset}}:{}}}},ze=St=>{const{componentCls:_t,trackHeight:Qt,trackPadding:qt,innerMinMargin:sn,innerMaxMargin:Bn,handleSize:yt}=St,Ge=`${_t}-inner`;return{[_t]:{[Ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Bn,paddingInlineEnd:sn,transition:`padding-inline-start ${St.switchDuration} ease-in-out, padding-inline-end ${St.switchDuration} ease-in-out`,[`${Ge}-checked, ${Ge}-unchecked`]:{display:"block",color:St.colorTextLightSolid,fontSize:St.fontSizeSM,transition:`margin-inline-start ${St.switchDuration} ease-in-out, margin-inline-end ${St.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ge}-checked`]:{marginInlineStart:`calc(-100% + ${yt+qt*2}px - ${Bn*2}px)`,marginInlineEnd:`calc(100% - ${yt+qt*2}px + ${Bn*2}px)`},[`${Ge}-unchecked`]:{marginTop:-Qt,marginInlineStart:0,marginInlineEnd:0}},[`&${_t}-checked ${Ge}`]:{paddingInlineStart:sn,paddingInlineEnd:Bn,[`${Ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ge}-unchecked`]:{marginInlineStart:`calc(100% - ${yt+qt*2}px + ${Bn*2}px)`,marginInlineEnd:`calc(-100% + ${yt+qt*2}px - ${Bn*2}px)`}},[`&:not(${_t}-disabled):active`]:{[`&:not(${_t}-checked) ${Ge}`]:{[`${Ge}-unchecked`]:{marginInlineStart:qt*2,marginInlineEnd:-qt*2}},[`&${_t}-checked ${Ge}`]:{[`${Ge}-checked`]:{marginInlineStart:-qt*2,marginInlineEnd:qt*2}}}}}},We=St=>{const{componentCls:_t,trackHeight:Qt,trackMinWidth:qt}=St;return{[_t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(St)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:qt,height:Qt,lineHeight:`${Qt}px`,verticalAlign:"middle",background:St.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${St.motionDurationMid}`,userSelect:"none",[`&:hover:not(${_t}-disabled)`]:{background:St.colorTextTertiary}}),(0,ge.Qy)(St)),{[`&${_t}-checked`]:{background:St.switchColor,[`&:hover:not(${_t}-disabled)`]:{background:St.colorPrimaryHover}},[`&${_t}-loading, &${_t}-disabled`]:{cursor:"not-allowed",opacity:St.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${_t}-rtl`]:{direction:"rtl"}})}};var Ue=(0,ve.Z)("Switch",St=>{const _t=(0,Pe.TS)(St,{switchDuration:St.motionDurationMid,switchColor:St.colorPrimary,switchDisabledOpacity:St.opacityLoading,switchLoadingIconSize:St.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${St.opacityLoading})`,switchHandleActiveInset:"-30%"});return[We(_t),ze(_t),Oe(_t),we(_t),ke(_t)]},St=>{const{fontSize:_t,lineHeight:Qt,controlHeight:qt,colorWhite:sn}=St,Bn=_t*Qt,yt=qt/2,Ge=2,tn=Bn-Ge*2,Wn=yt-Ge*2;return{trackHeight:Bn,trackHeightSM:yt,trackMinWidth:tn*2+Ge*4,trackMinWidthSM:Wn*2+Ge*2,trackPadding:Ge,handleBg:sn,handleSize:tn,handleSizeSM:Wn,handleShadow:`0 2px 4px 0 ${new se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:tn/2,innerMaxMargin:tn+Ge+Ge*2,innerMinMarginSM:Wn/2,innerMaxMarginSM:Wn+Ge+Ge*2}}),ut=function(St,_t){var Qt={};for(var qt in St)Object.prototype.hasOwnProperty.call(St,qt)&&_t.indexOf(qt)<0&&(Qt[qt]=St[qt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,qt=Object.getOwnPropertySymbols(St);sn<qt.length;sn++)_t.indexOf(qt[sn])<0&&Object.prototype.propertyIsEnumerable.call(St,qt[sn])&&(Qt[qt[sn]]=St[qt[sn]]);return Qt};const Ke=Ft.forwardRef((St,_t)=>{const{prefixCls:Qt,size:qt,disabled:sn,loading:Bn,className:yt,rootClassName:Ge,style:tn}=St,Wn=ut(St,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Qn,direction:Dt,switch:$t}=Ft.useContext(te.E_),cn=Ft.useContext(ne.Z),Zn=(sn!=null?sn:cn)||Bn,hn=Qn("switch",Qt),ii=Ft.createElement("div",{className:`${hn}-handle`},Bn&&Ft.createElement(Ee.Z,{className:`${hn}-loading-icon`})),[mt,Xn]=Ue(hn),ri=(0,he.Z)(qt),pi=it()($t==null?void 0:$t.className,{[`${hn}-small`]:ri==="small",[`${hn}-loading`]:Bn,[`${hn}-rtl`]:Dt==="rtl"},yt,Ge,Xn),Mn=Object.assign(Object.assign({},$t==null?void 0:$t.style),tn);return mt(Ft.createElement(Te.Z,{component:"Switch"},Ft.createElement(xt,Object.assign({},Wn,{prefixCls:hn,className:pi,style:Mn,disabled:Zn,ref:_t,loadingIcon:ii}))))});Ke.__ANT_SWITCH=!0;var Ht=Ke},2595:function(On,Pn,Se){"use strict";Se.d(Pn,{default:function(){return el}});var Ee={},je="rc-table-internal-hook",it=Se(29043),kt=Se(8107),Xe=Se(28800),pt=Se(51346),Fe=Se(59301),Ft=Se(4676);function Ct(Je){var tt=Fe.createContext(void 0),Tt=function(en){var Vt=en.value,Ln=en.children,bn=Fe.useRef(Vt);bn.current=Vt;var wn=Fe.useState(function(){return{getValue:function(){return bn.current},listeners:new Set}}),ni=(0,it.Z)(wn,1),jn=ni[0];return(0,Xe.Z)(function(){(0,Ft.unstable_batchedUpdates)(function(){jn.listeners.forEach(function(_n){_n(Vt)})})},[Vt]),Fe.createElement(tt.Provider,{value:jn},Ln)};return{Context:tt,Provider:Tt,defaultValue:Je}}function nt(Je,tt){var Tt=(0,kt.Z)(typeof tt=="function"?tt:function(_n){if(tt===void 0)return _n;if(!Array.isArray(tt))return _n[tt];var Ei={};return tt.forEach(function(Ci){Ei[Ci]=_n[Ci]}),Ei}),Ot=Fe.useContext(Je==null?void 0:Je.Context),en=Ot||{},Vt=en.listeners,Ln=en.getValue,bn=Fe.useRef();bn.current=Tt(Ot?Ln():Je==null?void 0:Je.defaultValue);var wn=Fe.useState({}),ni=(0,it.Z)(wn,2),jn=ni[1];return(0,Xe.Z)(function(){if(!Ot)return;function _n(Ei){var Ci=Tt(Ei);(0,pt.Z)(bn.current,Ci,!0)||jn({})}return Vt.add(_n),function(){Vt.delete(_n)}},[Ot]),bn.current}var gt=Se(5891),wt=Se(20475);function xt(){var Je=Fe.createContext(null);function tt(){return Fe.useContext(Je)}function Tt(en,Vt){var Ln=(0,wt.Yr)(en),bn=function(ni,jn){var _n=Ln?{ref:jn}:{},Ei=Fe.useRef(0),Ci=Fe.useRef(ni),vi=tt();return vi!==null?Fe.createElement(en,(0,gt.Z)({},ni,_n)):((!Vt||Vt(Ci.current,ni))&&(Ei.current+=1),Ci.current=ni,Fe.createElement(Je.Provider,{value:Ei.current},Fe.createElement(en,(0,gt.Z)({},ni,_n))))};return Ln?Fe.forwardRef(bn):bn}function Ot(en,Vt){var Ln=(0,wt.Yr)(en),bn=function(ni,jn){var _n=Ln?{ref:jn}:{};return tt(),Fe.createElement(en,(0,gt.Z)({},ni,_n))};return Ln?Fe.memo(Fe.forwardRef(bn),Vt):Fe.memo(bn,Vt)}return{makeImmutable:Tt,responseImmutable:Ot,useImmutableMark:tt}}var Te=xt(),te=Te.makeImmutable,ne=Te.responseImmutable,he=Te.useImmutableMark,se=xt(),ge=se.makeImmutable,ve=se.responseImmutable,Pe=se.useImmutableMark,ke=Ct(),we=ke;function Oe(Je,tt){var Tt=Fe.useRef(0);Tt.current+=1;var Ot=Fe.useRef(Je),en=[];Object.keys(Je||{}).map(function(Ln){var bn;(Je==null?void 0:Je[Ln])!==((bn=Ot.current)===null||bn===void 0?void 0:bn[Ln])&&en.push(Ln)}),Ot.current=Je;var Vt=Fe.useRef([]);return en.length&&(Vt.current=en),Fe.useDebugValue(Tt.current),Fe.useDebugValue(Vt.current.join(", ")),tt&&console.log("".concat(tt,":"),Tt.current,Vt.current),Tt.current}var ze=null,We=Fe.memo(function(){var Je=Oe();return Fe.createElement("h1",null,"Render Times: ",Je)});We.displayName="RenderBlock";var Ue=Se(80665),ut=Se(57259),Ke=Se(80962),Ht=Se(92310),St=Se.n(Ht),_t=Se(79722),Qt=Se(69004),qt=Se(51395),sn=Fe.createContext({renderWithProps:!1}),Bn=sn,yt="RC_TABLE_KEY";function Ge(Je){return Je==null?[]:Array.isArray(Je)?Je:[Je]}function tn(Je){var tt=[],Tt={};return Je.forEach(function(Ot){for(var en=Ot||{},Vt=en.key,Ln=en.dataIndex,bn=Vt||Ge(Ln).join("-")||yt;Tt[bn];)bn="".concat(bn,"_next");Tt[bn]=!0,tt.push(bn)}),tt}function Wn(Je){return Je!=null}function Qn(Je){return Je&&(0,Ue.Z)(Je)==="object"&&!Array.isArray(Je)&&!Fe.isValidElement(Je)}function Dt(Je,tt,Tt,Ot,en,Vt){var Ln=Fe.useContext(Bn),bn=Pe(),wn=(0,_t.Z)(function(){if(Wn(Ot))return[Ot];var ni=tt==null||tt===""?[]:Array.isArray(tt)?tt:[tt],jn=(0,Qt.Z)(Je,ni),_n=jn,Ei=void 0;if(en){var Ci=en(jn,Je,Tt);Qn(Ci)?(_n=Ci.children,Ei=Ci.props,Ln.renderWithProps=!0):_n=Ci}return[_n,Ei]},[bn,Je,Ot,tt,en,Tt],function(ni,jn){if(Vt){var _n=(0,it.Z)(ni,2),Ei=_n[1],Ci=(0,it.Z)(jn,2),vi=Ci[1];return Vt(vi,Ei)}return Ln.renderWithProps?!0:!(0,pt.Z)(ni,jn,!0)});return wn}function $t(Je,tt,Tt,Ot){var en=Je+tt-1;return Je<=Ot&&en>=Tt}function cn(Je,tt){return nt(we,function(Tt){var Ot=$t(Je,tt||1,Tt.hoverStartRow,Tt.hoverEndRow);return[Ot,Tt.onHover]})}var Zn=function(tt){var Tt=tt.ellipsis,Ot=tt.rowType,en=tt.children,Vt,Ln=Tt===!0?{showTitle:!0}:Tt;return Ln&&(Ln.showTitle||Ot==="header")&&(typeof en=="string"||typeof en=="number"?Vt=en.toString():Fe.isValidElement(en)&&typeof en.props.children=="string"&&(Vt=en.props.children)),Vt};function hn(Je){var tt,Tt,Ot,en,Vt,Ln,bn,wn,ni=Je.component,jn=Je.children,_n=Je.ellipsis,Ei=Je.scope,Ci=Je.prefixCls,vi=Je.className,Yi=Je.align,xi=Je.record,ir=Je.render,_i=Je.dataIndex,ur=Je.renderIndex,Yr=Je.shouldCellUpdate,ao=Je.index,pr=Je.rowType,Ar=Je.colSpan,bo=Je.rowSpan,cr=Je.fixLeft,Or=Je.fixRight,mr=Je.firstFixLeft,Zi=Je.lastFixLeft,or=Je.firstFixRight,Rr=Je.lastFixRight,so=Je.appendNode,uo=Je.additionalProps,ar=uo===void 0?{}:uo,Eo=Je.isSticky,Io="".concat(Ci,"-cell"),Zo=nt(we,["supportSticky","allColumnsFixedLeft"]),Ho=Zo.supportSticky,za=Zo.allColumnsFixedLeft,qo=Dt(xi,_i,ur,jn,ir,Yr),wo=(0,it.Z)(qo,2),Jr=wo[0],po=wo[1],Ta={},Pa=typeof cr=="number"&&Ho,Ga=typeof Or=="number"&&Ho;Pa&&(Ta.position="sticky",Ta.left=cr),Ga&&(Ta.position="sticky",Ta.right=Or);var vo=(tt=(Tt=(Ot=po==null?void 0:po.colSpan)!==null&&Ot!==void 0?Ot:ar.colSpan)!==null&&Tt!==void 0?Tt:Ar)!==null&&tt!==void 0?tt:1,io=(en=(Vt=(Ln=po==null?void 0:po.rowSpan)!==null&&Ln!==void 0?Ln:ar.rowSpan)!==null&&Vt!==void 0?Vt:bo)!==null&&en!==void 0?en:1,Po=cn(ao,io),Ur=(0,it.Z)(Po,2),Br=Ur[0],Ai=Ur[1],xr=function(ho){var Bs;xi&&Ai(ao,ao+io-1),ar==null||(Bs=ar.onMouseEnter)===null||Bs===void 0||Bs.call(ar,ho)},ko=function(ho){var Bs;xi&&Ai(-1,-1),ar==null||(Bs=ar.onMouseLeave)===null||Bs===void 0||Bs.call(ar,ho)};if(vo===0||io===0)return null;var Uo=(bn=ar.title)!==null&&bn!==void 0?bn:Zn({rowType:pr,ellipsis:_n,children:Jr}),Xs=St()(Io,vi,(wn={},(0,Ke.Z)(wn,"".concat(Io,"-fix-left"),Pa&&Ho),(0,Ke.Z)(wn,"".concat(Io,"-fix-left-first"),mr&&Ho),(0,Ke.Z)(wn,"".concat(Io,"-fix-left-last"),Zi&&Ho),(0,Ke.Z)(wn,"".concat(Io,"-fix-left-all"),Zi&&za&&Ho),(0,Ke.Z)(wn,"".concat(Io,"-fix-right"),Ga&&Ho),(0,Ke.Z)(wn,"".concat(Io,"-fix-right-first"),or&&Ho),(0,Ke.Z)(wn,"".concat(Io,"-fix-right-last"),Rr&&Ho),(0,Ke.Z)(wn,"".concat(Io,"-ellipsis"),_n),(0,Ke.Z)(wn,"".concat(Io,"-with-append"),so),(0,Ke.Z)(wn,"".concat(Io,"-fix-sticky"),(Pa||Ga)&&Eo&&Ho),(0,Ke.Z)(wn,"".concat(Io,"-row-hover"),!po&&Br),wn),ar.className,po==null?void 0:po.className),As={};Yi&&(As.textAlign=Yi);var sl=(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({},Ta),ar.style),As),po==null?void 0:po.style),ya=Jr;return(0,Ue.Z)(ya)==="object"&&!Array.isArray(ya)&&!Fe.isValidElement(ya)&&(ya=null),_n&&(Zi||or)&&(ya=Fe.createElement("span",{className:"".concat(Io,"-content")},ya)),Fe.createElement(ni,(0,gt.Z)({},po,ar,{className:Xs,style:sl,title:Uo,scope:Ei,onMouseEnter:xr,onMouseLeave:ko,colSpan:vo!==1?vo:null,rowSpan:io!==1?io:null}),so,ya)}var ii=Fe.memo(hn);function mt(Je,tt,Tt,Ot,en,Vt){var Ln=Tt[Je]||{},bn=Tt[tt]||{},wn,ni;Ln.fixed==="left"?wn=Ot.left[en==="rtl"?tt:Je]:bn.fixed==="right"&&(ni=Ot.right[en==="rtl"?Je:tt]);var jn=!1,_n=!1,Ei=!1,Ci=!1,vi=Tt[tt+1],Yi=Tt[Je-1],xi=!(Vt!=null&&Vt.children);if(en==="rtl"){if(wn!==void 0){var ir=Yi&&Yi.fixed==="left";Ci=!ir&&xi}else if(ni!==void 0){var _i=vi&&vi.fixed==="right";Ei=!_i&&xi}}else if(wn!==void 0){var ur=vi&&vi.fixed==="left";jn=!ur&&xi}else if(ni!==void 0){var Yr=Yi&&Yi.fixed==="right";_n=!Yr&&xi}return{fixLeft:wn,fixRight:ni,lastFixLeft:jn,firstFixRight:_n,lastFixRight:Ei,firstFixLeft:Ci,isSticky:Ot.isSticky}}var Xn=Fe.createContext({}),ri=Xn;function pi(Je){var tt=Je.className,Tt=Je.index,Ot=Je.children,en=Je.colSpan,Vt=en===void 0?1:en,Ln=Je.rowSpan,bn=Je.align,wn=nt(we,["prefixCls","direction"]),ni=wn.prefixCls,jn=wn.direction,_n=Fe.useContext(ri),Ei=_n.scrollColumnIndex,Ci=_n.stickyOffsets,vi=_n.flattenColumns,Yi=_n.columns,xi=Tt+Vt-1,ir=xi+1===Ei?Vt+1:Vt,_i=mt(Tt,Tt+ir-1,vi,Ci,jn,Yi==null?void 0:Yi[Tt]);return Fe.createElement(ii,(0,gt.Z)({className:tt,index:Tt,component:"td",prefixCls:ni,record:null,dataIndex:null,align:bn,colSpan:ir,rowSpan:Ln,render:function(){return Ot}},_i))}var Mn=Se(19149),Gt=["children"];function zt(Je){var tt=Je.children,Tt=(0,Mn.Z)(Je,Gt);return Fe.createElement("tr",Tt,tt)}function Mt(Je){var tt=Je.children;return tt}Mt.Row=zt,Mt.Cell=pi;var at=Mt;function jt(Je){var tt=Je.children,Tt=Je.stickyOffsets,Ot=Je.flattenColumns,en=Je.columns,Vt=nt(we,"prefixCls"),Ln=Ot.length-1,bn=Ot[Ln],wn=Fe.useMemo(function(){return{stickyOffsets:Tt,flattenColumns:Ot,scrollColumnIndex:bn!=null&&bn.scrollbar?Ln:null,columns:en}},[bn,Ot,Ln,Tt,en]);return Fe.createElement(ri.Provider,{value:wn},Fe.createElement("tfoot",{className:"".concat(Vt,"-summary")},tt))}var Et=ve(jt),dt=at,ot=Se(80764),De=Se(29301),xe=Se(48886),me=Se(24387),Ne=Se(59055),He=Se(36994);function Me(Je,tt,Tt,Ot,en,Vt,Ln){Je.push({record:tt,indent:Tt,index:Ln});var bn=Vt(tt),wn=en==null?void 0:en.has(bn);if(tt&&Array.isArray(tt[Ot])&&wn)for(var ni=0;ni<tt[Ot].length;ni+=1)Me(Je,tt[Ot][ni],Tt+1,Ot,en,Vt,ni)}function et(Je,tt,Tt,Ot){var en=Fe.useMemo(function(){if(Tt!=null&&Tt.size){for(var Vt=[],Ln=0;Ln<(Je==null?void 0:Je.length);Ln+=1){var bn=Je[Ln];Me(Vt,bn,0,tt,Tt,Ot,Ln)}return Vt}return Je==null?void 0:Je.map(function(wn,ni){return{record:wn,indent:0,index:ni}})},[Je,tt,Tt,Ot]);return en}function Ut(Je){var tt=Je.prefixCls,Tt=Je.children,Ot=Je.component,en=Je.cellComponent,Vt=Je.className,Ln=Je.expanded,bn=Je.colSpan,wn=Je.isEmpty,ni=nt(we,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),jn=ni.scrollbarSize,_n=ni.fixHeader,Ei=ni.fixColumn,Ci=ni.componentWidth,vi=ni.horizonScroll,Yi=Tt;return(wn?vi&&Ci:Ei)&&(Yi=Fe.createElement("div",{style:{width:Ci-(_n?jn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(tt,"-expanded-row-fixed")},Yi)),Fe.createElement(Ot,{className:Vt,style:{display:Ln?null:"none"}},Fe.createElement(ii,{component:en,prefixCls:tt,colSpan:bn},Yi))}var rn=Ut;function ht(Je,tt,Tt,Ot){var en=nt(we,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Vt=en.flattenColumns,Ln=en.expandableType,bn=en.expandedKeys,wn=en.childrenColumnName,ni=en.onTriggerExpand,jn=en.rowExpandable,_n=en.onRow,Ei=en.expandRowByClick,Ci=en.rowClassName,vi=Ln==="nest",Yi=Ln==="row"&&(!jn||jn(Je)),xi=Yi||vi,ir=bn&&bn.has(tt),_i=wn&&Je&&Je[wn],ur=(0,ot.useEvent)(ni),Yr=_n==null?void 0:_n(Je,Tt),ao=Yr==null?void 0:Yr.onClick,pr=function(Or){Ei&&xi&&ni(Je,Or);for(var mr=arguments.length,Zi=new Array(mr>1?mr-1:0),or=1;or<mr;or++)Zi[or-1]=arguments[or];ao==null||ao.apply(void 0,[Or].concat(Zi))},Ar;typeof Ci=="string"?Ar=Ci:typeof Ci=="function"&&(Ar=Ci(Je,Tt,Ot));var bo=tn(Vt);return(0,ut.Z)((0,ut.Z)({},en),{},{columnsKey:bo,nestExpandable:vi,expanded:ir,hasNestChildren:_i,record:Je,onTriggerExpand:ur,rowSupportExpand:Yi,expandable:xi,rowProps:(0,ut.Z)((0,ut.Z)({},Yr),{},{className:St()(Ar,Yr==null?void 0:Yr.className),onClick:pr})})}function Pt(Je,tt,Tt,Ot,en){var Vt=Je.record,Ln=Je.prefixCls,bn=Je.columnsKey,wn=Je.fixedInfoList,ni=Je.expandIconColumnIndex,jn=Je.nestExpandable,_n=Je.indentSize,Ei=Je.expandIcon,Ci=Je.expanded,vi=Je.hasNestChildren,Yi=Je.onTriggerExpand,xi=bn[Tt],ir=wn[Tt],_i;Tt===(ni||0)&&jn&&(_i=Fe.createElement(Fe.Fragment,null,Fe.createElement("span",{style:{paddingLeft:"".concat(_n*Ot,"px")},className:"".concat(Ln,"-row-indent indent-level-").concat(Ot)}),Ei({prefixCls:Ln,expanded:Ci,expandable:vi,record:Vt,onExpand:Yi})));var ur;return tt.onCell&&(ur=tt.onCell(Vt,en)),{key:xi,fixedInfo:ir,appendCellNode:_i,additionalCellProps:ur||{}}}function ln(Je){var tt=Je.className,Tt=Je.style,Ot=Je.record,en=Je.index,Vt=Je.renderIndex,Ln=Je.rowKey,bn=Je.indent,wn=bn===void 0?0:bn,ni=Je.rowComponent,jn=Je.cellComponent,_n=Je.scopeCellComponent,Ei=ht(Ot,Ln,en,wn),Ci=Ei.prefixCls,vi=Ei.flattenColumns,Yi=Ei.expandedRowClassName,xi=Ei.expandedRowRender,ir=Ei.rowProps,_i=Ei.expanded,ur=Ei.rowSupportExpand,Yr=Fe.useState(!1),ao=(0,it.Z)(Yr,2),pr=ao[0],Ar=ao[1];Fe.useEffect(function(){_i&&Ar(!0)},[_i]);var bo=Fe.createElement(ni,(0,gt.Z)({},ir,{"data-row-key":Ln,className:St()(tt,"".concat(Ci,"-row"),"".concat(Ci,"-row-level-").concat(wn),ir==null?void 0:ir.className),style:(0,ut.Z)((0,ut.Z)({},Tt),ir==null?void 0:ir.style)}),vi.map(function(Zi,or){var Rr=Zi.render,so=Zi.dataIndex,uo=Zi.className,ar=Pt(Ei,Zi,or,wn,en),Eo=ar.key,Io=ar.fixedInfo,Zo=ar.appendCellNode,Ho=ar.additionalCellProps;return Fe.createElement(ii,(0,gt.Z)({className:uo,ellipsis:Zi.ellipsis,align:Zi.align,scope:Zi.rowScope,component:Zi.rowScope?_n:jn,prefixCls:Ci,key:Eo,record:Ot,index:en,renderIndex:Vt,dataIndex:so,render:Rr,shouldCellUpdate:Zi.shouldCellUpdate},Io,{appendNode:Zo,additionalProps:Ho}))})),cr;if(ur&&(pr||_i)){var Or=xi(Ot,en,wn+1,_i),mr=Yi&&Yi(Ot,en,wn);cr=Fe.createElement(rn,{expanded:_i,className:St()("".concat(Ci,"-expanded-row"),"".concat(Ci,"-expanded-row-level-").concat(wn+1),mr),prefixCls:Ci,component:ni,cellComponent:jn,colSpan:vi.length,isEmpty:!1},Or)}return Fe.createElement(Fe.Fragment,null,bo,cr)}ln.displayName="BodyRow";var Fn=ve(ln);function oi(Je){var tt=Je.columnKey,Tt=Je.onColumnResize,Ot=Fe.useRef();return Fe.useEffect(function(){Ot.current&&Tt(tt,Ot.current.offsetWidth)},[]),Fe.createElement(De.Z,{data:tt},Fe.createElement("td",{ref:Ot,style:{padding:0,border:0,height:0}},Fe.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ci(Je){var tt=Je.prefixCls,Tt=Je.columnsKey,Ot=Je.onColumnResize;return Fe.createElement("tr",{"aria-hidden":"true",className:"".concat(tt,"-measure-row"),style:{height:0,fontSize:0}},Fe.createElement(De.Z.Collection,{onBatchResize:function(Vt){Vt.forEach(function(Ln){var bn=Ln.data,wn=Ln.size;Ot(bn,wn.offsetWidth)})}},Tt.map(function(en){return Fe.createElement(oi,{key:en,columnKey:en,onColumnResize:Ot})})))}function di(Je){var tt=Je.data,Tt=Je.measureColumnWidth,Ot=nt(we,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),en=Ot.prefixCls,Vt=Ot.getComponent,Ln=Ot.onColumnResize,bn=Ot.flattenColumns,wn=Ot.getRowKey,ni=Ot.expandedKeys,jn=Ot.childrenColumnName,_n=Ot.emptyNode,Ei=et(tt,jn,ni,wn),Ci=Fe.useRef({renderWithProps:!1}),vi=Vt(["body","wrapper"],"tbody"),Yi=Vt(["body","row"],"tr"),xi=Vt(["body","cell"],"td"),ir=Vt(["body","cell"],"th"),_i;tt.length?_i=Ei.map(function(Yr,ao){var pr=Yr.record,Ar=Yr.indent,bo=Yr.index,cr=wn(pr,ao);return Fe.createElement(Fn,{key:cr,rowKey:cr,record:pr,index:ao,renderIndex:bo,rowComponent:Yi,cellComponent:xi,scopeCellComponent:ir,getRowKey:wn,indent:Ar})}):_i=Fe.createElement(rn,{expanded:!0,className:"".concat(en,"-placeholder"),prefixCls:en,component:Yi,cellComponent:xi,colSpan:bn.length,isEmpty:!0},_n);var ur=tn(bn);return Fe.createElement(Bn.Provider,{value:Ci.current},Fe.createElement(vi,{className:"".concat(en,"-tbody")},Tt&&Fe.createElement(ci,{prefixCls:en,columnsKey:ur,onColumnResize:Ln}),_i))}di.displayName="Body";var mi=ve(di),Ui=["expandable"],vr="RC_TABLE_INTERNAL_COL_DEFINE";function lr(Je){var tt=Je.expandable,Tt=(0,Mn.Z)(Je,Ui),Ot;return"expandable"in Je?Ot=(0,ut.Z)((0,ut.Z)({},Tt),tt):Ot=Tt,Ot.showExpandColumn===!1&&(Ot.expandIconColumnIndex=-1),Ot}var gr=["columnType"];function wr(Je){for(var tt=Je.colWidths,Tt=Je.columns,Ot=Je.columCount,en=[],Vt=Ot||Tt.length,Ln=!1,bn=Vt-1;bn>=0;bn-=1){var wn=tt[bn],ni=Tt&&Tt[bn],jn=ni&&ni[vr];if(wn||jn||Ln){var _n=jn||{},Ei=_n.columnType,Ci=(0,Mn.Z)(_n,gr);en.unshift(Fe.createElement("col",(0,gt.Z)({key:bn,style:{width:wn}},Ci))),Ln=!0}}return Fe.createElement("colgroup",null,en)}var Zr=wr,Ki=Se(26390),Xr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Vi(Je,tt){return(0,Fe.useMemo)(function(){for(var Tt=[],Ot=0;Ot<tt;Ot+=1){var en=Je[Ot];if(en!==void 0)Tt[Ot]=en;else return null}return Tt},[Je.join("_"),tt])}var be=Fe.forwardRef(function(Je,tt){var Tt=Je.className,Ot=Je.noData,en=Je.columns,Vt=Je.flattenColumns,Ln=Je.colWidths,bn=Je.columCount,wn=Je.stickyOffsets,ni=Je.direction,jn=Je.fixHeader,_n=Je.stickyTopOffset,Ei=Je.stickyBottomOffset,Ci=Je.stickyClassName,vi=Je.onScroll,Yi=Je.maxContentScroll,xi=Je.children,ir=(0,Mn.Z)(Je,Xr),_i=nt(we,["prefixCls","scrollbarSize","isSticky"]),ur=_i.prefixCls,Yr=_i.scrollbarSize,ao=_i.isSticky,pr=ao&&!jn?0:Yr,Ar=Fe.useRef(null),bo=Fe.useCallback(function(uo){(0,wt.mH)(tt,uo),(0,wt.mH)(Ar,uo)},[]);Fe.useEffect(function(){var uo;function ar(Eo){var Io=Eo,Zo=Io.currentTarget,Ho=Io.deltaX;Ho&&(vi({currentTarget:Zo,scrollLeft:Zo.scrollLeft+Ho}),Eo.preventDefault())}return(uo=Ar.current)===null||uo===void 0||uo.addEventListener("wheel",ar),function(){var Eo;(Eo=Ar.current)===null||Eo===void 0||Eo.removeEventListener("wheel",ar)}},[]);var cr=Fe.useMemo(function(){return Vt.every(function(uo){return uo.width})},[Vt]),Or=Vt[Vt.length-1],mr={fixed:Or?Or.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ur,"-cell-scrollbar")}}},Zi=(0,Fe.useMemo)(function(){return pr?[].concat((0,Ki.Z)(en),[mr]):en},[pr,en]),or=(0,Fe.useMemo)(function(){return pr?[].concat((0,Ki.Z)(Vt),[mr]):Vt},[pr,Vt]),Rr=(0,Fe.useMemo)(function(){var uo=wn.right,ar=wn.left;return(0,ut.Z)((0,ut.Z)({},wn),{},{left:ni==="rtl"?[].concat((0,Ki.Z)(ar.map(function(Eo){return Eo+pr})),[0]):ar,right:ni==="rtl"?uo:[].concat((0,Ki.Z)(uo.map(function(Eo){return Eo+pr})),[0]),isSticky:ao})},[pr,wn,ao]),so=Vi(Ln,bn);return Fe.createElement("div",{style:(0,ut.Z)({overflow:"hidden"},ao?{top:_n,bottom:Ei}:{}),ref:bo,className:St()(Tt,(0,Ke.Z)({},Ci,!!Ci))},Fe.createElement("table",{style:{tableLayout:"fixed",visibility:Ot||so?null:"hidden"}},(!Ot||!Yi||cr)&&Fe.createElement(Zr,{colWidths:so?[].concat((0,Ki.Z)(so),[pr]):[],columCount:bn+1,columns:or}),xi((0,ut.Z)((0,ut.Z)({},ir),{},{stickyOffsets:Rr,columns:Zi,flattenColumns:or}))))});be.displayName="FixedHolder";var Pi=Fe.memo(be);function Gi(Je){var tt=Je.cells,Tt=Je.stickyOffsets,Ot=Je.flattenColumns,en=Je.rowComponent,Vt=Je.cellComponent,Ln=Je.tdCellComponent,bn=Je.onHeaderRow,wn=Je.index,ni=nt(we,["prefixCls","direction"]),jn=ni.prefixCls,_n=ni.direction,Ei;bn&&(Ei=bn(tt.map(function(vi){return vi.column}),wn));var Ci=tn(tt.map(function(vi){return vi.column}));return Fe.createElement(en,Ei,tt.map(function(vi,Yi){var xi=vi.column,ir=mt(vi.colStart,vi.colEnd,Ot,Tt,_n,xi),_i;return xi&&xi.onHeaderCell&&(_i=vi.column.onHeaderCell(xi)),Fe.createElement(ii,(0,gt.Z)({},vi,{scope:xi.title?vi.colSpan>1?"colgroup":"col":null,ellipsis:xi.ellipsis,align:xi.align,component:xi.title?Vt:Ln,prefixCls:jn,key:Ci[Yi]},ir,{additionalProps:_i,rowType:"header"}))}))}Gi.displayName="HeaderRow";var hr=Gi;function $i(Je){var tt=[];function Tt(Ln,bn){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;tt[wn]=tt[wn]||[];var ni=bn,jn=Ln.filter(Boolean).map(function(_n){var Ei={key:_n.key,className:_n.className||"",children:_n.title,column:_n,colStart:ni},Ci=1,vi=_n.children;return vi&&vi.length>0&&(Ci=Tt(vi,ni,wn+1).reduce(function(Yi,xi){return Yi+xi},0),Ei.hasSubColumns=!0),"colSpan"in _n&&(Ci=_n.colSpan),"rowSpan"in _n&&(Ei.rowSpan=_n.rowSpan),Ei.colSpan=Ci,Ei.colEnd=Ei.colStart+Ci-1,tt[wn].push(Ei),ni+=Ci,Ci});return jn}Tt(Je,0);for(var Ot=tt.length,en=function(bn){tt[bn].forEach(function(wn){!("rowSpan"in wn)&&!wn.hasSubColumns&&(wn.rowSpan=Ot-bn)})},Vt=0;Vt<Ot;Vt+=1)en(Vt);return tt}function fo(Je){var tt=Je.stickyOffsets,Tt=Je.columns,Ot=Je.flattenColumns,en=Je.onHeaderRow,Vt=nt(we,["prefixCls","getComponent"]),Ln=Vt.prefixCls,bn=Vt.getComponent,wn=Fe.useMemo(function(){return $i(Tt)},[Tt]),ni=bn(["header","wrapper"],"thead"),jn=bn(["header","row"],"tr"),_n=bn(["header","cell"],"th"),Ei=bn(["header","cell"],"td");return Fe.createElement(ni,{className:"".concat(Ln,"-thead")},wn.map(function(Ci,vi){var Yi=Fe.createElement(hr,{key:vi,flattenColumns:Ot,cells:Ci,stickyOffsets:tt,rowComponent:jn,cellComponent:_n,tdCellComponent:Ei,onHeaderRow:en,index:vi});return Yi}))}var _r=ve(fo),Co=Se(38298);function vn(Je){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof tt=="number"?tt:tt.endsWith("%")?Je*parseFloat(tt)/100:null}function an(Je,tt){return Fe.useMemo(function(){if(tt&&tt>0){var Tt=0,Ot=0;Je.forEach(function(ni){var jn=vn(tt,ni.width);jn?Tt+=jn:Ot+=1});var en=tt-Tt,Vt=Ot,Ln=en/Ot,bn=0,wn=Je.map(function(ni){var jn=(0,ut.Z)({},ni),_n=vn(tt,jn.width);if(_n)jn.width=_n;else{var Ei=Math.floor(Ln);jn.width=Vt===1?en:Ei,en-=Ei,Vt-=1}return bn+=jn.width,jn});return[wn,bn]}return[Je,tt]},[Je,tt])}var Jt=["children"],ft=["fixed"];function pn(Je){return(0,Co.Z)(Je).filter(function(tt){return Fe.isValidElement(tt)}).map(function(tt){var Tt=tt.key,Ot=tt.props,en=Ot.children,Vt=(0,Mn.Z)(Ot,Jt),Ln=(0,ut.Z)({key:Tt},Vt);return en&&(Ln.children=pn(en)),Ln})}function Rn(Je){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Je.filter(function(Tt){return Tt&&(0,Ue.Z)(Tt)==="object"}).reduce(function(Tt,Ot,en){var Vt=Ot.fixed,Ln=Vt===!0?"left":Vt,bn="".concat(tt,"-").concat(en),wn=Ot.children;return wn&&wn.length>0?[].concat((0,Ki.Z)(Tt),(0,Ki.Z)(Rn(wn,bn).map(function(ni){return(0,ut.Z)({fixed:Ln},ni)}))):[].concat((0,Ki.Z)(Tt),[(0,ut.Z)((0,ut.Z)({key:bn},Ot),{},{fixed:Ln})])},[])}function It(Je){for(var tt=!0,Tt=0;Tt<Je.length;Tt+=1){var Ot=Je[Tt];if(tt&&Ot.fixed!=="left")tt=!1;else if(!tt&&Ot.fixed==="left"){warning(!1,"Index ".concat(Tt-1," of `columns` missing `fixed='left'` prop."));break}}for(var en=!0,Vt=Je.length-1;Vt>=0;Vt-=1){var Ln=Je[Vt];if(en&&Ln.fixed!=="right")en=!1;else if(!en&&Ln.fixed==="right"){warning(!1,"Index ".concat(Vt+1," of `columns` missing `fixed='right'` prop."));break}}}function lt(Je){return Je.map(function(tt){var Tt=tt.fixed,Ot=(0,Mn.Z)(tt,ft),en=Tt;return Tt==="left"?en="right":Tt==="right"&&(en="left"),(0,ut.Z)({fixed:en},Ot)})}function yn(Je,tt){var Tt=Je.prefixCls,Ot=Je.columns,en=Je.children,Vt=Je.expandable,Ln=Je.expandedKeys,bn=Je.columnTitle,wn=Je.getRowKey,ni=Je.onTriggerExpand,jn=Je.expandIcon,_n=Je.rowExpandable,Ei=Je.expandIconColumnIndex,Ci=Je.direction,vi=Je.expandRowByClick,Yi=Je.columnWidth,xi=Je.fixed,ir=Je.scrollWidth,_i=Fe.useMemo(function(){return Ot||pn(en)},[Ot,en]),ur=Fe.useMemo(function(){if(Vt){var Or,mr=_i.slice();if(!mr.includes(Ee)){var Zi=Ei||0;Zi>=0&&mr.splice(Zi,0,Ee)}var or=mr.indexOf(Ee);mr=mr.filter(function(ar,Eo){return ar!==Ee||Eo===or});var Rr=_i[or],so;(xi==="left"||xi)&&!Ei?so="left":(xi==="right"||xi)&&Ei===_i.length?so="right":so=Rr?Rr.fixed:null;var uo=(Or={},(0,Ke.Z)(Or,vr,{className:"".concat(Tt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ke.Z)(Or,"title",bn),(0,Ke.Z)(Or,"fixed",so),(0,Ke.Z)(Or,"className","".concat(Tt,"-row-expand-icon-cell")),(0,Ke.Z)(Or,"width",Yi),(0,Ke.Z)(Or,"render",function(Eo,Io,Zo){var Ho=wn(Io,Zo),za=Ln.has(Ho),qo=_n?_n(Io):!0,wo=jn({prefixCls:Tt,expanded:za,expandable:qo,record:Io,onExpand:ni});return vi?Fe.createElement("span",{onClick:function(po){return po.stopPropagation()}},wo):wo}),Or);return mr.map(function(ar){return ar===Ee?uo:ar})}return _i.filter(function(ar){return ar!==Ee})},[Vt,_i,wn,Ln,jn,Ci]),Yr=Fe.useMemo(function(){var Or=ur;return tt&&(Or=tt(Or)),Or.length||(Or=[{render:function(){return null}}]),Or},[tt,ur,Ci]),ao=Fe.useMemo(function(){return Ci==="rtl"?lt(Rn(Yr)):Rn(Yr)},[Yr,Ci,ir]),pr=an(ao,ir),Ar=(0,it.Z)(pr,2),bo=Ar[0],cr=Ar[1];return[Yr,bo,cr]}var Yn=yn;function Di(Je){var tt,Tt=Je.prefixCls,Ot=Je.record,en=Je.onExpand,Vt=Je.expanded,Ln=Je.expandable,bn="".concat(Tt,"-row-expand-icon");if(!Ln)return Fe.createElement("span",{className:St()(bn,"".concat(Tt,"-row-spaced"))});var wn=function(jn){en(Ot,jn),jn.stopPropagation()};return Fe.createElement("span",{className:St()(bn,(tt={},(0,Ke.Z)(tt,"".concat(Tt,"-row-expanded"),Vt),(0,Ke.Z)(tt,"".concat(Tt,"-row-collapsed"),!Vt),tt)),onClick:wn})}function Cn(Je,tt,Tt){var Ot=[];function en(Vt){(Vt||[]).forEach(function(Ln,bn){Ot.push(tt(Ln,bn)),en(Ln[Tt])})}return en(Je),Ot}function bt(Je,tt,Tt){var Ot=lr(Je),en=Ot.expandIcon,Vt=Ot.expandedRowKeys,Ln=Ot.defaultExpandedRowKeys,bn=Ot.defaultExpandAllRows,wn=Ot.expandedRowRender,ni=Ot.onExpand,jn=Ot.onExpandedRowsChange,_n=Ot.childrenColumnName,Ei=en||Di,Ci=_n||"children",vi=Fe.useMemo(function(){return wn?"row":Je.expandable&&Je.internalHooks===je&&Je.expandable.__PARENT_RENDER_ICON__||tt.some(function(ao){return ao&&(0,Ue.Z)(ao)==="object"&&ao[Ci]})?"nest":!1},[!!wn,tt]),Yi=Fe.useState(function(){return Ln||(bn?Cn(tt,Tt,Ci):[])}),xi=(0,it.Z)(Yi,2),ir=xi[0],_i=xi[1],ur=Fe.useMemo(function(){return new Set(Vt||ir||[])},[Vt,ir]),Yr=Fe.useCallback(function(ao){var pr=Tt(ao,tt.indexOf(ao)),Ar,bo=ur.has(pr);bo?(ur.delete(pr),Ar=(0,Ki.Z)(ur)):Ar=[].concat((0,Ki.Z)(ur),[pr]),_i(Ar),ni&&ni(!bo,ao),jn&&jn(Ar)},[Tt,ur,tt,ni,jn]);return[Ot,vi,ur,Ei,Ci,Yr]}function In(Je,tt,Tt,Ot){var en=Je.map(function(Vt,Ln){return mt(Ln,Ln,Je,tt,Tt,Ot==null?void 0:Ot[Ln])});return(0,_t.Z)(function(){return en},[en],function(Vt,Ln){return!(0,pt.Z)(Vt,Ln)})}function gi(Je){var tt=(0,Fe.useRef)(Je),Tt=(0,Fe.useState)({}),Ot=(0,it.Z)(Tt,2),en=Ot[1],Vt=(0,Fe.useRef)(null),Ln=(0,Fe.useRef)([]);function bn(wn){Ln.current.push(wn);var ni=Promise.resolve();Vt.current=ni,ni.then(function(){if(Vt.current===ni){var jn=Ln.current,_n=tt.current;Ln.current=[],jn.forEach(function(Ei){tt.current=Ei(tt.current)}),Vt.current=null,_n!==tt.current&&en({})}})}return(0,Fe.useEffect)(function(){return function(){Vt.current=null}},[]),[tt.current,bn]}function Oi(Je){var tt=(0,Fe.useRef)(Je||null),Tt=(0,Fe.useRef)();function Ot(){window.clearTimeout(Tt.current)}function en(Ln){tt.current=Ln,Ot(),Tt.current=window.setTimeout(function(){tt.current=null,Tt.current=void 0},100)}function Vt(){return tt.current}return(0,Fe.useEffect)(function(){return Ot},[]),[en,Vt]}function Kt(){var Je=Fe.useState(-1),tt=(0,it.Z)(Je,2),Tt=tt[0],Ot=tt[1],en=Fe.useState(-1),Vt=(0,it.Z)(en,2),Ln=Vt[0],bn=Vt[1],wn=Fe.useCallback(function(ni,jn){Ot(ni),bn(jn)},[]);return[Tt,Ln,wn]}var Sn=Se(87746),Wt=(0,Sn.Z)()?window:null;function on(Je,tt){var Tt=(0,Ue.Z)(Je)==="object"?Je:{},Ot=Tt.offsetHeader,en=Ot===void 0?0:Ot,Vt=Tt.offsetSummary,Ln=Vt===void 0?0:Vt,bn=Tt.offsetScroll,wn=bn===void 0?0:bn,ni=Tt.getContainer,jn=ni===void 0?function(){return Wt}:ni,_n=jn()||Wt;return Fe.useMemo(function(){var Ei=!!Je;return{isSticky:Ei,stickyClassName:Ei?"".concat(tt,"-sticky-holder"):"",offsetHeader:en,offsetSummary:Ln,offsetScroll:wn,container:_n}},[wn,en,Ln,tt,_n])}function gn(Je,tt,Tt){var Ot=(0,Fe.useMemo)(function(){for(var en=[],Vt=[],Ln=0,bn=0,wn=0;wn<tt;wn+=1)if(Tt==="rtl"){Vt[wn]=bn,bn+=Je[wn]||0;var ni=tt-wn-1;en[ni]=Ln,Ln+=Je[ni]||0}else{en[wn]=Ln,Ln+=Je[wn]||0;var jn=tt-wn-1;Vt[jn]=bn,bn+=Je[jn]||0}return{left:en,right:Vt}},[Je,tt,Tt]);return Ot}var un=gn;function En(Je){var tt=Je.className,Tt=Je.children;return Fe.createElement("div",{className:tt},Tt)}var Nn=En,Vn=Se(8178),$n=Se(21783),Tn=function(tt,Tt){var Ot,en,Vt=tt.scrollBodyRef,Ln=tt.onScroll,bn=tt.offsetScroll,wn=tt.container,ni=nt(we,"prefixCls"),jn=((Ot=Vt.current)===null||Ot===void 0?void 0:Ot.scrollWidth)||0,_n=((en=Vt.current)===null||en===void 0?void 0:en.clientWidth)||0,Ei=jn&&_n*(_n/jn),Ci=Fe.useRef(),vi=gi({scrollLeft:0,isHiddenScrollBar:!1}),Yi=(0,it.Z)(vi,2),xi=Yi[0],ir=Yi[1],_i=Fe.useRef({delta:0,x:0}),ur=Fe.useState(!1),Yr=(0,it.Z)(ur,2),ao=Yr[0],pr=Yr[1],Ar=function(){pr(!1)},bo=function(or){or.persist(),_i.current.delta=or.pageX-xi.scrollLeft,_i.current.x=0,pr(!0),or.preventDefault()},cr=function(or){var Rr,so=or||((Rr=window)===null||Rr===void 0?void 0:Rr.event),uo=so.buttons;if(!ao||uo===0){ao&&pr(!1);return}var ar=_i.current.x+or.pageX-_i.current.x-_i.current.delta;ar<=0&&(ar=0),ar+Ei>=_n&&(ar=_n-Ei),Ln({scrollLeft:ar/_n*(jn+2)}),_i.current.x=or.pageX},Or=function(){if(Vt.current){var or=(0,$n.os)(Vt.current).top,Rr=or+Vt.current.offsetHeight,so=wn===window?document.documentElement.scrollTop+window.innerHeight:(0,$n.os)(wn).top+wn.clientHeight;Rr-(0,Ne.Z)()<=so||or>=so-bn?ir(function(uo){return(0,ut.Z)((0,ut.Z)({},uo),{},{isHiddenScrollBar:!0})}):ir(function(uo){return(0,ut.Z)((0,ut.Z)({},uo),{},{isHiddenScrollBar:!1})})}},mr=function(or){ir(function(Rr){return(0,ut.Z)((0,ut.Z)({},Rr),{},{scrollLeft:or/jn*_n||0})})};return Fe.useImperativeHandle(Tt,function(){return{setScrollLeft:mr}}),Fe.useEffect(function(){var Zi=(0,Vn.Z)(document.body,"mouseup",Ar,!1),or=(0,Vn.Z)(document.body,"mousemove",cr,!1);return Or(),function(){Zi.remove(),or.remove()}},[Ei,ao]),Fe.useEffect(function(){var Zi=(0,Vn.Z)(wn,"scroll",Or,!1),or=(0,Vn.Z)(window,"resize",Or,!1);return function(){Zi.remove(),or.remove()}},[wn]),Fe.useEffect(function(){xi.isHiddenScrollBar||ir(function(Zi){var or=Vt.current;return or?(0,ut.Z)((0,ut.Z)({},Zi),{},{scrollLeft:or.scrollLeft/or.scrollWidth*or.clientWidth}):Zi})},[xi.isHiddenScrollBar]),jn<=_n||!Ei||xi.isHiddenScrollBar?null:Fe.createElement("div",{style:{height:(0,Ne.Z)(),width:_n,bottom:bn},className:"".concat(ni,"-sticky-scroll")},Fe.createElement("div",{onMouseDown:bo,ref:Ci,className:St()("".concat(ni,"-sticky-scroll-bar"),(0,Ke.Z)({},"".concat(ni,"-sticky-scroll-bar-active"),ao)),style:{width:"".concat(Ei,"px"),transform:"translate3d(".concat(xi.scrollLeft,"px, 0, 0)")}}))},ai=Fe.forwardRef(Tn);function Qi(Je){return null}var Lr=Qi;function qi(Je){return null}var Bt=qi,Si="rc-table",Hi=[],ki={};function Pr(){return"No Data"}function yr(Je){var tt,Tt=(0,ut.Z)({rowKey:"key",prefixCls:Si,emptyText:Pr},Je),Ot=Tt.prefixCls,en=Tt.className,Vt=Tt.rowClassName,Ln=Tt.style,bn=Tt.data,wn=Tt.rowKey,ni=Tt.scroll,jn=Tt.tableLayout,_n=Tt.direction,Ei=Tt.title,Ci=Tt.footer,vi=Tt.summary,Yi=Tt.caption,xi=Tt.id,ir=Tt.showHeader,_i=Tt.components,ur=Tt.emptyText,Yr=Tt.onRow,ao=Tt.onHeaderRow,pr=Tt.internalHooks,Ar=Tt.transformColumns,bo=Tt.internalRefs,cr=Tt.tailor,Or=Tt.sticky,mr=bn||Hi,Zi=!!mr.length,or=pr===je,Rr=Fe.useCallback(function(Na,hs){return(0,Qt.Z)(_i,Na)||hs},[_i]),so=Fe.useMemo(function(){return typeof wn=="function"?wn:function(Na){var hs=Na&&Na[wn];return hs}},[wn]),uo=Rr(["body"]),ar=Kt(),Eo=(0,it.Z)(ar,3),Io=Eo[0],Zo=Eo[1],Ho=Eo[2],za=bt(Tt,mr,so),qo=(0,it.Z)(za,6),wo=qo[0],Jr=qo[1],po=qo[2],Ta=qo[3],Pa=qo[4],Ga=qo[5],vo=ni==null?void 0:ni.x,io=Fe.useState(0),Po=(0,it.Z)(io,2),Ur=Po[0],Br=Po[1],Ai=Yn((0,ut.Z)((0,ut.Z)((0,ut.Z)({},Tt),wo),{},{expandable:!!wo.expandedRowRender,columnTitle:wo.columnTitle,expandedKeys:po,getRowKey:so,onTriggerExpand:Ga,expandIcon:Ta,expandIconColumnIndex:wo.expandIconColumnIndex,direction:_n,scrollWidth:or&&cr&&typeof vo=="number"?vo:null}),or?Ar:null),xr=(0,it.Z)(Ai,3),ko=xr[0],Uo=xr[1],Xs=xr[2],As=Xs!=null?Xs:vo,sl=Fe.useMemo(function(){return{columns:ko,flattenColumns:Uo}},[ko,Uo]),ya=Fe.useRef(),Da=Fe.useRef(),ho=Fe.useRef(),Bs=Fe.useRef(),ll=Fe.useRef(),Ma=Fe.useState(!1),ja=(0,it.Z)(Ma,2),Ka=ja[0],us=ja[1],Os=Fe.useState(!1),na=(0,it.Z)(Os,2),Xa=na[0],Hs=na[1],Ba=gi(new Map),yo=(0,it.Z)(Ba,2),gs=yo[0],Is=yo[1],bu=tn(Uo),$l=bu.map(function(Na){return gs.get(Na)}),Ha=Fe.useMemo(function(){return $l},[$l.join("_")]),ul=un(Ha,Uo.length,_n),ss=ni&&Wn(ni.y),ns=ni&&Wn(As)||!!wo.fixed,du=ns&&Uo.some(function(Na){var hs=Na.fixed;return hs}),ah=Fe.useRef(),Ol=on(Or,Ot),Ku=Ol.isSticky,Vu=Ol.offsetHeader,ql=Ol.offsetSummary,Ca=Ol.offsetScroll,Ja=Ol.stickyClassName,Ws=Ol.container,is=Fe.useMemo(function(){return vi==null?void 0:vi(mr)},[vi,mr]),ba=(ss||Ku)&&Fe.isValidElement(is)&&is.type===at&&is.props.fixed,Zs,Sl,Eu;ss&&(Sl={overflowY:"scroll",maxHeight:ni.y}),ns&&(Zs={overflowX:"auto"},ss||(Sl={overflowY:"hidden"}),Eu={width:As===!0?"auto":As,minWidth:"100%"});var ac=Fe.useCallback(function(Na,hs){(0,xe.Z)(ya.current)&&Is(function(gl){if(gl.get(Na)!==hs){var fu=new Map(gl);return fu.set(Na,hs),fu}return gl})},[]),Yt=Oi(null),wh=(0,it.Z)(Yt,2),sh=wh[0],Rc=wh[1];function vd(Na,hs){hs&&(typeof hs=="function"?hs(Na):hs.scrollLeft!==Na&&(hs.scrollLeft=Na,hs.scrollLeft!==Na&&setTimeout(function(){hs.scrollLeft=Na},0)))}var Rh=(0,kt.Z)(function(Na){var hs=Na.currentTarget,gl=Na.scrollLeft,fu=_n==="rtl",gu=typeof gl=="number"?gl:hs.scrollLeft,uc=hs||ki;if(!Rc()||Rc()===uc){var Hh;sh(uc),vd(gu,Da.current),vd(gu,ho.current),vd(gu,ll.current),vd(gu,(Hh=ah.current)===null||Hh===void 0?void 0:Hh.setScrollLeft)}var Gd=hs||Da.current;if(Gd){var Du=Gd.scrollWidth,Uu=Gd.clientWidth;if(Du===Uu){us(!1),Hs(!1);return}fu?(us(-gu<Du-Uu),Hs(-gu>0)):(us(gu>0),Hs(gu<Du-Uu))}}),Ph=function(){ns&&ho.current?Rh({currentTarget:ho.current}):(us(!1),Hs(!1))},cf=function(hs){var gl=hs.width;gl!==Ur&&(Ph(),Br(ya.current?ya.current.offsetWidth:gl))},fl=Fe.useRef(!1);Fe.useEffect(function(){fl.current&&Ph()},[ns,bn,ko.length]),Fe.useEffect(function(){fl.current=!0},[]);var id=Fe.useState(0),Od=(0,it.Z)(id,2),Id=Od[0],Rd=Od[1],ff=Fe.useState(!0),zd=(0,it.Z)(ff,2),jd=zd[0],cu=zd[1];Fe.useEffect(function(){(!cr||!or)&&(ho.current instanceof Element?Rd((0,Ne.o)(ho.current).width):Rd((0,Ne.o)(Bs.current).width)),cu((0,me.G)("position","sticky"))},[]),Fe.useEffect(function(){or&&bo&&(bo.body.current=ho.current)});var zh=Fe.useCallback(function(Na){return Fe.createElement(Fe.Fragment,null,Fe.createElement(_r,Na),ba==="top"&&Fe.createElement(Et,Na,is))},[ba,is]),zc=Fe.useCallback(function(Na){return Fe.createElement(Et,Na,is)},[is]),Yu=Rr(["table"],"table"),jh=Fe.useMemo(function(){return jn||(du?As==="max-content"?"auto":"fixed":ss||Ku||Uo.some(function(Na){var hs=Na.ellipsis;return hs})?"fixed":"auto")},[ss,du,Uo,jn,Ku]),rd,od={colWidths:Ha,columCount:Uo.length,stickyOffsets:ul,onHeaderRow:ao,fixHeader:ss,scroll:ni},Il=Fe.useMemo(function(){return Zi?null:typeof ur=="function"?ur():ur},[Zi,ur]),sc=Fe.createElement(mi,{data:mr,measureColumnWidth:ss||ns||Ku}),Hd=Fe.createElement(Zr,{colWidths:Uo.map(function(Na){var hs=Na.width;return hs}),columns:Uo}),_l=Yi!=null?Fe.createElement("caption",{className:"".concat(Ot,"-caption")},Yi):void 0,yd=(0,He.Z)(Tt,{data:!0}),Wd=(0,He.Z)(Tt,{aria:!0});if(ss||Ku){var lc;typeof uo=="function"?(lc=uo(mr,{scrollbarSize:Id,ref:ho,onScroll:Rh}),od.colWidths=Uo.map(function(Na,hs){var gl=Na.width,fu=hs===Uo.length-1?gl-Id:gl;return typeof fu=="number"&&!Number.isNaN(fu)?fu:0})):lc=Fe.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},Zs),Sl),onScroll:Rh,ref:ho,className:St()("".concat(Ot,"-body"))},Fe.createElement(Yu,(0,gt.Z)({style:(0,ut.Z)((0,ut.Z)({},Eu),{},{tableLayout:jh})},Wd),_l,Hd,sc,!ba&&is&&Fe.createElement(Et,{stickyOffsets:ul,flattenColumns:Uo,columns:ko},is)));var Ch=(0,ut.Z)((0,ut.Z)((0,ut.Z)({noData:!mr.length,maxContentScroll:ns&&As==="max-content"},od),sl),{},{direction:_n,stickyClassName:Ja,onScroll:Rh});rd=Fe.createElement(Fe.Fragment,null,ir!==!1&&Fe.createElement(Pi,(0,gt.Z)({},Ch,{stickyTopOffset:Vu,className:"".concat(Ot,"-header"),ref:Da}),zh),lc,ba&&ba!=="top"&&Fe.createElement(Pi,(0,gt.Z)({},Ch,{stickyBottomOffset:ql,className:"".concat(Ot,"-summary"),ref:ll}),zc),Ku&&Fe.createElement(ai,{ref:ah,offsetScroll:Ca,scrollBodyRef:ho,onScroll:Rh,container:Ws}))}else rd=Fe.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},Zs),Sl),className:St()("".concat(Ot,"-content")),onScroll:Rh,ref:ho},Fe.createElement(Yu,(0,gt.Z)({style:(0,ut.Z)((0,ut.Z)({},Eu),{},{tableLayout:jh})},Wd),_l,Hd,ir!==!1&&Fe.createElement(_r,(0,gt.Z)({},od,sl)),sc,is&&Fe.createElement(Et,{stickyOffsets:ul,flattenColumns:Uo,columns:ko},is)));var xl=Fe.createElement("div",(0,gt.Z)({className:St()(Ot,en,(tt={},(0,Ke.Z)(tt,"".concat(Ot,"-rtl"),_n==="rtl"),(0,Ke.Z)(tt,"".concat(Ot,"-ping-left"),Ka),(0,Ke.Z)(tt,"".concat(Ot,"-ping-right"),Xa),(0,Ke.Z)(tt,"".concat(Ot,"-layout-fixed"),jn==="fixed"),(0,Ke.Z)(tt,"".concat(Ot,"-fixed-header"),ss),(0,Ke.Z)(tt,"".concat(Ot,"-fixed-column"),du),(0,Ke.Z)(tt,"".concat(Ot,"-scroll-horizontal"),ns),(0,Ke.Z)(tt,"".concat(Ot,"-has-fix-left"),Uo[0]&&Uo[0].fixed),(0,Ke.Z)(tt,"".concat(Ot,"-has-fix-right"),Uo[Uo.length-1]&&Uo[Uo.length-1].fixed==="right"),tt)),style:Ln,id:xi,ref:ya},yd),Ei&&Fe.createElement(Nn,{className:"".concat(Ot,"-title")},Ei(mr)),Fe.createElement("div",{ref:Bs,className:"".concat(Ot,"-container")},rd),Ci&&Fe.createElement(Nn,{className:"".concat(Ot,"-footer")},Ci(mr)));ns&&(xl=Fe.createElement(De.Z,{onResize:cf},xl));var Zd=In(Uo,ul,_n,ko),Js=Fe.useMemo(function(){return{scrollX:As,prefixCls:Ot,getComponent:Rr,scrollbarSize:Id,direction:_n,fixedInfoList:Zd,isSticky:Ku,supportSticky:jd,componentWidth:Ur,fixHeader:ss,fixColumn:du,horizonScroll:ns,tableLayout:jh,rowClassName:Vt,expandedRowClassName:wo.expandedRowClassName,expandIcon:Ta,expandableType:Jr,expandRowByClick:wo.expandRowByClick,expandedRowRender:wo.expandedRowRender,onTriggerExpand:Ga,expandIconColumnIndex:wo.expandIconColumnIndex,indentSize:wo.indentSize,allColumnsFixedLeft:Uo.every(function(Na){return Na.fixed==="left"}),emptyNode:Il,columns:ko,flattenColumns:Uo,onColumnResize:ac,hoverStartRow:Io,hoverEndRow:Zo,onHover:Ho,rowExpandable:wo.rowExpandable,onRow:Yr,getRowKey:so,expandedKeys:po,childrenColumnName:Pa}},[As,Ot,Rr,Id,_n,Zd,Ku,jd,Ur,ss,du,ns,jh,Vt,wo.expandedRowClassName,Ta,Jr,wo.expandRowByClick,wo.expandedRowRender,Ga,wo.expandIconColumnIndex,wo.indentSize,Il,ko,Uo,ac,Io,Zo,Ho,wo.rowExpandable,Yr,so,po,Pa]);return Fe.createElement(we.Provider,{value:Js},xl)}function kr(Je){return ge(yr,Je)}var rr=kr();rr.EXPAND_COLUMN=Ee,rr.INTERNAL_HOOKS=je,rr.Column=Lr,rr.ColumnGroup=Bt,rr.Summary=dt;var Ri=rr,Gr=Se(21881),xn=Ct(null),Fo=Ct(null);function An(Je,tt,Tt){var Ot=tt||1;return Tt[Je+Ot]-(Tt[Je]||0)}function Ir(Je){var tt=Je.rowInfo,Tt=Je.column,Ot=Je.colIndex,en=Je.indent,Vt=Je.index,Ln=Je.renderIndex,bn=Je.record,wn=Je.style,ni=Je.className,jn=Je.inverse,_n=Je.getHeight,Ei=Tt.render,Ci=Tt.dataIndex,vi=Tt.className,Yi=Tt.width,xi=nt(Fo,["columnsOffset"]),ir=xi.columnsOffset,_i=Pt(tt,Tt,Ot,en,Vt),ur=_i.key,Yr=_i.fixedInfo,ao=_i.appendCellNode,pr=_i.additionalCellProps,Ar=pr.style,bo=pr.colSpan,cr=bo===void 0?1:bo,Or=pr.rowSpan,mr=Or===void 0?1:Or,Zi=Ot-1,or=An(Zi,cr,ir),Rr=cr>1?Yi-or:0,so=(0,ut.Z)((0,ut.Z)((0,ut.Z)({},Ar),wn),{},{flex:"0 0 ".concat(or,"px"),width:"".concat(or,"px"),marginRight:Rr,pointerEvents:"auto"}),uo=Fe.useMemo(function(){return jn?mr<=1:cr===0||mr===0||mr>1},[mr,cr,jn]);uo?so.visibility="hidden":jn&&(so.height=_n==null?void 0:_n(mr));var ar=uo?function(){return null}:Ei,Eo={};return(mr===0||cr===0)&&(Eo.rowSpan=1,Eo.colSpan=1),Fe.createElement(ii,(0,gt.Z)({className:St()(vi,ni),ellipsis:Tt.ellipsis,align:Tt.align,scope:Tt.rowScope,component:"div",prefixCls:tt.prefixCls,key:ur,record:bn,index:Vt,renderIndex:Ln,dataIndex:Ci,render:ar,shouldCellUpdate:Tt.shouldCellUpdate},Yr,{appendNode:ao,additionalProps:(0,ut.Z)((0,ut.Z)({},pr),{},{style:so},Eo)}))}var _o=Ir,oo=["data","index","className","rowKey","style","extra","getHeight"],Fa=Fe.forwardRef(function(Je,tt){var Tt=Je.data,Ot=Je.index,en=Je.className,Vt=Je.rowKey,Ln=Je.style,bn=Je.extra,wn=Je.getHeight,ni=(0,Mn.Z)(Je,oo),jn=Tt.record,_n=Tt.indent,Ei=Tt.index,Ci=nt(we,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),vi=Ci.scrollX,Yi=Ci.flattenColumns,xi=Ci.prefixCls,ir=Ci.fixColumn,_i=Ci.componentWidth,ur=ht(jn,Vt,Ot,_n),Yr=ur.rowSupportExpand,ao=ur.expanded,pr=ur.rowProps,Ar=ur.expandedRowRender,bo=ur.expandedRowClassName,cr;if(Yr&&ao){var Or=Ar(jn,Ot,_n+1,ao),mr=bo==null?void 0:bo(jn,Ot,_n),Zi={};ir&&(Zi={style:(0,Ke.Z)({},"--virtual-width","".concat(_i,"px"))});var or="".concat(xi,"-expanded-row-cell");cr=Fe.createElement("div",{className:St()("".concat(xi,"-expanded-row"),"".concat(xi,"-expanded-row-level-").concat(_n+1),mr)},Fe.createElement(ii,{component:"div",prefixCls:xi,className:St()(or,(0,Ke.Z)({},"".concat(or,"-fixed"),ir)),additionalProps:Zi},Or))}var Rr=(0,ut.Z)((0,ut.Z)({},Ln),{},{width:vi});bn&&(Rr.position="absolute",Rr.pointerEvents="none");var so=Fe.createElement("div",(0,gt.Z)({},pr,ni,{ref:Yr?null:tt,className:St()(en,"".concat(xi,"-row"),pr==null?void 0:pr.className,(0,Ke.Z)({},"".concat(xi,"-row-extra"),bn)),style:(0,ut.Z)((0,ut.Z)({},Rr),pr==null?void 0:pr.style)}),Yi.map(function(uo,ar){return Fe.createElement(_o,{key:ar,rowInfo:ur,column:uo,colIndex:ar,indent:_n,index:Ot,renderIndex:Ei,record:jn,inverse:bn,getHeight:wn})}));return Yr?Fe.createElement("div",{ref:tt},so,cr):so}),Qo=ve(Fa),dr=Qo,nr=Fe.forwardRef(function(Je,tt){var Tt=Je.data,Ot=Je.onScroll,en=nt(we,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Vt=en.flattenColumns,Ln=en.onColumnResize,bn=en.getRowKey,wn=en.expandedKeys,ni=en.prefixCls,jn=en.childrenColumnName,_n=en.emptyNode,Ei=en.scrollX,Ci=nt(xn),vi=Ci.scrollY,Yi=Ci.listItemHeight,xi=Fe.useRef(),ir=et(Tt,jn,wn,bn),_i=Fe.useMemo(function(){var cr=0;return Vt.map(function(Or){var mr=Or.width,Zi=Or.key;return cr+=mr,[Zi,mr,cr]})},[Vt]),ur=Fe.useMemo(function(){return _i.map(function(cr){return cr[2]})},[_i]);Fe.useEffect(function(){_i.forEach(function(cr){var Or=(0,it.Z)(cr,2),mr=Or[0],Zi=Or[1];Ln(mr,Zi)})},[_i]),Fe.useImperativeHandle(tt,function(){var cr={};return Object.defineProperty(cr,"scrollLeft",{get:function(){var mr;return((mr=xi.current)===null||mr===void 0?void 0:mr.getScrollInfo().x)||0},set:function(mr){var Zi;(Zi=xi.current)===null||Zi===void 0||Zi.scrollTo({left:mr})}}),cr});var Yr=function(Or,mr){var Zi,or=(Zi=ir[mr])===null||Zi===void 0?void 0:Zi.record,Rr=Or.onCell;if(Rr){var so,uo=Rr(or,mr);return(so=uo==null?void 0:uo.rowSpan)!==null&&so!==void 0?so:1}return 1},ao=function(Or){var mr=Or.start,Zi=Or.end,or=Or.getSize,Rr=Or.offsetY;if(Zi<0)return null;for(var so=Vt.filter(function(vo){return Yr(vo,mr)===0}),uo=mr,ar=function(io){if(so=so.filter(function(Po){return Yr(Po,io)===0}),!so.length)return uo=io,"break"},Eo=mr;Eo>=0;Eo-=1){var Io=ar(Eo);if(Io==="break")break}for(var Zo=Vt.filter(function(vo){return Yr(vo,Zi)!==1}),Ho=Zi,za=function(io){if(Zo=Zo.filter(function(Po){return Yr(Po,io)!==1}),!Zo.length)return Ho=Math.max(io-1,Zi),"break"},qo=Zi;qo<ir.length;qo+=1){var wo=za(qo);if(wo==="break")break}for(var Jr=[],po=function(io){var Po=ir[io];if(!Po)return"continue";Vt.some(function(Ur){return Yr(Ur,io)>1})&&Jr.push(io)},Ta=uo;Ta<=Ho;Ta+=1)var Pa=po(Ta);var Ga=Jr.map(function(vo){var io=ir[vo],Po=bn(io.record,vo),Ur=function(xr){var ko=vo+xr-1,Uo=bn(ir[ko].record,ko),Xs=or(Po,Uo);return Xs.bottom-Xs.top},Br=or(Po);return Fe.createElement(dr,{key:vo,data:io,rowKey:Po,index:vo,style:{top:-Rr+Br.top},extra:!0,getHeight:Ur})});return Ga},pr=Fe.useMemo(function(){return{columnsOffset:ur}},[ur]),Ar="".concat(ni,"-tbody"),bo;return ir.length?bo=Fe.createElement(Gr.Z,{fullHeight:!1,ref:xi,className:St()(Ar,"".concat(Ar,"-virtual")),height:vi,itemHeight:Yi||24,data:ir,itemKey:function(Or){return bn(Or.record)},scrollWidth:Ei,onVirtualScroll:function(Or){var mr=Or.x;Ot({scrollLeft:mr})},extraRender:ao},function(cr,Or,mr){var Zi=bn(cr.record,Or);return Fe.createElement(dr,(0,gt.Z)({data:cr,rowKey:Zi,index:Or},mr))}):bo=Fe.createElement("div",{className:St()("".concat(ni,"-placeholder"))},Fe.createElement(ii,{component:"div",prefixCls:ni},_n)),Fe.createElement(Fo.Provider,{value:pr},bo)}),no=ve(nr),Lo=no,wi=function(tt,Tt){var Ot=Tt.ref,en=Tt.onScroll;return Fe.createElement(Lo,{ref:Ot,data:tt,onScroll:en})},Ye=100;function $r(Je){var tt=Je.columns,Tt=Je.scroll,Ot=Je.prefixCls,en=Ot===void 0?Si:Ot,Vt=Je.className,Ln=Je.listItemHeight,bn=Tt||{},wn=bn.x,ni=bn.y;typeof wn!="number"&&(wn=((tt||[]).length+1)*Ye),typeof ni!="number"&&(ni=500);var jn=Fe.useMemo(function(){return{scrollY:ni,listItemHeight:Ln}},[ni,Ln]);return Fe.createElement(xn.Provider,{value:jn},Fe.createElement(Ri,(0,gt.Z)({},Je,{className:St()(Vt,"".concat(en,"-virtual")),scroll:(0,ut.Z)((0,ut.Z)({},Tt),{},{x:wn}),components:{body:wi},columns:tt,internalHooks:je,tailor:!0})))}function ca(Je){return ge($r,Je)}var qr=ca(),$o=null;function Fr(Je){return null}var Sr=Fr;function xo(Je){return null}var Wo=xo,eo=Se(64002),fa=Se(68031),sr=Se(36355),tr=Se(93891),Nr=Se(19716),ei=Se(8628),Ro=Se(31724),ia=Se(25700),Za=Se(71418),ha=Se(88088);function Oa(Je){return function(Tt){let{prefixCls:Ot,onExpand:en,record:Vt,expanded:Ln,expandable:bn}=Tt;const wn=`${Ot}-row-expand-icon`;return Fe.createElement("button",{type:"button",onClick:ni=>{en(Vt,ni),ni.stopPropagation()},className:St()(wn,{[`${wn}-spaced`]:!bn,[`${wn}-expanded`]:bn&&Ln,[`${wn}-collapsed`]:bn&&!Ln}),"aria-label":Ln?Je.collapse:Je.expand,"aria-expanded":Ln})}}var Ia=Oa;function ys(Je,tt){return"key"in Je&&Je.key!==void 0&&Je.key!==null?Je.key:Je.dataIndex?Array.isArray(Je.dataIndex)?Je.dataIndex.join("."):Je.dataIndex:tt}function Ds(Je,tt){return tt?`${tt}-${Je}`:`${Je}`}function _s(Je,tt){return typeof Je=="function"?Je(tt):Je}function Ys(Je,tt){const Tt=_s(Je,tt);return Object.prototype.toString.call(Tt)==="[object Object]"?"":Tt}var dn={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"},js=dn,au=Se(88853),su=function(tt,Tt){return Fe.createElement(au.Z,(0,gt.Z)({},tt,{ref:Tt,icon:js}))},No=Fe.forwardRef(su),ga=No,os=Se(56762);function pa(Je){const tt=Fe.useRef(Je),Tt=(0,os.Z)();return[()=>tt.current,Ot=>{tt.current=Ot,Tt()}]}var To=Se(3113),la=Se(24905),bs=Se(38854),to=Se(64165),zo=Se(20834),Oo=Se(40875),Wi=Se(5112),cs=Se(86914),Ss=Se(21970),dl=Se(92832);function lu(Je){let{value:tt,onChange:Tt,filterSearch:Ot,tablePrefixCls:en,locale:Vt}=Je;return Ot?Fe.createElement("div",{className:`${en}-filter-dropdown-search`},Fe.createElement(dl.default,{prefix:Fe.createElement(Ss.Z,null),placeholder:Vt.filterSearchPlaceholder,onChange:Tt,value:tt,htmlSize:1,className:`${en}-filter-dropdown-search-input`})):null}var wu=lu,Fi=Se(85108);const Ya=Je=>{const{keyCode:tt}=Je;tt===Fi.Z.ENTER&&Je.stopPropagation()};var Jl=Fe.forwardRef((Je,tt)=>Fe.createElement("div",{className:Je.className,onClick:Tt=>Tt.stopPropagation(),onKeyDown:Ya,ref:tt},Je.children));function uu(Je){let tt=[];return(Je||[]).forEach(Tt=>{let{value:Ot,children:en}=Tt;tt.push(Ot),en&&(tt=[].concat((0,Ki.Z)(tt),(0,Ki.Z)(uu(en))))}),tt}function hu(Je){return Je.some(tt=>{let{children:Tt}=tt;return Tt})}function lo(Je,tt){return typeof tt=="string"||typeof tt=="number"?tt==null?void 0:tt.toString().toLowerCase().includes(Je.trim().toLowerCase()):!1}function Sh(Je){let{filters:tt,prefixCls:Tt,filteredKeys:Ot,filterMultiple:en,searchValue:Vt,filterSearch:Ln}=Je;return tt.map((bn,wn)=>{const ni=String(bn.value);if(bn.children)return{key:ni||wn,label:bn.text,popupClassName:`${Tt}-dropdown-submenu`,children:Sh({filters:bn.children,prefixCls:Tt,filteredKeys:Ot,filterMultiple:en,searchValue:Vt,filterSearch:Ln})};const jn=en?la.default:Wi.ZP,_n={key:bn.value!==void 0?ni:wn,label:Fe.createElement(Fe.Fragment,null,Fe.createElement(jn,{checked:Ot.includes(ni)}),Fe.createElement("span",null,bn.text))};return Vt.trim()?typeof Ln=="function"?Ln(Vt,bn)?_n:null:lo(Vt,bn.text)?_n:null:_n})}function El(Je){var tt,Tt;const{tablePrefixCls:Ot,prefixCls:en,column:Vt,dropdownPrefixCls:Ln,columnKey:bn,filterMultiple:wn,filterMode:ni="menu",filterSearch:jn=!1,filterState:_n,triggerFilter:Ei,locale:Ci,children:vi,getPopupContainer:Yi}=Je,{filterDropdownOpen:xi,onFilterDropdownOpenChange:ir,filterResetToDefaultFilteredValue:_i,defaultFilteredValue:ur,filterDropdownVisible:Yr,onFilterDropdownVisibleChange:ao}=Vt,[pr,Ar]=Fe.useState(!1),bo=!!(_n&&(!((tt=_n.filteredKeys)===null||tt===void 0)&&tt.length||_n.forceFiltered)),cr=Ai=>{Ar(Ai),ir==null||ir(Ai),ao==null||ao(Ai)},Or=(Tt=xi!=null?xi:Yr)!==null&&Tt!==void 0?Tt:pr,mr=_n==null?void 0:_n.filteredKeys,[Zi,or]=pa(mr||[]),Rr=Ai=>{let{selectedKeys:xr}=Ai;or(xr)},so=(Ai,xr)=>{let{node:ko,checked:Uo}=xr;Rr(wn?{selectedKeys:Ai}:{selectedKeys:Uo&&ko.key?[ko.key]:[]})};Fe.useEffect(()=>{pr&&Rr({selectedKeys:mr||[]})},[mr]);const[uo,ar]=Fe.useState([]),Eo=Ai=>{ar(Ai)},[Io,Zo]=Fe.useState(""),Ho=Ai=>{const{value:xr}=Ai.target;Zo(xr)};Fe.useEffect(()=>{pr||Zo("")},[pr]);const za=Ai=>{const xr=Ai&&Ai.length?Ai:null;if(xr===null&&(!_n||!_n.filteredKeys)||(0,pt.Z)(xr,_n==null?void 0:_n.filteredKeys,!0))return null;Ei({column:Vt,key:bn,filteredKeys:xr})},qo=()=>{cr(!1),za(Zi())},wo=function(){let{confirm:Ai,closeDropdown:xr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ai&&za([]),xr&&cr(!1),Zo(""),or(_i?(ur||[]).map(ko=>String(ko)):[])},Jr=function(){let{closeDropdown:Ai}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ai&&cr(!1),za(Zi())},po=Ai=>{Ai&&mr!==void 0&&or(mr||[]),cr(Ai),!Ai&&!Vt.filterDropdown&&qo()},Ta=St()({[`${Ln}-menu-without-submenu`]:!hu(Vt.filters||[])}),Pa=Ai=>{if(Ai.target.checked){const xr=uu(Vt==null?void 0:Vt.filters).map(ko=>String(ko));or(xr)}else or([])},Ga=Ai=>{let{filters:xr}=Ai;return(xr||[]).map((ko,Uo)=>{const Xs=String(ko.value),As={title:ko.text,key:ko.value!==void 0?Xs:Uo};return ko.children&&(As.children=Ga({filters:ko.children})),As})},vo=Ai=>{var xr;return Object.assign(Object.assign({},Ai),{text:Ai.title,value:Ai.key,children:((xr=Ai.children)===null||xr===void 0?void 0:xr.map(ko=>vo(ko)))||[]})};let io;if(typeof Vt.filterDropdown=="function")io=Vt.filterDropdown({prefixCls:`${Ln}-custom`,setSelectedKeys:Ai=>Rr({selectedKeys:Ai}),selectedKeys:Zi(),confirm:Jr,clearFilters:wo,filters:Vt.filters,visible:Or,close:()=>{cr(!1)}});else if(Vt.filterDropdown)io=Vt.filterDropdown;else{const Ai=Zi()||[],xr=()=>(Vt.filters||[]).length===0?Fe.createElement(to.Z,{image:to.Z.PRESENTED_IMAGE_SIMPLE,description:Ci.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ni==="tree"?Fe.createElement(Fe.Fragment,null,Fe.createElement(wu,{filterSearch:jn,value:Io,onChange:Ho,tablePrefixCls:Ot,locale:Ci}),Fe.createElement("div",{className:`${Ot}-filter-dropdown-tree`},wn?Fe.createElement(la.default,{checked:Ai.length===uu(Vt.filters).length,indeterminate:Ai.length>0&&Ai.length<uu(Vt.filters).length,className:`${Ot}-filter-dropdown-checkall`,onChange:Pa},Ci.filterCheckall):null,Fe.createElement(cs.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:wn,checkStrictly:!wn,className:`${Ln}-menu`,onCheck:so,checkedKeys:Ai,selectedKeys:Ai,showIcon:!1,treeData:Ga({filters:Vt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Io.trim()?Uo=>typeof jn=="function"?jn(Io,vo(Uo)):lo(Io,Uo.title):void 0}))):Fe.createElement(Fe.Fragment,null,Fe.createElement(wu,{filterSearch:jn,value:Io,onChange:Ho,tablePrefixCls:Ot,locale:Ci}),Fe.createElement(zo.default,{selectable:!0,multiple:wn,prefixCls:`${Ln}-menu`,className:Ta,onSelect:Rr,onDeselect:Rr,selectedKeys:Ai,getPopupContainer:Yi,openKeys:uo,onOpenChange:Eo,items:Sh({filters:Vt.filters||[],filterSearch:jn,prefixCls:en,filteredKeys:Zi(),filterMultiple:wn,searchValue:Io})})),ko=()=>_i?(0,pt.Z)((ur||[]).map(Uo=>String(Uo)),Ai,!0):Ai.length===0;io=Fe.createElement(Fe.Fragment,null,xr(),Fe.createElement("div",{className:`${en}-dropdown-btns`},Fe.createElement(To.ZP,{type:"link",size:"small",disabled:ko(),onClick:()=>wo()},Ci.filterReset),Fe.createElement(To.ZP,{type:"primary",size:"small",onClick:qo},Ci.filterConfirm)))}Vt.filterDropdown&&(io=Fe.createElement(Oo.J,{selectable:void 0},io));const Po=()=>Fe.createElement(Jl,{className:`${en}-dropdown`},io);let Ur;typeof Vt.filterIcon=="function"?Ur=Vt.filterIcon(bo):Vt.filterIcon?Ur=Vt.filterIcon:Ur=Fe.createElement(ga,null);const{direction:Br}=Fe.useContext(sr.E_);return Fe.createElement("div",{className:`${en}-column`},Fe.createElement("span",{className:`${Ot}-column-title`},vi),Fe.createElement(bs.Z,{dropdownRender:Po,trigger:["click"],open:Or,onOpenChange:po,getPopupContainer:Yi,placement:Br==="rtl"?"bottomLeft":"bottomRight"},Fe.createElement("span",{role:"button",tabIndex:-1,className:St()(`${en}-trigger`,{active:bo}),onClick:Ai=>{Ai.stopPropagation()}},Ur)))}var Ll=El;function ml(Je,tt,Tt){let Ot=[];return(Je||[]).forEach((en,Vt)=>{var Ln;const bn=Ds(Vt,Tt);if(en.filters||"filterDropdown"in en||"onFilter"in en)if("filteredValue"in en){let wn=en.filteredValue;"filterDropdown"in en||(wn=(Ln=wn==null?void 0:wn.map(String))!==null&&Ln!==void 0?Ln:wn),Ot.push({column:en,key:ys(en,bn),filteredKeys:wn,forceFiltered:en.filtered})}else Ot.push({column:en,key:ys(en,bn),filteredKeys:tt&&en.defaultFilteredValue?en.defaultFilteredValue:void 0,forceFiltered:en.filtered});"children"in en&&(Ot=[].concat((0,Ki.Z)(Ot),(0,Ki.Z)(ml(en.children,tt,bn))))}),Ot}function Zu(Je,tt,Tt,Ot,en,Vt,Ln,bn){return Tt.map((wn,ni)=>{const jn=Ds(ni,bn),{filterMultiple:_n=!0,filterMode:Ei,filterSearch:Ci}=wn;let vi=wn;if(vi.filters||vi.filterDropdown){const Yi=ys(vi,jn),xi=Ot.find(ir=>{let{key:_i}=ir;return Yi===_i});vi=Object.assign(Object.assign({},vi),{title:ir=>Fe.createElement(Ll,{tablePrefixCls:Je,prefixCls:`${Je}-filter`,dropdownPrefixCls:tt,column:vi,columnKey:Yi,filterState:xi,filterMultiple:_n,filterMode:Ei,filterSearch:Ci,triggerFilter:Vt,locale:en,getPopupContainer:Ln},_s(wn.title,ir))})}return"children"in vi&&(vi=Object.assign(Object.assign({},vi),{children:Zu(Je,tt,vi.children,Ot,en,Vt,Ln,jn)})),vi})}function Pu(Je){const tt={};return Je.forEach(Tt=>{let{key:Ot,filteredKeys:en,column:Vt}=Tt;const{filters:Ln,filterDropdown:bn}=Vt;if(bn)tt[Ot]=en||null;else if(Array.isArray(en)){const wn=uu(Ln);tt[Ot]=wn.filter(ni=>en.includes(String(ni)))}else tt[Ot]=null}),tt}function vl(Je,tt){return tt.reduce((Tt,Ot)=>{const{column:{onFilter:en,filters:Vt},filteredKeys:Ln}=Ot;return en&&Ln&&Ln.length?Tt.filter(bn=>Ln.some(wn=>{const ni=uu(Vt),jn=ni.findIndex(Ei=>String(Ei)===String(wn)),_n=jn!==-1?ni[jn]:wn;return en(_n,bn)})):Tt},Je)}const Ml=Je=>Je.flatMap(tt=>"children"in tt?[tt].concat((0,Ki.Z)(Ml(tt.children||[]))):[tt]);function Bh(Je){let{prefixCls:tt,dropdownPrefixCls:Tt,mergedColumns:Ot,onFilterChange:en,getPopupContainer:Vt,locale:Ln}=Je;const bn=Fe.useMemo(()=>Ml(Ot||[]),[Ot]),[wn,ni]=Fe.useState(()=>ml(bn,!0)),jn=Fe.useMemo(()=>{const vi=ml(bn,!1);if(vi.length===0)return vi;let Yi=!0,xi=!0;if(vi.forEach(ir=>{let{filteredKeys:_i}=ir;_i!==void 0?Yi=!1:xi=!1}),Yi){const ir=(bn||[]).map((_i,ur)=>ys(_i,Ds(ur)));return wn.filter(_i=>{let{key:ur}=_i;return ir.includes(ur)}).map(_i=>{const ur=bn[ir.findIndex(Yr=>Yr===_i.key)];return Object.assign(Object.assign({},_i),{column:Object.assign(Object.assign({},_i.column),ur),forceFiltered:ur.filtered})})}return vi},[bn,wn]),_n=Fe.useMemo(()=>Pu(jn),[jn]),Ei=vi=>{const Yi=jn.filter(xi=>{let{key:ir}=xi;return ir!==vi.key});Yi.push(vi),ni(Yi),en(Pu(Yi),Yi)};return[vi=>Zu(tt,Tt,vi,jn,Ln,Ei,Vt),jn,_n]}var _h=Bh;function Oh(Je,tt,Tt){const Ot=Fe.useRef({});function en(Vt){if(!Ot.current||Ot.current.data!==Je||Ot.current.childrenColumnName!==tt||Ot.current.getRowKey!==Tt){let bn=function(wn){wn.forEach((ni,jn)=>{const _n=Tt(ni,jn);Ln.set(_n,ni),ni&&typeof ni=="object"&&tt in ni&&bn(ni[tt]||[])})};const Ln=new Map;bn(Je),Ot.current={data:Je,childrenColumnName:tt,kvMap:Ln,getRowKey:Tt}}return Ot.current.kvMap.get(Vt)}return[en]}var gd=Se(50371),Ih=function(Je,tt){var Tt={};for(var Ot in Je)Object.prototype.hasOwnProperty.call(Je,Ot)&&tt.indexOf(Ot)<0&&(Tt[Ot]=Je[Ot]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,Ot=Object.getOwnPropertySymbols(Je);en<Ot.length;en++)tt.indexOf(Ot[en])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ot[en])&&(Tt[Ot[en]]=Je[Ot[en]]);return Tt};const Gu=10;function Dl(Je,tt){const Tt={current:Je.current,pageSize:Je.pageSize};return Object.keys(tt&&typeof tt=="object"?tt:{}).forEach(en=>{const Vt=Je[en];typeof Vt!="function"&&(Tt[en]=Vt)}),Tt}function Bl(Je,tt,Tt){const Ot=Tt&&typeof Tt=="object"?Tt:{},{total:en=0}=Ot,Vt=Ih(Ot,["total"]),[Ln,bn]=(0,Fe.useState)(()=>({current:"defaultCurrent"in Vt?Vt.defaultCurrent:1,pageSize:"defaultPageSize"in Vt?Vt.defaultPageSize:Gu})),wn=(0,gd.Z)(Ln,Vt,{total:en>0?en:Je}),ni=Math.ceil((en||Je)/wn.pageSize);wn.current>ni&&(wn.current=ni||1);const jn=(Ei,Ci)=>{bn({current:Ei!=null?Ei:1,pageSize:Ci||wn.pageSize})},_n=(Ei,Ci)=>{var vi;Tt&&((vi=Tt.onChange)===null||vi===void 0||vi.call(Tt,Ei,Ci)),jn(Ei,Ci),tt(Ei,Ci||(wn==null?void 0:wn.pageSize))};return Tt===!1?[{},()=>{}]:[Object.assign(Object.assign({},wn),{onChange:_n}),jn]}var pd=Bl,ed=Se(18290),Cu=Se(35654),Bo=Se(90782),da=Se(71430),cl=Se(35788);const xs={},ws="SELECT_ALL",_a="SELECT_INVERT",ls="SELECT_NONE",Ls=[],Ps=(Je,tt)=>{let Tt=[];return(tt||[]).forEach(Ot=>{Tt.push(Ot),Ot&&typeof Ot=="object"&&Je in Ot&&(Tt=[].concat((0,Ki.Z)(Tt),(0,Ki.Z)(Ps(Je,Ot[Je]))))}),Tt};var Ql=(Je,tt)=>{const{preserveSelectedRowKeys:Tt,selectedRowKeys:Ot,defaultSelectedRowKeys:en,getCheckboxProps:Vt,onChange:Ln,onSelect:bn,onSelectAll:wn,onSelectInvert:ni,onSelectNone:jn,onSelectMultiple:_n,columnWidth:Ei,type:Ci,selections:vi,fixed:Yi,renderCell:xi,hideSelectAll:ir,checkStrictly:_i=!0}=tt||{},{prefixCls:ur,data:Yr,pageData:ao,getRecordByKey:pr,getRowKey:Ar,expandType:bo,childrenColumnName:cr,locale:Or,getPopupContainer:mr}=Je,[Zi,or]=(0,cl.Z)(Ot||en||Ls,{value:Ot}),Rr=Fe.useRef(new Map),so=(0,Fe.useCallback)(vo=>{if(Tt){const io=new Map;vo.forEach(Po=>{let Ur=pr(Po);!Ur&&Rr.current.has(Po)&&(Ur=Rr.current.get(Po)),io.set(Po,Ur)}),Rr.current=io}},[pr,Tt]);Fe.useEffect(()=>{so(Zi)},[Zi]);const{keyEntities:uo}=(0,Fe.useMemo)(()=>{if(_i)return{keyEntities:null};let vo=Yr;if(Tt){const io=new Set(Yr.map((Ur,Br)=>Ar(Ur,Br))),Po=Array.from(Rr.current).reduce((Ur,Br)=>{let[Ai,xr]=Br;return io.has(Ai)?Ur:Ur.concat(xr)},[]);vo=[].concat((0,Ki.Z)(vo),(0,Ki.Z)(Po))}return(0,da.I8)(vo,{externalGetKey:Ar,childrenPropName:cr})},[Yr,Ar,_i,cr,Tt]),ar=(0,Fe.useMemo)(()=>Ps(cr,ao),[cr,ao]),Eo=(0,Fe.useMemo)(()=>{const vo=new Map;return ar.forEach((io,Po)=>{const Ur=Ar(io,Po),Br=(Vt?Vt(io):null)||{};vo.set(Ur,Br)}),vo},[ar,Ar,Vt]),Io=(0,Fe.useCallback)(vo=>{var io;return!!(!((io=Eo.get(Ar(vo)))===null||io===void 0)&&io.disabled)},[Eo,Ar]),[Zo,Ho]=(0,Fe.useMemo)(()=>{if(_i)return[Zi||[],[]];const{checkedKeys:vo,halfCheckedKeys:io}=(0,Bo.S)(Zi,!0,uo,Io);return[vo||[],io]},[Zi,_i,uo,Io]),za=(0,Fe.useMemo)(()=>{const vo=Ci==="radio"?Zo.slice(0,1):Zo;return new Set(vo)},[Zo,Ci]),qo=(0,Fe.useMemo)(()=>Ci==="radio"?new Set:new Set(Ho),[Ho,Ci]),[wo,Jr]=(0,Fe.useState)(null);Fe.useEffect(()=>{tt||or(Ls)},[!!tt]);const po=(0,Fe.useCallback)((vo,io)=>{let Po,Ur;so(vo),Tt?(Po=vo,Ur=vo.map(Br=>Rr.current.get(Br))):(Po=[],Ur=[],vo.forEach(Br=>{const Ai=pr(Br);Ai!==void 0&&(Po.push(Br),Ur.push(Ai))})),or(Po),Ln==null||Ln(Po,Ur,{type:io})},[or,pr,Ln,Tt]),Ta=(0,Fe.useCallback)((vo,io,Po,Ur)=>{if(bn){const Br=Po.map(Ai=>pr(Ai));bn(pr(vo),io,Br,Ur)}po(Po,"single")},[bn,pr,po]),Pa=(0,Fe.useMemo)(()=>!vi||ir?null:(vi===!0?[ws,_a,ls]:vi).map(io=>io===ws?{key:"all",text:Or.selectionAll,onSelect(){po(Yr.map((Po,Ur)=>Ar(Po,Ur)).filter(Po=>{const Ur=Eo.get(Po);return!(Ur!=null&&Ur.disabled)||za.has(Po)}),"all")}}:io===_a?{key:"invert",text:Or.selectInvert,onSelect(){const Po=new Set(za);ao.forEach((Br,Ai)=>{const xr=Ar(Br,Ai),ko=Eo.get(xr);ko!=null&&ko.disabled||(Po.has(xr)?Po.delete(xr):Po.add(xr))});const Ur=Array.from(Po);ni&&ni(Ur),po(Ur,"invert")}}:io===ls?{key:"none",text:Or.selectNone,onSelect(){jn==null||jn(),po(Array.from(za).filter(Po=>{const Ur=Eo.get(Po);return Ur==null?void 0:Ur.disabled}),"none")}}:io).map(io=>Object.assign(Object.assign({},io),{onSelect:function(){for(var Po,Ur,Br=arguments.length,Ai=new Array(Br),xr=0;xr<Br;xr++)Ai[xr]=arguments[xr];(Ur=io.onSelect)===null||Ur===void 0||(Po=Ur).call.apply(Po,[io].concat(Ai)),Jr(null)}})),[vi,za,ao,Ar,ni,po]);return[(0,Fe.useCallback)(vo=>{var io;if(!tt)return vo.filter(Ma=>Ma!==xs);let Po=(0,Ki.Z)(vo);const Ur=new Set(za),Br=ar.map(Ar).filter(Ma=>!Eo.get(Ma).disabled),Ai=Br.every(Ma=>Ur.has(Ma)),xr=Br.some(Ma=>Ur.has(Ma)),ko=()=>{const Ma=[];Ai?Br.forEach(Ka=>{Ur.delete(Ka),Ma.push(Ka)}):Br.forEach(Ka=>{Ur.has(Ka)||(Ur.add(Ka),Ma.push(Ka))});const ja=Array.from(Ur);wn==null||wn(!Ai,ja.map(Ka=>pr(Ka)),Ma.map(Ka=>pr(Ka))),po(ja,"all"),Jr(null)};let Uo;if(Ci!=="radio"){let Ma;if(Pa){const na={getPopupContainer:mr,items:Pa.map((Xa,Hs)=>{const{key:Ba,text:yo,onSelect:gs}=Xa;return{key:Ba!=null?Ba:Hs,onClick:()=>{gs==null||gs(Br)},label:yo}})};Ma=Fe.createElement("div",{className:`${ur}-selection-extra`},Fe.createElement(bs.Z,{menu:na,getPopupContainer:mr},Fe.createElement("span",null,Fe.createElement(ed.Z,null))))}const ja=ar.map((na,Xa)=>{const Hs=Ar(na,Xa),Ba=Eo.get(Hs)||{};return Object.assign({checked:Ur.has(Hs)},Ba)}).filter(na=>{let{disabled:Xa}=na;return Xa}),Ka=!!ja.length&&ja.length===ar.length,us=Ka&&ja.every(na=>{let{checked:Xa}=na;return Xa}),Os=Ka&&ja.some(na=>{let{checked:Xa}=na;return Xa});Uo=!ir&&Fe.createElement("div",{className:`${ur}-selection`},Fe.createElement(la.default,{checked:Ka?us:!!ar.length&&Ai,indeterminate:Ka?!us&&Os:!Ai&&xr,onChange:ko,disabled:ar.length===0||Ka,"aria-label":Ma?"Custom selection":"Select all",skipGroup:!0}),Ma)}let Xs;Ci==="radio"?Xs=(Ma,ja,Ka)=>{const us=Ar(ja,Ka),Os=Ur.has(us);return{node:Fe.createElement(Wi.ZP,Object.assign({},Eo.get(us),{checked:Os,onClick:na=>na.stopPropagation(),onChange:na=>{Ur.has(us)||Ta(us,!0,[us],na.nativeEvent)}})),checked:Os}}:Xs=(Ma,ja,Ka)=>{var us;const Os=Ar(ja,Ka),na=Ur.has(Os),Xa=qo.has(Os),Hs=Eo.get(Os);let Ba;return bo==="nest"?Ba=Xa:Ba=(us=Hs==null?void 0:Hs.indeterminate)!==null&&us!==void 0?us:Xa,{node:Fe.createElement(la.default,Object.assign({},Hs,{indeterminate:Ba,checked:na,skipGroup:!0,onClick:yo=>yo.stopPropagation(),onChange:yo=>{let{nativeEvent:gs}=yo;const{shiftKey:Is}=gs;let bu=-1,$l=-1;if(Is&&_i){const Ha=new Set([wo,Os]);Br.some((ul,ss)=>{if(Ha.has(ul))if(bu===-1)bu=ss;else return $l=ss,!0;return!1})}if($l!==-1&&bu!==$l&&_i){const Ha=Br.slice(bu,$l+1),ul=[];na?Ha.forEach(ns=>{Ur.has(ns)&&(ul.push(ns),Ur.delete(ns))}):Ha.forEach(ns=>{Ur.has(ns)||(ul.push(ns),Ur.add(ns))});const ss=Array.from(Ur);_n==null||_n(!na,ss.map(ns=>pr(ns)),ul.map(ns=>pr(ns))),po(ss,"multiple")}else{const Ha=Zo;if(_i){const ul=na?(0,Cu._5)(Ha,Os):(0,Cu.L0)(Ha,Os);Ta(Os,!na,ul,gs)}else{const ul=(0,Bo.S)([].concat((0,Ki.Z)(Ha),[Os]),!0,uo,Io),{checkedKeys:ss,halfCheckedKeys:ns}=ul;let du=ss;if(na){const ah=new Set(ss);ah.delete(Os),du=(0,Bo.S)(Array.from(ah),{checked:!1,halfCheckedKeys:ns},uo,Io).checkedKeys}Ta(Os,!na,du,gs)}}Jr(na?null:Os)}})),checked:na}};const As=(Ma,ja,Ka)=>{const{node:us,checked:Os}=Xs(Ma,ja,Ka);return xi?xi(Os,ja,Ka,us):us};if(!Po.includes(xs))if(Po.findIndex(Ma=>{var ja;return((ja=Ma[vr])===null||ja===void 0?void 0:ja.columnType)==="EXPAND_COLUMN"})===0){const[Ma,...ja]=Po;Po=[Ma,xs].concat((0,Ki.Z)(ja))}else Po=[xs].concat((0,Ki.Z)(Po));const sl=Po.indexOf(xs);Po=Po.filter((Ma,ja)=>Ma!==xs||ja===sl);const ya=Po[sl-1],Da=Po[sl+1];let ho=Yi;ho===void 0&&((Da==null?void 0:Da.fixed)!==void 0?ho=Da.fixed:(ya==null?void 0:ya.fixed)!==void 0&&(ho=ya.fixed)),ho&&ya&&((io=ya[vr])===null||io===void 0?void 0:io.columnType)==="EXPAND_COLUMN"&&ya.fixed===void 0&&(ya.fixed=ho);const Bs=St()(`${ur}-selection-col`,{[`${ur}-selection-col-with-dropdown`]:vi&&Ci==="checkbox"}),ll={fixed:ho,width:Ei,className:`${ur}-selection-column`,title:tt.columnTitle||Uo,render:As,onCell:tt.onCell,[vr]:{className:Bs}};return Po.map(Ma=>Ma===xs?ll:Ma)},[Ar,ar,tt,Zo,za,qo,Ei,Pa,bo,wo,Eo,_n,Ta,Io]),za]},fs=Se(35323),ic=Se(19155),md=Se(6848);const td="ascend",Mr="descend";function nd(Je){return typeof Je.sorter=="object"&&typeof Je.sorter.multiple=="number"?Je.sorter.multiple:!1}function Nt(Je){return typeof Je=="function"?Je:Je&&typeof Je=="object"&&Je.compare?Je.compare:!1}function ti(Je,tt){return tt?Je[Je.indexOf(tt)+1]:Je[0]}function Ic(Je,tt,Tt){let Ot=[];function en(Vt,Ln){Ot.push({column:Vt,key:ys(Vt,Ln),multiplePriority:nd(Vt),sortOrder:Vt.sortOrder})}return(Je||[]).forEach((Vt,Ln)=>{const bn=Ds(Ln,Tt);Vt.children?("sortOrder"in Vt&&en(Vt,bn),Ot=[].concat((0,Ki.Z)(Ot),(0,Ki.Z)(Ic(Vt.children,tt,bn)))):Vt.sorter&&("sortOrder"in Vt?en(Vt,bn):tt&&Vt.defaultSortOrder&&Ot.push({column:Vt,key:ys(Vt,bn),multiplePriority:nd(Vt),sortOrder:Vt.defaultSortOrder}))}),Ot}function rc(Je,tt,Tt,Ot,en,Vt,Ln,bn){return(tt||[]).map((wn,ni)=>{const jn=Ds(ni,bn);let _n=wn;if(_n.sorter){const Ei=_n.sortDirections||en,Ci=_n.showSorterTooltip===void 0?Ln:_n.showSorterTooltip,vi=ys(_n,jn),Yi=Tt.find(bo=>{let{key:cr}=bo;return cr===vi}),xi=Yi?Yi.sortOrder:null,ir=ti(Ei,xi);let _i;if(wn.sortIcon)_i=wn.sortIcon({sortOrder:xi});else{const bo=Ei.includes(td)&&Fe.createElement(ic.Z,{className:St()(`${Je}-column-sorter-up`,{active:xi===td})}),cr=Ei.includes(Mr)&&Fe.createElement(fs.Z,{className:St()(`${Je}-column-sorter-down`,{active:xi===Mr})});_i=Fe.createElement("span",{className:St()(`${Je}-column-sorter`,{[`${Je}-column-sorter-full`]:!!(bo&&cr)})},Fe.createElement("span",{className:`${Je}-column-sorter-inner`,"aria-hidden":"true"},bo,cr))}const{cancelSort:ur,triggerAsc:Yr,triggerDesc:ao}=Vt||{};let pr=ur;ir===Mr?pr=ao:ir===td&&(pr=Yr);const Ar=typeof Ci=="object"?Ci:{title:pr};_n=Object.assign(Object.assign({},_n),{className:St()(_n.className,{[`${Je}-column-sort`]:xi}),title:bo=>{const cr=Fe.createElement("div",{className:`${Je}-column-sorters`},Fe.createElement("span",{className:`${Je}-column-title`},_s(wn.title,bo)),_i);return Ci?Fe.createElement(md.Z,Object.assign({},Ar),cr):cr},onHeaderCell:bo=>{const cr=wn.onHeaderCell&&wn.onHeaderCell(bo)||{},Or=cr.onClick,mr=cr.onKeyDown;cr.onClick=Rr=>{Ot({column:wn,key:vi,sortOrder:ir,multiplePriority:nd(wn)}),Or==null||Or(Rr)},cr.onKeyDown=Rr=>{Rr.keyCode===Fi.Z.ENTER&&(Ot({column:wn,key:vi,sortOrder:ir,multiplePriority:nd(wn)}),mr==null||mr(Rr))};const Zi=Ys(wn.title,{}),or=Zi==null?void 0:Zi.toString();return xi?cr["aria-sort"]=xi==="ascend"?"ascending":"descending":cr["aria-label"]=or||"",cr.className=St()(cr.className,`${Je}-column-has-sorters`),cr.tabIndex=0,wn.ellipsis&&(cr.title=(Zi!=null?Zi:"").toString()),cr}})}return"children"in _n&&(_n=Object.assign(Object.assign({},_n),{children:rc(Je,_n.children,Tt,Ot,en,Vt,Ln,jn)})),_n})}function rh(Je){const{column:tt,sortOrder:Tt}=Je;return{column:tt,order:Tt,field:tt.dataIndex,columnKey:tt.key}}function oh(Je){const tt=Je.filter(Tt=>{let{sortOrder:Ot}=Tt;return Ot}).map(rh);return tt.length===0&&Je.length?Object.assign(Object.assign({},rh(Je[Je.length-1])),{column:void 0}):tt.length<=1?tt[0]||{}:tt}function xh(Je,tt,Tt){const Ot=tt.slice().sort((Ln,bn)=>bn.multiplePriority-Ln.multiplePriority),en=Je.slice(),Vt=Ot.filter(Ln=>{let{column:{sorter:bn},sortOrder:wn}=Ln;return Nt(bn)&&wn});return Vt.length?en.sort((Ln,bn)=>{for(let wn=0;wn<Vt.length;wn+=1){const ni=Vt[wn],{column:{sorter:jn},sortOrder:_n}=ni,Ei=Nt(jn);if(Ei&&_n){const Ci=Ei(Ln,bn,_n);if(Ci!==0)return _n===td?Ci:-Ci}}return 0}).map(Ln=>{const bn=Ln[Tt];return bn?Object.assign(Object.assign({},Ln),{[Tt]:xh(bn,tt,Tt)}):Ln}):en}function oc(Je){let{prefixCls:tt,mergedColumns:Tt,onSorterChange:Ot,sortDirections:en,tableLocale:Vt,showSorterTooltip:Ln}=Je;const[bn,wn]=Fe.useState(Ic(Tt,!0)),ni=Fe.useMemo(()=>{let vi=!0;const Yi=Ic(Tt,!1);if(!Yi.length)return bn;const xi=[];function ir(ur){vi?xi.push(ur):xi.push(Object.assign(Object.assign({},ur),{sortOrder:null}))}let _i=null;return Yi.forEach(ur=>{_i===null?(ir(ur),ur.sortOrder&&(ur.multiplePriority===!1?vi=!1:_i=!0)):(_i&&ur.multiplePriority!==!1||(vi=!1),ir(ur))}),xi},[Tt,bn]),jn=Fe.useMemo(()=>{const vi=ni.map(Yi=>{let{column:xi,sortOrder:ir}=Yi;return{column:xi,order:ir}});return{sortColumns:vi,sortColumn:vi[0]&&vi[0].column,sortOrder:vi[0]&&vi[0].order}},[ni]);function _n(vi){let Yi;vi.multiplePriority===!1||!ni.length||ni[0].multiplePriority===!1?Yi=[vi]:Yi=[].concat((0,Ki.Z)(ni.filter(xi=>{let{key:ir}=xi;return ir!==vi.key})),[vi]),wn(Yi),Ot(oh(Yi),Yi)}return[vi=>rc(tt,vi,ni,_n,en,Vt,Ln),ni,jn,()=>oh(ni)]}function Bd(Je,tt){return Je.map(Tt=>{const Ot=Object.assign({},Tt);return Ot.title=_s(Tt.title,tt),"children"in Ot&&(Ot.children=Bd(Ot.children,tt)),Ot})}function Cs(Je){return[Fe.useCallback(Tt=>Bd(Tt,Je),[Je])]}var mo=kr((Je,tt)=>{const{_renderTimes:Tt}=Je,{_renderTimes:Ot}=tt;return Tt!==Ot}),il=ca((Je,tt)=>{const{_renderTimes:Tt}=Je,{_renderTimes:Ot}=tt;return Tt!==Ot}),yl=Se(64993),as=Se(17313),ea=Se(83116),Us=Se(37613),Ve=Je=>{const{componentCls:tt}=Je,Tt=`${Je.lineWidth}px ${Je.lineType} ${Je.tableBorderColor}`,Ot=(en,Vt,Ln)=>({[`&${tt}-${en}`]:{[`> ${tt}-container`]:{[`> ${tt}-content, > ${tt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${tt}-expanded-row-fixed`]:{margin:`-${Vt}px -${Ln+Je.lineWidth}px`}}}}}});return{[`${tt}-wrapper`]:{[`${tt}${tt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${tt}-title`]:{border:Tt,borderBottom:0},[`> ${tt}-container`]:{borderInlineStart:Tt,borderTop:Tt,[`
|
|
|
> ${tt}-content,
|
|
|
> ${tt}-header,
|
|
|
> ${tt}-body,
|
|
|
> ${tt}-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:Tt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Tt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${tt}-cell-fix-right-first::after`]:{borderInlineEnd:Tt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${tt}-expanded-row-fixed`]:{margin:`-${Je.tablePaddingVertical}px -${Je.tablePaddingHorizontal+Je.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Je.lineWidth,bottom:0,borderInlineEnd:Tt,content:'""'}}}}}},[`&${tt}-scroll-horizontal`]:{[`> ${tt}-container > ${tt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${tt}-expanded-row,
|
|
|
> tr${tt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ot("middle",Je.tablePaddingVerticalMiddle,Je.tablePaddingHorizontalMiddle)),Ot("small",Je.tablePaddingVerticalSmall,Je.tablePaddingHorizontalSmall)),{[`> ${tt}-footer`]:{border:Tt,borderTop:0}}),[`${tt}-cell`]:{[`${tt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Je.lineWidth}px 0 ${Je.lineWidth}px ${Je.tableHeaderBg}`}},[`${tt}-bordered ${tt}-cell-scrollbar`]:{borderInlineEnd:Tt}}}},Rt=Je=>{const{componentCls:tt}=Je;return{[`${tt}-wrapper`]:{[`${tt}-cell-ellipsis`]:Object.assign(Object.assign({},as.vS),{wordBreak:"keep-all",[`
|
|
|
&${tt}-cell-fix-left-last,
|
|
|
&${tt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${tt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${tt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},fn=Je=>{const{componentCls:tt}=Je;return{[`${tt}-wrapper`]:{[`${tt}-tbody > tr${tt}-placeholder`]:{textAlign:"center",color:Je.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Je.colorBgContainer}}}}},mn=Se(15969),Un=Je=>{const{componentCls:tt,antCls:Tt,controlInteractiveSize:Ot,motionDurationSlow:en,lineWidth:Vt,paddingXS:Ln,lineType:bn,tableBorderColor:wn,tableExpandIconBg:ni,tableExpandColumnWidth:jn,borderRadius:_n,fontSize:Ei,fontSizeSM:Ci,lineHeight:vi,tablePaddingVertical:Yi,tablePaddingHorizontal:xi,tableExpandedRowBg:ir,paddingXXS:_i}=Je,ur=Ot/2-Vt,Yr=ur*2+Vt*3,ao=`${Vt}px ${bn} ${wn}`,pr=_i-Vt;return{[`${tt}-wrapper`]:{[`${tt}-expand-icon-col`]:{width:jn},[`${tt}-row-expand-icon-cell`]:{textAlign:"center",[`${tt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${tt}-row-indent`]:{height:1,float:"left"},[`${tt}-row-expand-icon`]:Object.assign(Object.assign({},(0,mn.N)(Je)),{position:"relative",float:"left",boxSizing:"border-box",width:Yr,height:Yr,padding:0,color:"inherit",lineHeight:`${Yr}px`,background:ni,border:ao,borderRadius:_n,transform:`scale(${Ot/Yr})`,transition:`all ${en}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${en} ease-out`,content:'""'},"&::before":{top:ur,insetInlineEnd:pr,insetInlineStart:pr,height:Vt},"&::after":{top:pr,bottom:pr,insetInlineStart:ur,width:Vt,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"}}),[`${tt}-row-indent + ${tt}-row-expand-icon`]:{marginTop:(Ei*vi-Vt*3)/2-Math.ceil((Ci*1.4-Vt*3)/2),marginInlineEnd:Ln},[`tr${tt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ir}},[`${Tt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${tt}-expanded-row-fixed`]:{position:"relative",margin:`-${Yi}px -${xi}px`,padding:`${Yi}px ${xi}px`}}}},Ii=Je=>{const{componentCls:tt,antCls:Tt,iconCls:Ot,tableFilterDropdownWidth:en,tableFilterDropdownSearchWidth:Vt,paddingXXS:Ln,paddingXS:bn,colorText:wn,lineWidth:ni,lineType:jn,tableBorderColor:_n,tableHeaderIconColor:Ei,fontSizeSM:Ci,tablePaddingHorizontal:vi,borderRadius:Yi,motionDurationSlow:xi,colorTextDescription:ir,colorPrimary:_i,tableHeaderFilterActiveBg:ur,colorTextDisabled:Yr,tableFilterDropdownBg:ao,tableFilterDropdownHeight:pr,controlItemBgHover:Ar,controlItemBgActive:bo,boxShadowSecondary:cr,filterDropdownMenuBg:Or}=Je,mr=`${Tt}-dropdown`,Zi=`${tt}-filter-dropdown`,or=`${Tt}-tree`,Rr=`${ni}px ${jn} ${_n}`;return[{[`${tt}-wrapper`]:{[`${tt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${tt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Ln,marginInline:`${Ln}px ${-vi/2}px`,padding:`0 ${Ln}px`,color:Ei,fontSize:Ci,borderRadius:Yi,cursor:"pointer",transition:`all ${xi}`,"&:hover":{color:ir,background:ur},"&.active":{color:_i}}}},{[`${Tt}-dropdown`]:{[Zi]:Object.assign(Object.assign({},(0,as.Wf)(Je)),{minWidth:en,backgroundColor:ao,borderRadius:Yi,boxShadow:cr,overflow:"hidden",[`${mr}-menu`]:{maxHeight:pr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Or,"&:empty::after":{display:"block",padding:`${bn}px 0`,color:Yr,fontSize:Ci,textAlign:"center",content:'"Not Found"'}},[`${Zi}-tree`]:{paddingBlock:`${bn}px 0`,paddingInline:bn,[or]:{padding:0},[`${or}-treenode ${or}-node-content-wrapper:hover`]:{backgroundColor:Ar},[`${or}-treenode-checkbox-checked ${or}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:bo}}},[`${Zi}-search`]:{padding:bn,borderBottom:Rr,"&-input":{input:{minWidth:Vt},[Ot]:{color:Yr}}},[`${Zi}-checkall`]:{width:"100%",marginBottom:Ln,marginInlineStart:Ln},[`${Zi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${bn-ni}px ${bn}px`,overflow:"hidden",borderTop:Rr}})}},{[`${Tt}-dropdown ${Zi}, ${Zi}-submenu`]:{[`${Tt}-checkbox-wrapper + span`]:{paddingInlineStart:bn,color:wn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Li=Je=>{const{componentCls:tt,lineWidth:Tt,colorSplit:Ot,motionDurationSlow:en,zIndexTableFixed:Vt,tableBg:Ln,zIndexTableSticky:bn}=Je,wn=Ot;return{[`${tt}-wrapper`]:{[`
|
|
|
${tt}-cell-fix-left,
|
|
|
${tt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Vt,background:Ln},[`
|
|
|
${tt}-cell-fix-left-first::after,
|
|
|
${tt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Tt,width:30,transform:"translateX(100%)",transition:`box-shadow ${en}`,content:'""',pointerEvents:"none"},[`${tt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${tt}-cell-fix-right-first::after,
|
|
|
${tt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Tt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${en}`,content:'""',pointerEvents:"none"},[`${tt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:bn+1,width:30,transition:`box-shadow ${en}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${tt}-ping-left`]:{[`&:not(${tt}-has-fix-left) ${tt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${wn}`}},[`
|
|
|
${tt}-cell-fix-left-first::after,
|
|
|
${tt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${wn}`},[`${tt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${tt}-ping-right`]:{[`&:not(${tt}-has-fix-right) ${tt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${wn}`}},[`
|
|
|
${tt}-cell-fix-right-first::after,
|
|
|
${tt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${wn}`}}}}},Xi=Je=>{const{componentCls:tt,antCls:Tt}=Je;return{[`${tt}-wrapper`]:{[`${tt}-pagination${Tt}-pagination`]:{margin:`${Je.margin}px 0`},[`${tt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Je.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Mi=Je=>{const{componentCls:tt,tableRadius:Tt}=Je;return{[`${tt}-wrapper`]:{[tt]:{[`${tt}-title, ${tt}-header`]:{borderRadius:`${Tt}px ${Tt}px 0 0`},[`${tt}-title + ${tt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${tt}-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:Tt,borderStartEndRadius:Tt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Tt},"> *:last-child":{borderStartEndRadius:Tt}}},"&-footer":{borderRadius:`0 0 ${Tt}px ${Tt}px`}}}}},jr=Je=>{const{componentCls:tt}=Je;return{[`${tt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${tt}-pagination-left`]:{justifyContent:"flex-end"},[`${tt}-pagination-right`]:{justifyContent:"flex-start"},[`${tt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${tt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${tt}-row-indent`]:{float:"right"}}}}},Kr=Je=>{const{componentCls:tt,antCls:Tt,iconCls:Ot,fontSizeIcon:en,padding:Vt,paddingXS:Ln,tableHeaderIconColor:bn,tableHeaderIconColorHover:wn,tableSelectionColumnWidth:ni}=Je;return{[`${tt}-wrapper`]:{[`${tt}-selection-col`]:{width:ni,[`&${tt}-selection-col-with-dropdown`]:{width:ni+en+Vt/4}},[`${tt}-bordered ${tt}-selection-col`]:{width:ni+Ln*2,[`&${tt}-selection-col-with-dropdown`]:{width:ni+en+Vt/4+Ln*2}},[`
|
|
|
table tr th${tt}-selection-column,
|
|
|
table tr td${tt}-selection-column
|
|
|
`]:{paddingInlineEnd:Je.paddingXS,paddingInlineStart:Je.paddingXS,textAlign:"center",[`${Tt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${tt}-selection-column${tt}-cell-fix-left`]:{zIndex:Je.zIndexTableFixed+1},[`table tr th${tt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${tt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${tt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Je.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Je.tablePaddingHorizontal/4}px`,[Ot]:{color:bn,fontSize:en,verticalAlign:"baseline","&:hover":{color:wn}}}}}},Hr=Je=>{const{componentCls:tt}=Je,Tt=(Ot,en,Vt,Ln)=>({[`${tt}${tt}-${Ot}`]:{fontSize:Ln,[`
|
|
|
${tt}-title,
|
|
|
${tt}-footer,
|
|
|
${tt}-cell,
|
|
|
${tt}-thead > tr > th,
|
|
|
${tt}-tbody > tr > th,
|
|
|
${tt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${en}px ${Vt}px`},[`${tt}-filter-trigger`]:{marginInlineEnd:`-${Vt/2}px`},[`${tt}-expanded-row-fixed`]:{margin:`-${en}px -${Vt}px`},[`${tt}-tbody`]:{[`${tt}-wrapper:only-child ${tt}`]:{marginBlock:`-${en}px`,marginInline:`${Je.tableExpandColumnWidth-Vt}px -${Vt}px`}},[`${tt}-selection-column`]:{paddingInlineStart:`${Vt/4}px`}}});return{[`${tt}-wrapper`]:Object.assign(Object.assign({},Tt("middle",Je.tablePaddingVerticalMiddle,Je.tablePaddingHorizontalMiddle,Je.tableFontSizeMiddle)),Tt("small",Je.tablePaddingVerticalSmall,Je.tablePaddingHorizontalSmall,Je.tableFontSizeSmall))}},Yo=Je=>{const{componentCls:tt,marginXXS:Tt,fontSizeIcon:Ot,tableHeaderIconColor:en,tableHeaderIconColorHover:Vt}=Je;return{[`${tt}-wrapper`]:{[`${tt}-thead th${tt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Je.motionDurationSlow}`,"&:hover":{background:Je.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Je.colorPrimary},[`
|
|
|
&${tt}-cell-fix-left:hover,
|
|
|
&${tt}-cell-fix-right:hover
|
|
|
`]:{background:Je.tableFixedHeaderSortActiveBg}},[`${tt}-thead th${tt}-column-sort`]:{background:Je.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${tt}-column-sort`]:{background:Je.tableBodySortBg},[`${tt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${tt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${tt}-column-sorter`]:{marginInlineStart:Tt,color:en,fontSize:0,transition:`color ${Je.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ot,"&.active":{color:Je.colorPrimary}},[`${tt}-column-sorter-up + ${tt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${tt}-column-sorters:hover ${tt}-column-sorter`]:{color:Vt}}}},ta=Je=>{const{componentCls:tt,opacityLoading:Tt,tableScrollThumbBg:Ot,tableScrollThumbBgHover:en,tableScrollThumbSize:Vt,tableScrollBg:Ln,zIndexTableSticky:bn,stickyScrollBarBorderRadius:wn}=Je,ni=`${Je.lineWidth}px ${Je.lineType} ${Je.tableBorderColor}`;return{[`${tt}-wrapper`]:{[`${tt}-sticky`]:{"&-holder":{position:"sticky",zIndex:bn,background:Je.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Vt}px !important`,zIndex:bn,display:"flex",alignItems:"center",background:Ln,borderTop:ni,opacity:Tt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Vt,backgroundColor:Ot,borderRadius:wn,transition:`all ${Je.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:en}}}}}}},La=Je=>{const{componentCls:tt,lineWidth:Tt,tableBorderColor:Ot}=Je,en=`${Tt}px ${Je.lineType} ${Ot}`;return{[`${tt}-wrapper`]:{[`${tt}-summary`]:{position:"relative",zIndex:Je.zIndexTableFixed,background:Je.tableBg,"> tr":{"> th, > td":{borderBottom:en}}},[`div${tt}-summary`]:{boxShadow:`0 -${Tt}px 0 ${Ot}`}}}},es=Je=>{const{componentCls:tt}=Je,Tt=`${Je.lineWidth}px ${Je.lineType} ${Je.tableBorderColor}`,Ot=`${tt}-expanded-row-cell`;return{[`${tt}-wrapper`]:{[`${tt}-tbody-virtual`]:{[`${tt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${tt}-cell`]:{borderBottom:Tt},[`${tt}-expanded-row`]:{[`${Ot}${Ot}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Je.lineWidth}px)`,borderInlineEnd:"none"}}},[`${tt}-bordered`]:{[`${tt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Tt,position:"absolute"},[`${tt}-cell`]:{borderInlineEnd:Tt,[`&${tt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Je.lineWidth,borderInlineStart:Tt}}}}}}};const ma=Je=>{const{componentCls:tt,fontWeightStrong:Tt,tablePaddingVertical:Ot,tablePaddingHorizontal:en,lineWidth:Vt,lineType:Ln,tableBorderColor:bn,tableFontSize:wn,tableBg:ni,tableRadius:jn,tableHeaderTextColor:_n,motionDurationMid:Ei,tableHeaderBg:Ci,tableHeaderCellSplitColor:vi,tableRowHoverBg:Yi,tableSelectedRowBg:xi,tableSelectedRowHoverBg:ir,tableFooterTextColor:_i,tableFooterBg:ur,paddingContentVerticalLG:Yr}=Je,ao=`${Vt}px ${Ln} ${bn}`;return{[`${tt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,as.dF)()),{[tt]:Object.assign(Object.assign({},(0,as.Wf)(Je)),{fontSize:wn,background:ni,borderRadius:`${jn}px ${jn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${jn}px ${jn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${tt}-cell,
|
|
|
${tt}-thead > tr > th,
|
|
|
${tt}-tbody > tr > th,
|
|
|
${tt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Yr}px ${en}px`,overflowWrap:"break-word"},[`${tt}-title`]:{padding:`${Ot}px ${en}px`},[`${tt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:_n,fontWeight:Tt,textAlign:"start",background:Ci,borderBottom:ao,transition:`background ${Ei} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${tt}-selection-column):not(${tt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:vi,transform:"translateY(-50%)",transition:`background-color ${Ei}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${tt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ei}, border-color ${Ei}`,borderBottom:ao,[`
|
|
|
> ${tt}-wrapper:only-child,
|
|
|
> ${tt}-expanded-row-fixed > ${tt}-wrapper:only-child
|
|
|
`]:{[tt]:{marginBlock:`-${Ot}px`,marginInline:`${Je.tableExpandColumnWidth-en}px -${en}px`,[`${tt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:_n,fontWeight:Tt,textAlign:"start",background:Ci,borderBottom:ao,transition:`background ${Ei} ease`},[`
|
|
|
&${tt}-row:hover > th,
|
|
|
&${tt}-row:hover > td,
|
|
|
> th${tt}-cell-row-hover,
|
|
|
> td${tt}-cell-row-hover
|
|
|
`]:{background:Yi},[`&${tt}-row-selected`]:{"> th, > td":{background:xi},"&:hover > th, &:hover > td":{background:ir}}}},[`${tt}-footer`]:{padding:`${Ot}px ${en}px`,color:_i,background:ur}})}};var oa=(0,ea.Z)("Table",Je=>{const{colorTextHeading:tt,colorSplit:Tt,colorIcon:Ot,colorIconHover:en,opacityLoading:Vt,colorBgContainer:Ln,controlInteractiveSize:bn,headerBg:wn,headerColor:ni,headerSortActiveBg:jn,headerSortHoverBg:_n,bodySortBg:Ei,rowHoverBg:Ci,rowSelectedBg:vi,rowSelectedHoverBg:Yi,rowExpandedBg:xi,cellPaddingBlock:ir,cellPaddingInline:_i,cellPaddingBlockMD:ur,cellPaddingInlineMD:Yr,cellPaddingBlockSM:ao,cellPaddingInlineSM:pr,borderColor:Ar,footerBg:bo,footerColor:cr,headerBorderRadius:Or,cellFontSize:mr,cellFontSizeMD:Zi,cellFontSizeSM:or,headerSplitColor:Rr,fixedHeaderSortActiveBg:so,headerFilterHoverBg:uo,filterDropdownBg:ar,expandIconBg:Eo,selectionColumnWidth:Io,stickyScrollBarBg:Zo}=Je,Ho=new yl.C(Ot),za=new yl.C(en),qo=2,wo=(0,Us.TS)(Je,{tableFontSize:mr,tableBg:Ln,tableRadius:Or,tablePaddingVertical:ir,tablePaddingHorizontal:_i,tablePaddingVerticalMiddle:ur,tablePaddingHorizontalMiddle:Yr,tablePaddingVerticalSmall:ao,tablePaddingHorizontalSmall:pr,tableBorderColor:Ar,tableHeaderTextColor:ni,tableHeaderBg:wn,tableFooterTextColor:cr,tableFooterBg:bo,tableHeaderCellSplitColor:Rr,tableHeaderSortBg:jn,tableHeaderSortHoverBg:_n,tableHeaderIconColor:Ho.clone().setAlpha(Ho.getAlpha()*Vt).toRgbString(),tableHeaderIconColorHover:za.clone().setAlpha(za.getAlpha()*Vt).toRgbString(),tableBodySortBg:Ei,tableFixedHeaderSortActiveBg:so,tableHeaderFilterActiveBg:uo,tableFilterDropdownBg:ar,tableRowHoverBg:Ci,tableSelectedRowBg:vi,tableSelectedRowHoverBg:Yi,zIndexTableFixed:qo,zIndexTableSticky:qo+1,tableFontSizeMiddle:Zi,tableFontSizeSmall:or,tableSelectionColumnWidth:Io,tableExpandIconBg:Eo,tableExpandColumnWidth:bn+2*Je.padding,tableExpandedRowBg:xi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Zo,tableScrollThumbBgHover:tt,tableScrollBg:Tt});return[ma(wo),Xi(wo),La(wo),Yo(wo),Ii(wo),Ve(wo),Mi(wo),Un(wo),La(wo),fn(wo),Kr(wo),Li(wo),ta(wo),Rt(wo),Hr(wo),jr(wo),es(wo)]},Je=>{const{colorFillAlter:tt,colorBgContainer:Tt,colorTextHeading:Ot,colorFillSecondary:en,colorFillContent:Vt,controlItemBgActive:Ln,controlItemBgActiveHover:bn,padding:wn,paddingSM:ni,paddingXS:jn,colorBorderSecondary:_n,borderRadiusLG:Ei,fontSize:Ci,controlHeight:vi,colorTextPlaceholder:Yi}=Je,xi=new yl.C(en).onBackground(Tt).toHexShortString(),ir=new yl.C(Vt).onBackground(Tt).toHexShortString(),_i=new yl.C(tt).onBackground(Tt).toHexShortString();return{headerBg:_i,headerColor:Ot,headerSortActiveBg:xi,headerSortHoverBg:ir,bodySortBg:_i,rowHoverBg:_i,rowSelectedBg:Ln,rowSelectedHoverBg:bn,rowExpandedBg:tt,cellPaddingBlock:wn,cellPaddingInline:wn,cellPaddingBlockMD:ni,cellPaddingInlineMD:jn,cellPaddingBlockSM:jn,cellPaddingInlineSM:jn,borderColor:_n,headerBorderRadius:Ei,footerBg:_i,footerColor:Ot,cellFontSize:Ci,cellFontSizeMD:Ci,cellFontSizeSM:Ci,headerSplitColor:_n,fixedHeaderSortActiveBg:xi,headerFilterHoverBg:Vt,filterDropdownMenuBg:Tt,filterDropdownBg:Tt,expandIconBg:Tt,selectionColumnWidth:vi,stickyScrollBarBg:Yi,stickyScrollBarBorderRadius:100}});const xa=[],Ua=(Je,tt)=>{const{prefixCls:Tt,className:Ot,rootClassName:en,style:Vt,size:Ln,bordered:bn,dropdownPrefixCls:wn,dataSource:ni,pagination:jn,rowSelection:_n,rowKey:Ei="key",rowClassName:Ci,columns:vi,children:Yi,childrenColumnName:xi,onChange:ir,getPopupContainer:_i,loading:ur,expandIcon:Yr,expandable:ao,expandedRowRender:pr,expandIconColumnIndex:Ar,indentSize:bo,scroll:cr,sortDirections:Or,locale:mr,showSorterTooltip:Zi=!0,virtual:or}=Je,Rr=Fe.useMemo(()=>vi||pn(Yi),[vi,Yi]),so=Fe.useMemo(()=>Rr.some(Ca=>Ca.responsive),[Rr]),uo=(0,ei.Z)(so),ar=Fe.useMemo(()=>{const Ca=new Set(Object.keys(uo).filter(Ja=>uo[Ja]));return Rr.filter(Ja=>!Ja.responsive||Ja.responsive.some(Ws=>Ca.has(Ws)))},[Rr,uo]),Eo=(0,eo.Z)(Je,["className","style","columns"]),{locale:Io=Ro.Z,direction:Zo,table:Ho,renderEmpty:za,getPrefixCls:qo,getPopupContainer:wo}=Fe.useContext(sr.E_),Jr=(0,Nr.Z)(Ln),po=Object.assign(Object.assign({},Io.Table),mr),Ta=ni||xa,Pa=qo("table",Tt),Ga=qo("dropdown",wn),vo=Object.assign({childrenColumnName:xi,expandIconColumnIndex:Ar},ao),{childrenColumnName:io="children"}=vo,Po=Fe.useMemo(()=>Ta.some(Ca=>Ca==null?void 0:Ca[io])?"nest":pr||ao&&ao.expandedRowRender?"row":null,[Ta]),Ur={body:Fe.useRef()},Br=Fe.useMemo(()=>typeof Ei=="function"?Ei:Ca=>Ca==null?void 0:Ca[Ei],[Ei]),[Ai]=Oh(Ta,io,Br),xr={},ko=function(Ca,Ja){let Ws=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var is,ba,Zs;const Sl=Object.assign(Object.assign({},xr),Ca);Ws&&((is=xr.resetPagination)===null||is===void 0||is.call(xr),!((ba=Sl.pagination)===null||ba===void 0)&&ba.current&&(Sl.pagination.current=1),jn&&jn.onChange&&jn.onChange(1,(Zs=Sl.pagination)===null||Zs===void 0?void 0:Zs.pageSize)),cr&&cr.scrollToFirstRowOnChange!==!1&&Ur.body.current&&(0,fa.Z)(0,{getContainer:()=>Ur.body.current}),ir==null||ir(Sl.pagination,Sl.filters,Sl.sorter,{currentDataSource:vl(xh(Ta,Sl.sorterStates,io),Sl.filterStates),action:Ja})},Uo=(Ca,Ja)=>{ko({sorter:Ca,sorterStates:Ja},"sort",!1)},[Xs,As,sl,ya]=oc({prefixCls:Pa,mergedColumns:ar,onSorterChange:Uo,sortDirections:Or||["ascend","descend"],tableLocale:po,showSorterTooltip:Zi}),Da=Fe.useMemo(()=>xh(Ta,As,io),[Ta,As]);xr.sorter=ya(),xr.sorterStates=As;const ho=(Ca,Ja)=>{ko({filters:Ca,filterStates:Ja},"filter",!0)},[Bs,ll,Ma]=_h({prefixCls:Pa,locale:po,dropdownPrefixCls:Ga,mergedColumns:ar,onFilterChange:ho,getPopupContainer:_i||wo}),ja=vl(Da,ll);xr.filters=Ma,xr.filterStates=ll;const Ka=Fe.useMemo(()=>{const Ca={};return Object.keys(Ma).forEach(Ja=>{Ma[Ja]!==null&&(Ca[Ja]=Ma[Ja])}),Object.assign(Object.assign({},sl),{filters:Ca})},[sl,Ma]),[us]=Cs(Ka),Os=(Ca,Ja)=>{ko({pagination:Object.assign(Object.assign({},xr.pagination),{current:Ca,pageSize:Ja})},"paginate")},[na,Xa]=pd(ja.length,Os,jn);xr.pagination=jn===!1?{}:Dl(na,jn),xr.resetPagination=Xa;const Hs=Fe.useMemo(()=>{if(jn===!1||!na.pageSize)return ja;const{current:Ca=1,total:Ja,pageSize:Ws=Gu}=na;return ja.length<Ja?ja.length>Ws?ja.slice((Ca-1)*Ws,Ca*Ws):ja:ja.slice((Ca-1)*Ws,Ca*Ws)},[!!jn,ja,na&&na.current,na&&na.pageSize,na&&na.total]),[Ba,yo]=Ql({prefixCls:Pa,data:ja,pageData:Hs,getRowKey:Br,getRecordByKey:Ai,expandType:Po,childrenColumnName:io,locale:po,getPopupContainer:_i||wo},_n),gs=(Ca,Ja,Ws)=>{let is;return typeof Ci=="function"?is=St()(Ci(Ca,Ja,Ws)):is=St()(Ci),St()({[`${Pa}-row-selected`]:yo.has(Br(Ca,Ja))},is)};vo.__PARENT_RENDER_ICON__=vo.expandIcon,vo.expandIcon=vo.expandIcon||Yr||Ia(po),Po==="nest"&&vo.expandIconColumnIndex===void 0?vo.expandIconColumnIndex=_n?1:0:vo.expandIconColumnIndex>0&&_n&&(vo.expandIconColumnIndex-=1),typeof vo.indentSize!="number"&&(vo.indentSize=typeof bo=="number"?bo:15);const Is=Fe.useCallback(Ca=>us(Ba(Bs(Xs(Ca)))),[Xs,Bs,Ba]);let bu,$l;if(jn!==!1&&(na!=null&&na.total)){let Ca;na.size?Ca=na.size:Ca=Jr==="small"||Jr==="middle"?"small":void 0;const Ja=ba=>Fe.createElement(ia.Z,Object.assign({},na,{className:St()(`${Pa}-pagination ${Pa}-pagination-${ba}`,na.className),size:Ca})),Ws=Zo==="rtl"?"left":"right",{position:is}=na;if(is!==null&&Array.isArray(is)){const ba=is.find(Eu=>Eu.includes("top")),Zs=is.find(Eu=>Eu.includes("bottom")),Sl=is.every(Eu=>`${Eu}`=="none");!ba&&!Zs&&!Sl&&($l=Ja(Ws)),ba&&(bu=Ja(ba.toLowerCase().replace("top",""))),Zs&&($l=Ja(Zs.toLowerCase().replace("bottom","")))}else $l=Ja(Ws)}let Ha;typeof ur=="boolean"?Ha={spinning:ur}:typeof ur=="object"&&(Ha=Object.assign({spinning:!0},ur));const[ul,ss]=oa(Pa),[,ns]=(0,ha.Z)(),du=St()(`${Pa}-wrapper`,Ho==null?void 0:Ho.className,{[`${Pa}-wrapper-rtl`]:Zo==="rtl"},Ot,en,ss),ah=Object.assign(Object.assign({},Ho==null?void 0:Ho.style),Vt),Ol=mr&&mr.emptyText||(za==null?void 0:za("Table"))||Fe.createElement(tr.Z,{componentName:"Table"}),Ku=or?il:mo,Vu={},ql=Fe.useMemo(()=>{const{fontSize:Ca,lineHeight:Ja,padding:Ws,paddingXS:is,paddingSM:ba}=ns,Zs=Math.floor(Ca*Ja);switch(Jr){case"large":return Ws*2+Zs;case"small":return is*2+Zs;default:return ba*2+Zs}},[ns,Jr]);return or&&(Vu.listItemHeight=ql),ul(Fe.createElement("div",{ref:tt,className:du,style:ah},Fe.createElement(Za.Z,Object.assign({spinning:!1},Ha),bu,Fe.createElement(Ku,Object.assign({},Vu,Eo,{columns:ar,direction:Zo,expandable:vo,prefixCls:Pa,className:St()({[`${Pa}-middle`]:Jr==="middle",[`${Pa}-small`]:Jr==="small",[`${Pa}-bordered`]:bn,[`${Pa}-empty`]:Ta.length===0}),data:Hs,rowKey:Br,rowClassName:gs,emptyText:Ol,internalHooks:je,internalRefs:Ur,transformColumns:Is})),$l)))};var ts=Fe.forwardRef(Ua);const Ra=(Je,tt)=>{const Tt=Fe.useRef(0);return Tt.current+=1,Fe.createElement(ts,Object.assign({},Je,{ref:tt,_renderTimes:Tt.current}))},wa=Fe.forwardRef(Ra);wa.SELECTION_COLUMN=xs,wa.EXPAND_COLUMN=Ee,wa.SELECTION_ALL=ws,wa.SELECTION_INVERT=_a,wa.SELECTION_NONE=ls,wa.Column=Sr,wa.ColumnGroup=Wo,wa.Summary=dt;var Ms=wa,el=Ms},86914:function(On,Pn,Se){"use strict";Se.d(Pn,{default:function(){return yt}});var Ee=Se(99581),je=Se(26390),it=Se(43971),kt=Se(58358),Xe=Se(5891),pt=Se(59301),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Ft=Fe,Ct=Se(88853),nt=function(tn,Wn){return pt.createElement(Ct.Z,(0,Xe.Z)({},tn,{ref:Wn,icon:Ft}))},gt=pt.forwardRef(nt),wt=gt,xt=Se(92310),Te=Se.n(xt),te=Se(35654),ne=Se(71430),he=Se(36355),se=Se(44757),ge=Se(62892),ve=Se(20648);const Pe=4;function ke(Ge){const{dropPosition:tn,dropLevelOffset:Wn,prefixCls:Qn,indent:Dt,direction:$t="ltr"}=Ge,cn=$t==="ltr"?"left":"right",Zn=$t==="ltr"?"right":"left",hn={[cn]:-Wn*Dt+Pe,[Zn]:0};switch(tn){case-1:hn.top=-3;break;case 1:hn.bottom=-3;break;default:hn.bottom=-3,hn[cn]=Dt+Pe;break}return pt.createElement("div",{style:hn,className:`${Qn}-drop-indicator`})}var we=Se(48610),ze=pt.forwardRef((Ge,tn)=>{const{getPrefixCls:Wn,direction:Qn,virtual:Dt,tree:$t}=pt.useContext(he.E_),{prefixCls:cn,className:Zn,showIcon:hn=!1,showLine:ii,switcherIcon:mt,blockNode:Xn=!1,children:ri,checkable:pi=!1,selectable:Mn=!0,draggable:Gt,motion:zt,style:Mt}=Ge,at=Wn("tree",cn),jt=Wn(),Et=zt!=null?zt:Object.assign(Object.assign({},(0,ge.Z)(jt)),{motionAppear:!1}),dt=Object.assign(Object.assign({},Ge),{checkable:pi,selectable:Mn,showIcon:hn,motion:Et,blockNode:Xn,showLine:!!ii,dropIndicatorRender:ke}),[ot,De]=(0,ve.ZP)(at),xe=pt.useMemo(()=>{if(!Gt)return!1;let Ne={};switch(typeof Gt){case"function":Ne.nodeDraggable=Gt;break;case"object":Ne=Object.assign({},Gt);break;default:break}return Ne.icon!==!1&&(Ne.icon=Ne.icon||pt.createElement(se.Z,null)),Ne},[Gt]),me=Ne=>pt.createElement(we.Z,{prefixCls:at,switcherIcon:mt,treeNodeProps:Ne,showLine:ii});return ot(pt.createElement(Ee.Z,Object.assign({itemHeight:20,ref:tn,virtual:Dt},dt,{style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Mt),prefixCls:at,className:Te()({[`${at}-icon-hide`]:!hn,[`${at}-block-node`]:Xn,[`${at}-unselectable`]:!Mn,[`${at}-rtl`]:Qn==="rtl"},$t==null?void 0:$t.className,Zn,De),direction:Qn,checkable:pi&&pt.createElement("span",{className:`${at}-checkbox-inner`}),selectable:Mn,switcherIcon:me,draggable:xe}),ri))}),We;(function(Ge){Ge[Ge.None=0]="None",Ge[Ge.Start=1]="Start",Ge[Ge.End=2]="End"})(We||(We={}));function Ue(Ge,tn){function Wn(Qn){const{key:Dt,children:$t}=Qn;tn(Dt,Qn)!==!1&&Ue($t||[],tn)}Ge.forEach(Wn)}function ut(Ge){let{treeData:tn,expandedKeys:Wn,startKey:Qn,endKey:Dt}=Ge;const $t=[];let cn=We.None;if(Qn&&Qn===Dt)return[Qn];if(!Qn||!Dt)return[];function Zn(hn){return hn===Qn||hn===Dt}return Ue(tn,hn=>{if(cn===We.End)return!1;if(Zn(hn)){if($t.push(hn),cn===We.None)cn=We.Start;else if(cn===We.Start)return cn=We.End,!1}else cn===We.Start&&$t.push(hn);return Wn.includes(hn)}),$t}function Ke(Ge,tn){const Wn=(0,je.Z)(tn),Qn=[];return Ue(Ge,(Dt,$t)=>{const cn=Wn.indexOf(Dt);return cn!==-1&&(Qn.push($t),Wn.splice(cn,1)),!!Wn.length}),Qn}var Ht=function(Ge,tn){var Wn={};for(var Qn in Ge)Object.prototype.hasOwnProperty.call(Ge,Qn)&&tn.indexOf(Qn)<0&&(Wn[Qn]=Ge[Qn]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Qn=Object.getOwnPropertySymbols(Ge);Dt<Qn.length;Dt++)tn.indexOf(Qn[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Qn[Dt])&&(Wn[Qn[Dt]]=Ge[Qn[Dt]]);return Wn};function St(Ge){const{isLeaf:tn,expanded:Wn}=Ge;return tn?pt.createElement(it.Z,null):Wn?pt.createElement(kt.Z,null):pt.createElement(wt,null)}function _t(Ge){let{treeData:tn,children:Wn}=Ge;return tn||(0,ne.zn)(Wn)}const Qt=(Ge,tn)=>{var{defaultExpandAll:Wn,defaultExpandParent:Qn,defaultExpandedKeys:Dt}=Ge,$t=Ht(Ge,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const cn=pt.useRef(),Zn=pt.useRef(),hn=()=>{const{keyEntities:xe}=(0,ne.I8)(_t($t));let me;return Wn?me=Object.keys(xe):Qn?me=(0,te.r7)($t.expandedKeys||Dt||[],xe):me=$t.expandedKeys||Dt,me},[ii,mt]=pt.useState($t.selectedKeys||$t.defaultSelectedKeys||[]),[Xn,ri]=pt.useState(()=>hn());pt.useEffect(()=>{"selectedKeys"in $t&&mt($t.selectedKeys)},[$t.selectedKeys]),pt.useEffect(()=>{"expandedKeys"in $t&&ri($t.expandedKeys)},[$t.expandedKeys]);const pi=(xe,me)=>{var Ne;return"expandedKeys"in $t||ri(xe),(Ne=$t.onExpand)===null||Ne===void 0?void 0:Ne.call($t,xe,me)},Mn=(xe,me)=>{var Ne;const{multiple:He}=$t,{node:Me,nativeEvent:et}=me,{key:Ut=""}=Me,rn=_t($t),ht=Object.assign(Object.assign({},me),{selected:!0}),Pt=(et==null?void 0:et.ctrlKey)||(et==null?void 0:et.metaKey),ln=et==null?void 0:et.shiftKey;let Fn;He&&Pt?(Fn=xe,cn.current=Ut,Zn.current=Fn,ht.selectedNodes=Ke(rn,Fn)):He&&ln?(Fn=Array.from(new Set([].concat((0,je.Z)(Zn.current||[]),(0,je.Z)(ut({treeData:rn,expandedKeys:Xn,startKey:Ut,endKey:cn.current}))))),ht.selectedNodes=Ke(rn,Fn)):(Fn=[Ut],cn.current=Ut,Zn.current=Fn,ht.selectedNodes=Ke(rn,Fn)),(Ne=$t.onSelect)===null||Ne===void 0||Ne.call($t,Fn,ht),"selectedKeys"in $t||mt(Fn)},{getPrefixCls:Gt,direction:zt}=pt.useContext(he.E_),{prefixCls:Mt,className:at,showIcon:jt=!0,expandAction:Et="click"}=$t,dt=Ht($t,["prefixCls","className","showIcon","expandAction"]),ot=Gt("tree",Mt),De=Te()(`${ot}-directory`,{[`${ot}-directory-rtl`]:zt==="rtl"},at);return pt.createElement(ze,Object.assign({icon:St,ref:tn,blockNode:!0},dt,{showIcon:jt,expandAction:Et,prefixCls:ot,className:De,expandedKeys:Xn,selectedKeys:ii,onSelect:Mn,onExpand:pi}))};var sn=pt.forwardRef(Qt);const Bn=ze;Bn.DirectoryTree=sn,Bn.TreeNode=Ee.O;var yt=Bn},20648:function(On,Pn,Se){"use strict";Se.d(Pn,{TM:function(){return xt},Yk:function(){return wt}});var Ee=Se(9792),je=Se(98447),it=Se(17313),kt=Se(8378),Xe=Se(37613),pt=Se(83116);const Fe=new Ee.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ft=(Te,te)=>({[`.${Te}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),Ct=(Te,te)=>({[`.${Te}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${te.lineWidthBold}px solid ${te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),nt=(Te,te)=>{const{treeCls:ne,treeNodeCls:he,treeNodePadding:se,titleHeight:ge,nodeSelectedBg:ve,nodeHoverBg:Pe}=te,ke=te.paddingXS;return{[ne]:Object.assign(Object.assign({},(0,it.Wf)(te)),{background:te.colorBgContainer,borderRadius:te.borderRadius,transition:`background-color ${te.motionDurationSlow}`,[`&${ne}-rtl`]:{[`${ne}-switcher`]:{"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ne}-active-focused)`]:Object.assign({},(0,it.oN)(te)),[`${ne}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ne}-block-node`]:{[`${ne}-list-holder-inner`]:{alignItems:"stretch",[`${ne}-node-content-wrapper`]:{flex:"auto"},[`${he}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:se,insetInlineStart:0,border:`1px solid ${te.colorPrimary}`,opacity:0,animationName:Fe,animationDuration:te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${he}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ne}-node-content-wrapper`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ne}-node-content-wrapper`]:Object.assign({},(0,it.oN)(te)),[`&:not(${he}-disabled).filter-node ${ne}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ne}-draggable-icon`]:{flexShrink:0,width:ge,lineHeight:`${ge}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${te.motionDurationSlow}`,[`${he}:hover &`]:{opacity:.45}},[`&${he}-disabled`]:{[`${ne}-draggable-icon`]:{visibility:"hidden"}}}},[`${ne}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ge}},[`${ne}-draggable-icon`]:{visibility:"hidden"},[`${ne}-switcher`]:Object.assign(Object.assign({},Ft(Te,te)),{position:"relative",flex:"none",alignSelf:"stretch",width:ge,margin:0,lineHeight:`${ge}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:te.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ge/2,bottom:-se,marginInlineStart:-1,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ge/2*.8,height:ge/2,borderBottom:`1px solid ${te.colorBorder}`,content:'""'}}}),[`${ne}-checkbox`]:{top:"initial",marginInlineEnd:ke},[`${ne}-node-content-wrapper, ${ne}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ge,margin:0,padding:`0 ${te.paddingXS/2}px`,color:"inherit",lineHeight:`${ge}px`,background:"transparent",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Pe},[`&${ne}-node-selected`]:{backgroundColor:ve},[`${ne}-iconEle`]:{display:"inline-block",width:ge,height:ge,lineHeight:`${ge}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ne}-unselectable ${ne}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ne}-node-content-wrapper`]:Object.assign({lineHeight:`${ge}px`,userSelect:"none"},Ct(Te,te)),[`${he}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${te.colorPrimary}`}},"&-show-line":{[`${ne}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ge/2,bottom:-se,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ne}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${he}-leaf-last`]:{[`${ne}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ge/2}px !important`}}}}})}},gt=Te=>{const{treeCls:te,treeNodeCls:ne,treeNodePadding:he,directoryNodeSelectedBg:se,directoryNodeSelectedColor:ge}=Te;return{[`${te}${te}-directory`]:{[ne]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:he,insetInlineStart:0,transition:`background-color ${Te.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Te.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${Te.motionDurationMid}`},[`${te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${te}-node-selected`]:{color:ge,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:se},[`${te}-switcher`]:{color:ge},[`${te}-node-content-wrapper`]:{color:ge,background:"transparent"}}}}}},wt=(Te,te)=>{const ne=`.${Te}`,he=`${ne}-treenode`,se=te.paddingXS/2,ge=(0,Xe.TS)(te,{treeCls:ne,treeNodeCls:he,treeNodePadding:se});return[nt(Te,ge),gt(ge)]},xt=Te=>{const{controlHeightSM:te}=Te;return{titleHeight:te,nodeHoverBg:Te.controlItemBgHover,nodeSelectedBg:Te.controlItemBgActive}};Pn.ZP=(0,pt.Z)("Tree",(Te,te)=>{let{prefixCls:ne}=te;return[{[Te.componentCls]:(0,je.C2)(`${ne}-checkbox`,Te)},wt(ne,Te),(0,kt.Z)(Te)]},Te=>{const{colorTextLightSolid:te,colorPrimary:ne}=Te;return Object.assign(Object.assign({},xt(Te)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:ne})})},48610:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return he}});var Ee=Se(5891),je=Se(59301),it={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"},kt=it,Xe=Se(88853),pt=function(ge,ve){return je.createElement(Xe.Z,(0,Ee.Z)({},ge,{ref:ve,icon:kt}))},Fe=je.forwardRef(pt),Ft=Fe,Ct=Se(43971),nt=Se(50023),gt=Se(77042),wt=Se(5527),xt=Se(92310),Te=Se.n(xt),te=Se(92343),he=se=>{const{prefixCls:ge,switcherIcon:ve,treeNodeProps:Pe,showLine:ke}=se,{isLeaf:we,expanded:Oe,loading:ze}=Pe;if(ze)return je.createElement(nt.Z,{className:`${ge}-switcher-loading-icon`});let We;if(ke&&typeof ke=="object"&&(We=ke.showLeafIcon),we){if(!ke)return null;if(typeof We!="boolean"&&We){const Ke=typeof We=="function"?We(Pe):We,Ht=`${ge}-switcher-line-custom-icon`;return(0,te.l$)(Ke)?(0,te.Tm)(Ke,{className:Te()(Ke.props.className||"",Ht)}):Ke}return We?je.createElement(Ct.Z,{className:`${ge}-switcher-line-icon`}):je.createElement("span",{className:`${ge}-switcher-leaf-line`})}const Ue=`${ge}-switcher-icon`,ut=typeof ve=="function"?ve(Pe):ve;return(0,te.l$)(ut)?(0,te.Tm)(ut,{className:Te()(ut.props.className||"",Ue)}):ut!==void 0?ut:ke?Oe?je.createElement(gt.Z,{className:`${ge}-switcher-line-icon`}):je.createElement(wt.Z,{className:`${ge}-switcher-line-icon`}):je.createElement(Ft,{className:Ue})}},24645:function(On,Pn,Se){"use strict";Se.d(Pn,{default:function(){return Sn}});var Ee=Se(59301),je=Se(26390),it=Se(92310),kt=Se.n(it),Xe=Se(5891),pt=Se(79545),Fe=Se(68550),Ft=Se(17928),Ct=Se(7711),nt=Se(80962),gt=Se(19149),wt=Se(50204),xt=Se(80665),Te=Se(20959),te=Se(36994);function ne(Wt,on){var gn="cannot ".concat(Wt.method," ").concat(Wt.action," ").concat(on.status,"'"),un=new Error(gn);return un.status=on.status,un.method=Wt.method,un.url=Wt.action,un}function he(Wt){var on=Wt.responseText||Wt.response;if(!on)return on;try{return JSON.parse(on)}catch(gn){return on}}function se(Wt){var on=new XMLHttpRequest;Wt.onProgress&&on.upload&&(on.upload.onprogress=function(Nn){Nn.total>0&&(Nn.percent=Nn.loaded/Nn.total*100),Wt.onProgress(Nn)});var gn=new FormData;Wt.data&&Object.keys(Wt.data).forEach(function(En){var Nn=Wt.data[En];if(Array.isArray(Nn)){Nn.forEach(function(Vn){gn.append("".concat(En,"[]"),Vn)});return}gn.append(En,Nn)}),Wt.file instanceof Blob?gn.append(Wt.filename,Wt.file,Wt.file.name):gn.append(Wt.filename,Wt.file),on.onerror=function(Nn){Wt.onError(Nn)},on.onload=function(){return on.status<200||on.status>=300?Wt.onError(ne(Wt,on),he(on)):Wt.onSuccess(he(on),on)},on.open(Wt.method,Wt.action,!0),Wt.withCredentials&&"withCredentials"in on&&(on.withCredentials=!0);var un=Wt.headers||{};return un["X-Requested-With"]!==null&&on.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(un).forEach(function(En){un[En]!==null&&on.setRequestHeader(En,un[En])}),on.send(gn),{abort:function(){on.abort()}}}var ge=+new Date,ve=0;function Pe(){return"rc-upload-".concat(ge,"-").concat(++ve)}var ke=Se(51395),we=function(Wt,on){if(Wt&&on){var gn=Array.isArray(on)?on:on.split(","),un=Wt.name||"",En=Wt.type||"",Nn=En.replace(/\/.*$/,"");return gn.some(function(Vn){var $n=Vn.trim();if(/^\*(\/\*)?$/.test(Vn))return!0;if($n.charAt(0)==="."){var Tn=un.toLowerCase(),ai=$n.toLowerCase(),Qi=[ai];return(ai===".jpg"||ai===".jpeg")&&(Qi=[".jpg",".jpeg"]),Qi.some(function(Lr){return Tn.endsWith(Lr)})}return/\/\*$/.test($n)?Nn===$n.replace(/\/.*$/,""):En===$n?!0:/^\w+$/.test($n)?((0,ke.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat($n,"'.Skip for check.")),!0):!1})}return!0};function Oe(Wt,on){var gn=Wt.createReader(),un=[];function En(){gn.readEntries(function(Nn){var Vn=Array.prototype.slice.apply(Nn);un=un.concat(Vn);var $n=!Vn.length;$n?on(un):En()})}En()}var ze=function(on,gn,un){var En=function Nn(Vn,$n){Vn&&(Vn.path=$n||"",Vn.isFile?Vn.file(function(Tn){un(Tn)&&(Vn.fullPath&&!Tn.webkitRelativePath&&(Object.defineProperties(Tn,{webkitRelativePath:{writable:!0}}),Tn.webkitRelativePath=Vn.fullPath.replace(/^\//,""),Object.defineProperties(Tn,{webkitRelativePath:{writable:!1}})),gn([Tn]))}):Vn.isDirectory&&Oe(Vn,function(Tn){Tn.forEach(function(ai){Nn(ai,"".concat($n).concat(Vn.name,"/"))})}))};on.forEach(function(Nn){En(Nn.webkitGetAsEntry())})},We=ze,Ue=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ut=function(Wt){(0,Ft.Z)(gn,Wt);var on=(0,Ct.Z)(gn);function gn(){var un;(0,pt.Z)(this,gn);for(var En=arguments.length,Nn=new Array(En),Vn=0;Vn<En;Vn++)Nn[Vn]=arguments[Vn];return un=on.call.apply(on,[this].concat(Nn)),un.state={uid:Pe()},un.reqs={},un.fileInput=void 0,un._isMounted=void 0,un.onChange=function($n){var Tn=un.props,ai=Tn.accept,Qi=Tn.directory,Lr=$n.target.files,qi=(0,je.Z)(Lr).filter(function(Bt){return!Qi||we(Bt,ai)});un.uploadFiles(qi),un.reset()},un.onClick=function($n){var Tn=un.fileInput;if(Tn){var ai=$n.target,Qi=un.props.onClick;if(ai&&ai.tagName==="BUTTON"){var Lr=Tn.parentNode;Lr.focus(),ai.blur()}Tn.click(),Qi&&Qi($n)}},un.onKeyDown=function($n){$n.key==="Enter"&&un.onClick($n)},un.onFileDrop=function($n){var Tn=un.props.multiple;if($n.preventDefault(),$n.type!=="dragover")if(un.props.directory)We(Array.prototype.slice.call($n.dataTransfer.items),un.uploadFiles,function(Qi){return we(Qi,un.props.accept)});else{var ai=(0,je.Z)($n.dataTransfer.files).filter(function(Qi){return we(Qi,un.props.accept)});Tn===!1&&(ai=ai.slice(0,1)),un.uploadFiles(ai)}},un.uploadFiles=function($n){var Tn=(0,je.Z)($n),ai=Tn.map(function(Qi){return Qi.uid=Pe(),un.processFile(Qi,Tn)});Promise.all(ai).then(function(Qi){var Lr=un.props.onBatchStart;Lr==null||Lr(Qi.map(function(qi){var Bt=qi.origin,Si=qi.parsedFile;return{file:Bt,parsedFile:Si}})),Qi.filter(function(qi){return qi.parsedFile!==null}).forEach(function(qi){un.post(qi)})})},un.processFile=function(){var $n=(0,Te.Z)((0,wt.Z)().mark(function Tn(ai,Qi){var Lr,qi,Bt,Si,Hi,ki,Pr,yr,kr;return(0,wt.Z)().wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:if(Lr=un.props.beforeUpload,qi=ai,!Lr){Ri.next=14;break}return Ri.prev=3,Ri.next=6,Lr(ai,Qi);case 6:qi=Ri.sent,Ri.next=12;break;case 9:Ri.prev=9,Ri.t0=Ri.catch(3),qi=!1;case 12:if(qi!==!1){Ri.next=14;break}return Ri.abrupt("return",{origin:ai,parsedFile:null,action:null,data:null});case 14:if(Bt=un.props.action,typeof Bt!="function"){Ri.next=21;break}return Ri.next=18,Bt(ai);case 18:Si=Ri.sent,Ri.next=22;break;case 21:Si=Bt;case 22:if(Hi=un.props.data,typeof Hi!="function"){Ri.next=29;break}return Ri.next=26,Hi(ai);case 26:ki=Ri.sent,Ri.next=30;break;case 29:ki=Hi;case 30:return Pr=((0,xt.Z)(qi)==="object"||typeof qi=="string")&&qi?qi:ai,Pr instanceof File?yr=Pr:yr=new File([Pr],ai.name,{type:ai.type}),kr=yr,kr.uid=ai.uid,Ri.abrupt("return",{origin:ai,data:ki,parsedFile:kr,action:Si});case 35:case"end":return Ri.stop()}},Tn,null,[[3,9]])}));return function(Tn,ai){return $n.apply(this,arguments)}}(),un.saveFileInput=function($n){un.fileInput=$n},un}return(0,Fe.Z)(gn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(En){var Nn=this,Vn=En.data,$n=En.origin,Tn=En.action,ai=En.parsedFile;if(this._isMounted){var Qi=this.props,Lr=Qi.onStart,qi=Qi.customRequest,Bt=Qi.name,Si=Qi.headers,Hi=Qi.withCredentials,ki=Qi.method,Pr=$n.uid,yr=qi||se,kr={action:Tn,filename:Bt,data:Vn,file:ai,headers:Si,withCredentials:Hi,method:ki||"post",onProgress:function(Ri){var Gr=Nn.props.onProgress;Gr==null||Gr(Ri,ai)},onSuccess:function(Ri,Gr){var xn=Nn.props.onSuccess;xn==null||xn(Ri,ai,Gr),delete Nn.reqs[Pr]},onError:function(Ri,Gr){var xn=Nn.props.onError;xn==null||xn(Ri,Gr,ai),delete Nn.reqs[Pr]}};Lr($n),this.reqs[Pr]=yr(kr)}}},{key:"reset",value:function(){this.setState({uid:Pe()})}},{key:"abort",value:function(En){var Nn=this.reqs;if(En){var Vn=En.uid?En.uid:En;Nn[Vn]&&Nn[Vn].abort&&Nn[Vn].abort(),delete Nn[Vn]}else Object.keys(Nn).forEach(function($n){Nn[$n]&&Nn[$n].abort&&Nn[$n].abort(),delete Nn[$n]})}},{key:"render",value:function(){var En=this.props,Nn=En.component,Vn=En.prefixCls,$n=En.className,Tn=En.disabled,ai=En.id,Qi=En.style,Lr=En.multiple,qi=En.accept,Bt=En.capture,Si=En.children,Hi=En.directory,ki=En.openFileDialogOnClick,Pr=En.onMouseEnter,yr=En.onMouseLeave,kr=(0,gt.Z)(En,Ue),rr=kt()((0,nt.Z)((0,nt.Z)((0,nt.Z)({},Vn,!0),"".concat(Vn,"-disabled"),Tn),$n,$n)),Ri=Hi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Gr=Tn?{}:{onClick:ki?this.onClick:function(){},onKeyDown:ki?this.onKeyDown:function(){},onMouseEnter:Pr,onMouseLeave:yr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Ee.createElement(Nn,(0,Xe.Z)({},Gr,{className:rr,role:"button",style:Qi}),Ee.createElement("input",(0,Xe.Z)({},(0,te.Z)(kr,{aria:!0,data:!0}),{id:ai,disabled:Tn,type:"file",ref:this.saveFileInput,onClick:function(Fo){return Fo.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:qi},Ri,{multiple:Lr,onChange:this.onChange},Bt!=null?{capture:Bt}:{})),Si)}}]),gn}(Ee.Component),Ke=ut;function Ht(){}var St=function(Wt){(0,Ft.Z)(gn,Wt);var on=(0,Ct.Z)(gn);function gn(){var un;(0,pt.Z)(this,gn);for(var En=arguments.length,Nn=new Array(En),Vn=0;Vn<En;Vn++)Nn[Vn]=arguments[Vn];return un=on.call.apply(on,[this].concat(Nn)),un.uploader=void 0,un.saveUploader=function($n){un.uploader=$n},un}return(0,Fe.Z)(gn,[{key:"abort",value:function(En){this.uploader.abort(En)}},{key:"render",value:function(){return Ee.createElement(Ke,(0,Xe.Z)({},this.props,{ref:this.saveUploader}))}}]),gn}(Ee.Component);St.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ht,onError:Ht,onSuccess:Ht,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var _t=St,Qt=_t,qt=Se(35788),sn=Se(4676),Bn=Se(36355),yt=Se(1684),Ge=Se(9763),tn=Se(31724),Wn={icon:function(on,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:on}}]}},name:"file",theme:"twotone"},Qn=Wn,Dt=Se(88853),$t=function(on,gn){return Ee.createElement(Dt.Z,(0,Xe.Z)({},on,{ref:gn,icon:Qn}))},cn=Ee.forwardRef($t),Zn=cn,hn=Se(50023),ii={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"},mt=ii,Xn=function(on,gn){return Ee.createElement(Dt.Z,(0,Xe.Z)({},on,{ref:gn,icon:mt}))},ri=Ee.forwardRef(Xn),pi=ri,Mn={icon:function(on,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:on}},{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:on}}]}},name:"picture",theme:"twotone"},Gt=Mn,zt=function(on,gn){return Ee.createElement(Dt.Z,(0,Xe.Z)({},on,{ref:gn,icon:Gt}))},Mt=Ee.forwardRef(zt),at=Mt,jt=Se(43469),Et=Se(56762),dt=Se(62892),ot=Se(92343),De=Se(3113);function xe(Wt){return Object.assign(Object.assign({},Wt),{lastModified:Wt.lastModified,lastModifiedDate:Wt.lastModifiedDate,name:Wt.name,size:Wt.size,type:Wt.type,uid:Wt.uid,percent:0,originFileObj:Wt})}function me(Wt,on){const gn=(0,je.Z)(on),un=gn.findIndex(En=>{let{uid:Nn}=En;return Nn===Wt.uid});return un===-1?gn.push(Wt):gn[un]=Wt,gn}function Ne(Wt,on){const gn=Wt.uid!==void 0?"uid":"name";return on.filter(un=>un[gn]===Wt[gn])[0]}function He(Wt,on){const gn=Wt.uid!==void 0?"uid":"name",un=on.filter(En=>En[gn]!==Wt[gn]);return un.length===on.length?null:un}const Me=function(){const on=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),un=on[on.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(un)||[""])[0]},et=Wt=>Wt.indexOf("image/")===0,Ut=Wt=>{if(Wt.type&&!Wt.thumbUrl)return et(Wt.type);const on=Wt.thumbUrl||Wt.url||"",gn=Me(on);return/^data:image\//.test(on)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(gn)?!0:!(/^data:/.test(on)||gn)},rn=200;function ht(Wt){return new Promise(on=>{if(!Wt.type||!et(Wt.type)){on("");return}const gn=document.createElement("canvas");gn.width=rn,gn.height=rn,gn.style.cssText=`position: fixed; left: 0; top: 0; width: ${rn}px; height: ${rn}px; z-index: 9999; display: none;`,document.body.appendChild(gn);const un=gn.getContext("2d"),En=new Image;if(En.onload=()=>{const{width:Nn,height:Vn}=En;let $n=rn,Tn=rn,ai=0,Qi=0;Nn>Vn?(Tn=Vn*(rn/Nn),Qi=-(Tn-$n)/2):($n=Nn*(rn/Vn),ai=-($n-Tn)/2),un.drawImage(En,ai,Qi,$n,Tn);const Lr=gn.toDataURL();document.body.removeChild(gn),window.URL.revokeObjectURL(En.src),on(Lr)},En.crossOrigin="anonymous",Wt.type.startsWith("image/svg+xml")){const Nn=new FileReader;Nn.onload=()=>{Nn.result&&(En.src=Nn.result)},Nn.readAsDataURL(Wt)}else if(Wt.type.startsWith("image/gif")){const Nn=new FileReader;Nn.onload=()=>{Nn.result&&on(Nn.result)},Nn.readAsDataURL(Wt)}else En.src=window.URL.createObjectURL(Wt)})}var Pt=Se(72295),ln=Se(24566),Fn=Se(30631),oi=Se(93948),ci=Se(6848),mi=Ee.forwardRef((Wt,on)=>{let{prefixCls:gn,className:un,style:En,locale:Nn,listType:Vn,file:$n,items:Tn,progress:ai,iconRender:Qi,actionIconRender:Lr,itemRender:qi,isImgUrl:Bt,showPreviewIcon:Si,showRemoveIcon:Hi,showDownloadIcon:ki,previewIcon:Pr,removeIcon:yr,downloadIcon:kr,onPreview:rr,onDownload:Ri,onClose:Gr}=Wt;var xn,Fo;const{status:An}=$n,[Ir,_o]=Ee.useState(An);Ee.useEffect(()=>{An!=="removed"&&_o(An)},[An]);const[oo,Fa]=Ee.useState(!1);Ee.useEffect(()=>{const sr=setTimeout(()=>{Fa(!0)},300);return()=>{clearTimeout(sr)}},[]);const Qo=Qi($n);let dr=Ee.createElement("div",{className:`${gn}-icon`},Qo);if(Vn==="picture"||Vn==="picture-card"||Vn==="picture-circle")if(Ir==="uploading"||!$n.thumbUrl&&!$n.url){const sr=kt()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:Ir!=="uploading"});dr=Ee.createElement("div",{className:sr},Qo)}else{const sr=Bt!=null&&Bt($n)?Ee.createElement("img",{src:$n.thumbUrl||$n.url,alt:$n.name,className:`${gn}-list-item-image`,crossOrigin:$n.crossOrigin}):Qo,tr=kt()(`${gn}-list-item-thumbnail`,{[`${gn}-list-item-file`]:Bt&&!Bt($n)});dr=Ee.createElement("a",{className:tr,onClick:Nr=>rr($n,Nr),href:$n.url||$n.thumbUrl,target:"_blank",rel:"noopener noreferrer"},sr)}const nr=kt()(`${gn}-list-item`,`${gn}-list-item-${Ir}`),no=typeof $n.linkProps=="string"?JSON.parse($n.linkProps):$n.linkProps,Lo=Hi?Lr((typeof yr=="function"?yr($n):yr)||Ee.createElement(Pt.Z,null),()=>Gr($n),gn,Nn.removeFile):null,wi=ki&&Ir==="done"?Lr((typeof kr=="function"?kr($n):kr)||Ee.createElement(ln.Z,null),()=>Ri($n),gn,Nn.downloadFile):null,Ye=Vn!=="picture-card"&&Vn!=="picture-circle"&&Ee.createElement("span",{key:"download-delete",className:kt()(`${gn}-list-item-actions`,{picture:Vn==="picture"})},wi,Lo),$r=kt()(`${gn}-list-item-name`),ca=$n.url?[Ee.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:$r,title:$n.name},no,{href:$n.url,onClick:sr=>rr($n,sr)}),$n.name),Ye]:[Ee.createElement("span",{key:"view",className:$r,onClick:sr=>rr($n,sr),title:$n.name},$n.name),Ye],qr={pointerEvents:"none",opacity:.5},$o=Si?Ee.createElement("a",{href:$n.url||$n.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:$n.url||$n.thumbUrl?void 0:qr,onClick:sr=>rr($n,sr),title:Nn.previewFile},typeof Pr=="function"?Pr($n):Pr||Ee.createElement(Fn.Z,null)):null,Fr=(Vn==="picture-card"||Vn==="picture-circle")&&Ir!=="uploading"&&Ee.createElement("span",{className:`${gn}-list-item-actions`},$o,Ir==="done"&&wi,Lo),{getPrefixCls:Sr}=Ee.useContext(Bn.E_),xo=Sr(),Wo=Ee.createElement("div",{className:nr},dr,ca,Fr,oo&&Ee.createElement(jt.default,{motionName:`${xo}-fade`,visible:Ir==="uploading",motionDeadline:2e3},sr=>{let{className:tr}=sr;const Nr="percent"in $n?Ee.createElement(oi.Z,Object.assign({},ai,{type:"line",percent:$n.percent,"aria-label":$n["aria-label"],"aria-labelledby":$n["aria-labelledby"]})):null;return Ee.createElement("div",{className:kt()(`${gn}-list-item-progress`,tr)},Nr)})),eo=$n.response&&typeof $n.response=="string"?$n.response:((xn=$n.error)===null||xn===void 0?void 0:xn.statusText)||((Fo=$n.error)===null||Fo===void 0?void 0:Fo.message)||Nn.uploadError,fa=Ir==="error"?Ee.createElement(ci.Z,{title:eo,getPopupContainer:sr=>sr.parentNode},Wo):Wo;return Ee.createElement("div",{className:kt()(`${gn}-list-item-container`,un),style:En,ref:on},qi?qi(fa,$n,Tn,{download:Ri.bind(null,$n),preview:rr.bind(null,$n),remove:Gr.bind(null,$n)}):fa)});const Ui=(Wt,on)=>{const{listType:gn="text",previewFile:un=ht,onPreview:En,onDownload:Nn,onRemove:Vn,locale:$n,iconRender:Tn,isImageUrl:ai=Ut,prefixCls:Qi,items:Lr=[],showPreviewIcon:qi=!0,showRemoveIcon:Bt=!0,showDownloadIcon:Si=!1,removeIcon:Hi,previewIcon:ki,downloadIcon:Pr,progress:yr={size:[-1,2],showInfo:!1},appendAction:kr,appendActionVisible:rr=!0,itemRender:Ri,disabled:Gr}=Wt,xn=(0,Et.Z)(),[Fo,An]=Ee.useState(!1);Ee.useEffect(()=>{gn!=="picture"&&gn!=="picture-card"&&gn!=="picture-circle"||(Lr||[]).forEach(qr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(qr.originFileObj instanceof File||qr.originFileObj instanceof Blob)||qr.thumbUrl!==void 0||(qr.thumbUrl="",un&&un(qr.originFileObj).then($o=>{qr.thumbUrl=$o||"",xn()}))})},[gn,Lr,un]),Ee.useEffect(()=>{An(!0)},[]);const Ir=(qr,$o)=>{if(En)return $o==null||$o.preventDefault(),En(qr)},_o=qr=>{typeof Nn=="function"?Nn(qr):qr.url&&window.open(qr.url)},oo=qr=>{Vn==null||Vn(qr)},Fa=qr=>{if(Tn)return Tn(qr,gn);const $o=qr.status==="uploading",Fr=ai&&ai(qr)?Ee.createElement(at,null):Ee.createElement(Zn,null);let Sr=$o?Ee.createElement(hn.Z,null):Ee.createElement(pi,null);return gn==="picture"?Sr=$o?Ee.createElement(hn.Z,null):Fr:(gn==="picture-card"||gn==="picture-circle")&&(Sr=$o?$n.uploading:Fr),Sr},Qo=(qr,$o,Fr,Sr)=>{const xo={type:"text",size:"small",title:Sr,onClick:Wo=>{$o(),(0,ot.l$)(qr)&&qr.props.onClick&&qr.props.onClick(Wo)},className:`${Fr}-list-item-action`,disabled:Gr};if((0,ot.l$)(qr)){const Wo=(0,ot.Tm)(qr,Object.assign(Object.assign({},qr.props),{onClick:()=>{}}));return Ee.createElement(De.ZP,Object.assign({},xo,{icon:Wo}))}return Ee.createElement(De.ZP,Object.assign({},xo),Ee.createElement("span",null,qr))};Ee.useImperativeHandle(on,()=>({handlePreview:Ir,handleDownload:_o}));const{getPrefixCls:dr}=Ee.useContext(Bn.E_),nr=dr("upload",Qi),no=dr(),Lo=kt()(`${nr}-list`,`${nr}-list-${gn}`),wi=(0,je.Z)(Lr.map(qr=>({key:qr.uid,file:qr})));let $r={motionDeadline:2e3,motionName:`${nr}-${gn==="picture-card"||gn==="picture-circle"?"animate-inline":"animate"}`,keys:wi,motionAppear:Fo};const ca=Ee.useMemo(()=>{const qr=Object.assign({},(0,dt.Z)(no));return delete qr.onAppearEnd,delete qr.onEnterEnd,delete qr.onLeaveEnd,qr},[no]);return gn!=="picture-card"&&gn!=="picture-circle"&&($r=Object.assign(Object.assign({},ca),$r)),Ee.createElement("div",{className:Lo},Ee.createElement(jt.CSSMotionList,Object.assign({},$r,{component:!1}),qr=>{let{key:$o,file:Fr,className:Sr,style:xo}=qr;return Ee.createElement(mi,{key:$o,locale:$n,prefixCls:nr,className:Sr,style:xo,file:Fr,items:Lr,progress:yr,listType:gn,isImgUrl:ai,showPreviewIcon:qi,showRemoveIcon:Bt,showDownloadIcon:Si,removeIcon:Hi,previewIcon:ki,downloadIcon:Pr,iconRender:Fa,actionIconRender:Qo,itemRender:Ri,onPreview:Ir,onDownload:_o,onClose:oo})}),kr&&Ee.createElement(jt.default,Object.assign({},$r,{visible:rr,forceRender:!0}),qr=>{let{className:$o,style:Fr}=qr;return(0,ot.Tm)(kr,Sr=>({className:kt()(Sr.className,$o),style:Object.assign(Object.assign(Object.assign({},Fr),{pointerEvents:$o?"none":void 0}),Sr.style)}))}))};var lr=Ee.forwardRef(Ui),gr=Se(17313),wr=Se(8378),Zr=Se(83116),Ki=Se(37613),Vi=Wt=>{const{componentCls:on,iconCls:gn}=Wt;return{[`${on}-wrapper`]:{[`${on}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Wt.colorFillAlter,border:`${Wt.lineWidth}px dashed ${Wt.colorBorder}`,borderRadius:Wt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Wt.motionDurationSlow}`,[on]:{padding:`${Wt.padding}px 0`},[`${on}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${on}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${on}-disabled):hover`]:{borderColor:Wt.colorPrimaryHover},[`p${on}-drag-icon`]:{marginBottom:Wt.margin,[gn]:{color:Wt.colorPrimary,fontSize:Wt.uploadThumbnailSize}},[`p${on}-text`]:{margin:`0 0 ${Wt.marginXXS}px`,color:Wt.colorTextHeading,fontSize:Wt.fontSizeLG},[`p${on}-hint`]:{color:Wt.colorTextDescription,fontSize:Wt.fontSize},[`&${on}-disabled`]:{cursor:"not-allowed",[`p${on}-drag-icon ${gn},
|
|
|
p${on}-text,
|
|
|
p${on}-hint
|
|
|
`]:{color:Wt.colorTextDisabled}}}}}},Pi=Wt=>{const{componentCls:on,antCls:gn,iconCls:un,fontSize:En,lineHeight:Nn}=Wt,Vn=`${on}-list-item`,$n=`${Vn}-actions`,Tn=`${Vn}-action`,ai=Math.round(En*Nn);return{[`${on}-wrapper`]:{[`${on}-list`]:Object.assign(Object.assign({},(0,gr.dF)()),{lineHeight:Wt.lineHeight,[Vn]:{position:"relative",height:Wt.lineHeight*En,marginTop:Wt.marginXS,fontSize:En,display:"flex",alignItems:"center",transition:`background-color ${Wt.motionDurationSlow}`,"&:hover":{backgroundColor:Wt.controlItemBgHover},[`${Vn}-name`]:Object.assign(Object.assign({},gr.vS),{padding:`0 ${Wt.paddingXS}px`,lineHeight:Nn,flex:"auto",transition:`all ${Wt.motionDurationSlow}`}),[$n]:{[Tn]:{opacity:0},[`${Tn}${gn}-btn-sm`]:{height:ai,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Tn}:focus-visible,
|
|
|
&.picture ${Tn}
|
|
|
`]:{opacity:1},[un]:{color:Wt.actionsColor,transition:`all ${Wt.motionDurationSlow}`},[`&:hover ${un}`]:{color:Wt.colorText}},[`${on}-icon ${un}`]:{color:Wt.colorTextDescription,fontSize:En},[`${Vn}-progress`]:{position:"absolute",bottom:-Wt.uploadProgressOffset,width:"100%",paddingInlineStart:En+Wt.paddingXS,fontSize:En,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Vn}:hover ${Tn}`]:{opacity:1,color:Wt.colorText},[`${Vn}-error`]:{color:Wt.colorError,[`${Vn}-name, ${on}-icon ${un}`]:{color:Wt.colorError},[$n]:{[`${un}, ${un}:hover`]:{color:Wt.colorError},[Tn]:{opacity:1}}},[`${on}-list-item-container`]:{transition:`opacity ${Wt.motionDurationSlow}, height ${Wt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Gi=Se(9792),hr=Se(1950);const $i=new Gi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),fo=new Gi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Co=Wt=>{const{componentCls:on}=Wt,gn=`${on}-animate-inline`;return[{[`${on}-wrapper`]:{[`${gn}-appear, ${gn}-enter, ${gn}-leave`]:{animationDuration:Wt.motionDurationSlow,animationTimingFunction:Wt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${gn}-appear, ${gn}-enter`]:{animationName:$i},[`${gn}-leave`]:{animationName:fo}}},{[`${on}-wrapper`]:(0,hr.J$)(Wt)},$i,fo]},vn=Se(93398),an=Se(64993);const Jt=Wt=>{const{componentCls:on,iconCls:gn,uploadThumbnailSize:un,uploadProgressOffset:En}=Wt,Nn=`${on}-list`,Vn=`${Nn}-item`;return{[`${on}-wrapper`]:{[`
|
|
|
${Nn}${Nn}-picture,
|
|
|
${Nn}${Nn}-picture-card,
|
|
|
${Nn}${Nn}-picture-circle
|
|
|
`]:{[Vn]:{position:"relative",height:un+Wt.lineWidth*2+Wt.paddingXS*2,padding:Wt.paddingXS,border:`${Wt.lineWidth}px ${Wt.lineType} ${Wt.colorBorder}`,borderRadius:Wt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Vn}-thumbnail`]:Object.assign(Object.assign({},gr.vS),{width:un,height:un,lineHeight:`${un+Wt.paddingSM}px`,textAlign:"center",flex:"none",[gn]:{fontSize:Wt.fontSizeHeading2,color:Wt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Vn}-progress`]:{bottom:En,width:`calc(100% - ${Wt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:un+Wt.paddingXS}},[`${Vn}-error`]:{borderColor:Wt.colorError,[`${Vn}-thumbnail ${gn}`]:{[`svg path[fill='${vn.blue[0]}']`]:{fill:Wt.colorErrorBg},[`svg path[fill='${vn.blue.primary}']`]:{fill:Wt.colorError}}},[`${Vn}-uploading`]:{borderStyle:"dashed",[`${Vn}-name`]:{marginBottom:En}}},[`${Nn}${Nn}-picture-circle ${Vn}`]:{[`&, &::before, ${Vn}-thumbnail`]:{borderRadius:"50%"}}}}},ft=Wt=>{const{componentCls:on,iconCls:gn,fontSizeLG:un,colorTextLightSolid:En}=Wt,Nn=`${on}-list`,Vn=`${Nn}-item`,$n=Wt.uploadPicCardSize;return{[`
|
|
|
${on}-wrapper${on}-picture-card-wrapper,
|
|
|
${on}-wrapper${on}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,gr.dF)()),{display:"inline-block",width:"100%",[`${on}${on}-select`]:{width:$n,height:$n,marginInlineEnd:Wt.marginXS,marginBottom:Wt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Wt.colorFillAlter,border:`${Wt.lineWidth}px dashed ${Wt.colorBorder}`,borderRadius:Wt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Wt.motionDurationSlow}`,[`> ${on}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${on}-disabled):hover`]:{borderColor:Wt.colorPrimary}},[`${Nn}${Nn}-picture-card, ${Nn}${Nn}-picture-circle`]:{[`${Nn}-item-container`]:{display:"inline-block",width:$n,height:$n,marginBlock:`0 ${Wt.marginXS}px`,marginInline:`0 ${Wt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Vn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Wt.paddingXS*2}px)`,height:`calc(100% - ${Wt.paddingXS*2}px)`,backgroundColor:Wt.colorBgMask,opacity:0,transition:`all ${Wt.motionDurationSlow}`,content:'" "'}},[`${Vn}:hover`]:{[`&::before, ${Vn}-actions`]:{opacity:1}},[`${Vn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Wt.motionDurationSlow}`,[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{zIndex:10,width:un,margin:`0 ${Wt.marginXXS}px`,fontSize:un,cursor:"pointer",transition:`all ${Wt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Vn}-actions, ${Vn}-actions:hover`]:{[`${gn}-eye, ${gn}-download, ${gn}-delete`]:{color:new an.C(En).setAlpha(.65).toRgbString(),"&:hover":{color:En}}},[`${Vn}-thumbnail, ${Vn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Vn}-name`]:{display:"none",textAlign:"center"},[`${Vn}-file + ${Vn}-name`]:{position:"absolute",bottom:Wt.margin,display:"block",width:`calc(100% - ${Wt.paddingXS*2}px)`},[`${Vn}-uploading`]:{[`&${Vn}`]:{backgroundColor:Wt.colorFillAlter},[`&::before, ${gn}-eye, ${gn}-download, ${gn}-delete`]:{display:"none"}},[`${Vn}-progress`]:{bottom:Wt.marginXL,width:`calc(100% - ${Wt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${on}-wrapper${on}-picture-circle-wrapper`]:{[`${on}${on}-select`]:{borderRadius:"50%"}}}};var Rn=Wt=>{const{componentCls:on}=Wt;return{[`${on}-rtl`]:{direction:"rtl"}}};const It=Wt=>{const{componentCls:on,colorTextDisabled:gn}=Wt;return{[`${on}-wrapper`]:Object.assign(Object.assign({},(0,gr.Wf)(Wt)),{[on]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${on}-select`]:{display:"inline-block"},[`${on}-disabled`]:{color:gn,cursor:"not-allowed"}})}};var lt=(0,Zr.Z)("Upload",Wt=>{const{fontSizeHeading3:on,fontSize:gn,lineHeight:un,lineWidth:En,controlHeightLG:Nn}=Wt,Vn=Math.round(gn*un),$n=(0,Ki.TS)(Wt,{uploadThumbnailSize:on*2,uploadProgressOffset:Vn/2+En,uploadPicCardSize:Nn*2.55});return[It($n),Vi($n),Jt($n),ft($n),Pi($n),Co($n),Rn($n),(0,wr.Z)($n)]},Wt=>({actionsColor:Wt.colorTextDescription})),yn=function(Wt,on,gn,un){function En(Nn){return Nn instanceof gn?Nn:new gn(function(Vn){Vn(Nn)})}return new(gn||(gn=Promise))(function(Nn,Vn){function $n(Qi){try{ai(un.next(Qi))}catch(Lr){Vn(Lr)}}function Tn(Qi){try{ai(un.throw(Qi))}catch(Lr){Vn(Lr)}}function ai(Qi){Qi.done?Nn(Qi.value):En(Qi.value).then($n,Tn)}ai((un=un.apply(Wt,on||[])).next())})};const Yn=`__LIST_IGNORE_${Date.now()}__`,Di=(Wt,on)=>{const{fileList:gn,defaultFileList:un,onRemove:En,showUploadList:Nn=!0,listType:Vn="text",onPreview:$n,onDownload:Tn,onChange:ai,onDrop:Qi,previewFile:Lr,disabled:qi,locale:Bt,iconRender:Si,isImageUrl:Hi,progress:ki,prefixCls:Pr,className:yr,type:kr="select",children:rr,style:Ri,itemRender:Gr,maxCount:xn,data:Fo={},multiple:An=!1,action:Ir="",accept:_o="",supportServerRender:oo=!0,rootClassName:Fa}=Wt,Qo=Ee.useContext(yt.Z),dr=qi!=null?qi:Qo,[nr,no]=(0,qt.Z)(un||[],{value:gn,postState:No=>No!=null?No:[]}),[Lo,wi]=Ee.useState("drop"),Ye=Ee.useRef(null);Ee.useMemo(()=>{const No=Date.now();(gn||[]).forEach((ga,os)=>{!ga.uid&&!Object.isFrozen(ga)&&(ga.uid=`__AUTO__${No}_${os}__`)})},[gn]);const $r=(No,ga,os)=>{let pa=(0,je.Z)(ga),To=!1;xn===1?pa=pa.slice(-1):xn&&(To=pa.length>xn,pa=pa.slice(0,xn)),(0,sn.flushSync)(()=>{no(pa)});const la={file:No,fileList:pa};os&&(la.event=os),(!To||pa.some(bs=>bs.uid===No.uid))&&(0,sn.flushSync)(()=>{ai==null||ai(la)})},ca=(No,ga)=>yn(void 0,void 0,void 0,function*(){const{beforeUpload:os,transformFile:pa}=Wt;let To=No;if(os){const la=yield os(No,ga);if(la===!1)return!1;if(delete No[Yn],la===Yn)return Object.defineProperty(No,Yn,{value:!0,configurable:!0}),!1;typeof la=="object"&&la&&(To=la)}return pa&&(To=yield pa(To)),To}),qr=No=>{const ga=No.filter(To=>!To.file[Yn]);if(!ga.length)return;const os=ga.map(To=>xe(To.file));let pa=(0,je.Z)(nr);os.forEach(To=>{pa=me(To,pa)}),os.forEach((To,la)=>{let bs=To;if(ga[la].parsedFile)To.status="uploading";else{const{originFileObj:to}=To;let zo;try{zo=new File([to],to.name,{type:to.type})}catch(Oo){zo=new Blob([to],{type:to.type}),zo.name=to.name,zo.lastModifiedDate=new Date,zo.lastModified=new Date().getTime()}zo.uid=To.uid,bs=zo}$r(bs,pa)})},$o=(No,ga,os)=>{try{typeof No=="string"&&(No=JSON.parse(No))}catch(la){}if(!Ne(ga,nr))return;const pa=xe(ga);pa.status="done",pa.percent=100,pa.response=No,pa.xhr=os;const To=me(pa,nr);$r(pa,To)},Fr=(No,ga)=>{if(!Ne(ga,nr))return;const os=xe(ga);os.status="uploading",os.percent=No.percent;const pa=me(os,nr);$r(os,pa,No)},Sr=(No,ga,os)=>{if(!Ne(os,nr))return;const pa=xe(os);pa.error=No,pa.response=ga,pa.status="error";const To=me(pa,nr);$r(pa,To)},xo=No=>{let ga;Promise.resolve(typeof En=="function"?En(No):En).then(os=>{var pa;if(os===!1)return;const To=He(No,nr);To&&(ga=Object.assign(Object.assign({},No),{status:"removed"}),nr==null||nr.forEach(la=>{const bs=ga.uid!==void 0?"uid":"name";la[bs]===ga[bs]&&!Object.isFrozen(la)&&(la.status="removed")}),(pa=Ye.current)===null||pa===void 0||pa.abort(ga),$r(ga,To))})},Wo=No=>{wi(No.type),No.type==="drop"&&(Qi==null||Qi(No))};Ee.useImperativeHandle(on,()=>({onBatchStart:qr,onSuccess:$o,onProgress:Fr,onError:Sr,fileList:nr,upload:Ye.current}));const{getPrefixCls:eo,direction:fa,upload:sr}=Ee.useContext(Bn.E_),tr=eo("upload",Pr),Nr=Object.assign(Object.assign({onBatchStart:qr,onError:Sr,onProgress:Fr,onSuccess:$o},Wt),{data:Fo,multiple:An,action:Ir,accept:_o,supportServerRender:oo,prefixCls:tr,disabled:dr,beforeUpload:ca,onChange:void 0});delete Nr.className,delete Nr.style,(!rr||dr)&&delete Nr.id;const[ei,Ro]=lt(tr),[ia]=(0,Ge.Z)("Upload",tn.Z.Upload),{showRemoveIcon:Za,showPreviewIcon:ha,showDownloadIcon:Oa,removeIcon:Ia,previewIcon:ys,downloadIcon:Ds}=typeof Nn=="boolean"?{}:Nn,_s=(No,ga)=>Nn?Ee.createElement(lr,{prefixCls:tr,listType:Vn,items:nr,previewFile:Lr,onPreview:$n,onDownload:Tn,onRemove:xo,showRemoveIcon:!dr&&Za,showPreviewIcon:ha,showDownloadIcon:Oa,removeIcon:Ia,previewIcon:ys,downloadIcon:Ds,iconRender:Si,locale:Object.assign(Object.assign({},ia),Bt),isImageUrl:Hi,progress:ki,appendAction:No,appendActionVisible:ga,itemRender:Gr,disabled:dr}):No,Ys=kt()(`${tr}-wrapper`,yr,Fa,Ro,sr==null?void 0:sr.className,{[`${tr}-rtl`]:fa==="rtl",[`${tr}-picture-card-wrapper`]:Vn==="picture-card",[`${tr}-picture-circle-wrapper`]:Vn==="picture-circle"}),dn=Object.assign(Object.assign({},sr==null?void 0:sr.style),Ri);if(kr==="drag"){const No=kt()(Ro,tr,`${tr}-drag`,{[`${tr}-drag-uploading`]:nr.some(ga=>ga.status==="uploading"),[`${tr}-drag-hover`]:Lo==="dragover",[`${tr}-disabled`]:dr,[`${tr}-rtl`]:fa==="rtl"});return ei(Ee.createElement("span",{className:Ys},Ee.createElement("div",{className:No,style:dn,onDrop:Wo,onDragOver:Wo,onDragLeave:Wo},Ee.createElement(Qt,Object.assign({},Nr,{ref:Ye,className:`${tr}-btn`}),Ee.createElement("div",{className:`${tr}-drag-container`},rr))),_s()))}const js=kt()(tr,`${tr}-select`,{[`${tr}-disabled`]:dr}),su=(No=>Ee.createElement("div",{className:js,style:No},Ee.createElement(Qt,Object.assign({},Nr,{ref:Ye}))))(rr?void 0:{display:"none"});return ei(Vn==="picture-card"||Vn==="picture-circle"?Ee.createElement("span",{className:Ys},_s(su,!!rr)):Ee.createElement("span",{className:Ys},su,_s()))};var bt=Ee.forwardRef(Di),In=function(Wt,on){var gn={};for(var un in Wt)Object.prototype.hasOwnProperty.call(Wt,un)&&on.indexOf(un)<0&&(gn[un]=Wt[un]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,un=Object.getOwnPropertySymbols(Wt);En<un.length;En++)on.indexOf(un[En])<0&&Object.prototype.propertyIsEnumerable.call(Wt,un[En])&&(gn[un[En]]=Wt[un[En]]);return gn},Oi=Ee.forwardRef((Wt,on)=>{var{style:gn,height:un}=Wt,En=In(Wt,["style","height"]);return Ee.createElement(bt,Object.assign({ref:on},En,{type:"drag",style:Object.assign(Object.assign({},gn),{height:un})}))});const Kt=bt;Kt.Dragger=Oi,Kt.LIST_IGNORE=Yn;var Sn=Kt},99498:function(On,Pn,Se){(function(Ee){Ee(Se(89780))})(function(Ee){Ee.defineOption("placeholder","",function(Ft,Ct,nt){var gt=nt&&nt!=Ee.Init;if(Ct&&!gt)Ft.on("blur",Xe),Ft.on("change",pt),Ft.on("swapDoc",pt),Ee.on(Ft.getInputField(),"compositionupdate",Ft.state.placeholderCompose=function(){kt(Ft)}),pt(Ft);else if(!Ct&>){Ft.off("blur",Xe),Ft.off("change",pt),Ft.off("swapDoc",pt),Ee.off(Ft.getInputField(),"compositionupdate",Ft.state.placeholderCompose),je(Ft);var wt=Ft.getWrapperElement();wt.className=wt.className.replace(" CodeMirror-empty","")}Ct&&!Ft.hasFocus()&&Xe(Ft)});function je(Ft){Ft.state.placeholder&&(Ft.state.placeholder.parentNode.removeChild(Ft.state.placeholder),Ft.state.placeholder=null)}function it(Ft){je(Ft);var Ct=Ft.state.placeholder=document.createElement("pre");Ct.style.cssText="height: 0; overflow: visible",Ct.style.direction=Ft.getOption("direction"),Ct.className="CodeMirror-placeholder CodeMirror-line-like";var nt=Ft.getOption("placeholder");typeof nt=="string"&&(nt=document.createTextNode(nt)),Ct.appendChild(nt),Ft.display.lineSpace.insertBefore(Ct,Ft.display.lineSpace.firstChild)}function kt(Ft){setTimeout(function(){var Ct=!1,nt=Ft.getInputField();nt.nodeName=="TEXTAREA"?Ct=!nt.value:Ft.lineCount()==1&&(Ct=!/[^\u200b]/.test(nt.querySelector(".CodeMirror-line").textContent)),Ct?it(Ft):je(Ft)},20)}function Xe(Ft){Fe(Ft)&&it(Ft)}function pt(Ft){var Ct=Ft.getWrapperElement(),nt=Fe(Ft);Ct.className=Ct.className.replace(" CodeMirror-empty","")+(nt?" CodeMirror-empty":""),nt?it(Ft):je(Ft)}function Fe(Ft){return Ft.lineCount()===1&&Ft.getLine(0)===""}})},25717:function(On,Pn,Se){(function(Ee){Ee(Se(89780))})(function(Ee){var je={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},it=Ee.Pos;Ee.defineOption("autoCloseBrackets",!1,function(te,ne,he){he&&he!=Ee.Init&&(te.removeKeyMap(Xe),te.state.closeBrackets=null),ne&&(pt(kt(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Xe))});function kt(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:je[ne]}var Xe={Backspace:Ct,Enter:nt};function pt(te){for(var ne=0;ne<te.length;ne++){var he=te.charAt(ne),se="'"+he+"'";Xe[se]||(Xe[se]=Fe(he))}}pt(je.pairs+"`");function Fe(te){return function(ne){return wt(ne,te)}}function Ft(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var he=te.getModeAt(te.getCursor());return he.closeBrackets||ne}function Ct(te){var ne=Ft(te);if(!ne||te.getOption("disableInput"))return Ee.Pass;for(var he=kt(ne,"pairs"),se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return Ee.Pass;var ve=xt(te,se[ge].head);if(!ve||he.indexOf(ve)%2!=0)return Ee.Pass}for(var ge=se.length-1;ge>=0;ge--){var Pe=se[ge].head;te.replaceRange("",it(Pe.line,Pe.ch-1),it(Pe.line,Pe.ch+1),"+delete")}}function nt(te){var ne=Ft(te),he=ne&&kt(ne,"explode");if(!he||te.getOption("disableInput"))return Ee.Pass;for(var se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return Ee.Pass;var ve=xt(te,se[ge].head);if(!ve||he.indexOf(ve)%2!=0)return Ee.Pass}te.operation(function(){var Pe=te.lineSeparator()||`
|
|
|
`;te.replaceSelection(Pe+Pe,null),te.execCommand("goCharLeft"),se=te.listSelections();for(var ke=0;ke<se.length;ke++){var we=se[ke].head.line;te.indentLine(we,null,!0),te.indentLine(we+1,null,!0)}})}function gt(te){var ne=Ee.cmpPos(te.anchor,te.head)>0;return{anchor:new it(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new it(te.head.line,te.head.ch+(ne?1:-1))}}function wt(te,ne){var he=Ft(te);if(!he||te.getOption("disableInput"))return Ee.Pass;var se=kt(he,"pairs"),ge=se.indexOf(ne);if(ge==-1)return Ee.Pass;for(var ve=kt(he,"closeBefore"),Pe=kt(he,"triples"),ke=se.charAt(ge+1)==ne,we=te.listSelections(),Oe=ge%2==0,ze,We=0;We<we.length;We++){var Ue=we[We],ut=Ue.head,Ke,Ht=te.getRange(ut,it(ut.line,ut.ch+1));if(Oe&&!Ue.empty())Ke="surround";else if((ke||!Oe)&&Ht==ne)ke&&Te(te,ut)?Ke="both":Pe.indexOf(ne)>=0&&te.getRange(ut,it(ut.line,ut.ch+3))==ne+ne+ne?Ke="skipThree":Ke="skip";else if(ke&&ut.ch>1&&Pe.indexOf(ne)>=0&&te.getRange(it(ut.line,ut.ch-2),ut)==ne+ne){if(ut.ch>2&&/\bstring/.test(te.getTokenTypeAt(it(ut.line,ut.ch-2))))return Ee.Pass;Ke="addFour"}else if(ke){var St=ut.ch==0?" ":te.getRange(it(ut.line,ut.ch-1),ut);if(!Ee.isWordChar(Ht)&&St!=ne&&!Ee.isWordChar(St))Ke="both";else return Ee.Pass}else if(Oe&&(Ht.length===0||/\s/.test(Ht)||ve.indexOf(Ht)>-1))Ke="both";else return Ee.Pass;if(!ze)ze=Ke;else if(ze!=Ke)return Ee.Pass}var _t=ge%2?se.charAt(ge-1):ne,Qt=ge%2?ne:se.charAt(ge+1);te.operation(function(){if(ze=="skip")te.execCommand("goCharRight");else if(ze=="skipThree")for(var qt=0;qt<3;qt++)te.execCommand("goCharRight");else if(ze=="surround"){for(var sn=te.getSelections(),qt=0;qt<sn.length;qt++)sn[qt]=_t+sn[qt]+Qt;te.replaceSelections(sn,"around"),sn=te.listSelections().slice();for(var qt=0;qt<sn.length;qt++)sn[qt]=gt(sn[qt]);te.setSelections(sn)}else ze=="both"?(te.replaceSelection(_t+Qt,null),te.triggerElectric(_t+Qt),te.execCommand("goCharLeft")):ze=="addFour"&&(te.replaceSelection(_t+_t+_t+_t,"before"),te.execCommand("goCharRight"))})}function xt(te,ne){var he=te.getRange(it(ne.line,ne.ch-1),it(ne.line,ne.ch+1));return he.length==2?he:null}function Te(te,ne){var he=te.getTokenAt(it(ne.line,ne.ch+1));return/\bstring/.test(he.type)&&he.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function(On,Pn,Se){(function(Ee){Ee(Se(89780),Se(32855))})(function(Ee){Ee.defineOption("autoCloseTags",!1,function(Ct,nt,gt){if(gt!=Ee.Init&>&&Ct.removeKeyMap("autoCloseTags"),!!nt){var wt={name:"autoCloseTags"};(typeof nt!="object"||nt.whenClosing!==!1)&&(wt["'/'"]=function(xt){return pt(xt)}),(typeof nt!="object"||nt.whenOpening!==!1)&&(wt["'>'"]=function(xt){return kt(xt)}),Ct.addKeyMap(wt)}});var je=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],it=["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 kt(Ct){if(Ct.getOption("disableInput"))return Ee.Pass;for(var nt=Ct.listSelections(),gt=[],wt=Ct.getOption("autoCloseTags"),xt=0;xt<nt.length;xt++){if(!nt[xt].empty())return Ee.Pass;var Te=nt[xt].head,te=Ct.getTokenAt(Te),ne=Ee.innerMode(Ct.getMode(),te.state),he=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(he),ge=se&&se.name;if(!ge)return Ee.Pass;var ve=ne.mode.configuration=="html",Pe=typeof wt=="object"&&wt.dontCloseTags||ve&&je,ke=typeof wt=="object"&&wt.indentTags||ve&⁢te.end>Te.ch&&(ge=ge.slice(0,ge.length-te.end+Te.ch));var we=ge.toLowerCase();if(!ge||te.type=="string"&&(te.end!=Te.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Te.ch-te.start-1||Pe&&Fe(Pe,we)>-1||Ft(Ct,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(he)||[],ge,Te,!0))return Ee.Pass;var Oe=typeof wt=="object"&&wt.emptyTags;if(Oe&&Fe(Oe,ge)>-1){gt[xt]={text:"/>",newPos:Ee.Pos(Te.line,Te.ch+2)};continue}var ze=ke&&Fe(ke,we)>-1;gt[xt]={indent:ze,text:">"+(ze?`
|
|
|
|
|
|
`:"")+"</"+ge+">",newPos:ze?Ee.Pos(Te.line+1,0):Ee.Pos(Te.line,Te.ch+1)}}for(var We=typeof wt=="object"&&wt.dontIndentOnAutoClose,xt=nt.length-1;xt>=0;xt--){var Ue=gt[xt];Ct.replaceRange(Ue.text,nt[xt].head,nt[xt].anchor,"+insert");var ut=Ct.listSelections().slice(0);ut[xt]={head:Ue.newPos,anchor:Ue.newPos},Ct.setSelections(ut),!We&&Ue.indent&&(Ct.indentLine(Ue.newPos.line,null,!0),Ct.indentLine(Ue.newPos.line+1,null,!0))}}function Xe(Ct,nt){for(var gt=Ct.listSelections(),wt=[],xt=nt?"/":"</",Te=Ct.getOption("autoCloseTags"),te=typeof Te=="object"&&Te.dontIndentOnSlash,ne=0;ne<gt.length;ne++){if(!gt[ne].empty())return Ee.Pass;var he=gt[ne].head,se=Ct.getTokenAt(he),ge=Ee.innerMode(Ct.getMode(),se.state),ve=ge.state;if(nt&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=he.ch-1))return Ee.Pass;var Pe,ke=ge.mode.name!="xml"&&Ct.getMode().name=="htmlmixed";if(ke&&ge.mode.name=="javascript")Pe=xt+"script";else if(ke&&ge.mode.name=="css")Pe=xt+"style";else{var we=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(ve);if(!we||we.length&&Ft(Ct,we,we[we.length-1],he))return Ee.Pass;Pe=xt+we[we.length-1]}Ct.getLine(he.line).charAt(se.end)!=">"&&(Pe+=">"),wt[ne]=Pe}if(Ct.replaceSelections(wt),gt=Ct.listSelections(),!te)for(var ne=0;ne<gt.length;ne++)(ne==gt.length-1||gt[ne].head.line<gt[ne+1].head.line)&&Ct.indentLine(gt[ne].head.line)}function pt(Ct){return Ct.getOption("disableInput")?Ee.Pass:Xe(Ct,!0)}Ee.commands.closeTag=function(Ct){return Xe(Ct)};function Fe(Ct,nt){if(Ct.indexOf)return Ct.indexOf(nt);for(var gt=0,wt=Ct.length;gt<wt;++gt)if(Ct[gt]==nt)return gt;return-1}function Ft(Ct,nt,gt,wt,xt){if(!Ee.scanForClosingTag)return!1;var Te=Math.min(Ct.lastLine()+1,wt.line+500),te=Ee.scanForClosingTag(Ct,wt,null,Te);if(!te||te.tag!=gt)return!1;for(var ne=xt?1:0,he=nt.length-1;he>=0&&nt[he]==gt;he--)++ne;wt=te.to;for(var he=1;he<ne;he++){var se=Ee.scanForClosingTag(Ct,wt,null,Te);if(!se||se.tag!=gt)return!1;wt=se.to}return!0}})},32855:function(On,Pn,Se){(function(Ee){Ee(Se(89780))})(function(Ee){"use strict";var je=Ee.Pos;function it(he,se){return he.line-se.line||he.ch-se.ch}var kt="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",Xe=kt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pt=new RegExp("<(/?)(["+kt+"]["+Xe+"]*)","g");function Fe(he,se,ge,ve){this.line=se,this.ch=ge,this.cm=he,this.text=he.getLine(se),this.min=ve?Math.max(ve.from,he.firstLine()):he.firstLine(),this.max=ve?Math.min(ve.to-1,he.lastLine()):he.lastLine()}function Ft(he,se){var ge=he.cm.getTokenTypeAt(je(he.line,se));return ge&&/\btag\b/.test(ge)}function Ct(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function nt(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function gt(he){for(;;){var se=he.text.indexOf(">",he.ch);if(se==-1){if(Ct(he))continue;return}if(!Ft(he,se+1)){he.ch=se+1;continue}var ge=he.text.lastIndexOf("/",se),ve=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,ve?"selfClose":"regular"}}function wt(he){for(;;){var se=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(se==-1){if(nt(he))continue;return}if(!Ft(he,se+1)){he.ch=se;continue}pt.lastIndex=se,he.ch=se;var ge=pt.exec(he.text);if(ge&&ge.index==se)return ge}}function xt(he){for(;;){pt.lastIndex=he.ch;var se=pt.exec(he.text);if(!se){if(Ct(he))continue;return}if(!Ft(he,se.index+1)){he.ch=se.index+1;continue}return he.ch=se.index+se[0].length,se}}function Te(he){for(;;){var se=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(se==-1){if(nt(he))continue;return}if(!Ft(he,se+1)){he.ch=se;continue}var ge=he.text.lastIndexOf("/",se),ve=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,ve?"selfClose":"regular"}}function te(he,se){for(var ge=[];;){var ve=xt(he),Pe,ke=he.line,we=he.ch-(ve?ve[0].length:0);if(!ve||!(Pe=gt(he)))return;if(Pe!="selfClose")if(ve[1]){for(var Oe=ge.length-1;Oe>=0;--Oe)if(ge[Oe]==ve[2]){ge.length=Oe;break}if(Oe<0&&(!se||se==ve[2]))return{tag:ve[2],from:je(ke,we),to:je(he.line,he.ch)}}else ge.push(ve[2])}}function ne(he,se){for(var ge=[];;){var ve=Te(he);if(!ve)return;if(ve=="selfClose"){wt(he);continue}var Pe=he.line,ke=he.ch,we=wt(he);if(!we)return;if(we[1])ge.push(we[2]);else{for(var Oe=ge.length-1;Oe>=0;--Oe)if(ge[Oe]==we[2]){ge.length=Oe;break}if(Oe<0&&(!se||se==we[2]))return{tag:we[2],from:je(he.line,he.ch),to:je(Pe,ke)}}}}Ee.registerHelper("fold","xml",function(he,se){for(var ge=new Fe(he,se.line,0);;){var ve=xt(ge);if(!ve||ge.line!=se.line)return;var Pe=gt(ge);if(!Pe)return;if(!ve[1]&&Pe!="selfClose"){var ke=je(ge.line,ge.ch),we=te(ge,ve[2]);return we&&it(we.from,ke)>0?{from:ke,to:we.from}:null}}}),Ee.findMatchingTag=function(he,se,ge){var ve=new Fe(he,se.line,se.ch,ge);if(!(ve.text.indexOf(">")==-1&&ve.text.indexOf("<")==-1)){var Pe=gt(ve),ke=Pe&&je(ve.line,ve.ch),we=Pe&&wt(ve);if(!(!Pe||!we||it(ve,se)>0)){var Oe={from:je(ve.line,ve.ch),to:ke,tag:we[2]};return Pe=="selfClose"?{open:Oe,close:null,at:"open"}:we[1]?{open:ne(ve,we[2]),close:Oe,at:"close"}:(ve=new Fe(he,ke.line,ke.ch,ge),{open:Oe,close:te(ve,we[2]),at:"open"})}}},Ee.findEnclosingTag=function(he,se,ge,ve){for(var Pe=new Fe(he,se.line,se.ch,ge);;){var ke=ne(Pe,ve);if(!ke)break;var we=new Fe(he,se.line,se.ch,ge),Oe=te(we,ke.tag);if(Oe)return{open:ke,close:Oe}}},Ee.scanForClosingTag=function(he,se,ge,ve){var Pe=new Fe(he,se.line,se.ch,ve?{from:0,to:ve}:null);return te(Pe,ge)}})},89780:function(On){(function(Pn,Se){On.exports=Se()})(this,function(){"use strict";var Pn=navigator.userAgent,Se=navigator.platform,Ee=/gecko\/\d/i.test(Pn),je=/MSIE \d/.test(Pn),it=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pn),kt=/Edge\/(\d+)/.exec(Pn),Xe=je||it||kt,pt=Xe&&(je?document.documentMode||6:+(kt||it)[1]),Fe=!kt&&/WebKit\//.test(Pn),Ft=Fe&&/Qt\/\d+\.\d+/.test(Pn),Ct=!kt&&/Chrome\//.test(Pn),nt=/Opera\//.test(Pn),gt=/Apple Computer/.test(navigator.vendor),wt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Pn),xt=/PhantomJS/.test(Pn),Te=!kt&&/AppleWebKit/.test(Pn)&&/Mobile\/\w+/.test(Pn),te=/Android/.test(Pn),ne=Te||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Pn),he=Te||/Mac/.test(Se),se=/\bCrOS\b/.test(Pn),ge=/win/i.test(Se),ve=nt&&Pn.match(/Version\/(\d*\.\d*)/);ve&&(ve=Number(ve[1])),ve&&ve>=15&&(nt=!1,Fe=!0);var Pe=he&&(Ft||nt&&(ve==null||ve<12.11)),ke=Ee||Xe&&pt>=9;function we(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Oe=function(ie,ae){var ce=ie.className,de=we(ae).exec(ce);if(de){var pe=ce.slice(de.index+de[0].length);ie.className=ce.slice(0,de.index)+(pe?de[1]+pe:"")}};function ze(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function We(ie,ae){return ze(ie).appendChild(ae)}function Ue(ie,ae,ce,de){var pe=document.createElement(ie);if(ce&&(pe.className=ce),de&&(pe.style.cssText=de),typeof ae=="string")pe.appendChild(document.createTextNode(ae));else if(ae)for(var Ae=0;Ae<ae.length;++Ae)pe.appendChild(ae[Ae]);return pe}function ut(ie,ae,ce,de){var pe=Ue(ie,ae,ce,de);return pe.setAttribute("role","presentation"),pe}var Ke;document.createRange?Ke=function(ie,ae,ce,de){var pe=document.createRange();return pe.setEnd(de||ie,ce),pe.setStart(ie,ae),pe}:Ke=function(ie,ae,ce){var de=document.body.createTextRange();try{de.moveToElementText(ie.parentNode)}catch(pe){return de}return de.collapse(!0),de.moveEnd("character",ce),de.moveStart("character",ae),de};function Ht(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function St(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function _t(ie,ae){var ce=ie.className;we(ae).test(ce)||(ie.className+=(ce?" ":"")+ae)}function Qt(ie,ae){for(var ce=ie.split(" "),de=0;de<ce.length;de++)ce[de]&&!we(ce[de]).test(ae)&&(ae+=" "+ce[de]);return ae}var qt=function(ie){ie.select()};Te?qt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Xe&&(qt=function(ie){try{ie.select()}catch(ae){}});function sn(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function Bn(ie,ae,ce){ae||(ae={});for(var de in ie)ie.hasOwnProperty(de)&&(ce!==!1||!ae.hasOwnProperty(de))&&(ae[de]=ie[de]);return ae}function yt(ie,ae,ce,de,pe){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Ae=de||0,Re=pe||0;;){var qe=ie.indexOf(" ",Ae);if(qe<0||qe>=ae)return Re+(ae-Ae);Re+=qe-Ae,Re+=ce-Re%ce,Ae=qe+1}}var Ge=function(){this.id=null,this.f=null,this.time=0,this.handler=sn(this.onTimeout,this)};Ge.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},Ge.prototype.set=function(ie,ae){this.f=ae;var ce=+new Date+ie;(!this.id||ce<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ce)};function tn(ie,ae){for(var ce=0;ce<ie.length;++ce)if(ie[ce]==ae)return ce;return-1}var Wn=50,Qn={toString:function(){return"CodeMirror.Pass"}},Dt={scroll:!1},$t={origin:"*mouse"},cn={origin:"+move"};function Zn(ie,ae,ce){for(var de=0,pe=0;;){var Ae=ie.indexOf(" ",de);Ae==-1&&(Ae=ie.length);var Re=Ae-de;if(Ae==ie.length||pe+Re>=ae)return de+Math.min(Re,ae-pe);if(pe+=Ae-de,pe+=ce-pe%ce,de=Ae+1,pe>=ae)return de}}var hn=[""];function ii(ie){for(;hn.length<=ie;)hn.push(mt(hn)+" ");return hn[ie]}function mt(ie){return ie[ie.length-1]}function Xn(ie,ae){for(var ce=[],de=0;de<ie.length;de++)ce[de]=ae(ie[de],de);return ce}function ri(ie,ae,ce){for(var de=0,pe=ce(ae);de<ie.length&&ce(ie[de])<=pe;)de++;ie.splice(de,0,ae)}function pi(){}function Mn(ie,ae){var ce;return Object.create?ce=Object.create(ie):(pi.prototype=ie,ce=new pi),ae&&Bn(ae,ce),ce}var Gt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function zt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Gt.test(ie))}function Mt(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&zt(ie)?!0:ae.test(ie):zt(ie)}function at(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var jt=/[\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 Et(ie){return ie.charCodeAt(0)>=768&&jt.test(ie)}function dt(ie,ae,ce){for(;(ce<0?ae>0:ae<ie.length)&&Et(ie.charAt(ae));)ae+=ce;return ae}function ot(ie,ae,ce){for(var de=ae>ce?-1:1;;){if(ae==ce)return ae;var pe=(ae+ce)/2,Ae=de<0?Math.ceil(pe):Math.floor(pe);if(Ae==ae)return ie(Ae)?ae:ce;ie(Ae)?ce=Ae:ae=Ae+de}}function De(ie,ae,ce,de){if(!ie)return de(ae,ce,"ltr",0);for(var pe=!1,Ae=0;Ae<ie.length;++Ae){var Re=ie[Ae];(Re.from<ce&&Re.to>ae||ae==ce&&Re.to==ae)&&(de(Math.max(Re.from,ae),Math.min(Re.to,ce),Re.level==1?"rtl":"ltr",Ae),pe=!0)}pe||de(ae,ce,"ltr")}var xe=null;function me(ie,ae,ce){var de;xe=null;for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe];if(Ae.from<ae&&Ae.to>ae)return pe;Ae.to==ae&&(Ae.from!=Ae.to&&ce=="before"?de=pe:xe=pe),Ae.from==ae&&(Ae.from!=Ae.to&&ce!="before"?de=pe:xe=pe)}return de!=null?de:xe}var Ne=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ce(vt){return vt<=247?ie.charAt(vt):1424<=vt&&vt<=1524?"R":1536<=vt&&vt<=1785?ae.charAt(vt-1536):1774<=vt&&vt<=2220?"r":8192<=vt&&vt<=8203?"w":vt==8204?"b":"L"}var de=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Ae=/[LRr]/,Re=/[Lb1n]/,qe=/[1n]/;function Qe(vt,nn,At){this.level=vt,this.from=nn,this.to=At}return function(vt,nn){var At=nn=="ltr"?"L":"R";if(vt.length==0||nn=="ltr"&&!de.test(vt))return!1;for(var Hn=vt.length,Dn=[],Ni=0;Ni<Hn;++Ni)Dn.push(ce(vt.charCodeAt(Ni)));for(var Bi=0,er=At;Bi<Hn;++Bi){var Er=Dn[Bi];Er=="m"?Dn[Bi]=er:er=Er}for(var ro=0,Wr=At;ro<Hn;++ro){var So=Dn[ro];So=="1"&&Wr=="r"?Dn[ro]="n":Ae.test(So)&&(Wr=So,So=="r"&&(Dn[ro]="R"))}for(var Jo=1,zr=Dn[0];Jo<Hn-1;++Jo){var va=Dn[Jo];va=="+"&&zr=="1"&&Dn[Jo+1]=="1"?Dn[Jo]="1":va==","&&zr==Dn[Jo+1]&&(zr=="1"||zr=="n")&&(Dn[Jo]=zr),zr=va}for(var Gs=0;Gs<Hn;++Gs){var kl=Dn[Gs];if(kl==",")Dn[Gs]="N";else if(kl=="%"){var tl=void 0;for(tl=Gs+1;tl<Hn&&Dn[tl]=="%";++tl);for(var Iu=Gs&&Dn[Gs-1]=="!"||tl<Hn&&Dn[tl]=="1"?"1":"N",pu=Gs;pu<tl;++pu)Dn[pu]=Iu;Gs=tl-1}}for(var Pl=0,Xu=At;Pl<Hn;++Pl){var eu=Dn[Pl];Xu=="L"&&eu=="1"?Dn[Pl]="L":Ae.test(eu)&&(Xu=eu)}for(var Cl=0;Cl<Hn;++Cl)if(pe.test(Dn[Cl])){var qa=void 0;for(qa=Cl+1;qa<Hn&&pe.test(Dn[qa]);++qa);for(var rl=(Cl?Dn[Cl-1]:At)=="L",zl=(qa<Hn?Dn[qa]:At)=="L",tu=rl==zl?rl?"L":"R":At,Gh=Cl;Gh<qa;++Gh)Dn[Gh]=tu;Cl=qa-1}for(var nl=[],Eh,hl=0;hl<Hn;)if(Re.test(Dn[hl])){var Qf=hl;for(++hl;hl<Hn&&Re.test(Dn[hl]);++hl);nl.push(new Qe(0,Qf,hl))}else{var dh=hl,Ju=nl.length,Ru=nn=="rtl"?1:0;for(++hl;hl<Hn&&Dn[hl]!="L";++hl);for(var Fs=dh;Fs<hl;)if(qe.test(Dn[Fs])){dh<Fs&&(nl.splice(Ju,0,new Qe(1,dh,Fs)),Ju+=Ru);var jl=Fs;for(++Fs;Fs<hl&&qe.test(Dn[Fs]);++Fs);nl.splice(Ju,0,new Qe(2,jl,Fs)),Ju+=Ru,dh=Fs}else++Fs;dh<hl&&nl.splice(Ju,0,new Qe(1,dh,hl))}return nn=="ltr"&&(nl[0].level==1&&(Eh=vt.match(/^\s+/))&&(nl[0].from=Eh[0].length,nl.unshift(new Qe(0,0,Eh[0].length))),mt(nl).level==1&&(Eh=vt.match(/\s+$/))&&(mt(nl).to-=Eh[0].length,nl.push(new Qe(0,Hn-Eh[0].length,Hn)))),nn=="rtl"?nl.reverse():nl}}();function He(ie,ae){var ce=ie.order;return ce==null&&(ce=ie.order=Ne(ie.text,ae)),ce}var Me=[],et=function(ie,ae,ce){if(ie.addEventListener)ie.addEventListener(ae,ce,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,ce);else{var de=ie._handlers||(ie._handlers={});de[ae]=(de[ae]||Me).concat(ce)}};function Ut(ie,ae){return ie._handlers&&ie._handlers[ae]||Me}function rn(ie,ae,ce){if(ie.removeEventListener)ie.removeEventListener(ae,ce,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,ce);else{var de=ie._handlers,pe=de&&de[ae];if(pe){var Ae=tn(pe,ce);Ae>-1&&(de[ae]=pe.slice(0,Ae).concat(pe.slice(Ae+1)))}}}function ht(ie,ae){var ce=Ut(ie,ae);if(ce.length)for(var de=Array.prototype.slice.call(arguments,2),pe=0;pe<ce.length;++pe)ce[pe].apply(null,de)}function Pt(ie,ae,ce){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),ht(ie,ce||ae.type,ie,ae),mi(ae)||ae.codemirrorIgnore}function ln(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var ce=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),de=0;de<ae.length;++de)tn(ce,ae[de])==-1&&ce.push(ae[de])}function Fn(ie,ae){return Ut(ie,ae).length>0}function oi(ie){ie.prototype.on=function(ae,ce){et(this,ae,ce)},ie.prototype.off=function(ae,ce){rn(this,ae,ce)}}function ci(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function di(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function mi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Ui(ie){ci(ie),di(ie)}function vr(ie){return ie.target||ie.srcElement}function lr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),he&&ie.ctrlKey&&ae==1&&(ae=3),ae}var gr=function(){if(Xe&&pt<9)return!1;var ie=Ue("div");return"draggable"in ie||"dragDrop"in ie}(),wr;function Zr(ie){if(wr==null){var ae=Ue("span","\u200B");We(ie,Ue("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(wr=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Xe&&pt<8))}var ce=wr?Ue("span","\u200B"):Ue("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ce.setAttribute("cm-text",""),ce}var Ki;function Xr(ie){if(Ki!=null)return Ki;var ae=We(ie,document.createTextNode("A\u062EA")),ce=Ke(ae,0,1).getBoundingClientRect(),de=Ke(ae,1,2).getBoundingClientRect();return ze(ie),!ce||ce.left==ce.right?!1:Ki=de.right-ce.right<3}var Vi=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,ce=[],de=ie.length;ae<=de;){var pe=ie.indexOf(`
|
|
|
`,ae);pe==-1&&(pe=ie.length);var Ae=ie.slice(ae,ie.charAt(pe-1)=="\r"?pe-1:pe),Re=Ae.indexOf("\r");Re!=-1?(ce.push(Ae.slice(0,Re)),ae+=Re+1):(ce.push(Ae),ae=pe+1)}return ce}:function(ie){return ie.split(/\r\n?|\n/)},be=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ce){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Pi=function(){var ie=Ue("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Gi=null;function hr(ie){if(Gi!=null)return Gi;var ae=We(ie,Ue("span","x")),ce=ae.getBoundingClientRect(),de=Ke(ae,0,1).getBoundingClientRect();return Gi=Math.abs(ce.left-de.left)>1}var $i={},fo={};function _r(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),$i[ie]=ae}function Co(ie,ae){fo[ie]=ae}function vn(ie){if(typeof ie=="string"&&fo.hasOwnProperty(ie))ie=fo[ie];else if(ie&&typeof ie.name=="string"&&fo.hasOwnProperty(ie.name)){var ae=fo[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Mn(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return vn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return vn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function an(ie,ae){ae=vn(ae);var ce=$i[ae.name];if(!ce)return an(ie,"text/plain");var de=ce(ie,ae);if(Jt.hasOwnProperty(ae.name)){var pe=Jt[ae.name];for(var Ae in pe)pe.hasOwnProperty(Ae)&&(de.hasOwnProperty(Ae)&&(de["_"+Ae]=de[Ae]),de[Ae]=pe[Ae])}if(de.name=ae.name,ae.helperType&&(de.helperType=ae.helperType),ae.modeProps)for(var Re in ae.modeProps)de[Re]=ae.modeProps[Re];return de}var Jt={};function ft(ie,ae){var ce=Jt.hasOwnProperty(ie)?Jt[ie]:Jt[ie]={};Bn(ae,ce)}function pn(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ce={};for(var de in ae){var pe=ae[de];pe instanceof Array&&(pe=pe.concat([])),ce[de]=pe}return ce}function Rn(ie,ae){for(var ce;ie.innerMode&&(ce=ie.innerMode(ae),!(!ce||ce.mode==ie));)ae=ce.state,ie=ce.mode;return ce||{mode:ie,state:ae}}function It(ie,ae,ce){return ie.startState?ie.startState(ae,ce):!0}var lt=function(ie,ae,ce){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ce};lt.prototype.eol=function(){return this.pos>=this.string.length},lt.prototype.sol=function(){return this.pos==this.lineStart},lt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},lt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},lt.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),ce;if(typeof ie=="string"?ce=ae==ie:ce=ae&&(ie.test?ie.test(ae):ie(ae)),ce)return++this.pos,ae},lt.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},lt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},lt.prototype.skipToEnd=function(){this.pos=this.string.length},lt.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},lt.prototype.backUp=function(ie){this.pos-=ie},lt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=yt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?yt(this.string,this.lineStart,this.tabSize):0)},lt.prototype.indentation=function(){return yt(this.string,null,this.tabSize)-(this.lineStart?yt(this.string,this.lineStart,this.tabSize):0)},lt.prototype.match=function(ie,ae,ce){if(typeof ie=="string"){var de=function(Re){return ce?Re.toLowerCase():Re},pe=this.string.substr(this.pos,ie.length);if(de(pe)==de(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Ae=this.string.slice(this.pos).match(ie);return Ae&&Ae.index>0?null:(Ae&&ae!==!1&&(this.pos+=Ae[0].length),Ae)}},lt.prototype.current=function(){return this.string.slice(this.start,this.pos)},lt.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},lt.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},lt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function yn(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ce=ie;!ce.lines;)for(var de=0;;++de){var pe=ce.children[de],Ae=pe.chunkSize();if(ae<Ae){ce=pe;break}ae-=Ae}return ce.lines[ae]}function Yn(ie,ae,ce){var de=[],pe=ae.line;return ie.iter(ae.line,ce.line+1,function(Ae){var Re=Ae.text;pe==ce.line&&(Re=Re.slice(0,ce.ch)),pe==ae.line&&(Re=Re.slice(ae.ch)),de.push(Re),++pe}),de}function Di(ie,ae,ce){var de=[];return ie.iter(ae,ce,function(pe){de.push(pe.text)}),de}function Cn(ie,ae){var ce=ae-ie.height;if(ce)for(var de=ie;de;de=de.parent)de.height+=ce}function bt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ce=tn(ae.lines,ie),de=ae.parent;de;ae=de,de=de.parent)for(var pe=0;de.children[pe]!=ae;++pe)ce+=de.children[pe].chunkSize();return ce+ae.first}function In(ie,ae){var ce=ie.first;e:do{for(var de=0;de<ie.children.length;++de){var pe=ie.children[de],Ae=pe.height;if(ae<Ae){ie=pe;continue e}ae-=Ae,ce+=pe.chunkSize()}return ce}while(!ie.lines);for(var Re=0;Re<ie.lines.length;++Re){var qe=ie.lines[Re],Qe=qe.height;if(ae<Qe)break;ae-=Qe}return ce+Re}function gi(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function Oi(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Kt(ie,ae,ce){if(ce===void 0&&(ce=null),!(this instanceof Kt))return new Kt(ie,ae,ce);this.line=ie,this.ch=ae,this.sticky=ce}function Sn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function Wt(ie,ae){return ie.sticky==ae.sticky&&Sn(ie,ae)==0}function on(ie){return Kt(ie.line,ie.ch)}function gn(ie,ae){return Sn(ie,ae)<0?ae:ie}function un(ie,ae){return Sn(ie,ae)<0?ie:ae}function En(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Nn(ie,ae){if(ae.line<ie.first)return Kt(ie.first,0);var ce=ie.first+ie.size-1;return ae.line>ce?Kt(ce,yn(ie,ce).text.length):Vn(ae,yn(ie,ae.line).text.length)}function Vn(ie,ae){var ce=ie.ch;return ce==null||ce>ae?Kt(ie.line,ae):ce<0?Kt(ie.line,0):ie}function $n(ie,ae){for(var ce=[],de=0;de<ae.length;de++)ce[de]=Nn(ie,ae[de]);return ce}var Tn=function(ie,ae){this.state=ie,this.lookAhead=ae},ai=function(ie,ae,ce,de){this.state=ae,this.doc=ie,this.line=ce,this.maxLookAhead=de||0,this.baseTokens=null,this.baseTokenPos=1};ai.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},ai.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},ai.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ai.fromSaved=function(ie,ae,ce){return ae instanceof Tn?new ai(ie,pn(ie.mode,ae.state),ce,ae.lookAhead):new ai(ie,pn(ie.mode,ae),ce)},ai.prototype.save=function(ie){var ae=ie!==!1?pn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tn(ae,this.maxLookAhead):ae};function Qi(ie,ae,ce,de){var pe=[ie.state.modeGen],Ae={};kr(ie,ae.text,ie.doc.mode,ce,function(vt,nn){return pe.push(vt,nn)},Ae,de);for(var Re=ce.state,qe=function(vt){ce.baseTokens=pe;var nn=ie.state.overlays[vt],At=1,Hn=0;ce.state=!0,kr(ie,ae.text,nn.mode,ce,function(Dn,Ni){for(var Bi=At;Hn<Dn;){var er=pe[At];er>Dn&&pe.splice(At,1,Dn,pe[At+1],er),At+=2,Hn=Math.min(Dn,er)}if(Ni)if(nn.opaque)pe.splice(Bi,At-Bi,Dn,"overlay "+Ni),At=Bi+2;else for(;Bi<At;Bi+=2){var Er=pe[Bi+1];pe[Bi+1]=(Er?Er+" ":"")+"overlay "+Ni}},Ae),ce.state=Re,ce.baseTokens=null,ce.baseTokenPos=1},Qe=0;Qe<ie.state.overlays.length;++Qe)qe(Qe);return{styles:pe,classes:Ae.bgClass||Ae.textClass?Ae:null}}function Lr(ie,ae,ce){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var de=qi(ie,bt(ae)),pe=ae.text.length>ie.options.maxHighlightLength&&pn(ie.doc.mode,de.state),Ae=Qi(ie,ae,de);pe&&(de.state=pe),ae.stateAfter=de.save(!pe),ae.styles=Ae.styles,Ae.classes?ae.styleClasses=Ae.classes:ae.styleClasses&&(ae.styleClasses=null),ce===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function qi(ie,ae,ce){var de=ie.doc,pe=ie.display;if(!de.mode.startState)return new ai(de,!0,ae);var Ae=rr(ie,ae,ce),Re=Ae>de.first&&yn(de,Ae-1).stateAfter,qe=Re?ai.fromSaved(de,Re,Ae):new ai(de,It(de.mode),Ae);return de.iter(Ae,ae,function(Qe){Bt(ie,Qe.text,qe);var vt=qe.line;Qe.stateAfter=vt==ae-1||vt%5==0||vt>=pe.viewFrom&&vt<pe.viewTo?qe.save():null,qe.nextLine()}),ce&&(de.modeFrontier=qe.line),qe}function Bt(ie,ae,ce,de){var pe=ie.doc.mode,Ae=new lt(ae,ie.options.tabSize,ce);for(Ae.start=Ae.pos=de||0,ae==""&&Si(pe,ce.state);!Ae.eol();)Hi(pe,Ae,ce.state),Ae.start=Ae.pos}function Si(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ce=Rn(ie,ae);if(ce.mode.blankLine)return ce.mode.blankLine(ce.state)}}function Hi(ie,ae,ce,de){for(var pe=0;pe<10;pe++){de&&(de[0]=Rn(ie,ce).mode);var Ae=ie.token(ae,ce);if(ae.pos>ae.start)return Ae}throw new Error("Mode "+ie.name+" failed to advance stream.")}var ki=function(ie,ae,ce){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ce};function Pr(ie,ae,ce,de){var pe=ie.doc,Ae=pe.mode,Re;ae=Nn(pe,ae);var qe=yn(pe,ae.line),Qe=qi(ie,ae.line,ce),vt=new lt(qe.text,ie.options.tabSize,Qe),nn;for(de&&(nn=[]);(de||vt.pos<ae.ch)&&!vt.eol();)vt.start=vt.pos,Re=Hi(Ae,vt,Qe.state),de&&nn.push(new ki(vt,Re,pn(pe.mode,Qe.state)));return de?nn:new ki(vt,Re,Qe.state)}function yr(ie,ae){if(ie)for(;;){var ce=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ce)break;ie=ie.slice(0,ce.index)+ie.slice(ce.index+ce[0].length);var de=ce[1]?"bgClass":"textClass";ae[de]==null?ae[de]=ce[2]:new RegExp("(?:^|\\s)"+ce[2]+"(?:$|\\s)").test(ae[de])||(ae[de]+=" "+ce[2])}return ie}function kr(ie,ae,ce,de,pe,Ae,Re){var qe=ce.flattenSpans;qe==null&&(qe=ie.options.flattenSpans);var Qe=0,vt=null,nn=new lt(ae,ie.options.tabSize,de),At,Hn=ie.options.addModeClass&&[null];for(ae==""&&yr(Si(ce,de.state),Ae);!nn.eol();){if(nn.pos>ie.options.maxHighlightLength?(qe=!1,Re&&Bt(ie,ae,de,nn.pos),nn.pos=ae.length,At=null):At=yr(Hi(ce,nn,de.state,Hn),Ae),Hn){var Dn=Hn[0].name;Dn&&(At="m-"+(At?Dn+" "+At:Dn))}if(!qe||vt!=At){for(;Qe<nn.start;)Qe=Math.min(nn.start,Qe+5e3),pe(Qe,vt);vt=At}nn.start=nn.pos}for(;Qe<nn.pos;){var Ni=Math.min(nn.pos,Qe+5e3);pe(Ni,vt),Qe=Ni}}function rr(ie,ae,ce){for(var de,pe,Ae=ie.doc,Re=ce?-1:ae-(ie.doc.mode.innerMode?1e3:100),qe=ae;qe>Re;--qe){if(qe<=Ae.first)return Ae.first;var Qe=yn(Ae,qe-1),vt=Qe.stateAfter;if(vt&&(!ce||qe+(vt instanceof Tn?vt.lookAhead:0)<=Ae.modeFrontier))return qe;var nn=yt(Qe.text,null,ie.options.tabSize);(pe==null||de>nn)&&(pe=qe-1,de=nn)}return pe}function Ri(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var ce=ie.first,de=ae-1;de>ce;de--){var pe=yn(ie,de).stateAfter;if(pe&&(!(pe instanceof Tn)||de+pe.lookAhead<ae)){ce=de+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ce)}}var Gr=!1,xn=!1;function Fo(){Gr=!0}function An(){xn=!0}function Ir(ie,ae,ce){this.marker=ie,this.from=ae,this.to=ce}function _o(ie,ae){if(ie)for(var ce=0;ce<ie.length;++ce){var de=ie[ce];if(de.marker==ae)return de}}function oo(ie,ae){for(var ce,de=0;de<ie.length;++de)ie[de]!=ae&&(ce||(ce=[])).push(ie[de]);return ce}function Fa(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Qo(ie,ae,ce){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],Re=Ae.marker,qe=Ae.from==null||(Re.inclusiveLeft?Ae.from<=ae:Ae.from<ae);if(qe||Ae.from==ae&&Re.type=="bookmark"&&(!ce||!Ae.marker.insertLeft)){var Qe=Ae.to==null||(Re.inclusiveRight?Ae.to>=ae:Ae.to>ae);(de||(de=[])).push(new Ir(Re,Ae.from,Qe?null:Ae.to))}}return de}function dr(ie,ae,ce){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],Re=Ae.marker,qe=Ae.to==null||(Re.inclusiveRight?Ae.to>=ae:Ae.to>ae);if(qe||Ae.from==ae&&Re.type=="bookmark"&&(!ce||Ae.marker.insertLeft)){var Qe=Ae.from==null||(Re.inclusiveLeft?Ae.from<=ae:Ae.from<ae);(de||(de=[])).push(new Ir(Re,Qe?null:Ae.from-ae,Ae.to==null?null:Ae.to-ae))}}return de}function nr(ie,ae){if(ae.full)return null;var ce=gi(ie,ae.from.line)&&yn(ie,ae.from.line).markedSpans,de=gi(ie,ae.to.line)&&yn(ie,ae.to.line).markedSpans;if(!ce&&!de)return null;var pe=ae.from.ch,Ae=ae.to.ch,Re=Sn(ae.from,ae.to)==0,qe=Qo(ce,pe,Re),Qe=dr(de,Ae,Re),vt=ae.text.length==1,nn=mt(ae.text).length+(vt?pe:0);if(qe)for(var At=0;At<qe.length;++At){var Hn=qe[At];if(Hn.to==null){var Dn=_o(Qe,Hn.marker);Dn?vt&&(Hn.to=Dn.to==null?null:Dn.to+nn):Hn.to=pe}}if(Qe)for(var Ni=0;Ni<Qe.length;++Ni){var Bi=Qe[Ni];if(Bi.to!=null&&(Bi.to+=nn),Bi.from==null){var er=_o(qe,Bi.marker);er||(Bi.from=nn,vt&&(qe||(qe=[])).push(Bi))}else Bi.from+=nn,vt&&(qe||(qe=[])).push(Bi)}qe&&(qe=no(qe)),Qe&&Qe!=qe&&(Qe=no(Qe));var Er=[qe];if(!vt){var ro=ae.text.length-2,Wr;if(ro>0&&qe)for(var So=0;So<qe.length;++So)qe[So].to==null&&(Wr||(Wr=[])).push(new Ir(qe[So].marker,null,null));for(var Jo=0;Jo<ro;++Jo)Er.push(Wr);Er.push(Qe)}return Er}function no(ie){for(var ae=0;ae<ie.length;++ae){var ce=ie[ae];ce.from!=null&&ce.from==ce.to&&ce.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function Lo(ie,ae,ce){var de=null;if(ie.iter(ae.line,ce.line+1,function(Dn){if(Dn.markedSpans)for(var Ni=0;Ni<Dn.markedSpans.length;++Ni){var Bi=Dn.markedSpans[Ni].marker;Bi.readOnly&&(!de||tn(de,Bi)==-1)&&(de||(de=[])).push(Bi)}}),!de)return null;for(var pe=[{from:ae,to:ce}],Ae=0;Ae<de.length;++Ae)for(var Re=de[Ae],qe=Re.find(0),Qe=0;Qe<pe.length;++Qe){var vt=pe[Qe];if(!(Sn(vt.to,qe.from)<0||Sn(vt.from,qe.to)>0)){var nn=[Qe,1],At=Sn(vt.from,qe.from),Hn=Sn(vt.to,qe.to);(At<0||!Re.inclusiveLeft&&!At)&&nn.push({from:vt.from,to:qe.from}),(Hn>0||!Re.inclusiveRight&&!Hn)&&nn.push({from:qe.to,to:vt.to}),pe.splice.apply(pe,nn),Qe+=nn.length-3}}return pe}function wi(ie){var ae=ie.markedSpans;if(ae){for(var ce=0;ce<ae.length;++ce)ae[ce].marker.detachLine(ie);ie.markedSpans=null}}function Ye(ie,ae){if(ae){for(var ce=0;ce<ae.length;++ce)ae[ce].marker.attachLine(ie);ie.markedSpans=ae}}function $r(ie){return ie.inclusiveLeft?-1:0}function ca(ie){return ie.inclusiveRight?1:0}function qr(ie,ae){var ce=ie.lines.length-ae.lines.length;if(ce!=0)return ce;var de=ie.find(),pe=ae.find(),Ae=Sn(de.from,pe.from)||$r(ie)-$r(ae);if(Ae)return-Ae;var Re=Sn(de.to,pe.to)||ca(ie)-ca(ae);return Re||ae.id-ie.id}function $o(ie,ae){var ce=xn&&ie.markedSpans,de;if(ce)for(var pe=void 0,Ae=0;Ae<ce.length;++Ae)pe=ce[Ae],pe.marker.collapsed&&(ae?pe.from:pe.to)==null&&(!de||qr(de,pe.marker)<0)&&(de=pe.marker);return de}function Fr(ie){return $o(ie,!0)}function Sr(ie){return $o(ie,!1)}function xo(ie,ae){var ce=xn&&ie.markedSpans,de;if(ce)for(var pe=0;pe<ce.length;++pe){var Ae=ce[pe];Ae.marker.collapsed&&(Ae.from==null||Ae.from<ae)&&(Ae.to==null||Ae.to>ae)&&(!de||qr(de,Ae.marker)<0)&&(de=Ae.marker)}return de}function Wo(ie,ae,ce,de,pe){var Ae=yn(ie,ae),Re=xn&&Ae.markedSpans;if(Re)for(var qe=0;qe<Re.length;++qe){var Qe=Re[qe];if(Qe.marker.collapsed){var vt=Qe.marker.find(0),nn=Sn(vt.from,ce)||$r(Qe.marker)-$r(pe),At=Sn(vt.to,de)||ca(Qe.marker)-ca(pe);if(!(nn>=0&&At<=0||nn<=0&&At>=0)&&(nn<=0&&(Qe.marker.inclusiveRight&&pe.inclusiveLeft?Sn(vt.to,ce)>=0:Sn(vt.to,ce)>0)||nn>=0&&(Qe.marker.inclusiveRight&&pe.inclusiveLeft?Sn(vt.from,de)<=0:Sn(vt.from,de)<0)))return!0}}}function eo(ie){for(var ae;ae=Fr(ie);)ie=ae.find(-1,!0).line;return ie}function fa(ie){for(var ae;ae=Sr(ie);)ie=ae.find(1,!0).line;return ie}function sr(ie){for(var ae,ce;ae=Sr(ie);)ie=ae.find(1,!0).line,(ce||(ce=[])).push(ie);return ce}function tr(ie,ae){var ce=yn(ie,ae),de=eo(ce);return ce==de?ae:bt(de)}function Nr(ie,ae){if(ae>ie.lastLine())return ae;var ce=yn(ie,ae),de;if(!ei(ie,ce))return ae;for(;de=Sr(ce);)ce=de.find(1,!0).line;return bt(ce)+1}function ei(ie,ae){var ce=xn&&ae.markedSpans;if(ce){for(var de=void 0,pe=0;pe<ce.length;++pe)if(de=ce[pe],!!de.marker.collapsed){if(de.from==null)return!0;if(!de.marker.widgetNode&&de.from==0&&de.marker.inclusiveLeft&&Ro(ie,ae,de))return!0}}}function Ro(ie,ae,ce){if(ce.to==null){var de=ce.marker.find(1,!0);return Ro(ie,de.line,_o(de.line.markedSpans,ce.marker))}if(ce.marker.inclusiveRight&&ce.to==ae.text.length)return!0;for(var pe=void 0,Ae=0;Ae<ae.markedSpans.length;++Ae)if(pe=ae.markedSpans[Ae],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==ce.to&&(pe.to==null||pe.to!=ce.from)&&(pe.marker.inclusiveLeft||ce.marker.inclusiveRight)&&Ro(ie,ae,pe))return!0}function ia(ie){ie=eo(ie);for(var ae=0,ce=ie.parent,de=0;de<ce.lines.length;++de){var pe=ce.lines[de];if(pe==ie)break;ae+=pe.height}for(var Ae=ce.parent;Ae;ce=Ae,Ae=ce.parent)for(var Re=0;Re<Ae.children.length;++Re){var qe=Ae.children[Re];if(qe==ce)break;ae+=qe.height}return ae}function Za(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ce,de=ie;ce=Fr(de);){var pe=ce.find(0,!0);de=pe.from.line,ae+=pe.from.ch-pe.to.ch}for(de=ie;ce=Sr(de);){var Ae=ce.find(0,!0);ae-=de.text.length-Ae.from.ch,de=Ae.to.line,ae+=de.text.length-Ae.to.ch}return ae}function ha(ie){var ae=ie.display,ce=ie.doc;ae.maxLine=yn(ce,ce.first),ae.maxLineLength=Za(ae.maxLine),ae.maxLineChanged=!0,ce.iter(function(de){var pe=Za(de);pe>ae.maxLineLength&&(ae.maxLineLength=pe,ae.maxLine=de)})}var Oa=function(ie,ae,ce){this.text=ie,Ye(this,ae),this.height=ce?ce(this):1};Oa.prototype.lineNo=function(){return bt(this)},oi(Oa);function Ia(ie,ae,ce,de){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),wi(ie),Ye(ie,ce);var pe=de?de(ie):1;pe!=ie.height&&Cn(ie,pe)}function ys(ie){ie.parent=null,wi(ie)}var Ds={},_s={};function Ys(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ce=ae.addModeClass?_s:Ds;return ce[ie]||(ce[ie]=ie.replace(/\S+/g,"cm-$&"))}function dn(ie,ae){var ce=ut("span",null,null,Fe?"padding-right: .1px":null),de={pre:ut("pre",[ce],"CodeMirror-line"),content:ce,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var pe=0;pe<=(ae.rest?ae.rest.length:0);pe++){var Ae=pe?ae.rest[pe-1]:ae.line,Re=void 0;de.pos=0,de.addToken=au,Xr(ie.display.measure)&&(Re=He(Ae,ie.doc.direction))&&(de.addToken=No(de.addToken,Re)),de.map=[];var qe=ae!=ie.display.externalMeasured&&bt(Ae);os(Ae,de,Lr(ie,Ae,qe)),Ae.styleClasses&&(Ae.styleClasses.bgClass&&(de.bgClass=Qt(Ae.styleClasses.bgClass,de.bgClass||"")),Ae.styleClasses.textClass&&(de.textClass=Qt(Ae.styleClasses.textClass,de.textClass||""))),de.map.length==0&&de.map.push(0,0,de.content.appendChild(Zr(ie.display.measure))),pe==0?(ae.measure.map=de.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(de.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Fe){var Qe=de.content.lastChild;(/\bcm-tab\b/.test(Qe.className)||Qe.querySelector&&Qe.querySelector(".cm-tab"))&&(de.content.className="cm-tab-wrap-hack")}return ht(ie,"renderLine",ie,ae.line,de.pre),de.pre.className&&(de.textClass=Qt(de.pre.className,de.textClass||"")),de}function js(ie){var ae=Ue("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function au(ie,ae,ce,de,pe,Ae,Re){if(ae){var qe=ie.splitSpaces?su(ae,ie.trailingSpace):ae,Qe=ie.cm.state.specialChars,vt=!1,nn;if(!Qe.test(ae))ie.col+=ae.length,nn=document.createTextNode(qe),ie.map.push(ie.pos,ie.pos+ae.length,nn),Xe&&pt<9&&(vt=!0),ie.pos+=ae.length;else{nn=document.createDocumentFragment();for(var At=0;;){Qe.lastIndex=At;var Hn=Qe.exec(ae),Dn=Hn?Hn.index-At:ae.length-At;if(Dn){var Ni=document.createTextNode(qe.slice(At,At+Dn));Xe&&pt<9?nn.appendChild(Ue("span",[Ni])):nn.appendChild(Ni),ie.map.push(ie.pos,ie.pos+Dn,Ni),ie.col+=Dn,ie.pos+=Dn}if(!Hn)break;At+=Dn+1;var Bi=void 0;if(Hn[0]==" "){var er=ie.cm.options.tabSize,Er=er-ie.col%er;Bi=nn.appendChild(Ue("span",ii(Er),"cm-tab")),Bi.setAttribute("role","presentation"),Bi.setAttribute("cm-text"," "),ie.col+=Er}else Hn[0]=="\r"||Hn[0]==`
|
|
|
`?(Bi=nn.appendChild(Ue("span",Hn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bi.setAttribute("cm-text",Hn[0]),ie.col+=1):(Bi=ie.cm.options.specialCharPlaceholder(Hn[0]),Bi.setAttribute("cm-text",Hn[0]),Xe&&pt<9?nn.appendChild(Ue("span",[Bi])):nn.appendChild(Bi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Bi),ie.pos++}}if(ie.trailingSpace=qe.charCodeAt(ae.length-1)==32,ce||de||pe||vt||Ae||Re){var ro=ce||"";de&&(ro+=de),pe&&(ro+=pe);var Wr=Ue("span",[nn],ro,Ae);if(Re)for(var So in Re)Re.hasOwnProperty(So)&&So!="style"&&So!="class"&&Wr.setAttribute(So,Re[So]);return ie.content.appendChild(Wr)}ie.content.appendChild(nn)}}function su(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ce=ae,de="",pe=0;pe<ie.length;pe++){var Ae=ie.charAt(pe);Ae==" "&&ce&&(pe==ie.length-1||ie.charCodeAt(pe+1)==32)&&(Ae="\xA0"),de+=Ae,ce=Ae==" "}return de}function No(ie,ae){return function(ce,de,pe,Ae,Re,qe,Qe){pe=pe?pe+" cm-force-border":"cm-force-border";for(var vt=ce.pos,nn=vt+de.length;;){for(var At=void 0,Hn=0;Hn<ae.length&&(At=ae[Hn],!(At.to>vt&&At.from<=vt));Hn++);if(At.to>=nn)return ie(ce,de,pe,Ae,Re,qe,Qe);ie(ce,de.slice(0,At.to-vt),pe,Ae,null,qe,Qe),Ae=null,de=de.slice(At.to-vt),vt=At.to}}}function ga(ie,ae,ce,de){var pe=!de&&ce.widgetNode;pe&&ie.map.push(ie.pos,ie.pos+ae,pe),!de&&ie.cm.display.input.needsContentAttribute&&(pe||(pe=ie.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",ce.id)),pe&&(ie.cm.display.input.setUneditable(pe),ie.content.appendChild(pe)),ie.pos+=ae,ie.trailingSpace=!1}function os(ie,ae,ce){var de=ie.markedSpans,pe=ie.text,Ae=0;if(!de){for(var Re=1;Re<ce.length;Re+=2)ae.addToken(ae,pe.slice(Ae,Ae=ce[Re]),Ys(ce[Re+1],ae.cm.options));return}for(var qe=pe.length,Qe=0,vt=1,nn="",At,Hn,Dn=0,Ni,Bi,er,Er,ro;;){if(Dn==Qe){Ni=Bi=er=Hn="",ro=null,Er=null,Dn=1/0;for(var Wr=[],So=void 0,Jo=0;Jo<de.length;++Jo){var zr=de[Jo],va=zr.marker;if(va.type=="bookmark"&&zr.from==Qe&&va.widgetNode)Wr.push(va);else if(zr.from<=Qe&&(zr.to==null||zr.to>Qe||va.collapsed&&zr.to==Qe&&zr.from==Qe)){if(zr.to!=null&&zr.to!=Qe&&Dn>zr.to&&(Dn=zr.to,Bi=""),va.className&&(Ni+=" "+va.className),va.css&&(Hn=(Hn?Hn+";":"")+va.css),va.startStyle&&zr.from==Qe&&(er+=" "+va.startStyle),va.endStyle&&zr.to==Dn&&(So||(So=[])).push(va.endStyle,zr.to),va.title&&((ro||(ro={})).title=va.title),va.attributes)for(var Gs in va.attributes)(ro||(ro={}))[Gs]=va.attributes[Gs];va.collapsed&&(!Er||qr(Er.marker,va)<0)&&(Er=zr)}else zr.from>Qe&&Dn>zr.from&&(Dn=zr.from)}if(So)for(var kl=0;kl<So.length;kl+=2)So[kl+1]==Dn&&(Bi+=" "+So[kl]);if(!Er||Er.from==Qe)for(var tl=0;tl<Wr.length;++tl)ga(ae,0,Wr[tl]);if(Er&&(Er.from||0)==Qe){if(ga(ae,(Er.to==null?qe+1:Er.to)-Qe,Er.marker,Er.from==null),Er.to==null)return;Er.to==Qe&&(Er=!1)}}if(Qe>=qe)break;for(var Iu=Math.min(qe,Dn);;){if(nn){var pu=Qe+nn.length;if(!Er){var Pl=pu>Iu?nn.slice(0,Iu-Qe):nn;ae.addToken(ae,Pl,At?At+Ni:Ni,er,Qe+Pl.length==Dn?Bi:"",Hn,ro)}if(pu>=Iu){nn=nn.slice(Iu-Qe),Qe=Iu;break}Qe=pu,er=""}nn=pe.slice(Ae,Ae=ce[vt++]),At=Ys(ce[vt++],ae.cm.options)}}}function pa(ie,ae,ce){this.line=ae,this.rest=sr(ae),this.size=this.rest?bt(mt(this.rest))-ce+1:1,this.node=this.text=null,this.hidden=ei(ie,ae)}function To(ie,ae,ce){for(var de=[],pe,Ae=ae;Ae<ce;Ae=pe){var Re=new pa(ie.doc,yn(ie.doc,Ae),Ae);pe=Ae+Re.size,de.push(Re)}return de}var la=null;function bs(ie){la?la.ops.push(ie):ie.ownsGroup=la={ops:[ie],delayedCallbacks:[]}}function to(ie){var ae=ie.delayedCallbacks,ce=0;do{for(;ce<ae.length;ce++)ae[ce].call(null);for(var de=0;de<ie.ops.length;de++){var pe=ie.ops[de];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(ce<ae.length)}function zo(ie,ae){var ce=ie.ownsGroup;if(ce)try{to(ce)}finally{la=null,ae(ce)}}var Oo=null;function Wi(ie,ae){var ce=Ut(ie,ae);if(ce.length){var de=Array.prototype.slice.call(arguments,2),pe;la?pe=la.delayedCallbacks:Oo?pe=Oo:(pe=Oo=[],setTimeout(cs,0));for(var Ae=function(qe){pe.push(function(){return ce[qe].apply(null,de)})},Re=0;Re<ce.length;++Re)Ae(Re)}}function cs(){var ie=Oo;Oo=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Ss(ie,ae,ce,de){for(var pe=0;pe<ae.changes.length;pe++){var Ae=ae.changes[pe];Ae=="text"?Fi(ie,ae):Ae=="gutter"?Es(ie,ae,ce,de):Ae=="class"?Ya(ie,ae):Ae=="widget"&&Jl(ie,ae,de)}ae.changes=null}function dl(ie){return ie.node==ie.text&&(ie.node=Ue("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Xe&&pt<8&&(ie.node.style.zIndex=2)),ie.node}function lu(ie,ae){var ce=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(ce&&(ce+=" CodeMirror-linebackground"),ae.background)ce?ae.background.className=ce:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(ce){var de=dl(ae);ae.background=de.insertBefore(Ue("div",null,ce),de.firstChild),ie.display.input.setUneditable(ae.background)}}function wu(ie,ae){var ce=ie.display.externalMeasured;return ce&&ce.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ce.measure,ce.built):dn(ie,ae)}function Fi(ie,ae){var ce=ae.text.className,de=wu(ie,ae);ae.text==ae.node&&(ae.node=de.pre),ae.text.parentNode.replaceChild(de.pre,ae.text),ae.text=de.pre,de.bgClass!=ae.bgClass||de.textClass!=ae.textClass?(ae.bgClass=de.bgClass,ae.textClass=de.textClass,Ya(ie,ae)):ce&&(ae.text.className=ce)}function Ya(ie,ae){lu(ie,ae),ae.line.wrapClass?dl(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var ce=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=ce||""}function Es(ie,ae,ce,de){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var pe=dl(ae);ae.gutterBackground=Ue("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px; width: "+de.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),pe.insertBefore(ae.gutterBackground,ae.text)}var Ae=ae.line.gutterMarkers;if(ie.options.lineNumbers||Ae){var Re=dl(ae),qe=ae.gutter=Ue("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(qe),Re.insertBefore(qe,ae.text),ae.line.gutterClass&&(qe.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Ae||!Ae["CodeMirror-linenumbers"])&&(ae.lineNumber=qe.appendChild(Ue("div",Oi(ie.options,ce),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+de.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Ae)for(var Qe=0;Qe<ie.display.gutterSpecs.length;++Qe){var vt=ie.display.gutterSpecs[Qe].className,nn=Ae.hasOwnProperty(vt)&&Ae[vt];nn&&qe.appendChild(Ue("div",[nn],"CodeMirror-gutter-elt","left: "+de.gutterLeft[vt]+"px; width: "+de.gutterWidth[vt]+"px"))}}}function Jl(ie,ae,ce){ae.alignable&&(ae.alignable=null);for(var de=we("CodeMirror-linewidget"),pe=ae.node.firstChild,Ae=void 0;pe;pe=Ae)Ae=pe.nextSibling,de.test(pe.className)&&ae.node.removeChild(pe);hu(ie,ae,ce)}function uu(ie,ae,ce,de){var pe=wu(ie,ae);return ae.text=ae.node=pe.pre,pe.bgClass&&(ae.bgClass=pe.bgClass),pe.textClass&&(ae.textClass=pe.textClass),Ya(ie,ae),Es(ie,ae,ce,de),hu(ie,ae,de),ae.node}function hu(ie,ae,ce){if(lo(ie,ae.line,ae,ce,!0),ae.rest)for(var de=0;de<ae.rest.length;de++)lo(ie,ae.rest[de],ae,ce,!1)}function lo(ie,ae,ce,de,pe){if(ae.widgets)for(var Ae=dl(ce),Re=0,qe=ae.widgets;Re<qe.length;++Re){var Qe=qe[Re],vt=Ue("div",[Qe.node],"CodeMirror-linewidget"+(Qe.className?" "+Qe.className:""));Qe.handleMouseEvents||vt.setAttribute("cm-ignore-events","true"),Sh(Qe,vt,ce,de),ie.display.input.setUneditable(vt),pe&&Qe.above?Ae.insertBefore(vt,ce.gutter||ce.text):Ae.appendChild(vt),Wi(Qe,"redraw")}}function Sh(ie,ae,ce,de){if(ie.noHScroll){(ce.alignable||(ce.alignable=[])).push(ae);var pe=de.wrapperWidth;ae.style.left=de.fixedPos+"px",ie.coverGutter||(pe-=de.gutterTotalWidth,ae.style.paddingLeft=de.gutterTotalWidth+"px"),ae.style.width=pe+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-de.gutterTotalWidth+"px"))}function El(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!Ht(document.body,ie.node)){var ce="position: relative;";ie.coverGutter&&(ce+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ce+="width: "+ae.display.wrapper.clientWidth+"px;"),We(ae.display.measure,Ue("div",[ie.node],null,ce))}return ie.height=ie.node.parentNode.offsetHeight}function Ll(ie,ae){for(var ce=vr(ae);ce!=ie.wrapper;ce=ce.parentNode)if(!ce||ce.nodeType==1&&ce.getAttribute("cm-ignore-events")=="true"||ce.parentNode==ie.sizer&&ce!=ie.mover)return!0}function ml(ie){return ie.lineSpace.offsetTop}function Zu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function Pu(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=We(ie.measure,Ue("pre","x","CodeMirror-line-like")),ce=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,de={left:parseInt(ce.paddingLeft),right:parseInt(ce.paddingRight)};return!isNaN(de.left)&&!isNaN(de.right)&&(ie.cachedPaddingH=de),de}function vl(ie){return Wn-ie.display.nativeBarWidth}function Ml(ie){return ie.display.scroller.clientWidth-vl(ie)-ie.display.barWidth}function Bh(ie){return ie.display.scroller.clientHeight-vl(ie)-ie.display.barHeight}function _h(ie,ae,ce){var de=ie.options.lineWrapping,pe=de&&Ml(ie);if(!ae.measure.heights||de&&ae.measure.width!=pe){var Ae=ae.measure.heights=[];if(de){ae.measure.width=pe;for(var Re=ae.text.firstChild.getClientRects(),qe=0;qe<Re.length-1;qe++){var Qe=Re[qe],vt=Re[qe+1];Math.abs(Qe.bottom-vt.bottom)>2&&Ae.push((Qe.bottom+vt.top)/2-ce.top)}}Ae.push(ce.bottom-ce.top)}}function Oh(ie,ae,ce){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var de=0;de<ie.rest.length;de++)if(ie.rest[de]==ae)return{map:ie.measure.maps[de],cache:ie.measure.caches[de]};for(var pe=0;pe<ie.rest.length;pe++)if(bt(ie.rest[pe])>ce)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function gd(ie,ae){ae=eo(ae);var ce=bt(ae),de=ie.display.externalMeasured=new pa(ie.doc,ae,ce);de.lineN=ce;var pe=de.built=dn(ie,de);return de.text=pe.pre,We(ie.display.lineMeasure,pe.pre),de}function Ih(ie,ae,ce,de){return Bl(ie,Dl(ie,ae),ce,de)}function Gu(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[yl(ie,ae)];var ce=ie.display.externalMeasured;if(ce&&ae>=ce.lineN&&ae<ce.lineN+ce.size)return ce}function Dl(ie,ae){var ce=bt(ae),de=Gu(ie,ce);de&&!de.text?de=null:de&&de.changes&&(Ss(ie,de,ce,oc(ie)),ie.curOp.forceUpdate=!0),de||(de=gd(ie,ae));var pe=Oh(de,ae,ce);return{line:ae,view:de,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function Bl(ie,ae,ce,de,pe){ae.before&&(ce=-1);var Ae=ce+(de||""),Re;return ae.cache.hasOwnProperty(Ae)?Re=ae.cache[Ae]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(_h(ie,ae.view,ae.rect),ae.hasHeights=!0),Re=Bo(ie,ae,ce,de),Re.bogus||(ae.cache[Ae]=Re)),{left:Re.left,right:Re.right,top:pe?Re.rtop:Re.top,bottom:pe?Re.rbottom:Re.bottom}}var pd={left:0,right:0,top:0,bottom:0};function ed(ie,ae,ce){for(var de,pe,Ae,Re,qe,Qe,vt=0;vt<ie.length;vt+=3)if(qe=ie[vt],Qe=ie[vt+1],ae<qe?(pe=0,Ae=1,Re="left"):ae<Qe?(pe=ae-qe,Ae=pe+1):(vt==ie.length-3||ae==Qe&&ie[vt+3]>ae)&&(Ae=Qe-qe,pe=Ae-1,ae>=Qe&&(Re="right")),pe!=null){if(de=ie[vt+2],qe==Qe&&ce==(de.insertLeft?"left":"right")&&(Re=ce),ce=="left"&&pe==0)for(;vt&&ie[vt-2]==ie[vt-3]&&ie[vt-1].insertLeft;)de=ie[(vt-=3)+2],Re="left";if(ce=="right"&&pe==Qe-qe)for(;vt<ie.length-3&&ie[vt+3]==ie[vt+4]&&!ie[vt+5].insertLeft;)de=ie[(vt+=3)+2],Re="right";break}return{node:de,start:pe,end:Ae,collapse:Re,coverStart:qe,coverEnd:Qe}}function Cu(ie,ae){var ce=pd;if(ae=="left")for(var de=0;de<ie.length&&(ce=ie[de]).left==ce.right;de++);else for(var pe=ie.length-1;pe>=0&&(ce=ie[pe]).left==ce.right;pe--);return ce}function Bo(ie,ae,ce,de){var pe=ed(ae.map,ce,de),Ae=pe.node,Re=pe.start,qe=pe.end,Qe=pe.collapse,vt;if(Ae.nodeType==3){for(var nn=0;nn<4;nn++){for(;Re&&Et(ae.line.text.charAt(pe.coverStart+Re));)--Re;for(;pe.coverStart+qe<pe.coverEnd&&Et(ae.line.text.charAt(pe.coverStart+qe));)++qe;if(Xe&&pt<9&&Re==0&&qe==pe.coverEnd-pe.coverStart?vt=Ae.parentNode.getBoundingClientRect():vt=Cu(Ke(Ae,Re,qe).getClientRects(),de),vt.left||vt.right||Re==0)break;qe=Re,Re=Re-1,Qe="right"}Xe&&pt<11&&(vt=da(ie.display.measure,vt))}else{Re>0&&(Qe=de="right");var At;ie.options.lineWrapping&&(At=Ae.getClientRects()).length>1?vt=At[de=="right"?At.length-1:0]:vt=Ae.getBoundingClientRect()}if(Xe&&pt<9&&!Re&&(!vt||!vt.left&&!vt.right)){var Hn=Ae.parentNode.getClientRects()[0];Hn?vt={left:Hn.left,right:Hn.left+xh(ie.display),top:Hn.top,bottom:Hn.bottom}:vt=pd}for(var Dn=vt.top-ae.rect.top,Ni=vt.bottom-ae.rect.top,Bi=(Dn+Ni)/2,er=ae.view.measure.heights,Er=0;Er<er.length-1&&!(Bi<er[Er]);Er++);var ro=Er?er[Er-1]:0,Wr=er[Er],So={left:(Qe=="right"?vt.right:vt.left)-ae.rect.left,right:(Qe=="left"?vt.left:vt.right)-ae.rect.left,top:ro,bottom:Wr};return!vt.left&&!vt.right&&(So.bogus=!0),ie.options.singleCursorHeightPerLine||(So.rtop=Dn,So.rbottom=Ni),So}function da(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!hr(ie))return ae;var ce=screen.logicalXDPI/screen.deviceXDPI,de=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*ce,right:ae.right*ce,top:ae.top*de,bottom:ae.bottom*de}}function cl(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function xs(ie){ie.display.externalMeasure=null,ze(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)cl(ie.display.view[ae])}function ws(ie){xs(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function _a(){return Ct&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ls(){return Ct&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ls(ie){var ae=0;if(ie.widgets)for(var ce=0;ce<ie.widgets.length;++ce)ie.widgets[ce].above&&(ae+=El(ie.widgets[ce]));return ae}function Ps(ie,ae,ce,de,pe){if(!pe){var Ae=Ls(ae);ce.top+=Ae,ce.bottom+=Ae}if(de=="line")return ce;de||(de="local");var Re=ia(ae);if(de=="local"?Re+=ml(ie.display):Re-=ie.display.viewOffset,de=="page"||de=="window"){var qe=ie.display.lineSpace.getBoundingClientRect();Re+=qe.top+(de=="window"?0:ls());var Qe=qe.left+(de=="window"?0:_a());ce.left+=Qe,ce.right+=Qe}return ce.top+=Re,ce.bottom+=Re,ce}function ih(ie,ae,ce){if(ce=="div")return ae;var de=ae.left,pe=ae.top;if(ce=="page")de-=_a(),pe-=ls();else if(ce=="local"||!ce){var Ae=ie.display.sizer.getBoundingClientRect();de+=Ae.left,pe+=Ae.top}var Re=ie.display.lineSpace.getBoundingClientRect();return{left:de-Re.left,top:pe-Re.top}}function Ql(ie,ae,ce,de,pe){return de||(de=yn(ie.doc,ae.line)),Ps(ie,de,Ih(ie,de,ae.ch,pe),ce)}function fs(ie,ae,ce,de,pe,Ae){de=de||yn(ie.doc,ae.line),pe||(pe=Dl(ie,de));function Re(Ni,Bi){var er=Bl(ie,pe,Ni,Bi?"right":"left",Ae);return Bi?er.left=er.right:er.right=er.left,Ps(ie,de,er,ce)}var qe=He(de,ie.doc.direction),Qe=ae.ch,vt=ae.sticky;if(Qe>=de.text.length?(Qe=de.text.length,vt="before"):Qe<=0&&(Qe=0,vt="after"),!qe)return Re(vt=="before"?Qe-1:Qe,vt=="before");function nn(Ni,Bi,er){var Er=qe[Bi],ro=Er.level==1;return Re(er?Ni-1:Ni,ro!=er)}var At=me(qe,Qe,vt),Hn=xe,Dn=nn(Qe,At,vt=="before");return Hn!=null&&(Dn.other=nn(Qe,Hn,vt!="before")),Dn}function ic(ie,ae){var ce=0;ae=Nn(ie.doc,ae),ie.options.lineWrapping||(ce=xh(ie.display)*ae.ch);var de=yn(ie.doc,ae.line),pe=ia(de)+ml(ie.display);return{left:ce,right:ce,top:pe,bottom:pe+de.height}}function md(ie,ae,ce,de,pe){var Ae=Kt(ie,ae,ce);return Ae.xRel=pe,de&&(Ae.outside=de),Ae}function td(ie,ae,ce){var de=ie.doc;if(ce+=ie.display.viewOffset,ce<0)return md(de.first,0,null,-1,-1);var pe=In(de,ce),Ae=de.first+de.size-1;if(pe>Ae)return md(de.first+de.size-1,yn(de,Ae).text.length,null,1,1);ae<0&&(ae=0);for(var Re=yn(de,pe);;){var qe=ti(ie,Re,pe,ae,ce),Qe=xo(Re,qe.ch+(qe.xRel>0||qe.outside>0?1:0));if(!Qe)return qe;var vt=Qe.find(1);if(vt.line==pe)return vt;Re=yn(de,pe=vt.line)}}function Mr(ie,ae,ce,de){de-=Ls(ae);var pe=ae.text.length,Ae=ot(function(Re){return Bl(ie,ce,Re-1).bottom<=de},pe,0);return pe=ot(function(Re){return Bl(ie,ce,Re).top>de},Ae,pe),{begin:Ae,end:pe}}function nd(ie,ae,ce,de){ce||(ce=Dl(ie,ae));var pe=Ps(ie,ae,Bl(ie,ce,de),"line").top;return Mr(ie,ae,ce,pe)}function Nt(ie,ae,ce,de){return ie.bottom<=ce?!1:ie.top>ce?!0:(de?ie.left:ie.right)>ae}function ti(ie,ae,ce,de,pe){pe-=ia(ae);var Ae=Dl(ie,ae),Re=Ls(ae),qe=0,Qe=ae.text.length,vt=!0,nn=He(ae,ie.doc.direction);if(nn){var At=(ie.options.lineWrapping?rc:Ic)(ie,ae,ce,Ae,nn,de,pe);vt=At.level!=1,qe=vt?At.from:At.to-1,Qe=vt?At.to:At.from-1}var Hn=null,Dn=null,Ni=ot(function(Jo){var zr=Bl(ie,Ae,Jo);return zr.top+=Re,zr.bottom+=Re,Nt(zr,de,pe,!1)?(zr.top<=pe&&zr.left<=de&&(Hn=Jo,Dn=zr),!0):!1},qe,Qe),Bi,er,Er=!1;if(Dn){var ro=de-Dn.left<Dn.right-de,Wr=ro==vt;Ni=Hn+(Wr?0:1),er=Wr?"after":"before",Bi=ro?Dn.left:Dn.right}else{!vt&&(Ni==Qe||Ni==qe)&&Ni++,er=Ni==0?"after":Ni==ae.text.length?"before":Bl(ie,Ae,Ni-(vt?1:0)).bottom+Re<=pe==vt?"after":"before";var So=fs(ie,Kt(ce,Ni,er),"line",ae,Ae);Bi=So.left,Er=pe<So.top?-1:pe>=So.bottom?1:0}return Ni=dt(ae.text,Ni,1),md(ce,Ni,er,Er,de-Bi)}function Ic(ie,ae,ce,de,pe,Ae,Re){var qe=ot(function(At){var Hn=pe[At],Dn=Hn.level!=1;return Nt(fs(ie,Kt(ce,Dn?Hn.to:Hn.from,Dn?"before":"after"),"line",ae,de),Ae,Re,!0)},0,pe.length-1),Qe=pe[qe];if(qe>0){var vt=Qe.level!=1,nn=fs(ie,Kt(ce,vt?Qe.from:Qe.to,vt?"after":"before"),"line",ae,de);Nt(nn,Ae,Re,!0)&&nn.top>Re&&(Qe=pe[qe-1])}return Qe}function rc(ie,ae,ce,de,pe,Ae,Re){var qe=Mr(ie,ae,de,Re),Qe=qe.begin,vt=qe.end;/\s/.test(ae.text.charAt(vt-1))&&vt--;for(var nn=null,At=null,Hn=0;Hn<pe.length;Hn++){var Dn=pe[Hn];if(!(Dn.from>=vt||Dn.to<=Qe)){var Ni=Dn.level!=1,Bi=Bl(ie,de,Ni?Math.min(vt,Dn.to)-1:Math.max(Qe,Dn.from)).right,er=Bi<Ae?Ae-Bi+1e9:Bi-Ae;(!nn||At>er)&&(nn=Dn,At=er)}}return nn||(nn=pe[pe.length-1]),nn.from<Qe&&(nn={from:Qe,to:nn.to,level:nn.level}),nn.to>vt&&(nn={from:nn.from,to:vt,level:nn.level}),nn}var rh;function oh(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(rh==null){rh=Ue("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)rh.appendChild(document.createTextNode("x")),rh.appendChild(Ue("br"));rh.appendChild(document.createTextNode("x"))}We(ie.measure,rh);var ce=rh.offsetHeight/50;return ce>3&&(ie.cachedTextHeight=ce),ze(ie.measure),ce||1}function xh(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Ue("span","xxxxxxxxxx"),ce=Ue("pre",[ae],"CodeMirror-line-like");We(ie.measure,ce);var de=ae.getBoundingClientRect(),pe=(de.right-de.left)/10;return pe>2&&(ie.cachedCharWidth=pe),pe||10}function oc(ie){for(var ae=ie.display,ce={},de={},pe=ae.gutters.clientLeft,Ae=ae.gutters.firstChild,Re=0;Ae;Ae=Ae.nextSibling,++Re){var qe=ie.display.gutterSpecs[Re].className;ce[qe]=Ae.offsetLeft+Ae.clientLeft+pe,de[qe]=Ae.clientWidth}return{fixedPos:Bd(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ce,gutterWidth:de,wrapperWidth:ae.wrapper.clientWidth}}function Bd(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Cs(ie){var ae=oh(ie.display),ce=ie.options.lineWrapping,de=ce&&Math.max(5,ie.display.scroller.clientWidth/xh(ie.display)-3);return function(pe){if(ei(ie.doc,pe))return 0;var Ae=0;if(pe.widgets)for(var Re=0;Re<pe.widgets.length;Re++)pe.widgets[Re].height&&(Ae+=pe.widgets[Re].height);return ce?Ae+(Math.ceil(pe.text.length/de)||1)*ae:Ae+ae}}function mo(ie){var ae=ie.doc,ce=Cs(ie);ae.iter(function(de){var pe=ce(de);pe!=de.height&&Cn(de,pe)})}function il(ie,ae,ce,de){var pe=ie.display;if(!ce&&vr(ae).getAttribute("cm-not-content")=="true")return null;var Ae,Re,qe=pe.lineSpace.getBoundingClientRect();try{Ae=ae.clientX-qe.left,Re=ae.clientY-qe.top}catch(At){return null}var Qe=td(ie,Ae,Re),vt;if(de&&Qe.xRel>0&&(vt=yn(ie.doc,Qe.line).text).length==Qe.ch){var nn=yt(vt,vt.length,ie.options.tabSize)-vt.length;Qe=Kt(Qe.line,Math.max(0,Math.round((Ae-Pu(ie.display).left)/xh(ie.display))-nn))}return Qe}function yl(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ce=ie.display.view,de=0;de<ce.length;de++)if(ae-=ce[de].size,ae<0)return de}function as(ie,ae,ce,de){ae==null&&(ae=ie.doc.first),ce==null&&(ce=ie.doc.first+ie.doc.size),de||(de=0);var pe=ie.display;if(de&&ce<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>ae)&&(pe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=pe.viewTo)xn&&tr(ie.doc,ae)<pe.viewTo&&Us(ie);else if(ce<=pe.viewFrom)xn&&Nr(ie.doc,ce+de)>pe.viewFrom?Us(ie):(pe.viewFrom+=de,pe.viewTo+=de);else if(ae<=pe.viewFrom&&ce>=pe.viewTo)Us(ie);else if(ae<=pe.viewFrom){var Ae=Ie(ie,ce,ce+de,1);Ae?(pe.view=pe.view.slice(Ae.index),pe.viewFrom=Ae.lineN,pe.viewTo+=de):Us(ie)}else if(ce>=pe.viewTo){var Re=Ie(ie,ae,ae,-1);Re?(pe.view=pe.view.slice(0,Re.index),pe.viewTo=Re.lineN):Us(ie)}else{var qe=Ie(ie,ae,ae,-1),Qe=Ie(ie,ce,ce+de,1);qe&&Qe?(pe.view=pe.view.slice(0,qe.index).concat(To(ie,qe.lineN,Qe.lineN)).concat(pe.view.slice(Qe.index)),pe.viewTo+=de):Us(ie)}var vt=pe.externalMeasured;vt&&(ce<vt.lineN?vt.lineN+=de:ae<vt.lineN+vt.size&&(pe.externalMeasured=null))}function ea(ie,ae,ce){ie.curOp.viewChanged=!0;var de=ie.display,pe=ie.display.externalMeasured;if(pe&&ae>=pe.lineN&&ae<pe.lineN+pe.size&&(de.externalMeasured=null),!(ae<de.viewFrom||ae>=de.viewTo)){var Ae=de.view[yl(ie,ae)];if(Ae.node!=null){var Re=Ae.changes||(Ae.changes=[]);tn(Re,ce)==-1&&Re.push(ce)}}}function Us(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Ie(ie,ae,ce,de){var pe=yl(ie,ae),Ae,Re=ie.display.view;if(!xn||ce==ie.doc.first+ie.doc.size)return{index:pe,lineN:ce};for(var qe=ie.display.viewFrom,Qe=0;Qe<pe;Qe++)qe+=Re[Qe].size;if(qe!=ae){if(de>0){if(pe==Re.length-1)return null;Ae=qe+Re[pe].size-ae,pe++}else Ae=qe-ae;ae+=Ae,ce+=Ae}for(;tr(ie.doc,ce)!=ce;){if(pe==(de<0?0:Re.length-1))return null;ce+=de*Re[pe-(de<0?1:0)].size,pe+=de}return{index:pe,lineN:ce}}function Ve(ie,ae,ce){var de=ie.display,pe=de.view;pe.length==0||ae>=de.viewTo||ce<=de.viewFrom?(de.view=To(ie,ae,ce),de.viewFrom=ae):(de.viewFrom>ae?de.view=To(ie,ae,de.viewFrom).concat(de.view):de.viewFrom<ae&&(de.view=de.view.slice(yl(ie,ae))),de.viewFrom=ae,de.viewTo<ce?de.view=de.view.concat(To(ie,de.viewTo,ce)):de.viewTo>ce&&(de.view=de.view.slice(0,yl(ie,ce)))),de.viewTo=ce}function _e(ie){for(var ae=ie.display.view,ce=0,de=0;de<ae.length;de++){var pe=ae[de];!pe.hidden&&(!pe.node||pe.changes)&&++ce}return ce}function Rt(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Zt(ie,ae){ae===void 0&&(ae=!0);for(var ce=ie.doc,de={},pe=de.cursors=document.createDocumentFragment(),Ae=de.selection=document.createDocumentFragment(),Re=0;Re<ce.sel.ranges.length;Re++)if(!(!ae&&Re==ce.sel.primIndex)){var qe=ce.sel.ranges[Re];if(!(qe.from().line>=ie.display.viewTo||qe.to().line<ie.display.viewFrom)){var Qe=qe.empty();(Qe||ie.options.showCursorWhenSelecting)&&fn(ie,qe.head,pe),Qe||Gn(ie,qe,Ae)}}return de}function fn(ie,ae,ce){var de=fs(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),pe=ce.appendChild(Ue("div","\xA0","CodeMirror-cursor"));if(pe.style.left=de.left+"px",pe.style.top=de.top+"px",pe.style.height=Math.max(0,de.bottom-de.top)*ie.options.cursorHeight+"px",de.other){var Ae=ce.appendChild(Ue("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ae.style.display="",Ae.style.left=de.other.left+"px",Ae.style.top=de.other.top+"px",Ae.style.height=(de.other.bottom-de.other.top)*.85+"px"}}function mn(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Gn(ie,ae,ce){var de=ie.display,pe=ie.doc,Ae=document.createDocumentFragment(),Re=Pu(ie.display),qe=Re.left,Qe=Math.max(de.sizerWidth,Ml(ie)-de.sizer.offsetLeft)-Re.right,vt=pe.direction=="ltr";function nn(Wr,So,Jo,zr){So<0&&(So=0),So=Math.round(So),zr=Math.round(zr),Ae.appendChild(Ue("div",null,"CodeMirror-selected","position: absolute; left: "+Wr+`px;
|
|
|
top: `+So+"px; width: "+(Jo==null?Qe-Wr:Jo)+`px;
|
|
|
height: `+(zr-So)+"px"))}function At(Wr,So,Jo){var zr=yn(pe,Wr),va=zr.text.length,Gs,kl;function tl(Pl,Xu){return Ql(ie,Kt(Wr,Pl),"div",zr,Xu)}function Iu(Pl,Xu,eu){var Cl=nd(ie,zr,null,Pl),qa=Xu=="ltr"==(eu=="after")?"left":"right",rl=eu=="after"?Cl.begin:Cl.end-(/\s/.test(zr.text.charAt(Cl.end-1))?2:1);return tl(rl,qa)[qa]}var pu=He(zr,pe.direction);return De(pu,So||0,Jo==null?va:Jo,function(Pl,Xu,eu,Cl){var qa=eu=="ltr",rl=tl(Pl,qa?"left":"right"),zl=tl(Xu-1,qa?"right":"left"),tu=So==null&&Pl==0,Gh=Jo==null&&Xu==va,nl=Cl==0,Eh=!pu||Cl==pu.length-1;if(zl.top-rl.top<=3){var hl=(vt?tu:Gh)&&nl,Qf=(vt?Gh:tu)&&Eh,dh=hl?qe:(qa?rl:zl).left,Ju=Qf?Qe:(qa?zl:rl).right;nn(dh,rl.top,Ju-dh,rl.bottom)}else{var Ru,Fs,jl,xd;qa?(Ru=vt&&tu&&nl?qe:rl.left,Fs=vt?Qe:Iu(Pl,eu,"before"),jl=vt?qe:Iu(Xu,eu,"after"),xd=vt&&Gh&&Eh?Qe:zl.right):(Ru=vt?Iu(Pl,eu,"before"):qe,Fs=!vt&&tu&&nl?Qe:rl.right,jl=!vt&&Gh&&Eh?qe:zl.left,xd=vt?Iu(Xu,eu,"after"):Qe),nn(Ru,rl.top,Fs-Ru,rl.bottom),rl.bottom<zl.top&&nn(qe,rl.bottom,null,zl.top),nn(jl,zl.top,xd-jl,zl.bottom)}(!Gs||mn(rl,Gs)<0)&&(Gs=rl),mn(zl,Gs)<0&&(Gs=zl),(!kl||mn(rl,kl)<0)&&(kl=rl),mn(zl,kl)<0&&(kl=zl)}),{start:Gs,end:kl}}var Hn=ae.from(),Dn=ae.to();if(Hn.line==Dn.line)At(Hn.line,Hn.ch,Dn.ch);else{var Ni=yn(pe,Hn.line),Bi=yn(pe,Dn.line),er=eo(Ni)==eo(Bi),Er=At(Hn.line,Hn.ch,er?Ni.text.length+1:null).end,ro=At(Dn.line,er?0:null,Dn.ch).start;er&&(Er.top<ro.top-2?(nn(Er.right,Er.top,null,Er.bottom),nn(qe,ro.top,ro.left,ro.bottom)):nn(Er.right,Er.top,ro.left-Er.right,Er.bottom)),Er.bottom<ro.top&&nn(qe,Er.bottom,null,ro.top)}ce.appendChild(Ae)}function Un(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var ce=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||Li(ie),ae.cursorDiv.style.visibility=(ce=!ce)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function ui(ie){ie.state.focused||(ie.display.input.focus(),li(ie))}function Ii(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Li(ie))},100)}function li(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(ht(ie,"focus",ie,ae),ie.state.focused=!0,_t(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Fe&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Un(ie))}function Li(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(ht(ie,"blur",ie,ae),ie.state.focused=!1,Oe(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function si(ie){for(var ae=ie.display,ce=ae.lineDiv.offsetTop,de=0;de<ae.view.length;de++){var pe=ae.view[de],Ae=ie.options.lineWrapping,Re=void 0,qe=0;if(!pe.hidden){if(Xe&&pt<8){var Qe=pe.node.offsetTop+pe.node.offsetHeight;Re=Qe-ce,ce=Qe}else{var vt=pe.node.getBoundingClientRect();Re=vt.bottom-vt.top,!Ae&&pe.text.firstChild&&(qe=pe.text.firstChild.getBoundingClientRect().right-vt.left-1)}var nn=pe.line.height-Re;if((nn>.005||nn<-.005)&&(Cn(pe.line,Re),Xi(pe.line),pe.rest))for(var At=0;At<pe.rest.length;At++)Xi(pe.rest[At]);if(qe>ie.display.sizerWidth){var Hn=Math.ceil(qe/xh(ie.display));Hn>ie.display.maxLineLength&&(ie.display.maxLineLength=Hn,ie.display.maxLine=pe.line,ie.display.maxLineChanged=!0)}}}}function Xi(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var ce=ie.widgets[ae],de=ce.node.parentNode;de&&(ce.height=de.offsetHeight)}}function zn(ie,ae,ce){var de=ce&&ce.top!=null?Math.max(0,ce.top):ie.scroller.scrollTop;de=Math.floor(de-ml(ie));var pe=ce&&ce.bottom!=null?ce.bottom:de+ie.wrapper.clientHeight,Ae=In(ae,de),Re=In(ae,pe);if(ce&&ce.ensure){var qe=ce.ensure.from.line,Qe=ce.ensure.to.line;qe<Ae?(Ae=qe,Re=In(ae,ia(yn(ae,qe))+ie.wrapper.clientHeight)):Math.min(Qe,ae.lastLine())>=Re&&(Ae=In(ae,ia(yn(ae,Qe))-ie.wrapper.clientHeight),Re=Qe)}return{from:Ae,to:Math.max(Re,Ae+1)}}function Mi(ie,ae){if(!Pt(ie,"scrollCursorIntoView")){var ce=ie.display,de=ce.sizer.getBoundingClientRect(),pe=null;if(ae.top+de.top<0?pe=!0:ae.bottom+de.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!xt){var Ae=Ue("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ae.top-ce.viewOffset-ml(ie.display))+`px;
|
|
|
height: `+(ae.bottom-ae.top+vl(ie)+ce.barHeight)+`px;
|
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Ae),Ae.scrollIntoView(pe),ie.display.lineSpace.removeChild(Ae)}}}function Ji(ie,ae,ce,de){de==null&&(de=0);var pe;!ie.options.lineWrapping&&ae==ce&&(ae=ae.ch?Kt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ce=ae.sticky=="before"?Kt(ae.line,ae.ch+1,"before"):ae);for(var Ae=0;Ae<5;Ae++){var Re=!1,qe=fs(ie,ae),Qe=!ce||ce==ae?qe:fs(ie,ce);pe={left:Math.min(qe.left,Qe.left),top:Math.min(qe.top,Qe.top)-de,right:Math.max(qe.left,Qe.left),bottom:Math.max(qe.bottom,Qe.bottom)+de};var vt=Tr(ie,pe),nn=ie.doc.scrollTop,At=ie.doc.scrollLeft;if(vt.scrollTop!=null&&(ta(ie,vt.scrollTop),Math.abs(ie.doc.scrollTop-nn)>1&&(Re=!0)),vt.scrollLeft!=null&&(La(ie,vt.scrollLeft),Math.abs(ie.doc.scrollLeft-At)>1&&(Re=!0)),!Re)break}return pe}function jr(ie,ae){var ce=Tr(ie,ae);ce.scrollTop!=null&&ta(ie,ce.scrollTop),ce.scrollLeft!=null&&La(ie,ce.scrollLeft)}function Tr(ie,ae){var ce=ie.display,de=oh(ie.display);ae.top<0&&(ae.top=0);var pe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ce.scroller.scrollTop,Ae=Bh(ie),Re={};ae.bottom-ae.top>Ae&&(ae.bottom=ae.top+Ae);var qe=ie.doc.height+Zu(ce),Qe=ae.top<de,vt=ae.bottom>qe-de;if(ae.top<pe)Re.scrollTop=Qe?0:ae.top;else if(ae.bottom>pe+Ae){var nn=Math.min(ae.top,(vt?qe:ae.bottom)-Ae);nn!=pe&&(Re.scrollTop=nn)}var At=ie.options.fixedGutter?0:ce.gutters.offsetWidth,Hn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ce.scroller.scrollLeft-At,Dn=Ml(ie)-ce.gutters.offsetWidth,Ni=ae.right-ae.left>Dn;return Ni&&(ae.right=ae.left+Dn),ae.left<10?Re.scrollLeft=0:ae.left<Hn?Re.scrollLeft=Math.max(0,ae.left+At-(Ni?0:10)):ae.right>Dn+Hn-3&&(Re.scrollLeft=ae.right+(Ni?0:10)-Dn),Re}function Kr(ie,ae){ae!=null&&(Yo(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Vr(ie){Yo(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Hr(ie,ae,ce){(ae!=null||ce!=null)&&Yo(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ce!=null&&(ie.curOp.scrollTop=ce)}function zi(ie,ae){Yo(ie),ie.curOp.scrollToPos=ae}function Yo(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ce=ic(ie,ae.from),de=ic(ie,ae.to);jo(ie,ce,de,ae.margin)}}function jo(ie,ae,ce,de){var pe=Tr(ie,{left:Math.min(ae.left,ce.left),top:Math.min(ae.top,ce.top)-de,right:Math.max(ae.right,ce.right),bottom:Math.max(ae.bottom,ce.bottom)+de});Hr(ie,pe.scrollLeft,pe.scrollTop)}function ta(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(Ee||ir(ie,{top:ae}),ka(ie,ae,!0),Ee&&ir(ie),ni(ie,100))}function ka(ie,ae,ce){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ce)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function La(ie,ae,ce,de){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ce?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!de)&&(ie.doc.scrollLeft=ae,ao(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function Sa(ie){var ae=ie.display,ce=ae.gutters.offsetWidth,de=Math.round(ie.doc.height+Zu(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ce:0,docHeight:de,scrollHeight:de+vl(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ce}}var es=function(ie,ae,ce){this.cm=ce;var de=this.vert=Ue("div",[Ue("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=Ue("div",[Ue("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=pe.tabIndex=-1,ie(de),ie(pe),et(de,"scroll",function(){de.clientHeight&&ae(de.scrollTop,"vertical")}),et(pe,"scroll",function(){pe.clientWidth&&ae(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Xe&&pt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};es.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ce=ie.scrollHeight>ie.clientHeight+1,de=ie.nativeBarWidth;if(ce){this.vert.style.display="block",this.vert.style.bottom=ae?de+"px":"0";var pe=ie.viewHeight-(ae?de:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ce?de+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Ae=ie.viewWidth-ie.barLeft-(ce?de:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Ae)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(de==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ce?de:0,bottom:ae?de:0}},es.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},es.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},es.prototype.zeroWidthHack=function(){var ie=he&&!wt?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ge,this.disableVert=new Ge},es.prototype.enableZeroWidthBar=function(ie,ae,ce){ie.style.pointerEvents="auto";function de(){var pe=ie.getBoundingClientRect(),Ae=ce=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Ae!=ie?ie.style.pointerEvents="none":ae.set(1e3,de)}ae.set(1e3,de)},es.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var ma=function(){};ma.prototype.update=function(){return{bottom:0,right:0}},ma.prototype.setScrollLeft=function(){},ma.prototype.setScrollTop=function(){},ma.prototype.clear=function(){};function oa(ie,ae){ae||(ae=Sa(ie));var ce=ie.display.barWidth,de=ie.display.barHeight;xa(ie,ae);for(var pe=0;pe<4&&ce!=ie.display.barWidth||de!=ie.display.barHeight;pe++)ce!=ie.display.barWidth&&ie.options.lineWrapping&&si(ie),xa(ie,Sa(ie)),ce=ie.display.barWidth,de=ie.display.barHeight}function xa(ie,ae){var ce=ie.display,de=ce.scrollbars.update(ae);ce.sizer.style.paddingRight=(ce.barWidth=de.right)+"px",ce.sizer.style.paddingBottom=(ce.barHeight=de.bottom)+"px",ce.heightForcer.style.borderBottom=de.bottom+"px solid transparent",de.right&&de.bottom?(ce.scrollbarFiller.style.display="block",ce.scrollbarFiller.style.height=de.bottom+"px",ce.scrollbarFiller.style.width=de.right+"px"):ce.scrollbarFiller.style.display="",de.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ce.gutterFiller.style.display="block",ce.gutterFiller.style.height=de.bottom+"px",ce.gutterFiller.style.width=ae.gutterWidth+"px"):ce.gutterFiller.style.display=""}var Ua={native:es,null:ma};function ts(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Oe(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Ua[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),et(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ce){ce=="horizontal"?La(ie,ae):ta(ie,ae)},ie),ie.display.scrollbars.addClass&&_t(ie.display.wrapper,ie.display.scrollbars.addClass)}var Ra=0;function wa(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:++Ra},bs(ie.curOp)}function Ms(ie){var ae=ie.curOp;ae&&zo(ae,function(ce){for(var de=0;de<ce.ops.length;de++)ce.ops[de].cm.curOp=null;el(ce)})}function el(ie){for(var ae=ie.ops,ce=0;ce<ae.length;ce++)Je(ae[ce]);for(var de=0;de<ae.length;de++)tt(ae[de]);for(var pe=0;pe<ae.length;pe++)Tt(ae[pe]);for(var Ae=0;Ae<ae.length;Ae++)Ot(ae[Ae]);for(var Re=0;Re<ae.length;Re++)en(ae[Re])}function Je(ie){var ae=ie.cm,ce=ae.display;Ei(ae),ie.updateMaxLine&&ha(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ce.viewFrom||ie.scrollToPos.to.line>=ce.viewTo)||ce.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new _n(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function tt(ie){ie.updatedDisplay=ie.mustUpdate&&Yi(ie.cm,ie.update)}function Tt(ie){var ae=ie.cm,ce=ae.display;ie.updatedDisplay&&si(ae),ie.barMeasure=Sa(ae),ce.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Ih(ae,ce.maxLine,ce.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ce.scroller.clientWidth,ce.sizer.offsetLeft+ie.adjustWidthTo+vl(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ce.sizer.offsetLeft+ie.adjustWidthTo-Ml(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ce.input.prepareSelection())}function Ot(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&La(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var ce=ie.focus&&ie.focus==St();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ce),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&oa(ae,ie.barMeasure),ie.updatedDisplay&&Yr(ae,ie.barMeasure),ie.selectionChanged&&Un(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ce&&ui(ie.cm)}function en(ie){var ae=ie.cm,ce=ae.display,de=ae.doc;if(ie.updatedDisplay&&xi(ae,ie.update),ce.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ce.wheelStartX=ce.wheelStartY=null),ie.scrollTop!=null&&ka(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&La(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var pe=Ji(ae,Nn(de,ie.scrollToPos.from),Nn(de,ie.scrollToPos.to),ie.scrollToPos.margin);Mi(ae,pe)}var Ae=ie.maybeHiddenMarkers,Re=ie.maybeUnhiddenMarkers;if(Ae)for(var qe=0;qe<Ae.length;++qe)Ae[qe].lines.length||ht(Ae[qe],"hide");if(Re)for(var Qe=0;Qe<Re.length;++Qe)Re[Qe].lines.length&&ht(Re[Qe],"unhide");ce.wrapper.offsetHeight&&(de.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&ht(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function Vt(ie,ae){if(ie.curOp)return ae();wa(ie);try{return ae()}finally{Ms(ie)}}function Ln(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);wa(ie);try{return ae.apply(ie,arguments)}finally{Ms(ie)}}}function bn(ie){return function(){if(this.curOp)return ie.apply(this,arguments);wa(this);try{return ie.apply(this,arguments)}finally{Ms(this)}}}function wn(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);wa(ae);try{return ie.apply(this,arguments)}finally{Ms(ae)}}}function ni(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,sn(jn,ie))}function jn(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var ce=+new Date+ie.options.workTime,de=qi(ie,ae.highlightFrontier),pe=[];ae.iter(de.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Ae){if(de.line>=ie.display.viewFrom){var Re=Ae.styles,qe=Ae.text.length>ie.options.maxHighlightLength?pn(ae.mode,de.state):null,Qe=Qi(ie,Ae,de,!0);qe&&(de.state=qe),Ae.styles=Qe.styles;var vt=Ae.styleClasses,nn=Qe.classes;nn?Ae.styleClasses=nn:vt&&(Ae.styleClasses=null);for(var At=!Re||Re.length!=Ae.styles.length||vt!=nn&&(!vt||!nn||vt.bgClass!=nn.bgClass||vt.textClass!=nn.textClass),Hn=0;!At&&Hn<Re.length;++Hn)At=Re[Hn]!=Ae.styles[Hn];At&&pe.push(de.line),Ae.stateAfter=de.save(),de.nextLine()}else Ae.text.length<=ie.options.maxHighlightLength&&Bt(ie,Ae.text,de),Ae.stateAfter=de.line%5==0?de.save():null,de.nextLine();if(+new Date>ce)return ni(ie,ie.options.workDelay),!0}),ae.highlightFrontier=de.line,ae.modeFrontier=Math.max(ae.modeFrontier,de.line),pe.length&&Vt(ie,function(){for(var Ae=0;Ae<pe.length;Ae++)ea(ie,pe[Ae],"text")})}}var _n=function(ie,ae,ce){var de=ie.display;this.viewport=ae,this.visible=zn(de,ie.doc,ae),this.editorIsHidden=!de.wrapper.offsetWidth,this.wrapperHeight=de.wrapper.clientHeight,this.wrapperWidth=de.wrapper.clientWidth,this.oldDisplayWidth=Ml(ie),this.force=ce,this.dims=oc(ie),this.events=[]};_n.prototype.signal=function(ie,ae){Fn(ie,ae)&&this.events.push(arguments)},_n.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)ht.apply(null,this.events[ie])};function Ei(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=vl(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=vl(ie)+"px",ae.scrollbarsClipped=!0)}function Ci(ie){if(ie.hasFocus())return null;var ae=St();if(!ae||!Ht(ie.display.lineDiv,ae))return null;var ce={activeElt:ae};if(window.getSelection){var de=window.getSelection();de.anchorNode&&de.extend&&Ht(ie.display.lineDiv,de.anchorNode)&&(ce.anchorNode=de.anchorNode,ce.anchorOffset=de.anchorOffset,ce.focusNode=de.focusNode,ce.focusOffset=de.focusOffset)}return ce}function vi(ie){if(!(!ie||!ie.activeElt||ie.activeElt==St())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Ht(document.body,ie.anchorNode)&&Ht(document.body,ie.focusNode))){var ae=window.getSelection(),ce=document.createRange();ce.setEnd(ie.anchorNode,ie.anchorOffset),ce.collapse(!1),ae.removeAllRanges(),ae.addRange(ce),ae.extend(ie.focusNode,ie.focusOffset)}}function Yi(ie,ae){var ce=ie.display,de=ie.doc;if(ae.editorIsHidden)return Us(ie),!1;if(!ae.force&&ae.visible.from>=ce.viewFrom&&ae.visible.to<=ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo)&&ce.renderedView==ce.view&&_e(ie)==0)return!1;pr(ie)&&(Us(ie),ae.dims=oc(ie));var pe=de.first+de.size,Ae=Math.max(ae.visible.from-ie.options.viewportMargin,de.first),Re=Math.min(pe,ae.visible.to+ie.options.viewportMargin);ce.viewFrom<Ae&&Ae-ce.viewFrom<20&&(Ae=Math.max(de.first,ce.viewFrom)),ce.viewTo>Re&&ce.viewTo-Re<20&&(Re=Math.min(pe,ce.viewTo)),xn&&(Ae=tr(ie.doc,Ae),Re=Nr(ie.doc,Re));var qe=Ae!=ce.viewFrom||Re!=ce.viewTo||ce.lastWrapHeight!=ae.wrapperHeight||ce.lastWrapWidth!=ae.wrapperWidth;Ve(ie,Ae,Re),ce.viewOffset=ia(yn(ie.doc,ce.viewFrom)),ie.display.mover.style.top=ce.viewOffset+"px";var Qe=_e(ie);if(!qe&&Qe==0&&!ae.force&&ce.renderedView==ce.view&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo))return!1;var vt=Ci(ie);return Qe>4&&(ce.lineDiv.style.display="none"),_i(ie,ce.updateLineNumbers,ae.dims),Qe>4&&(ce.lineDiv.style.display=""),ce.renderedView=ce.view,vi(vt),ze(ce.cursorDiv),ze(ce.selectionDiv),ce.gutters.style.height=ce.sizer.style.minHeight=0,qe&&(ce.lastWrapHeight=ae.wrapperHeight,ce.lastWrapWidth=ae.wrapperWidth,ni(ie,400)),ce.updateLineNumbers=null,!0}function xi(ie,ae){for(var ce=ae.viewport,de=!0;;de=!1){if(!de||!ie.options.lineWrapping||ae.oldDisplayWidth==Ml(ie)){if(ce&&ce.top!=null&&(ce={top:Math.min(ie.doc.height+Zu(ie.display)-Bh(ie),ce.top)}),ae.visible=zn(ie.display,ie.doc,ce),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else de&&(ae.visible=zn(ie.display,ie.doc,ce));if(!Yi(ie,ae))break;si(ie);var pe=Sa(ie);Rt(ie),oa(ie,pe),Yr(ie,pe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function ir(ie,ae){var ce=new _n(ie,ae);if(Yi(ie,ce)){si(ie),xi(ie,ce);var de=Sa(ie);Rt(ie),oa(ie,de),Yr(ie,de),ce.finish()}}function _i(ie,ae,ce){var de=ie.display,pe=ie.options.lineNumbers,Ae=de.lineDiv,Re=Ae.firstChild;function qe(Ni){var Bi=Ni.nextSibling;return Fe&&he&&ie.display.currentWheelTarget==Ni?Ni.style.display="none":Ni.parentNode.removeChild(Ni),Bi}for(var Qe=de.view,vt=de.viewFrom,nn=0;nn<Qe.length;nn++){var At=Qe[nn];if(!At.hidden)if(!At.node||At.node.parentNode!=Ae){var Hn=uu(ie,At,vt,ce);Ae.insertBefore(Hn,Re)}else{for(;Re!=At.node;)Re=qe(Re);var Dn=pe&&ae!=null&&ae<=vt&&At.lineNumber;At.changes&&(tn(At.changes,"gutter")>-1&&(Dn=!1),Ss(ie,At,vt,ce)),Dn&&(ze(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(Oi(ie.options,vt)))),Re=At.node.nextSibling}vt+=At.size}for(;Re;)Re=qe(Re)}function ur(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function Yr(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+vl(ie)+"px"}function ao(ie){var ae=ie.display,ce=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var de=Bd(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,pe=ae.gutters.offsetWidth,Ae=de+"px",Re=0;Re<ce.length;Re++)if(!ce[Re].hidden){ie.options.fixedGutter&&(ce[Re].gutter&&(ce[Re].gutter.style.left=Ae),ce[Re].gutterBackground&&(ce[Re].gutterBackground.style.left=Ae));var qe=ce[Re].alignable;if(qe)for(var Qe=0;Qe<qe.length;Qe++)qe[Qe].style.left=Ae}ie.options.fixedGutter&&(ae.gutters.style.left=de+pe+"px")}}function pr(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ce=Oi(ie.options,ae.first+ae.size-1),de=ie.display;if(ce.length!=de.lineNumChars){var pe=de.measure.appendChild(Ue("div",[Ue("div",ce)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ae=pe.firstChild.offsetWidth,Re=pe.offsetWidth-Ae;return de.lineGutter.style.width="",de.lineNumInnerWidth=Math.max(Ae,de.lineGutter.offsetWidth-Re)+1,de.lineNumWidth=de.lineNumInnerWidth+Re,de.lineNumChars=de.lineNumInnerWidth?ce.length:-1,de.lineGutter.style.width=de.lineNumWidth+"px",ur(ie.display),!0}return!1}function Ar(ie,ae){for(var ce=[],de=!1,pe=0;pe<ie.length;pe++){var Ae=ie[pe],Re=null;if(typeof Ae!="string"&&(Re=Ae.style,Ae=Ae.className),Ae=="CodeMirror-linenumbers")if(ae)de=!0;else continue;ce.push({className:Ae,style:Re})}return ae&&!de&&ce.push({className:"CodeMirror-linenumbers",style:null}),ce}function bo(ie){var ae=ie.gutters,ce=ie.gutterSpecs;ze(ae),ie.lineGutter=null;for(var de=0;de<ce.length;++de){var pe=ce[de],Ae=pe.className,Re=pe.style,qe=ae.appendChild(Ue("div",null,"CodeMirror-gutter "+Ae));Re&&(qe.style.cssText=Re),Ae=="CodeMirror-linenumbers"&&(ie.lineGutter=qe,qe.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ce.length?"":"none",ur(ie)}function cr(ie){bo(ie.display),as(ie),ao(ie)}function Or(ie,ae,ce,de){var pe=this;this.input=ce,pe.scrollbarFiller=Ue("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=Ue("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=ut("div",null,"CodeMirror-code"),pe.selectionDiv=Ue("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=Ue("div",null,"CodeMirror-cursors"),pe.measure=Ue("div",null,"CodeMirror-measure"),pe.lineMeasure=Ue("div",null,"CodeMirror-measure"),pe.lineSpace=ut("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Ae=ut("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=Ue("div",[Ae],null,"position: relative"),pe.sizer=Ue("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=Ue("div",null,null,"position: absolute; height: "+Wn+"px; width: 1px;"),pe.gutters=Ue("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=Ue("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=Ue("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),Xe&&pt<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!Fe&&!(Ee&&ne)&&(pe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(pe.wrapper):ie(pe.wrapper)),pe.viewFrom=pe.viewTo=ae.first,pe.reportedViewFrom=pe.reportedViewTo=ae.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=Ar(de.gutters,de.lineNumbers),bo(pe),ce.init(pe)}var mr=0,Zi=null;Xe?Zi=-.53:Ee?Zi=15:Ct?Zi=-.7:gt&&(Zi=-1/3);function or(ie){var ae=ie.wheelDeltaX,ce=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),ce==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ce=ie.detail:ce==null&&(ce=ie.wheelDelta),{x:ae,y:ce}}function Rr(ie){var ae=or(ie);return ae.x*=Zi,ae.y*=Zi,ae}function so(ie,ae){var ce=or(ae),de=ce.x,pe=ce.y,Ae=ie.display,Re=Ae.scroller,qe=Re.scrollWidth>Re.clientWidth,Qe=Re.scrollHeight>Re.clientHeight;if(de&&qe||pe&&Qe){if(pe&&he&&Fe){e:for(var vt=ae.target,nn=Ae.view;vt!=Re;vt=vt.parentNode)for(var At=0;At<nn.length;At++)if(nn[At].node==vt){ie.display.currentWheelTarget=vt;break e}}if(de&&!Ee&&!nt&&Zi!=null){pe&&Qe&&ta(ie,Math.max(0,Re.scrollTop+pe*Zi)),La(ie,Math.max(0,Re.scrollLeft+de*Zi)),(!pe||pe&&Qe)&&ci(ae),Ae.wheelStartX=null;return}if(pe&&Zi!=null){var Hn=pe*Zi,Dn=ie.doc.scrollTop,Ni=Dn+Ae.wrapper.clientHeight;Hn<0?Dn=Math.max(0,Dn+Hn-50):Ni=Math.min(ie.doc.height,Ni+Hn+50),ir(ie,{top:Dn,bottom:Ni})}mr<20&&(Ae.wheelStartX==null?(Ae.wheelStartX=Re.scrollLeft,Ae.wheelStartY=Re.scrollTop,Ae.wheelDX=de,Ae.wheelDY=pe,setTimeout(function(){if(Ae.wheelStartX!=null){var Bi=Re.scrollLeft-Ae.wheelStartX,er=Re.scrollTop-Ae.wheelStartY,Er=er&&Ae.wheelDY&&er/Ae.wheelDY||Bi&&Ae.wheelDX&&Bi/Ae.wheelDX;Ae.wheelStartX=Ae.wheelStartY=null,Er&&(Zi=(Zi*mr+Er)/(mr+1),++mr)}},200)):(Ae.wheelDX+=de,Ae.wheelDY+=pe))}}var uo=function(ie,ae){this.ranges=ie,this.primIndex=ae};uo.prototype.primary=function(){return this.ranges[this.primIndex]},uo.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var ce=this.ranges[ae],de=ie.ranges[ae];if(!Wt(ce.anchor,de.anchor)||!Wt(ce.head,de.head))return!1}return!0},uo.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new ar(on(this.ranges[ae].anchor),on(this.ranges[ae].head));return new uo(ie,this.primIndex)},uo.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},uo.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ce=0;ce<this.ranges.length;ce++){var de=this.ranges[ce];if(Sn(ae,de.from())>=0&&Sn(ie,de.to())<=0)return ce}return-1};var ar=function(ie,ae){this.anchor=ie,this.head=ae};ar.prototype.from=function(){return un(this.anchor,this.head)},ar.prototype.to=function(){return gn(this.anchor,this.head)},ar.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Eo(ie,ae,ce){var de=ie&&ie.options.selectionsMayTouch,pe=ae[ce];ae.sort(function(Hn,Dn){return Sn(Hn.from(),Dn.from())}),ce=tn(ae,pe);for(var Ae=1;Ae<ae.length;Ae++){var Re=ae[Ae],qe=ae[Ae-1],Qe=Sn(qe.to(),Re.from());if(de&&!Re.empty()?Qe>0:Qe>=0){var vt=un(qe.from(),Re.from()),nn=gn(qe.to(),Re.to()),At=qe.empty()?Re.from()==Re.head:qe.from()==qe.head;Ae<=ce&&--ce,ae.splice(--Ae,2,new ar(At?nn:vt,At?vt:nn))}}return new uo(ae,ce)}function Io(ie,ae){return new uo([new ar(ie,ae||ie)],0)}function Zo(ie){return ie.text?Kt(ie.from.line+ie.text.length-1,mt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Ho(ie,ae){if(Sn(ie,ae.from)<0)return ie;if(Sn(ie,ae.to)<=0)return Zo(ae);var ce=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,de=ie.ch;return ie.line==ae.to.line&&(de+=Zo(ae).ch-ae.to.ch),Kt(ce,de)}function za(ie,ae){for(var ce=[],de=0;de<ie.sel.ranges.length;de++){var pe=ie.sel.ranges[de];ce.push(new ar(Ho(pe.anchor,ae),Ho(pe.head,ae)))}return Eo(ie.cm,ce,ie.sel.primIndex)}function qo(ie,ae,ce){return ie.line==ae.line?Kt(ce.line,ie.ch-ae.ch+ce.ch):Kt(ce.line+(ie.line-ae.line),ie.ch)}function wo(ie,ae,ce){for(var de=[],pe=Kt(ie.first,0),Ae=pe,Re=0;Re<ae.length;Re++){var qe=ae[Re],Qe=qo(qe.from,pe,Ae),vt=qo(Zo(qe),pe,Ae);if(pe=qe.to,Ae=vt,ce=="around"){var nn=ie.sel.ranges[Re],At=Sn(nn.head,nn.anchor)<0;de[Re]=new ar(At?vt:Qe,At?Qe:vt)}else de[Re]=new ar(Qe,Qe)}return new uo(de,ie.sel.primIndex)}function Jr(ie){ie.doc.mode=an(ie.options,ie.doc.modeOption),po(ie)}function po(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,ni(ie,100),ie.state.modeGen++,ie.curOp&&as(ie)}function Ta(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&mt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Pa(ie,ae,ce,de){function pe(ro){return ce?ce[ro]:null}function Ae(ro,Wr,So){Ia(ro,Wr,So,de),Wi(ro,"change",ro,ae)}function Re(ro,Wr){for(var So=[],Jo=ro;Jo<Wr;++Jo)So.push(new Oa(vt[Jo],pe(Jo),de));return So}var qe=ae.from,Qe=ae.to,vt=ae.text,nn=yn(ie,qe.line),At=yn(ie,Qe.line),Hn=mt(vt),Dn=pe(vt.length-1),Ni=Qe.line-qe.line;if(ae.full)ie.insert(0,Re(0,vt.length)),ie.remove(vt.length,ie.size-vt.length);else if(Ta(ie,ae)){var Bi=Re(0,vt.length-1);Ae(At,At.text,Dn),Ni&&ie.remove(qe.line,Ni),Bi.length&&ie.insert(qe.line,Bi)}else if(nn==At)if(vt.length==1)Ae(nn,nn.text.slice(0,qe.ch)+Hn+nn.text.slice(Qe.ch),Dn);else{var er=Re(1,vt.length-1);er.push(new Oa(Hn+nn.text.slice(Qe.ch),Dn,de)),Ae(nn,nn.text.slice(0,qe.ch)+vt[0],pe(0)),ie.insert(qe.line+1,er)}else if(vt.length==1)Ae(nn,nn.text.slice(0,qe.ch)+vt[0]+At.text.slice(Qe.ch),pe(0)),ie.remove(qe.line+1,Ni);else{Ae(nn,nn.text.slice(0,qe.ch)+vt[0],pe(0)),Ae(At,Hn+At.text.slice(Qe.ch),Dn);var Er=Re(1,vt.length-1);Ni>1&&ie.remove(qe.line+1,Ni-1),ie.insert(qe.line+1,Er)}Wi(ie,"change",ie,ae)}function Ga(ie,ae,ce){function de(pe,Ae,Re){if(pe.linked)for(var qe=0;qe<pe.linked.length;++qe){var Qe=pe.linked[qe];if(Qe.doc!=Ae){var vt=Re&&Qe.sharedHist;ce&&!vt||(ae(Qe.doc,vt),de(Qe.doc,pe,vt))}}}de(ie,null,!0)}function vo(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,mo(ie),Jr(ie),io(ie),ie.options.lineWrapping||ha(ie),ie.options.mode=ae.modeOption,as(ie)}function io(ie){(ie.doc.direction=="rtl"?_t:Oe)(ie.display.lineDiv,"CodeMirror-rtl")}function Po(ie){Vt(ie,function(){io(ie),as(ie)})}function Ur(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 Br(ie,ae){var ce={from:on(ae.from),to:Zo(ae),text:Yn(ie,ae.from,ae.to)};return sl(ie,ce,ae.from.line,ae.to.line+1),Ga(ie,function(de){return sl(de,ce,ae.from.line,ae.to.line+1)},!0),ce}function Ai(ie){for(;ie.length;){var ae=mt(ie);if(ae.ranges)ie.pop();else break}}function xr(ie,ae){if(ae)return Ai(ie.done),mt(ie.done);if(ie.done.length&&!mt(ie.done).ranges)return mt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),mt(ie.done)}function ko(ie,ae,ce,de){var pe=ie.history;pe.undone.length=0;var Ae=+new Date,Re,qe;if((pe.lastOp==de||pe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&pe.lastModTime>Ae-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Re=xr(pe,pe.lastOp==de)))qe=mt(Re.changes),Sn(ae.from,ae.to)==0&&Sn(ae.from,qe.to)==0?qe.to=Zo(ae):Re.changes.push(Br(ie,ae));else{var Qe=mt(pe.done);for((!Qe||!Qe.ranges)&&As(ie.sel,pe.done),Re={changes:[Br(ie,ae)],generation:pe.generation},pe.done.push(Re);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(ce),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Ae,pe.lastOp=pe.lastSelOp=de,pe.lastOrigin=pe.lastSelOrigin=ae.origin,qe||ht(ie,"historyAdded")}function Uo(ie,ae,ce,de){var pe=ae.charAt(0);return pe=="*"||pe=="+"&&ce.ranges.length==de.ranges.length&&ce.somethingSelected()==de.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Xs(ie,ae,ce,de){var pe=ie.history,Ae=de&&de.origin;ce==pe.lastSelOp||Ae&&pe.lastSelOrigin==Ae&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Ae||Uo(ie,Ae,mt(pe.done),ae))?pe.done[pe.done.length-1]=ae:As(ae,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Ae,pe.lastSelOp=ce,de&&de.clearRedo!==!1&&Ai(pe.undone)}function As(ie,ae){var ce=mt(ae);ce&&ce.ranges&&ce.equals(ie)||ae.push(ie)}function sl(ie,ae,ce,de){var pe=ae["spans_"+ie.id],Ae=0;ie.iter(Math.max(ie.first,ce),Math.min(ie.first+ie.size,de),function(Re){Re.markedSpans&&((pe||(pe=ae["spans_"+ie.id]={}))[Ae]=Re.markedSpans),++Ae})}function ya(ie){if(!ie)return null;for(var ae,ce=0;ce<ie.length;++ce)ie[ce].marker.explicitlyCleared?ae||(ae=ie.slice(0,ce)):ae&&ae.push(ie[ce]);return ae?ae.length?ae:null:ie}function Da(ie,ae){var ce=ae["spans_"+ie.id];if(!ce)return null;for(var de=[],pe=0;pe<ae.text.length;++pe)de.push(ya(ce[pe]));return de}function ho(ie,ae){var ce=Da(ie,ae),de=nr(ie,ae);if(!ce)return de;if(!de)return ce;for(var pe=0;pe<ce.length;++pe){var Ae=ce[pe],Re=de[pe];if(Ae&&Re)e:for(var qe=0;qe<Re.length;++qe){for(var Qe=Re[qe],vt=0;vt<Ae.length;++vt)if(Ae[vt].marker==Qe.marker)continue e;Ae.push(Qe)}else Re&&(ce[pe]=Re)}return ce}function Bs(ie,ae,ce){for(var de=[],pe=0;pe<ie.length;++pe){var Ae=ie[pe];if(Ae.ranges){de.push(ce?uo.prototype.deepCopy.call(Ae):Ae);continue}var Re=Ae.changes,qe=[];de.push({changes:qe});for(var Qe=0;Qe<Re.length;++Qe){var vt=Re[Qe],nn=void 0;if(qe.push({from:vt.from,to:vt.to,text:vt.text}),ae)for(var At in vt)(nn=At.match(/^spans_(\d+)$/))&&tn(ae,Number(nn[1]))>-1&&(mt(qe)[At]=vt[At],delete vt[At])}}return de}function ll(ie,ae,ce,de){if(de){var pe=ie.anchor;if(ce){var Ae=Sn(ae,pe)<0;Ae!=Sn(ce,pe)<0?(pe=ae,ae=ce):Ae!=Sn(ae,ce)<0&&(ae=ce)}return new ar(pe,ae)}else return new ar(ce||ae,ae)}function Ma(ie,ae,ce,de,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),Xa(ie,new uo([ll(ie.sel.primary(),ae,ce,pe)],0),de)}function ja(ie,ae,ce){for(var de=[],pe=ie.cm&&(ie.cm.display.shift||ie.extend),Ae=0;Ae<ie.sel.ranges.length;Ae++)de[Ae]=ll(ie.sel.ranges[Ae],ae[Ae],null,pe);var Re=Eo(ie.cm,de,ie.sel.primIndex);Xa(ie,Re,ce)}function Ka(ie,ae,ce,de){var pe=ie.sel.ranges.slice(0);pe[ae]=ce,Xa(ie,Eo(ie.cm,pe,ie.sel.primIndex),de)}function us(ie,ae,ce,de){Xa(ie,Io(ae,ce),de)}function Os(ie,ae,ce){var de={ranges:ae.ranges,update:function(pe){this.ranges=[];for(var Ae=0;Ae<pe.length;Ae++)this.ranges[Ae]=new ar(Nn(ie,pe[Ae].anchor),Nn(ie,pe[Ae].head))},origin:ce&&ce.origin};return ht(ie,"beforeSelectionChange",ie,de),ie.cm&&ht(ie.cm,"beforeSelectionChange",ie.cm,de),de.ranges!=ae.ranges?Eo(ie.cm,de.ranges,de.ranges.length-1):ae}function na(ie,ae,ce){var de=ie.history.done,pe=mt(de);pe&&pe.ranges?(de[de.length-1]=ae,Hs(ie,ae,ce)):Xa(ie,ae,ce)}function Xa(ie,ae,ce){Hs(ie,ae,ce),Xs(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ce)}function Hs(ie,ae,ce){(Fn(ie,"beforeSelectionChange")||ie.cm&&Fn(ie.cm,"beforeSelectionChange"))&&(ae=Os(ie,ae,ce));var de=ce&&ce.bias||(Sn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ba(ie,gs(ie,ae,de,!0)),!(ce&&ce.scroll===!1)&&ie.cm&&Vr(ie.cm)}function Ba(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,ln(ie.cm)),Wi(ie,"cursorActivity",ie))}function yo(ie){Ba(ie,gs(ie,ie.sel,null,!1))}function gs(ie,ae,ce,de){for(var pe,Ae=0;Ae<ae.ranges.length;Ae++){var Re=ae.ranges[Ae],qe=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Ae],Qe=bu(ie,Re.anchor,qe&&qe.anchor,ce,de),vt=bu(ie,Re.head,qe&&qe.head,ce,de);(pe||Qe!=Re.anchor||vt!=Re.head)&&(pe||(pe=ae.ranges.slice(0,Ae)),pe[Ae]=new ar(Qe,vt))}return pe?Eo(ie.cm,pe,ae.primIndex):ae}function Is(ie,ae,ce,de,pe){var Ae=yn(ie,ae.line);if(Ae.markedSpans)for(var Re=0;Re<Ae.markedSpans.length;++Re){var qe=Ae.markedSpans[Re],Qe=qe.marker,vt="selectLeft"in Qe?!Qe.selectLeft:Qe.inclusiveLeft,nn="selectRight"in Qe?!Qe.selectRight:Qe.inclusiveRight;if((qe.from==null||(vt?qe.from<=ae.ch:qe.from<ae.ch))&&(qe.to==null||(nn?qe.to>=ae.ch:qe.to>ae.ch))){if(pe&&(ht(Qe,"beforeCursorEnter"),Qe.explicitlyCleared))if(Ae.markedSpans){--Re;continue}else break;if(!Qe.atomic)continue;if(ce){var At=Qe.find(de<0?1:-1),Hn=void 0;if((de<0?nn:vt)&&(At=$l(ie,At,-de,At&&At.line==ae.line?Ae:null)),At&&At.line==ae.line&&(Hn=Sn(At,ce))&&(de<0?Hn<0:Hn>0))return Is(ie,At,ae,de,pe)}var Dn=Qe.find(de<0?-1:1);return(de<0?vt:nn)&&(Dn=$l(ie,Dn,de,Dn.line==ae.line?Ae:null)),Dn?Is(ie,Dn,ae,de,pe):null}}return ae}function bu(ie,ae,ce,de,pe){var Ae=de||1,Re=Is(ie,ae,ce,Ae,pe)||!pe&&Is(ie,ae,ce,Ae,!0)||Is(ie,ae,ce,-Ae,pe)||!pe&&Is(ie,ae,ce,-Ae,!0);return Re||(ie.cantEdit=!0,Kt(ie.first,0))}function $l(ie,ae,ce,de){return ce<0&&ae.ch==0?ae.line>ie.first?Nn(ie,Kt(ae.line-1)):null:ce>0&&ae.ch==(de||yn(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Kt(ae.line+1,0):null:new Kt(ae.line,ae.ch+ce)}function Ha(ie){ie.setSelection(Kt(ie.firstLine(),0),Kt(ie.lastLine()),Dt)}function ul(ie,ae,ce){var de={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return de.canceled=!0}};return ce&&(de.update=function(pe,Ae,Re,qe){pe&&(de.from=Nn(ie,pe)),Ae&&(de.to=Nn(ie,Ae)),Re&&(de.text=Re),qe!==void 0&&(de.origin=qe)}),ht(ie,"beforeChange",ie,de),ie.cm&&ht(ie.cm,"beforeChange",ie.cm,de),de.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:de.from,to:de.to,text:de.text,origin:de.origin}}function ss(ie,ae,ce){if(ie.cm){if(!ie.cm.curOp)return Ln(ie.cm,ss)(ie,ae,ce);if(ie.cm.state.suppressEdits)return}if(!((Fn(ie,"beforeChange")||ie.cm&&Fn(ie.cm,"beforeChange"))&&(ae=ul(ie,ae,!0),!ae))){var de=Gr&&!ce&&Lo(ie,ae.from,ae.to);if(de)for(var pe=de.length-1;pe>=0;--pe)ns(ie,{from:de[pe].from,to:de[pe].to,text:pe?[""]:ae.text,origin:ae.origin});else ns(ie,ae)}}function ns(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Sn(ae.from,ae.to)==0)){var ce=za(ie,ae);ko(ie,ae,ce,ie.cm?ie.cm.curOp.id:NaN),Ol(ie,ae,ce,nr(ie,ae));var de=[];Ga(ie,function(pe,Ae){!Ae&&tn(de,pe.history)==-1&&(Ja(pe.history,ae),de.push(pe.history)),Ol(pe,ae,null,nr(pe,ae))})}}function du(ie,ae,ce){var de=ie.cm&&ie.cm.state.suppressEdits;if(!(de&&!ce)){for(var pe=ie.history,Ae,Re=ie.sel,qe=ae=="undo"?pe.done:pe.undone,Qe=ae=="undo"?pe.undone:pe.done,vt=0;vt<qe.length&&(Ae=qe[vt],!(ce?Ae.ranges&&!Ae.equals(ie.sel):!Ae.ranges));vt++);if(vt!=qe.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Ae=qe.pop(),Ae.ranges){if(As(Ae,Qe),ce&&!Ae.equals(ie.sel)){Xa(ie,Ae,{clearRedo:!1});return}Re=Ae}else if(de){qe.push(Ae);return}else break;var nn=[];As(Re,Qe),Qe.push({changes:nn,generation:pe.generation}),pe.generation=Ae.generation||++pe.maxGeneration;for(var At=Fn(ie,"beforeChange")||ie.cm&&Fn(ie.cm,"beforeChange"),Hn=function(Bi){var er=Ae.changes[Bi];if(er.origin=ae,At&&!ul(ie,er,!1))return qe.length=0,{};nn.push(Br(ie,er));var Er=Bi?za(ie,er):mt(qe);Ol(ie,er,Er,ho(ie,er)),!Bi&&ie.cm&&ie.cm.scrollIntoView({from:er.from,to:Zo(er)});var ro=[];Ga(ie,function(Wr,So){!So&&tn(ro,Wr.history)==-1&&(Ja(Wr.history,er),ro.push(Wr.history)),Ol(Wr,er,null,ho(Wr,er))})},Dn=Ae.changes.length-1;Dn>=0;--Dn){var Ni=Hn(Dn);if(Ni)return Ni.v}}}}function ah(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new uo(Xn(ie.sel.ranges,function(pe){return new ar(Kt(pe.anchor.line+ae,pe.anchor.ch),Kt(pe.head.line+ae,pe.head.ch))}),ie.sel.primIndex),ie.cm)){as(ie.cm,ie.first,ie.first-ae,ae);for(var ce=ie.cm.display,de=ce.viewFrom;de<ce.viewTo;de++)ea(ie.cm,de,"gutter")}}function Ol(ie,ae,ce,de){if(ie.cm&&!ie.cm.curOp)return Ln(ie.cm,Ol)(ie,ae,ce,de);if(ae.to.line<ie.first){ah(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var pe=ae.text.length-1-(ie.first-ae.from.line);ah(ie,pe),ae={from:Kt(ie.first,0),to:Kt(ae.to.line+pe,ae.to.ch),text:[mt(ae.text)],origin:ae.origin}}var Ae=ie.lastLine();ae.to.line>Ae&&(ae={from:ae.from,to:Kt(Ae,yn(ie,Ae).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Yn(ie,ae.from,ae.to),ce||(ce=za(ie,ae)),ie.cm?Ku(ie.cm,ae,de):Pa(ie,ae,de),Hs(ie,ce,Dt),ie.cantEdit&&bu(ie,Kt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ku(ie,ae,ce){var de=ie.doc,pe=ie.display,Ae=ae.from,Re=ae.to,qe=!1,Qe=Ae.line;ie.options.lineWrapping||(Qe=bt(eo(yn(de,Ae.line))),de.iter(Qe,Re.line+1,function(Dn){if(Dn==pe.maxLine)return qe=!0,!0})),de.sel.contains(ae.from,ae.to)>-1&&ln(ie),Pa(de,ae,ce,Cs(ie)),ie.options.lineWrapping||(de.iter(Qe,Ae.line+ae.text.length,function(Dn){var Ni=Za(Dn);Ni>pe.maxLineLength&&(pe.maxLine=Dn,pe.maxLineLength=Ni,pe.maxLineChanged=!0,qe=!1)}),qe&&(ie.curOp.updateMaxLine=!0)),Ri(de,Ae.line),ni(ie,400);var vt=ae.text.length-(Re.line-Ae.line)-1;ae.full?as(ie):Ae.line==Re.line&&ae.text.length==1&&!Ta(ie.doc,ae)?ea(ie,Ae.line,"text"):as(ie,Ae.line,Re.line+1,vt);var nn=Fn(ie,"changes"),At=Fn(ie,"change");if(At||nn){var Hn={from:Ae,to:Re,text:ae.text,removed:ae.removed,origin:ae.origin};At&&Wi(ie,"change",ie,Hn),nn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Hn)}ie.display.selForContextMenu=null}function Vu(ie,ae,ce,de,pe){var Ae;de||(de=ce),Sn(de,ce)<0&&(Ae=[de,ce],ce=Ae[0],de=Ae[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),ss(ie,{from:ce,to:de,text:ae,origin:pe})}function ql(ie,ae,ce,de){ce<ie.line?ie.line+=de:ae<ie.line&&(ie.line=ae,ie.ch=0)}function Ca(ie,ae,ce,de){for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],Re=!0;if(Ae.ranges){Ae.copied||(Ae=ie[pe]=Ae.deepCopy(),Ae.copied=!0);for(var qe=0;qe<Ae.ranges.length;qe++)ql(Ae.ranges[qe].anchor,ae,ce,de),ql(Ae.ranges[qe].head,ae,ce,de);continue}for(var Qe=0;Qe<Ae.changes.length;++Qe){var vt=Ae.changes[Qe];if(ce<vt.from.line)vt.from=Kt(vt.from.line+de,vt.from.ch),vt.to=Kt(vt.to.line+de,vt.to.ch);else if(ae<=vt.to.line){Re=!1;break}}Re||(ie.splice(0,pe+1),pe=0)}}function Ja(ie,ae){var ce=ae.from.line,de=ae.to.line,pe=ae.text.length-(de-ce)-1;Ca(ie.done,ce,de,pe),Ca(ie.undone,ce,de,pe)}function Ws(ie,ae,ce,de){var pe=ae,Ae=ae;return typeof ae=="number"?Ae=yn(ie,En(ie,ae)):pe=bt(ae),pe==null?null:(de(Ae,pe)&&ie.cm&&ea(ie.cm,pe,ce),Ae)}function is(ie){this.lines=ie,this.parent=null;for(var ae=0,ce=0;ce<ie.length;++ce)ie[ce].parent=this,ae+=ie[ce].height;this.height=ae}is.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var ce=ie,de=ie+ae;ce<de;++ce){var pe=this.lines[ce];this.height-=pe.height,ys(pe),Wi(pe,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,ce){this.height+=ce,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var de=0;de<ae.length;++de)ae[de].parent=this},iterN:function(ie,ae,ce){for(var de=ie+ae;ie<de;++ie)if(ce(this.lines[ie]))return!0}};function ba(ie){this.children=ie;for(var ae=0,ce=0,de=0;de<ie.length;++de){var pe=ie[de];ae+=pe.chunkSize(),ce+=pe.height,pe.parent=this}this.size=ae,this.height=ce,this.parent=null}ba.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var ce=0;ce<this.children.length;++ce){var de=this.children[ce],pe=de.chunkSize();if(ie<pe){var Ae=Math.min(ae,pe-ie),Re=de.height;if(de.removeInner(ie,Ae),this.height-=Re-de.height,pe==Ae&&(this.children.splice(ce--,1),de.parent=null),(ae-=Ae)==0)break;ie=0}else ie-=pe}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof is))){var qe=[];this.collapse(qe),this.children=[new is(qe)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,ce){this.size+=ae.length,this.height+=ce;for(var de=0;de<this.children.length;++de){var pe=this.children[de],Ae=pe.chunkSize();if(ie<=Ae){if(pe.insertInner(ie,ae,ce),pe.lines&&pe.lines.length>50){for(var Re=pe.lines.length%25+25,qe=Re;qe<pe.lines.length;){var Qe=new is(pe.lines.slice(qe,qe+=25));pe.height-=Qe.height,this.children.splice(++de,0,Qe),Qe.parent=this}pe.lines=pe.lines.slice(0,Re),this.maybeSpill()}break}ie-=Ae}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ce=new ba(ae);if(ie.parent){ie.size-=ce.size,ie.height-=ce.height;var pe=tn(ie.parent.children,ie);ie.parent.children.splice(pe+1,0,ce)}else{var de=new ba(ie.children);de.parent=ie,ie.children=[de,ce],ie=de}ce.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ce){for(var de=0;de<this.children.length;++de){var pe=this.children[de],Ae=pe.chunkSize();if(ie<Ae){var Re=Math.min(ae,Ae-ie);if(pe.iterN(ie,Re,ce))return!0;if((ae-=Re)==0)break;ie=0}else ie-=Ae}}};var Zs=function(ie,ae,ce){if(ce)for(var de in ce)ce.hasOwnProperty(de)&&(this[de]=ce[de]);this.doc=ie,this.node=ae};Zs.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,ce=this.line,de=bt(ce);if(!(de==null||!ae)){for(var pe=0;pe<ae.length;++pe)ae[pe]==this&&ae.splice(pe--,1);ae.length||(ce.widgets=null);var Ae=El(this);Cn(ce,Math.max(0,ce.height-Ae)),ie&&(Vt(ie,function(){Sl(ie,ce,-Ae),ea(ie,de,"widget")}),Wi(ie,"lineWidgetCleared",ie,this,de))}},Zs.prototype.changed=function(){var ie=this,ae=this.height,ce=this.doc.cm,de=this.line;this.height=null;var pe=El(this)-ae;pe&&(ei(this.doc,de)||Cn(de,de.height+pe),ce&&Vt(ce,function(){ce.curOp.forceUpdate=!0,Sl(ce,de,pe),Wi(ce,"lineWidgetChanged",ce,ie,bt(de))}))},oi(Zs);function Sl(ie,ae,ce){ia(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Kr(ie,ce)}function Eu(ie,ae,ce,de){var pe=new Zs(ie,ce,de),Ae=ie.cm;return Ae&&pe.noHScroll&&(Ae.display.alignWidgets=!0),Ws(ie,ae,"widget",function(Re){var qe=Re.widgets||(Re.widgets=[]);if(pe.insertAt==null?qe.push(pe):qe.splice(Math.min(qe.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=Re,Ae&&!ei(ie,Re)){var Qe=ia(Re)<ie.scrollTop;Cn(Re,Re.height+El(pe)),Qe&&Kr(Ae,pe.height),Ae.curOp.forceUpdate=!0}return!0}),Ae&&Wi(Ae,"lineWidgetAdded",Ae,pe,typeof ae=="number"?ae:bt(ae)),pe}var ac=0,Yt=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++ac};Yt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&wa(ie),Fn(this,"clear")){var ce=this.find();ce&&Wi(this,"clear",ce.from,ce.to)}for(var de=null,pe=null,Ae=0;Ae<this.lines.length;++Ae){var Re=this.lines[Ae],qe=_o(Re.markedSpans,this);ie&&!this.collapsed?ea(ie,bt(Re),"text"):ie&&(qe.to!=null&&(pe=bt(Re)),qe.from!=null&&(de=bt(Re))),Re.markedSpans=oo(Re.markedSpans,qe),qe.from==null&&this.collapsed&&!ei(this.doc,Re)&&ie&&Cn(Re,oh(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Qe=0;Qe<this.lines.length;++Qe){var vt=eo(this.lines[Qe]),nn=Za(vt);nn>ie.display.maxLineLength&&(ie.display.maxLine=vt,ie.display.maxLineLength=nn,ie.display.maxLineChanged=!0)}de!=null&&ie&&this.collapsed&&as(ie,de,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&yo(ie.doc)),ie&&Wi(ie,"markerCleared",ie,this,de,pe),ae&&Ms(ie),this.parent&&this.parent.clear()}},Yt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ce,de,pe=0;pe<this.lines.length;++pe){var Ae=this.lines[pe],Re=_o(Ae.markedSpans,this);if(Re.from!=null&&(ce=Kt(ae?Ae:bt(Ae),Re.from),ie==-1))return ce;if(Re.to!=null&&(de=Kt(ae?Ae:bt(Ae),Re.to),ie==1))return de}return ce&&{from:ce,to:de}},Yt.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ce=this,de=this.doc.cm;!ae||!de||Vt(de,function(){var pe=ae.line,Ae=bt(ae.line),Re=Gu(de,Ae);if(Re&&(cl(Re),de.curOp.selectionChanged=de.curOp.forceUpdate=!0),de.curOp.updateMaxLine=!0,!ei(ce.doc,pe)&&ce.height!=null){var qe=ce.height;ce.height=null;var Qe=El(ce)-qe;Qe&&Cn(pe,pe.height+Qe)}Wi(de,"markerChanged",de,ie)})},Yt.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||tn(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Yt.prototype.detachLine=function(ie){if(this.lines.splice(tn(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},oi(Yt);function wh(ie,ae,ce,de,pe){if(de&&de.shared)return Rc(ie,ae,ce,de,pe);if(ie.cm&&!ie.cm.curOp)return Ln(ie.cm,wh)(ie,ae,ce,de,pe);var Ae=new Yt(ie,pe),Re=Sn(ae,ce);if(de&&Bn(de,Ae,!1),Re>0||Re==0&&Ae.clearWhenEmpty!==!1)return Ae;if(Ae.replacedWith&&(Ae.collapsed=!0,Ae.widgetNode=ut("span",[Ae.replacedWith],"CodeMirror-widget"),de.handleMouseEvents||Ae.widgetNode.setAttribute("cm-ignore-events","true"),de.insertLeft&&(Ae.widgetNode.insertLeft=!0)),Ae.collapsed){if(Wo(ie,ae.line,ae,ce,Ae)||ae.line!=ce.line&&Wo(ie,ce.line,ae,ce,Ae))throw new Error("Inserting collapsed marker partially overlapping an existing one");An()}Ae.addToHistory&&ko(ie,{from:ae,to:ce,origin:"markText"},ie.sel,NaN);var qe=ae.line,Qe=ie.cm,vt;if(ie.iter(qe,ce.line+1,function(At){Qe&&Ae.collapsed&&!Qe.options.lineWrapping&&eo(At)==Qe.display.maxLine&&(vt=!0),Ae.collapsed&&qe!=ae.line&&Cn(At,0),Fa(At,new Ir(Ae,qe==ae.line?ae.ch:null,qe==ce.line?ce.ch:null)),++qe}),Ae.collapsed&&ie.iter(ae.line,ce.line+1,function(At){ei(ie,At)&&Cn(At,0)}),Ae.clearOnEnter&&et(Ae,"beforeCursorEnter",function(){return Ae.clear()}),Ae.readOnly&&(Fo(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ae.collapsed&&(Ae.id=++ac,Ae.atomic=!0),Qe){if(vt&&(Qe.curOp.updateMaxLine=!0),Ae.collapsed)as(Qe,ae.line,ce.line+1);else if(Ae.className||Ae.startStyle||Ae.endStyle||Ae.css||Ae.attributes||Ae.title)for(var nn=ae.line;nn<=ce.line;nn++)ea(Qe,nn,"text");Ae.atomic&&yo(Qe.doc),Wi(Qe,"markerAdded",Qe,Ae)}return Ae}var sh=function(ie,ae){this.markers=ie,this.primary=ae;for(var ce=0;ce<ie.length;++ce)ie[ce].parent=this};sh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Wi(this,"clear")}},sh.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},oi(sh);function Rc(ie,ae,ce,de,pe){de=Bn(de),de.shared=!1;var Ae=[wh(ie,ae,ce,de,pe)],Re=Ae[0],qe=de.widgetNode;return Ga(ie,function(Qe){qe&&(de.widgetNode=qe.cloneNode(!0)),Ae.push(wh(Qe,Nn(Qe,ae),Nn(Qe,ce),de,pe));for(var vt=0;vt<Qe.linked.length;++vt)if(Qe.linked[vt].isParent)return;Re=mt(Ae)}),new sh(Ae,Re)}function vd(ie){return ie.findMarks(Kt(ie.first,0),ie.clipPos(Kt(ie.lastLine())),function(ae){return ae.parent})}function Rh(ie,ae){for(var ce=0;ce<ae.length;ce++){var de=ae[ce],pe=de.find(),Ae=ie.clipPos(pe.from),Re=ie.clipPos(pe.to);if(Sn(Ae,Re)){var qe=wh(ie,Ae,Re,de.primary,de.primary.type);de.markers.push(qe),qe.parent=de}}}function Ph(ie){for(var ae=function(de){var pe=ie[de],Ae=[pe.primary.doc];Ga(pe.primary.doc,function(Qe){return Ae.push(Qe)});for(var Re=0;Re<pe.markers.length;Re++){var qe=pe.markers[Re];tn(Ae,qe.doc)==-1&&(qe.parent=null,pe.markers.splice(Re--,1))}},ce=0;ce<ie.length;ce++)ae(ce)}var cf=0,fl=function(ie,ae,ce,de,pe){if(!(this instanceof fl))return new fl(ie,ae,ce,de,pe);ce==null&&(ce=0),ba.call(this,[new is([new Oa("",null)])]),this.first=ce,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ce;var Ae=Kt(ce,0);this.sel=Io(Ae),this.history=new Ur(null),this.id=++cf,this.modeOption=ae,this.lineSep=de,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Pa(this,{from:Ae,to:Ae,text:ie}),Xa(this,Io(Ae),Dt)};fl.prototype=Mn(ba.prototype,{constructor:fl,iter:function(ie,ae,ce){ce?this.iterN(ie-this.first,ae-ie,ce):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var ce=0,de=0;de<ae.length;++de)ce+=ae[de].height;this.insertInner(ie-this.first,ae,ce)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=Di(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:wn(function(ie){var ae=Kt(this.first,0),ce=this.first+this.size-1;ss(this,{from:ae,to:Kt(ce,yn(this,ce).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Hr(this.cm,0,0),Xa(this,Io(ae),Dt)}),replaceRange:function(ie,ae,ce,de){ae=Nn(this,ae),ce=ce?Nn(this,ce):ae,Vu(this,ie,ae,ce,de)},getRange:function(ie,ae,ce){var de=Yn(this,Nn(this,ie),Nn(this,ae));return ce===!1?de:de.join(ce||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(gi(this,ie))return yn(this,ie)},getLineNumber:function(ie){return bt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=yn(this,ie)),eo(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 ae=this.sel.primary(),ce;return ie==null||ie=="head"?ce=ae.head:ie=="anchor"?ce=ae.anchor:ie=="end"||ie=="to"||ie===!1?ce=ae.to():ce=ae.from(),ce},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wn(function(ie,ae,ce){us(this,Nn(this,typeof ie=="number"?Kt(ie,ae||0):ie),null,ce)}),setSelection:wn(function(ie,ae,ce){us(this,Nn(this,ie),Nn(this,ae||ie),ce)}),extendSelection:wn(function(ie,ae,ce){Ma(this,Nn(this,ie),ae&&Nn(this,ae),ce)}),extendSelections:wn(function(ie,ae){ja(this,$n(this,ie),ae)}),extendSelectionsBy:wn(function(ie,ae){var ce=Xn(this.sel.ranges,ie);ja(this,$n(this,ce),ae)}),setSelections:wn(function(ie,ae,ce){if(ie.length){for(var de=[],pe=0;pe<ie.length;pe++)de[pe]=new ar(Nn(this,ie[pe].anchor),Nn(this,ie[pe].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),Xa(this,Eo(this.cm,de,ae),ce)}}),addSelection:wn(function(ie,ae,ce){var de=this.sel.ranges.slice(0);de.push(new ar(Nn(this,ie),Nn(this,ae||ie))),Xa(this,Eo(this.cm,de,de.length-1),ce)}),getSelection:function(ie){for(var ae=this.sel.ranges,ce,de=0;de<ae.length;de++){var pe=Yn(this,ae[de].from(),ae[de].to());ce=ce?ce.concat(pe):pe}return ie===!1?ce:ce.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],ce=this.sel.ranges,de=0;de<ce.length;de++){var pe=Yn(this,ce[de].from(),ce[de].to());ie!==!1&&(pe=pe.join(ie||this.lineSeparator())),ae[de]=pe}return ae},replaceSelection:function(ie,ae,ce){for(var de=[],pe=0;pe<this.sel.ranges.length;pe++)de[pe]=ie;this.replaceSelections(de,ae,ce||"+input")},replaceSelections:wn(function(ie,ae,ce){for(var de=[],pe=this.sel,Ae=0;Ae<pe.ranges.length;Ae++){var Re=pe.ranges[Ae];de[Ae]={from:Re.from(),to:Re.to(),text:this.splitLines(ie[Ae]),origin:ce}}for(var qe=ae&&ae!="end"&&wo(this,de,ae),Qe=de.length-1;Qe>=0;Qe--)ss(this,de[Qe]);qe?na(this,qe):this.cm&&Vr(this.cm)}),undo:wn(function(){du(this,"undo")}),redo:wn(function(){du(this,"redo")}),undoSelection:wn(function(){du(this,"undo",!0)}),redoSelection:wn(function(){du(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ce=0,de=0;de<ie.done.length;de++)ie.done[de].ranges||++ae;for(var pe=0;pe<ie.undone.length;pe++)ie.undone[pe].ranges||++ce;return{undo:ae,redo:ce}},clearHistory:function(){var ie=this;this.history=new Ur(this.history.maxGeneration),Ga(this,function(ae){return ae.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:Bs(this.history.done),undone:Bs(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Ur(this.history.maxGeneration);ae.done=Bs(ie.done.slice(0),null,!0),ae.undone=Bs(ie.undone.slice(0),null,!0)},setGutterMarker:wn(function(ie,ae,ce){return Ws(this,ie,"gutter",function(de){var pe=de.gutterMarkers||(de.gutterMarkers={});return pe[ae]=ce,!ce&&at(pe)&&(de.gutterMarkers=null),!0})}),clearGutter:wn(function(ie){var ae=this;this.iter(function(ce){ce.gutterMarkers&&ce.gutterMarkers[ie]&&Ws(ae,ce,"gutter",function(){return ce.gutterMarkers[ie]=null,at(ce.gutterMarkers)&&(ce.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!gi(this,ie)||(ae=ie,ie=yn(this,ie),!ie))return null}else if(ae=bt(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:wn(function(ie,ae,ce){return Ws(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!de[pe])de[pe]=ce;else{if(we(ce).test(de[pe]))return!1;de[pe]+=" "+ce}return!0})}),removeLineClass:wn(function(ie,ae,ce){return Ws(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Ae=de[pe];if(Ae)if(ce==null)de[pe]=null;else{var Re=Ae.match(we(ce));if(!Re)return!1;var qe=Re.index+Re[0].length;de[pe]=Ae.slice(0,Re.index)+(!Re.index||qe==Ae.length?"":" ")+Ae.slice(qe)||null}else return!1;return!0})}),addLineWidget:wn(function(ie,ae,ce){return Eu(this,ie,ae,ce)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ce){return wh(this,Nn(this,ie),Nn(this,ae),ce,ce&&ce.type||"range")},setBookmark:function(ie,ae){var ce={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=Nn(this,ie),wh(this,ie,ie,ce,"bookmark")},findMarksAt:function(ie){ie=Nn(this,ie);var ae=[],ce=yn(this,ie.line).markedSpans;if(ce)for(var de=0;de<ce.length;++de){var pe=ce[de];(pe.from==null||pe.from<=ie.ch)&&(pe.to==null||pe.to>=ie.ch)&&ae.push(pe.marker.parent||pe.marker)}return ae},findMarks:function(ie,ae,ce){ie=Nn(this,ie),ae=Nn(this,ae);var de=[],pe=ie.line;return this.iter(ie.line,ae.line+1,function(Ae){var Re=Ae.markedSpans;if(Re)for(var qe=0;qe<Re.length;qe++){var Qe=Re[qe];!(Qe.to!=null&&pe==ie.line&&ie.ch>=Qe.to||Qe.from==null&&pe!=ie.line||Qe.from!=null&&pe==ae.line&&Qe.from>=ae.ch)&&(!ce||ce(Qe.marker))&&de.push(Qe.marker.parent||Qe.marker)}++pe}),de},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ce=ae.markedSpans;if(ce)for(var de=0;de<ce.length;++de)ce[de].from!=null&&ie.push(ce[de].marker)}),ie},posFromIndex:function(ie){var ae,ce=this.first,de=this.lineSeparator().length;return this.iter(function(pe){var Ae=pe.text.length+de;if(Ae>ie)return ae=ie,!0;ie-=Ae,++ce}),Nn(this,Kt(ce,ae))},indexFromPos:function(ie){ie=Nn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ce=this.lineSeparator().length;return this.iter(this.first,ie.line,function(de){ae+=de.text.length+ce}),ae},copy:function(ie){var ae=new fl(Di(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,ce=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<ce&&(ce=ie.to);var de=new fl(Di(this,ae,ce),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(de.history=this.history),(this.linked||(this.linked=[])).push({doc:de,sharedHist:ie.sharedHist}),de.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Rh(de,vd(this)),de},unlinkDoc:function(ie){if(ie instanceof $a&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var ce=this.linked[ae];if(ce.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),Ph(vd(this));break}}if(ie.history==this.history){var de=[ie.id];Ga(ie,function(pe){return de.push(pe.id)},!0),ie.history=new Ur(null),ie.history.done=Bs(this.history.done,de),ie.history.undone=Bs(this.history.undone,de)}},iterLinkedDocs:function(ie){Ga(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Vi(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:wn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&Po(this.cm))})}),fl.prototype.eachLine=fl.prototype.iter;var id=0;function Od(ie){var ae=this;if(ff(ae),!(Pt(ae,ie)||Ll(ae.display,ie))){ci(ie),Xe&&(id=+new Date);var ce=il(ae,ie,!0),de=ie.dataTransfer.files;if(!(!ce||ae.isReadOnly()))if(de&&de.length&&window.FileReader&&window.File)for(var pe=de.length,Ae=Array(pe),Re=0,qe=function(){++Re==pe&&Ln(ae,function(){ce=Nn(ae.doc,ce);var Dn={from:ce,to:ce,text:ae.doc.splitLines(Ae.filter(function(Ni){return Ni!=null}).join(ae.doc.lineSeparator())),origin:"paste"};ss(ae.doc,Dn),na(ae.doc,Io(Nn(ae.doc,ce),Nn(ae.doc,Zo(Dn))))})()},Qe=function(Dn,Ni){if(ae.options.allowDropFileTypes&&tn(ae.options.allowDropFileTypes,Dn.type)==-1){qe();return}var Bi=new FileReader;Bi.onerror=function(){return qe()},Bi.onload=function(){var er=Bi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(er)){qe();return}Ae[Ni]=er,qe()},Bi.readAsText(Dn)},vt=0;vt<de.length;vt++)Qe(de[vt],vt);else{if(ae.state.draggingText&&ae.doc.sel.contains(ce)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var nn=ie.dataTransfer.getData("Text");if(nn){var At;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(At=ae.listSelections()),Hs(ae.doc,Io(ce,ce)),At)for(var Hn=0;Hn<At.length;++Hn)Vu(ae.doc,"",At[Hn].anchor,At[Hn].head,"drag");ae.replaceSelection(nn,"around","paste"),ae.display.input.focus()}}catch(Dn){}}}}function Id(ie,ae){if(Xe&&(!ie.state.draggingText||+new Date-id<100)){Ui(ae);return}if(!(Pt(ie,ae)||Ll(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!gt)){var ce=Ue("img",null,null,"position: fixed; left: 0; top: 0;");ce.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",nt&&(ce.width=ce.height=1,ie.display.wrapper.appendChild(ce),ce._top=ce.offsetTop),ae.dataTransfer.setDragImage(ce,0,0),nt&&ce.parentNode.removeChild(ce)}}function Rd(ie,ae){var ce=il(ie,ae);if(ce){var de=document.createDocumentFragment();fn(ie,ce,de),ie.display.dragCursor||(ie.display.dragCursor=Ue("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),We(ie.display.dragCursor,de)}}function ff(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function zd(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),ce=[],de=0;de<ae.length;de++){var pe=ae[de].CodeMirror;pe&&ce.push(pe)}ce.length&&ce[0].operation(function(){for(var Ae=0;Ae<ce.length;Ae++)ie(ce[Ae])})}}var jd=!1;function cu(){jd||(zh(),jd=!0)}function zh(){var ie;et(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,zd(zc)},100))}),et(window,"blur",function(){return zd(Li)})}function zc(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Yu={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"},jh=0;jh<10;jh++)Yu[jh+48]=Yu[jh+96]=String(jh);for(var rd=65;rd<=90;rd++)Yu[rd]=String.fromCharCode(rd);for(var od=1;od<=12;od++)Yu[od+111]=Yu[od+63235]="F"+od;var Il={};Il.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"},Il.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"},Il.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"},Il.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"]},Il.default=he?Il.macDefault:Il.pcDefault;function sc(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ce,de,pe,Ae,Re=0;Re<ae.length-1;Re++){var qe=ae[Re];if(/^(cmd|meta|m)$/i.test(qe))Ae=!0;else if(/^a(lt)?$/i.test(qe))ce=!0;else if(/^(c|ctrl|control)$/i.test(qe))de=!0;else if(/^s(hift)?$/i.test(qe))pe=!0;else throw new Error("Unrecognized modifier name: "+qe)}return ce&&(ie="Alt-"+ie),de&&(ie="Ctrl-"+ie),Ae&&(ie="Cmd-"+ie),pe&&(ie="Shift-"+ie),ie}function Hd(ie){var ae={};for(var ce in ie)if(ie.hasOwnProperty(ce)){var de=ie[ce];if(/^(name|fallthrough|(de|at)tach)$/.test(ce))continue;if(de=="..."){delete ie[ce];continue}for(var pe=Xn(ce.split(" "),sc),Ae=0;Ae<pe.length;Ae++){var Re=void 0,qe=void 0;Ae==pe.length-1?(qe=pe.join(" "),Re=de):(qe=pe.slice(0,Ae+1).join(" "),Re="...");var Qe=ae[qe];if(!Qe)ae[qe]=Re;else if(Qe!=Re)throw new Error("Inconsistent bindings for "+qe)}delete ie[ce]}for(var vt in ae)ie[vt]=ae[vt];return ie}function _l(ie,ae,ce,de){ae=Ch(ae);var pe=ae.call?ae.call(ie,de):ae[ie];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&ce(pe))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return _l(ie,ae.fallthrough,ce,de);for(var Ae=0;Ae<ae.fallthrough.length;Ae++){var Re=_l(ie,ae.fallthrough[Ae],ce,de);if(Re)return Re}}}function yd(ie){var ae=typeof ie=="string"?ie:Yu[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Wd(ie,ae,ce){var de=ie;return ae.altKey&&de!="Alt"&&(ie="Alt-"+ie),(Pe?ae.metaKey:ae.ctrlKey)&&de!="Ctrl"&&(ie="Ctrl-"+ie),(Pe?ae.ctrlKey:ae.metaKey)&&de!="Mod"&&(ie="Cmd-"+ie),!ce&&ae.shiftKey&&de!="Shift"&&(ie="Shift-"+ie),ie}function lc(ie,ae){if(nt&&ie.keyCode==34&&ie.char)return!1;var ce=Yu[ie.keyCode];return ce==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ce=ie.code),Wd(ce,ie,ae))}function Ch(ie){return typeof ie=="string"?Il[ie]:ie}function xl(ie,ae){for(var ce=ie.doc.sel.ranges,de=[],pe=0;pe<ce.length;pe++){for(var Ae=ae(ce[pe]);de.length&&Sn(Ae.from,mt(de).to)<=0;){var Re=de.pop();if(Sn(Re.from,Ae.from)<0){Ae.from=Re.from;break}}de.push(Ae)}Vt(ie,function(){for(var qe=de.length-1;qe>=0;qe--)Vu(ie.doc,"",de[qe].from,de[qe].to,"+delete");Vr(ie)})}function Zd(ie,ae,ce){var de=dt(ie.text,ae+ce,ce);return de<0||de>ie.text.length?null:de}function Js(ie,ae,ce){var de=Zd(ie,ae.ch,ce);return de==null?null:new Kt(ae.line,de,ce<0?"after":"before")}function Na(ie,ae,ce,de,pe){if(ie){ae.doc.direction=="rtl"&&(pe=-pe);var Ae=He(ce,ae.doc.direction);if(Ae){var Re=pe<0?mt(Ae):Ae[0],qe=pe<0==(Re.level==1),Qe=qe?"after":"before",vt;if(Re.level>0||ae.doc.direction=="rtl"){var nn=Dl(ae,ce);vt=pe<0?ce.text.length-1:0;var At=Bl(ae,nn,vt).top;vt=ot(function(Hn){return Bl(ae,nn,Hn).top==At},pe<0==(Re.level==1)?Re.from:Re.to-1,vt),Qe=="before"&&(vt=Zd(ce,vt,1))}else vt=pe<0?Re.to:Re.from;return new Kt(de,vt,Qe)}}return new Kt(de,pe<0?ce.text.length:0,pe<0?"before":"after")}function hs(ie,ae,ce,de){var pe=He(ae,ie.doc.direction);if(!pe)return Js(ae,ce,de);ce.ch>=ae.text.length?(ce.ch=ae.text.length,ce.sticky="before"):ce.ch<=0&&(ce.ch=0,ce.sticky="after");var Ae=me(pe,ce.ch,ce.sticky),Re=pe[Ae];if(ie.doc.direction=="ltr"&&Re.level%2==0&&(de>0?Re.to>ce.ch:Re.from<ce.ch))return Js(ae,ce,de);var qe=function(Er,ro){return Zd(ae,Er instanceof Kt?Er.ch:Er,ro)},Qe,vt=function(Er){return ie.options.lineWrapping?(Qe=Qe||Dl(ie,ae),nd(ie,ae,Qe,Er)):{begin:0,end:ae.text.length}},nn=vt(ce.sticky=="before"?qe(ce,-1):ce.ch);if(ie.doc.direction=="rtl"||Re.level==1){var At=Re.level==1==de<0,Hn=qe(ce,At?1:-1);if(Hn!=null&&(At?Hn<=Re.to&&Hn<=nn.end:Hn>=Re.from&&Hn>=nn.begin)){var Dn=At?"before":"after";return new Kt(ce.line,Hn,Dn)}}var Ni=function(Er,ro,Wr){for(var So=function(Gs,kl){return kl?new Kt(ce.line,qe(Gs,1),"before"):new Kt(ce.line,Gs,"after")};Er>=0&&Er<pe.length;Er+=ro){var Jo=pe[Er],zr=ro>0==(Jo.level!=1),va=zr?Wr.begin:qe(Wr.end,-1);if(Jo.from<=va&&va<Jo.to||(va=zr?Jo.from:qe(Jo.to,-1),Wr.begin<=va&&va<Wr.end))return So(va,zr)}},Bi=Ni(Ae+de,de,nn);if(Bi)return Bi;var er=de>0?nn.end:qe(nn.begin,-1);return er!=null&&!(de>0&&er==ae.text.length)&&(Bi=Ni(de>0?0:pe.length-1,de,vt(er)),Bi)?Bi:null}var gl={selectAll:Ha,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Dt)},killLine:function(ie){return xl(ie,function(ae){if(ae.empty()){var ce=yn(ie.doc,ae.head.line).text.length;return ae.head.ch==ce&&ae.head.line<ie.lastLine()?{from:ae.head,to:Kt(ae.head.line+1,0)}:{from:ae.head,to:Kt(ae.head.line,ce)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return xl(ie,function(ae){return{from:Kt(ae.from().line,0),to:Nn(ie.doc,Kt(ae.to().line+1,0))}})},delLineLeft:function(ie){return xl(ie,function(ae){return{from:Kt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return xl(ie,function(ae){var ce=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:ce},"div");return{from:de,to:ae.from()}})},delWrappedLineRight:function(ie){return xl(ie,function(ae){var ce=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ce},"div");return{from:ae.from(),to:de}})},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(Kt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Kt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return fu(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return uc(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return gu(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ce},"div")},cn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:ce},"div")},cn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:ce},"div");return de.ch<ie.getLine(de.line).search(/\S/)?uc(ie,ae.head):de},cn)},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 ae=[],ce=ie.listSelections(),de=ie.options.tabSize,pe=0;pe<ce.length;pe++){var Ae=ce[pe].from(),Re=yt(ie.getLine(Ae.line),Ae.ch,de);ae.push(ii(de-Re%de))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return Vt(ie,function(){for(var ae=ie.listSelections(),ce=[],de=0;de<ae.length;de++)if(ae[de].empty()){var pe=ae[de].head,Ae=yn(ie.doc,pe.line).text;if(Ae){if(pe.ch==Ae.length&&(pe=new Kt(pe.line,pe.ch-1)),pe.ch>0)pe=new Kt(pe.line,pe.ch+1),ie.replaceRange(Ae.charAt(pe.ch-1)+Ae.charAt(pe.ch-2),Kt(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var Re=yn(ie.doc,pe.line-1).text;Re&&(pe=new Kt(pe.line,1),ie.replaceRange(Ae.charAt(0)+ie.doc.lineSeparator()+Re.charAt(Re.length-1),Kt(pe.line-1,Re.length-1),pe,"+transpose"))}}ce.push(new ar(pe,pe))}ie.setSelections(ce)})},newlineAndIndent:function(ie){return Vt(ie,function(){for(var ae=ie.listSelections(),ce=ae.length-1;ce>=0;ce--)ie.replaceRange(ie.doc.lineSeparator(),ae[ce].anchor,ae[ce].head,"+input");ae=ie.listSelections();for(var de=0;de<ae.length;de++)ie.indentLine(ae[de].from().line,null,!0);Vr(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function fu(ie,ae){var ce=yn(ie.doc,ae),de=eo(ce);return de!=ce&&(ae=bt(de)),Na(!0,ie,de,ae,1)}function gu(ie,ae){var ce=yn(ie.doc,ae),de=fa(ce);return de!=ce&&(ae=bt(de)),Na(!0,ie,ce,ae,-1)}function uc(ie,ae){var ce=fu(ie,ae.line),de=yn(ie.doc,ce.line),pe=He(de,ie.doc.direction);if(!pe||pe[0].level==0){var Ae=Math.max(ce.ch,de.text.search(/\S/)),Re=ae.line==ce.line&&ae.ch<=Ae&&ae.ch;return Kt(ce.line,Re?0:Ae,ce.sticky)}return ce}function Hh(ie,ae,ce){if(typeof ae=="string"&&(ae=gl[ae],!ae))return!1;ie.display.input.ensurePolled();var de=ie.display.shift,pe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ce&&(ie.display.shift=!1),pe=ae(ie)!=Qn}finally{ie.display.shift=de,ie.state.suppressEdits=!1}return pe}function Gd(ie,ae,ce){for(var de=0;de<ie.state.keyMaps.length;de++){var pe=_l(ae,ie.state.keyMaps[de],ce,ie);if(pe)return pe}return ie.options.extraKeys&&_l(ae,ie.options.extraKeys,ce,ie)||_l(ae,ie.options.keyMap,ce,ie)}var Du=new Ge;function Uu(ie,ae,ce,de){var pe=ie.state.keySeq;if(pe){if(yd(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Du.set(50,function(){ie.state.keySeq==pe&&(ie.state.keySeq=null,ie.display.input.reset())}),gf(ie,pe+" "+ae,ce,de))return!0}return gf(ie,ae,ce,de)}function gf(ie,ae,ce,de){var pe=Gd(ie,ae,de);return pe=="multi"&&(ie.state.keySeq=ae),pe=="handled"&&Wi(ie,"keyHandled",ie,ae,ce),(pe=="handled"||pe=="multi")&&(ci(ce),Un(ie)),!!pe}function pf(ie,ae){var ce=lc(ae,!0);return ce?ae.shiftKey&&!ie.state.keySeq?Uu(ie,"Shift-"+ce,ae,function(de){return Hh(ie,de,!0)})||Uu(ie,ce,ae,function(de){if(typeof de=="string"?/^go[A-Z]/.test(de):de.motion)return Hh(ie,de)}):Uu(ie,ce,ae,function(de){return Hh(ie,de)}):!1}function hc(ie,ae,ce){return Uu(ie,"'"+ce+"'",ae,function(de){return Hh(ie,de,!0)})}var Bu=null;function mf(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=St(),!Pt(ae,ie))){Xe&&pt<11&&ie.keyCode==27&&(ie.returnValue=!1);var ce=ie.keyCode;ae.display.shift=ce==16||ie.shiftKey;var de=pf(ae,ie);nt&&(Bu=de?ce:null,!de&&ce==88&&!Pi&&(he?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),Ee&&!he&&!de&&ce==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ce==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&Wf(ae)}}function Wf(ie){var ae=ie.display.lineDiv;_t(ae,"CodeMirror-crosshair");function ce(de){(de.keyCode==18||!de.altKey)&&(Oe(ae,"CodeMirror-crosshair"),rn(document,"keyup",ce),rn(document,"mouseover",ce))}et(document,"keyup",ce),et(document,"mouseover",ce)}function vf(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,ie)}function lh(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Ll(ae.display,ie)||Pt(ae,ie)||ie.ctrlKey&&!ie.altKey||he&&ie.metaKey)){var ce=ie.keyCode,de=ie.charCode;if(nt&&ce==Bu){Bu=null,ci(ie);return}if(!(nt&&(!ie.which||ie.which<10)&&pf(ae,ie))){var pe=String.fromCharCode(de==null?ce:de);pe!="\b"&&(hc(ae,ie,pe)||ae.display.input.onKeyPress(ie))}}}var Sg=400,Zf=function(ie,ae,ce){this.time=ie,this.pos=ae,this.button=ce};Zf.prototype.compare=function(ie,ae,ce){return this.time+Sg>ie&&Sn(ae,this.pos)==0&&ce==this.button};var dc,Sd;function Gf(ie,ae){var ce=+new Date;return Sd&&Sd.compare(ce,ie,ae)?(dc=Sd=null,"triple"):dc&&dc.compare(ce,ie,ae)?(Sd=new Zf(ce,ie,ae),dc=null,"double"):(dc=new Zf(ce,ie,ae),Sd=null,"single")}function bh(ie){var ae=this,ce=ae.display;if(!(Pt(ae,ie)||ce.activeTouch&&ce.input.supportsTouch())){if(ce.input.ensurePolled(),ce.shift=ie.shiftKey,Ll(ce,ie)){Fe||(ce.scroller.draggable=!1,setTimeout(function(){return ce.scroller.draggable=!0},100));return}if(!Xo(ae,ie)){var de=il(ae,ie),pe=lr(ie),Ae=de?Gf(de,pe):"single";window.focus(),pe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(de&&Kf(ae,pe,de,Ae,ie))&&(pe==1?de?yf(ae,de,Ae,ie):vr(ie)==ce.scroller&&ci(ie):pe==2?(de&&Ma(ae.doc,de),setTimeout(function(){return ce.input.focus()},20)):pe==3&&(ke?ae.display.input.onContextMenu(ie):Ii(ae)))}}}function Kf(ie,ae,ce,de,pe){var Ae="Click";return de=="double"?Ae="Double"+Ae:de=="triple"&&(Ae="Triple"+Ae),Ae=(ae==1?"Left":ae==2?"Middle":"Right")+Ae,Uu(ie,Wd(Ae,pe),pe,function(Re){if(typeof Re=="string"&&(Re=gl[Re]),!Re)return!1;var qe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),qe=Re(ie,ce)!=Qn}finally{ie.state.suppressEdits=!1}return qe})}function jc(ie,ae,ce){var de=ie.getOption("configureMouse"),pe=de?de(ie,ae,ce):{};if(pe.unit==null){var Ae=se?ce.shiftKey&&ce.metaKey:ce.altKey;pe.unit=Ae?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(pe.extend==null||ie.doc.extend)&&(pe.extend=ie.doc.extend||ce.shiftKey),pe.addNew==null&&(pe.addNew=he?ce.metaKey:ce.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(he?ce.altKey:ce.ctrlKey)),pe}function yf(ie,ae,ce,de){Xe?setTimeout(sn(ui,ie),0):ie.curOp.focus=St();var pe=jc(ie,ce,de),Ae=ie.doc.sel,Re;ie.options.dragDrop&&gr&&!ie.isReadOnly()&&ce=="single"&&(Re=Ae.contains(ae))>-1&&(Sn((Re=Ae.ranges[Re]).from(),ae)<0||ae.xRel>0)&&(Sn(Re.to(),ae)>0||ae.xRel<0)?Hc(ie,de,ae,pe):sp(ie,de,ae,pe)}function Hc(ie,ae,ce,de){var pe=ie.display,Ae=!1,Re=Ln(ie,function(vt){Fe&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,rn(pe.wrapper.ownerDocument,"mouseup",Re),rn(pe.wrapper.ownerDocument,"mousemove",qe),rn(pe.scroller,"dragstart",Qe),rn(pe.scroller,"drop",Re),Ae||(ci(vt),de.addNew||Ma(ie.doc,ce,null,null,de.extend),Fe&&!gt||Xe&&pt==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),qe=function(vt){Ae=Ae||Math.abs(ae.clientX-vt.clientX)+Math.abs(ae.clientY-vt.clientY)>=10},Qe=function(){return Ae=!0};Fe&&(pe.scroller.draggable=!0),ie.state.draggingText=Re,Re.copy=!de.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),et(pe.wrapper.ownerDocument,"mouseup",Re),et(pe.wrapper.ownerDocument,"mousemove",qe),et(pe.scroller,"dragstart",Qe),et(pe.scroller,"drop",Re),Ii(ie),setTimeout(function(){return pe.input.focus()},20)}function Vf(ie,ae,ce){if(ce=="char")return new ar(ae,ae);if(ce=="word")return ie.findWordAt(ae);if(ce=="line")return new ar(Kt(ae.line,0),Nn(ie.doc,Kt(ae.line+1,0)));var de=ce(ie,ae);return new ar(de.from,de.to)}function sp(ie,ae,ce,de){var pe=ie.display,Ae=ie.doc;ci(ae);var Re,qe,Qe=Ae.sel,vt=Qe.ranges;if(de.addNew&&!de.extend?(qe=Ae.sel.contains(ce),qe>-1?Re=vt[qe]:Re=new ar(ce,ce)):(Re=Ae.sel.primary(),qe=Ae.sel.primIndex),de.unit=="rectangle")de.addNew||(Re=new ar(ce,ce)),ce=il(ie,ae,!0,!0),qe=-1;else{var nn=Vf(ie,ce,de.unit);de.extend?Re=ll(Re,nn.anchor,nn.head,de.extend):Re=nn}de.addNew?qe==-1?(qe=vt.length,Xa(Ae,Eo(ie,vt.concat([Re]),qe),{scroll:!1,origin:"*mouse"})):vt.length>1&&vt[qe].empty()&&de.unit=="char"&&!de.extend?(Xa(Ae,Eo(ie,vt.slice(0,qe).concat(vt.slice(qe+1)),0),{scroll:!1,origin:"*mouse"}),Qe=Ae.sel):Ka(Ae,qe,Re,$t):(qe=0,Xa(Ae,new uo([Re],0),$t),Qe=Ae.sel);var At=ce;function Hn(Wr){if(Sn(At,Wr)!=0)if(At=Wr,de.unit=="rectangle"){for(var So=[],Jo=ie.options.tabSize,zr=yt(yn(Ae,ce.line).text,ce.ch,Jo),va=yt(yn(Ae,Wr.line).text,Wr.ch,Jo),Gs=Math.min(zr,va),kl=Math.max(zr,va),tl=Math.min(ce.line,Wr.line),Iu=Math.min(ie.lastLine(),Math.max(ce.line,Wr.line));tl<=Iu;tl++){var pu=yn(Ae,tl).text,Pl=Zn(pu,Gs,Jo);Gs==kl?So.push(new ar(Kt(tl,Pl),Kt(tl,Pl))):pu.length>Pl&&So.push(new ar(Kt(tl,Pl),Kt(tl,Zn(pu,kl,Jo))))}So.length||So.push(new ar(ce,ce)),Xa(Ae,Eo(ie,Qe.ranges.slice(0,qe).concat(So),qe),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Wr)}else{var Xu=Re,eu=Vf(ie,Wr,de.unit),Cl=Xu.anchor,qa;Sn(eu.anchor,Cl)>0?(qa=eu.head,Cl=un(Xu.from(),eu.anchor)):(qa=eu.anchor,Cl=gn(Xu.to(),eu.head));var rl=Qe.ranges.slice(0);rl[qe]=Qa(ie,new ar(Nn(Ae,Cl),qa)),Xa(Ae,Eo(ie,rl,qe),$t)}}var Dn=pe.wrapper.getBoundingClientRect(),Ni=0;function Bi(Wr){var So=++Ni,Jo=il(ie,Wr,!0,de.unit=="rectangle");if(Jo)if(Sn(Jo,At)!=0){ie.curOp.focus=St(),Hn(Jo);var zr=zn(pe,Ae);(Jo.line>=zr.to||Jo.line<zr.from)&&setTimeout(Ln(ie,function(){Ni==So&&Bi(Wr)}),150)}else{var va=Wr.clientY<Dn.top?-20:Wr.clientY>Dn.bottom?20:0;va&&setTimeout(Ln(ie,function(){Ni==So&&(pe.scroller.scrollTop+=va,Bi(Wr))}),50)}}function er(Wr){ie.state.selectingText=!1,Ni=1/0,Wr&&(ci(Wr),pe.input.focus()),rn(pe.wrapper.ownerDocument,"mousemove",Er),rn(pe.wrapper.ownerDocument,"mouseup",ro),Ae.history.lastSelOrigin=null}var Er=Ln(ie,function(Wr){Wr.buttons===0||!lr(Wr)?er(Wr):Bi(Wr)}),ro=Ln(ie,er);ie.state.selectingText=ro,et(pe.wrapper.ownerDocument,"mousemove",Er),et(pe.wrapper.ownerDocument,"mouseup",ro)}function Qa(ie,ae){var ce=ae.anchor,de=ae.head,pe=yn(ie.doc,ce.line);if(Sn(ce,de)==0&&ce.sticky==de.sticky)return ae;var Ae=He(pe);if(!Ae)return ae;var Re=me(Ae,ce.ch,ce.sticky),qe=Ae[Re];if(qe.from!=ce.ch&&qe.to!=ce.ch)return ae;var Qe=Re+(qe.from==ce.ch==(qe.level!=1)?0:1);if(Qe==0||Qe==Ae.length)return ae;var vt;if(de.line!=ce.line)vt=(de.line-ce.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var nn=me(Ae,de.ch,de.sticky),At=nn-Re||(de.ch-ce.ch)*(qe.level==1?-1:1);nn==Qe-1||nn==Qe?vt=At<0:vt=At>0}var Hn=Ae[Qe+(vt?-1:0)],Dn=vt==(Hn.level==1),Ni=Dn?Hn.from:Hn.to,Bi=Dn?"after":"before";return ce.ch==Ni&&ce.sticky==Bi?ae:new ar(new Kt(ce.line,Ni,Bi),de)}function Mo(ie,ae,ce,de){var pe,Ae;if(ae.touches)pe=ae.touches[0].clientX,Ae=ae.touches[0].clientY;else try{pe=ae.clientX,Ae=ae.clientY}catch(Hn){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;de&&ci(ae);var Re=ie.display,qe=Re.lineDiv.getBoundingClientRect();if(Ae>qe.bottom||!Fn(ie,ce))return mi(ae);Ae-=qe.top-Re.viewOffset;for(var Qe=0;Qe<ie.display.gutterSpecs.length;++Qe){var vt=Re.gutters.childNodes[Qe];if(vt&&vt.getBoundingClientRect().right>=pe){var nn=In(ie.doc,Ae),At=ie.display.gutterSpecs[Qe];return ht(ie,ce,ie,nn,At.className,ae),mi(ae)}}}function Xo(ie,ae){return Mo(ie,ae,"gutterClick",!0)}function Va(ie,ae){Ll(ie.display,ae)||Qs(ie,ae)||Pt(ie,ae,"contextmenu")||ke||ie.display.input.onContextMenu(ae)}function Qs(ie,ae){return Fn(ie,"gutterContextMenu")?Mo(ie,ae,"gutterContextMenu",!1):!1}function ad(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ws(ie)}var Rl={toString:function(){return"CodeMirror.Init"}},Wh={},uh={};function cc(ie){var ae=ie.optionHandlers;function ce(de,pe,Ae,Re){ie.defaults[de]=pe,Ae&&(ae[de]=Re?function(qe,Qe,vt){vt!=Rl&&Ae(qe,Qe,vt)}:Ae)}ie.defineOption=ce,ie.Init=Rl,ce("value","",function(de,pe){return de.setValue(pe)},!0),ce("mode",null,function(de,pe){de.doc.modeOption=pe,Jr(de)},!0),ce("indentUnit",2,Jr,!0),ce("indentWithTabs",!1),ce("smartIndent",!0),ce("tabSize",4,function(de){po(de),ws(de),as(de)},!0),ce("lineSeparator",null,function(de,pe){if(de.doc.lineSep=pe,!!pe){var Ae=[],Re=de.doc.first;de.doc.iter(function(Qe){for(var vt=0;;){var nn=Qe.text.indexOf(pe,vt);if(nn==-1)break;vt=nn+pe.length,Ae.push(Kt(Re,nn))}Re++});for(var qe=Ae.length-1;qe>=0;qe--)Vu(de.doc,pe,Ae[qe],Kt(Ae[qe].line,Ae[qe].ch+pe.length))}}),ce("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(de,pe,Ae){de.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Ae!=Rl&&de.refresh()}),ce("specialCharPlaceholder",js,function(de){return de.refresh()},!0),ce("electricChars",!0),ce("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ce("spellcheck",!1,function(de,pe){return de.getInputField().spellcheck=pe},!0),ce("autocorrect",!1,function(de,pe){return de.getInputField().autocorrect=pe},!0),ce("autocapitalize",!1,function(de,pe){return de.getInputField().autocapitalize=pe},!0),ce("rtlMoveVisually",!ge),ce("wholeLineUpdateBefore",!0),ce("theme","default",function(de){ad(de),cr(de)},!0),ce("keyMap","default",function(de,pe,Ae){var Re=Ch(pe),qe=Ae!=Rl&&Ch(Ae);qe&&qe.detach&&qe.detach(de,Re),Re.attach&&Re.attach(de,qe||null)}),ce("extraKeys",null),ce("configureMouse",null),ce("lineWrapping",!1,hh,!0),ce("gutters",[],function(de,pe){de.display.gutterSpecs=Ar(pe,de.options.lineNumbers),cr(de)},!0),ce("fixedGutter",!0,function(de,pe){de.display.gutters.style.left=pe?Bd(de.display)+"px":"0",de.refresh()},!0),ce("coverGutterNextToScrollbar",!1,function(de){return oa(de)},!0),ce("scrollbarStyle","native",function(de){ts(de),oa(de),de.display.scrollbars.setScrollTop(de.doc.scrollTop),de.display.scrollbars.setScrollLeft(de.doc.scrollLeft)},!0),ce("lineNumbers",!1,function(de,pe){de.display.gutterSpecs=Ar(de.options.gutters,pe),cr(de)},!0),ce("firstLineNumber",1,cr,!0),ce("lineNumberFormatter",function(de){return de},cr,!0),ce("showCursorWhenSelecting",!1,Rt,!0),ce("resetSelectionOnContextMenu",!0),ce("lineWiseCopyCut",!0),ce("pasteLinesPerSelection",!0),ce("selectionsMayTouch",!1),ce("readOnly",!1,function(de,pe){pe=="nocursor"&&(Li(de),de.display.input.blur()),de.display.input.readOnlyChanged(pe)}),ce("screenReaderLabel",null,function(de,pe){pe=pe===""?null:pe,de.display.input.screenReaderLabelChanged(pe)}),ce("disableInput",!1,function(de,pe){pe||de.display.input.reset()},!0),ce("dragDrop",!0,Zh),ce("allowDropFileTypes",null),ce("cursorBlinkRate",530),ce("cursorScrollMargin",0),ce("cursorHeight",1,Rt,!0),ce("singleCursorHeightPerLine",!0,Rt,!0),ce("workTime",100),ce("workDelay",100),ce("flattenSpans",!0,po,!0),ce("addModeClass",!1,po,!0),ce("pollInterval",100),ce("undoDepth",200,function(de,pe){return de.doc.history.undoDepth=pe}),ce("historyEventDelay",1250),ce("viewportMargin",10,function(de){return de.refresh()},!0),ce("maxHighlightLength",1e4,po,!0),ce("moveInputWithCursor",!0,function(de,pe){pe||de.display.input.resetPosition()}),ce("tabindex",null,function(de,pe){return de.display.input.getField().tabIndex=pe||""}),ce("autofocus",null),ce("direction","ltr",function(de,pe){return de.doc.setDirection(pe)},!0),ce("phrases",null)}function Zh(ie,ae,ce){var de=ce&&ce!=Rl;if(!ae!=!de){var pe=ie.display.dragFunctions,Ae=ae?et:rn;Ae(ie.display.scroller,"dragstart",pe.start),Ae(ie.display.scroller,"dragenter",pe.enter),Ae(ie.display.scroller,"dragover",pe.over),Ae(ie.display.scroller,"dragleave",pe.leave),Ae(ie.display.scroller,"drop",pe.drop)}}function hh(ie){ie.options.lineWrapping?(_t(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Oe(ie.display.wrapper,"CodeMirror-wrap"),ha(ie)),mo(ie),as(ie),ws(ie),setTimeout(function(){return oa(ie)},100)}function $a(ie,ae){var ce=this;if(!(this instanceof $a))return new $a(ie,ae);this.options=ae=ae?Bn(ae):{},Bn(Wh,ae,!1);var de=ae.value;typeof de=="string"?de=new fl(de,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(de.modeOption=ae.mode),this.doc=de;var pe=new $a.inputStyles[ae.inputStyle](this),Ae=this.display=new Or(ie,de,pe,ae);Ae.wrapper.CodeMirror=this,ad(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ts(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 Ge,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Ae.input.focus(),Xe&&pt<11&&setTimeout(function(){return ce.display.input.reset(!0)},20),Sf(this),cu(),wa(this),this.curOp.forceUpdate=!0,vo(this,de),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){ce.hasFocus()&&!ce.state.focused&&li(ce)},20):Li(this);for(var Re in uh)uh.hasOwnProperty(Re)&&uh[Re](this,ae[Re],Rl);pr(this),ae.finishInit&&ae.finishInit(this);for(var qe=0;qe<Wc.length;++qe)Wc[qe](this);Ms(this),Fe&&ae.lineWrapping&&getComputedStyle(Ae.lineDiv).textRendering=="optimizelegibility"&&(Ae.lineDiv.style.textRendering="auto")}$a.defaults=Wh,$a.optionHandlers=uh;function Sf(ie){var ae=ie.display;et(ae.scroller,"mousedown",Ln(ie,bh)),Xe&&pt<11?et(ae.scroller,"dblclick",Ln(ie,function(Qe){if(!Pt(ie,Qe)){var vt=il(ie,Qe);if(!(!vt||Xo(ie,Qe)||Ll(ie.display,Qe))){ci(Qe);var nn=ie.findWordAt(vt);Ma(ie.doc,nn.anchor,nn.head)}}})):et(ae.scroller,"dblclick",function(Qe){return Pt(ie,Qe)||ci(Qe)}),et(ae.scroller,"contextmenu",function(Qe){return Va(ie,Qe)}),et(ae.input.getField(),"contextmenu",function(Qe){ae.scroller.contains(Qe.target)||Va(ie,Qe)});var ce,de={end:0};function pe(){ae.activeTouch&&(ce=setTimeout(function(){return ae.activeTouch=null},1e3),de=ae.activeTouch,de.end=+new Date)}function Ae(Qe){if(Qe.touches.length!=1)return!1;var vt=Qe.touches[0];return vt.radiusX<=1&&vt.radiusY<=1}function Re(Qe,vt){if(vt.left==null)return!0;var nn=vt.left-Qe.left,At=vt.top-Qe.top;return nn*nn+At*At>20*20}et(ae.scroller,"touchstart",function(Qe){if(!Pt(ie,Qe)&&!Ae(Qe)&&!Xo(ie,Qe)){ae.input.ensurePolled(),clearTimeout(ce);var vt=+new Date;ae.activeTouch={start:vt,moved:!1,prev:vt-de.end<=300?de:null},Qe.touches.length==1&&(ae.activeTouch.left=Qe.touches[0].pageX,ae.activeTouch.top=Qe.touches[0].pageY)}}),et(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),et(ae.scroller,"touchend",function(Qe){var vt=ae.activeTouch;if(vt&&!Ll(ae,Qe)&&vt.left!=null&&!vt.moved&&new Date-vt.start<300){var nn=ie.coordsChar(ae.activeTouch,"page"),At;!vt.prev||Re(vt,vt.prev)?At=new ar(nn,nn):!vt.prev.prev||Re(vt,vt.prev.prev)?At=ie.findWordAt(nn):At=new ar(Kt(nn.line,0),Nn(ie.doc,Kt(nn.line+1,0))),ie.setSelection(At.anchor,At.head),ie.focus(),ci(Qe)}pe()}),et(ae.scroller,"touchcancel",pe),et(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(ta(ie,ae.scroller.scrollTop),La(ie,ae.scroller.scrollLeft,!0),ht(ie,"scroll",ie))}),et(ae.scroller,"mousewheel",function(Qe){return so(ie,Qe)}),et(ae.scroller,"DOMMouseScroll",function(Qe){return so(ie,Qe)}),et(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(Qe){Pt(ie,Qe)||Ui(Qe)},over:function(Qe){Pt(ie,Qe)||(Rd(ie,Qe),Ui(Qe))},start:function(Qe){return Id(ie,Qe)},drop:Ln(ie,Od),leave:function(Qe){Pt(ie,Qe)||ff(ie)}};var qe=ae.input.getField();et(qe,"keyup",function(Qe){return vf.call(ie,Qe)}),et(qe,"keydown",Ln(ie,mf)),et(qe,"keypress",Ln(ie,lh)),et(qe,"focus",function(Qe){return li(ie,Qe)}),et(qe,"blur",function(Qe){return Li(ie,Qe)})}var Wc=[];$a.defineInitHook=function(ie){return Wc.push(ie)};function Al(ie,ae,ce,de){var pe=ie.doc,Ae;ce==null&&(ce="add"),ce=="smart"&&(pe.mode.indent?Ae=qi(ie,ae).state:ce="prev");var Re=ie.options.tabSize,qe=yn(pe,ae),Qe=yt(qe.text,null,Re);qe.stateAfter&&(qe.stateAfter=null);var vt=qe.text.match(/^\s*/)[0],nn;if(!de&&!/\S/.test(qe.text))nn=0,ce="not";else if(ce=="smart"&&(nn=pe.mode.indent(Ae,qe.text.slice(vt.length),qe.text),nn==Qn||nn>150)){if(!de)return;ce="prev"}ce=="prev"?ae>pe.first?nn=yt(yn(pe,ae-1).text,null,Re):nn=0:ce=="add"?nn=Qe+ie.options.indentUnit:ce=="subtract"?nn=Qe-ie.options.indentUnit:typeof ce=="number"&&(nn=Qe+ce),nn=Math.max(0,nn);var At="",Hn=0;if(ie.options.indentWithTabs)for(var Dn=Math.floor(nn/Re);Dn;--Dn)Hn+=Re,At+=" ";if(Hn<nn&&(At+=ii(nn-Hn)),At!=vt)return Vu(pe,At,Kt(ae,0),Kt(ae,vt.length),"+input"),qe.stateAfter=null,!0;for(var Ni=0;Ni<pe.sel.ranges.length;Ni++){var Bi=pe.sel.ranges[Ni];if(Bi.head.line==ae&&Bi.head.ch<vt.length){var er=Kt(ae,vt.length);Ka(pe,Ni,new ar(er,er));break}}}var Ou=null;function Zc(ie){Ou=ie}function Yf(ie,ae,ce,de,pe){var Ae=ie.doc;ie.display.shift=!1,de||(de=Ae.sel);var Re=+new Date-200,qe=pe=="paste"||ie.state.pasteIncoming>Re,Qe=Vi(ae),vt=null;if(qe&&de.ranges.length>1)if(Ou&&Ou.text.join(`
|
|
|
`)==ae){if(de.ranges.length%Ou.text.length==0){vt=[];for(var nn=0;nn<Ou.text.length;nn++)vt.push(Ae.splitLines(Ou.text[nn]))}}else Qe.length==de.ranges.length&&ie.options.pasteLinesPerSelection&&(vt=Xn(Qe,function(Er){return[Er]}));for(var At=ie.curOp.updateInput,Hn=de.ranges.length-1;Hn>=0;Hn--){var Dn=de.ranges[Hn],Ni=Dn.from(),Bi=Dn.to();Dn.empty()&&(ce&&ce>0?Ni=Kt(Ni.line,Ni.ch-ce):ie.state.overwrite&&!qe?Bi=Kt(Bi.line,Math.min(yn(Ae,Bi.line).text.length,Bi.ch+mt(Qe).length)):qe&&Ou&&Ou.lineWise&&Ou.text.join(`
|
|
|
`)==Qe.join(`
|
|
|
`)&&(Ni=Bi=Kt(Ni.line,0)));var er={from:Ni,to:Bi,text:vt?vt[Hn%vt.length]:Qe,origin:pe||(qe?"paste":ie.state.cutIncoming>Re?"cut":"+input")};ss(ie.doc,er),Wi(ie,"inputRead",ie,er)}ae&&!qe&&up(ie,ae),Vr(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=At),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function lp(ie,ae){var ce=ie.clipboardData&&ie.clipboardData.getData("Text");if(ce)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&Vt(ae,function(){return Yf(ae,ce,0,null,"paste")}),!0}function up(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ce=ie.doc.sel,de=ce.ranges.length-1;de>=0;de--){var pe=ce.ranges[de];if(!(pe.head.ch>100||de&&ce.ranges[de-1].head.line==pe.head.line)){var Ae=ie.getModeAt(pe.head),Re=!1;if(Ae.electricChars){for(var qe=0;qe<Ae.electricChars.length;qe++)if(ae.indexOf(Ae.electricChars.charAt(qe))>-1){Re=Al(ie,pe.head.line,"smart");break}}else Ae.electricInput&&Ae.electricInput.test(yn(ie.doc,pe.head.line).text.slice(0,pe.head.ch))&&(Re=Al(ie,pe.head.line,"smart"));Re&&Wi(ie,"electricInput",ie,pe.head.line)}}}function hp(ie){for(var ae=[],ce=[],de=0;de<ie.doc.sel.ranges.length;de++){var pe=ie.doc.sel.ranges[de].head.line,Ae={anchor:Kt(pe,0),head:Kt(pe+1,0)};ce.push(Ae),ae.push(ie.getRange(Ae.anchor,Ae.head))}return{text:ae,ranges:ce}}function dp(ie,ae,ce,de){ie.setAttribute("autocorrect",ce?"":"off"),ie.setAttribute("autocapitalize",de?"":"off"),ie.setAttribute("spellcheck",!!ae)}function cp(){var ie=Ue("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=Ue("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Fe?ie.style.width="1000px":ie.setAttribute("wrap","off"),Te&&(ie.style.border="1px solid black"),dp(ie),ae}function fc(ie){var ae=ie.optionHandlers,ce=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(de,pe){var Ae=this.options,Re=Ae[de];Ae[de]==pe&&de!="mode"||(Ae[de]=pe,ae.hasOwnProperty(de)&&Ln(this,ae[de])(this,pe,Re),ht(this,"optionChange",this,de))},getOption:function(de){return this.options[de]},getDoc:function(){return this.doc},addKeyMap:function(de,pe){this.state.keyMaps[pe?"push":"unshift"](Ch(de))},removeKeyMap:function(de){for(var pe=this.state.keyMaps,Ae=0;Ae<pe.length;++Ae)if(pe[Ae]==de||pe[Ae].name==de)return pe.splice(Ae,1),!0},addOverlay:bn(function(de,pe){var Ae=de.token?de:ie.getMode(this.options,de);if(Ae.startState)throw new Error("Overlays may not be stateful.");ri(this.state.overlays,{mode:Ae,modeSpec:de,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(Re){return Re.priority}),this.state.modeGen++,as(this)}),removeOverlay:bn(function(de){for(var pe=this.state.overlays,Ae=0;Ae<pe.length;++Ae){var Re=pe[Ae].modeSpec;if(Re==de||typeof de=="string"&&Re.name==de){pe.splice(Ae,1),this.state.modeGen++,as(this);return}}}),indentLine:bn(function(de,pe,Ae){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),gi(this.doc,de)&&Al(this,de,pe,Ae)}),indentSelection:bn(function(de){for(var pe=this.doc.sel.ranges,Ae=-1,Re=0;Re<pe.length;Re++){var qe=pe[Re];if(qe.empty())qe.head.line>Ae&&(Al(this,qe.head.line,de,!0),Ae=qe.head.line,Re==this.doc.sel.primIndex&&Vr(this));else{var Qe=qe.from(),vt=qe.to(),nn=Math.max(Ae,Qe.line);Ae=Math.min(this.lastLine(),vt.line-(vt.ch?0:1))+1;for(var At=nn;At<Ae;++At)Al(this,At,de);var Hn=this.doc.sel.ranges;Qe.ch==0&&pe.length==Hn.length&&Hn[Re].from().ch>0&&Ka(this.doc,Re,new ar(Qe,Hn[Re].to()),Dt)}}}),getTokenAt:function(de,pe){return Pr(this,de,pe)},getLineTokens:function(de,pe){return Pr(this,Kt(de),pe,!0)},getTokenTypeAt:function(de){de=Nn(this.doc,de);var pe=Lr(this,yn(this.doc,de.line)),Ae=0,Re=(pe.length-1)/2,qe=de.ch,Qe;if(qe==0)Qe=pe[2];else for(;;){var vt=Ae+Re>>1;if((vt?pe[vt*2-1]:0)>=qe)Re=vt;else if(pe[vt*2+1]<qe)Ae=vt+1;else{Qe=pe[vt*2+2];break}}var nn=Qe?Qe.indexOf("overlay "):-1;return nn<0?Qe:nn==0?null:Qe.slice(0,nn-1)},getModeAt:function(de){var pe=this.doc.mode;return pe.innerMode?ie.innerMode(pe,this.getTokenAt(de).state).mode:pe},getHelper:function(de,pe){return this.getHelpers(de,pe)[0]},getHelpers:function(de,pe){var Ae=[];if(!ce.hasOwnProperty(pe))return Ae;var Re=ce[pe],qe=this.getModeAt(de);if(typeof qe[pe]=="string")Re[qe[pe]]&&Ae.push(Re[qe[pe]]);else if(qe[pe])for(var Qe=0;Qe<qe[pe].length;Qe++){var vt=Re[qe[pe][Qe]];vt&&Ae.push(vt)}else qe.helperType&&Re[qe.helperType]?Ae.push(Re[qe.helperType]):Re[qe.name]&&Ae.push(Re[qe.name]);for(var nn=0;nn<Re._global.length;nn++){var At=Re._global[nn];At.pred(qe,this)&&tn(Ae,At.val)==-1&&Ae.push(At.val)}return Ae},getStateAfter:function(de,pe){var Ae=this.doc;return de=En(Ae,de==null?Ae.first+Ae.size-1:de),qi(this,de+1,pe).state},cursorCoords:function(de,pe){var Ae,Re=this.doc.sel.primary();return de==null?Ae=Re.head:typeof de=="object"?Ae=Nn(this.doc,de):Ae=de?Re.from():Re.to(),fs(this,Ae,pe||"page")},charCoords:function(de,pe){return Ql(this,Nn(this.doc,de),pe||"page")},coordsChar:function(de,pe){return de=ih(this,de,pe||"page"),td(this,de.left,de.top)},lineAtHeight:function(de,pe){return de=ih(this,{top:de,left:0},pe||"page").top,In(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,pe,Ae){var Re=!1,qe;if(typeof de=="number"){var Qe=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>Qe&&(de=Qe,Re=!0),qe=yn(this.doc,de)}else qe=de;return Ps(this,qe,{top:0,left:0},pe||"page",Ae||Re).top+(Re?this.doc.height-ia(qe):0)},defaultTextHeight:function(){return oh(this.display)},defaultCharWidth:function(){return xh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(de,pe,Ae,Re,qe){var Qe=this.display;de=fs(this,Nn(this.doc,de));var vt=de.bottom,nn=de.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),Qe.sizer.appendChild(pe),Re=="over")vt=de.top;else if(Re=="above"||Re=="near"){var At=Math.max(Qe.wrapper.clientHeight,this.doc.height),Hn=Math.max(Qe.sizer.clientWidth,Qe.lineSpace.clientWidth);(Re=="above"||de.bottom+pe.offsetHeight>At)&&de.top>pe.offsetHeight?vt=de.top-pe.offsetHeight:de.bottom+pe.offsetHeight<=At&&(vt=de.bottom),nn+pe.offsetWidth>Hn&&(nn=Hn-pe.offsetWidth)}pe.style.top=vt+"px",pe.style.left=pe.style.right="",qe=="right"?(nn=Qe.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(qe=="left"?nn=0:qe=="middle"&&(nn=(Qe.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=nn+"px"),Ae&&jr(this,{left:nn,top:vt,right:nn+pe.offsetWidth,bottom:vt+pe.offsetHeight})},triggerOnKeyDown:bn(mf),triggerOnKeyPress:bn(lh),triggerOnKeyUp:vf,triggerOnMouseDown:bn(bh),execCommand:function(de){if(gl.hasOwnProperty(de))return gl[de].call(null,this)},triggerElectric:bn(function(de){up(this,de)}),findPosH:function(de,pe,Ae,Re){var qe=1;pe<0&&(qe=-1,pe=-pe);for(var Qe=Nn(this.doc,de),vt=0;vt<pe&&(Qe=Uf(this.doc,Qe,qe,Ae,Re),!Qe.hitSide);++vt);return Qe},moveH:bn(function(de,pe){var Ae=this;this.extendSelectionsBy(function(Re){return Ae.display.shift||Ae.doc.extend||Re.empty()?Uf(Ae.doc,Re.head,de,pe,Ae.options.rtlMoveVisually):de<0?Re.from():Re.to()},cn)}),deleteH:bn(function(de,pe){var Ae=this.doc.sel,Re=this.doc;Ae.somethingSelected()?Re.replaceSelection("",null,"+delete"):xl(this,function(qe){var Qe=Uf(Re,qe.head,de,pe,!1);return de<0?{from:Qe,to:qe.head}:{from:qe.head,to:Qe}})}),findPosV:function(de,pe,Ae,Re){var qe=1,Qe=Re;pe<0&&(qe=-1,pe=-pe);for(var vt=Nn(this.doc,de),nn=0;nn<pe;++nn){var At=fs(this,vt,"div");if(Qe==null?Qe=At.left:At.left=Qe,vt=gc(this,At,qe,Ae),vt.hitSide)break}return vt},moveV:bn(function(de,pe){var Ae=this,Re=this.doc,qe=[],Qe=!this.display.shift&&!Re.extend&&Re.sel.somethingSelected();if(Re.extendSelectionsBy(function(nn){if(Qe)return de<0?nn.from():nn.to();var At=fs(Ae,nn.head,"div");nn.goalColumn!=null&&(At.left=nn.goalColumn),qe.push(At.left);var Hn=gc(Ae,At,de,pe);return pe=="page"&&nn==Re.sel.primary()&&Kr(Ae,Ql(Ae,Hn,"div").top-At.top),Hn},cn),qe.length)for(var vt=0;vt<Re.sel.ranges.length;vt++)Re.sel.ranges[vt].goalColumn=qe[vt]}),findWordAt:function(de){var pe=this.doc,Ae=yn(pe,de.line).text,Re=de.ch,qe=de.ch;if(Ae){var Qe=this.getHelper(de,"wordChars");(de.sticky=="before"||qe==Ae.length)&&Re?--Re:++qe;for(var vt=Ae.charAt(Re),nn=Mt(vt,Qe)?function(At){return Mt(At,Qe)}:/\s/.test(vt)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!Mt(At)};Re>0&&nn(Ae.charAt(Re-1));)--Re;for(;qe<Ae.length&&nn(Ae.charAt(qe));)++qe}return new ar(Kt(de.line,Re),Kt(de.line,qe))},toggleOverwrite:function(de){de!=null&&de==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_t(this.display.cursorDiv,"CodeMirror-overwrite"):Oe(this.display.cursorDiv,"CodeMirror-overwrite"),ht(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==St()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:bn(function(de,pe){Hr(this,de,pe)}),getScrollInfo:function(){var de=this.display.scroller;return{left:de.scrollLeft,top:de.scrollTop,height:de.scrollHeight-vl(this)-this.display.barHeight,width:de.scrollWidth-vl(this)-this.display.barWidth,clientHeight:Bh(this),clientWidth:Ml(this)}},scrollIntoView:bn(function(de,pe){de==null?(de={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof de=="number"?de={from:Kt(de,0),to:null}:de.from==null&&(de={from:de,to:null}),de.to||(de.to=de.from),de.margin=pe||0,de.from.line!=null?zi(this,de):jo(this,de.from,de.to,de.margin)}),setSize:bn(function(de,pe){var Ae=this,Re=function(Qe){return typeof Qe=="number"||/^\d+$/.test(String(Qe))?Qe+"px":Qe};de!=null&&(this.display.wrapper.style.width=Re(de)),pe!=null&&(this.display.wrapper.style.height=Re(pe)),this.options.lineWrapping&&xs(this);var qe=this.display.viewFrom;this.doc.iter(qe,this.display.viewTo,function(Qe){if(Qe.widgets){for(var vt=0;vt<Qe.widgets.length;vt++)if(Qe.widgets[vt].noHScroll){ea(Ae,qe,"widget");break}}++qe}),this.curOp.forceUpdate=!0,ht(this,"refresh",this)}),operation:function(de){return Vt(this,de)},startOperation:function(){return wa(this)},endOperation:function(){return Ms(this)},refresh:bn(function(){var de=this.display.cachedTextHeight;as(this),this.curOp.forceUpdate=!0,ws(this),Hr(this,this.doc.scrollLeft,this.doc.scrollTop),ur(this.display),(de==null||Math.abs(de-oh(this.display))>.5||this.options.lineWrapping)&&mo(this),ht(this,"refresh",this)}),swapDoc:bn(function(de){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),vo(this,de),ws(this),this.display.input.reset(),Hr(this,de.scrollLeft,de.scrollTop),this.curOp.forceScroll=!0,Wi(this,"swapDoc",this,pe),pe}),phrase:function(de){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,de)?pe[de]:de},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}},oi(ie),ie.registerHelper=function(de,pe,Ae){ce.hasOwnProperty(de)||(ce[de]=ie[de]={_global:[]}),ce[de][pe]=Ae},ie.registerGlobalHelper=function(de,pe,Ae,Re){ie.registerHelper(de,pe,Re),ce[de]._global.push({pred:Ae,val:Re})}}function Uf(ie,ae,ce,de,pe){var Ae=ae,Re=ce,qe=yn(ie,ae.line),Qe=pe&&ie.direction=="rtl"?-ce:ce;function vt(){var ro=ae.line+Qe;return ro<ie.first||ro>=ie.first+ie.size?!1:(ae=new Kt(ro,ae.ch,ae.sticky),qe=yn(ie,ro))}function nn(ro){var Wr;if(de=="codepoint"){var So=qe.text.charCodeAt(ae.ch+(de>0?0:-1));isNaN(So)?Wr=null:Wr=new Kt(ae.line,Math.max(0,Math.min(qe.text.length,ae.ch+ce*(So>=55296&&So<56320?2:1))),-ce)}else pe?Wr=hs(ie.cm,qe,ae,ce):Wr=Js(qe,ae,ce);if(Wr==null)if(!ro&&vt())ae=Na(pe,ie.cm,qe,ae.line,Qe);else return!1;else ae=Wr;return!0}if(de=="char"||de=="codepoint")nn();else if(de=="column")nn(!0);else if(de=="word"||de=="group")for(var At=null,Hn=de=="group",Dn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ni=!0;!(ce<0&&!nn(!Ni));Ni=!1){var Bi=qe.text.charAt(ae.ch)||`
|
|
|
`,er=Mt(Bi,Dn)?"w":Hn&&Bi==`
|
|
|
`?"n":!Hn||/\s/.test(Bi)?null:"p";if(Hn&&!Ni&&!er&&(er="s"),At&&At!=er){ce<0&&(ce=1,nn(),ae.sticky="after");break}if(er&&(At=er),ce>0&&!nn(!Ni))break}var Er=bu(ie,ae,Ae,Re,!0);return Wt(Ae,Er)&&(Er.hitSide=!0),Er}function gc(ie,ae,ce,de){var pe=ie.doc,Ae=ae.left,Re;if(de=="page"){var qe=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Qe=Math.max(qe-.5*oh(ie.display),3);Re=(ce>0?ae.bottom:ae.top)+ce*Qe}else de=="line"&&(Re=ce>0?ae.bottom+3:ae.top-3);for(var vt;vt=td(ie,Ae,Re),!!vt.outside;){if(ce<0?Re<=0:Re>=pe.height){vt.hitSide=!0;break}Re+=ce*5}return vt}var ks=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ge,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ks.prototype.init=function(ie){var ae=this,ce=this,de=ce.cm,pe=ce.div=ie.lineDiv;dp(pe,de.options.spellcheck,de.options.autocorrect,de.options.autocapitalize);function Ae(qe){for(var Qe=qe.target;Qe;Qe=Qe.parentNode){if(Qe==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Qe.className))break}return!1}et(pe,"paste",function(qe){!Ae(qe)||Pt(de,qe)||lp(qe,de)||pt<=11&&setTimeout(Ln(de,function(){return ae.updateFromDOM()}),20)}),et(pe,"compositionstart",function(qe){ae.composing={data:qe.data,done:!1}}),et(pe,"compositionupdate",function(qe){ae.composing||(ae.composing={data:qe.data,done:!1})}),et(pe,"compositionend",function(qe){ae.composing&&(qe.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),et(pe,"touchstart",function(){return ce.forceCompositionEnd()}),et(pe,"input",function(){ae.composing||ae.readFromDOMSoon()});function Re(qe){if(!(!Ae(qe)||Pt(de,qe))){if(de.somethingSelected())Zc({lineWise:!1,text:de.getSelections()}),qe.type=="cut"&&de.replaceSelection("",null,"cut");else if(de.options.lineWiseCopyCut){var Qe=hp(de);Zc({lineWise:!0,text:Qe.text}),qe.type=="cut"&&de.operation(function(){de.setSelections(Qe.ranges,0,Dt),de.replaceSelection("",null,"cut")})}else return;if(qe.clipboardData){qe.clipboardData.clearData();var vt=Ou.text.join(`
|
|
|
`);if(qe.clipboardData.setData("Text",vt),qe.clipboardData.getData("Text")==vt){qe.preventDefault();return}}var nn=cp(),At=nn.firstChild;de.display.lineSpace.insertBefore(nn,de.display.lineSpace.firstChild),At.value=Ou.text.join(`
|
|
|
`);var Hn=document.activeElement;qt(At),setTimeout(function(){de.display.lineSpace.removeChild(nn),Hn.focus(),Hn==pe&&ce.showPrimarySelection()},50)}}et(pe,"copy",Re),et(pe,"cut",Re)},ks.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},ks.prototype.prepareSelection=function(){var ie=Zt(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},ks.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},ks.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ks.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ce=ae.doc.sel.primary(),de=ce.from(),pe=ce.to();if(ae.display.viewTo==ae.display.viewFrom||de.line>=ae.display.viewTo||pe.line<ae.display.viewFrom){ie.removeAllRanges();return}var Ae=Xf(ae,ie.anchorNode,ie.anchorOffset),Re=Xf(ae,ie.focusNode,ie.focusOffset);if(!(Ae&&!Ae.bad&&Re&&!Re.bad&&Sn(un(Ae,Re),de)==0&&Sn(gn(Ae,Re),pe)==0)){var qe=ae.display.view,Qe=de.line>=ae.display.viewFrom&&xg(ae,de)||{node:qe[0].measure.map[2],offset:0},vt=pe.line<ae.display.viewTo&&xg(ae,pe);if(!vt){var nn=qe[qe.length-1].measure,At=nn.maps?nn.maps[nn.maps.length-1]:nn.map;vt={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!Qe||!vt){ie.removeAllRanges();return}var Hn=ie.rangeCount&&ie.getRangeAt(0),Dn;try{Dn=Ke(Qe.node,Qe.offset,vt.offset,vt.node)}catch(Ni){}Dn&&(!Ee&&ae.state.focused?(ie.collapse(Qe.node,Qe.offset),Dn.collapsed||(ie.removeAllRanges(),ie.addRange(Dn))):(ie.removeAllRanges(),ie.addRange(Dn)),Hn&&ie.anchorNode==null?ie.addRange(Hn):Ee&&this.startGracePeriod()),this.rememberSelection()}},ks.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)},ks.prototype.showMultipleSelections=function(ie){We(this.cm.display.cursorDiv,ie.cursors),We(this.cm.display.selectionDiv,ie.selection)},ks.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},ks.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Ht(this.div,ae)},ks.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ks.prototype.blur=function(){this.div.blur()},ks.prototype.getField=function(){return this.div},ks.prototype.supportsTouch=function(){return!0},ks.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():Vt(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},ks.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},ks.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&Ct&&this.cm.display.gutterSpecs.length&&fp(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ce=Xf(ae,ie.anchorNode,ie.anchorOffset),de=Xf(ae,ie.focusNode,ie.focusOffset);ce&&de&&Vt(ae,function(){Xa(ae.doc,Io(ce,de),Dt),(ce.bad||de.bad)&&(ae.curOp.selectionChanged=!0)})}}},ks.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,ce=ie.doc.sel.primary(),de=ce.from(),pe=ce.to();if(de.ch==0&&de.line>ie.firstLine()&&(de=Kt(de.line-1,yn(ie.doc,de.line-1).length)),pe.ch==yn(ie.doc,pe.line).text.length&&pe.line<ie.lastLine()&&(pe=Kt(pe.line+1,0)),de.line<ae.viewFrom||pe.line>ae.viewTo-1)return!1;var Ae,Re,qe;de.line==ae.viewFrom||(Ae=yl(ie,de.line))==0?(Re=bt(ae.view[0].line),qe=ae.view[0].node):(Re=bt(ae.view[Ae].line),qe=ae.view[Ae-1].node.nextSibling);var Qe=yl(ie,pe.line),vt,nn;if(Qe==ae.view.length-1?(vt=ae.viewTo-1,nn=ae.lineDiv.lastChild):(vt=bt(ae.view[Qe+1].line)-1,nn=ae.view[Qe+1].node.previousSibling),!qe)return!1;for(var At=ie.doc.splitLines(wf(ie,qe,nn,Re,vt)),Hn=Yn(ie.doc,Kt(Re,0),Kt(vt,yn(ie.doc,vt).text.length));At.length>1&&Hn.length>1;)if(mt(At)==mt(Hn))At.pop(),Hn.pop(),vt--;else if(At[0]==Hn[0])At.shift(),Hn.shift(),Re++;else break;for(var Dn=0,Ni=0,Bi=At[0],er=Hn[0],Er=Math.min(Bi.length,er.length);Dn<Er&&Bi.charCodeAt(Dn)==er.charCodeAt(Dn);)++Dn;for(var ro=mt(At),Wr=mt(Hn),So=Math.min(ro.length-(At.length==1?Dn:0),Wr.length-(Hn.length==1?Dn:0));Ni<So&&ro.charCodeAt(ro.length-Ni-1)==Wr.charCodeAt(Wr.length-Ni-1);)++Ni;if(At.length==1&&Hn.length==1&&Re==de.line)for(;Dn&&Dn>de.ch&&ro.charCodeAt(ro.length-Ni-1)==Wr.charCodeAt(Wr.length-Ni-1);)Dn--,Ni++;At[At.length-1]=ro.slice(0,ro.length-Ni).replace(/^\u200b+/,""),At[0]=At[0].slice(Dn).replace(/\u200b+$/,"");var Jo=Kt(Re,Dn),zr=Kt(vt,Hn.length?mt(Hn).length-Ni:0);if(At.length>1||At[0]||Sn(Jo,zr))return Vu(ie.doc,At,Jo,zr,"+input"),!0},ks.prototype.ensurePolled=function(){this.forceCompositionEnd()},ks.prototype.reset=function(){this.forceCompositionEnd()},ks.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ks.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))},ks.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&Vt(this.cm,function(){return as(ie.cm)})},ks.prototype.setUneditable=function(ie){ie.contentEditable="false"},ks.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Ln(this.cm,Yf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},ks.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},ks.prototype.onContextMenu=function(){},ks.prototype.resetPosition=function(){},ks.prototype.needsContentAttribute=!0;function xg(ie,ae){var ce=Gu(ie,ae.line);if(!ce||ce.hidden)return null;var de=yn(ie.doc,ae.line),pe=Oh(ce,de,ae.line),Ae=He(de,ie.doc.direction),Re="left";if(Ae){var qe=me(Ae,ae.ch);Re=qe%2?"right":"left"}var Qe=ed(pe.map,ae.ch,Re);return Qe.offset=Qe.collapse=="right"?Qe.end:Qe.start,Qe}function fp(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function xf(ie,ae){return ae&&(ie.bad=!0),ie}function wf(ie,ae,ce,de,pe){var Ae="",Re=!1,qe=ie.doc.lineSeparator(),Qe=!1;function vt(Dn){return function(Ni){return Ni.id==Dn}}function nn(){Re&&(Ae+=qe,Qe&&(Ae+=qe),Re=Qe=!1)}function At(Dn){Dn&&(nn(),Ae+=Dn)}function Hn(Dn){if(Dn.nodeType==1){var Ni=Dn.getAttribute("cm-text");if(Ni){At(Ni);return}var Bi=Dn.getAttribute("cm-marker"),er;if(Bi){var Er=ie.findMarks(Kt(de,0),Kt(pe+1,0),vt(+Bi));Er.length&&(er=Er[0].find(0))&&At(Yn(ie.doc,er.from,er.to).join(qe));return}if(Dn.getAttribute("contenteditable")=="false")return;var ro=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;ro&&nn();for(var Wr=0;Wr<Dn.childNodes.length;Wr++)Hn(Dn.childNodes[Wr]);/^(pre|p)$/i.test(Dn.nodeName)&&(Qe=!0),ro&&(Re=!0)}else Dn.nodeType==3&&At(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Hn(ae),ae!=ce;)ae=ae.nextSibling,Qe=!1;return Ae}function Xf(ie,ae,ce){var de;if(ae==ie.display.lineDiv){if(de=ie.display.lineDiv.childNodes[ce],!de)return xf(ie.clipPos(Kt(ie.display.viewTo-1)),!0);ae=null,ce=0}else for(de=ae;;de=de.parentNode){if(!de||de==ie.display.lineDiv)return null;if(de.parentNode&&de.parentNode==ie.display.lineDiv)break}for(var pe=0;pe<ie.display.view.length;pe++){var Ae=ie.display.view[pe];if(Ae.node==de)return dm(Ae,ae,ce)}}function dm(ie,ae,ce){var de=ie.text.firstChild,pe=!1;if(!ae||!Ht(de,ae))return xf(Kt(bt(ie.line),0),!0);if(ae==de&&(pe=!0,ae=de.childNodes[ce],ce=0,!ae)){var Ae=ie.rest?mt(ie.rest):ie.line;return xf(Kt(bt(Ae),Ae.text.length),pe)}var Re=ae.nodeType==3?ae:null,qe=ae;for(!Re&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Re=ae.firstChild,ce&&(ce=Re.nodeValue.length));qe.parentNode!=de;)qe=qe.parentNode;var Qe=ie.measure,vt=Qe.maps;function nn(er,Er,ro){for(var Wr=-1;Wr<(vt?vt.length:0);Wr++)for(var So=Wr<0?Qe.map:vt[Wr],Jo=0;Jo<So.length;Jo+=3){var zr=So[Jo+2];if(zr==er||zr==Er){var va=bt(Wr<0?ie.line:ie.rest[Wr]),Gs=So[Jo]+ro;return(ro<0||zr!=er)&&(Gs=So[Jo+(ro?1:0)]),Kt(va,Gs)}}}var At=nn(Re,qe,ce);if(At)return xf(At,pe);for(var Hn=qe.nextSibling,Dn=Re?Re.nodeValue.length-ce:0;Hn;Hn=Hn.nextSibling){if(At=nn(Hn,Hn.firstChild,0),At)return xf(Kt(At.line,At.ch-Dn),pe);Dn+=Hn.textContent.length}for(var Ni=qe.previousSibling,Bi=ce;Ni;Ni=Ni.previousSibling){if(At=nn(Ni,Ni.firstChild,-1),At)return xf(Kt(At.line,At.ch+Bi),pe);Bi+=Ni.textContent.length}}var wl=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new Ge,this.hasSelection=!1,this.composing=null};wl.prototype.init=function(ie){var ae=this,ce=this,de=this.cm;this.createField(ie);var pe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Te&&(pe.style.width="0px"),et(pe,"input",function(){Xe&&pt>=9&&ae.hasSelection&&(ae.hasSelection=null),ce.poll()}),et(pe,"paste",function(Re){Pt(de,Re)||lp(Re,de)||(de.state.pasteIncoming=+new Date,ce.fastPoll())});function Ae(Re){if(!Pt(de,Re)){if(de.somethingSelected())Zc({lineWise:!1,text:de.getSelections()});else if(de.options.lineWiseCopyCut){var qe=hp(de);Zc({lineWise:!0,text:qe.text}),Re.type=="cut"?de.setSelections(qe.ranges,null,Dt):(ce.prevInput="",pe.value=qe.text.join(`
|
|
|
`),qt(pe))}else return;Re.type=="cut"&&(de.state.cutIncoming=+new Date)}}et(pe,"cut",Ae),et(pe,"copy",Ae),et(ie.scroller,"paste",function(Re){if(!(Ll(ie,Re)||Pt(de,Re))){if(!pe.dispatchEvent){de.state.pasteIncoming=+new Date,ce.focus();return}var qe=new Event("paste");qe.clipboardData=Re.clipboardData,pe.dispatchEvent(qe)}}),et(ie.lineSpace,"selectstart",function(Re){Ll(ie,Re)||ci(Re)}),et(pe,"compositionstart",function(){var Re=de.getCursor("from");ce.composing&&ce.composing.range.clear(),ce.composing={start:Re,range:de.markText(Re,de.getCursor("to"),{className:"CodeMirror-composing"})}}),et(pe,"compositionend",function(){ce.composing&&(ce.poll(),ce.composing.range.clear(),ce.composing=null)})},wl.prototype.createField=function(ie){this.wrapper=cp(),this.textarea=this.wrapper.firstChild},wl.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},wl.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ce=ie.doc,de=Zt(ie);if(ie.options.moveInputWithCursor){var pe=fs(ie,ce.sel.primary().head,"div"),Ae=ae.wrapper.getBoundingClientRect(),Re=ae.lineDiv.getBoundingClientRect();de.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,pe.top+Re.top-Ae.top)),de.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,pe.left+Re.left-Ae.left))}return de},wl.prototype.showSelection=function(ie){var ae=this.cm,ce=ae.display;We(ce.cursorDiv,ie.cursors),We(ce.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},wl.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ce=ae.getSelection();this.textarea.value=ce,ae.state.focused&&qt(this.textarea),Xe&&pt>=9&&(this.hasSelection=ce)}else ie||(this.prevInput=this.textarea.value="",Xe&&pt>=9&&(this.hasSelection=null))}},wl.prototype.getField=function(){return this.textarea},wl.prototype.supportsTouch=function(){return!1},wl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||St()!=this.textarea))try{this.textarea.focus()}catch(ie){}},wl.prototype.blur=function(){this.textarea.blur()},wl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},wl.prototype.receivedFocus=function(){this.slowPoll()},wl.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},wl.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ce(){var de=ae.poll();!de&&!ie?(ie=!0,ae.polling.set(60,ce)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ce)},wl.prototype.poll=function(){var ie=this,ae=this.cm,ce=this.textarea,de=this.prevInput;if(this.contextMenuPending||!ae.state.focused||be(ce)&&!de&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var pe=ce.value;if(pe==de&&!ae.somethingSelected())return!1;if(Xe&&pt>=9&&this.hasSelection===pe||he&&/[\uf700-\uf7ff]/.test(pe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Ae=pe.charCodeAt(0);if(Ae==8203&&!de&&(de="\u200B"),Ae==8666)return this.reset(),this.cm.execCommand("undo")}for(var Re=0,qe=Math.min(de.length,pe.length);Re<qe&&de.charCodeAt(Re)==pe.charCodeAt(Re);)++Re;return Vt(ae,function(){Yf(ae,pe.slice(Re),de.length-Re,null,ie.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
|
|
|
`)>-1?ce.value=ie.prevInput="":ie.prevInput=pe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},wl.prototype.onKeyPress=function(){Xe&&pt>=9&&(this.hasSelection=null),this.fastPoll()},wl.prototype.onContextMenu=function(ie){var ae=this,ce=ae.cm,de=ce.display,pe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Ae=il(ce,ie),Re=de.scroller.scrollTop;if(!Ae||nt)return;var qe=ce.options.resetSelectionOnContextMenu;qe&&ce.doc.sel.contains(Ae)==-1&&Ln(ce,Xa)(ce.doc,Io(Ae),Dt);var Qe=pe.style.cssText,vt=ae.wrapper.style.cssText,nn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-nn.top-5)+"px; left: "+(ie.clientX-nn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Xe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;Fe&&(At=window.scrollY),de.input.focus(),Fe&&window.scrollTo(null,At),de.input.reset(),ce.somethingSelected()||(pe.value=ae.prevInput=" "),ae.contextMenuPending=Dn,de.selForContextMenu=ce.doc.sel,clearTimeout(de.detectingSelectAll);function Hn(){if(pe.selectionStart!=null){var Bi=ce.somethingSelected(),er="\u200B"+(Bi?pe.value:"");pe.value="\u21DA",pe.value=er,ae.prevInput=Bi?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=er.length,de.selForContextMenu=ce.doc.sel}}function Dn(){if(ae.contextMenuPending==Dn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=vt,pe.style.cssText=Qe,Xe&&pt<9&&de.scrollbars.setScrollTop(de.scroller.scrollTop=Re),pe.selectionStart!=null)){(!Xe||Xe&&pt<9)&&Hn();var Bi=0,er=function(){de.selForContextMenu==ce.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&ae.prevInput=="\u200B"?Ln(ce,Ha)(ce):Bi++<10?de.detectingSelectAll=setTimeout(er,500):(de.selForContextMenu=null,de.input.reset())};de.detectingSelectAll=setTimeout(er,200)}}if(Xe&&pt>=9&&Hn(),ke){Ui(ie);var Ni=function(){rn(window,"mouseup",Ni),setTimeout(Dn,20)};et(window,"mouseup",Ni)}else setTimeout(Dn,50)},wl.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},wl.prototype.setUneditable=function(){},wl.prototype.needsContentAttribute=!1;function cm(ie,ae){if(ae=ae?Bn(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ce=St();ae.autofocus=ce==ie||ie.getAttribute("autofocus")!=null&&ce==document.body}function de(){ie.value=qe.getValue()}var pe;if(ie.form&&(et(ie.form,"submit",de),!ae.leaveSubmitMethodAlone)){var Ae=ie.form;pe=Ae.submit;try{var Re=Ae.submit=function(){de(),Ae.submit=pe,Ae.submit(),Ae.submit=Re}}catch(Qe){}}ae.finishInit=function(Qe){Qe.save=de,Qe.getTextArea=function(){return ie},Qe.toTextArea=function(){Qe.toTextArea=isNaN,de(),ie.parentNode.removeChild(Qe.getWrapperElement()),ie.style.display="",ie.form&&(rn(ie.form,"submit",de),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var qe=$a(function(Qe){return ie.parentNode.insertBefore(Qe,ie.nextSibling)},ae);return qe}function Pf(ie){ie.off=rn,ie.on=et,ie.wheelEventPixels=Rr,ie.Doc=fl,ie.splitLines=Vi,ie.countColumn=yt,ie.findColumn=Zn,ie.isWordChar=zt,ie.Pass=Qn,ie.signal=ht,ie.Line=Oa,ie.changeEnd=Zo,ie.scrollbarModel=Ua,ie.Pos=Kt,ie.cmpPos=Sn,ie.modes=$i,ie.mimeModes=fo,ie.resolveMode=vn,ie.getMode=an,ie.modeExtensions=Jt,ie.extendMode=ft,ie.copyState=pn,ie.startState=It,ie.innerMode=Rn,ie.commands=gl,ie.keyMap=Il,ie.keyName=lc,ie.isModifierKey=yd,ie.lookupKey=_l,ie.normalizeKeyMap=Hd,ie.StringStream=lt,ie.SharedTextMarker=sh,ie.TextMarker=Yt,ie.LineWidget=Zs,ie.e_preventDefault=ci,ie.e_stopPropagation=di,ie.e_stop=Ui,ie.addClass=_t,ie.contains=Ht,ie.rmClass=Oe,ie.keyNames=Yu}cc($a),fc($a);var Kd="iter insert remove copy getEditor constructor".split(" ");for(var Jf in fl.prototype)fl.prototype.hasOwnProperty(Jf)&&tn(Kd,Jf)<0&&($a.prototype[Jf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(fl.prototype[Jf]));return oi(fl),$a.inputStyles={textarea:wl,contenteditable:ks},$a.defineMode=function(ie){!$a.defaults.mode&&ie!="null"&&($a.defaults.mode=ie),_r.apply(this,arguments)},$a.defineMIME=Co,$a.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),$a.defineMIME("text/plain","null"),$a.defineExtension=function(ie,ae){$a.prototype[ie]=ae},$a.defineDocExtension=function(ie,ae){fl.prototype[ie]=ae},$a.fromTextArea=cm,Pf($a),$a.version="5.58.2",$a})},25419:function(On,Pn,Se){(function(Ee){Ee(Se(89780),Se(15525),Se(98101))})(function(Ee){"use strict";Ee.defineMode("markdown",function(je,it){var kt=Ee.getMode(je,"text/html"),Xe=kt.name=="null";function pt(yt){if(Ee.findModeByName){var Ge=Ee.findModeByName(yt);Ge&&(yt=Ge.mime||Ge.mimes[0])}var tn=Ee.getMode(je,yt);return tn.name=="null"?null:tn}it.highlightFormatting===void 0&&(it.highlightFormatting=!1),it.maxBlockquoteDepth===void 0&&(it.maxBlockquoteDepth=0),it.taskLists===void 0&&(it.taskLists=!1),it.strikethrough===void 0&&(it.strikethrough=!1),it.emoji===void 0&&(it.emoji=!1),it.fencedCodeBlockHighlighting===void 0&&(it.fencedCodeBlockHighlighting=!0),it.fencedCodeBlockDefaultMode===void 0&&(it.fencedCodeBlockDefaultMode="text/plain"),it.xml===void 0&&(it.xml=!0),it.tokenTypeOverrides===void 0&&(it.tokenTypeOverrides={});var Fe={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ft in Fe)Fe.hasOwnProperty(Ft)&&it.tokenTypeOverrides[Ft]&&(Fe[Ft]=it.tokenTypeOverrides[Ft]);var Ct=/^([*\-_])(?:\s*\1){2,}\s*$/,nt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,gt=/^\[(x| )\](?=\s)/i,wt=it.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,xt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Te=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,se=" ";function ge(yt,Ge,tn){return Ge.f=Ge.inline=tn,tn(yt,Ge)}function ve(yt,Ge,tn){return Ge.f=Ge.block=tn,tn(yt,Ge)}function Pe(yt){return!yt||!/\S/.test(yt.string)}function ke(yt){if(yt.linkTitle=!1,yt.linkHref=!1,yt.linkText=!1,yt.em=!1,yt.strong=!1,yt.strikethrough=!1,yt.quote=0,yt.indentedCode=!1,yt.f==Oe){var Ge=Xe;if(!Ge){var tn=Ee.innerMode(kt,yt.htmlState);Ge=tn.mode.name=="xml"&&tn.state.tagStart===null&&!tn.state.context&&tn.state.tokenize.isInText}Ge&&(yt.f=ut,yt.block=we,yt.htmlState=null)}return yt.trailingSpace=0,yt.trailingSpaceNewLine=!1,yt.prevLine=yt.thisLine,yt.thisLine={stream:null},null}function we(yt,Ge){var tn=yt.column()===Ge.indentation,Wn=Pe(Ge.prevLine.stream),Qn=Ge.indentedCode,Dt=Ge.prevLine.hr,$t=Ge.list!==!1,cn=(Ge.listStack[Ge.listStack.length-1]||0)+3;Ge.indentedCode=!1;var Zn=Ge.indentation;if(Ge.indentationDiff===null&&(Ge.indentationDiff=Ge.indentation,$t)){for(Ge.list=null;Zn<Ge.listStack[Ge.listStack.length-1];)Ge.listStack.pop(),Ge.listStack.length?Ge.indentation=Ge.listStack[Ge.listStack.length-1]:Ge.list=!1;Ge.list!==!1&&(Ge.indentationDiff=Zn-Ge.listStack[Ge.listStack.length-1])}var hn=!Wn&&!Dt&&!Ge.prevLine.header&&(!$t||!Qn)&&!Ge.prevLine.fencedCodeEnd,ii=(Ge.list===!1||Dt||Wn)&&Ge.indentation<=cn&&yt.match(Ct),mt=null;if(Ge.indentationDiff>=4&&(Qn||Ge.prevLine.fencedCodeEnd||Ge.prevLine.header||Wn))return yt.skipToEnd(),Ge.indentedCode=!0,Fe.code;if(yt.eatSpace())return null;if(tn&&Ge.indentation<=cn&&(mt=yt.match(wt))&&mt[1].length<=6)return Ge.quote=0,Ge.header=mt[1].length,Ge.thisLine.header=!0,it.highlightFormatting&&(Ge.formatting="header"),Ge.f=Ge.inline,We(Ge);if(Ge.indentation<=cn&&yt.eat(">"))return Ge.quote=tn?1:Ge.quote+1,it.highlightFormatting&&(Ge.formatting="quote"),yt.eatSpace(),We(Ge);if(!ii&&!Ge.setext&&tn&&Ge.indentation<=cn&&(mt=yt.match(nt))){var Xn=mt[1]?"ol":"ul";return Ge.indentation=Zn+yt.current().length,Ge.list=!0,Ge.quote=0,Ge.listStack.push(Ge.indentation),Ge.em=!1,Ge.strong=!1,Ge.code=!1,Ge.strikethrough=!1,it.taskLists&&yt.match(gt,!1)&&(Ge.taskList=!0),Ge.f=Ge.inline,it.highlightFormatting&&(Ge.formatting=["list","list-"+Xn]),We(Ge)}else{if(tn&&Ge.indentation<=cn&&(mt=yt.match(te,!0)))return Ge.quote=0,Ge.fencedEndRE=new RegExp(mt[1]+"+ *$"),Ge.localMode=it.fencedCodeBlockHighlighting&&pt(mt[2]||it.fencedCodeBlockDefaultMode),Ge.localMode&&(Ge.localState=Ee.startState(Ge.localMode)),Ge.f=Ge.block=ze,it.highlightFormatting&&(Ge.formatting="code-block"),Ge.code=-1,We(Ge);if(Ge.setext||(!hn||!$t)&&!Ge.quote&&Ge.list===!1&&!Ge.code&&!ii&&!ne.test(yt.string)&&(mt=yt.lookAhead(1))&&(mt=mt.match(xt)))return Ge.setext?(Ge.header=Ge.setext,Ge.setext=0,yt.skipToEnd(),it.highlightFormatting&&(Ge.formatting="header")):(Ge.header=mt[0].charAt(0)=="="?1:2,Ge.setext=Ge.header),Ge.thisLine.header=!0,Ge.f=Ge.inline,We(Ge);if(ii)return yt.skipToEnd(),Ge.hr=!0,Ge.thisLine.hr=!0,Fe.hr;if(yt.peek()==="[")return ge(yt,Ge,Qt)}return ge(yt,Ge,Ge.inline)}function Oe(yt,Ge){var tn=kt.token(yt,Ge.htmlState);if(!Xe){var Wn=Ee.innerMode(kt,Ge.htmlState);(Wn.mode.name=="xml"&&Wn.state.tagStart===null&&!Wn.state.context&&Wn.state.tokenize.isInText||Ge.md_inside&&yt.current().indexOf(">")>-1)&&(Ge.f=ut,Ge.block=we,Ge.htmlState=null)}return tn}function ze(yt,Ge){var tn=Ge.listStack[Ge.listStack.length-1]||0,Wn=Ge.indentation<tn,Qn=tn+3;if(Ge.fencedEndRE&&Ge.indentation<=Qn&&(Wn||yt.match(Ge.fencedEndRE))){it.highlightFormatting&&(Ge.formatting="code-block");var Dt;return Wn||(Dt=We(Ge)),Ge.localMode=Ge.localState=null,Ge.block=we,Ge.f=ut,Ge.fencedEndRE=null,Ge.code=0,Ge.thisLine.fencedCodeEnd=!0,Wn?ve(yt,Ge,Ge.block):Dt}else return Ge.localMode?Ge.localMode.token(yt,Ge.localState):(yt.skipToEnd(),Fe.code)}function We(yt){var Ge=[];if(yt.formatting){Ge.push(Fe.formatting),typeof yt.formatting=="string"&&(yt.formatting=[yt.formatting]);for(var tn=0;tn<yt.formatting.length;tn++)Ge.push(Fe.formatting+"-"+yt.formatting[tn]),yt.formatting[tn]==="header"&&Ge.push(Fe.formatting+"-"+yt.formatting[tn]+"-"+yt.header),yt.formatting[tn]==="quote"&&(!it.maxBlockquoteDepth||it.maxBlockquoteDepth>=yt.quote?Ge.push(Fe.formatting+"-"+yt.formatting[tn]+"-"+yt.quote):Ge.push("error"))}if(yt.taskOpen)return Ge.push("meta"),Ge.length?Ge.join(" "):null;if(yt.taskClosed)return Ge.push("property"),Ge.length?Ge.join(" "):null;if(yt.linkHref?Ge.push(Fe.linkHref,"url"):(yt.strong&&Ge.push(Fe.strong),yt.em&&Ge.push(Fe.em),yt.strikethrough&&Ge.push(Fe.strikethrough),yt.emoji&&Ge.push(Fe.emoji),yt.linkText&&Ge.push(Fe.linkText),yt.code&&Ge.push(Fe.code),yt.image&&Ge.push(Fe.image),yt.imageAltText&&Ge.push(Fe.imageAltText,"link"),yt.imageMarker&&Ge.push(Fe.imageMarker)),yt.header&&Ge.push(Fe.header,Fe.header+"-"+yt.header),yt.quote&&(Ge.push(Fe.quote),!it.maxBlockquoteDepth||it.maxBlockquoteDepth>=yt.quote?Ge.push(Fe.quote+"-"+yt.quote):Ge.push(Fe.quote+"-"+it.maxBlockquoteDepth)),yt.list!==!1){var Wn=(yt.listStack.length-1)%3;Wn?Wn===1?Ge.push(Fe.list2):Ge.push(Fe.list3):Ge.push(Fe.list1)}return yt.trailingSpaceNewLine?Ge.push("trailing-space-new-line"):yt.trailingSpace&&Ge.push("trailing-space-"+(yt.trailingSpace%2?"a":"b")),Ge.length?Ge.join(" "):null}function Ue(yt,Ge){if(yt.match(Te,!0))return We(Ge)}function ut(yt,Ge){var tn=Ge.text(yt,Ge);if(typeof tn!="undefined")return tn;if(Ge.list)return Ge.list=null,We(Ge);if(Ge.taskList){var Wn=yt.match(gt,!0)[1]===" ";return Wn?Ge.taskOpen=!0:Ge.taskClosed=!0,it.highlightFormatting&&(Ge.formatting="task"),Ge.taskList=!1,We(Ge)}if(Ge.taskOpen=!1,Ge.taskClosed=!1,Ge.header&&yt.match(/^#+$/,!0))return it.highlightFormatting&&(Ge.formatting="header"),We(Ge);var Qn=yt.next();if(Ge.linkTitle){Ge.linkTitle=!1;var Dt=Qn;Qn==="("&&(Dt=")"),Dt=(Dt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $t="^\\s*(?:[^"+Dt+"\\\\]+|\\\\\\\\|\\\\.)"+Dt;if(yt.match(new RegExp($t),!0))return Fe.linkHref}if(Qn==="`"){var cn=Ge.formatting;it.highlightFormatting&&(Ge.formatting="code"),yt.eatWhile("`");var Zn=yt.current().length;if(Ge.code==0&&(!Ge.quote||Zn==1))return Ge.code=Zn,We(Ge);if(Zn==Ge.code){var hn=We(Ge);return Ge.code=0,hn}else return Ge.formatting=cn,We(Ge)}else if(Ge.code)return We(Ge);if(Qn==="\\"&&(yt.next(),it.highlightFormatting)){var ii=We(Ge),mt=Fe.formatting+"-escape";return ii?ii+" "+mt:mt}if(Qn==="!"&&yt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ge.imageMarker=!0,Ge.image=!0,it.highlightFormatting&&(Ge.formatting="image"),We(Ge);if(Qn==="["&&Ge.imageMarker&&yt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ge.imageMarker=!1,Ge.imageAltText=!0,it.highlightFormatting&&(Ge.formatting="image"),We(Ge);if(Qn==="]"&&Ge.imageAltText){it.highlightFormatting&&(Ge.formatting="image");var ii=We(Ge);return Ge.imageAltText=!1,Ge.image=!1,Ge.inline=Ge.f=Ht,ii}if(Qn==="["&&!Ge.image)return Ge.linkText&&yt.match(/^.*?\]/)||(Ge.linkText=!0,it.highlightFormatting&&(Ge.formatting="link")),We(Ge);if(Qn==="]"&&Ge.linkText){it.highlightFormatting&&(Ge.formatting="link");var ii=We(Ge);return Ge.linkText=!1,Ge.inline=Ge.f=yt.match(/\(.*?\)| ?\[.*?\]/,!1)?Ht:ut,ii}if(Qn==="<"&&yt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=Ke,it.highlightFormatting&&(Ge.formatting="link");var ii=We(Ge);return ii?ii+=" ":ii="",ii+Fe.linkInline}if(Qn==="<"&&yt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=Ke,it.highlightFormatting&&(Ge.formatting="link");var ii=We(Ge);return ii?ii+=" ":ii="",ii+Fe.linkEmail}if(it.xml&&Qn==="<"&&yt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Xn=yt.string.indexOf(">",yt.pos);if(Xn!=-1){var ri=yt.string.substring(yt.start,Xn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ri)&&(Ge.md_inside=!0)}return yt.backUp(1),Ge.htmlState=Ee.startState(kt),ve(yt,Ge,Oe)}if(it.xml&&Qn==="<"&&yt.match(/^\/\w*?>/))return Ge.md_inside=!1,"tag";if(Qn==="*"||Qn==="_"){for(var pi=1,Mn=yt.pos==1?" ":yt.string.charAt(yt.pos-2);pi<3&&yt.eat(Qn);)pi++;var Gt=yt.peek()||" ",zt=!/\s/.test(Gt)&&(!he.test(Gt)||/\s/.test(Mn)||he.test(Mn)),Mt=!/\s/.test(Mn)&&(!he.test(Mn)||/\s/.test(Gt)||he.test(Gt)),at=null,jt=null;if(pi%2&&(!Ge.em&&zt&&(Qn==="*"||!Mt||he.test(Mn))?at=!0:Ge.em==Qn&&Mt&&(Qn==="*"||!zt||he.test(Gt))&&(at=!1)),pi>1&&(!Ge.strong&&zt&&(Qn==="*"||!Mt||he.test(Mn))?jt=!0:Ge.strong==Qn&&Mt&&(Qn==="*"||!zt||he.test(Gt))&&(jt=!1)),jt!=null||at!=null){it.highlightFormatting&&(Ge.formatting=at==null?"strong":jt==null?"em":"strong em"),at===!0&&(Ge.em=Qn),jt===!0&&(Ge.strong=Qn);var hn=We(Ge);return at===!1&&(Ge.em=!1),jt===!1&&(Ge.strong=!1),hn}}else if(Qn===" "&&(yt.eat("*")||yt.eat("_"))){if(yt.peek()===" ")return We(Ge);yt.backUp(1)}if(it.strikethrough){if(Qn==="~"&&yt.eatWhile(Qn)){if(Ge.strikethrough){it.highlightFormatting&&(Ge.formatting="strikethrough");var hn=We(Ge);return Ge.strikethrough=!1,hn}else if(yt.match(/^[^\s]/,!1))return Ge.strikethrough=!0,it.highlightFormatting&&(Ge.formatting="strikethrough"),We(Ge)}else if(Qn===" "&&yt.match(/^~~/,!0)){if(yt.peek()===" ")return We(Ge);yt.backUp(2)}}if(it.emoji&&Qn===":"&&yt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ge.emoji=!0,it.highlightFormatting&&(Ge.formatting="emoji");var Et=We(Ge);return Ge.emoji=!1,Et}return Qn===" "&&(yt.match(/^ +$/,!1)?Ge.trailingSpace++:Ge.trailingSpace&&(Ge.trailingSpaceNewLine=!0)),We(Ge)}function Ke(yt,Ge){var tn=yt.next();if(tn===">"){Ge.f=Ge.inline=ut,it.highlightFormatting&&(Ge.formatting="link");var Wn=We(Ge);return Wn?Wn+=" ":Wn="",Wn+Fe.linkInline}return yt.match(/^[^>]+/,!0),Fe.linkInline}function Ht(yt,Ge){if(yt.eatSpace())return null;var tn=yt.next();return tn==="("||tn==="["?(Ge.f=Ge.inline=_t(tn==="("?")":"]"),it.highlightFormatting&&(Ge.formatting="link-string"),Ge.linkHref=!0,We(Ge)):"error"}var St={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function _t(yt){return function(Ge,tn){var Wn=Ge.next();if(Wn===yt){tn.f=tn.inline=ut,it.highlightFormatting&&(tn.formatting="link-string");var Qn=We(tn);return tn.linkHref=!1,Qn}return Ge.match(St[yt]),tn.linkHref=!0,We(tn)}}function Qt(yt,Ge){return yt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ge.f=qt,yt.next(),it.highlightFormatting&&(Ge.formatting="link"),Ge.linkText=!0,We(Ge)):ge(yt,Ge,ut)}function qt(yt,Ge){if(yt.match(/^\]:/,!0)){Ge.f=Ge.inline=sn,it.highlightFormatting&&(Ge.formatting="link");var tn=We(Ge);return Ge.linkText=!1,tn}return yt.match(/^([^\]\\]|\\.)+/,!0),Fe.linkText}function sn(yt,Ge){return yt.eatSpace()?null:(yt.match(/^[^\s]+/,!0),yt.peek()===void 0?Ge.linkTitle=!0:yt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ge.f=Ge.inline=ut,Fe.linkHref+" url")}var Bn={startState:function(){return{f:we,prevLine:{stream:null},thisLine:{stream:null},block:we,htmlState:null,indentation:0,inline:ut,text:Ue,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(yt){return{f:yt.f,prevLine:yt.prevLine,thisLine:yt.thisLine,block:yt.block,htmlState:yt.htmlState&&Ee.copyState(kt,yt.htmlState),indentation:yt.indentation,localMode:yt.localMode,localState:yt.localMode?Ee.copyState(yt.localMode,yt.localState):null,inline:yt.inline,text:yt.text,formatting:!1,linkText:yt.linkText,linkTitle:yt.linkTitle,linkHref:yt.linkHref,code:yt.code,em:yt.em,strong:yt.strong,strikethrough:yt.strikethrough,emoji:yt.emoji,header:yt.header,setext:yt.setext,hr:yt.hr,taskList:yt.taskList,list:yt.list,listStack:yt.listStack.slice(0),quote:yt.quote,indentedCode:yt.indentedCode,trailingSpace:yt.trailingSpace,trailingSpaceNewLine:yt.trailingSpaceNewLine,md_inside:yt.md_inside,fencedEndRE:yt.fencedEndRE}},token:function(yt,Ge){if(Ge.formatting=!1,yt!=Ge.thisLine.stream){if(Ge.header=0,Ge.hr=!1,yt.match(/^\s*$/,!0))return ke(Ge),null;if(Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:yt},Ge.taskList=!1,Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,!Ge.localState&&(Ge.f=Ge.block,Ge.f!=Oe)){var tn=yt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(Ge.indentation=tn,Ge.indentationDiff=null,tn>0)return null}}return Ge.f(yt,Ge)},innerMode:function(yt){return yt.block==Oe?{state:yt.htmlState,mode:kt}:yt.localState?{state:yt.localState,mode:yt.localMode}:{state:yt,mode:Bn}},indent:function(yt,Ge,tn){return yt.block==Oe&&kt.indent?kt.indent(yt.htmlState,Ge,tn):yt.localState&&yt.localMode.indent?yt.localMode.indent(yt.localState,Ge,tn):Ee.Pass},blankLine:ke,getType:We,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Bn},"xml"),Ee.defineMIME("text/markdown","markdown"),Ee.defineMIME("text/x-markdown","markdown")})},98101:function(On,Pn,Se){(function(Ee){Ee(Se(89780))})(function(Ee){"use strict";Ee.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 je=0;je<Ee.modeInfo.length;je++){var it=Ee.modeInfo[je];it.mimes&&(it.mime=it.mimes[0])}Ee.findModeByMIME=function(kt){kt=kt.toLowerCase();for(var Xe=0;Xe<Ee.modeInfo.length;Xe++){var pt=Ee.modeInfo[Xe];if(pt.mime==kt)return pt;if(pt.mimes){for(var Fe=0;Fe<pt.mimes.length;Fe++)if(pt.mimes[Fe]==kt)return pt}}if(/\+xml$/.test(kt))return Ee.findModeByMIME("application/xml");if(/\+json$/.test(kt))return Ee.findModeByMIME("application/json")},Ee.findModeByExtension=function(kt){kt=kt.toLowerCase();for(var Xe=0;Xe<Ee.modeInfo.length;Xe++){var pt=Ee.modeInfo[Xe];if(pt.ext){for(var Fe=0;Fe<pt.ext.length;Fe++)if(pt.ext[Fe]==kt)return pt}}},Ee.findModeByFileName=function(kt){for(var Xe=0;Xe<Ee.modeInfo.length;Xe++){var pt=Ee.modeInfo[Xe];if(pt.file&&pt.file.test(kt))return pt}var Fe=kt.lastIndexOf("."),Ft=Fe>-1&&kt.substring(Fe+1,kt.length);if(Ft)return Ee.findModeByExtension(Ft)},Ee.findModeByName=function(kt){kt=kt.toLowerCase();for(var Xe=0;Xe<Ee.modeInfo.length;Xe++){var pt=Ee.modeInfo[Xe];if(pt.name.toLowerCase()==kt)return pt;if(pt.alias){for(var Fe=0;Fe<pt.alias.length;Fe++)if(pt.alias[Fe].toLowerCase()==kt)return pt}}}})},67549:function(On,Pn,Se){(function(Ee){Ee(Se(89780))})(function(Ee){"use strict";Ee.defineMode("stex",function(je,it){"use strict";function kt(Te,te){Te.cmdState.push(te)}function Xe(Te){return Te.cmdState.length>0?Te.cmdState[Te.cmdState.length-1]:null}function pt(Te){var te=Te.cmdState.pop();te&&te.closeBracket()}function Fe(Te){for(var te=Te.cmdState,ne=te.length-1;ne>=0;ne--){var he=te[ne];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function Ft(Te,te,ne){return function(){this.name=Te,this.bracketNo=0,this.style=te,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ct={};Ct.importmodule=Ft("importmodule","tag",["string","builtin"]),Ct.documentclass=Ft("documentclass","tag",["","atom"]),Ct.usepackage=Ft("usepackage","tag",["atom"]),Ct.begin=Ft("begin","tag",["atom"]),Ct.end=Ft("end","tag",["atom"]),Ct.label=Ft("label","tag",["atom"]),Ct.ref=Ft("ref","tag",["atom"]),Ct.eqref=Ft("eqref","tag",["atom"]),Ct.cite=Ft("cite","tag",["atom"]),Ct.bibitem=Ft("bibitem","tag",["atom"]),Ct.Bibitem=Ft("Bibitem","tag",["atom"]),Ct.RBibitem=Ft("RBibitem","tag",["atom"]),Ct.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function nt(Te,te){Te.f=te}function gt(Te,te){var ne;if(Te.match(/^\\[a-zA-Z@]+/)){var he=Te.current().slice(1);return ne=Ct.hasOwnProperty(he)?Ct[he]:Ct.DEFAULT,ne=new ne,kt(te,ne),nt(te,xt),ne.style}if(Te.match(/^\\[$&%#{}_]/)||Te.match(/^\\[,;!\/\\]/))return"tag";if(Te.match("\\["))return nt(te,function(ge,ve){return wt(ge,ve,"\\]")}),"keyword";if(Te.match("\\("))return nt(te,function(ge,ve){return wt(ge,ve,"\\)")}),"keyword";if(Te.match("$$"))return nt(te,function(ge,ve){return wt(ge,ve,"$$")}),"keyword";if(Te.match("$"))return nt(te,function(ge,ve){return wt(ge,ve,"$")}),"keyword";var se=Te.next();if(se=="%")return Te.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=Xe(te),ne)ne.closeBracket(se),nt(te,xt);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=Ct.DEFAULT,ne=new ne,kt(te,ne),"bracket"):/\d/.test(se)?(Te.eatWhile(/[\w.%]/),"atom"):(Te.eatWhile(/[\w\-_]/),ne=Fe(te),ne.name=="begin"&&(ne.argument=Te.current()),ne.styleIdentifier())}function wt(Te,te,ne){if(Te.eatSpace())return null;if(ne&&Te.match(ne))return nt(te,gt),"keyword";if(Te.match(/^\\[a-zA-Z@]+/))return"tag";if(Te.match(/^[a-zA-Z]+/))return"variable-2";if(Te.match(/^\\[$&%#{}_]/)||Te.match(/^\\[,;!\/]/)||Te.match(/^[\^_&]/))return"tag";if(Te.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Te.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Te.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Te.skipToEnd(),"comment"):"error"}function xt(Te,te){var ne=Te.peek(),he;return ne=="{"||ne=="["?(he=Xe(te),he.openBracket(ne),Te.eat(ne),nt(te,gt),"bracket"):/[ \t\r]/.test(ne)?(Te.eat(ne),null):(nt(te,gt),pt(te),gt(Te,te))}return{startState:function(){var Te=it.inMathMode?function(te,ne){return wt(te,ne)}:gt;return{cmdState:[],f:Te}},copyState:function(Te){return{cmdState:Te.cmdState.slice(),f:Te.f}},token:function(Te,te){return te.f(Te,te)},blankLine:function(Te){Te.f=gt,Te.cmdState.length=0},lineComment:"%"}}),Ee.defineMIME("text/x-stex","stex"),Ee.defineMIME("text/x-latex","stex")})},15525:function(On,Pn,Se){(function(Ee){Ee(Se(89780))})(function(Ee){"use strict";var je={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},it={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ee.defineMode("xml",function(kt,Xe){var pt=kt.indentUnit,Fe={},Ft=Xe.htmlMode?je:it;for(var Ct in Ft)Fe[Ct]=Ft[Ct];for(var Ct in Xe)Fe[Ct]=Xe[Ct];var nt,gt;function wt(Ke,Ht){function St(qt){return Ht.tokenize=qt,qt(Ke,Ht)}var _t=Ke.next();if(_t=="<")return Ke.eat("!")?Ke.eat("[")?Ke.match("CDATA[")?St(te("atom","]]>")):null:Ke.match("--")?St(te("comment","-->")):Ke.match("DOCTYPE",!0,!0)?(Ke.eatWhile(/[\w\._\-]/),St(ne(1))):null:Ke.eat("?")?(Ke.eatWhile(/[\w\._\-]/),Ht.tokenize=te("meta","?>"),"meta"):(nt=Ke.eat("/")?"closeTag":"openTag",Ht.tokenize=xt,"tag bracket");if(_t=="&"){var Qt;return Ke.eat("#")?Ke.eat("x")?Qt=Ke.eatWhile(/[a-fA-F\d]/)&&Ke.eat(";"):Qt=Ke.eatWhile(/[\d]/)&&Ke.eat(";"):Qt=Ke.eatWhile(/[\w\.\-:]/)&&Ke.eat(";"),Qt?"atom":"error"}else return Ke.eatWhile(/[^&<]/),null}wt.isInText=!0;function xt(Ke,Ht){var St=Ke.next();if(St==">"||St=="/"&&Ke.eat(">"))return Ht.tokenize=wt,nt=St==">"?"endTag":"selfcloseTag","tag bracket";if(St=="=")return nt="equals",null;if(St=="<"){Ht.tokenize=wt,Ht.state=ve,Ht.tagName=Ht.tagStart=null;var _t=Ht.tokenize(Ke,Ht);return _t?_t+" tag error":"tag error"}else return/[\'\"]/.test(St)?(Ht.tokenize=Te(St),Ht.stringStartCol=Ke.column(),Ht.tokenize(Ke,Ht)):(Ke.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Te(Ke){var Ht=function(St,_t){for(;!St.eol();)if(St.next()==Ke){_t.tokenize=xt;break}return"string"};return Ht.isInAttribute=!0,Ht}function te(Ke,Ht){return function(St,_t){for(;!St.eol();){if(St.match(Ht)){_t.tokenize=wt;break}St.next()}return Ke}}function ne(Ke){return function(Ht,St){for(var _t;(_t=Ht.next())!=null;){if(_t=="<")return St.tokenize=ne(Ke+1),St.tokenize(Ht,St);if(_t==">")if(Ke==1){St.tokenize=wt;break}else return St.tokenize=ne(Ke-1),St.tokenize(Ht,St)}return"meta"}}function he(Ke,Ht,St){this.prev=Ke.context,this.tagName=Ht,this.indent=Ke.indented,this.startOfLine=St,(Fe.doNotIndent.hasOwnProperty(Ht)||Ke.context&&Ke.context.noIndent)&&(this.noIndent=!0)}function se(Ke){Ke.context&&(Ke.context=Ke.context.prev)}function ge(Ke,Ht){for(var St;;){if(!Ke.context||(St=Ke.context.tagName,!Fe.contextGrabbers.hasOwnProperty(St)||!Fe.contextGrabbers[St].hasOwnProperty(Ht)))return;se(Ke)}}function ve(Ke,Ht,St){return Ke=="openTag"?(St.tagStart=Ht.column(),Pe):Ke=="closeTag"?ke:ve}function Pe(Ke,Ht,St){return Ke=="word"?(St.tagName=Ht.current(),gt="tag",ze):Fe.allowMissingTagName&&Ke=="endTag"?(gt="tag bracket",ze(Ke,Ht,St)):(gt="error",Pe)}function ke(Ke,Ht,St){if(Ke=="word"){var _t=Ht.current();return St.context&&St.context.tagName!=_t&&Fe.implicitlyClosed.hasOwnProperty(St.context.tagName)&&se(St),St.context&&St.context.tagName==_t||Fe.matchClosing===!1?(gt="tag",we):(gt="tag error",Oe)}else return Fe.allowMissingTagName&&Ke=="endTag"?(gt="tag bracket",we(Ke,Ht,St)):(gt="error",Oe)}function we(Ke,Ht,St){return Ke!="endTag"?(gt="error",we):(se(St),ve)}function Oe(Ke,Ht,St){return gt="error",we(Ke,Ht,St)}function ze(Ke,Ht,St){if(Ke=="word")return gt="attribute",We;if(Ke=="endTag"||Ke=="selfcloseTag"){var _t=St.tagName,Qt=St.tagStart;return St.tagName=St.tagStart=null,Ke=="selfcloseTag"||Fe.autoSelfClosers.hasOwnProperty(_t)?ge(St,_t):(ge(St,_t),St.context=new he(St,_t,Qt==St.indented)),ve}return gt="error",ze}function We(Ke,Ht,St){return Ke=="equals"?Ue:(Fe.allowMissing||(gt="error"),ze(Ke,Ht,St))}function Ue(Ke,Ht,St){return Ke=="string"?ut:Ke=="word"&&Fe.allowUnquoted?(gt="string",ze):(gt="error",ze(Ke,Ht,St))}function ut(Ke,Ht,St){return Ke=="string"?ut:ze(Ke,Ht,St)}return{startState:function(Ke){var Ht={tokenize:wt,state:ve,indented:Ke||0,tagName:null,tagStart:null,context:null};return Ke!=null&&(Ht.baseIndent=Ke),Ht},token:function(Ke,Ht){if(!Ht.tagName&&Ke.sol()&&(Ht.indented=Ke.indentation()),Ke.eatSpace())return null;nt=null;var St=Ht.tokenize(Ke,Ht);return(St||nt)&&St!="comment"&&(gt=null,Ht.state=Ht.state(nt||St,Ke,Ht),gt&&(St=gt=="error"?St+" error":gt)),St},indent:function(Ke,Ht,St){var _t=Ke.context;if(Ke.tokenize.isInAttribute)return Ke.tagStart==Ke.indented?Ke.stringStartCol+1:Ke.indented+pt;if(_t&&_t.noIndent)return Ee.Pass;if(Ke.tokenize!=xt&&Ke.tokenize!=wt)return St?St.match(/^(\s*)/)[0].length:0;if(Ke.tagName)return Fe.multilineTagIndentPastTag!==!1?Ke.tagStart+Ke.tagName.length+2:Ke.tagStart+pt*(Fe.multilineTagIndentFactor||1);if(Fe.alignCDATA&&/<!\[CDATA\[/.test(Ht))return 0;var Qt=Ht&&/^<(\/)?([\w_:\.-]*)/.exec(Ht);if(Qt&&Qt[1])for(;_t;)if(_t.tagName==Qt[2]){_t=_t.prev;break}else if(Fe.implicitlyClosed.hasOwnProperty(_t.tagName))_t=_t.prev;else break;else if(Qt)for(;_t;){var qt=Fe.contextGrabbers[_t.tagName];if(qt&&qt.hasOwnProperty(Qt[2]))_t=_t.prev;else break}for(;_t&&_t.prev&&!_t.startOfLine;)_t=_t.prev;return _t?_t.indent+pt:Ke.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Fe.htmlMode?"html":"xml",helperType:Fe.htmlMode?"html":"xml",skipAttribute:function(Ke){Ke.state==Ue&&(Ke.state=ze)},xmlCurrentTag:function(Ke){return Ke.tagName?{name:Ke.tagName,close:Ke.type=="closeTag"}:null},xmlCurrentContext:function(Ke){for(var Ht=[],St=Ke.context;St;St=St.prev)St.tagName&&Ht.push(St.tagName);return Ht.reverse()}}}),Ee.defineMIME("text/xml","xml"),Ee.defineMIME("application/xml","xml"),Ee.mimeModes.hasOwnProperty("text/html")||Ee.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(On,Pn,Se){"use strict";Se.d(Pn,{$u:function(){return Ct},BD:function(){return pi},E9:function(){return Ft},FF:function(){return wr},FJ:function(){return ve},Hn:function(){return ge},KX:function(){return ke},NB:function(){return De},S0:function(){return mt},UL:function(){return nt},Vk:function(){return se},Vm:function(){return me},YI:function(){return Xn},ZA:function(){return it},Zt:function(){return gt},al:function(){return at},bn:function(){return Mt},bx:function(){return Mn},g2:function(){return ri},h1:function(){return Ue},hD:function(){return oi},l4:function(){return pt},rU:function(){return xe},s_:function(){return Gt},uz:function(){return ot},z6:function(){return wt}}),On=Se.hmd(On),function(){var be;function Pi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Gi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Pi(a)}}function hr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var $i=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},fo;if(typeof Object.setPrototypeOf=="function")fo=Object.setPrototypeOf;else{var _r;e:{var Co={a:!0},vn={};try{vn.__proto__=Co,_r=vn.a;break e}catch(a){}_r=!1}fo=_r?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var an=fo;function Jt(a,y){if(a.prototype=$i(y.prototype),a.prototype.constructor=a,an)an(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 ft=typeof Se.g!="undefined"&&Se.g!=null?Se.g:self,pn=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},Rn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function It(a,y){if(y){var x=ft;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&&Rn(x,a,{writable:!0,value:y})}}It("Object.assign",function(a){return a||pn}),It("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 lt=typeof globalThis=="object"&&globalThis||typeof Se.g=="object"&&Se.g.global===Se.g&&Se.g||typeof self=="object"&&self.self===self&&self||{};lt.requestAnimationFrame===void 0&&(lt.setImmediate===void 0?lt.requestAnimationFrame=function(a){lt.setTimeout(a,0)}:lt.requestAnimationFrame=lt.setImmediate);function yn(){}function Yn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&<.clearTimeout(x),x=Di(function(){x=-1,a.apply(b,E)},y)}}function Di(a,y){return lt.setTimeout(a,y)}function Cn(a){return lt.document.createElement(a)}function bt(a){throw Error(a)}function In(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),bt(a)}function gi(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),bt(x+" is not in the range "+y+": "+a)}function Oi(a){lt.console&<.console.log(a)}function Kt(a){return typeof a=="object"&&a!==null}function Sn(a){return Array.isArray(a)||lt.NodeList&&a instanceof lt.NodeList||lt.HTMLCollection&&a instanceof lt.HTMLCollection}function Wt(a){return Array.prototype.slice.call(a)}function on(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):bt("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):bt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function un(){var a=qi.pop();return a===void 0?[]:a}function En(a){a.length=0,qi.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(Kt(a)&&a.constructor)return Nn(a.constructor);return typeof a}function Vn(a){var y=a;return Kt(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 $n(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 Tn(a,y,x){Object.defineProperty(zn.prototype,a,{get:y,set:x})}function ai(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 z="",ee=0;ee<a.length;ee++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Qi=lt.navigator!==void 0&&0<lt.navigator.userAgent.indexOf("Trident/7"),Lr=lt.navigator!==void 0&<.navigator.platform!==void 0&<.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,qi=[];Object.freeze([]),yn.className="Util",yn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",yn.adym="gojs.net",yn.vfo="28e645fdb266",yn.className="Util";function Bt(a,y,x){Ir(this),this.j=a,this.xa=y,this.o=x}Bt.prototype.toString=function(){return"EnumValue."+this.xa};function Si(a,y){return y==null||y===""?null:a[y]}ft.Object.defineProperties(Bt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Bt.className="EnumValue";function Hi(){this.ew=[]}Hi.prototype.toString=function(){return this.ew.join("")},Hi.prototype.add=function(a){a!==""&&this.ew.push(a)},Hi.className="StringBuilder";function ki(){}ki.className="PropertyCollection";var Pr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){lt.console&<.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 z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function yr(){}yr.prototype.reset=function(){},yr.prototype.next=function(){return!1},yr.prototype.Ad=function(){return!1},yr.prototype.first=function(){return null},yr.prototype.any=function(){return!1},yr.prototype.all=function(){return!0},yr.prototype.each=function(){return this},yr.prototype.map=function(){return this},yr.prototype.filter=function(){return this},yr.prototype.de=function(){},yr.prototype.toString=function(){return"EmptyIterator"},ft.Object.defineProperties(yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),yr.prototype.first=yr.prototype.first,yr.prototype.hasNext=yr.prototype.Ad,yr.prototype.next=yr.prototype.next,yr.prototype.reset=yr.prototype.reset;var kr=null;yr.className="EmptyIterator",kr=new yr;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):kr},rr.prototype.de=function(){this.value=null},rr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},ft.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 Ri(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ri.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ri.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},Ri.prototype.Ad=function(){return this.next()},Ri.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},Ri.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 z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Ri.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 z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Ri.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 z=y[E];(b===null||b(z))&&a(z)}return this},Ri.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,z=0;z<b;z++){var ee=y[z];(E===null||E(ee))&&x.push(a(ee))}return a=new xn,a.s=x,a.xb(),a.iterator},Ri.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,z=0;z<b;z++){var ee=y[z];(E===null||E(ee))&&a(ee)&&x.push(ee)}return a=new xn,a.s=x,a.xb(),a.iterator},Ri.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ri.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},ft.Object.defineProperties(Ri.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}}}),Ri.prototype.first=Ri.prototype.first,Ri.prototype.hasNext=Ri.prototype.Ad,Ri.prototype.next=Ri.prototype.next,Ri.prototype.reset=Ri.prototype.reset,Ri.className="ListIterator";function Gr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Gr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Gr.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)},Gr.prototype.Ad=function(){return this.next()},Gr.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},Gr.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},Gr.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},Gr.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},Gr.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 xn,a.s=x,a.xb(),a.iterator},Gr.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 xn,a.s=x,a.xb(),a.iterator},Gr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Gr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ft.Object.defineProperties(Gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Gr.prototype.first=Gr.prototype.first,Gr.prototype.hasNext=Gr.prototype.Ad,Gr.prototype.next=Gr.prototype.next,Gr.prototype.reset=Gr.prototype.reset,Gr.className="ListIteratorBackwards";function xn(a){Ir(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=xn.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"List()#"+oo(this)},be.add=function(a){return a===null?this:(this._isFrozen&&In(this,a),this.s.push(a),this.xb(),this)},be.push=function(a){this.add(a)},be.addAll=function(a){if(a===null)return this;this._isFrozen&&In(this);var y=this.s;if(Sn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},be.clear=function(){this._isFrozen&&In(this),this.s.length=0,this.xb()},be.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},be.has=function(a){return this.contains(a)},be.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},be.M=function(a){var y=this.s;return(0>a||a>=y.length)&&gi(a,"0 <= i < length",xn,"elt:i"),y[a]},be.get=function(a){return this.M(a)},be.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&gi(a,"0 <= i < length",xn,"setElt:i"),this._isFrozen&&In(this,a),x[a]=y},be.set=function(a,y){this.cd(a,y)},be.first=function(){var a=this.s;return a.length===0?null:a[0]},be.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},be.pop=function(){this._isFrozen&&In(this);var a=this.s;return 0<a.length?a.pop():null},xn.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},xn.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},xn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},xn.prototype.map=function(a){for(var y=new xn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},xn.prototype.filter=function(a){for(var y=new xn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var ee=b[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},be=xn.prototype,be.Gb=function(a,y){0>a&&gi(a,">= 0",xn,"insertAt:i"),this._isFrozen&&In(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},be.remove=function(a){if(a===null)return!1;this._isFrozen&&In(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)},be.delete=function(a){return this.remove(a)},be.mb=function(a){var y=this.s;(0>a||a>=y.length)&&gi(a,"0 <= i < length",xn,"removeAt:i"),this._isFrozen&&In(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},be.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&&In(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},xn.prototype.copy=function(){var a=new xn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},be=xn.prototype,be.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},be.Iv=function(){for(var a=new An,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},be.sort=function(a){return this._isFrozen&&In(this),this.s.sort(a),this.xb(),this},be.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&In(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&gi(y,"0 <= from < length",xn,"sortRange:from"),z===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},be.reverse=function(){return this._isFrozen&&In(this),this.s.reverse(),this.xb(),this},ft.Object.defineProperties(xn.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 kr;var a=this.Sa;return a!==null?(a.reset(),a):new Ri(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return kr;var a=this.Hg;return a!==null?(a.reset(),a):new Gr(this)}}}),xn.prototype.reverse=xn.prototype.reverse,xn.prototype.sortRange=xn.prototype.zi,xn.prototype.sort=xn.prototype.sort,xn.prototype.toSet=xn.prototype.Iv,xn.prototype.toArray=xn.prototype.Fa,xn.prototype.removeRange=xn.prototype.removeRange,xn.prototype.removeAt=xn.prototype.mb,xn.prototype.delete=xn.prototype.delete,xn.prototype.remove=xn.prototype.remove,xn.prototype.insertAt=xn.prototype.Gb,xn.prototype.pop=xn.prototype.pop,xn.prototype.last=xn.prototype.jc,xn.prototype.first=xn.prototype.first,xn.prototype.set=xn.prototype.set,xn.prototype.setElt=xn.prototype.cd,xn.prototype.get=xn.prototype.get,xn.prototype.elt=xn.prototype.M,xn.prototype.indexOf=xn.prototype.indexOf,xn.prototype.has=xn.prototype.has,xn.prototype.contains=xn.prototype.contains,xn.prototype.clear=xn.prototype.clear,xn.prototype.addAll=xn.prototype.addAll,xn.prototype.push=xn.prototype.push,xn.prototype.add=xn.prototype.add,xn.prototype.thaw=xn.prototype.ka,xn.prototype.freeze=xn.prototype.freeze,xn.className="List";function Fo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Fo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Fo.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)},Fo.prototype.Ad=function(){return this.next()},Fo.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},Fo.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},Fo.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},Fo.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},Fo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new xn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Fo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new xn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Fo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Fo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ft.Object.defineProperties(Fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Fo.prototype.first=Fo.prototype.first,Fo.prototype.hasNext=Fo.prototype.Ad,Fo.prototype.next=Fo.prototype.next,Fo.prototype.reset=Fo.prototype.reset,Fo.className="SetIterator";function An(a){Ir(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=An.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"Set()#"+oo(this)},be.add=function(a){if(a===null)return this;this._isFrozen&&In(this,a);var y=a;return Kt(a)&&(y=_o(a)),this.Tb[y]===void 0&&(this.Sb++,a=new no(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},be.addAll=function(a){if(a===null)return this;if(this._isFrozen&&In(this),Sn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},be.contains=function(a){if(a===null)return!1;var y=a;return Kt(a)&&(y=oo(a),y===void 0)?!1:this.Tb[y]!==void 0},be.has=function(a){return this.contains(a)},be.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},be.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},be.first=function(){var a=this.ea;return a===null?null:a.value},An.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},An.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},An.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},An.prototype.map=function(a){for(var y=new An,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},An.prototype.filter=function(a){for(var y=new An,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},be=An.prototype,be.remove=function(a){if(a===null)return!1;this._isFrozen&&In(this,a);var y=a;if(Kt(a)&&(y=oo(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},be.delete=function(a){return this.remove(a)},be.hp=function(a){if(a===null)return this;if(this._isFrozen&&In(this),Sn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},be.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&In(this);var y=new An;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},be.clear=function(){this._isFrozen&&In(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},An.prototype.copy=function(){var a=new An,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},An.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},An.prototype.Hv=function(){var a=new xn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Ir(a){a.__gohashid=Fa++}function _o(a){var y=a.__gohashid;return y===void 0&&(y=Fa++,a.__gohashid=y),y}function oo(a){return a.__gohashid}ft.Object.defineProperties(An.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return kr;var a=this.Sa;return a!==null?(a.reset(),a):new Fo(this)}}}),An.prototype.toList=An.prototype.Hv,An.prototype.toArray=An.prototype.Fa,An.prototype.clear=An.prototype.clear,An.prototype.retainAll=An.prototype.pA,An.prototype.removeAll=An.prototype.hp,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.first=An.prototype.first,An.prototype.containsAny=An.prototype.Ty,An.prototype.containsAll=An.prototype.Sy,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.addAll=An.prototype.addAll,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze;var Fa=1;An.className="Set",An.uniqueHash=Ir,An.hashIdUnique=_o,An.hashId=oo;function Qo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Qo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Qo.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)},Qo.prototype.Ad=function(){return this.next()},Qo.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},Qo.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},Qo.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},Qo.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},Qo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new xn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Qo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new xn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Qo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Qo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ft.Object.defineProperties(Qo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Qo.prototype.first=Qo.prototype.first,Qo.prototype.hasNext=Qo.prototype.Ad,Qo.prototype.next=Qo.prototype.next,Qo.prototype.reset=Qo.prototype.reset,Qo.className="MapKeySetIterator";function dr(a){An.call(this),Ir(this),this._isFrozen=!0,this.ma=a}Jt(dr,An),be=dr.prototype,be.freeze=function(){return this},be.ka=function(){return this},be.toString=function(){return"MapKeySet("+this.ma.toString()+")"},be.add=function(){bt("This Set is read-only: "+this.toString())},be.contains=function(a){return this.ma.contains(a)},be.has=function(a){return this.contains(a)},be.remove=function(){bt("This Set is read-only: "+this.toString())},be.delete=function(a){return this.remove(a)},be.clear=function(){bt("This Set is read-only: "+this.toString())},be.first=function(){var a=this.ma.ea;return a!==null?a.key:null},dr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},dr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},dr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},dr.prototype.map=function(a){for(var y=new An,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},dr.prototype.filter=function(a){for(var y=new An,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},dr.prototype.copy=function(){return new dr(this.ma)},dr.prototype.Iv=function(){var a=new An,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},dr.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},dr.prototype.Hv=function(){var a=new xn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ft.Object.defineProperties(dr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?kr:new Qo(this.ma)}}}),dr.prototype.toList=dr.prototype.Hv,dr.prototype.toArray=dr.prototype.Fa,dr.prototype.toSet=dr.prototype.Iv,dr.prototype.first=dr.prototype.first,dr.prototype.clear=dr.prototype.clear,dr.prototype.delete=dr.prototype.delete,dr.prototype.remove=dr.prototype.remove,dr.prototype.has=dr.prototype.has,dr.prototype.contains=dr.prototype.contains,dr.prototype.add=dr.prototype.add,dr.prototype.thaw=dr.prototype.ka,dr.prototype.freeze=dr.prototype.freeze,dr.className="MapKeySet";function nr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}nr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},nr.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)},nr.prototype.Ad=function(){return this.next()},nr.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},nr.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},nr.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},nr.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},nr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new xn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},nr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new xn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},nr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},nr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ft.Object.defineProperties(nr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),nr.prototype.first=nr.prototype.first,nr.prototype.hasNext=nr.prototype.Ad,nr.prototype.next=nr.prototype.next,nr.prototype.reset=nr.prototype.reset,nr.className="MapValueSetIterator";function no(a,y){this.key=a,this.value=y,this.ll=this.va=null}no.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},no.className="KeyValuePair";function Lo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Lo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Lo.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)},Lo.prototype.Ad=function(){return this.next()},Lo.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},Lo.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},Lo.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},Lo.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},Lo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new xn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Lo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new xn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Lo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Lo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ft.Object.defineProperties(Lo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Lo.prototype.first=Lo.prototype.first,Lo.prototype.hasNext=Lo.prototype.Ad,Lo.prototype.next=Lo.prototype.next,Lo.prototype.reset=Lo.prototype.reset,Lo.className="MapIterator";function wi(a){Ir(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"&&bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=wi.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"Map()#"+oo(this)},be.add=function(a,y){this._isFrozen&&In(this,a);var x=a;Kt(a)&&(x=_o(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new no(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},be.set=function(a,y){return this.add(a,y)},be.addAll=function(a){if(a===null)return this;if(Sn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof wi)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},be.first=function(){return this.ea},wi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},wi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},wi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},wi.prototype.map=function(a){for(var y=new wi,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},wi.prototype.filter=function(a){for(var y=new wi,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},be=wi.prototype,be.contains=function(a){var y=a;return Kt(a)&&(y=oo(a),y===void 0)?!1:this.Tb[y]!==void 0},be.has=function(a){return this.contains(a)},be.I=function(a){var y=a;return Kt(a)&&(y=oo(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},be.get=function(a){return this.I(a)},be.remove=function(a){if(a===null)return!1;this._isFrozen&&In(this,a);var y=a;if(Kt(a)&&(y=oo(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},be.delete=function(a){return this.remove(a)},be.clear=function(){this._isFrozen&&In(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()},wi.prototype.copy=function(){var a=new wi,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},wi.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 no(E.key,E.value),x++}return y},wi.prototype.Lf=function(){return new dr(this)},ft.Object.defineProperties(wi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return kr;var a=this.Sa;return a!==null?(a.reset(),a):new Lo(this)}},iteratorKeys:{get:function(){return 0>=this.count?kr:new Qo(this)}},iteratorValues:{get:function(){if(0>=this.count)return kr;var a=this.jf;return a!==null?(a.reset(),a):new nr(this)}}}),wi.prototype.toKeySet=wi.prototype.Lf,wi.prototype.toArray=wi.prototype.Fa,wi.prototype.clear=wi.prototype.clear,wi.prototype.delete=wi.prototype.delete,wi.prototype.remove=wi.prototype.remove,wi.prototype.get=wi.prototype.get,wi.prototype.getValue=wi.prototype.I,wi.prototype.has=wi.prototype.has,wi.prototype.contains=wi.prototype.contains,wi.prototype.first=wi.prototype.first,wi.prototype.addAll=wi.prototype.addAll,wi.prototype.set=wi.prototype.set,wi.prototype.add=wi.prototype.add,wi.prototype.thaw=wi.prototype.ka,wi.prototype.freeze=wi.prototype.freeze,wi.className="Map";function Ye(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):bt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var $r,ca,qr,$o,Fr;Ye.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ye.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ye.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ye.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ye.prototype.copy=function(){var a=new Ye;return a.x=this.x,a.y=this.y,a},be=Ye.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Sr(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 Ye(x,E)}return new Ye}function xo(a){return a.x.toString()+" "+a.y.toString()}be.toString=function(){return"Point("+this.x+","+this.y+")"},be.D=function(a){return a instanceof Ye?this.x===a.x&&this.y===a.y:!1},be.hi=function(a,y){return this.x===a&&this.y===y},be.Xa=function(a){return Nt.B(this.x,a.x)&&Nt.B(this.y,a.y)},be.add=function(a){return this.x+=a.x,this.y+=a.y,this},be.re=function(a){return this.x-=a.x,this.y-=a.y,this},be.offset=function(a,y){return this.x+=a,this.y+=y,this},Ye.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},be=Ye.prototype,be.scale=function(a,y){return this.x*=a,this.y*=y,this},be.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},be.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},be.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},be.ab=function(a){return Wo(a.x-this.x,a.y-this.y)},be.direction=function(a,y){return Wo(a-this.x,y-this.y)};function Wo(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}be.Ry=function(a,y){return Nt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},be.fA=function(a,y,x,b){return Nt.qh(a,y,x,b,this.x,this.y,this),this},be.gA=function(a,y){return Nt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},be.uA=function(a,y,x,b){return Nt.No(this.x,this.y,a,y,x,b,this),this},be.vA=function(a,y){return Nt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},be.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},be.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},be.transform=function(a){return a.Ga(this),this};function eo(a,y){return y.Cd(a),a}function fa(a,y,x,b,E,z){var ee=E-x,re=z-b,oe=ee*ee+re*re;x-=a,b-=y;var le=-x*ee-b*re;return 0>=le||le>=oe?(ee=E-a,re=z-y,Math.min(x*x+b*b,ee*ee+re*re)):(a=ee*b-re*x,a*a/oe)}function sr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function tr(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)}be.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ye.alloc=function(){var a=Nr.pop();return a===void 0?new Ye:a},Ye.allocAt=function(a,y){var x=Nr.pop();return x===void 0?new Ye(a,y):(x.x=a,x.y=y,x)},Ye.free=function(a){Nr.push(a)},Ye.prototype.isReal=Ye.prototype.w,Ye.prototype.setSpot=Ye.prototype.yi,Ye.prototype.setRectSpot=Ye.prototype.xi,Ye.prototype.snapToGridPoint=Ye.prototype.vA,Ye.prototype.snapToGrid=Ye.prototype.uA,Ye.prototype.projectOntoLineSegmentPoint=Ye.prototype.gA,Ye.prototype.projectOntoLineSegment=Ye.prototype.fA,Ye.intersectingLineSegments=function(a,y,x,b,E,z,ee,re){return Nt.Rl(a,y,x,b,E,z,ee,re)},Ye.prototype.compareWithLineSegmentPoint=Ye.prototype.Ry,Ye.compareWithLineSegment=function(a,y,x,b,E,z){return Nt.Fl(a,y,x,b,E,z)},Ye.prototype.direction=Ye.prototype.direction,Ye.prototype.directionPoint=Ye.prototype.ab,Ye.prototype.normalize=Ye.prototype.normalize,Ye.prototype.distanceSquared=Ye.prototype.zd,Ye.prototype.distanceSquaredPoint=Ye.prototype.Bf,Ye.prototype.scale=Ye.prototype.scale,Ye.prototype.rotate=Ye.prototype.rotate,Ye.prototype.offset=Ye.prototype.offset,Ye.prototype.subtract=Ye.prototype.re,Ye.prototype.add=Ye.prototype.add,Ye.prototype.equalsApprox=Ye.prototype.Xa,Ye.prototype.equalTo=Ye.prototype.hi,Ye.prototype.equals=Ye.prototype.D,Ye.prototype.set=Ye.prototype.set,Ye.prototype.setTo=Ye.prototype.sg;var Nr=[];Ye.className="Point",Ye.parse=Sr,Ye.stringify=xo,Ye.distanceLineSegmentSquared=fa,Ye.distanceSquared=sr,Ye.direction=tr,Ye.Origin=$r=new Ye(0,0).ja(),Ye.InfiniteTopLeft=ca=new Ye(-1/0,-1/0).ja(),Ye.InfiniteBottomRight=qr=new Ye(1/0,1/0).ja(),Ye.SixPoint=$o=new Ye(6,6).ja(),Ye.NoPoint=Fr=new Ye(NaN,NaN).ja(),Ye.parse=Sr,Ye.stringify=xo,Ye.distanceLineSegmentSquared=fa,Ye.distanceSquared=sr,Ye.direction=tr;function ei(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):bt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ro,ia,Za,ha,Oa,Ia,ys;ei.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ei.prototype.h=function(a,y){return this.width=a,this.height=y,this},ei.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ei.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ei.prototype.copy=function(){var a=new ei;return a.width=this.width,a.height=this.height,a},be=ei.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ds(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 ei(x,E)}return new ei}function _s(a){return a.width.toString()+" "+a.height.toString()}be.toString=function(){return"Size("+this.width+","+this.height+")"},be.D=function(a){return a instanceof ei?this.width===a.width&&this.height===a.height:!1},be.hi=function(a,y){return this.width===a&&this.height===y},be.Xa=function(a){return Nt.B(this.width,a.width)&&Nt.B(this.height,a.height)},be.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},be.w=function(){return isFinite(this.width)&&isFinite(this.height)},ei.alloc=function(){var a=Ys.pop();return a===void 0?new ei:a},ei.free=function(a){Ys.push(a)},ei.prototype.isReal=ei.prototype.w,ei.prototype.inflate=ei.prototype.Bc,ei.prototype.equalsApprox=ei.prototype.Xa,ei.prototype.equalTo=ei.prototype.hi,ei.prototype.equals=ei.prototype.D,ei.prototype.set=ei.prototype.set,ei.prototype.setTo=ei.prototype.sg;var Ys=[];ei.className="Size",ei.parse=Ds,ei.stringify=_s,ei.ZeroSize=Ro=new ei(0,0).ja(),ei.OneSize=ia=new ei(1,1).ja(),ei.SixSize=Za=new ei(6,6).ja(),ei.EightSize=ha=new ei(8,8).ja(),ei.TenSize=Oa=new ei(10,10).ja(),ei.InfiniteSize=Ia=new ei(1/0,1/0).ja(),ei.NoSize=ys=new ei(NaN,NaN).ja(),ei.parse=Ds,ei.stringify=_s;function dn(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 Ye?(x=a.x,a=a.y,y instanceof Ye?(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 ei?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):bt("Incorrect second argument supplied to Rect constructor "+y)):bt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}be=dn.prototype,be.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},be.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function js(a,y,x){a.width=y,a.height=x}be.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},be.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},be.dd=function(a){return this.x=a.x,this.y=a.y,this},be.tA=function(a){return this.width=a.width,this.height=a.height,this},dn.prototype.copy=function(){var a=new dn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},be=dn.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function au(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 z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var ee=0;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),new dn(x,E,z,ee)}return new dn}function su(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}be.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},be.D=function(a){return a instanceof dn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},be.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},be.Xa=function(a){return Nt.B(this.x,a.x)&&Nt.B(this.y,a.y)&&Nt.B(this.width,a.width)&&Nt.B(this.height,a.height)};function No(a,y){return Nt.$(a.x,y.x)&&Nt.$(a.y,y.y)&&Nt.$(a.width,y.width)&&Nt.$(a.height,y.height)}be.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},be.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},be.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},be.offset=function(a,y){return this.x+=a,this.y+=y,this},be.Bc=function(a,y){return ga(this,y,a,y,a)},be.Co=function(a){return ga(this,a.top,a.right,a.bottom,a.left)},be.Fv=function(a){return ga(this,-a.top,-a.right,-a.bottom,-a.left)},be.Hz=function(a,y,x,b){return ga(this,a,y,x,b)};function ga(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/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}be.Ex=function(a){return os(this,a.x,a.y,a.width,a.height)},be.Uu=function(a,y,x,b){return os(this,a,y,x,b)};function os(a,y,x,b,E){var z=Math.max(a.x,y),ee=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=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}be.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},be.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>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 pa(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))}be.Ye=function(a){return To(this,a.x,a.y,0,0)},be.ed=function(a){return To(this,a.x,a.y,a.width,a.height)},be.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),To(this,a,y,x,b)};function To(a,y,x,b,E){var z=Math.min(a.x,y),ee=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=z,a.y=ee,a.width=y-z,a.height=x-ee,a}be.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 la(a,y,x,b,E,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=E&&E+ee<=a+x&&y<=z&&z+re<=y+b}function bs(a,y,x,b,E,z,ee,re){return a>ee+E||E>x+a?!1:!(y>re+z||z>b+y)}be.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},be.Mz=function(){return this.width===0&&this.height===0},dn.alloc=function(){var a=Oo.pop();return a===void 0?new dn:a},dn.allocAt=function(a,y,x,b){var E=Oo.pop();return E===void 0?new dn(a,y,x,b):E.h(a,y,x,b)},dn.free=function(a){Oo.push(a)},ft.Object.defineProperties(dn.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 Ye(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ei(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ye(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}}}),dn.prototype.isEmpty=dn.prototype.Mz,dn.prototype.isReal=dn.prototype.w,dn.intersectsLineSegment=function(a,y,x,b,E,z,ee,re){return Nt.Fx(a,y,x,b,E,z,ee,re)},dn.prototype.setSpot=dn.prototype.yi,dn.prototype.union=dn.prototype.Kv,dn.prototype.unionRect=dn.prototype.ed,dn.prototype.unionPoint=dn.prototype.Ye,dn.prototype.intersects=dn.prototype.Vu,dn.prototype.intersectsRect=dn.prototype.Yc,dn.prototype.intersect=dn.prototype.Uu,dn.prototype.intersectRect=dn.prototype.Ex,dn.prototype.grow=dn.prototype.Hz,dn.prototype.subtractMargin=dn.prototype.Fv,dn.prototype.addMargin=dn.prototype.Co,dn.prototype.inflate=dn.prototype.Bc,dn.prototype.offset=dn.prototype.offset,dn.prototype.contains=dn.prototype.contains,dn.prototype.containsRect=dn.prototype.Re,dn.prototype.containsPoint=dn.prototype.ca,dn.prototype.equalsApprox=dn.prototype.Xa,dn.prototype.equalTo=dn.prototype.hi,dn.prototype.equals=dn.prototype.D,dn.prototype.setSize=dn.prototype.tA,dn.prototype.setPoint=dn.prototype.dd,dn.prototype.set=dn.prototype.set,dn.prototype.setTo=dn.prototype.sg;var to=null,zo=null,Oo=[];dn.className="Rect",dn.parse=au,dn.stringify=su,dn.contains=la,dn.intersects=bs,dn.ZeroRect=to=new dn(0,0,0,0).ja(),dn.NoRect=zo=new dn(NaN,NaN,NaN,NaN).ja(),dn.parse=au,dn.stringify=su,dn.contains=la,dn.intersects=bs;function Wi(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):bt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Wi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Wi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Wi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Wi.prototype.copy=function(){var a=new Wi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},be=Wi.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function cs(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 Wi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Wi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Wi(x,E);for(var ee=NaN;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),isNaN(ee)?new Wi(x,E):new Wi(x,E,z,ee)}return new Wi}function Ss(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}be.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},be.D=function(a){return a instanceof Wi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},be.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},be.Xa=function(a){return Nt.B(this.top,a.top)&&Nt.B(this.right,a.right)&&Nt.B(this.bottom,a.bottom)&&Nt.B(this.left,a.left)},be.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Wi.alloc=function(){var a=wu.pop();return a===void 0?new Wi:a},Wi.free=function(a){wu.push(a)},Wi.prototype.isReal=Wi.prototype.w,Wi.prototype.equalsApprox=Wi.prototype.Xa,Wi.prototype.equalTo=Wi.prototype.hi,Wi.prototype.equals=Wi.prototype.D,Wi.prototype.set=Wi.prototype.set,Wi.prototype.setTo=Wi.prototype.sg;var dl=null,lu=null,wu=[];Wi.className="Margin",Wi.parse=cs,Wi.stringify=Ss,Wi.ZeroMargin=dl=new Wi(0,0,0,0).ja(),Wi.TwoMargin=lu=new Wi(2,2,2,2).ja(),Wi.parse=cs,Wi.stringify=Ss;function Fi(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 Ya,Es,Jl,uu,hu,lo,Sh,El,Ll,ml,Zu,Pu,vl,Ml,Bh,_h,Oh,gd,Ih,Gu,Dl,Bl,pd,ed,Cu,Bo,da,cl,xs,ws,_a,ls,Ls,Ps,ih,Ql;Fi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Fi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Fi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Fi.prototype.copy=function(){var a=new Fi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},be=Fi.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function fs(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ic(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ya;if(a==="TopLeft")return Es;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Jl;if(a==="TopRight")return uu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return hu;if(a==="Center")return lo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Sh;if(a==="BottomLeft")return El;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ll;if(a==="BottomRight")return ml;if(a==="TopSide")return Zu;if(a==="LeftSide")return Pu;if(a==="RightSide")return vl;if(a==="BottomSide")return Ml;if(a==="TopBottomSides")return Bh;if(a==="LeftRightSides")return _h;if(a==="TopLeftSides")return Oh;if(a==="TopRightSides")return gd;if(a==="BottomLeftSides")return Ih;if(a==="BottomRightSides")return Gu;if(a==="NotTopSide")return Dl;if(a==="NotLeftSide")return Bl;if(a==="NotRightSide")return pd;if(a==="NotBottomSide")return ed;if(a==="AllSides")return Cu;if(a==="Default")return Bo;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 z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var ee=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ee=parseFloat(b)),new Fi(x,E,z,ee)}return new Fi}function md(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}be.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(Ya)?"None":this.D(Es)?"TopLeft":this.D(Jl)?"Top":this.D(uu)?"TopRight":this.D(hu)?"Left":this.D(lo)?"Center":this.D(Sh)?"Right":this.D(El)?"BottomLeft":this.D(Ll)?"Bottom":this.D(ml)?"BottomRight":this.D(Zu)?"TopSide":this.D(Pu)?"LeftSide":this.D(vl)?"RightSide":this.D(Ml)?"BottomSide":this.D(Bh)?"TopBottomSides":this.D(_h)?"LeftRightSides":this.D(Oh)?"TopLeftSides":this.D(gd)?"TopRightSides":this.D(Ih)?"BottomLeftSides":this.D(Gu)?"BottomRightSides":this.D(Dl)?"NotTopSide":this.D(Bl)?"NotLeftSide":this.D(pd)?"NotRightSide":this.D(ed)?"NotBottomSide":this.D(Cu)?"AllSides":this.D(Bo)?"Default":"None"},be.D=function(a){return a instanceof Fi?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},be.gv=function(){return new Fi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},be.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(da))a=Pu;else if(a.D(cl))a=vl;else if(a.D(xs))a=Zu;else if(a.D(ws))a=Ml;else return!1;return a=a.offsetY,(this.offsetY&a)===a},be.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},be.Mc=function(){return isNaN(this.x)||isNaN(this.y)},be.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},be.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},be.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Fi.alloc=function(){var a=td.pop();return a===void 0?new Fi:a},Fi.free=function(a){td.push(a)},Fi.prototype.isDefault=Fi.prototype.Xb,Fi.prototype.isNone=Fi.prototype.ys,Fi.prototype.isSide=Fi.prototype.$c,Fi.prototype.isNoSpot=Fi.prototype.Mc,Fi.prototype.isSpot=Fi.prototype.sb,Fi.prototype.includesSide=Fi.prototype.Hf,Fi.prototype.opposite=Fi.prototype.gv,Fi.prototype.equals=Fi.prototype.D,Fi.prototype.set=Fi.prototype.set,Fi.prototype.setTo=Fi.prototype.sg;var td=[];Fi.className="Spot",Fi.parse=ic,Fi.stringify=md,Fi.None=Ya=fs(new Fi(0,0,0,0),0).ja(),Fi.Default=Bo=fs(new Fi(0,0,-1,0),-1).ja(),Fi.TopLeft=Es=new Fi(0,0,0,0).ja(),Fi.TopCenter=Jl=new Fi(.5,0,0,0).ja(),Fi.TopRight=uu=new Fi(1,0,0,0).ja(),Fi.LeftCenter=hu=new Fi(0,.5,0,0).ja(),Fi.Center=lo=new Fi(.5,.5,0,0).ja(),Fi.RightCenter=Sh=new Fi(1,.5,0,0).ja(),Fi.BottomLeft=El=new Fi(0,1,0,0).ja(),Fi.BottomCenter=Ll=new Fi(.5,1,0,0).ja(),Fi.BottomRight=ml=new Fi(1,1,0,0).ja(),Fi.MiddleTop=_a=Jl,Fi.MiddleLeft=ls=hu,Fi.MiddleRight=Ls=Sh,Fi.MiddleBottom=Ps=Ll,Fi.Top=xs=Jl,Fi.Left=da=hu,Fi.Right=cl=Sh,Fi.Bottom=ws=Ll,Fi.TopSide=Zu=fs(new Fi(0,0,1,1),1).ja(),Fi.LeftSide=Pu=fs(new Fi(0,0,1,2),1).ja(),Fi.RightSide=vl=fs(new Fi(0,0,1,4),1).ja(),Fi.BottomSide=Ml=fs(new Fi(0,0,1,8),1).ja(),Fi.TopBottomSides=Bh=fs(new Fi(0,0,1,9),1).ja(),Fi.LeftRightSides=_h=fs(new Fi(0,0,1,6),1).ja(),Fi.TopLeftSides=Oh=fs(new Fi(0,0,1,3),1).ja(),Fi.TopRightSides=gd=fs(new Fi(0,0,1,5),1).ja(),Fi.BottomLeftSides=Ih=fs(new Fi(0,0,1,10),1).ja(),Fi.BottomRightSides=Gu=fs(new Fi(0,0,1,12),1).ja(),Fi.NotTopSide=Dl=fs(new Fi(0,0,1,14),1).ja(),Fi.NotLeftSide=Bl=fs(new Fi(0,0,1,13),1).ja(),Fi.NotRightSide=pd=fs(new Fi(0,0,1,11),1).ja(),Fi.NotBottomSide=ed=fs(new Fi(0,0,1,7),1).ja(),Fi.AllSides=Cu=fs(new Fi(0,0,1,15),1).ja(),ih=new Fi(.156,.156).ja(),Ql=new Fi(.844,.844).ja(),Fi.parse=ic,Fi.stringify=md;function Mr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Mr.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},Mr.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Mr.prototype.copy=function(){var a=new Mr;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},Mr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Mr.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},Mr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Mr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Mr.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},Mr.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,z=a.m11*y,ee=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*z,E=this.m12*E+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Mr.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),z=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=z,this},Mr.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,z=this.m11*-b+this.m21*a,ee=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=ee,this.translate(-y,-x),this},be=Mr.prototype,be.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},be.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},be.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)},be.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))},be.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))},be.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,le=this.dx,ue=this.dy,fe=y*z+x*re+le,ye=y*ee+x*oe+ue,Ce=b*z+x*re+le,Le=b*ee+x*oe+ue;return x=y*z+E*re+le,y=y*ee+E*oe+ue,z=b*z+E*re+le,b=b*ee+E*oe+ue,E=Math.min(fe,Ce),fe=Math.max(fe,Ce),Ce=Math.min(ye,Le),ye=Math.max(ye,Le),E=Math.min(E,x),fe=Math.max(fe,x),Ce=Math.min(Ce,y),ye=Math.max(ye,y),E=Math.min(E,z),fe=Math.max(fe,z),Ce=Math.min(Ce,b),ye=Math.max(ye,b),a.h(E,Ce,fe-E,ye-Ce),a},Mr.alloc=function(){var a=nd.pop();return a===void 0?new Mr:a},Mr.free=function(a){nd.push(a)},Mr.prototype.transformRect=Mr.prototype.pp,Mr.prototype.transformPoint=Mr.prototype.Ga,Mr.prototype.scale=Mr.prototype.scale,Mr.prototype.translate=Mr.prototype.translate,Mr.prototype.rotate=Mr.prototype.rotate,Mr.prototype.invert=Mr.prototype.Vj,Mr.prototype.multiplyInverted=Mr.prototype.bv,Mr.prototype.multiply=Mr.prototype.multiply,Mr.prototype.reset=Mr.prototype.reset,Mr.prototype.isIdentity=Mr.prototype.ws,Mr.prototype.equals=Mr.prototype.D,Mr.prototype.setTransform=Mr.prototype.setTransform,Mr.prototype.set=Mr.prototype.set;var nd=[];Mr.className="Transform",Mr.xF="54a702f3e53909c447824c6706603faf4c";var Nt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Nt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Nt.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,z,ee){if(0>=E&&(E=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<b)var le=y,ue=b;else le=b,ue=y;if(a===x)return le<=ee&&ee<=ue&&a-E<=z&&z<=a+E;if(y===b)return re<=z&&z<=oe&&y-E<=ee&&ee<=y+E;if(oe+=E,re-=E,re<=z&&z<=oe&&(ue+=E,le-=E,le<=ee&&ee<=ue))if(oe-re>ue-le)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=ee&&ee<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ee=(x-a)/(b-y)*(ee-y)+a,ee-E<=z&&z<=ee+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe){if(Nt.Yb(a,y,ee,re,fe,x,b)&&Nt.Yb(a,y,ee,re,fe,E,z))return Nt.Yb(a,y,ee,re,fe,le,ue);var ye=(a+x)/2,Ce=(y+b)/2,Le=(x+E)/2,Be=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ye+Le)/2,x=(Ce+Be)/2,Le=(Le+E)/2,Be=(Be+z)/2;var $e=(b+Le)/2,Ze=(x+Be)/2;return Nt.cs(a,y,ye,Ce,b,x,$e,Ze,oe,le,ue,fe)||Nt.cs($e,Ze,Le,Be,E,z,ee,re,oe,le,ue,fe)},ax:function(a,y,x,b,E,z,ee,re,oe){var le=(x+E)/2,ue=(b+z)/2;return oe.h((((a+x)/2+le)/2+(le+(E+ee)/2)/2)/2,(((y+b)/2+ue)/2+(ue+(z+re)/2)/2)/2),oe},My:function(a,y,x,b,E,z,ee,re){var oe=(x+E)/2,le=(b+z)/2;return tr(((a+x)/2+oe)/2,((y+b)/2+le)/2,(oe+(E+ee)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,b,E,z,ee,re,oe,le){if(Nt.Yb(a,y,ee,re,oe,x,b)&&Nt.Yb(a,y,ee,re,oe,E,z))To(le,a,y,0,0),To(le,ee,re,0,0);else{var ue=(a+x)/2,fe=(y+b)/2,ye=(x+E)/2,Ce=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+ye)/2,x=(fe+Ce)/2,ye=(ye+E)/2,Ce=(Ce+z)/2;var Le=(b+ye)/2,Be=(x+Ce)/2;Nt.Dl(a,y,ue,fe,b,x,Le,Be,oe,le),Nt.Dl(Le,Be,ye,Ce,E,z,ee,re,oe,le)}return le},Qe:function(a,y,x,b,E,z,ee,re,oe,le){if(Nt.Yb(a,y,ee,re,oe,x,b)&&Nt.Yb(a,y,ee,re,oe,E,z))le.length===0&&(le.push(a),le.push(y)),le.push(ee),le.push(re);else{var ue=(a+x)/2,fe=(y+b)/2,ye=(x+E)/2,Ce=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+ye)/2,x=(fe+Ce)/2,ye=(ye+E)/2,Ce=(Ce+z)/2;var Le=(b+ye)/2,Be=(x+Ce)/2;Nt.Qe(a,y,ue,fe,b,x,Le,Be,oe,le),Nt.Qe(Le,Be,ye,Ce,E,z,ee,re,oe,le)}return le},jv:function(a,y,x,b,E,z,ee,re,oe,le){if(Nt.Yb(a,y,E,z,le,x,b))return Nt.Yb(a,y,E,z,le,re,oe);var ue=(a+x)/2,fe=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ye=(ue+x)/2,Ce=(fe+b)/2;return Nt.jv(a,y,ue,fe,ye,Ce,ee,re,oe,le)||Nt.jv(ye,Ce,x,b,E,z,ee,re,oe,le)},OA:function(a,y,x,b,E,z,ee){return ee.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),ee},iv:function(a,y,x,b,E,z,ee,re){if(Nt.Yb(a,y,E,z,ee,x,b))To(re,a,y,0,0),To(re,E,z,0,0);else{var oe=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(oe+x)/2,fe=(le+b)/2;Nt.iv(a,y,oe,le,ue,fe,ee,re),Nt.iv(ue,fe,x,b,E,z,ee,re)}return re},ep:function(a,y,x,b,E,z,ee,re){if(Nt.Yb(a,y,E,z,ee,x,b))re.length===0&&(re.push(a),re.push(y)),re.push(E),re.push(z);else{var oe=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(oe+x)/2,fe=(le+b)/2;Nt.ep(a,y,oe,le,ue,fe,ee,re),Nt.ep(ue,fe,x,b,E,z,ee,re)}return re},Eo:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe,ye,Ce){if(Nt.Yb(a,y,ee,re,ye,x,b)&&Nt.Yb(a,y,ee,re,ye,E,z))return!Nt.Rl(a,y,ee,re,oe,le,ue,fe)||(ye=(a-ee)*(le-fe)-(y-re)*(oe-ue),ye===0)?!1:(Ce.h(((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-le*ue))/ye,((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/ye),!0);var Le=(a+x)/2,Be=(y+b)/2,$e=(x+E)/2,Ze=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Le+$e)/2,x=(Be+Ze)/2,$e=($e+E)/2,Ze=(Ze+z)/2;var rt=(b+$e)/2,st=(x+Ze)/2,ct=1/0,Lt=!1,Xt=0,hi=0;return Nt.Eo(a,y,Le,Be,b,x,rt,st,oe,le,ue,fe,ye,Ce)&&(a=(Ce.x-oe)*(Ce.x-oe)+(Ce.y-le)*(Ce.y-le),a<ct&&(ct=a,Lt=!0,Xt=Ce.x,hi=Ce.y)),Nt.Eo(rt,st,$e,Ze,E,z,ee,re,oe,le,ue,fe,ye,Ce)&&(Ce.x-oe)*(Ce.x-oe)+(Ce.y-le)*(Ce.y-le)<ct&&(Lt=!0,Xt=Ce.x,hi=Ce.y),Lt&&(Ce.x=Xt,Ce.y=hi),Lt},Fo:function(a,y,x,b,E,z,ee,re,oe,le,ue,fe,ye){var Ce=0;if(Nt.Yb(a,y,ee,re,ye,x,b)&&Nt.Yb(a,y,ee,re,ye,E,z)){if(ye=(a-ee)*(le-fe)-(y-re)*(oe-ue),ye===0)return Ce;var Le=((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-le*ue))/ye,Be=((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/ye;if(Le>=ue)return Ce;if((oe>ue?oe-ue:ue-oe)<(le>fe?le-fe:fe-le)){if(y<re?(oe=y,a=re):(oe=re,a=y),Be<oe||Be>a)return Ce}else if(a<ee?(oe=a,a=ee):oe=ee,Le<oe||Le>a)return Ce;0<ye?Ce++:0>ye&&Ce--}else{Le=(a+x)/2,Be=(y+b)/2;var $e=(x+E)/2,Ze=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Le+$e)/2,x=(Be+Ze)/2,$e=($e+E)/2,Ze=(Ze+z)/2;var rt=(b+$e)/2,st=(x+Ze)/2;Ce+=Nt.Fo(a,y,Le,Be,b,x,rt,st,oe,le,ue,fe,ye),Ce+=Nt.Fo(rt,st,$e,Ze,E,z,ee,re,oe,le,ue,fe,ye)}return Ce},qh:function(a,y,x,b,E,z,ee){return Nt.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):Nt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ee.h(b,y),!1):E>a?(ee.h(a,y),!1):(ee.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ee.h(a,y),!1):1.000005<E?(ee.h(x,b),!1):(ee.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,ee,re,oe){return Nt.B(a,x)&&Nt.B(y,b)?(oe.h(a,y),!1):Nt.$(E,ee)?Nt.$(a,x)?(Nt.qh(a,y,x,b,E,z,oe),!1):Nt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,oe):(re=(re-z)/(ee-E),Nt.$(a,x)?(x=re*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(oe.h(a,E),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(b-y)/(x-a),Nt.$(re,ee)?(Nt.qh(a,y,x,b,E,z,oe),!1):(E=(ee*a-re*E+z-y)/(ee-re),Nt.$(ee,0)?(a<x?(b=a,a=x):b=x,E<b?(oe.h(b,y),!1):E>a?(oe.h(a,y),!1):(oe.h(E,y),!0)):Nt.qh(a,y,x,b,E,ee*(E-a)+y,oe))))},MA:function(a,y,x,b,E){return Nt.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,z,ee,re,oe,le){function ue($e,Ze){var rt=($e-a)*($e-a)+(Ze-y)*(Ze-y);rt<fe&&(fe=rt,oe.h($e,Ze))}var fe=1/0;ue(oe.x,oe.y);var ye=0,Ce=0,Le=0,Be=0;if(E<ee?(ye=E,Ce=ee):(ye=ee,Ce=E),z<re?(Le=E,Be=ee):(Le=ee,Be=E),ye=(Ce-ye)/2+le,le=(Be-Le)/2+le,E=(E+ee)/2,z=(z+re)/2,ye===0||le===0)return oe;if(.5>(x>a?x-a:a-x)){if(ye=1-(x-E)*(x-E)/(ye*ye),0>ye)return oe;ye=Math.sqrt(ye),b=-le*ye+z,ue(x,le*ye+z),ue(x,b)}else{if(x=(b-y)/(x-a),b=1/(ye*ye)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*E/(ye*ye),ye=re*re-4*b*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+E*E/(ye*ye)-1+(y-x*a)*(y-x*a)/(le*le)),0>ye)return oe;ye=Math.sqrt(ye),le=(-re+ye)/(2*b),ue(le,x*le-x*a+y),ye=(-re-ye)/(2*b),ue(ye,x*ye-x*a+y)}return oe},Ff:function(a,y,x,b,E,z,ee,re,oe){var le=1e21,ue=a,fe=y;if(Nt.Ve(a,y,a,b,E,z,ee,re,oe)){var ye=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z);ye<le&&(le=ye,ue=oe.x,fe=oe.y)}return Nt.Ve(x,y,x,b,E,z,ee,re,oe)&&(ye=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),ye<le&&(le=ye,ue=oe.x,fe=oe.y)),Nt.Ve(a,y,x,y,E,z,ee,re,oe)&&(y=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),y<le&&(le=y,ue=oe.x,fe=oe.y)),Nt.Ve(a,b,x,b,E,z,ee,re,oe)&&(a=(oe.x-E)*(oe.x-E)+(oe.y-z)*(oe.y-z),a<le&&(le=a,ue=oe.x,fe=oe.y)),oe.h(ue,fe),1e21>le},us:function(a,y,x){return Nt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,ee,re){var oe=a+x,le=y+b;return E===ee?(z<re?(ee=z,z=re):ee=re,a<=E&&E<=oe&&ee<=le&&z>=y):z===re?(E<ee?(re=E,E=ee):re=ee,y<=z&&z<=le&&re<=oe&&E>=a):!!(la(a,y,x,b,E,z)||la(a,y,x,b,ee,re)||Nt.Rl(a,y,oe,y,E,z,ee,re)||Nt.Rl(oe,y,oe,le,E,z,ee,re)||Nt.Rl(oe,le,a,le,E,z,ee,re)||Nt.Rl(a,le,a,y,E,z,ee,re))},Rl:function(a,y,x,b,E,z,ee,re){return a===x&&y===b&&E===ee&&z===re?a===E&&y===z:0>=Nt.Fl(a,y,x,b,E,z)*Nt.Fl(a,y,x,b,ee,re)&&0>=Nt.Fl(E,z,ee,re,a,y)*Nt.Fl(E,z,ee,re,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var ee=Math.PI;z||(b*=ee/180,E*=ee/180);var re=b>E?-1:1;z=[];var oe=ee/2,le=b;if(b=Math.min(2*ee,Math.abs(E-b)),1e-5>b)return oe=le+re*Math.min(b,oe),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(le+y)/2,z.push([re,le,x,oe,x,oe,a,y]),z;for(;1e-5<b;)E=le+re*Math.min(b,oe),z.push(Nt.Vy(x,le,E,a,y)),b-=Math.abs(E-le),le=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,le=ee*ee+oe*oe,ue=le+ee*ee+oe*re;return le=4/3*(Math.sqrt(2*le*ue)-ue)/(ee*re-oe*ee),re=ee-le*oe,ee=oe+le*ee,oe=-ee,le=z+y,z=Math.cos(le),le=Math.sin(le),[b+a*Math.cos(y),E+a*Math.sin(y),b+re*z-ee*le,E+re*le+ee*z,b+re*z-oe*le,E+re*le+oe*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,ee){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var re=x;return x+E-a<E/2&&(re=x+E),a=b,b+z-y<z/2&&(a=b+z),ee.h(re,a),ee},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,z=0>b;if(a<y)var ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,le=ee===0?x:b;return(ee===0?E:z)&&(le=-le),ee=re,x=ee===0?x:b,(ee===0?E:z)&&(x=-x),Nt.az(oe,ee===0?a:y,le,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var ee=y*b,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var le=0;9999999999>le&&(y=.5*(re+oe),!(y===re||y===oe));++le){var ue=a/(y+E),fe=ee/(y+z);if(ue=ue*ue+fe*fe-1,0<ue)re=y;else if(0>ue)oe=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new ki,um:new ki,Mf:new ki,Nf:0,vm:100};Nt.za=Nt.AA;function ti(a){Ir(this),this.l=2,a===void 0&&(a=ti.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===ti.o?this.ee=new xn:(ti.V===null&&(ti.V=new xn().freeze()),this.ee=ti.V),this.aq=this.ee.Ja,this.Ip=new dn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Es,this.gg=ml,this.Rk=this.Sk=NaN,this.Uf=Hn}ti.prototype.copy=function(){var a=new ti;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===ti.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},ti.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},ti.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==ti.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},ti.prototype.ka=function(){if(Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==ti.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},ti.prototype.Xa=function(a){if(!(a instanceof ti))return!1;if(this.type!==a.type)return this.type===ti.j&&a.type===ti.o?Ic(this,a):a.type===ti.j&&this.type===ti.o?Ic(a,this):!1;if(this.type===ti.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 Nt.B(this.startX,a.startX)&&Nt.B(this.startY,a.startY)&&Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY)};function Ic(a,y){return a.type!==ti.j||y.type!==ti.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Nt.B(a.startX,y.startX)&&Nt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===ea&&Nt.B(a.endX,y.endX)&&Nt.B(a.endY,y.endY))))}ti.ia=function(a){return a.toString()},ti.prototype.qb=function(a){a.classType===ti&&(this.type=a)},ti.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ti.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 ti.u:var y=new dn(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 ti.F:if(y=new dn(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 ti.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},ti.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},ti.parse=function(a,y){function x(){return Be>=ct-1?!0:le[Be+1].match(Lt)!==null}function b(){return Be++,le[Be]}function E(Cr){var fr=parseFloat(b()),Do=parseFloat(b());$e===$e.toLowerCase()&&(fr=st.x+fr,Do=st.y+Do),Cr.h(fr,Do)}function z(){return E(st),st}function ee(){return E(rt),rt}function re(){var Cr=Ze.toLowerCase();return Cr!=="c"&&Cr!=="s"&&Cr!=="q"&&Cr!=="t"?st:new Ye(2*st.x-rt.x,2*st.y-rt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$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 le=a.split(" ");for(a=0;a<le.length;a++){var ue=le[a];if(ue.match(/(\.[0-9]*)(\.)/gm)!==null){oe=un();for(var fe="",ye=!1,Ce=0;Ce<ue.length;Ce++){var Le=ue[Ce];Le!=="."||ye?Le==="."?(oe.push(fe),fe="."):fe+=Le:(ye=!0,fe+=Le)}for(oe.push(fe),le.splice(a,1),ue=0;ue<oe.length;ue++)le.splice(a+ue,0,oe[ue]);a+=oe.length-1,En(oe)}}var Be=-1,$e="",Ze="";oe=new Ye(0,0);var rt=new Ye(0,0),st=new Ye(0,0),ct=le.length;a=FS(null),ye=fe=ue=!1,Ce=!0,Le=null;for(var Lt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Be>=ct-1);)if(Ze=$e,$e=b(),$e!=="")switch($e.toUpperCase()){case"X":Ce=!0,fe=ue=!1;break;case"M":for(Le=z(),a.mc===null||Ce===!0?(Bg(a,Le.x,Le.y,ue,!fe,ye),Ce=!1):a.moveTo(Le.x,Le.y),oe.assign(st);!x();)Le=z(),a.lineTo(Le.x,Le.y);break;case"L":for(;!x();)Le=z(),a.lineTo(Le.x,Le.y);break;case"H":for(;!x();)st=new Ye(($e===$e.toLowerCase()?st.x:0)+parseFloat(b()),st.y),a.lineTo(st.x,st.y);break;case"V":for(;!x();)st=new Ye(st.x,($e===$e.toLowerCase()?st.y:0)+parseFloat(b())),a.lineTo(st.x,st.y);break;case"C":for(;!x();){Le=new Ye,E(Le);var Xt=ee(),hi=z();yc(a,Le.x,Le.y,Xt.x,Xt.y,hi.x,hi.y)}break;case"S":for(;!x();)Le=re(),Xt=ee(),hi=z(),yc(a,Le.x,Le.y,Xt.x,Xt.y,hi.x,hi.y);break;case"Q":for(;!x();)Le=ee(),Xt=z(),Zm(a,Le.x,Le.y,Xt.x,Xt.y);break;case"T":for(;!x();)rt=Le=re(),Xt=z(),Zm(a,Le.x,Le.y,Xt.x,Xt.y);break;case"B":for(;!x();){Le=parseFloat(b()),Xt=parseFloat(b()),hi=parseFloat(b());var bi=parseFloat(b()),yi=parseFloat(b()),Jn=yi,kn=!1;x()||(Jn=parseFloat(b()),x()||(kn=parseFloat(b())!==0)),$e===$e.toLowerCase()&&(hi+=st.x,bi+=st.y),a.arcTo(Le,Xt,hi,bi,yi,Jn,kn)}break;case"A":for(;!x();)Le=Math.abs(parseFloat(b())),Xt=Math.abs(parseFloat(b())),hi=parseFloat(b()),yi=bi=!1,kn=Jn=0,Jn=b(),Jn.length===1?(bi=!!parseFloat(Jn),yi=!!parseFloat(b()),Jn=parseFloat(b())):Jn.length===2?(bi=!!parseFloat(Jn[0]),yi=!!parseFloat(Jn[1]),Jn=parseFloat(b())):(bi=!!parseFloat(Jn[0]),yi=!!parseFloat(Jn[1]),Jn=parseFloat(Jn.slice(2))),kn=parseFloat(b()),$e===$e.toLowerCase()&&(Jn=st.x+Jn,kn=st.y+kn),st.h(Jn,kn),Px(a,Le,Xt,hi,bi,yi,Jn,kn);break;case"Z":wx(a),st.assign(oe);break;case"F":for(Le="",Xt=1;le[Be+Xt];)if(le[Be+Xt]==="0")ye=!0,Xt++;else if(le[Be+Xt].match(/[Uu]/)!==null)Xt++;else if(le[Be+Xt].match(Lt)===null)Xt++;else{Le=le[Be+Xt];break}Le.match(/[Mm]/)?ue=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Le="",Xt=1;le[Be+Xt];)if(le[Be+Xt].match(/[Ff]/)!==null)Xt++;else if(le[Be+Xt].match(Lt)===null)Xt++;else{Le=le[Be+Xt];break}Le.match(/[Mm]/)?fe=!0:a.mc.isShadowed=!1}if(oe=a.os,Gm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},ti.Ha=function(a,y){for(var x=a.length,b=Ye.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}Ye.free(b)},ti.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===ti.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},ti.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===ti.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 z=0;z<E;z++){var ee=b[z];ee._isInvalidBounds=!1,ee.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),rc(this,a,!1),To(a,0,0,0,0),a.freeze()},ti.prototype.ix=function(){var a=new dn;return rc(this,a,!0),a};function rc(a,y,x){switch(a.type){case ti.j:case ti.u:case ti.F:x?y.h(a.od,a.pd,0,0):To(y,a.od,a.pd,0,0),To(y,a.Dc,a.Ec,0,0);break;case ti.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):To(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,le=z.startY,ue=0;ue<re;ue++){var fe=ee[ue];switch(fe.type){case ea:case as:oe=fe.endX,le=fe.endY,To(y,oe,le,0,0);break;case Us:Nt.Dl(oe,le,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case Ie:Nt.iv(oe,le,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case Ve:case _e:var ye=fe.type===Ve?il(fe,z):yl(fe,z,oe,le),Ce=ye.length;if(Ce===0){oe=fe.type===Ve?fe.centerX:fe.endX,le=fe.type===Ve?fe.centerY:fe.endY,To(y,oe,le,0,0);break}fe=null;for(var Le=0;Le<Ce;Le++)fe=ye[Le],Nt.Dl(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,y);fe!==null&&(oe=fe[6],le=fe[7]);break;default:bt("Unknown Segment type: "+fe.type)}}}break;default:bt("Unknown Geometry type: "+a.type)}}ti.prototype.normalize=function(){this._isFrozen&&In(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ye(-a.x,-a.y)},ti.prototype.offset=function(a,y){return this._isFrozen&&In(this),this.transform(1,0,0,1,a,y),this},ti.prototype.scale=function(a,y){return this._isFrozen&&In(this),this.transform(a,0,0,y,0,0),this},ti.prototype.rotate=function(a,y,x){this._isFrozen&&In(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Mr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Mr.free(b),this},be=ti.prototype,be.transform=function(a,y,x,b,E,z){switch(this.type){case ti.j:case ti.u:case ti.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+E,this.pd=ee*y+re*b+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+E,this.Ec=ee*y+re*b+z;break;case ti.o:for(var oe=this.figures.s,le=oe.length,ue=0;ue<le;ue++){var fe=oe[ue];ee=fe.startX,re=fe.startY,fe.startX=ee*a+re*x+E,fe.startY=ee*y+re*b+z,fe=fe.segments.s;for(var ye=fe.length,Ce=0;Ce<ye;Ce++){var Le=fe[Ce];switch(Le.type){case ea:case as:ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case Us:ee=Le.point1X,re=Le.point1Y,Le.point1X=ee*a+re*x+E,Le.point1Y=ee*y+re*b+z,ee=Le.point2X,re=Le.point2Y,Le.point2X=ee*a+re*x+E,Le.point2Y=ee*y+re*b+z,ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case Ie:ee=Le.point1X,re=Le.point1Y,Le.point1X=ee*a+re*x+E,Le.point1Y=ee*y+re*b+z,ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z;break;case Ve:ee=Le.centerX,re=Le.centerY,Le.centerX=ee*a+re*x+E,Le.centerY=ee*y+re*b+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Le.startAngle+=ee),0>a&&(Le.startAngle=180-Le.startAngle,Le.sweepAngle=-Le.sweepAngle),0>b&&(Le.startAngle=-Le.startAngle,Le.sweepAngle=-Le.sweepAngle),Le.radiusX*=Math.sqrt(a*a+x*x),Le.radiusY!==void 0&&(Le.radiusY*=Math.sqrt(y*y+b*b));break;case _e:if(ee=Le.endX,re=Le.endY,Le.endX=ee*a+re*x+E,Le.endY=ee*y+re*b+z,Le.radiusX===0||Le.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Le.xAxisRotation+=ee),0>a&&(Le.xAxisRotation=180-Le.xAxisRotation,Le.isClockwiseArc=!Le.isClockwiseArc),0>b&&(Le.xAxisRotation=-Le.xAxisRotation,Le.isClockwiseArc=!Le.isClockwiseArc),Le.radiusX*=Math.sqrt(a*a+x*x),Le.radiusY*=Math.sqrt(y*y+b*b);break;default:bt("Unknown Segment type: "+Le.type)}}}}return this._isInvalidBounds=!0,this},be.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case ti.j:return Nt.Yb(x,b,E,z,y,a.x,a.y);case ti.u:var ee=dn.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=ee.ca(a),dn.free(ee),a;case ti.F:ee=Math.min(x,E)-y;var re=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case ti.o:return rh(this,a,y,!0,!1);default:return!1}};function rh(a,y,x,b,E){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,le,ue,fe,ye=a.figures.s,Ce=ye.length,Le=0;Le<Ce;Le++){var Be=ye[Le],$e=!Be.isEvenOdd;if(Be.isFilled){if(b&&Be.ca(z,y,x))return!0;var Ze=Be.segments;oe=Be.startX,le=Be.startY;for(var rt=oe,st=le,ct=Ze.s,Lt=0;Lt<=Ze.length;Lt++){var Xt=void 0;if(Lt!==Ze.length){Xt=ct[Lt];var hi=Xt.type;a=Xt.endX,fe=Xt.endY}else hi=ea,a=rt,fe=st;switch(hi){case as:if(rt=oh(z,y,ee,y,oe,le,rt,st),isNaN(rt))return!0;re+=rt,rt=a,st=fe;break;case ea:if(oe=oh(z,y,ee,y,oe,le,a,fe),isNaN(oe))return!0;re+=oe;break;case Us:ue=Nt.Fo(oe,le,Xt.point1X,Xt.point1Y,Xt.point2X,Xt.point2Y,a,fe,ee,y,z,y,.5),re+=ue;break;case Ie:ue=Nt.Fo(oe,le,(oe+2*Xt.point1X)/3,(le+2*Xt.point1Y)/3,(2*Xt.point1X+a)/3,(2*Xt.point1Y+fe)/3,a,fe,ee,y,z,y,.5),re+=ue;break;case Ve:case _e:hi=Xt.type===Ve?il(Xt,Be):yl(Xt,Be,oe,le);var bi=hi.length;if(bi===0){if(oe=oh(z,y,ee,y,oe,le,Xt.type===Ve?Xt.centerX:Xt.endX,Xt.type===Ve?Xt.centerY:Xt.endY),isNaN(oe))return!0;re+=oe;break}Xt=null;for(var yi=0;yi<bi;yi++){if(Xt=hi[yi],yi===0){if(ue=oh(z,y,ee,y,oe,le,Xt[0],Xt[1]),isNaN(ue))return!0;re+=ue}ue=Nt.Fo(Xt[0],Xt[1],Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],ee,y,z,y,.5),re+=ue}Xt!==null&&(a=Xt[6],fe=Xt[7]);break;default:bt("Unknown Segment type: "+Xt.type)}oe=a,le=fe}if($e){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Be.ca(z,y,E?x:x+2))return!0}return!1}function oh(a,y,x,b,E,z,ee,re){if(Nt.Yb(E,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var le=((a*b-y*x)*(E-ee)-(a-x)*(E*re-z*ee))/oe;if(y=(a*b-y*x)*(z-re)/oe,le>=a)return 0;if((E>ee?E-ee:ee-E)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(E<ee){if(le<E||le>ee)return 0}else if(le<ee||le>E)return 0;return 0<oe?1:-1}function xh(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}be.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ye),this.type===ti.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,z=this.flattenedTotalLength*a,ee=0,re=0;re<E;re++){var oe=b[re],le=oe.length;for(a=0;a<le;a++){var ue=oe[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,x=x[re],re=x[2*a],E=x[2*a+1],y.h(re+(x[2*a+2]-re)*b,E+(x[2*a+3]-E)*b),y;ee+=ue}}return y},be.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===ti.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,z=0,ee=0;ee<b;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var le=re[a];if(z+le>=E)return E=y[ee],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;z+=le}}return NaN},be.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===ti.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,z=this.flattenedTotalLength*a,ee=0,re=0;re<E;re++){var oe=b[re],le=oe.length;for(a=0;a<le;a++){var ue=oe[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,ue=x[re],x=ue[2*a],re=ue[2*a+1],E=ue[2*a+2],a=ue[2*a+3],y[0]=x+(E-x)*b,y[1]=re+(a-re)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-re)?0:1>Math.abs(E-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=E-x?0:180:180*Math.atan2(a-re,E-x)/Math.PI,y;ee+=ue}}return y},be.xx=function(a){if(this.type===ti.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var ee=x;b=E}else ee=E,b=x;return a<=ee?ee===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ee)}if(x===E)return y<b?ee=y:(ee=b,b=y),z<=ee?ee===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-ee);ee=(b-y)*(b-y)+(E-x)*(E-x);var re=Ye.alloc();return Nt.qh(y,x,b,E,z,a,re),a=re.x,z=re.y,Ye.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===ti.u){ee=this.startX,re=this.startY;var oe=this.endX;if(E=this.endY,ee!==oe||re!==E){y=oe-ee,x=E-re,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ee),oe),a=Math.min(Math.max(a,re),E),ee=Math.abs(b-ee),oe=Math.abs(b-oe),re=Math.abs(a-re),E=Math.abs(a-E);var le=Math.min(ee,oe,re,E);if(le===re)return b/z;if(le===oe)return(y+a)/z;if(le===E)return(2*y+x-b)/z;if(le===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Ye.alloc(),E=1/0,re=ee=0,oe=y.length;for(var ue=le=0,fe=0;fe<oe;fe++)for(var ye=y[fe],Ce=x[fe],Le=ye.length,Be=0;Be<Le;Be+=2){var $e=ye[Be],Ze=ye[Be+1];if(Be!==0){Nt.qh(le,ue,$e,Ze,a.x,a.y,b);var rt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);rt<E&&(E=rt,ee=re,ee+=Math.sqrt((b.x-le)*(b.x-le)+(b.y-ue)*(b.y-ue))),re+=Ce[(Be-2)/2]}le=$e,ue=Ze}return Ye.free(b),a=ee/z,0>a?0:1<a?1:a}return 0};function oc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===ti.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===ti.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===ti.F){var z=new Cs;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new mo(Ve);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=il(ee,z),E=a.length,E===0)b.push(ee.centerX),b.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<E;re++){var oe=a[re];Nt.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,b),ee=oe[6],z=oe[7]}}y.push(b),x.push(Bd(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),ee=E.startX,z=E.startY,re=ee,oe=z;for(var le=E.segments.s,ue=le.length,fe=0;fe<ue;fe++){var ye=le[fe];switch(ye.type){case as:4<=b.length&&(y.push(b),x.push(Bd(b))),b=[],b.push(ye.endX),b.push(ye.endY),ee=ye.endX,z=ye.endY,re=ee,oe=z;break;case ea:b.push(ye.endX),b.push(ye.endY),ee=ye.endX,z=ye.endY;break;case Us:Nt.Qe(ee,z,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.5,b),ee=ye.endX,z=ye.endY;break;case Ie:Nt.ep(ee,z,ye.point1X,ye.point1Y,ye.endX,ye.endY,.5,b),ee=ye.endX,z=ye.endY;break;case Ve:var Ce=il(ye,E),Le=Ce.length;if(Le===0){b.push(ye.centerX),b.push(ye.centerY),ee=ye.centerX,z=ye.centerY;break}for(var Be=0;Be<Le;Be++){var $e=Ce[Be];Nt.Qe(ee,z,$e[2],$e[3],$e[4],$e[5],$e[6],$e[7],.5,b),ee=$e[6],z=$e[7]}break;case _e:if(Ce=yl(ye,E,ee,z),Le=Ce.length,Be=ye.endX,$e=ye.endY,Le===0){b.push(Be),b.push($e),ee=Be,z=$e;break}for(Be=0;Be<Le;Be++)$e=Ce[Be],Nt.Qe(ee,z,$e[2],$e[3],$e[4],$e[5],$e[6],$e[7],.5,b),ee=$e[6],z=$e[7];break;default:bt("Segment not of valid type: "+ye.type)}ye.isClosed&&(b.push(re),b.push(oe))}4<=b.length&&(y.push(b),x.push(Bd(b)))}}}function Bd(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(sr(x,b,ee,re))),x=ee,b=re}return y}be.add=function(a){return this.ee.add(a),this},be.pm=function(a,y,x,b,E,z,ee,re){return this._isFrozen&&In(this),this.fg=new Fi(a,y,E,z).freeze(),this.gg=new Fi(x,b,ee,re).freeze(),this},ft.Object.defineProperties(ti.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 oc(this),this.tk}},flattenedLengths:{get:function(){return oc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===ti.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===ti.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],z=E.length,ee=0;ee<z;ee++)a+=E[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&In(this,a),this.na=a,a===ti.o?this.ee=new xn:(ti.V===null&&(ti.V=new xn().freeze()),this.ee=ti.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&In(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&In(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&In(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&In(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&In(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&In(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&In(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&In(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),ti.prototype.setSpots=ti.prototype.pm,ti.prototype.add=ti.prototype.add,ti.prototype.getFractionForPoint=ti.prototype.xx,ti.prototype.getPointAndAngleAlongPath=ti.prototype.Qu,ti.prototype.getAngleAlongPath=ti.prototype.wx,ti.prototype.getPointAlongPath=ti.prototype.Pu,ti.prototype.containsPoint=ti.prototype.ca,ti.prototype.transform=ti.prototype.transform,ti.prototype.rotate=ti.prototype.rotate,ti.prototype.scale=ti.prototype.scale,ti.prototype.offset=ti.prototype.offset,ti.prototype.normalize=ti.prototype.normalize,ti.prototype.computeBoundsWithoutOrigin=ti.prototype.ix,ti.prototype.equalsApprox=ti.prototype.Xa,ti.className="Geometry",ti.j=new Bt(ti,"Line",0),ti.u=new Bt(ti,"Rectangle",1),ti.F=new Bt(ti,"Ellipse",2),ti.o=new Bt(ti,"Path",3),ti.V=null,ti.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",ti.className="Geometry",ti.stringify=ti.ia,ti.fillPath=ti.nb,ti.parse=ti.parse,ti.Line=ti.j,ti.Rectangle=ti.u,ti.Ellipse=ti.F,ti.Path=ti.o;function Cs(a,y,x,b,E){Ir(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 xn,this.sr=this.pl.Ja,this.fw=null}Cs.prototype.copy=function(){var a=new Cs;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 z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},be=Cs.prototype,be.Xa=function(a){if(!(a instanceof Cs&&Nt.B(this.startX,a.startX)&&Nt.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},be.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},be.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},be.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},be.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},be.add=function(a){return this.pl.add(a),this},be.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,ee=E,re=this.segments.s,oe=re.length,le=0;le<oe;le++){var ue=re[le];switch(ue.type){case as:z=ue.endX,ee=ue.endY,b=ue.endX,E=ue.endY;break;case ea:if(Nt.Yb(b,E,ue.endX,ue.endY,x,a,y))return!0;b=ue.endX,E=ue.endY;break;case Us:if(Nt.cs(b,E,ue.point1X,ue.point1Y,ue.point2X,ue.point2Y,ue.endX,ue.endY,.5,a,y,x))return!0;b=ue.endX,E=ue.endY;break;case Ie:if(Nt.jv(b,E,ue.point1X,ue.point1Y,ue.endX,ue.endY,.5,a,y,x))return!0;b=ue.endX,E=ue.endY;break;case Ve:case _e:var fe=ue.type===Ve?il(ue,this):yl(ue,this,b,E),ye=fe.length,Ce=ue.type===Ve?ue.centerX:ue.endX,Le=ue.type===Ve?ue.centerY:ue.endY;if(ye===0){if(Nt.Yb(b,E,Ce,Le,x,a,y))return!0;b=Ce,E=Le;break}for(Ce=null,Le=0;Le<ye;Le++)if(Ce=fe[Le],Le===0&&Nt.Yb(b,E,Ce[0],Ce[1],x,a,y)||Nt.cs(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7],.5,a,y,x))return!0;Ce!==null&&(b=Ce[6],E=Ce[7]);break;default:bt("Unknown Segment type: "+ue.type)}if(ue.isClosed&&(b!==z||E!==ee)&&Nt.Yb(b,E,z,ee,x,a,y))return!0}return!1},ft.Object.defineProperties(Cs.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&&In(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&In(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&In(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&In(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&In(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&In(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Cs.prototype.add=Cs.prototype.add,Cs.prototype.equalsApprox=Cs.prototype.Xa,Cs.className="PathFigure";function mo(a,y,x,b,E,z,ee,re){Ir(this),a===void 0&&(a=ea),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),z===void 0&&(z=0),ee===void 0&&(ee=0),a===_e?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Ve&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===Ve&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}mo.prototype.copy=function(){var a=new mo;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},be=mo.prototype,be.Xa=function(a){if(!(a instanceof mo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case as:case ea:return Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY);case Us:return Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY)&&Nt.B(this.point1X,a.point1X)&&Nt.B(this.point1Y,a.point1Y)&&Nt.B(this.point2X,a.point2X)&&Nt.B(this.point2Y,a.point2Y);case Ie:return Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY)&&Nt.B(this.point1X,a.point1X)&&Nt.B(this.point1Y,a.point1Y);case Ve:return Nt.B(this.startAngle,a.startAngle)&&Nt.B(this.sweepAngle,a.sweepAngle)&&Nt.B(this.centerX,a.centerX)&&Nt.B(this.centerY,a.centerY)&&Nt.B(this.radiusX,a.radiusX)&&Nt.B(this.radiusY,a.radiusY);case _e:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Nt.B(this.xAxisRotation,a.xAxisRotation)&&Nt.B(this.endX,a.endX)&&Nt.B(this.endY,a.endY)&&Nt.B(this.radiusX,a.radiusX)&&Nt.B(this.radiusY,a.radiusY);default:return!1}},be.qb=function(a){a.classType===mo&&(this.type=a)},be.toString=function(a){switch(a===void 0&&(a=-1),this.type){case as:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ea:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Us: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 Ie: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 Ve: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 _e: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":"")},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.close=function(){return this.isClosed=!0,this};function il(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,z=Nt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ee=Mr.alloc();ee.reset(),x<b?ee.scale(1,b/x):ee.scale(x/b,1),ti.Ha(z,ee),Mr.free(ee)}for(x=z.length,b=0;b<x;b++)ee=z[b],ee[0]+=y,ee[1]+=E,ee[2]+=y,ee[3]+=E,ee[4]+=y,ee[5]+=E,ee[6]+=y,ee[7]+=E;return a.ae=z,a.ae}function yl(a,y,x,b){function E(Be,$e,Ze,rt){return(Be*rt<$e*Ze?-1:1)*Math.acos((Be*Ze+$e*rt)/(Math.sqrt(Be*Be+$e*$e)*Math.sqrt(Ze*Ze+rt*rt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,le=a.Dc,ue=a.Ec,fe=Math.cos(ee),ye=Math.sin(ee),Ce=fe*(x-le)/2+ye*(b-ue)/2;ee=-ye*(x-le)/2+fe*(b-ue)/2;var Le=Ce*Ce/(y*y)+ee*ee/(z*z);return 1<Le&&(y*=Math.sqrt(Le),z*=Math.sqrt(Le)),Le=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Ce*Ce)/(y*y*ee*ee+z*z*Ce*Ce)),isNaN(Le)&&(Le=0),re=Le*y*ee/z,Le=Le*-z*Ce/y,isNaN(re)&&(re=0),isNaN(Le)&&(Le=0),x=(x+le)/2+fe*re-ye*Le,b=(b+ue)/2+ye*re+fe*Le,ue=E(1,0,(Ce-re)/y,(ee-Le)/z),fe=(Ce-re)/y,le=(ee-Le)/z,Ce=(-Ce-re)/y,re=(-ee-Le)/z,ee=E(fe,le,Ce,re),Ce=(fe*Ce+le*re)/(Math.sqrt(fe*fe+le*le)*Math.sqrt(Ce*Ce+re*re)),-1>=Ce?ee=Math.PI:1<=Ce&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Ce=y>z?z/y:1,y=Nt.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=Mr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(oe,Ce),ti.Ha(y,z),Mr.free(z),a.ae=y,a.ae}ft.Object.defineProperties(mo.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&&In(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&In(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&In(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&In(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&In(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&In(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&In(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&In(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&In(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&gi(a,">= zero",mo,"radiusX"),this._isFrozen&&In(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&gi(a,">= zero",mo,"radiusY"),this._isFrozen&&In(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&In(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&&In(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&&In(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&&In(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&&In(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),mo.prototype.equalsApprox=mo.prototype.Xa;var as=new Bt(mo,"Move",0),ea=new Bt(mo,"Line",1),Us=new Bt(mo,"Bezier",2),Ie=new Bt(mo,"QuadraticBezier",3),Ve=new Bt(mo,"Arc",4),_e=new Bt(mo,"SvgArc",4);mo.className="PathSegment",mo.Move=as,mo.Line=ea,mo.Bezier=Us,mo.QuadraticBezier=Ie,mo.Arc=Ve,mo.SvgArc=_e;function Rt(){this.H=null,this.xu=new Ye(0,0).freeze(),this.mt=new Ye(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}Rt.prototype.copy=function(){var a=new Rt;return this.clone(a)},Rt.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},Rt.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},Rt.prototype.So=function(a,y){var x=this.diagram;return x===null||Wd(x,a,y),y},Rt.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Wd(x,a,y),y.assign(x.Ps(y))),y},ft.Object.defineProperties(Rt.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}}}),Rt.prototype.getMultiTouchDocumentPoint=Rt.prototype.Bz,Rt.prototype.getMultiTouchViewPoint=Rt.prototype.So,Rt.className="InputEvent";function Zt(){this.H=null,this.xa="",this.ar=this.Lr=null}Zt.prototype.copy=function(){var a=new Zt;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Zt.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},ft.Object.defineProperties(Zt.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}}}),Zt.className="DiagramEvent";function fn(){this.Fm=Gn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}fn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},fn.prototype.copy=function(){var a=new fn;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=Kt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Kt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Kt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Kt(y)&&typeof y.J=="function"?y.J():y,a},fn.prototype.qb=function(a){a.classType===fn&&(this.change=a)},fn.prototype.toString=function(){var a="";return a=this.change===mn?a+"* ":this.change===Gn?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===mn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Vn(this.object)),this.oldValue!==null&&(a+=" old: "+Vn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Vn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},fn.prototype.I=function(a){return a?this.oldValue:this.newValue},fn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},fn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},fn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},fn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},fn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ft.Object.defineProperties(fn.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===mn&&(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}}}),fn.prototype.redo=fn.prototype.redo,fn.prototype.canRedo=fn.prototype.canRedo,fn.prototype.undo=fn.prototype.undo,fn.prototype.canUndo=fn.prototype.canUndo,fn.prototype.getParam=fn.prototype.Dz,fn.prototype.getValue=fn.prototype.I,fn.prototype.clear=fn.prototype.clear;var mn=new Bt(fn,"Transaction",-1),Gn=new Bt(fn,"Property",0),Un=new Bt(fn,"Insert",1),ui=new Bt(fn,"Remove",2);fn.className="ChangedEvent",fn.Transaction=mn,fn.Property=Gn,fn.Insert=Un,fn.Remove=ui;function Ii(){this.o=new xn().freeze(),this.xa="",this.j=!1}Ii.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},Ii.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()},Ii.prototype.canUndo=function(){return this.isComplete},Ii.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()}},Ii.prototype.canRedo=function(){return this.isComplete},Ii.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()}},Ii.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new wi,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Gn&&b.object){var E=y.get(b.object);E||(E=new wi,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,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()}},ft.Object.defineProperties(Ii.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}}}),Ii.prototype.optimize=Ii.prototype.ak,Ii.prototype.redo=Ii.prototype.redo,Ii.prototype.canRedo=Ii.prototype.canRedo,Ii.prototype.undo=Ii.prototype.undo,Ii.prototype.canUndo=Ii.prototype.canUndo,Ii.prototype.clear=Ii.prototype.clear,Ii.className="Transaction";function li(){this.Pt=new An,this.Jd=!1,this.u=new xn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new xn().freeze(),this.hl=new xn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}li.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},li.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},li.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},be=li.prototype,be.Xw=function(a){this.Pt.add(a)},be.Rx=function(a){this.Pt.remove(a)},be.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},be.eb=function(a){return a===void 0&&(a=""),Li(this,!0,a)},be.Kf=function(){return Li(this,!1,"")};function Li(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Oi("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 z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-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&&(z=y.M(0),z!==null&&z.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=z,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}be.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()}},li.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},li.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){Oi("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},li.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},li.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){Oi("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},li.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new fn;for(b.change=mn,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},li.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ii);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||Oi("Change not within a transaction: "+x.toString()))}},li.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},ft.Object.defineProperties(li.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}}}),li.prototype.handleChanged=li.prototype.Tu,li.prototype.redo=li.prototype.redo,li.prototype.undo=li.prototype.undo,li.prototype.canUndo=li.prototype.canUndo,li.prototype.discardHistoryAfterIndex=li.prototype.lx,li.prototype.rollbackTransaction=li.prototype.Kf,li.prototype.commitTransaction=li.prototype.eb,li.prototype.startTransaction=li.prototype.Ea,li.prototype.removeModel=li.prototype.Rx,li.prototype.addModel=li.prototype.Xw,li.prototype.clear=li.prototype.clear,li.className="UndoManager";function si(){Ir(this),this.H=sh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Rt,this.Zr=-1}si.prototype.toString=function(){return this.name!==""?this.name+" Tool":Nn(this.constructor)},si.prototype.updateAdornments=function(){},si.prototype.canStart=function(){return this.isEnabled},si.prototype.doStart=function(){},si.prototype.doActivate=function(){this.isActive=!0},si.prototype.doDeactivate=function(){this.isActive=!1},si.prototype.doStop=function(){},si.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},si.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},si.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},si.prototype.doMouseMove=function(){},si.prototype.doMouseUp=function(){this.stopTool()},si.prototype.doMouseWheel=function(){},si.prototype.canStartMultiTouch=function(){return!0},si.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ye.allocAt(NaN,NaN)),b=y.So(1,Ye.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}Ye.free(x),Ye.free(b)},si.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ye.allocAt(NaN,NaN)),b=y.So(1,Ye.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new Ye((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),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=E,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}Ye.free(x),Ye.free(b)},si.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},si.prototype.doKeyUp=function(){},si.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},si.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},si.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Lr?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||(Lr?y.meta:y.control)||y.shift||a.clearSelection()}},si.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,Xi(a,b,x),b.handled};function Xi(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)}}}si.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 z=a.Ck,ee=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(b===z||b!==null&&b.rg(z)||(re(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;b!==null&&(ee=b.mouseEnter,!(ee!==null&&(z===b||z!==null&&z.rg(b)||(ee(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},si.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},si.prototype.doCurrentObjectChanged=function(){},si.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===jr&&!y.shift||E===Ji&&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===jr&&y.shift||E===Ji&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},si.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},si.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Di(function(){x.doWaitAfter(b)},a)},si.prototype.cancelWaitAfter=function(){this.Zr!==-1&<.clearTimeout(this.Zr),this.Zr=-1},si.prototype.doWaitAfter=function(){},si.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ao);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},si.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},ft.Object.defineProperties(si.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Yt&&(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}}}),si.prototype.startTransaction=si.prototype.Ea,si.className="Tool";function zn(){si.call(this),this.name="ToolManager",this.hb=new xn,this.ob=new xn,this.Hb=new xn,this.F=this.V=850,this.o=new ei(2,2).ja(),this.Ha=5e3,this.ia=Ji,this.u=Kr,this.Mp=this.j=null,this.zj=-1}Jt(zn,si),zn.prototype.initializeStandardTools=function(){},zn.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ao&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},zn.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Vr&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Hr){y.bubbles=!0;return}if(this.gestureBehavior===Vr)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===Ji?this.mouseWheelBehavior=jr:this.mouseWheelBehavior===jr&&(this.mouseWheelBehavior=Ji)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},zn.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Hr){y.bubbles=!0;return}if(this.gestureBehavior===Vr)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}}Mi(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Mi(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}zn.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ao&&(y===a||y.rg(a))||this.hideToolTip()},zn.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()))},zn.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)},zn.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 Ao)||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()},zn.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ao){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 or&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(lt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Di(function(){E.hideToolTip()},a)}},zn.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}},zn.prototype.hideToolTip=function(){this.zj!==-1&&(lt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ao?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof or&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},zn.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()},zn.prototype.doMouseWheel=function(){this.standardMouseWheel()},zn.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},zn.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},zn.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},zn.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},zn.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)},ft.Object.defineProperties(zn.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 Ao?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}}}),zn.prototype.replaceStandardTool=zn.prototype.gb;var Ji=new Bt(zn,"WheelScroll",0),jr=new Bt(zn,"WheelZoom",1),Tr=new Bt(zn,"WheelNone",2),Kr=new Bt(zn,"GestureZoom",3),Vr=new Bt(zn,"GestureCancel",4),Hr=new Bt(zn,"GestureNone",5);zn.className="ToolManager",zn.WheelScroll=Ji,zn.WheelZoom=jr,zn.WheelNone=Tr,zn.GestureZoom=Kr,zn.GestureCancel=Vr,zn.GestureNone=Hr;function zi(){si.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 Ye(NaN,NaN),this.Fr=new Ye,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new An().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Yo;Jt(zi,si),zi.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},zi.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},zi.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,(Lr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},zi.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),Ot=null,this.isActive=!0,this.tl.set(a.position),jo(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&&fl(a),hc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ot=this,en=this.diagram,this.doSimulatedDragOut()))};function jo(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof qn?(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 vi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}zi.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},zi.prototype.Pd=function(a){return a===void 0?new Kd($r):this.isGridSnapEnabled?new Kd(new Ye(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Kd(a.copy())},zi.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ta(this),Bu(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Yo.count){for(var y=Yo,x=y.length,b=0;b<x;b++){var E=y.M(b);es(E),Sa(E),ta(E),E.diagram.ug()}y.clear()}es(this),this.tl.h(NaN,NaN),en!==null&&(en.currentCursor=""),Ot=en=null,Sa(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),id(a,!0)},zi.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ta(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Ua(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ka(){var a=Ot;Sa(a),oa(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}zi.prototype.doCancel=function(){Sa(this),oa(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},zi.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},zi.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function La(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")):oa(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 wi,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof qn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,jo(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Sa(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 qn&&(x.value.point=new Ye(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function es(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 ma(a,y,x){var b=a.diagram,E=a.startPoint,z=Ye.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Ye.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(fl(b),b.hk())}zi.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Uu(b,a,y,this.dragOptions,x)};function oa(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 qn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),wc(b,-E.x,-E.y)}y.bd()}}function xa(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),wa(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=Ua(a,E,b),!a.isActive&&Ot===null)return;var re=b!==null?b.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof br)){var oe=x.mouseDragOver;oe!==null&&(oe(E),ee=!0)}if(!a.isActive&&Ot===null||(a.doDragOver(y,b),!a.isActive&&Ot===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}zi.prototype.findDragOverObject=function(a){var y=this;return Yu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ao||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},zi.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 Ua(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ee=0;ee<E;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ot===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=ts(E);for(E=a.Cg.length,x=0;x<E&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),b=!0,!y.handled));x++);return b}function ts(a){var y=a.panel;return y!==null?y:a instanceof ji&&!(a instanceof br)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Ra(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(le){return b.findValidLinkablePort(le,x)});a=Ye.alloc();var z=1/0,ee=null;for(E=E.iterator;E.next();){var re=E.value;if(re.part!==null){var oe=re.ga(lo,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return Ye.free(a),ee}function wa(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 z=null,ee=null;x.fromNode===null&&(z=Ra(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Ra(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),E.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Yi(E,ee,z,oe,re):Yi(E,null,null,null,null)}}}}zi.prototype.doDragOver=function(){};function Ms(a,y){var x=a.diagram;a.dragsLink&&wa(a,!0),ta(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(E,z),E.handled))break;el(a,E,z),z=ts(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Ot!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof fi&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Ot!==null){for(a=dn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof fi&&Je(x,b,a);dn.free(a)}}}function el(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof br||(x=a.mouseDrop,x!==null&&x(y))}function Je(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 qn},!0,function(E){return E instanceof qn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}zi.prototype.doDropOnto=function(){},zi.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()?(La(this,!1),hc(a,this.copiedParts),ma(this,this.copiedParts,!1),Bu(a,this.copiedParts)):this.mayMove()?(Sa(this),ma(this,this.draggedParts,!0)):this.mayDragOut()?(La(this,!1),ma(this,this.copiedParts,!1)):Sa(this),xa(this,a.lastInput.documentPoint))}},zi.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?(Sa(this),La(this,!0),hc(a,this.copiedParts),ma(this,this.copiedParts,!1),Bu(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,Sa(this),this.mayMove()&&(ma(this,this.draggedParts,!0),xa(this,a.lastInput.documentPoint))),this.Ym=!0,Ms(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&tt(this),a.Ya(),Bu(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},zi.prototype.simulatedMouseMove=function(a,y,x){if(Ot===null)return!1;var b=Ot.diagram;x instanceof Yt||(x=null);var E=en;return x!==E&&(E!==null&&E!==b&&(E.ug(),Ot.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),en=x,x!==null&&x!==b&&(ka(),E=x.toolManager.findTool("Dragging"),E!==null&&(Yo.contains(E)||Yo.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)},zi.prototype.simulatedMouseUp=function(a,y,x){if(Ot===null)return!1;var b=en,E=Ot.diagram;if(x===null)return Ot.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Ot.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;en=x,b=x.toolManager.findTool("Dragging"),b!==null&&(ka(),Yo.contains(b)||Yo.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 Ye),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=Ot,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function tt(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof fi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}zi.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Lr?!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())},zi.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())},zi.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())},zi.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},zi.prototype.Az=function(){return Ot},zi.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ot;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},zi.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),xl(a),a.animationManager.Cc(),a=Ot,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},zi.prototype.doSimulatedDragLeave=function(){var a=Ot;a!==null&&a.doSimulatedDragOut(),this.doCancel()},zi.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ot;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Tt(this,y.draggedParts.Lf(),!1,a.firstInput),ma(this,this.copiedParts,!1),xa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},zi.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ot;if(y!==null){var x=y.diagram;if(y.Ym=!0,Sa(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Tt(this,y.draggedParts.Lf(),!0,a.lastInput),ma(this,this.copiedParts,!1);var b=new An;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Ms(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 Tt(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 z=dn.alloc();E=b=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var le=oe.value;if(le.isVisible()){var ue=le.location;le=ue.x,ue=ue.y,isNaN(le)||isNaN(ue)||(le<b&&(b=le),ue<E&&(E=ue),le>ee&&(ee=le),ue>re&&(re=ue))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,ee-b,re-E),b=z.x+z.width/2,E=z.y+z.height/2,dn.free(z),z=a.Fr,ee=new wi,re=Ye.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof qn&&le.canCopy()&&(ue=x.I(le),ue!==null&&(ue.points=le.points,wc(ue,z.x-b,z.y-E),ue.suspendsRouting=!0,ee.add(ue,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(oe=x.I(le),oe!==null&&(le=le.location,re.h(z.x-(b-le.x),z.y-(E-le.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));Ye.free(re),a.copiedParts=ee,jo(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}zi.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},zi.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ye},ft.Object.defineProperties(zi.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}}}),zi.prototype.getDraggingSource=zi.prototype.Az;var Ot=null,en=null;zi.className="DraggingTool",Yo=new xn,Tn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),zn.prototype.doCancel=function(){Ot!==null&&Ot.doCancel(),si.prototype.doCancel.call(this)};function Vt(){si.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new qn,y=new Dr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Dr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new fi,y=new Dr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ia,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new fi,y=new Dr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ia,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 wi,this.Of=this.gj=this.Pf=null}Jt(Vt,si),Vt.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Vt.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),ee=ei.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,b.desiredSize=ee,ei.free(ee),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=lo,z=Ye.alloc(),x.location=y.ga(lo,z),Ye.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Vt.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ia,y.fromSpot=Ya,y.toSpot=Ya),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Vt.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Vt.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof fi){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)}},Vt.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof fi))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof fi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Vt.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(fe){return E.findValidLinkablePort(fe,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof fi){var oe=ee.ga(lo,Ye.alloc()),le=x.x-oe.x,ue=x.y-oe.y;Ye.free(oe),oe=le*le+ue*ue,oe<b&&(le=this.validPortsCache.I(ee),le!==null?le&&(y=ee,b=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,b=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof fi&&(x.layer===null||x.layer.allowLink))?y:null},Vt.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},Vt.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},Vt.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Vt.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof fi))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof fi))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},Vt.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)},Vt.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 An;return b.add(a),Ln(this,x,y,b)};function Ln(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Ln(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Ln(a,y.labeledLink,x,b))))}Vt.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!==Yf){if(b===dp){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!bn(this,a,y,x,!0)}if(b===cp){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!bn(this,a,y,x,!0)}if(b===lp)return a===y?a=!0:(b=new An,b.add(y),a=wn(this,b,a,y,x)),!a;if(b===up)return!bn(this,a,y,x,!1);if(b===hp)return a===y?a=!0:(b=new An,b.add(y),a=ni(this,b,a,y,x)),!a}return!0};function bn(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==b&&(!E||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&bn(a,ee,x,b,E)))return!0}return!1}function wn(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 z=x.linksConnected;z.next();){var ee=z.value;if(ee!==E&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&wn(a,y,ee,b,E)))return!0}return!1}function ni(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 z=x.linksConnected;z.next();){var ee=z.value;if(ee!==E){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&ni(a,y,re,b,E))return!0}}return!1}ft.Object.defineProperties(Vt.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}}}),Vt.className="LinkingBaseTool";function jn(){Vt.call(this),this.name="Linking",this.V={},this.F=null,this.K=_n,this.Xd=null}Jt(jn,Vt),jn.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},jn.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 fi)))return null;var x=this.direction;if(x===_n||x===Ei){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===_n||x===Ci)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},jn.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 fi&&(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 fi&&(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)},jn.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()},jn.prototype.doStop=function(){Vt.prototype.doStop.call(this),this.startObject=null},jn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof fi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=re,E=ee):(y=re,x=ee,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?(z=this.insertLink(y,x,b,E),z!==null?(ee===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},jn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof qn)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)},jn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},jn.prototype.doNoLink=function(){},ft.Object.defineProperties(jn.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 _n=new Bt(jn,"Either",0),Ei=new Bt(jn,"ForwardsOnly",0),Ci=new Bt(jn,"BackwardsOnly",0);jn.className="LinkingTool",jn.Either=_n,jn.ForwardsOnly=Ei,jn.BackwardsOnly=Ci;function vi(){Vt.call(this),this.name="Relinking";var a=new Dr;a.figure="Diamond",a.desiredSize=ha,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Dr,a.figure="Diamond",a.desiredSize=ha,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new dn}Jt(vi,Vt),vi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof qn){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)}},vi.prototype.makeAdornment=function(a,y){var x=new Ao;return x.type=Kn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},vi.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},vi.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 Ao&&x.adornedPart instanceof qn))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=Ro),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ro),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},vi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Rg||x===Pc)&&(x=Zl),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}},vi.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()},vi.prototype.doStop=function(){Vt.prototype.doStop.call(this),this.handle=null},vi.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,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof fi&&(this.isForwards?(b=ee,E=this.targetPort):(y=ee,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},vi.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},vi.prototype.doNoRelink=function(){};function Yi(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)}ft.Object.defineProperties(vi.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 Ao))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),vi.className="RelinkingTool",Tn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Tn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function xi(){si.call(this),this.name="LinkReshaping";var a=new Dr;a.figure="Rectangle",a.desiredSize=Za,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Dr,a.figure="Diamond",a.desiredSize=ha,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ye,this.Yq=new xn}Jt(xi,si),xi.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:_i},xi.prototype.om=function(a,y){a.reshapingBehavior=y},xi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof qn){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)}},xi.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ao,E.type=Kn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=b?1:0;if(y.resegmentable&&y.computeCurve()!==ju)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,E.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&b){oe=y.i(x);var le=y.i(x+1);Nt.B(oe.x,le.x)&&Nt.B(oe.y,le.y)&&(le=y.i(x-1)),Nt.B(oe.x,le.x)?(this.om(re,Yr),re.cursor="n-resize"):Nt.B(oe.y,le.y)&&(this.om(re,ur),re.cursor="w-resize")}else ee===z-1&&b?(oe=y.i(z-1),le=y.i(z),Nt.B(oe.x,le.x)&&Nt.B(oe.y,le.y)&&(oe=y.i(z+1)),Nt.B(oe.x,le.x)?(this.om(re,Yr),re.cursor="n-resize"):Nt.B(oe.y,le.y)&&(this.om(re,ur),re.cursor="w-resize")):ee!==z&&(this.om(re,ao),re.cursor="move");E.add(re)}E.adornedObject=a}return E},xi.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},xi.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},xi.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},xi.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 qn){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}}},xi.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},xi.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},xi.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},xi.prototype.getResegmentingPoint=function(){return this.handle.ga(lo)},xi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},xi.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),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ee=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(ir(this,ee,b,E,z,!0)||ir(this,ee,b,E,z,!1))){var re=y.points.copy();ir(this,ee,b,E,z,!0)?(re.cd(x-2,new Ye(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Ye(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Ye((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Ye((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(ir(this,b,E,z,ee,!0)||ir(this,b,E,z,ee,!1))&&(re=y.points.copy(),ir(this,b,E,z,ee,!0)?(re.cd(x-1,new Ye(b.x,(b.y+ee.y)/2)),re.cd(x+2,new Ye(ee.x,(b.y+ee.y)/2))):(re.cd(x-1,new Ye((b.x+ee.x)/2,b.y)),re.cd(x+2,new Ye((b.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Ye.alloc(),Nt.qh(b.x,b.y,z.x,z.y,E.x,E.y,ee)&&ee.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Ye.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function ir(a,y,x,b,E,z){return z?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}xi.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===Yr?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===ur&&(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===Yr?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===ur&&(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),z=y.i(b-1),ee=y.i(b+1);Nt.B(z.x,E.x)&&Nt.B(E.y,ee.y)?(Nt.B(z.x,y.i(b-2).x)&&!Nt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Nt.B(ee.y,y.i(b+2).y)&&!Nt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.x,a.y)):Nt.B(z.y,E.y)&&Nt.B(E.x,ee.x)?(Nt.B(z.y,y.i(b-2).y)&&!Nt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Nt.B(ee.x,y.i(b+2).x)&&!Nt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Nt.B(z.x,E.x)&&Nt.B(E.x,ee.x)?(Nt.B(z.x,y.i(b-2).x)&&!Nt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Nt.B(ee.x,y.i(b+2).x)&&!Nt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Nt.B(z.y,E.y)&&Nt.B(E.y,ee.y)&&(Nt.B(z.y,y.i(b-2).y)&&!Nt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Nt.B(ee.y,y.i(b+2).y)&&!Nt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.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&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(lo,Ye.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Ye.alloc()),y.L(0,b.x,b.y),Ye.free(z),Ye.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(lo,Ye.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Ye.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ye.free(x),Ye.free(a));y.zf()},xi.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case ao:return a;case Yr:return new Ye(y.i(x).x,a.y);case ur:return new Ye(a.x,y.i(x).y);default:case _i:return y.i(x)}},ft.Object.defineProperties(xi.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 Ao))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}}}),xi.prototype.setReshapingBehavior=xi.prototype.om,xi.prototype.getReshapingBehavior=xi.prototype.Ru;var _i=new Bt(xi,"None",0),ur=new Bt(xi,"Horizontal",1),Yr=new Bt(xi,"Vertical",2),ao=new Bt(xi,"All",3);xi.className="LinkReshapingTool",xi.None=_i,xi.Horizontal=ur,xi.Vertical=Yr,xi.All=ao,Tn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function pr(){si.call(this),this.name="Resizing",this.o=new ei(1,1).freeze(),this.j=new ei(9999,9999).freeze(),this.yg=new ei(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Dr;a.alignmentFocus=lo,a.figure="Rectangle",a.desiredSize=Za,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ye,this.Dw=new ei,this.Tn=new Ye,this.rt=new ei(0,0),this.qt=new ei(1/0,1/0),this.pt=new ei(1,1)}Jt(pr,si),pr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof qn)){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(),Vc(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},pr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ao,y.type=Kn.Spot,y.locationSpot=lo;var x=new Wl;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Es)),y.add(this.makeHandle(a,uu)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,El)),y.add(this.makeHandle(a,_a)),y.add(this.makeHandle(a,Ls)),y.add(this.makeHandle(a,Ps)),y.add(this.makeHandle(a,ls))}else if(fh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},pr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},pr.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=lo),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 Kn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},pr.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},pr.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))},pr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},pr.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},pr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},pr.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,Ye.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Ye.free(E)}},pr.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,Ye.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Ye.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},pr.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 br){var b=new xn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new ae;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()}},pr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=lo);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,le=ee.x+ee.width,ue=ee.y+ee.height,fe=1;if(!z){fe=ee.width;var ye=ee.height;0>=fe&&(fe=1),0>=ye&&(ye=1),fe=ye/fe}return ye=Ye.alloc(),Nt.No(a.x,a.y,re,oe,E.width,E.height,ye),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(ye.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(ye.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.x=le-a.width,a.y=ue-a.height)):1<=y.y?(a.x=Math.max(ye.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(ye.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.x=le-a.width)):(a.x=Math.max(ye.x,le-b.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(ye.x-re,b.width),x.width),a.y=Math.max(ye.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width),a.y=ue-a.height)):1<=y.y?(a.width=Math.max(Math.min(ye.x-re,b.width),x.width),a.height=Math.max(Math.min(ye.y-oe,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width))):(a.width=Math.max(Math.min(ye.x-re,b.width),x.width),z||(a.height=Math.max(Math.min(fe*a.width,b.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):0>=y.y?(a.y=Math.max(ye.y,ue-b.height),a.y=Math.min(a.y,ue-x.height),a.height=ue-a.y,z||(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(ye.y-oe,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/fe,b.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))),Ye.free(ye),a},pr.prototype.computeReshape=function(){var a=Dn;return this.adornedObject instanceof Dr&&(a=bv(this.adornedObject)),!(a===Ni||this.diagram.lastInput.shift)},pr.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},pr.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},pr.prototype.computeCellSize=function(){var a=new ei(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},ft.Object.defineProperties(pr.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 Ao))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 Ao)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}}}),pr.className="ResizingTool",Tn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ar(){si.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ye,this.ue=null;var a=new Dr;a.figure="Ellipse",a.desiredSize=ha,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ye(NaN,NaN),this.u=0,this.F=50}Jt(Ar,si),Ar.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)}},Ar.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ao,y.type=Kn.Position,y.locationSpot=lo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(fh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ar.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},Ar.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)},Ar.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(lo)},Ar.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)},Ar.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ye(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ar.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ar.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ar.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ar.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()},Ar.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()}},Ar.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},ft.Object.defineProperties(Ar.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 Ao))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 Ao)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}}}),Ar.className="RotatingTool",Tn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function bo(){si.call(this),this.name="ClickSelecting"}Jt(bo,si),bo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},bo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},bo.className="ClickSelectingTool";function cr(){si.call(this),this.name="Action",this.pk=null}Jt(cr,si),cr.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},cr.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()},cr.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))}},cr.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()},cr.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())},cr.prototype.doStop=function(){this.pk=null},cr.className="ActionTool";function Or(){si.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ye(0,0)}Jt(Or,si),Or.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)},Or.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Or.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 ji)x.Zc()&&(fh(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Kt(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Ye.allocAt(a.x,a.y);this.isGridSnapEnabled&&pf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ye.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},ft.Object.defineProperties(Or.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}}}),Or.className="ClickCreatingTool";function mr(){si.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ji;a.layerName="Tool",a.selectable=!1;var y=new Dr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Jt(mr,si),mr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},mr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},mr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},mr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=ei.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),ei.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},mr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},mr.prototype.computeBoxBounds=function(){var a=this.diagram;return new dn(a.firstInput.documentPoint,a.lastInput.documentPoint)},mr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Lr?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 xn,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)}},ft.Object.defineProperties(mr.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),mr.className="DragSelectingTool";function Zi(){si.call(this),this.name="Panning",this.Xt=new Ye,this.xy=new Ye,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(lt.document,"scroll",a.Kw,!1),a.stopTool()}}Jt(Zi,si),Zi.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())},Zi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(lt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Zi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Zi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Zi.prototype.doMouseMove=function(){this.move()},Zi.prototype.doMouseUp=function(){this.move(),this.stopTool()},Zi.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)}},ft.Object.defineProperties(Zi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Zi.className="PanningTool",Tn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Tn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Tn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Tn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Tn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function or(){this.F=this.u=this.j=this.o=null}ft.Object.defineProperties(or.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}}}),or.className="HTMLInfo";function Rr(a,y,x){this.text=a,this.hx=y,this.visible=x}Rr.className="ContextMenuButtonInfo";function so(){si.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ye,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Jt(so,si);function uo(a){var y=new or;y.show=function(E,z,ee){ee.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},Ho=y,a.tu=function(){a.stopTool()},y=Cn("div");var x=Cn("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=Cn("style");lt.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",ar,!1),b.addEventListener(y,"selectstart",ar,!1),b.addEventListener(x,"contextmenu",ar,!1)),y.className="goCXforeground",x.className="goCXbackground",lt.document.body&&(lt.document.body.appendChild(y),lt.document.body.appendChild(x)),wo=y,qo=x,za=!0}function ar(a){return a.preventDefault(),!1}so.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)},so.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},so.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},so.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Yt||(a instanceof At?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},so.prototype.doActivate=function(){},so.prototype.doMouseDown=function(){if(si.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ao){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Eo(this)},so.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ao){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Eo(this)};function Eo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof or||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Io(a,!0),a.isActive||a.stopTool())}so.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Io(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=Ho,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof At?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ao&&!a.currentContextMenu.visible&&a.stopTool()}}so.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},so.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ao){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 or&&a.show(y,x,this);this.currentContextMenu=a},so.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}},so.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ao?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof or&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Zo(a){var y=new xn;return y.add(new Rr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Rr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Rr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Rr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Rr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Rr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Rr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Rr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Rr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Rr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Rr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Rr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Rr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}so.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Zo(this)),wo.innerHTML="",qo.addEventListener("pointerdown",this.tu,!1);var y=this,x=Cn("ul");x.className="goCXul",wo.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=Cn("li"),z.className="goCXli";var ee=Cn("a");ee.className="goCXa",ee.href="#",ee.ky=E.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=E.text,z.appendChild(ee),x.appendChild(z)}}wo.style.display="block",qo.style.display="block"},so.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Ho){wo.style.display="none",qo.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(qo,"pointerdown",this.tu,!1),this.currentContextMenu=null}},ft.Object.defineProperties(so.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ao?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return za===!1&&Ho===null&&$a&&uo(this),Ho},set:function(a){a===null&&(za=!0),Ho=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Ho=null,za=!1,qo=null,wo=null;so.className="ContextMenuTool",Tn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Jr(){si.call(this),this.name="TextEditing",this.Zh=new aa,this.ia=null,this.V=Ur,this.vj=null,this.qa=Ai,this.u=1,this.F=!0,this.o=null,this.j=new or,this.kt=null,po(this,this.j)}Jt(Jr,si);function po(a,y){if($a){var x=Cn("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(io)):E==="Tab"?(a.acceptText(vo),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ai){var b=a.kt;a.qa===xr&&(a.qa=ko),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ai){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,z){if(b instanceof aa&&z instanceof Jr)if(z.state===Xs)x.style.border="3px solid red",x.focus();else{var ee=b.ga(lo),re=E.position,oe=E.scale,le=b.Df()*oe;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var ue=b.naturalBounds.width*le+6,fe=b.naturalBounds.height*le+2,ye=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=b.verticalAlignment,oe=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*le,fe=re.y*fe-re.y*oe+re.offsetY-(.5*fe-.5*oe)-oe/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*le+"%",x.style.lineHeight="normal",x.style.width=ue+"px",x.style.left=(ye-ue/2|0)-1+"px",x.style.top=(ee+fe|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=le,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Jr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||sl&&sl!==this&&(sl.acceptText(Ga),sl&&sl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof aa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Ur&&!y.isSelected||this.starting===Br&&2>a.lastInput.clickCount)):!1},Jr.prototype.doStart=function(){sl=this,this.textBlock!==null&&this.doActivate()},Jr.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 aa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=xr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new dn(this.textBlock.ga(Es),this.textBlock.ga(ml));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Jr.prototype.doCancel=function(){this.stopTool()},Jr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Jr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ga)},Jr.prototype.acceptText=function(a){switch(a){case Ga:this.qa===As?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===xr||this.qa===Xs||this.qa===ko)&&(this.qa=Uo,Ta(this));break;case Pa:case io:case vo:(io!==a||this.textBlock.isMultiline!==!0)&&(this.qa===xr||this.qa===Xs||this.qa===ko)&&(this.qa=Uo,Ta(this))}};function Ta(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=As,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Xs,a.doError(E,z))}}Jr.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)},Jr.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Jr.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ai,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Jr.prototype.doStop=function(){sl=null},Jr.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)))},Jr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},ft.Object.defineProperties(Jr.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)}}}),Jr.prototype.measureTemporaryTextBlock=Jr.prototype.Lx;var Pa=new Bt(Jr,"LostFocus",0),Ga=new Bt(Jr,"MouseDown",1),vo=new Bt(Jr,"Tab",2),io=new Bt(Jr,"Enter",3),Po=new Bt(Jr,"SingleClick",0),Ur=new Bt(Jr,"SingleClickSelected",1),Br=new Bt(Jr,"DoubleClick",2),Ai=new Bt(Jr,"StateNone",0),xr=new Bt(Jr,"StateActive",1),ko=new Bt(Jr,"StateEditing",2),Uo=new Bt(Jr,"StateValidating",3),Xs=new Bt(Jr,"StateInvalid",4),As=new Bt(Jr,"StateValidated",5),sl=null;Jr.className="TextEditingTool",Jr.LostFocus=Pa,Jr.MouseDown=Ga,Jr.Tab=vo,Jr.Enter=io,Jr.SingleClick=Po,Jr.SingleClickSelected=Ur,Jr.DoubleClick=Br,Jr.StateNone=Ai,Jr.StateActive=xr,Jr.StateEditing=ko,Jr.StateValidating=Uo,Jr.StateInvalid=Xs,Jr.StateValidated=As,Tn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ya(a){gs||(Ba(),gs=!0),this.H=sh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Is,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new An,this.ce=new Ha,this.ce.Yd=this,this.Ei=new An,this.pu=new An,this.Sr=new An,this.pr=new An,a&&Object.assign(this,a)}ya.prototype.Xe=function(a){this.H=a},ya.prototype.canStart=function(){return!0};function Da(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Js(a.H),a.zb=!0)}function ho(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Is?(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===$l&&y.vc.clear(),a.Qw=!!(a.Pk===bu&&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(),ul(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Al&&b!==null&&(delete b.start.scale,delete b.end.scale),lt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&fl(x),Od(x),a.zb=!1,y.start(),y.bc&&(Ka(a),x.Ya(),ah(y,0),xl(x,!0),us(a),x.R("AnimationStarting",a)))}))}}function Bs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function ll(a,y,x,b){a.isTicking||Bs(a)||y instanceof qn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}be=ya.prototype,be.fv=function(a){return this.ce.fv(a)},be.Xu=function(a){return this.ce.Xu(a)};function Ma(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 z=E.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof At&&oe.diagram!==null||oe instanceof Yt){re=!0;break e}}re=!1}re?du(ee,!1):ee.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Ka(E),xl(E.H),us(E)),lt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),lt.requestAnimationFrame(function(){x()}))}function ja(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Ka(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 us(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}be.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(),ul(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),ul(y,this.H)},be.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))},be.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Xa(this,a))},be.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ss(this.ce,y,"position",y.position,y.position),Xa(this,a))};function Os(a,y,x){!a.zb||y.D(x)||Bs(a)||(a.H.pi||(y=x.copy()),ss(a.ce,a.H,"position",y,x))}function na(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Xa(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Hs(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],le=y[1],ue=y[2];return y=y[3],re===0||re===100?(z=oe,ee=le):(ue===0||ue===100)&&(oe=z,le=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=E(x,z,oe-z,b)%360,ee=E(x,ee,le-ee,b),re=E(x,re,ue-re,b),x=E(x,a,y-a,b),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function Ba(){function a(x,b,E,z,ee,re){x.position=new Ye(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}var y=new wi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new Ye(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("location",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!0):x.location=new Ye(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:placeholder",function(x,b,E,z,ee,re){ee<re?x.mm(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re),!1):x.position=new Ye(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}),y.add("position:nodeCollapse",function(x,b,E,z,ee,re){var oe=x.actualBounds,le=E.actualBounds;E=le.x+le.width/2-oe.width/2,oe=le.y+le.height/2-oe.height/2,ee<re?x.mm(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re),!1):x.position=new Ye(z(ee,b.x,E-b.x,re),z(ee,b.y,oe-b.y,re))}),y.add("desiredSize",function(x,b,E,z,ee,re){x.desiredSize=new dn(z(ee,b.width,E.width-b.width,re),z(ee,b.height,E.height-b.height,re))}),y.add("width",function(x,b,E,z,ee,re){x.width=z(ee,b,E-b,re)}),y.add("height",function(x,b,E,z,ee,re){x.height=z(ee,b,E-b,re)}),y.add("fill",function(x,b,E,z,ee,re){x.fill=Hs(b,E,ee,re,z)}),y.add("stroke",function(x,b,E,z,ee,re){x.stroke=Hs(b,E,ee,re,z)}),y.add("strokeWidth",function(x,b,E,z,ee,re){x.strokeWidth=z(ee,b,E-b,re)}),y.add("strokeDashOffset",function(x,b,E,z,ee,re){x.strokeDashOffset=z(ee,b,E-b,re)}),y.add("background",function(x,b,E,z,ee,re){x.background=Hs(b,E,ee,re,z)}),y.add("areaBackground",function(x,b,E,z,ee,re){x.areaBackground=Hs(b,E,ee,re,z)}),y.add("opacity",function(x,b,E,z,ee,re){x.opacity=z(ee,b,E-b,re)}),y.add("scale",function(x,b,E,z,ee,re){x.scale=z(ee,b,E-b,re)}),y.add("angle",function(x,b,E,z,ee,re){x.angle=z(ee,b,E-b,re)}),yo=y}ft.Object.defineProperties(ya.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&&gi(a,">= 1",ya,"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}}}),ya.prototype.stopAnimation=ya.prototype.Cc;var yo=null,gs=!1,Is=new Bt(ya,"Default",1),bu=new Bt(ya,"AnimateLocations",2),$l=new Bt(ya,"None",3);ya.className="AnimationManager",ya.defineAnimationEffect=function(a,y){gs||(Ba(),gs=!0),yo.add(a,y)},ya.Default=Is,ya.AnimateLocations=bu,ya.None=$l;function Ha(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=Ol,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=$r,this.vc=new wi,this.Tt=new wi,this.yl=new An,this.Ut=new An,this.dw=fc,a&&Object.assign(this,a)}Ha.prototype.suspend=function(){this.Xk=!0},Ha.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,du(this,!0),Ka(this.Yd),xl(this.H),us(this.Yd),this.H.redraw()};function ul(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}be=Ha.prototype,be.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 Yt?a=x:x instanceof At&&(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===Is&&this===y.defaultAnimation&&(this.Lp=Ku,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Uf),Ka(y),this.yl.each(function(b){b.data=null,a.add(b)}),us(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Ma(y,this),this)},be.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},be.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Yt?this.H=a:a instanceof At&&a.diagram!==null&&(this.H=a.diagram)),a instanceof ji){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ss(this,a,y,x,b,E),this};function ss(a,y,x,b,E,z){var ee=a.vc;if(y instanceof Yt&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Yd(b),av(),b=[zu.j,zu.u,zu.o,zu.F],Yd(E),av(),E=[zu.j,zu.u,zu.o,zu.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,le=re.end;oe[x]===void 0&&(oe[x]=ns(b)),le[x]=ns(E)}else oe={},le={},oe[x]=ns(b),le[x]=ns(E),re=oe.position,y instanceof At&&re instanceof Ye&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new Vu(oe,le,z),ee.add(y,re);ee=oe[x],ee instanceof Ye&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof ji?re.Ku.location=ns(y.location):z&&(re.Ku[x]=ns(b))}function ns(a){return a instanceof Ye||a instanceof ei?a.copy():a}be.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},be.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function du(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),Ka(x),ah(a,E),xl(a.H,!0),us(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 ah(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof At&&z.diagram===null)){var ee=b.value,re=E?ee.end:ee.start;ee=E?ee.start:ee.end;var oe=yo,le;for(le in ee)le==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(le)===null||oe.get(le)(z,re[le],ee[le],a.Lp,y,x,a)}}}be.stop=function(){return this.bc?(this.Ml(!0),this):this},be.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,Ka(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 z=yo;b.next();){var ee=b.key,re=b.value,oe=E?re.end:re.start,le=E?re.start:re.end,ue=re.Ku,fe;for(fe in le)if(z.get(fe)!==null){var ye=fe;!re.Hu||ye!=="position:nodeCollapse"&&ye!=="position:placeholder"||(ye="position"),z.get(ye)(ee,oe[fe],ue[fe]!==void 0?ue[fe]:re.Hu?oe[fe]:le[fe],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ue.location!==void 0&&ee instanceof ji&&(ee.location=ue.location),re.nv&&ee instanceof ji&&ee.Zb(!1)}if(y.As.clear(),id(y,!1),y.Ya(),y.N(),xl(y,!0),x.defaultAnimation===this){for(fe=x.pr.iterator;fe.next();)E=fe.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}xl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),us(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ul(this,null),x.Ml(this),y.$b())}},be.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof br&&(b=y.placeholder),b!==null?(x=b.ga(Es),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ye(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof br)for(a=a.memberParts;a.next();)b=a.value,b instanceof fi&&this.Cj(b,y)},be.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof br&&(x=y.placeholder),x!==null){var b=x.ga(Es);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 br)for(a=a.memberParts;a.next();)b=a.value,b instanceof fi&&this.Aj(b,y)}},be.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},ft.Object.defineProperties(Ha.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&gi(a,">= 1",Ha,"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:bt("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}}}),Ha.prototype.getTemporaryState=Ha.prototype.Ez,Ha.prototype.stop=Ha.prototype.stop,Ha.prototype.add=Ha.prototype.add,Ha.prototype.addTemporaryPart=Ha.prototype.Iy;function Ol(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Ku(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Ha.className="Animation",Ha.EaseLinear=function(a,y,x,b){return x*a/b+y},Ha.EaseInOutQuad=Ol,Ha.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Ha.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Ha.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Ha.EaseOutExpo=Ku;function Vu(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Vu.className="AnimationState";function ql(a,y,x){this.xd=null,this.rf=a,this.so=x||Ja,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ws))}ql.prototype.copy=function(){var a=new ql(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 Ca(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))}ft.Object.defineProperties(ql.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 Ja=new Bt(ql,"Default",1),Ws=new Bt(ql,"Immediate",2),is=new Bt(ql,"Bundled",3);ql.className="AnimationTrigger",ql.Default=Ja,ql.Immediate=Ws,ql.Bundled=is;function ba(a){Ir(this),this.H=null,this.Pa=new xn,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)}be=ba.prototype,be.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Cl(x)}a.clear(),this.Zq.length=0},be.Xe=function(a){this.H=a},be.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,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof br?E++:oe instanceof fi?b++:oe instanceof qn?z++:oe instanceof Ao?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<b&&(re+=b+" Nodes "),0<E&&(re+=E+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&oo(b)&&(re+=" #"+oo(b)),x instanceof fi?re+=" "+Vn(b):x instanceof qn&&(re+=" "+Vn(x.fromNode)+" "+Vn(x.toNode));return y+" "+this.Pa.count+": "+re},be.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=Ye.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((b!==!0||Vc(re)!==!1)&&re.isVisible()&&(E.assign(a),eo(E,re.oe),re=re.ic(E,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Ye.free(E),re}return Ye.free(E),null},be.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof xn||b instanceof An||(b=new An),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Ye.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((E!==!0||Vc(oe)!==!1)&&oe.isVisible()){z.assign(a),eo(z,oe.oe);var le=oe;oe.ji(z,y,x,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return Ye.free(z),b},be.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 xn||E instanceof An||(E=new An),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||Vc(oe)!==!1)&&oe.isVisible()){var le=oe;oe.Cf(a,y,x,b,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return E},be.Nu=function(a,y,x,b,E,z,ee){if(this.Uh===!1)return E;for(var re=this.Pa.s,oe=re.length;oe--;){var le=re[oe];if((ee!==!0||Vc(le)!==!1)&&z(le)&&le.isVisible()){var ue=le;le.Cf(a,y,x,b,E)&&(y!==null&&(ue=y(ue)),ue===null||x!==null&&!x(ue)||E.add(ue))}}return E},be.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof xn||E instanceof An)&&(z=E),E=!0),z instanceof xn||z instanceof An||(z=new An),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=Ye.alloc(),oe=Ye.alloc(),le=this.Pa.s,ue=le.length;ue--;){var fe=le[ue];if((ee!==!0||Vc(fe)!==!1)&&fe.isVisible()){re.assign(a),eo(re,fe.oe),oe.h(a.x+y,a.y),eo(oe,fe.oe);var ye=fe;fe.og(re,oe,x,b,E,z)&&(x!==null&&(ye=x(ye)),ye===null||b!==null&&!b(ye)||z.add(ye))}}return Ye.free(re),Ye.free(oe),z},be.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=un();for(var E=un(),z=0;z<b;z++){var ee=x[z];if(ee.vw=z,ee instanceof qn){if(ee.fd===!1)continue}else if(ee instanceof Ao&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&pa(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&E.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],Ov(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++)Ov(E[y]);En(a),En(E)}}};function Zs(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}be.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=Zs(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=dn.alloc(),oe=0;oe<b;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(dn.free(re),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Sl(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var ee=Zs(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,le=dn.alloc(),ue=0;ue<z;ue++){var fe=E[ue];b.contains(fe)&&a.Oj(y,fe,x,re,oe,le,!1)}dn.free(le),y.globalAlpha=ee}}}be.Oj=function(a,y,x,b,E,z,ee){if(ee&&!Vc(y))a.Hs(y);else{if(b!==null&&y instanceof qn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,b=y.containingGroup;b!==null;)ee?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(ee=!0,z.assign(b.tb)),b=b.containingGroup;var re=y.actualBounds;if(b=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}b=!z.Re(re)}b&&(a.save(),a instanceof Lu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*E>x.Oq||re.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(qa(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(qa(y,a,"rgba(0,0,0,0.3)",!0,!1,z,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),qa(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.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))}},be.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Gn,a,this,y,x,b,E)},be.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Cl(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)),Eu(this,a,y),a},be.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,Cl(y),a};function Eu(a,y,x){if(y=ac(a,y,x),x instanceof br&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];if(re===x&&(y=ee,0<=b)||0>b&&re.containingGroup===x&&(b=ee,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Eu(a,-1,y)}x.svg!==null&&x.svg.remove()}function ac(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 z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<E&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>b)for(;;){if(z===-1||ee<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<b)for(;;){if(re===E||oe>=b){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<E&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}ft.Object.defineProperties(ba.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===""&&bt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&bt("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)&&gi(a,"0 <= value <= 1",ba,"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))}}}),ba.prototype.findObjectsNear=ba.prototype.og,ba.prototype.findObjectsIn=ba.prototype.Cf,ba.prototype.findObjectsAt=ba.prototype.ji,ba.prototype.findObjectAt=ba.prototype.ic,ba.className="Layer";function Yt(a,y){if(dm||(wl(),dm=!0),Ir(this),sh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,$a){var x=this,b=function(){x.removeEventListener(lt.document,"DOMContentLoaded",b,!1),x.setRTL()};lt.document.body!==null?this.setRTL():x.addEventListener(lt.document,"DOMContentLoaded",b,!1)}this.ol=null,Zh.add("Model",Ko);var E=this;return this.Hb=function(z){var ee=E.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Gn&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Rc(this),this.model=hy(),this.Wg=!0,Id(this),this.layout=new Aa,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new cm,a!==void 0&&(typeof a=="string"||lt.Element&&a instanceof Element?Ph(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var wh,sh;function Rc(a){a.Yd=new ya,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new xn,a.pj=new wi,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ye(NaN,NaN).freeze(),a.du=new Ye(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ye(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Mr,a.zu=new Ye(NaN,NaN).freeze(),a.ut=new dn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Wi(0,0,0,0).freeze(),a.sj=fc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Al,a.zk=Bo,a.Fg=Al,a.pq=Bo,a.yt=Es,a.Bt=Es,a.Fc=!0,a.pn=!1,a.De=new An,a.Eh=new wi,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Wi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Rt,a.bq.diagram=a,a.Qg=new Rt,a.Qg.diagram=a,a.cj=new Rt,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,sp(a),a.ai=new An,a.Ht=!0,a.uu=gc,a.pw=!1,a.wu=Yf,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 wi,a.Xn=new xn,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 Wi(5).freeze(),a.Hw=new An().freeze(),a.Nt=999999999,a.nw=new An().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 An,a.ow=new An,a.Xh=null,a.aw=new ei(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ye,bounds:new dn,Py:new ei,bA:new ei,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new dn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ei(NaN,NaN).freeze(),a.Sp=new dn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new wi;var y=new fi,x=new aa;x.bind(new ps("text","",Vn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new fi,x=new aa,x.stroke="brown",x.bind(new ps("text","",Vn)),y.add(x),a.Lg.add("Comment",y),y=new fi,y.selectable=!1,y.avoidable=!1,x=new Dr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new ei(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new wi,y=new br,y.selectionObjectName="GROUPPANEL",y.type=Kn.Vertical,x=new aa,x.font="bold 12pt sans-serif",x.bind(new ps("text","",Vn)),y.add(x),x=new Kn(Kn.Auto),x.name="GROUPPANEL";var b=new Dr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Wl,b.padding=new Wi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new wi,y=new qn,x=new Dr,x.isPanelMain=!0,y.add(x),x=new Dr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new qn,x=new Dr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ao,y.type=Kn.Auto,x=new Dr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Wl,x.margin=new Wi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ao,y.type=Kn.Link,x=new Dr,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 Ko,a.toolManager=new zn,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Rh(),a.eq=null,a.fq=Fr,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 Ye,a.zy=500,a.wp=new Ye,a.wq=!1}Yt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Sf=null,Wc="",vd(this,!1),this.Xn.clear(),Tg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function vd(a,y){a.animationManager.Cc(!0),a.Hw=new An().freeze(),a.nw=new An().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 z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==E&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;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(),Tg(),a.Og.clear(),qi=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Rh(){return null}Yt.prototype.reset=function(){this.clear(),this.vb=!0,Rc(this),bh(this),this.Wg=!0,Id(this),this.layout=new Aa,this.Wg=!1,this.model=hy(),this.model.undoManager=new li,this.vb=this.rn=!1,this.N()},Yt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=lt.document.body);var y=Cn("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},Yt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=lt.document.body);var y=0;if($a){var x=hh;y=wh,x===null&&(x=hh=Cn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=wh=Cn("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||Lr||(y=11)}this.Db=y,this.Gw=!0},Yt.prototype.qb=function(a){a.classType===Yt&&(this.autoScale=a)},Yt.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 Ph(a,y){if($a){if(y!=null||bt("Diagram setup requires an argument DIV."),a.Ka!==null&&bt("Diagram has already completed setup."),typeof y=="string"?a.Ka=lt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:bt("No DIV or DIV id supplied: "+y),a.Ka===null&&bt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&bt("Invalid div id; div already has a Diagram associated with it."),!a.ol&<.ResizeObserver){var x=Yn(function(){a.$b()},250);a.ol=new lt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}lt.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=lt.go;var E=new ch(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",lt.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),uc(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new ch(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,$a){E=Cn("div");var z=Cn("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",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=ff,E.addEventListener("pointerdown",zd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Yn(function(){a.Yh=null,a.N()},300),a.Ov=Yn(function(){Od(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=Il(a,ee,!0);re.bubbles=!0;var oe=0,le=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(le=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-le):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(le=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-le):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),_l(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,Il(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=oe;oe=Hd(a,ee,!0,!1,!0,le),yd(a,ee,oe),oe.targetDiagram=sc(ee,ee.target),oe.targetObject=null,le||oe.clone(a.bq),le=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-ee.screenX)>re||Math.abs(le.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():_l(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Hd(a,ee,!1,!1,!1,re[1]!==null);var oe=lt.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var le=a,ue=ee;oe&&oe.H&&(ue=ee,le=oe.H),re.targetDiagram=le,yd(a,ue,re),re.targetObject=null,a.doMouseMove(),_l(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Hd(a,ee,!1,!0,!0,!1);var le=lt.document.elementFromPoint(ee.clientX,ee.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),le!==null&&le.H instanceof Yt&&le.H!==a&&yd(le.H,ee,oe),le===null&&(le=ee.target),yd(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=sc(ee,le),oe.targetObject=null,a.doMouseUp(),_l(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=b.Z["d"+Jf[1]+Jf[2]+"wI"+wf.slice(1,5)]["b"+Tx.slice(1,y)](b.Z,Xf,y,y),b.Vc(!0),cf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Yt.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Yt.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function cf(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(lt,"resize",a.Ov,!1)}function fl(a){30<a.Sq&&(a.Yh=1)}function id(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Pr&&Pr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Yt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:lt.devicePixelRatio||1},Yt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Yt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Yt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Yt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Yt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Yt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Yt.prototype.doFocus=function(){this.focus()},Yt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=lt.scrollX||lt.pageXOffset,y=lt.scrollY||lt.pageYOffset;this.ta.focus(),lt.scrollTo(a,y)}},Yt.prototype.Oy=function(){this.H.R("GainedFocus")},Yt.prototype.Ny=function(){this.H.R("LostFocus")};function Od(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===Al&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Id(a){var y=new ba;y.name="Background",a.Al(y),y=new ba,y.name="",a.Al(y),y=new ba,y.name="Foreground",a.Al(y),y=new ba,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new ba,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new ba,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Rd(a){var y=new Kn(Kn.Grid);y.name="GRID";var x=new Dr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Dr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Dr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Dr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Dr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Dr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ji,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 ff(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Hh(this.H)}function zd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Hh(this.H)}Yt.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,z=this.rj,ee=b.x-z.left,re=b.y-z.top,oe=b.width+z.left+z.right,le=b.height+z.top+z.bottom,ue=b.right+z.right;z=b.bottom+z.bottom;var fe=E.x;b=E.y;var ye=E.width,Ce=E.height,Le=E.right,Be=E.bottom;E=this.scale;var $e=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":$e=$e+a.scrollWidth-a.clientWidth;break;case"reverse":$e=a.scrollWidth-$e-a.clientWidth}var Ze=$e;ye<oe||Ce<le?($e=Ye.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ze&&($e.x=Ze/E+ee,this.ju=Ze),this.allowVerticalScroll&&this.lu!==a.scrollTop&&($e.y=a.scrollTop/E+re,this.lu=a.scrollTop),this.position=$e,Ye.free($e),this.Ee=this.qr=!1):($e=Ye.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=$e.h(Ze+ee,this.position.y)),ue>Le&&(this.position=$e.h(-(y.scrollWidth-this.Aa)+Ze-this.Aa/E+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=$e.h(this.position.x,a.scrollTop+re)),z>Be&&(this.position=$e.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Ye.free($e),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ue=b.right,Le=E.right,z=b.bottom,Be=E.bottom,ee=b.x,fe=E.x,re=b.y,b=E.y,ye>=oe&&ee>=fe&&ue<=Le&&(x.style.width="1px"),Ce>=le&&re>=b&&z<=Be&&(x.style.height="1px"))}},Yt.prototype.computeBounds=function(a){return a===void 0&&(a=new dn),Js(this),jd(this,a)};function jd(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,z=0;z<E;z++){var ee=b[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];le.isInDocumentBounds&&le.isVisible()&&(le=le.actualBounds,le.w()&&(x?(x=!1,y.assign(le)):y.ed(le)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Yt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Sn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof qn||(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 qn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new dn(NaN,NaN,0,0):x};function cu(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=Ye.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=dn.allocAt(0,0,b.width,b.height);var E=Ye.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,dn.free(b),Ye.free(E),Ye.free(x)}x=a.yh,y&&a.Fg!==Al&&(x=a.Fg);var z=x!==Al?zh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?lo:oe),zc(a,a.documentBounds,E,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Nt.B(z.x,x)&&Nt.B(z.y,b)&&Nt.B(z.width,E)&&Nt.B(z.height,ee)||a.onViewportBoundsChanged(new dn(x,b,E,ee),z,y,!1)}}function zh(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 z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/E,oe=ee/b;return y===Ou?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Zc?(y=oe>re?(ee-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Yt.prototype.zoomToFit=function(){var a=this.sj;this.sj=fc,this.scale=zh(this,Ou),a!==fc&&(cu(this,!1),zc(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},be=Yt.prototype,be.BA=function(a,y){y===void 0&&(y=Ou);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Ou||y===Zc)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 z=this.ya;E=y===Zc?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Ye(a.x,a.y)}},be.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ye(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))},be.zz=function(a){if(a instanceof At){this.eq=a;var y=Ye.alloc();this.fq=this.op(a.ga(Es,y)),Ye.free(y)}else this.eq=null,this.fq=Fr};function zc(a,y,x,b,E,z){var ee=Ye.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var le=Ye.alloc();le=a.eq.ga(Es,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,E=Ya,Ye.free(le)}(z||a.scrollMode===fc)&&(E.sb()&&(x>y.width&&(re=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(oe=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(re=Math.min(re+x/2,y.right+Math.max(z,E.right)-x/2),re=Math.max(re,y.left-Math.max(z,E.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(oe=Math.min(oe+b/2,y.bottom+Math.max(x,E.bottom)-b/2),oe=Math.max(oe,y.top-Math.max(x,E.top)+b/2),oe-=b/2):oe>y.top?oe=y.top:oe<y.bottom-b&&(oe=y.bottom-b)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),Os(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),bh(a),Ye.free(ee)}be.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Yu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof ji)return a}else if(a=Yu(this,a,function(x){return x.part}),a instanceof ji)return a;return null},be.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Js(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 Yu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Js(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}be.lz=function(a,y,x){return y===void 0&&(y=!0),jh(this,a,function(b){return b.part},y?function(b){return b instanceof ji&&b.canSelect()}:null,x)};function jh(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof xn||E instanceof An||(E=new An),Js(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}be.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof xn||b instanceof An||(b=new An),Js(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},be.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),rd(this,a,function(E){return E instanceof ji&&(!x||E.canSelect())},y,b)},be.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof xn||E instanceof An||(E=new An),Js(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,b,E)}return E},be.Nu=function(a,y,x,b,E,z){var ee=new An;Js(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,b,ee,E,z)}return ee};function rd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof xn||E instanceof An||(E=new An),Js(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,b,E)}return E}be.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),od(this,a,y,function(z){return z instanceof ji&&(!b||z.canSelect())},x,E)},be.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof xn||E instanceof An)&&(z=E),E=!0),z instanceof xn||z instanceof An||(z=new An),Js(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,b,E,z)}return z};function od(a,y,x,b,E,z){var ee=null;for(ee===void 0&&(ee=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof xn||E instanceof An)&&(z=E),E=!0),z instanceof xn||z instanceof An||(z=new An),Js(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,b,E,z)}return z}Yt.prototype.acceptEvent=function(a){return Il(this,a,a instanceof MouseEvent)};function Il(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?yd(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),Lr&&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=sc(y,y.target),b.targetObject=null,b}function sc(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 Hd(a,y,x,b,E,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,Lr&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=b,ee.handled=!1,ee.bubbles=E,ee.isMultiTouch=z,ee}function _l(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Yt.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Il(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(),_l(x,a)},Yt.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Il(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(),_l(x,a)},Yt.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Il(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),_l(x,a)},Yt.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Il(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),_l(x,a)},Yt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ye(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?eo(new Ye(y,a),this.Ab):new Ye(y,a)};function yd(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,ee=0,re=0;b!==null&&(b=b.getBoundingClientRect(),ee=y.clientX-E/b.width*b.left,re=y.clientY-z/b.height*b.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=Ye.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Ye.free(y)):x.documentPoint.h(ee,re)}function Wd(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))}}Yt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function lc(a){a.ld||Js(a),a.Va()}Yt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},be=Yt.prototype,be.Pz=function(){return this.kg},be.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,xl(this),this.hf=!1,this.du=new Ye(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Di(function(){b.ld=!1,Da(y,"Model"),a(b)},1)},be.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;lt.requestAnimationFrame(function(){y.kg&&y.bd()})}},be.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),xl(this))};function Ch(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Hh(a)||(y&&Js(a),x&&cu(a,!1))}function xl(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,z=E.length,ee=0;ee<z;ee++){var re=E[ee];Fs(re,!1),re.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(oe){oe.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Od(a),Ch(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(lh(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Js(a),z=!1,(!a.hf||a.xh)&&(a.hf?Hc(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Hc(a,!1)),z=!0),a.Jk=!1,Js(a),a.ou||lc(a),Ch(a,!0,!1),ee=!1,z?(x=dn.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Zd(a)),a.R("LayoutCompleted"),Ch(a,!0,!1),dn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Al?a.scale=zh(a,a.Fg):a.yh!==Al?a.scale=zh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),cu(a,!0)),z&&ee&&a.eb("Initial Layout"),Js(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Zd(a){if(a.Fg!==Al)a.scale=zh(a,a.Fg);else if(a.yh!==Al)a.scale=zh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}cu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),lh(a)}function Js(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 An,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof br&&b.U&65536&&(b.U=b.U^65536)})}}be.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof br||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof br&&x.isVisible()&&Na(this,x);for(a.reset();a.next();)x=a.value,x instanceof qn&&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 Ao&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Na(a,y){for(var x=un(),b=un(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof br?(Ru(z)||jl(z)||Kc(z))&&Na(a,z):z instanceof qn?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(En(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();En(b)}be.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},be.gc=function(a){if(this.Ka!==null){if(this.ta===null&&bt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){gu(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,z=Math.round(y.x*E)/E,ee=Math.round(y.y*E)/E,re=this.Ab;for(re.reset(),E!==1&&re.scale(E),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,Xy(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),gl(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?Pf(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Mr.prototype.Cd=Mr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,gu(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&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,le=Math.round(re.x*oe)/oe,ue=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-le,-ue),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),gl(this,a),re=0;re<E;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?Pf(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Mr.prototype.Cd=Mr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Pr&&Pr.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 hs(a,y,x,b,E,z,ee,re,oe,le){if(a.Ka!==null){a.ta===null&&bt("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),le===void 0&&(le=!1),gu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ue=a.Ca;a.Ca=E;var fe=a.Wa.s,ye=fe.length;try{var Ce=new dn(z.x,z.y,b.width/E,b.height/E),Le=Ce.copy();Le.Co(x),lh(a,Le),Js(a),a.Fd(fe,ye,a,Ce),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,b.width,b.height));var Be=a.Mb;y.scale(Be,Be);var $e=Mr.alloc();$e.reset(),$e.translate(x.left,x.top),$e.scale(E),z.x===0&&z.y===0||$e.translate(-z.x,-z.y),y.setTransform($e.m11,$e.m12,$e.m21,$e.m22,$e.dx,$e.dy),y.yc(),y instanceof Lu&&Xy(y,$e.m11,$e.m12,$e.m21,$e.m22,$e.dx,$e.dy),Mr.free($e),gl(a,y),y.globalAlpha=a.pb;var Ze=a.Qj("Grid");if(ee){var rt=new An,st=ee.iterator;for(st.reset();st.next();){var ct=st.value;ct instanceof ji&&(le||ct.layer!==Ze)&&(ct.Gj(),rt.add(ct))}for(le=0;le<ye;le++)Sl(fe[le],y,a,rt,oe);rt.each(function(Xt){return Xt.Gj()})}else for(rt=0;rt<ye;rt++){var Lt=fe[rt];Lt===Ze?le&&Lt.gc(y,a,!0):Lt.gc(y,a,oe)}a.$i=!1,a.Yf&&Pf(a.Yf,a)&&a.Vp()}finally{a.Ca=ue,a.ib.Vc(!0),a.vd=!0,a.Fd(fe,ye,a,a.viewportBounds),lh(a),a.ib instanceof Lu&&(a.ib.Nj.PA(),a.redraw())}}}be.Gf=function(a){return this.Rg[a]},be.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},be.Tx=function(){this.Rg=new ki,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Lr||Qi),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function gl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}be.Ql=function(a){return this.on[a]},be.sA=function(a,y){this.on[a]=y},be.Sx=function(){this.on=new ki,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},be.set=function(a){return Object.assign(this,a),this},be.Du=function(a){return this.nm(a)},be.nm=function(a){return fu(this,a),this};function fu(a,y){var x=a instanceof Kn,b=a instanceof Yt,E;for(E in y){E===""&&bt("Setting properties requires non-empty property names");var z=a,ee=E;if(x||b){var re=E.indexOf(".");if(0<re){var oe=E.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),Kt(z)?ee=E.substr(re+1):bt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+E)}}if(ee[0]!=="_"&&!$n(z,ee))if(b&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(b&&ee==="Changed"){a.Pe(y[ee]);continue}else if(b&&$n(a.toolManager,ee))z=a.toolManager;else if(b&&Qa(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Ti&&ee==="Changed"){a.Pe(y[ee]);continue}else bt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[E],ee[0]==="_"&&z instanceof At&&z.Vw(ee)}}be.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new wi,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},be.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")},Yt.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!==Uf&&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),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=dn.alloc(),Kf(this,this.computeBounds(b)),dn.free(b)),b=this.ta,b===null||b instanceof sd)))){var ee=this.Mb;E=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==E&&(oe.width=E),oe.height!==re&&(oe.height=re),a.clearRect(0,0,E,re),oe=190*ee;var le=70*ee,ue=Math.max(z,0),fe=Math.max(y,0),ye=Math.floor(E-ue),Ce=Math.floor(re-fe);a.drawImage(b.Oa,ue,fe,ye,Ce,0,0,ye,Ce),Pf(this.Yf,this)&&a.clearRect(0,0,oe,le),b=un(),a=un(),Ce=Math.abs(z),ye=Math.abs(y);var Le=ue===0?0:E-Ce;ue=Ye.allocAt(Le,0),Ce=Ye.allocAt(Ce+Le,re),a.push(new dn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y)));var Be=this.Ab;if(Be.reset(),Be.scale(ee,ee),this.Ca!==1&&Be.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Be.translate(-ee.x,-ee.y),eo(ue,Be),eo(Ce,Be),b.push(new dn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y))),Le=fe===0?0:re-ye,ue.h(0,Le),Ce.h(E,ye+Le),a.push(new dn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y))),eo(ue,Be),eo(Ce,Be),b.push(new dn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y))),Pf(this.Yf,this)&&(E=0<z?0:-z,re=0<y?0:-y,ue.h(E,re),Ce.h(oe+E,le+re),a.push(new dn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y))),eo(ue,Be),eo(Ce,Be),b.push(new dn(Math.min(ue.x,Ce.x),Math.min(ue.y,Ce.y),Math.abs(ue.x-Ce.x),Math.abs(ue.y-Ce.y)))),Ye.free(ue),Ye.free(Ce),Ch(this,!1,!0),this.Ka===null&&bt("No div specified"),this.ta===null&&bt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(gu(this),re=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*re,this.ya*re),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,le=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-le),E.save(),E.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&E.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(E.clip(),E.setTransform(re,0,0,re,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),gl(this,E),E.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=b,ee.visible&&ee.pb!==0){le=Zs(ee,E),fe=ee.Zq,fe.length=0,ue=this.scale,ye=dn.alloc(),Ce=ee.Pa.s,Be=Ce.length,Le=oe.length;for(var $e=0;$e<Be;$e++){var Ze=Ce[$e],rt=kf(Ze,Ze.actualBounds);e:{for(var st=2/ue,ct=4/ue,Lt=0;Lt<Le;Lt++){var Xt=oe[Lt];if(Xt.width!==0&&Xt.height!==0&&rt.Vu(Xt.x-st,Xt.y-st,Xt.width+ct,Xt.height+ct)){rt=!0;break e}}rt=!1}rt&&ee.Oj(E,Ze,this,fe,ue,ye,!0)}dn.free(ye),E.globalAlpha=le}E.restore(),E.Vc(!0),this.Yf&&Pf(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}En(b),En(a),this.ld=!1}}else this.bd();x&&(fl(this),this.bd(),id(this,!0))}else x?(fl(this),this.bd(),id(this,!0)):this.bd()}};function gu(a){a.pn!==!1&&(a.pn=!1,uc(a,a.Aa,a.ya))}function uc(a,y,x){bh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Hh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=E.clientWidth||x+ee,le=E.clientHeight||b+re,ue=a.viewportBounds;E=ue.x;var fe=ue.y,ye=ue.width,Ce=ue.height;if((oe!==x+ee||le!==b+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=le,z=a.pn=!0,bh(a)),!a.hf||!a.viewportBounds.w())return!0;var Le=a.ku,Be=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var $e=a.documentBounds,Ze=0,rt=0,st=0,ct=0,Lt=ue.width,Xt=ue.height,hi=a.rj;a.contentAlignment.sb()?($e.width>Lt&&(Ze=hi.left,rt=hi.right),$e.height>Xt&&(st=hi.top,ct=hi.bottom)):(Ze=hi.left,rt=hi.right,st=hi.top,ct=hi.bottom);var bi=$e.width+Ze+rt,yi=$e.height+st+ct;hi=a.scale;var Jn=bi>oe/hi,kn=yi>le/hi;if(!(z||a.gf||a.Be||Jn||kn))return!0;Ze=$e.x-Ze,oe=ue.x,rt=$e.right+rt,le=ue.right+ee,st=$e.y-st;var Cr=ue.y;$e=$e.bottom+ct,ue=ue.bottom+re;var fr="1px";if(ct="1px",a.scrollMode===fc&&(Jn||kn)&&(Jn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Jn=1,Ze+1<oe&&(Jn=Math.max((oe-Ze)*hi+a.Aa,Jn)),rt>le+1&&(Jn=Math.max((rt-le)*hi+a.Aa,Jn)),Lt+ee+1<bi&&(Jn=Math.max((bi-Lt)*hi+a.Aa,Jn)),fr=Jn.toString()+"px"),kn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Jn=1,st+1<Cr&&(Jn=Math.max((Cr-st)*hi+a.ya,Jn)),$e>ue+1&&(Jn=Math.max(($e-ue)*hi+a.ya,Jn)),Xt+re+1<yi&&(Jn=Math.max((yi-Xt)*hi+a.ya,Jn)),ct=Jn.toString()+"px")),Jn=fr!=="1px",kn=ct!=="1px",Jn&&kn||!Jn&&!kn||(kn&&(le-=a.Db),Jn&&(ue-=a.Db),bi<Lt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ze+1<oe&&(ee=Math.max((oe-Ze)*hi+a.Aa,ee)),rt>le+1&&(ee=Math.max((rt-le)*hi+a.Aa,ee)),Lt+1<bi&&(ee=Math.max((bi-Lt)*hi+a.Aa,ee)),fr=ee.toString()+"px"),Jn=fr!=="1px",ee=a.ya,Jn!==a.Be&&(ee=Jn?a.ya-a.Db:a.ya+a.Db),yi<Xt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,st+1<Cr&&(re=Math.max((Cr-st)*hi+ee,re)),$e>ue+1&&(re=Math.max(($e-ue)*hi+ee,re)),Xt+1<yi&&(re=Math.max((yi-Xt)*hi+ee,re)),ct=re.toString()+"px"),kn=ct!=="1px"),a.qr&&Jn===a.Be&&kn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Jn!==a.Be&&(fr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Jn,Be.style.width=fr,kn!==a.gf&&(ct==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=Ye.alloc(),kn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),Ye.free(re))),z&&bh(a),a.gf=kn,Be.style.height=ct,a.gu=!0,z&&(a.pn=!0),y=Le.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Lt+1<bi?y=(a.position.x-Ze)*hi:Ze+1<oe?y=Le.scrollWidth-Le.clientWidth:rt>le+1&&(y=a.position.x*hi)),a.tn)switch(a.bu){case"negative":y=-(Le.scrollWidth-y-Le.clientWidth);break;case"reverse":y=Le.scrollWidth-y-Le.clientWidth}return Le.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Xt+1<yi?Le.scrollTop=(a.position.y-st)*hi:st+1<Cr?Le.scrollTop=Le.scrollHeight-Le.clientHeight:$e>ue+1&&(Le.scrollTop=a.position.y*hi)),oe=a.Aa,le=a.ya,Le.style.width=oe+(a.gf?a.Db:0)+"px",Le.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||b!==le||a.animationManager.zb?(x=dn.allocAt(E,fe,ye,Ce),a.onViewportBoundsChanged(x,a.viewportBounds,hi,z),dn.free(x),!1):!0}be=Yt.prototype,be.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&bt("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&&bt('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(Un,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},be.oi=function(a){this.partManager.oi(a);var y=this;Lf(a,function(x){dc(y,x)}),(a instanceof Ao||a instanceof br&&a.placeholder!==null)&&a.v(),a.data!==null&&Lf(a,function(x){sy(y.partManager,x)}),jl(a)!==!0&&Kc(a)!==!0||this.De.add(a),RS(a,!0,this),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},be.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Lf(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},be.remove=function(a){Gd(this,a,!0)};function Gd(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(ui,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}be.Is=function(a,y){if(y===void 0&&(y=!1),Sn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new An,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},be.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Yt.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=gf(this)),this.toolManager!==null){var E=new wi;if(a!==null)if(Sn(a))for(var z=0;z<a.length;z++)Du(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Du(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Du(this,E,a.value,x,b);for(a=this.nodes;a.next();)Du(this,E,a.value,x,b);for(a=this.links;a.next();)Du(this,E,a.value,x,b)}Uu(this,E,y,b,x)}};function Du(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=gf(a)),x instanceof fi){if(y.add(x,a.Pd(E,x,x.location)),x instanceof br&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Du(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Du(a,y,ee,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Du(a,y,x.value,b,E)}else if(x instanceof qn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Du(a,y,x.value,b,E);else x instanceof Ao||y.add(x,a.Pd(E,x,x.location))}function Uu(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Ye.alloc(),ee=Ye.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||hc(a,y);for(var re=un(),oe=un(),le=y.iterator,ue=Ye.alloc();le.next();){var fe=le.key,ye=le.value;if(fe.Zc()){var Ce=mf(a,fe,y);Ce!==null?re.push(new ie(fe,ye,Ce)):(!E||fe.canMove())&&(Ce=ye.point,z.assign(Ce),a.computeMove(fe,z.add(ee),b,ue),fe.location=ue,ye.shifted===void 0&&(ye.shifted=new Ye),ye.shifted.assign(ue.re(Ce)))}else le.key instanceof qn&&oe.push(le.sa)}for(Ye.free(ue),E=re.length,le=0;le<E;le++)fe=re[le],z.assign(fe.info.point),fe.Su.shifted===void 0&&(fe.Su.shifted=new Ye),fe.node.location=z.add(fe.Su.shifted);for(E=Ye.alloc(),le=Ye.alloc(),fe=oe.length,ye=0;ye<fe;ye++){var Le=oe[ye];if(Ce=Le.key,Ce instanceof qn)if(Ce.suspendsRouting){Ce.Tg=null,ue=Ce.fromNode;var Be=Ce.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Be=Le.value.point,Ce.dragComputation===null)y.add(Ce,a.Pd(b,Ce,ee)),wc(Ce,ee.x-Be.x,ee.y-Be.y);else{Le=Ye.allocAt(0,0),(ue=Ce.i(0))&&ue.w()&&Le.assign(ue);var $e=ue=Ye.alloc().assign(Le).add(ee);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&($e=Ye.alloc(),pf(a,Ce,ue,$e,b)),ue.assign(Ce.dragComputation(Ce,ue,$e)).re(Le),y.add(Ce,a.Pd(b,Ce,ue)),wc(Ce,ue.x-Be.x,ue.y-Be.y),Ye.free(Le),Ye.free(ue),$e!==ue&&Ye.free($e)}else ue!==null&&(E.assign(ue.location),$e=y.I(ue),$e!==null&&E.re($e.point)),Be!==null&&(le.assign(Be.location),$e=y.I(Be),$e!==null&&le.re($e.point)),ue!==null&&Be!==null?E.Xa(le)?(ue=Le.value.point,Be=z,Be.assign(E),Be.re(ue),y.add(Ce,a.Pd(b,Ce,E)),wc(Ce,Be.x,Be.y)):(Ce.suspendsRouting=!1,Ce.bb()):(Le=Le.value.point,ue=ue!==null?E:Be!==null?le:ee,y.add(Ce,a.Pd(b,Ce,ue)),wc(Ce,ue.x-Le.x,ue.y-Le.y))}else(Ce.fromNode===null||Ce.toNode===null)&&(ue=Le.value.point,y.add(Ce,a.Pd(b,Ce,ee)),wc(Ce,ee.x-ue.x,ee.y-ue.y))}Ye.free(z),Ye.free(ee),Ye.free(E),Ye.free(le),En(re),En(oe),x||(Js(a),Bu(a,y))}}Yt.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Ye),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Ye.alloc(),pf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,le=oe.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(re,Math.min(x.x,le)),Math.max(ee,Math.min(x.y,oe))),E!==y&&Ye.free(E),b};function gf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function pf(a,y,x,b,E){if(E===void 0&&(E=gf(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ee=E.gridSnapOrigin,re=ee.x;if(ee=ee.y,E=E.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=Ye.allocAt(0,0),z.yi(0,0,a,y,E),Nt.No(x.x,x.y,re+z.x,ee+z.y,a,y,b),Ye.free(z)}}function hc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof qn&&(y.suspendsRouting=!0)}function Bu(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof qn&&(x.suspendsRouting=!1,Uv(x)&&x.bb())}a.Mr=!1}}function mf(a,y,x){return y=y.containingGroup,y!==null&&(a=mf(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}be=Yt.prototype,be.Pd=function(a,y,x){if(x===void 0)return new Kd($r);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Kd(new Ye(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Kd(x.copy())};function Wf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&bt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&bt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&bt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&bt("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&&bt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}be.Al=function(a){Wf(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(Un,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},be.Ww=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ui,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Un,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},be.Cy=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ui,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Un,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},be.kA=function(a){if(a.diagram!==this&&bt("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(ui,"layers",this,a,null,x,null),this.N(),this.Ya()}}},be.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},be.Yw=function(a){return this.pf===null&&(this.pf=new xn),this.pf.add(a),this.model.Pe(a),this},be.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},be.Pe=function(a){return this.zg===null&&(this.zg=new xn),this.zg.add(a),this},be.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},be.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==mn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},be.cb=function(a,y,x,b,E,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new fn;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=b,re.oldParam=z,re.newValue=E,re.newParam=ee,this.ds(re)},be.g=function(a,y,x,b,E){this.cb(Gn,a,this,y,x,b,E)},Yt.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===Gn){var E=a.object;if(Ea(E,a.propertyName,a.I(y)),E instanceof At){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Un){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Kn)if(typeof re=="number"&&oe instanceof At){y?ee.pc(re):ee.Gb(re,oe);var le=ee.part;le!==null&&le.Wb()}else typeof re=="number"&&oe instanceof Ns&&(oe.isRow?hS(ee,re,y?void 0:oe):dS(ee,re,y?void 0:oe));else if(ee instanceof ba){var ue=a.oldParam===!0;typeof re=="number"&&oe instanceof ji&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(ue?re:-1,oe,ue)):ee.oi(re,oe,ue))}else ee instanceof Yt?typeof re=="number"&&oe instanceof ba&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):bt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===ui){var fe=a.object,ye=a.oldParam,Ce=a.oldValue;if(fe instanceof Kn)typeof ye=="number"&&Ce instanceof At?y?fe.Gb(ye,Ce):fe.pc(ye):typeof ye=="number"&&Ce instanceof Ns&&(Ce.isRow?hS(fe,ye,y?Ce:void 0):dS(fe,ye,y?Ce:void 0));else if(fe instanceof ba){var Le=a.newParam===!0;typeof ye=="number"&&Ce instanceof ji&&(y?0>fe.Pa.indexOf(Ce)&&fe.oi(ye,Ce,Le):(Ce.isSelected=!1,Ce.isHighlighted=!1,Ce.Wb(),fe.pc(Le?ye:-1,Ce,Le)))}else fe instanceof Yt?typeof ye=="number"&&Ce instanceof ba&&(y?(Ce.Xe(this),this.Wa.Gb(ye,Ce)):this.Wa.mb(ye)):bt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==mn&&bt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Yt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Yt.prototype.eb=function(a){return this.undoManager.eb(a)},Yt.prototype.Kf=function(){return this.undoManager.Kf()},Yt.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}},Yt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Yt.prototype.rp=function(){this.partManager.rp()};function vf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,bh(a),a.N(),a.Ee=!0,b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,bh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(Pu)?re=0:le.Hf(vl)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(Zu)?oe=0:le.Hf(Ml)&&(oe=ee-1):oe=le.sb()?le.y*(ee-1):ee/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),z=Ye.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Ye.free(z),a.Ca=x,bh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),cu(a,!1),b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Yt.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!==Al||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof zn&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Mi(E,this)),this.vb||this.invalidateViewport(a,y),lh(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(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function lh(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=ei.alloc(),E=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe],ue=Math.abs(le.interval);2>ue||(pv(le.figure)?z=z*ue/Nt.vx(z,ue):E=E*ue/Nt.vx(E,ue))}if(ee=x.gridCellSize,b.h(z*ee.width,E*ee.height),y!==void 0)E=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=dn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){dn.free(y);return}E=y.width,z=y.height,a=y.x,ee=y.y,dn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Ye.alloc(),Nt.No(a,ee,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),ei.free(b),x.part.location=y,Ye.free(y)}}Yt.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)}},Yt.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))},Yt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Sn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof ji||bt("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 ji||bt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Yt.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()}},be=Yt.prototype,be.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},be.Jz=function(a){a=new An().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 ji||bt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},be.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Ye.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=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),Ye.free(z);return}bt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):bt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ye.free(z)},be.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)},be.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},be.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)},be.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,ee=y.m11,re=y.m12,oe=y.m21,le=y.m22,ue=y.dx,fe=y.dy,ye=x*ee+b*oe+ue;y=x*re+b*le+fe;var Ce=E*ee+b*oe+ue;return a=E*re+b*le+fe,b=x*ee+z*oe+ue,x=x*re+z*le+fe,ee=E*ee+z*oe+ue,E=E*re+z*le+fe,z=Math.min(ye,Ce),ye=Math.max(ye,Ce),Ce=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),ye=Math.max(ye,b),Ce=Math.min(Ce,x),y=Math.max(y,x),z=Math.min(z,ee),ye=Math.max(ye,ee),Ce=Math.min(Ce,E),y=Math.max(y,E),new dn(z,Ce,ye-z,y-Ce)},be.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),eo(a.copy(),this.Ab)};function Sg(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Zf(a){return a=Zh.get(a),a!==null?new a:new Ko}Yt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===mn&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=E}),a.mouseMoveTools.each(function(oe){return oe.diagram=E}),a.mouseUpTools.each(function(oe){return oe.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===mn){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Js(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ho(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(Sg(this),this.As.clear(),ja(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Di(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function dc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Sd(a,y[b])}function Sd(a,y){if(y instanceof iu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof An&&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 Gf(a,y){if(y instanceof iu){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 z=0;z<E.length;z++)if(E[z]===y){E.splice(z,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 An&&x.Bg.remove(a),Tg(b));break}}}}}Yt.prototype.Wd=function(){this.partManager.Wd()},Yt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Yt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Yt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Yt.prototype.Vb=function(a){return this.partManager.Vb(a)},Yt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},be=Yt.prototype,be.Lc=function(a){return this.partManager.Lc(a)},be.ii=function(a){return this.partManager.ii(a)},be.Kc=function(a){return this.partManager.Kc(a)},be.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:hr(Gi(y)))},be.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:hr(Gi(y)))};function bh(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 Kf(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),cu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}be.Va=function(){if(this.Zi){var a=dn.alloc();Kf(this,this.computeBounds(a)),dn.free(a)}},be.rz=function(){for(var a=new An,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},be.qz=function(){return this.ai.iterator},be.Uz=function(a){Js(this),a&&jc(this,!0),this.ld?Hc(this,!1):(this.Jk=!0,xl(this))};function jc(a,y){for(var x=a.ai.iterator;x.next();)yf(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function yf(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)yf(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Hc(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Da(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Vf(a,ee.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Js(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||ho(z),a.aa=x}}}function Vf(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Vf(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),Na(a,y),E.isValidLayout=!0):a.xh=!0)}}be.yz=function(){for(var a=new xn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function sp(a){function y(E){var z=E.toLowerCase(),ee=new xn;x.add(E,ee),x.add(z,ee),b.add(E,E),b.add(z,E)}var x=new wi,b=new wi;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 Qa(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Mo(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;bt("Unknown DiagramEvent name: "+y)}be.Bj=function(a,y){return a=Mo(this,a),a!==null&&a.add(y),this},be.am=function(a,y){a=Mo(this,a),a!==null&&a.remove(y)},be.R=function(a,y,x){var b=Mo(this,a),E=new Zt;if(E.diagram=this,a=Qa(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 Xo(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}be.Yj=function(a,y){return Va(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Yt.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?jd(this,a):a.assign(this.documentBounds)};function Va(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Op(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=Qs(a,x)),x===null){y=dn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&ad(a,ee,b,y)}dn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=dn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof fi&&ad(a,ee,b,y);dn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&r1(E);return E}function Qs(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?Qs(a,y.containingGroup):null}function ad(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,z=y.y;if(zg(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Cc,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Cc}else if(y instanceof br)for(y=y.memberParts;y.next();)E=y.value,E instanceof fi&&ad(a,E,x,b)}}function Rl(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Yt.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Wh(this)};function Wh(a){a.vk===-1&&(a.vk=Di(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=dn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Kf(a,y),dn.free(y),a.Fc=!0,a.bd(),Wh(a))}},a.vp))}Yt.prototype.ug=function(){this.vk!==-1&&(lt.clearTimeout(this.vk),this.vk=-1)},Yt.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=dn.allocAt(0,0,b.width*E,b.height*E);var z=Ye.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<b.x+x.left/2&&(z.x-=ee),a.x<b.x+x.left/4&&(z.x-=4*ee)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>b.x+b.width-x.right/2&&(z.x+=ee),a.x>b.x+b.width-x.right/4&&(z.x+=4*ee));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<b.y+x.top/2&&(z.y-=ee),a.y<b.y+x.top/4&&(z.y-=4*ee)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>b.y+b.height-x.bottom/2&&(z.y+=ee),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*ee)),z.Xa($r)||(y=new Ye(y.x+z.x/E,y.y+z.y/E)),dn.free(b),Ye.free(z),y},be=Yt.prototype,be.Cs=function(){return null},be.av=function(){return null},be.bs=function(a,y){this.pj.add(a,y)},be.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof br&&(y.$p=null)})};function uh(a,y,x){function b(){var ue=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ue-le>oe?y(x,E,re):lt.requestAnimationFrame(b)}for(var E=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var re=a,oe=x.callbackTimeout||300,le=+new Date;return lt.requestAnimationFrame(function(){b()}),null}be.Wz=function(a){return $a?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},be.Jx=function(a){return a===void 0&&(a={}),uh(this,this.Xz,a)},be.Xz=function(a,y,x){var b=cc(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 wf+"data":E=b.getImageData(0,0,x.width,x.height);break;case wf:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&bt('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 cc(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&bt("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new ei(1/0,1/0):new ei(2e3,2e3));var re=y.position||null,oe=y.parts||null,le=y.padding===void 0?1:y.padding,ue=y.background||null,fe=y.omitTemporary;fe===void 0&&(fe=!0);var ye=y.document||document,Ce=y.elementFinished||null,Le=y.showTemporary;Le===void 0&&(Le=!fe),y=y.showGrid,y===void 0&&(y=Le),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof le=="number"?le=new Wi(le):le instanceof Wi||bt("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),fe=new ch(null,ye,void 0,!0);var Be=fe.context;if(!(E||z||oe||re))return fe.width=a.Aa+Math.ceil(le.left+le.right),fe.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=ye,b.hs=Ce,hs(a,b.context,le,new ei(fe.width,fe.height),a.Ca,a.pa,oe,ue,Le,y),b.context):(a.Xm=!1,hs(a,Be,le,new ei(fe.width,fe.height),a.Ca,a.pa,oe,ue,Le,y),a.Xm=!0,fe.context);var $e=a.Pp,Ze=a.documentBounds.copy();if(Ze.Fv(a.yb),Le)for(var rt=a.Wa.s,st=rt.length,ct=0;ct<st;ct++){var Lt=rt[ct];if(Lt.visible&&Lt.isTemporary){Lt=Lt.Pa.s;for(var Xt=Lt.length,hi=0;hi<Xt;hi++){var bi=Lt[hi];bi.isInDocumentBounds&&bi.isVisible()&&(bi=bi.actualBounds,bi.w()&&Ze.ed(bi))}}}if(rt=new Ye(Ze.x,Ze.y),oe!==null){for(st=new dn(0,0,0,0),ct=!0,Lt=oe.iterator,Lt.reset();Lt.next();)Xt=Lt.value,Xt instanceof ji&&(hi=Xt.layer,hi!==null&&!hi.visible||hi!==null&&!Le&&hi.isTemporary||!Xt.isVisible()||(Xt=Xt.actualBounds,Xt.w()&&(ct?(ct=!1,st.assign(Xt)):st.ed(Xt))));Ze.width=st.width,Ze.height=st.height,rt.x=st.x,rt.y=st.y}return re!==null&&re.w()&&(rt=re,z||(z=$e)),st=re=0,le!==null&&(re=le.left+le.right,st=le.top+le.bottom),ct=Lt=0,E!==null&&(Lt=E.width,ct=E.height,isFinite(Lt)&&(Lt=Math.max(0,Lt-re)),isFinite(ct)&&(ct=Math.max(0,ct-st))),E!==null&&z!==null?(z==="NaN"&&(z=$e),E.w()?(E=Lt,Ze=ct):isNaN(ct)?(E=Lt,Ze=Ze.height*z):(E=Ze.width*z,Ze=ct)):E!==null?E.w()?(z=Math.min(Lt/Ze.width,ct/Ze.height),E=Lt,Ze=ct):isNaN(ct)?(z=Lt/Ze.width,E=Lt,Ze=Ze.height*z):(z=ct/Ze.height,E=Ze.width*z,Ze=ct):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/Ze.width,(ee.height-st)/Ze.height),z>$e?(z=$e,E=Ze.width,Ze=Ze.height):(E=ee.width,Ze=ee.height)):(E=Ze.width*z,Ze=Ze.height*z):(z=$e,E=Ze.width,Ze=Ze.height),le!==null?(E+=re,Ze+=st):le=new Wi(0),ee!==null&&($e=ee.width,ee=ee.height,isNaN($e)&&($e=2e3),isNaN(ee)&&(ee=2e3),isFinite($e)&&(E=Math.min(E,$e)),isFinite(ee)&&(Ze=Math.min(Ze,ee))),fe.width=Math.ceil(E),fe.height=Math.ceil(Ze),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=ye,b.hs=Ce,hs(a,b.context,le,new ei(Math.ceil(E),Math.ceil(Ze)),z,rt,oe,ue,Le,y),b.context):(a.Xm=!1,hs(a,Be,le,new ei(Math.ceil(E),Math.ceil(Ze)),z,rt,oe,ue,Le,y),a.Xm=!0,fe.context)}ft.Object.defineProperties(Yt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pe||(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 sd(this,lt.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 sd(this,lt.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(lt,"resize",this.Ov,!1),this.removeEventListener(lt,"wheel",this.$j,!0),sh===this&&(sh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Ph(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)&&gi(a,"0 <= value <= 1",Yt,"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),cu(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),cu(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),cu(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),cu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&gi(a,">= 0",Yt,"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&&gi(a,">= 0",Yt,"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 gi(a,">= 0",Yt,"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||Sg(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&&bt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=vd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Da(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Zf(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(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(lt,"pointermove",this.dk,!0),this.addEventListener(lt,"pointerdown",this.ui,!0),this.addEventListener(lt,"pointerup",this.fk,!0),this.addEventListener(lt,"pointerout",this.ek,!0),this.addEventListener(lt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(lt,"wheel",this.$j,!0),this.addEventListener(lt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(lt,"pointermove",this.dk,!0),this.removeEventListener(lt,"pointerdown",this.ui,!0),this.removeEventListener(lt,"pointerup",this.fk,!0),this.removeEventListener(lt,"pointerout",this.ek,!0),this.removeEventListener(lt,"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(lt,"wheel",this.$j,!0),this.removeEventListener(lt,"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=Ye.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Os(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?bh(this):(this.vb=!0,a=this.scale,zc(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)}Ye.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=Rd(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Rd(this)),a.type!==Kn.Grid&&bt("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),lh(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),bh(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||bt("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 Wi(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===fc&&cu(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,cu(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,vf(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&&vf(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!==Al&&cu(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()||bt("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()||bt("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)):gi(a,"> 0",Yt,"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)):gi(a,"> 0",Yt,"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),cu(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 Wi(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&&bt("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();)Ep(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==gc&&a!==ks&&a!==xg&&bt("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 ei(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 Wi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),ft.Object.defineProperties(Yt,{licenseKey:{get:function(){return fp.jc()},set:function(a){fp.add(a.replace(/\s/g,""))}},version:{get:function(){return xf}}}),Yt.prototype.makeImageData=Yt.prototype.Jx,Yt.prototype.makeImage=Yt.prototype.Wz,Yt.prototype.cacheGroupExternalLinks=Yt.prototype.Fu,Yt.prototype.addRenderer=Yt.prototype.bs,Yt.prototype.makeSVG=Yt.prototype.av,Yt.prototype.makeSvg=Yt.prototype.Cs,Yt.prototype.stopAutoScroll=Yt.prototype.ug,Yt.prototype.doAutoScroll=Yt.prototype.gs,Yt.prototype.isUnoccupied=Yt.prototype.Yj,Yt.prototype.raiseDiagramEvent=Yt.prototype.R,Yt.prototype.removeDiagramListener=Yt.prototype.am,Yt.prototype.addDiagramListener=Yt.prototype.Bj,Yt.prototype.findTreeRoots=Yt.prototype.yz,Yt.prototype.layoutDiagram=Yt.prototype.Uz,Yt.prototype.findTopLevelGroups=Yt.prototype.qz,Yt.prototype.findTopLevelNodesAndLinks=Yt.prototype.rz,Yt.prototype.ensureBounds=Yt.prototype.Va,Yt.prototype.findLinksByExample=Yt.prototype.ls,Yt.prototype.findNodesByExample=Yt.prototype.ms,Yt.prototype.findLinkForData=Yt.prototype.Kc,Yt.prototype.findNodeForData=Yt.prototype.ii,Yt.prototype.findPartForData=Yt.prototype.Lc,Yt.prototype.findLinkForKey=Yt.prototype.findLinkForKey,Yt.prototype.findNodeForKey=Yt.prototype.Vb,Yt.prototype.findPartForKey=Yt.prototype.findPartForKey,Yt.prototype.rebuildParts=Yt.prototype.Wd,Yt.prototype.transformViewToDoc=Yt.prototype.Ps,Yt.prototype.transformRectDocToView=Yt.prototype.zA,Yt.prototype.transformDocToView=Yt.prototype.op,Yt.prototype.centerRect=Yt.prototype.es,Yt.prototype.scrollToRect=Yt.prototype.tv,Yt.prototype.scroll=Yt.prototype.scroll,Yt.prototype.highlightCollection=Yt.prototype.Jz,Yt.prototype.highlight=Yt.prototype.Iz,Yt.prototype.selectCollection=Yt.prototype.rA,Yt.prototype.select=Yt.prototype.select,Yt.prototype.updateAllRelationshipsFromData=Yt.prototype.rp,Yt.prototype.updateAllTargetBindings=Yt.prototype.updateAllTargetBindings,Yt.prototype.commit=Yt.prototype.commit,Yt.prototype.rollbackTransaction=Yt.prototype.Kf,Yt.prototype.commitTransaction=Yt.prototype.eb,Yt.prototype.startTransaction=Yt.prototype.Ea,Yt.prototype.raiseChanged=Yt.prototype.g,Yt.prototype.raiseChangedEvent=Yt.prototype.cb,Yt.prototype.removeChangedListener=Yt.prototype.ik,Yt.prototype.addChangedListener=Yt.prototype.Pe,Yt.prototype.removeModelChangedListener=Yt.prototype.mA,Yt.prototype.addModelChangedListener=Yt.prototype.Yw,Yt.prototype.findLayer=Yt.prototype.Qj,Yt.prototype.removeLayer=Yt.prototype.kA,Yt.prototype.addLayerAfter=Yt.prototype.Cy,Yt.prototype.addLayerBefore=Yt.prototype.Ww,Yt.prototype.addLayer=Yt.prototype.Al,Yt.prototype.moveParts=Yt.prototype.moveParts,Yt.prototype.copyParts=Yt.prototype.Kj,Yt.prototype.removeParts=Yt.prototype.Is,Yt.prototype.remove=Yt.prototype.remove,Yt.prototype.add=Yt.prototype.add,Yt.prototype.clearDelayedGeometries=Yt.prototype.bx,Yt.prototype.setProperties=Yt.prototype.nm,Yt.prototype.attach=Yt.prototype.Du,Yt.prototype.set=Yt.prototype.set,Yt.prototype.resetInputOptions=Yt.prototype.Sx,Yt.prototype.setInputOption=Yt.prototype.sA,Yt.prototype.getInputOption=Yt.prototype.Ql,Yt.prototype.resetRenderingHints=Yt.prototype.Tx,Yt.prototype.setRenderingHint=Yt.prototype.Xx,Yt.prototype.getRenderingHint=Yt.prototype.Gf,Yt.prototype.maybeUpdate=Yt.prototype.bd,Yt.prototype.requestUpdate=Yt.prototype.$b,Yt.prototype.delayInitialization=Yt.prototype.Xy,Yt.prototype.isUpdateRequested=Yt.prototype.Pz,Yt.prototype.invalidateDocumentBounds=Yt.prototype.Ya,Yt.prototype.findObjectsNear=Yt.prototype.og,Yt.prototype.findPartsNear=Yt.prototype.mz,Yt.prototype.findObjectsIn=Yt.prototype.Cf,Yt.prototype.findPartsIn=Yt.prototype.ux,Yt.prototype.findObjectsAt=Yt.prototype.ji,Yt.prototype.findPartsAt=Yt.prototype.lz,Yt.prototype.findObjectAt=Yt.prototype.ic,Yt.prototype.findPartAt=Yt.prototype.Ol,Yt.prototype.focusObject=Yt.prototype.zz,Yt.prototype.alignDocument=Yt.prototype.Jy,Yt.prototype.zoomToRect=Yt.prototype.BA,Yt.prototype.zoomToFit=Yt.prototype.zoomToFit,Yt.prototype.diagramScroll=Yt.prototype.kx,Yt.prototype.focus=Yt.prototype.focus;var Zh=new wi,hh=null,$a=lt.document!==void 0,Sf=null,Wc="",Al=new Bt(Yt,"None",0),Ou=new Bt(Yt,"Uniform",1),Zc=new Bt(Yt,"UniformToFill",2),Yf=new Bt(Yt,"CycleAll",10),lp=new Bt(Yt,"CycleNotDirected",11),up=new Bt(Yt,"CycleNotDirectedFast",12),hp=new Bt(Yt,"CycleNotUndirected",13),dp=new Bt(Yt,"CycleDestinationTree",14),cp=new Bt(Yt,"CycleSourceTree",15),fc=new Bt(Yt,"DocumentScroll",1),Uf=new Bt(Yt,"InfiniteScroll",2),gc=new Bt(Yt,"TreeParentCollapsed",21),ks=new Bt(Yt,"AllParentsCollapsed",22),xg=new Bt(Yt,"AnyParentsCollapsed",23),fp=new xn,xf="2.3.10",wf="image",Xf=null,dm=!1;function wl(){if($a){var a=lt.document.createElement("canvas"),y=a.getContext("2d"),x=ai("7ca11abfd022028846");y[x]=ai("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",yn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Mr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Nt.za],E=1;5>E;E++)y[ai("7ca11abfd7330390")](ai(b[E-1]),10,15*E);for(y[x]=ai("39f046ebb36e4b"),x=1;5>x;x++)y[ai("7ca11abfd7330390")](ai(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Mr.prototype.Cd=Mr.prototype.Eu),Xf=a}}Yt.className="Diagram",Yt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=lt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Yt?y.H:null},Yt.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},Yt.useDOM=function(a){$a=a?lt.document!==void 0:!1},Yt.isUsingDOM=function(){return $a},Yt.None=Al,Yt.Uniform=Ou,Yt.UniformToFill=Zc,Yt.CycleAll=Yf,Yt.CycleNotDirected=lp,Yt.CycleNotDirectedFast=up,Yt.CycleNotUndirected=hp,Yt.CycleDestinationTree=dp,Yt.CycleSourceTree=cp,Yt.DocumentScroll=fc,Yt.InfiniteScroll=Uf,Yt.TreeParentCollapsed=gc,Yt.AllParentsCollapsed=ks,Yt.AnyParentsCollapsed=xg;function cm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Pf(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=lt[ai("76a715b2f73f148a")][ai("72ba13b5")]||"";if(a.Rc=!0,$a){var b=Yt[ai("76a115b6ed251eaf4692")];if(b)for(var E=fp.iterator;E.next()&&(b=E.value,b=ai(b).split(ai("39e9")),!(6>b.length));){var z=ai(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ee=ai(yn[ai("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=lt[ai("74a900bae4370f8b51")][ai("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[ai("73a612b6fb191d")](ai("3aad1ab6e022098b4dc4")),z=ai(b[2]),-1<ee&&(re=re[ai("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[ai("76ad18b4f73e")],re=x[ai("73a612b6fb191d")](ai("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[ai("73a612b6fb191d")](z),0>ee&&z!==ai("7da71ca0ad381e90")&&(ee=y[ai("73a612b6fb191d")](ai("76a715b2ef3e149757"))),0>ee&&(ee=y[ai("73a612b6fb191d")](ai("76a715b2ef3e149757"))),0>ee&&(ee=y[ai("73a612b6fb191d")](ai("2bfa41fdb3784bca12"))),0>ee&&(ee=x[ai("73a612b6fb191d")](ai("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[ai("73a612b6fb191d")](ai("35"))||y[ai("73a612b6fb191d")](ai("35"))===-1),!a.Rc||x[ai("73a612b6fb191d")](ai("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[ai("73a612b6fb191d")](z)),!a.Rc)||(ee=lt[ai("76a715b2f73f148a")][ai("69ad17a1e03e")],re=ee[ai("73a612b6fb191d")](ai("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[ai("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=lt.document.createElement("div");for(var oe=b[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),b="",b+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[ai("79a417a0f0181a8946")]=b,lt.document[ai("78a712aa")]){lt.document[ai("78a712aa")][ai("7bb806b6ed32388c4a875b")](ee),oe=lt.getComputedStyle(ee).getPropertyValue(ai("78a704b7e62456904c9b12701b6532a8"));var le=lt.getComputedStyle(ee).getPropertyValue(ai("75b817b0ea2202"));if(lt.document[ai("78a712aa")][ai("68ad1bbcf533388c4a875b")](ee),oe){if(ee=lt[ai("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(ai("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ue in ee)if(b===ee[ue].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ue=x[ai("76ad18b4f73e")],E=x[ai("73a612b6fb191d")](ai("35e7"))+2;E<ue;E++)y+=x[E];x=y[ai("73a612b6fb191d")](ai("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[ai("73a612b6fb191d")](ai("35")))}}}return 0<a.Rc&&a!==a.wy}cm.className="DiagramHelper";function Kd(a){this.j=a===void 0?new Ye:a,this.o=new Ye}ft.Object.defineProperties(Kd.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 Jf="DraggingInfo";Kd.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ei(NaN,NaN).freeze(),this.gridSnapCellSpot=Es,this.gridSnapOrigin=new Ye(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function ce(a,y){if(typeof a=="string"||lt.Element&&a instanceof Element)var x=Yt.call(this,a)||this;else x=Yt.call(this)||this,y=a;return de(x),y&&x.nm(y),x}Jt(ce,Yt);function de(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Jl,a.layout=new ol}ce.prototype.reset=function(){Yt.prototype.reset.call(this),de(this)},ce.className="Palette";function pe(a,y){if(typeof a=="string"||lt.Element&&a instanceof Element)var x=Yt.call(this,a)||this;else x=Yt.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 ji;var E=new Dr;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 Wi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new qe,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var ee=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new Ye(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){b.Ya(),Re(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&&Re(b)},x.autoScale=Ou,x.vb=!1,y&&Object.assign(x,y),x}Jt(pe,Yt),pe.prototype.computePixelRatio=function(){return 1},pe.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(gu(this),this.ql===null){var x=new ch(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),Ae(this)}finally{this.ta=a,this.ib=y}}}Yt.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&bt("No div specified"),this.ta===null&&bt("No canvas specified"),!(this.ta instanceof sd)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){gu(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?Ae(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 Ae(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=dn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),lh(y,E),dn.free(E),Js(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)b&&le.layer===re&&(re=Zs(re,E),le.gc(E,oe),E.globalAlpha=re);else{for(var ue=Zs(re,E),fe=oe.scale,ye=dn.alloc(),Ce=re.Pa.s,Le=Ce.length,Be=0;Be<Le;Be++){var $e=Ce[Be];(b||$e!==le)&&re.Oj(E,$e,oe,null,fe,ye,!1)}dn.free(ye),E.globalAlpha=ue}}}}}function Re(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=ei.alloc();E.h(x.width,x.height),b.desiredSize=E,ei.free(E),a=2/a.scale,b instanceof Dr&&(b.strokeWidth=a),y.location=new Ye(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return to;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pe.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Re(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))},ft.Object.defineProperties(pe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pe&&bt("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),Re(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),Re(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)}}}),pe.className="Overview";function qe(){zi.call(this),this.j=null}Jt(qe,zi),qe.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 Ye(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ye(a.x-this.j.x,a.y-this.j.y)),!0)},qe.prototype.doActivate=function(){this.j=null,zi.prototype.doActivate.call(this)},qe.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},qe.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 Ye(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ye(a.x-this.j.x,a.y-this.j.y)}}},qe.className="OverviewDraggingTool";function Qe(){Ir(this),this.H=sh,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=to,this.hb=!0,this.cg=null,this.ob=200}Qe.prototype.toString=function(){return"CommandHandler"},Qe.prototype.Xe=function(a){this.H=a},Qe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Lr?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Qe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Qe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof zn&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Qe.prototype.canStopCommand=function(){return!0},Qe.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=""}},Qe.prototype.canSelectAll=function(){return this.diagram.allowSelect},Qe.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 An,x=a.selection.iterator;x.next();)Yc(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=""}},Qe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Qe.prototype.copySelection=function(){var a=this.diagram,y=new An;for(a=a.selection.iterator;a.next();)Yc(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Qe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Qe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Qe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Qe.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Sf=null,Wc="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new xn,x.addAll(z),Sf=x,Wc=y.model.dataFormat}}y.R("ClipboardChanged",x)},Qe.prototype.pasteFromClipboard=function(){var a=new An,y=Sf;if(y===null)return a;var x=this.diagram;if(Wc!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,ee=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=ee.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},Qe.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 z=this.computeEffectiveCollection(y.selection,y.Wm);Uu(y,z,new Ye(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=""}},Qe.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Sf===null||Sf.count===0||Wc!==a.model.dataFormat)},Qe.prototype.undo=function(){this.diagram.undoManager.undo()},Qe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Qe.prototype.redo=function(){this.diagram.undoManager.redo()},Qe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Qe.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Qe.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Qe.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Qe.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Qe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Qe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Qe.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Da(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=to):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ho(y)},Qe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Qe.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(oe){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;Da(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=vt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=E.pop();0<E.length&&oe instanceof fi&&oe.isTreeExpanded&&(!(oe instanceof br)||oe.isSubGraphExpanded);)oe=E.pop();0<E.length?(oe instanceof ji&&y.tv(oe.actualBounds),oe instanceof fi&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof br&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof ji&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Di(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function vt(a,y,x){if(y.isVisible())return x;if(y instanceof Ao)vt(a,y.adornedPart,x);else if(y instanceof qn){var b=y.fromNode;b!==null&&vt(a,b,x),y=y.toNode,y!==null&&vt(a,y,x)}else y instanceof fi&&(b=y.labeledLink,b!==null&&vt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),vt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),vt(a,y,x));return x}Qe.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof ji)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Qe.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Da(y.animationManager,"Collapse Tree");var x=new xn;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 fi&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Qe.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof fi&&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 fi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Qe.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Da(y.animationManager,"Expand Tree");var x=new xn;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 fi&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Qe.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof fi)||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 fi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Qe.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 xn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&E.add(ee)}for(var re=new xn,oe=E.iterator;oe.next();){var le=oe.value;z=!1;for(var ue=E.iterator;ue.next();)if(le.Td(ue.value)){z=!0;break}z||re.add(le)}if(0<re.count){var fe=re.first().containingGroup;if(fe!==null)for(;fe!==null;){E=!1;for(var ye=re.iterator;ye.next();)if(!ye.value.Td(fe)){E=!0;break}if(E)fe=fe.containingGroup;else break}if(x instanceof br)fh(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Ce=y.copyNodeData(x);Kt(Ce)&&(y.xf(Ce),b=a.ii(Ce))}if(b!==null){fe!==null&&this.isValidMember(fe,b)&&(b.containingGroup=fe);for(var Le=re.iterator;Le.next();){var Be=Le.value;this.isValidMember(b,Be)&&(Be.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Qe.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 nn(a){var y=un();for(a=a.iterator;a.next();){var x=a.value;x instanceof qn||y.push(x)}a=new An,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,ee=0;ee<x;ee++)if(E.Td(y[ee])){z=!1;break}z&&a.add(E)}return En(y),a}Qe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof qn)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},Qe.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 xn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof br&&z.canUngroup()&&b.add(z)}var ee=new xn;if(0<b.count){y.clearSelection(!0);for(var re=b.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var le=oe.containingGroup,ue=le!==null&&le.data!==null?x.wa(le.data):void 0;ee.addAll(oe.memberParts);for(var fe=ee.iterator;fe.next();){var ye=fe.value;if(ye.isSelected=!0,!(ye instanceof qn)){var Ce=ye.data;Ce!==null?x.mp(Ce,ue):ye.containingGroup=le}}y.remove(oe)}}y.R("SelectionUngrouped",b,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Qe.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 br))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof br&&y.canUngroup())return!0;return!1},Qe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=nn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Qe.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Da(y.animationManager,"Collapse SubGraph");var x=new xn;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 br&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Qe.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof br&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof br&&y.isSubGraphExpanded)return!0;return!1},Qe.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Da(y.animationManager,"Expand SubGraph");var x=new xn;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 br&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Qe.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof br&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof br&&!y.isSubGraphExpanded)return!0;return!1},Qe.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(z){return z instanceof aa&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Qe.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 aa))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 aa&&x.editable}),a!==null))return!0;return!1},Qe.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 At?E=a.ga(lo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Ye(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,Io(x,!1,a)}},Qe.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)},Qe.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 wi,a===null)return b;for(var z=a.iterator;z.next();)Du(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof qn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},ft.Object.defineProperties(Qe.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||bt("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}}}),Qe.className="CommandHandler",Rh=function(){return new Qe};function At(){Ir(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ye(NaN,NaN).freeze(),this.jd=ys,this.Ab=new Mr,this.wh=new Mr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=dl,this.uc=new dn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new dn(NaN,NaN,NaN,NaN).freeze(),this.dc=new dn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Bo,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,Ni,Bi,er,Er,ro,Wr,So,Jo;At.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=Wt(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},At.prototype.Vw=function(a){var y=this.Dh;if(Sn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},At.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},At.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},At.prototype.copy=function(){return this.clone()},be=At.prototype,be.qb=function(a){a.classType===qn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:bt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===At&&(this.stretch=a)},be.toString=function(){return Nn(this.constructor)+"#"+oo(this)},be.th=function(){this.A!==null&&(this.A.nc=!0)};function zr(a){a.A===null?a.A=new $f:a.A.nc&&(a.A=a.A.copy())}be.Xc=function(){if(this.ba===null){var a=new gp;a.Xi=Ya,a.yj=Ya,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},be.cb=function(a,y,x,b,E,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,b,E,z,ee),x===this&&a===Gn&&hl(this)&&va(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new wi),ee=z.undoManager.transactionLevel===0,a.startCondition===Ws?ee=!0:a.startCondition===is&&(ee=!1),ee?(z=new Ha,Ca(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Da(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Kn&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)re=x[E],re instanceof Kn&&Lf(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function va(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,ee=null;if(z.sourceName!==null){if(ee=L1(z,b,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,b)}else{if(re=b.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,b)}ee===a&&(re=b.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}be.ks=function(a){return this.bindingId===a?this:null},be.g=function(a,y,x){this.cb(Gn,a,this,y,x)},be.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 Mr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Gs(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}be.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?fa(a.x,a.y,0,0,0,b.height)<=y||fa(a.x,a.y,0,b.height,b.width,b.height)<=y||fa(a.x,a.y,b.width,b.height,b.width,0)<=y||fa(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},be.se=function(){return!0},be.ca=function(a){var y=Ye.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ye.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;b=this.Df()*b.scale;var oe=1/b;if(re.width*b<E&&re.height*b<E)return a=la(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Ye.free(y),a}return E=!1,(this instanceof Ao||this instanceof Dr?la(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)),Ye.free(y),E},be.gh=function(a){var y=this.naturalBounds;return la(0,0,y.width,y.height,a.x,a.y)},be.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=dn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Ye.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)))),Ye.free(E),dn.free(y),b},be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Ye.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)))),Ye.free(E),b},be.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Ye.allocAt(0,0),E=Ye.allocAt(0,x.height),z=Ye.allocAt(x.width,x.height),ee=Ye.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=dn.allocAt(0,0,x.width,x.height);var oe=Ye.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),Ye.free(oe),dn.free(x),!re&&(Nt.us(a,b,E)||Nt.us(a,E,z)||Nt.us(a,z,ee)||Nt.us(a,ee,b))&&(re=!0)}return Ye.free(b),Ye.free(E),Ye.free(z),Ye.free(ee),re},be.ga=function(a,y){if(y===void 0&&(y=new Ye),a instanceof Fi){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},be.mi=function(a){a===void 0&&(a=new dn);var y=this.naturalBounds,x=this.oe,b=Ye.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),To(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),To(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),To(a,b.x,b.y,0,0),Ye.free(b),a},be.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},be.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},be.qs=function(a,y){return y===void 0&&(y=new Ye),y.assign(a),this.oe.Cd(y),y},be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},be.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),ye=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Nt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(ee=a*re+y*le+fe,a=a*oe+y*ue+ye,y=x*re+b*le+fe,x=x*oe+b*ue+ye,E.h(0,0),b=this.naturalBounds,x=Nt.Ff(0,0,b.width,b.height,ee,a,y,x,E),E.transform(z),x)},At.prototype.measure=function(a,y,x,b){if(Ru(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+ee:a,y=isFinite(E.width)?E.width+ee:y):(a=isFinite(E.width)?E.width+ee:a,y=isFinite(E.height)?E.height+ee:y),E=x||0,ee=b||0;var re=this instanceof Kn;switch(tu(this,!0)){case Dn:ee=E=0,re&&(y=a=1/0);break;case Hn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ee=y);break;case Bi:isFinite(a)&&a>x&&(E=a),ee=0,re&&(y=1/0);break;case er:isFinite(y)&&y>b&&(ee=y),E=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;E>re.width&&oe.width<re.width&&(E=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(E,oe.width),b=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<b&&(b=Math.min(oe.height,b)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||bt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Fs(this,!1)}},At.prototype.Wl=function(){},At.prototype.Dd=function(){return!1},At.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=dn.alloc();z.assign(this.Ib),this.Ib.ka(),jl(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&&vc(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 aa&&(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()||bt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),xd(this,!1),dn.free(z)},be=At.prototype,be.eh=function(){};function kl(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,b+=y,E+=ee,y=tu(a,!0),x===b&&z===E&&(y=Dn),y){case Dn:(x>b||z>E)&&(Fs(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Hn:Fs(a,!0),a.measure(b,E,0,0);break;case Bi:Fs(a,!0),a.measure(b,z,0,0);break;case er:Fs(a,!0),a.measure(x,E,0,0)}}}be.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),No(a,y)||(x.oh(),this.Pn(x)))},be.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof fi&&GS(a,this))},be.gc=function(a,y){if(!Xu(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 z=this instanceof Kn&&vc(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,le=this.areaBackground,ue=this.Ma;le===null&&ue===null||a.yc(),le!==null&&(qa(this,a,le,!0,!0,oe,re),le instanceof Go&&le.type===$u?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),ue!==null&&(qa(this,a,ue,!0,!1,oe,re),ue instanceof Go&&ue.type===$u?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&rl(this),le=this.part,oe=!1;var fe=0;le&&y.Gf("drawShadows")&&(oe=le.isShadowed)&&(ue=le.shadowOffset,fe=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var ye;if(!(ye=y.$i||!ue)){var Ce=this.naturalBounds;ye=this.wh;var Le=ye.m11,Be=ye.m21,$e=ye.dx,Ze=ye.m12,rt=ye.m22,st=ye.dy,ct,Lt=ct=0;ye=ct*Le+Lt*Be+$e;var Xt=ct*Ze+Lt*rt+st;ct=Ce.width+fe,Lt=0;var hi=ct*Le+Lt*Be+$e;ct=ct*Ze+Lt*rt+st,Lt=Math.min(ye,hi);var bi=Math.min(Xt,ct),yi=Math.max(ye+0,hi)-Lt,Jn=Math.max(Xt+0,ct)-bi;ye=Lt,Xt=bi,ct=Ce.width+fe,Lt=Ce.height+fe,hi=ct*Le+Lt*Be+$e,ct=ct*Ze+Lt*rt+st,Lt=Math.min(ye,hi),bi=Math.min(Xt,ct),yi=Math.max(ye+yi,hi)-Lt,Jn=Math.max(Xt+Jn,ct)-bi,ye=Lt,Xt=bi,ct=0,Lt=Ce.height+fe,hi=ct*Le+Lt*Be+$e,ct=ct*Ze+Lt*rt+st,Lt=Math.min(ye,hi),bi=Math.min(Xt,ct),yi=Math.max(ye+yi,hi)-Lt,Jn=Math.max(Xt+Jn,ct)-bi,ye=Lt,Xt=bi,fe=y.viewportBounds,Ce=fe.x,Le=fe.y,ye=!(ye>fe.width+Ce||Ce>yi+ye||Xt>fe.height+Le||Le>Jn+Xt)}if(ye){if(ye=(this.l&256)!==0,a.clipInsteadOfFill&&(ye=!1),this instanceof aa&&(a.font=this.font),ye){if(Xt=re.se()?re.naturalBounds:re.actualBounds,yi=Math.max(ee.x,Xt.x),Jn=Math.max(ee.y,Xt.y),fe=Math.min(ee.right,Xt.right)-yi,Ce=Math.min(ee.bottom,Xt.bottom)-Jn,Le=this.tb,Le!==null&&(yi=Le.x,Jn=Le.y,fe=Le.width,Ce=Le.height),yi>ee.width+ee.x||ee.x>Xt.width+Xt.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(yi,Jn,fe,Ce),a.clip()}if(ue){if(!le.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}oe&&(Xt=le.shadowOffset,a.Ev(Xt.x*y.scale*this.scale*y.Mb,Xt.y*y.scale*this.scale*y.Mb,le.shadowBlur),Vd(a),a.shadowColor=le.shadowColor)}oe&&this.shadowVisible===!0?Vd(a):oe&&this.shadowVisible===!1&&wd(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Iu(this,a,le,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&tl(this,re)&&this.shadowVisible===null&&wd(a),this.Ma!==null&&(a.yc(),pu(this,a,le,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||tl(this,re))?(Eh(this,!0),this.shadowVisible===null&&wd(a)):Eh(this,!1),this.hh(a,y),oe&&this.l&512&&Vd(a),ue&&oe&&wd(a),ye&&(a.restore(),a.Vc(this instanceof Kn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function tl(a,y){return y===null?!1:(vc(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Kn.Auto||y.type===Kn.Spot)&&y.Pb()!==a)}be.Dv=function(){};function Iu(a,y,x,b){qa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Go&&a.areaBackground.type===$u?(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 pu(a,y,x,b){var E=a.kq(),z=x.x,ee=x.y,re=x.width+E,oe=x.height+E;qa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Go&&a.Ma.type===$u?(y.beginPath(),y.rect(z-E/2,ee-E/2,re,oe),y.ng(a.Ma)):y.fillRect(z-E/2,ee-E/2,re,oe)}function Pl(a,y,x){for(var b=y.O.s,E=b.length,z=-1,ee=0;ee<E;ee++)if(b[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Kn.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 Xu(a,y,x){if(!(y instanceof Lu))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&&Pl(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),Vd(y),y.shadowColor=a.shadowColor}a instanceof aa&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Kn;var re=a instanceof Kn?vc(a):!1;a.l&4096&&rl(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&re?(pp(y,1,0,0,1,0,0),a.svg=y.ad):z?(pp(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):pp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var le=ee.copy().Vj();y.rb.ha=[le.m11,le.m12,le.m21,le.m22,le.dx,le.dy],Iu(a,y,E,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),pu(a,y,E,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],pu(a,y,E,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,E=a.part,re=!1,E&&x.Gf("drawShadows")&&(re=E.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&Vd(y),re&&a.shadowVisible===!0?Vd(y):re&&a.shadowVisible===!1&&wd(y),E=a.panel,re&&tl(a,E)&&a.shadowVisible===null&&wd(y),y.Il&&(le=x.computePixelRatio(),le="drop-shadow("+y.shadowOffsetX/le+"px "+y.shadowOffsetY/le+"px "+y.shadowBlur/le/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",le),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",le)),re&&(a.Ma!==null||a.areaBackground!==null||tl(a,E))?(Eh(a,!0),a.shadowVisible===null&&wd(y)):Eh(a,!1),E=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&re!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,b,oe,re),eu(y,le),!0):(a.svg=re,ee!==null&&re===null&&(gm(y),y.nh.pop()),re===null||(a.$o(y,b,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&Vd(y),a.Dd()&&wd(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):b!==null&&Pl(a,b,re),ee!==null&&ee(a,re)),!0)}be.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var ee=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,ee=z.width,x=z.height),z=b.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+Fa++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:ee,height:x}),this instanceof Kn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),re.appendChild(y),a.svg.appendChild(re),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),eu(a,b)};function eu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Cl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Gi(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()}}be.hh=function(){},be.lv=function(){this.Uc=!0},be.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 Kn?vc(this):!1;if(!(this instanceof Kn&&E))if(this instanceof iu){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof Kn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Dr){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ee=b.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Iu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Kn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),pu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(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),z&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},be.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 qa(a,y,x,b,E,z,ee){if(x!==null){var re=1,oe=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===mc)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var le=a.kq();if(re=z.width,oe=z.height,E?(re=ee.width,oe=ee.height):b||(re+=le,oe+=le),(z=y instanceof Ef)&&x.xe&&(x.type===Mg||x.yk===re&&x.ft===oe))var ue=x.xe;else{var fe=0,ye=0,Ce=0,Le=0,Be=0,$e=0;if($e=Be=0,E?(Be=ee.x,$e=ee.y):b||(Be-=le/2,$e-=le/2),fe=x.start.x*re+x.start.offsetX,ye=x.start.y*oe+x.start.offsetY,Ce=x.end.x*re+x.end.offsetX,Le=x.end.y*oe+x.end.offsetY,fe+=Be,Ce+=Be,ye+=$e,Le+=$e,x.type===Ud)ue=y.createLinearGradient(fe,ye,Ce,Le);else if(x.type===$u)$e=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Be=0,$e=Math.max(re,oe)/2):Be=x.startRadius,ue=y.createRadialGradient(fe,ye,Be,Ce,Le,$e);else if(x.type===Mg)try{ue=y.createPattern(x.pattern,"repeat")}catch(rt){ue=null}if(x.type!==Mg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ue.addColorStop(E.key,E.value);if(z&&(x.xe=ue,ue!==null&&(x.yk=re,x.ft=oe),ue===null&&x.type===Mg&&x.yk!==-1)){x.yk=-1;var Ze=a.diagram;Ze!==null&&x.yk===-1&&Di(function(){Ze.redraw()},600)}}b?y.fillStyle=ue:y.strokeStyle=ue}}}be.rg=function(a){if(a instanceof Kn)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},be.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},be.If=function(){for(var a=this instanceof Kn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function rl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){dh(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)}dh(a,!1),Ju(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Ju(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,Ju(a,!1)))}be.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ye.alloc();z.yi(y,x,b,E,lo),a.rotate(this.Kb,z.x,z.y),Ye.free(z)}},be.v=function(a){if(!Ru(this)){a===void 0&&(a=!1),Fs(this,!0),xd(this,!0);var y=this.panel;y===null||a||y.v()}},be.Uj=function(){Ru(this)||(Fs(this,!0),xd(this,!0))};function zl(a){if(!jl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof fi&&a.Bd(),y.$b())),xd(a,!0)}}be.Uk=function(){!(this.l&2048)&&(dh(this,!0),Ju(this,!0))},be.Wu=function(){Ju(this,!0)},be.N=function(){var a=this.part;a!==null&&a.N()};function tu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Kn.Table?Gh(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Kn.Auto&&b.Pb()===a?nl(a,Hn,y):x===Er?b!==null?b.type===Kn.Spot&&b.Pb()===a?nl(a,Hn,y):(x=b.defaultStretch,x===Er?nl(a,Dn,y):nl(a,x,y)):nl(a,Dn,y):nl(a,x,y)}function Gh(a,y,x,b){var E=a.stretch;if(E!==Er)return nl(a,E,b);var z=E=null;switch(y.stretch){case er:z=!0;break;case Hn:z=!0}switch(x.stretch){case Bi:E=!0;break;case Hn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Bi||y===Hn),z===null&&(z=y===er||y===Hn),E===!0&&z===!0?nl(a,Hn,b):E===!0?nl(a,Bi,b):z===!0?nl(a,er,b):nl(a,Dn,b)}function nl(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===Bi)return Dn;if(y===Hn)return er}else{if(y===er)return Dn;if(y===Hn)return Bi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===er)return Dn;if(y===Hn)return Bi}else{if(y===Bi)return Dn;if(y===Hn)return er}return y}function Eh(a,y){a.l=y?a.l|512:a.l&-513}function hl(a){return(a.l&1024)!==0}function Qf(a,y){a.l=y?a.l|1024:a.l&-1025}function dh(a,y){a.l=y?a.l|2048:a.l&-2049}function Ju(a,y){a.l=y?a.l|4096:a.l&-4097}function Ru(a){return(a.l&8192)!==0}function Fs(a,y){a.l=y?a.l|8192:a.l&-8193}function jl(a){return(a.l&16384)!==0}function xd(a,y){a.l=y?a.l|16384:a.l&-16385}be.Gj=function(){this.svg=null},be.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},be.Av=function(){},be.zv=function(a){return this.pa=a,zl(this),!0},be.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},be.kq=function(){return 0};function Cf(a){var y=a.part;if(y instanceof fi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||GS(y,a)}}function Uy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Kn?a instanceof fi?a.Bd():a.qm(a,function(x){Cf(x)}):Cf(a))}be.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ps(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&cS(a)&&bt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new xn),this.localBindings.add(E),this},be.set=function(a){return Object.assign(this,a),this},be.Du=function(a){return nv(this,a),this},be.apply=function(a){return a(this),this},be.nm=function(a){return fu(this,a),this},be.pz=function(){return this.ih()},be.ih=function(){for(var a=this instanceof Kn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},be.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new wi),this.animationTriggers.add(a.propertyName,a),this};function Qu(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 z=wg.I(a);typeof z=="function"?(x=Wt(arguments),b=z(x),Kt(b)||bt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=lt.go[a]}if(b===null&&(E!=null&&E.constructor||bt("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 Yt&&1<x.length){z=b;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(Ph(z,ee),E++)}for(;E<x.length;E++)z=x[E],z===void 0?bt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):nv(b,z);return b}function nv(a,y){if(typeof y=="string")if(a instanceof aa)a.text=y;else if(a instanceof Dr)a.figure=y;else if(a instanceof iu)a.source=y;else if(a instanceof Kn)y=Lh.I(y),y!==null&&(a.type=y);else if(a instanceof Go){var x=Si(Go,y);x!==null?a.type=x:bt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof ti?(y=Si(ti,y),y!==null&&(a.type=y)):a instanceof mo&&(y=Si(mo,y),y!==null&&(a.type=y));else if(y instanceof At)a instanceof Kn||bt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ns){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 Ns?Nm(b,y):bt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Bt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Rs)a.type=y;else if(y instanceof ps)a instanceof At||a instanceof Ns?a.bind(y):bt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof ql)a instanceof At?a.Jv(y):bt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Cs)a instanceof ti&&a.type===ti.o?a.figures.add(y):bt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof mo)a instanceof Cs?a.segments.add(y):bt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Aa)a instanceof Yt||a instanceof br?a.layout=y:bt("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++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Go){x=new ki;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);fu(a,x)}else if(a instanceof Ns){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&bt("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)&&bt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new ki;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);fu(a,E)}else fu(a,y);else bt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function pc(a,y){wg.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}ft.Object.defineProperties(At.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new $f),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 $f),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 $f),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(zr(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&&(zr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Zl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Zl&&(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 Gc),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 Gc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:$r},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Gc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Er},set:function(a){var y=this.stretch;y!==a&&(zr(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&&(zr(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)&&gi(a,"0 <= value <= 1",At,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(kf(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(kf(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(),Uy(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&&_f(a,"GraphObject.areaBackground"),a instanceof Go&&a.freeze(),zr(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&&_f(a,"GraphObject.background"),a instanceof Go&&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 ji)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 Ye(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&&bt("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,Uy(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,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Dr&&this.qc(),this.g("desiredSize",b,a),hl(this)&&(a=this.part,a!==null&&(va(this,a,"width"),va(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 ei(a,this.jd.height).freeze(),this.v(),this instanceof Dr&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&va(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 ei(this.jd.width,a).freeze(),this.v(),this instanceof Dr&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&va(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ro},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(),zr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ia},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(),zr(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 Wi(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&&rl(this),this.Ab}},oe:{get:function(){return this.l&4096&&rl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(zr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Dn},set:function(a){this.reshapingBehavior!==a&&(zr(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()&&bt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),zl(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&&gi(a,">= 0",At,"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&&gi(a,">= 1",At,"columnSpan"),zr(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&&gi(a,">= 0",At,"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&&gi(a,">= 1",At,"rowSpan"),zr(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&&(zr(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 fi||bt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Zv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,YS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ya},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Cf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&gi(a,">= 0",At,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Cf(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),Cf(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&&gi(a,">= 0",At,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ya},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Cf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&gi(a,">= 0",At,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Cf(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),Cf(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&&gi(a,">= 0",At,"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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),At.prototype.trigger=At.prototype.Jv,At.prototype.findBindingPanel=At.prototype.ih,At.prototype.findTemplateBinder=At.prototype.pz,At.prototype.setProperties=At.prototype.nm,At.prototype.apply=At.prototype.apply,At.prototype.attach=At.prototype.Du,At.prototype.set=At.prototype.set,At.prototype.isEnabledObject=At.prototype.If,At.prototype.isVisibleObject=At.prototype.Ed,At.prototype.isContainedBy=At.prototype.rg,At.prototype.getNearestIntersectionPoint=At.prototype.rs,At.prototype.getLocalPoint=At.prototype.qs,At.prototype.getDocumentScale=At.prototype.Df,At.prototype.getDocumentAngle=At.prototype.li,At.prototype.getDocumentBounds=At.prototype.mi,At.prototype.getDocumentPoint=At.prototype.ga,At.prototype.intersectsRect=At.prototype.Yc,At.prototype.containedInRect=At.prototype.fh,At.prototype.containsRect=At.prototype.Re,At.prototype.containsPoint=At.prototype.ca,At.prototype.raiseChanged=At.prototype.g,At.prototype.raiseChangedEvent=At.prototype.cb,At.prototype.addCopyProperty=At.prototype.Vw;var wg=null;At.className="GraphObject",wg=new wi,pc("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=Qu(Kn,Kn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Kn){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"},Qu(Dr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Fi(0,0,2.76142374915397,2.761423749153969),spot2:new Fi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Kn&&(x=b.fb("ButtonBorder"),x instanceof Dr)){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 Kn&&(x=b.fb("ButtonBorder"),x instanceof Dr&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Dr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ee,ee=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Dr){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Dr){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Dr))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ee=b._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=b._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),E.skipsUndoManager=z}}},y}),pc("TreeExpanderButton",function(){var a=Qu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Qu(Dr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ha},new ps("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ps("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ao&&(x=x.adornedPart),x instanceof fi){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}),pc("SubGraphExpanderButton",function(){var a=Qu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Qu(Dr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ha},new ps("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 Ao&&(x=x.adornedPart),x instanceof br){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}),pc("ToolTip",function(){return Qu(Ao,Kn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ye(0,3),shadowBlur:5},Qu(Dr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Fi(0,0,4,6),spot2:new Fi(1,1,-4,-4)}))}),pc("ContextMenu",function(){return Qu(Ao,Kn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ye(0,3),shadowBlur:5},new ps("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),pc("ContextMenuButton",function(){var a=Qu("Button");a.stretch=Bi;var y=a.fb("ButtonBorder");return y instanceof Dr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Fi(0,0,2,3),y.spot2=new Fi(1,1,-2,-2)),a}),pc("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=Qu("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},Qu(Dr,{name:"ButtonIcon",strokeWidth:2},new ps("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Dr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var ee=E.ih();ee===null&&(ee=E.part),ee!==null&&(E=ee.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),pc("CheckBoxButton",function(a){var y=fm(a);return a=Qu("Button",{desiredSize:new ei(14,14)},Qu(Dr,{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:Ni,visible:!1},y!==""?new ps("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Kn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),pc("CheckBox",function(a){a=fm(a),a=Qu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Wi(0,1,0,0)});var y=Qu(Kn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Wi(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}),At.None=Dn=new Bt(At,"None",0),At.Default=Er=new Bt(At,"Default",0),At.Vertical=er=new Bt(At,"Vertical",4),At.Horizontal=Bi=new Bt(At,"Horizontal",5),At.Fill=Hn=new Bt(At,"Fill",3),At.Uniform=Ni=new Bt(At,"Uniform",1),At.UniformToFill=ro=new Bt(At,"UniformToFill",2),At.FlipVertical=Wr=new Bt(At,"FlipVertical",1),At.FlipHorizontal=So=new Bt(At,"FlipHorizontal",2),At.FlipBoth=Jo=new Bt(At,"FlipBoth",3),At.make=Qu,At.getBuilders=function(){var a=new wi,y;for(y in wg)if(y!==y.toLowerCase()){var x=wg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},At.defineBuilder=pc,At.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=wg.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof At))return y&&b.set(y),b;bt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},At.takeBuilderArgument=fm;function $f(){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=Ro,this.o=Ia,this.hg=Er,this.ob=this.Bi=1,this.Pf=Dn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}$f.prototype.copy=function(){var a=new $f;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 Gc(){this.u=-1/0,this.o=0,this.F=$r,this.rr=Zl,this.j=this.V="None"}Gc.prototype.copy=function(){var a=new Gc;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},Gc.className="LinkElementSettings";function gp(){this.yj=this.Xi=Bo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}gp.prototype.copy=function(){var a=new gp;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},gp.className="LinkSettings";function bf(){this.ha=[1,0,0,1,0,0]}bf.prototype.copy=function(){var a=new bf;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},bf.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},bf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},bf.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,z=this.ha[0]*-b+this.ha[2]*a,ee=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]=z,this.ha[3]=ee,this.translate(-y,-x)}},bf.className="STransform";function qf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}qf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},qf.className="SGradient";function sd(a,y,x){this.ownerDocument=a=y===void 0?lt.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 Lu(this,x)}sd.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},sd.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Kt(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},sd.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},sd.prototype.focus=function(){this.Oa.focus()},sd.prototype.mx=function(){this.ownerDocument=null},ft.Object.defineProperties(sd.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}}}),sd.className="SVGSurface";function Lu(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 bf,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Fa++,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,z,ee){a.Nj===void 0?pp(a,y,x,b,E,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+ee+")")}be=Lu.prototype,be.arc=function(a,y,x,b,E,z,ee,re){var oe=2*Math.PI,le=oe-1e-6,ue=x*Math.cos(b),fe=x*Math.sin(b),ye=a+ue,Ce=y+fe,Le=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(ee-ye)||1e-6<Math.abs(re-Ce))&&this.path.push(["L",ye,+Ce]),0>b&&(b=b%oe+oe),b>le?(this.path.push(["A",x,x,0,1,Le,a-ue,y-fe]),this.path.push(["A",x,x,0,1,Le,ye,Ce])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Le,a+x*Math.cos(E),y+x*Math.sin(E)])},be.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},be.Se=function(a){this.addPath(this.path,this.rb,a||0)},be.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},be.clearRect=function(){},be.clip=function(){this.Yl.clipPath=!0},be.closePath=function(){this.path.push(["z"])},be.createLinearGradient=function(a,y,x,b){var E=new qf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},be.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"+Fa++,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(wf,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},be.createRadialGradient=function(a,y,x,b,E,z){var ee=new qf("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=b,ee.y2=E,ee.r2=z,ee};function Jy(a,y,x,b,E,z,ee,re,oe){b=re/b,E=oe/E,z===0&&ee===0||a.rb.translate(z,ee),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}be.drawImage=function(a,y,x,b,E,z,ee,re,oe){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var ue=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,ee=x,re=b=ue,oe=E=a),b=b||0,E=E||0,re=re||0,oe=oe||0,Jy(this,y,x,b,E,z||0,ee||0,re,oe),z={x:0,y:0,width:ue||b,height:a||E,href:le},Nt.$(b,re)&&Nt.$(E,oe)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ue||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),Pg(this,wf,z,this.rb),this.addElement(wf,z)},be.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},be.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},be.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},Pg(this,"fill",a,this.rb),this.addElement("rect",a)},be.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},Pg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},be.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},Pg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},be.lineTo=function(a,y){this.path.push(["L",a,y])},be.moveTo=function(a,y){this.path.push(["M",a,y])},be.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},be.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"])},be.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},be.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())},be.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||pp(this,a,y,x,b,E,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}be.scale=function(a,y){this.rb.scale(a,y)},be.translate=function(a,y){this.rb.translate(a,y)},be.transform=function(){},be.yc=function(){},be.stroke=function(){qy(this,this.Yl)},be.jk=function(){this.clipInsteadOfFill||this.stroke()},be.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},be.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 Pg(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 qf?y.fill=rv(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 $y(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof qf?y.setAttributeNS(null,"fill",rv(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 qf)y.stroke=rv(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 rv(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"+Fa++,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 z=[],ee=0;ee<y;ee++){var re=E[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(le,ue){return le.offset>ue.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}be.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Wt(a[E]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());b.push(ee.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,Pg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function pp(a,y,x,b,E,z,ee){var re=new bf;re.ha=[y,x,b,E,z,ee],y={},Pg(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function gm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function wd(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Vd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}be.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},be.fs=function(){this.Ct=!1},be.Vc=function(){},be.Wx=function(){},Lu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Lu.prototype.getImageData=function(){return null},Lu.prototype.measureText=function(){return null};function pm(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()))}Lu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Lu.className="SVGContext",Yt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new sd(this,lt.document));var y=new sd(this,lt.document,!0);a===void 0&&(a=new ki);var x=this;return uh(this,function(b,E){return b=cc(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Yt.prototype.makeSvg=Yt.prototype.Cs,Yt.prototype.av=function(a){return this.Cs(a)},Yt.prototype.makeSVG=Yt.prototype.av;function ch(a,y,x,b){this.ownerDocument=y=y===void 0?lt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ef(y,x,b),y.H=a}ch.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},ch.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},ch.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ch.prototype.focus=function(){this.Oa.focus()},ch.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},ft.Object.defineProperties(ch.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}}}),ch.className="CanvasSurface";function Ef(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&bt("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 Mr,this.isTemporary=!!x}be=Ef.prototype,be.Wx=function(a){this.Z.imageSmoothingEnabled=a},be.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},be.beginPath=function(){this.Z.beginPath()},be.Se=function(){},be.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},be.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},be.clip=function(){this.Z.clip()},be.closePath=function(){this.Z.closePath()},be.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},be.createPattern=function(a,y){return this.Z.createPattern(a,y)},be.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},be.drawImage=function(a,y,x,b,E,z,ee,re,oe){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,ee,re,oe)},be.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},be.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},be.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},be.fillText=function(a,y,x){this.Z.fillText(a,y,x)},be.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},be.lineTo=function(a,y){this.Z.lineTo(a,y)},be.measureText=function(a){return this.Z.measureText(a)},be.moveTo=function(a,y){this.Z.moveTo(a,y)},be.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},be.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},be.restore=function(){this.Z.restore()},be.save=function(){this.yc(),this.Z.save()},Ef.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},be=Ef.prototype,be.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},be.scale=function(a,y){this.El.scale(a,y)},be.translate=function(a,y){this.El.translate(a,y)},be.stroke=function(){this.Z.stroke()},be.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*b,x=ee.m12*x+ee.m22*b,ee.dx=ee.m11*E+ee.m21*z+ee.dx,ee.dy=ee.m12*E+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},be.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},be.ng=function(a,y){if(a instanceof Go&&a.type===$u){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)},be.jk=function(){this.Hm||this.stroke()},be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},be.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},be.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},be.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},be.Hs=function(){},ft.Object.defineProperties(Ef.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 mx=Object.freeze([]);Ef.className="CanvasSurfaceContext";function mp(){this.F=this.o=this.u=this.j=0}mp.className="ColorNumbers";function Go(a,y){Lg||(hv(),Lg=!0),Ir(this),this._isFrozen=!1,a===void 0?(this.na=mc,this.xk="black"):typeof a=="string"?(this.na=mc,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Ud?(this.Qd=Jl,this.Lk=Ll):this.Lk=a===$u?this.Qd=lo:this.Qd=Ya,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Go.prototype.copy=function(){var a=new Go;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},be=Go.prototype,be.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},be.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},be.qb=function(a){a.classType===Go&&(this.type=a)},be.toString=function(){var a="Brush(";if(this.type===mc)a+=this.color;else if(a=this.type===Ud?a+"Linear ":this.type===$u?a+"Radial ":this.type===Mg?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+")"},be.addColorStop=function(a,y){return this._isFrozen&&In(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&gi(a,"0 <= loc <= 1",Go,"addColorStop:loc"),this.we===null&&(this.we=new wi),this.we.add(a,y),this.na===mc&&(this.type=Ud),this.xe=null,this},be.Vz=function(a,y){if(this._isFrozen&&In(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(a,y);else if((this.type===Ud||this.type===$u)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(a,y));return this};function _y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(y,x)}be.Wy=function(a,y){if(this._isFrozen&&In(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(-a,y);else if((this.type===Ud||this.type===$u)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(-a,y));return this};function eS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(-y,x)}function ov(a,y,x){Yd(a),a=ua.j;var b=ua.u,E=ua.o,z=ua.F;return Yd(y),x===void 0&&(x=.5),"rgba("+Math.round((ua.j-a)*x+a)+", "+Math.round((ua.u-b)*x+b)+", "+Math.round((ua.o-E)*x+E)+", "+Math.round((ua.F-z)*x+z)+")"}be.Gx=function(){if(this.type===mc)return Cg(this.color);if((this.type===Ud||this.type===$u)&&this.colorStops!==null){var a=this.colorStops;if(this.type===$u)return Cg(a.first().value);if(a.get(.5)!==null)return Cg(a.get(.5));if(a.count===2)return a=a.Fa(),Cg(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);E>z&&re<E?(x=ee,E=re):z>=E&&re<z&&(b=ee,z=re)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Cg(ov(a.get(x),a.get(b),1-z/E))}return!1};function Cg(a){return a?a instanceof Go?a.Gx():(Yd(a),128>(299*ua.j+587*ua.u+114*ua.o)/1e3):!1}function bg(a,y){switch(y){case Ag:y=100*sv(ua.j);var x=100*sv(ua.u),b=100*sv(ua.o);return Hl.j=.4124564*y+.3575761*x+.1804375*b,Hl.u=.2126729*y+.7151522*x+.072175*b,Hl.o=.0193339*y+.119192*x+.9503041*b,Hl.F=ua.F,y=uv(Hl.j/Eg[0]),x=uv(Hl.u/Eg[1]),b=uv(Hl.o/Eg[2]),Pd.j=116*x-16,Pd.u=500*(y-x),Pd.o=200*(x-b),Pd.F=Hl.F,Pd.j=Math.min(100,Math.max(0,Pd.j+100*a)),a=(Pd.j+16)/116,y=a-Pd.o/200,Hl.j=Eg[0]*tS(Pd.u/500+a),Hl.u=Eg[1]*(Pd.j>mm*dv?Math.pow(a,3):Pd.j/mm),Hl.o=Eg[2]*tS(y),Hl.F=Pd.F,a=-.969266*Hl.j+1.8760108*Hl.u+.041556*Hl.o,y=.0556434*Hl.j+-.2040259*Hl.u+1.0572252*Hl.o,ua.j=255*lv((3.2404542*Hl.j+-1.5371385*Hl.u+-.4985314*Hl.o)/100),ua.u=255*lv(a/100),ua.o=255*lv(y/100),ua.F=Hl.F,ua.j=Math.round(ua.j),255<ua.j?ua.j=255:0>ua.j&&(ua.j=0),ua.u=Math.round(ua.u),255<ua.u?ua.u=255:0>ua.u&&(ua.u=0),ua.o=Math.round(ua.o),255<ua.o?ua.o=255:0>ua.o&&(ua.o=0),"rgba("+ua.j+", "+ua.u+", "+ua.o+", "+ua.F+")";case nS:return av(),zu.o=Math.min(100,Math.max(0,zu.o+100*a)),"hsla("+zu.j+", "+zu.u+"%, "+zu.o+"%, "+zu.F+")";default:bt("Unknown color space: "+y)}}function Yd(a){Lg||(hv(),Lg=!0);var y=cv;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,ua.j=a[0],ua.u=a[1],ua.o=a[2],ua.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ua.j=0,ua.u=0,ua.o=0,ua.F=1)}}function av(){var a=ua.j/255,y=ua.u/255,x=ua.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var ee=a=0;else{switch(b){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*E-1))}zu.j=Math.round(ee),zu.u=Math.round(100*a),zu.o=Math.round(100*E),zu.F=ua.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function tS(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function _f(a,y){typeof a!="string"&&(a instanceof Go||bt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=$a?new ch(null,void 0,{willReadFrequently:!0}).context:null}ft.Object.defineProperties(Go.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&In(this,a),this.na=a,this.start.Mc()&&(a===Ud?this.start=Jl:a===$u&&(this.start=lo)),this.end.Mc()&&(a===Ud?this.end=Ll:a===$u&&(this.end=lo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&In(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&In(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&In(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&In(this,a),0>a&&gi(a,">= zero",Go,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&In(this,a),0>a&&gi(a,">= zero",Go,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&In(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&In(this,a),this.cr=a,this.xe=null}}}),Go.prototype.isDark=Go.prototype.Gx,Go.prototype.darkenBy=Go.prototype.Wy,Go.prototype.lightenBy=Go.prototype.Vz,Go.prototype.addColorStop=Go.prototype.addColorStop;var dv=216/24389,mm=24389/27,Eg=[95.047,100,108.883],cv=null,ua=new mp,zu=new mp,Hl=new mp,Pd=new mp,Lg=!1;Go.className="Brush";var mc;Go.Solid=mc=new Bt(Go,"Solid",0);var Ud;Go.Linear=Ud=new Bt(Go,"Linear",1);var $u;Go.Radial=$u=new Bt(Go,"Radial",2);var Mg;Go.Pattern=Mg=new Bt(Go,"Pattern",4);var Ag;Go.Lab=Ag=new Bt(Go,"Lab",5);var nS;Go.HSL=nS=new Bt(Go,"HSL",6),Go.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},Go.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Lg||(hv(),Lg=!0);var y=cv;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)},Go.lighten=function(a){return _y(a)},Go.lightenBy=_y,Go.darken=function(a){return eS(a)},Go.darkenBy=eS,Go.mix=ov,Go.isDark=Cg;function Rs(){this.xa="Base"}Rs.prototype.measure=function(){},Rs.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Rs.prototype.arrange=function(){},Rs.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Rs.prototype.iA=function(a){a.Uj()},Rs.prototype.gc=function(){},ft.Object.defineProperties(Rs.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Kn}}}),Rs.prototype.remeasureObject=Rs.prototype.iA,Rs.prototype.arrangeElement=Rs.prototype.Ly,Rs.prototype.measureElement=Rs.prototype.Yz,Rs.className="PanelLayout";function vm(){this.xa="Base"}Jt(vm,Rs),vm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;a=Xd(a);for(var oe=0;oe<re;oe++){var le=b[oe];if(le.visible||le===a){var ue=le.margin,fe=ue.right+ue.left;ue=ue.top+ue.bottom,le.measure(y,x,z,ee);var ye=le.measuredBounds;fe=Math.max(ye.width+fe,0),ue=Math.max(ye.height+ue,0),ye=le.position.x;var Ce=le.position.y;isFinite(ye)||(ye=0),isFinite(Ce)||(Ce=0),le instanceof Dr&&le.isGeometryPositioned&&(le=le.strokeWidth/2,ye-=le,Ce-=le),To(E,ye,Ce,fe,ue)}}},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 z=y[E],ee=z.measuredBounds,re=z.margin,oe=z.position.x,le=z.position.y;if(oe=isNaN(oe)?-a:oe-a,le=isNaN(le)?-x:le-x,z instanceof Dr&&z.isGeometryPositioned){var ue=z.strokeWidth/2;oe-=ue,le-=ue}z.visible&&z.arrange(oe+re.left,le+re.top,ee.width,ee.height)}};function ym(){this.xa="Base"}Jt(ym,Rs),ym.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;y=un(),z=Xd(a);for(var oe=0;oe<re;oe++){var le=b[oe];if(le.visible||le===z){var ue=tu(le,!1);if(ue!==Dn&&ue!==Bi)y.push(le);else{le.measure(1/0,x,0,ee),ue=le.margin,le=le.measuredBounds;var fe=Math.max(le.height+ue.top+ue.bottom,0);E.width+=Math.max(le.width+ue.right+ue.left,0),E.height=Math.max(E.height,fe)}}}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++)oe=y[a],(oe.visible||oe===z)&&(ue=oe.margin,re=ue.right+ue.left,ue=ue.top+ue.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,ue=Math.max(oe.height+ue,0),E.width+=Math.max(oe.width+re,0),E.height=Math.max(E.height,ue));En(y)},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,ee=a.isOpposite,re=ee?x.width:E.left,oe=0;oe<b;oe++){var le=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,ye=ue.margin,Ce=ye.top+ye.bottom,Le=z+E.bottom,Be=fe.height,$e=tu(ue,!1);(isNaN(ue.desiredSize.height)&&$e===Hn||$e===er)&&(Be=Math.max(x.height-Ce-Le,0)),Ce=Be+Ce+Le,Le=ue.alignment,Le.Xb()&&(Le=a.defaultAlignment),Le.sb()||(Le=lo),ee&&(re-=fe.width+ye.left+ye.right),ue.arrange(re+Le.offsetX+ye.left,le+Le.offsetY+ye.top+(x.height*Le.y-Ce*Le.y),fe.width,Be),ee||(re+=fe.width+ye.left+ye.right)}}};function Sm(){this.xa="Base"}Jt(Sm,Rs),Sm.prototype.measure=function(a,y,x,b,E,z){var ee=b.length;x=un();for(var re=Xd(a),oe=0;oe<ee;oe++){var le=b[oe];if(le.visible||le===re){var ue=tu(le,!1);if(ue!==Dn&&ue!==er)x.push(le);else{var fe=le.margin;ue=fe.right+fe.left,fe=fe.top+fe.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,js(E,Math.max(E.width,Math.max(le.width+ue,0)),E.height+Math.max(le.height+fe,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++)oe=x[a],(oe.visible||oe===re)&&(le=oe.margin,ee=le.right+le.left,le=le.top+le.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,le=Math.max(oe.height+le,0),E.width=Math.max(E.width,Math.max(oe.width+ee,0)),E.height+=le);En(x)}},Sm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,ee=a.isOpposite,re=ee?x.height:E.top,oe=0;oe<b;oe++){var le=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,ye=ue.margin,Ce=ye.left+ye.right,Le=z+E.right,Be=fe.width,$e=tu(ue,!1);(isNaN(ue.desiredSize.width)&&$e===Hn||$e===Bi)&&(Be=Math.max(x.width-Ce-Le,0)),Ce=Be+Ce+Le,Le=ue.alignment,Le.Xb()&&(Le=a.defaultAlignment),Le.sb()||(Le=lo),ee&&(re-=fe.height+ye.bottom+ye.top),ue.arrange(le+Le.offsetX+ye.left+(x.width*Le.x-Ce*Le.x),re+Le.offsetY+ye.top,Be,fe.height),ee||(re+=fe.height+ye.bottom+ye.top)}}};function xm(){this.xa="Base"}Jt(xm,Rs),xm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),le=oe.margin,ue=le.right+le.left,fe=le.top+le.bottom;oe.measure(y,x,z,ee);var ye=oe.measuredBounds;z=ye.width,ee=ye.height;var Ce=Math.max(z+ue,0),Le=Math.max(ee+fe,0),Be=a.isClipping,$e=dn.allocAt(-le.left,-le.top,Ce,Le),Ze=dn.allocAt(0,0,z,ee);fv(oe,Ze,!0),z=Ze.width,ee=Ze.height;for(var rt=!0,st=Xd(a),ct=0;ct<re;ct++){var Lt=b[ct];ye=y;var Xt=x;if(Lt!==oe&&(Lt.visible||Lt===st)){le=Lt.margin;var hi=le.left,bi=le.top;switch(Ce=le.right+le.left,Le=le.top+le.bottom,le=tu(Lt,!1),le){case Hn:ye=z,Xt=ee,bi=hi=Le=Ce=0;break;case Bi:ye=z,hi=Ce=0;break;case er:Xt=ee,bi=Le=0}Lt.measure(ye,Xt,0,0),ye=Lt.measuredBounds,Ce=Math.max(ye.width+Ce,0),Le=Math.max(ye.height+Le,0),le=Lt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=lo);var yi=Lt.alignmentFocus;if(yi.Xb()&&(yi=lo),Xt=null,Lt instanceof Kn&&Lt.$e!==""&&(Xt=Lt.fb(Lt.$e),Xt===Lt&&(Xt=null)),hi=Ze.x-hi,bi=Ze.y-bi,Xt!==null){for(Lt.arrange(0,0,ye.width,ye.height),ye=Xt.actualBounds,ye=Ye.allocAt(ye.x+(yi.x*ye.width-yi.offsetX),ye.y+(yi.y*ye.height-yi.offsetY)),Xt=Xt.panel;Xt!==Lt;)Xt.transform.Ga(ye),Xt=Xt.panel;hi+=le.x*z+le.offsetX-ye.x,bi+=le.y*ee+le.offsetY-ye.y,Ye.free(ye)}else hi+=le.x*z+le.offsetX-(yi.x*ye.width+yi.offsetX),bi+=le.y*ee+le.offsetY-(yi.y*ye.height+yi.offsetY);rt?(rt=!1,E.h(hi,bi,Ce,Le)):To(E,hi,bi,Ce,Le)}}switch(rt?E.assign($e):Be?E.Uu(Ze.x,Ze.y,Ze.width,Ze.height):To(E,$e.x,$e.y,$e.width,$e.height),dn.free($e),dn.free(Ze),le=oe.stretch,le===Er&&(le=tu(oe,!1)),le){case Dn:return;case Hn:if(!isFinite(y)&&!isFinite(x))return;break;case Bi:if(!isFinite(y))return;break;case er:if(!isFinite(x))return}for(ye=oe.measuredBounds,z=ye.width,ee=ye.height,Ce=Math.max(z+ue,0),Le=Math.max(ee+fe,0),le=oe.margin,Ze=dn.allocAt(-le.left,-le.top,Ce,Le),fv(oe,Ze,!0),z=Ze.width,ee=Ze.height,y=0;y<re;y++)x=b[y],x===oe||!x.visible&&x!==st||(le=x.margin,Ce=le.right+le.left,Le=le.top+le.bottom,ye=x.measuredBounds,Ce=Math.max(ye.width+Ce,0),Le=Math.max(ye.height+Le,0),ue=x.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=lo),x=x.alignmentFocus,x.Xb()&&(x=lo),rt?(rt=!1,E.h(ue.x*z+ue.offsetX-(x.x*ye.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*ye.height+x.offsetY)-le.top,Ce,Le)):To(E,ue.x*z+ue.offsetX-(x.x*ye.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*ye.height+x.offsetY)-le.top,Ce,Le));rt?E.assign($e):Be?E.Uu(Ze.x,Ze.y,Ze.width,Ze.height):To(E,$e.x,$e.y,$e.width,$e.height),dn.free(Ze)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var le=z-x.x,ue=oe-x.y;for(E.arrange(le,ue,ee,re),ee=dn.allocAt(0,0,ee,re),fv(E,ee,!1),re=0;re<b;re++){var fe=y[re];if(fe!==E){le=fe.measuredBounds;var ye=le.width,Ce=le.height;ue=fe.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=lo);var Le=fe.alignmentFocus;if(Le.Xb()&&(Le=lo),le=null,fe instanceof Kn&&fe.$e!==""&&(le=fe.fb(fe.$e),le===fe&&(le=null)),le!==null){var Be=le.actualBounds;for(Le=Ye.allocAt(Be.x+(Le.x*Be.width-Le.offsetX),Be.y+(Le.y*Be.height-Le.offsetY)),le=le.panel;le!==fe;)le.transform.Ga(Le),le=le.panel;le=ue.x*ee.width+ue.offsetX-Le.x,ue=ue.y*ee.height+ue.offsetY-Le.y,Ye.free(Le)}else le=ue.x*ee.width+ue.offsetX-(Le.x*ye+Le.offsetX),ue=ue.y*ee.height+ue.offsetY-(Le.y*Ce+Le.offsetY);le+=ee.x-x.x,ue+=ee.y-x.y,fe.visible&&fe.arrange(z+le,oe+ue,ye,Ce)}}dn.free(ee)};function fv(a,y,x){var b=null;if(a instanceof Kn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function wm(){this.xa="Base"}Jt(wm,Rs),wm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length,oe=a.Pb(),le=oe.margin,ue=y,fe=x,ye=le.right+le.left,Ce=le.top+le.bottom;oe.measure(y,x,z,ee),le=oe.measuredBounds;var Le=0,Be=null;oe instanceof Dr&&(Be=oe,Le=Be.strokeWidth*Be.scale);var $e=Math.max(le.width+ye,0);le=Math.max(le.height+Ce,0);var Ze=vv(oe),rt=Ze.x*$e+Ze.offsetX;Ze=Ze.y*le+Ze.offsetY;var st=yv(oe),ct=st.x*$e+st.offsetX;for(st=st.y*le+st.offsetY,isFinite(y)&&(ue=Math.max(Math.abs(rt-ct)-Le,0)),isFinite(x)&&(fe=Math.max(Math.abs(Ze-st)-Le,0)),Le=ei.alloc(),Le.h(0,0),a=Xd(a),st=0;st<re;st++)Ze=b[st],Ze===oe||!Ze.visible&&Ze!==a||(le=Ze.margin,$e=le.right+le.left,rt=le.top+le.bottom,Ze.measure(ue,fe,0,0),le=Ze.measuredBounds,$e=Math.max(le.width+$e,0),le=Math.max(le.height+rt,0),Le.h(Math.max($e,Le.width),Math.max(le,Le.height)));if(re===1)E.width=$e,E.height=le,ei.free(Le);else{switch(Ze=vv(oe),st=yv(oe),re=b=0,st.x!==Ze.x&&st.y!==Ze.y&&(b=Le.width/Math.abs(st.x-Ze.x),re=Le.height/Math.abs(st.y-Ze.y)),ei.free(Le),Le=0,Be!==null&&(Le=Be.strokeWidth*Be.scale,bv(Be)===Ni&&(b=re=Math.max(b,re))),b+=Math.abs(Ze.offsetX)+Math.abs(st.offsetX)+Le,re+=Math.abs(Ze.offsetY)+Math.abs(st.offsetY)+Le,Be=oe.stretch,Be===Er&&(Be=tu(oe,!1)),Be){case Dn:ee=z=0;break;case Hn:isFinite(y)&&(b=y),isFinite(x)&&(re=x);break;case Bi:isFinite(y)&&(b=y),ee=0;break;case er:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(b,re,z,ee),E.width=oe.measuredBounds.width+ye,E.height=oe.measuredBounds.height+Ce}},wm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=dn.alloc();z.h(0,0,1,1);var ee=b.margin,re=ee.left;ee=ee.top;var oe=a.padding,le=oe.left;oe=oe.top,b.arrange(le+re,oe+ee,E.width,E.height);var ue=vv(b),fe=yv(b),ye=ue.y*E.height+ue.offsetY,Ce=fe.x*E.width+fe.offsetX;for(fe=fe.y*E.height+fe.offsetY,z.x=ue.x*E.width+ue.offsetX,z.y=ye,To(z,Ce,fe,0,0),z.x+=re+le,z.y+=ee+oe,E=0;E<x;E++)re=y[E],re!==b&&(le=re.measuredBounds,ee=re.margin,oe=Math.max(le.width+ee.right+ee.left,0),ue=Math.max(le.height+ee.top+ee.bottom,0),ye=re.alignment,ye.Xb()&&(ye=a.defaultAlignment),ye.sb()||(ye=lo),oe=z.width*ye.x+ye.offsetX-oe*ye.x+ee.left+z.x,ee=z.height*ye.y+ye.offsetY-ue*ye.y+ee.top+z.y,re.visible&&(la(z.x,z.y,z.width,z.height,oe,ee,le.width,le.height)?re.arrange(oe,ee,le.width,le.height):re.arrange(oe,ee,le.width,le.height,new dn(z.x,z.y,z.width,z.height))));dn.free(z)};function Pm(){this.xa="Base",this.name="Table"}Jt(Pm,Rs),Pm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,ee=un(),re=un(),oe=0;oe<z;oe++){var le=b[oe],ue=le instanceof Kn?le:null;if(ue!==null&&vc(ue)&&le.visible){re.push(ue);for(var fe=ue.O.s,ye=fe.length,Ce=0;Ce<ye;Ce++){var Le=fe[Ce];ue.type===Kn.TableRow?Le.row=le.row:ue.type===Kn.TableColumn&&(Le.column=le.column),ee.push(Le)}}else ee.push(le)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Be=[],$e=0;$e<z;$e++){var Ze=ee[$e];Ze.visible&&(Fs(Ze,!0),xd(Ze,!0),Be[Ze.row]||(Be[Ze.row]=[]),Be[Ze.row][Ze.column]||(Be[Ze.row][Ze.column]=[]),Be[Ze.row][Ze.column].push(Ze))}En(ee);var rt=un(),st=un(),ct=un(),Lt={count:0},Xt={count:0},hi=y,bi=x,yi=a.rowDefs,Jn=a.colDefs,kn=null;z=yi.length;for(var Cr=0;Cr<z;Cr++)kn=yi[Cr],kn!==void 0&&(kn.actual=0);z=Jn.length;for(var fr=0;fr<z;fr++)kn=Jn[fr],kn!==void 0&&(kn.actual=0);for(var Do=Be.length,ra=0,Ks=0;Ks<Do;Ks++)Be[Ks]&&(ra=Math.max(ra,Be[Ks].length));var qs=Math.min(a.topIndex,Do-1),Fl=Math.min(a.leftIndex,ra-1),Vs=0;Do=Be.length;for(var Mc=Xd(a),ms=0;ms<Do;ms++)if(Be[ms]){ra=Be[ms].length;var Xh=a.Fb(ms);Xh.actual=0;for(var Nl=Xh.oc=0;Nl<ra;Nl++)if(Be[ms][Nl]){var Ac=a.Eb(Nl);rt[Nl]===void 0&&(Ac.actual=0,Ac.oc=0,rt[Nl]=!0);for(var Wu=Be[ms][Nl],mh=Wu.length,ku=0;ku<mh;ku++){var vu=Wu[ku];if(vu.visible||vu===Mc){var rf=1<vu.rowSpan||1<vu.columnSpan;rf&&(ms<qs||Nl<Fl||st.push(vu));var Jh=vu.margin,$g=Jh.right+Jh.left,Fu=Jh.top+Jh.bottom,Tl=Gh(vu,Xh,Ac,!1),im=vu.desiredSize,dg=!isNaN(im.height),hd=!isNaN(im.width)&&dg;if(rf||Tl===Dn||hd||ms<qs||Nl<Fl||(Lt[Nl]!==void 0||Tl!==Hn&&Tl!==Bi||(Lt[Nl]=-1,Lt.count++),Xt[ms]!==void 0||Tl!==Hn&&Tl!==er||(Xt[ms]=-1,Xt.count++),ct.push(vu)),vu.measure(1/0,1/0,0,0),!(ms<qs||Nl<Fl)){var yu=vu.measuredBounds,Bf=Math.max(yu.width+$g,0),Nu=Math.max(yu.height+Fu,0);if(vu.rowSpan===1&&(Tl===Dn||Tl===Bi)){kn=a.Fb(ms);var of=kn.Wc();Vs=Math.max(Nu-kn.actual,0),Vs+of>bi&&(Vs=Math.max(bi-of,0));var V0=kn.oa===0;kn.oc=kn.oc+Vs,kn.actual=kn.oa+Vs,bi=Math.max(bi-(Vs+(V0?of:0)),0)}if(vu.columnSpan===1&&(Tl===Dn||Tl===er)){kn=a.Eb(Nl);var rm=kn.Wc();Vs=Math.max(Bf-kn.actual,0),Vs+rm>hi&&(Vs=Math.max(hi-rm,0));var Hy=kn.oa===0;kn.oc=kn.oc+Vs,kn.actual=kn.oa+Vs,hi=Math.max(hi-(Vs+(Hy?rm:0)),0)}rf&&vu.Uj()}}}}}En(rt);var Nd=0,$d=0;z=a.columnCount;for(var cg=0;cg<z;cg++){var af=Jn[cg];af!==void 0&&(Nd+=isNaN(af.Hc)?af.oc:af.Hc,af.oc!==0&&(Nd+=af.Wc()))}z=a.rowCount;for(var qg=0;qg<z;qg++){var sf=yi[qg];sf!==void 0&&($d+=isNaN(sf.Hc)?sf.oc:sf.Hc,sf.oc!==0&&($d+=sf.Wc()))}hi=Math.max(y-Nd,0);var Td=bi=Math.max(x-$d,0),kc=hi;z=ct.length;for(var Su=0;Su<z;Su++){var dd=ct[Su],Y0=a.Fb(dd.row),qd=a.Eb(dd.column),_g=dd.measuredBounds,Qh=dd.margin,Of=Qh.right+Qh.left,cd=Qh.top+Qh.bottom;Lt[dd.column]=qd.oc===0&&Lt[dd.column]!==void 0?Math.max(_g.width+Of,Lt[dd.column]):null,Xt[dd.row]=Y0.oc===0&&Xt[dd.row]!==void 0?Math.max(_g.height+cd,Xt[dd.row]):null}var fg=0,ep=0,Th;for(Th in Xt)Th!=="count"&&(fg+=Xt[Th]);for(Th in Lt)Th!=="count"&&(ep+=Lt[Th]);for(var al=ei.alloc(),om=0;om<z;om++){var Ul=ct[om];if(Ul.visible||Ul===Mc){var vs=a.Fb(Ul.row),Xl=a.Eb(Ul.column),_d=0;isFinite(Xl.width)?_d=Xl.width:(isFinite(hi)&&Lt[Ul.column]!==null?ep===0?_d=Xl.actual+hi:_d=Lt[Ul.column]/ep*kc:Lt[Ul.column]!==null?_d=hi:_d=Xl.actual||hi,_d=Math.max(0,_d-Xl.Wc()));var Fc=0;switch(isFinite(vs.height)?Fc=vs.height:(isFinite(bi)&&Xt[Ul.row]!==null?fg===0?Fc=vs.actual+bi:Fc=Xt[Ul.row]/fg*Td:Xt[Ul.row]!==null?Fc=bi:Fc=vs.actual||bi,Fc=Math.max(0,Fc-vs.Wc())),al.h(Math.max(Xl.minimum,Math.min(_d,Xl.maximum)),Math.max(vs.minimum,Math.min(Fc,vs.maximum))),Tl=Gh(Ul,vs,Xl,!1),Tl){case Bi:al.height=Math.max(al.height,vs.actual+bi);break;case er:al.width=Math.max(al.width,Xl.actual+hi)}var If=Ul.margin,Wy=If.right+If.left,U0=If.top+If.bottom;Ul.Uj(),Ul.measure(al.width,al.height,Xl.minimum,vs.minimum);var tp=Ul.measuredBounds,Rf=Math.max(tp.width+Wy,0),gg=Math.max(tp.height+U0,0);isFinite(hi)&&(Rf=Math.min(Rf,al.width)),isFinite(bi)&&(gg=Math.min(gg,al.height));var xu=0;xu=vs.actual,vs.actual=Math.max(vs.actual,gg),vs.oc=Math.max(vs.oc,gg),Vs=vs.actual-xu,bi=Math.max(bi-Vs,0),Xt[Ul.row]===null&&(Td=Math.max(Td-Vs,0)),xu=Xl.actual,Xl.actual=Math.max(Xl.actual,Rf),Xl.oc=Math.max(Xl.oc,Rf),Vs=Xl.actual-xu,hi=Math.max(hi-Vs,0),Lt[Ul.column]===null&&(kc=Math.max(kc-Vs,0))}}En(ct);var ec=ei.alloc(),$h=un(),nh=un();if(z=st.length,z!==0){for(var lf=0;lf<Do;lf++)if(Be[lf]){ra=Be[lf].length;var np=a.Fb(lf);$h[lf]=np.actual;for(var uf=0;uf<ra;uf++)if(Be[lf][uf]){var X0=a.Eb(uf);nh[uf]=X0.actual}}}for(var ip=0;ip<z;ip++){var rs=st[ip];if(rs.visible||rs===Mc){var Dh=a.Fb(rs.row),vh=a.Eb(rs.column);switch(al.h(Math.max(vh.minimum,Math.min(y,vh.maximum)),Math.max(Dh.minimum,Math.min(x,Dh.maximum))),Tl=Gh(rs,Dh,vh,!1),Tl){case Hn:nh[vh.index]!==0&&(al.width=Math.min(al.width,nh[vh.index])),$h[Dh.index]!==0&&(al.height=Math.min(al.height,$h[Dh.index]));break;case Bi:nh[vh.index]!==0&&(al.width=Math.min(al.width,nh[vh.index]));break;case er:$h[Dh.index]!==0&&(al.height=Math.min(al.height,$h[Dh.index]))}isFinite(vh.width)&&(al.width=vh.width),isFinite(Dh.height)&&(al.height=Dh.height),ec.h(0,0);for(var J0=vh.minimum,Tu=Dh.minimum,Nc=1;Nc<rs.rowSpan&&!(rs.row+Nc>=a.rowCount);Nc++)kn=a.Fb(rs.row+Nc),Vs=0,Vs=Tl===Hn||Tl===er?Math.max(kn.minimum,$h[rs.row+Nc]===0?kn.maximum:Math.min($h[rs.row+Nc],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),ec.height+=Vs,Tu+=kn.minimum;for(var yh=1;yh<rs.columnSpan&&!(rs.column+yh>=a.columnCount);yh++)kn=a.Eb(rs.column+yh),Vs=0,Vs=Tl===Hn||Tl===Bi?Math.max(kn.minimum,nh[rs.column+yh]===0?kn.maximum:Math.min(nh[rs.column+yh],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),ec.width+=Vs,J0+=kn.minimum;al.width+=ec.width,al.height+=ec.height;var rp=rs.margin,hf=rp.right+rp.left,am=rp.top+rp.bottom;rs.measure(al.width,al.height,J0,Tu);for(var op=rs.measuredBounds,fd=Math.max(op.width+hf,0),zf=Math.max(op.height+am,0),df=0,ap=0;ap<rs.rowSpan&&!(rs.row+ap>=a.rowCount);ap++)kn=a.Fb(rs.row+ap),df+=kn.total||0;if(df<zf){var Tc=zf-df,Dd=zf-df;if(rs.spanAllocation!==null)for(var Dc=rs.spanAllocation,tc=0;tc<rs.rowSpan&&!(0>=Tc)&&!(rs.row+tc>=a.rowCount);tc++){kn=a.Fb(rs.row+tc);var Bc=kn.oa||0,jf=Dc(rs,kn,Dd);kn.actual=Math.min(kn.maximum,Bc+jf),kn.oa!==Bc&&(Tc-=kn.oa-Bc)}for(;0<Tc;){var qh=kn.oa||0;if(isNaN(kn.height)&&kn.maximum>qh&&(kn.actual=Math.min(kn.maximum,qh+Tc),kn.oa!==qh&&(Tc-=kn.oa-qh)),kn.index===0)break;kn=a.Fb(kn.index-1)}}for(var pg=0,Oc=0;Oc<rs.columnSpan&&!(rs.column+Oc>=a.columnCount);Oc++)kn=a.Eb(rs.column+Oc),pg+=kn.total||0;if(pg<fd){var mg=fd-pg,Zy=fd-pg;if(rs.spanAllocation!==null)for(var nc=rs.spanAllocation,Hf=0;Hf<rs.columnSpan&&!(0>=mg)&&!(rs.column+Hf>=a.columnCount);Hf++){kn=a.Eb(rs.column+Hf);var sm=kn.oa||0,Gy=nc(rs,kn,Zy);kn.actual=Math.min(kn.maximum,sm+Gy),kn.oa!==sm&&(mg-=kn.oa-sm)}for(;0<mg;){var Q0=kn.oa||0;if(isNaN(kn.width)&&kn.maximum>Q0&&(kn.actual=Math.min(kn.maximum,Q0+mg),kn.oa!==Q0&&(mg-=kn.oa-Q0)),kn.index===0)break;kn=a.Eb(kn.index-1)}}}}En(st),ei.free(ec),ei.free(al),$h!==void 0&&En($h),nh!==void 0&&En(nh);var vg=0,yg=0,$0=a.desiredSize,gx=a.maxSize;Tl=tu(a,!0);var lm=$d=Nd=0,um=0;z=a.columnCount;for(var q0=0;q0<z;q0++)Jn[q0]!==void 0&&(kn=a.Eb(q0),isFinite(kn.width)?(lm+=kn.width,lm+=kn.Wc()):Tm(kn)===xp?(lm+=kn.oa,lm+=kn.Wc()):kn.oa!==0&&(Nd+=kn.oa,Nd+=kn.Wc()));isFinite($0.width)?vg=Math.min($0.width,gx.width):vg=Tl!==Dn&&isFinite(y)?y:Nd,vg=Math.max(vg,a.minSize.width),vg=Math.max(vg-lm,0);for(var $x=Nd===0?1:Math.max(vg/Nd,1),_0=0;_0<z;_0++)Jn[_0]!==void 0&&(kn=a.Eb(_0),isFinite(kn.width)||Tm(kn)===xp||(kn.actual=kn.oa*$x),kn.position=E.width,kn.oa!==0&&(E.width+=kn.oa,E.width+=kn.Wc()));z=a.rowCount;for(var ev=0;ev<z;ev++)yi[ev]!==void 0&&(kn=a.Fb(ev),isFinite(kn.height)?(um+=kn.height,um+=kn.Wc()):Tm(kn)===xp?(um+=kn.oa,um+=kn.Wc()):kn.oa!==0&&($d+=kn.oa,$d+=kn.Wc()));isFinite($0.height)?yg=Math.min($0.height,gx.height):yg=Tl!==Dn&&isFinite(x)?x:$d,yg=Math.max(yg,a.minSize.height),yg=Math.max(yg-um,0);for(var qx=$d===0?1:Math.max(yg/$d,1),tv=0;tv<z;tv++)yi[tv]!==void 0&&(kn=a.Fb(tv),isFinite(kn.height)||Tm(kn)===xp||(kn.actual=kn.oa*qx),kn.position=E.height,kn.oa!==0&&(E.height+=kn.oa,E.height+=kn.Wc()));z=re.length;for(var Ky=0;Ky<z;Ky++){var hm=re[Ky],Vy=0,Yy=0;hm.type===Kn.TableRow?(Vy=E.width,kn=a.Fb(hm.row),Yy=kn.actual):(kn=a.Eb(hm.column),Vy=kn.actual,Yy=E.height),hm.measuredBounds.h(0,0,Vy,Yy),Fs(hm,!1)}En(re),a.inRowsCols=Be},Pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,le=ee.length,ue=0,fe=0;fe<le;fe++)ee[fe]&&(ue=Math.max(ue,ee[fe].length));oe=a.rowDefs,re=a.colDefs;var ye=fe=0,Ce=Math.min(a.topIndex,le-1);if(0<oe.length){for(;Ce!==le&&(oe[Ce]===void 0||oe[Ce].oa===0);)Ce++;Ce=Math.max(Math.min(Ce,le-1),0),fe=-oe[Ce].position}var Le=Math.min(a.leftIndex,ue-1);if(0<re.length){for(;Le!==ue&&(re[Le]===void 0||re[Le].oa===0);)Le++;Le=Math.max(Math.min(Le,ue-1),0),ye=-re[Le].position}for(var Be=0,$e=0;Be!==le&&oe[Be]===void 0;)Be++;for(;$e!==le&&re[$e]===void 0;)$e++;ue=a.part,a.Fb(Be),a.Eb($e);for(var Ze=0;Ze<y.length;Ze++){var rt=y[Ze];if(rt instanceof Kn&&rt.visible&&vc(rt)){if(rt.type===Kn.TableRow){re=a.Fb(rt.row);var st=a.Eb($e)}else re=a.Fb(Be),st=a.Eb(rt.column);oe=re.position+fe+E,re.oa!==0&&(oe+=re.Io(Math.max(Be,Ce))),re=st.position+ye+z,st.oa!==0&&(re+=st.Io(Math.max($e,Le))),st=rt.measuredBounds,rt.Uk(),rt.actualBounds.ka();var ct=rt.actualBounds,Lt=dn.allocAt(ct.x,ct.y,ct.width,ct.height);ct.x=rt.type===Kn.TableRow?z:re,ct.y=rt.type===Kn.TableColumn?E:oe,ct.width=st.width,ct.height=st.height,rt.actualBounds.freeze(),xd(rt,!1),No(Lt,ct)||ue===null||(ue.oh(),rt.Pn(ue)),dn.free(Lt)}}for(Ze=ei.alloc(),rt=0;rt<le;rt++)if(ee[rt]){for(ue=ee[rt].length,st=a.Fb(rt),oe=st.position+fe+E,st.oa!==0&&(oe+=st.Io(Math.max(Be,Ce))),ct=0;ct<ue;ct++)if(ee[rt][ct]){Lt=a.Eb(ct),re=Lt.position+ye+z,Lt.oa!==0&&(re+=Lt.Io(Math.max($e,Le)));for(var Xt=ee[rt][ct],hi=Xt.length,bi=0;bi<hi;bi++){var yi=Xt[bi],Jn=yi.measuredBounds;Ze.h(0,0);for(var kn=1;kn<yi.rowSpan&&!(rt+kn>=a.rowCount);kn++){var Cr=a.Fb(rt+kn);Cr.oa!==0&&(Ze.height+=Cr.total)}for(kn=1;kn<yi.columnSpan&&!(ct+kn>=a.columnCount);kn++)Cr=a.Eb(ct+kn),Cr.oa!==0&&(Ze.width+=Cr.total);var fr=Lt.oa+Ze.width,Do=st.oa+Ze.height;kn=re,Cr=oe;var ra=fr,Ks=Do,qs=re,Fl=oe,Vs=fr,Mc=Do;re+fr>x.width&&(Vs=Math.max(x.width-re,0)),oe+Do>x.height&&(Mc=Math.max(x.height-oe,0));var ms=yi.alignment;if(ms.Xb()){ms=a.defaultAlignment,ms.sb()||(ms=lo);var Xh=ms.x,Nl=ms.y,Ac=ms.offsetX;ms=ms.offsetY;var Wu=Lt.alignment,mh=st.alignment;Wu.sb()&&(Xh=Wu.x,Ac=Wu.offsetX),mh.sb()&&(Nl=mh.y,ms=mh.offsetY)}else Xh=ms.x,Nl=ms.y,Ac=ms.offsetX,ms=ms.offsetY;(isNaN(Xh)||isNaN(Nl))&&(Nl=Xh=.5,ms=Ac=0),Wu=Jn.width,mh=Jn.height;var ku=yi.margin,vu=ku.left+ku.right,rf=ku.top+ku.bottom,Jh=Gh(yi,st,Lt,!1);!isNaN(yi.desiredSize.width)||Jh!==Hn&&Jh!==Bi||(Wu=Math.max(fr-vu,0)),!isNaN(yi.desiredSize.height)||Jh!==Hn&&Jh!==er||(mh=Math.max(Do-rf,0)),fr=yi.maxSize,Do=yi.minSize,Wu=Math.min(fr.width,Wu),mh=Math.min(fr.height,mh),Wu=Math.max(Do.width,Wu),mh=Math.max(Do.height,mh),fr=mh+rf,kn+=ra*Xh-(Wu+vu)*Xh+Ac+ku.left,Cr+=Ks*Nl-fr*Nl+ms+ku.top,yi.visible&&(la(qs,Fl,Vs,Mc,kn,Cr,Jn.width,Jn.height)?yi.arrange(kn,Cr,Wu,mh):yi.arrange(kn,Cr,Wu,mh,new dn(qs,Fl,Vs,Mc)))}}}for(ei.free(Ze),a=0;a<b;a++)x=y[a],z=x instanceof Kn?x:null,z!==null&&vc(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Cm(){this.xa="Base"}Jt(Cm,Rs),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function bm(){this.xa="Base"}Jt(bm,Rs),bm.prototype.measure=function(){},bm.prototype.arrange=function(){};function Em(){this.xa="Base"}Jt(Em,Rs),Em.prototype.measure=function(a,y,x,b,E,z,ee){1<b.length&&bt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,ee);var re=b.measuredBounds,oe=b.margin,le=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var ue=b.scale,fe=re.width;re=re.height;var ye=Math.max(y-le,0),Ce=Math.max(x-oe,0),Le=1;a.viewboxStretch===Ni?fe!==0&&re!==0&&(Le=Math.min(ye/fe,Ce/re)):fe!==0&&re!==0&&(Le=Math.max(ye/fe,Ce/re)),Le===0&&(Le=1e-4),b.Ca*=Le,ue!==b.scale&&(Fs(b,!0),b.measure(1/0,1/0,z,ee))}re=b.measuredBounds,E.width=isFinite(y)?y:Math.max(re.width+le,0),E.height=isFinite(x)?x:Math.max(re.height+oe,0)},Em.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=lo),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-E*ee.y+ee.offsetY,b.width,b.height)};function vp(){this.xa="Base"}Jt(vp,Rs),vp.prototype.measure=function(){},vp.prototype.arrange=function(){},vp.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 z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,le=Math.ceil(re/E),ue=Math.ceil(oe/b),fe=a.gridOrigin,ye=fe.x;fe=fe.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Ce=[],Le=a.O.s,Be=Le.length,$e=0;$e<Be;$e++){var Ze=Le[$e],rt=[];if(Ce.push(rt),Ze.visible){var st=Ze.interval;if(!(0>st)){Ze=pv(Ze.figure);for(var ct=0;ct<Be;ct++)if(ct!==$e){var Lt=Le[ct];Lt.visible&&pv(Lt.figure)===Ze&&(Lt=Lt.interval,Lt>st&&rt.push(Lt))}}}}for(Le=a.O.s,Be=Le.length,$e=0;$e<Be;$e++){var Xt=Le[$e];if(Xt.visible&&(rt=Xt.interval||1,Ze=Math.abs(rt),!(2>E*Ze*x))){if(st=Xt.segmentIndex,(!isFinite(st)||isNaN(st))&&(st=0),0>st&&(st=Ze-Math.min(-st,Ze)),st=Math.round(st%Ze),Ze=Xt.opacity,ct=1,Ze!==1){if(Ze===0)continue;ct=y.globalAlpha,y.globalAlpha=ct*Ze}Lt=Ce[$e];var hi=!1,bi=Xt.strokeDashArray;if(bi!==null&&(hi=!0,y.js(bi,Xt.strokeDashOffset)),Xt.figure==="LineV"&&Xt.stroke!==null&&0<Xt.strokeWidth){for(y.lineWidth=Xt.strokeWidth,qa(a,y,Xt.stroke,!1,!1,z,ee),y.beginPath(),bi=Xt=Math.floor((ye-E)/E);bi<=Xt+le;bi++){var yi=bi*E+ye;0<=yi&&yi<=re&&Lm(bi,rt,st,Lt)&&(y.moveTo(yi,0),y.lineTo(yi,oe))}y.stroke(),y.Se()}else if(Xt.figure==="LineH"&&Xt.stroke!==null&&0<Xt.strokeWidth){for(y.lineWidth=Xt.strokeWidth,qa(a,y,Xt.stroke,!1,!1,z,ee),y.beginPath(),bi=Xt=Math.floor((fe-b)/b);bi<=Xt+ue;bi++)yi=bi*b+fe,0<=yi&&yi<=oe&&Lm(bi,rt,st,Lt)&&(y.moveTo(0,yi),y.lineTo(re,yi));y.stroke(),y.Se()}else if(Xt.figure==="BarV"&&Xt.fill!==null)for(qa(a,y,Xt.fill,!0,!1,z,ee),Xt=Xt.width,isNaN(Xt)&&(Xt=E),yi=bi=Math.floor((ye-E)/E);yi<=bi+le;yi++){var Jn=yi*E+ye;0<=Jn+Xt&&Jn<=re&&Lm(yi,rt,st,Lt)&&y.fillRect(Jn,0,Xt,oe)}else if(Xt.figure==="BarH"&&Xt.fill!==null)for(qa(a,y,Xt.fill,!0,!1,z,ee),Xt=Xt.height,isNaN(Xt)&&(Xt=b),yi=bi=Math.floor((fe-b)/b);yi<=bi+ue;yi++)Jn=yi*b+fe,0<=Jn+Xt&&Jn<=oe&&Lm(yi,rt,st,Lt)&&y.fillRect(0,Jn,re,Xt);hi&&y.fs(),Ze!==1&&(y.globalAlpha=ct)}}y.restore(),y.Vc(!1)};function Lm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Mm(){this.xa="Base"}Jt(Mm,Rs),Mm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Ao||a instanceof qn){var ee=null,re=null;if(a instanceof qn&&(ee=a),a instanceof Ao&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof qn){var oe=ee;if(z===0)js(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof Ao?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ue=oe.points,fe=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var ye=y.height,Ce=a.j;if(Ce.length=0,le!==null){iS(a,re,ye,le);var Le=le.measuredBounds;x.ed(Le),Ce.push(Le)}Le=Mr.alloc();for(var Be=Ye.alloc(),$e=Ye.alloc(),Ze=0;Ze<z;Ze++){var rt=b[Ze];if(rt!==le)if(rt.isPanelMain&&rt instanceof Dr){iS(a,re,ye,rt);var st=rt.measuredBounds;x.ed(st),Ce.push(st)}else if(2>fe)rt.measure(1/0,1/0,0,0),st=rt.measuredBounds,x.ed(st),Ce.push(st);else{var ct=rt.segmentIndex,Lt=rt.segmentFraction,Xt=rt.alignmentFocus;Xt.Mc()&&(Xt=lo);var hi=rt.segmentOrientation,bi=rt.segmentOffset;if(isNaN(ct)){var yi=oe.ua;st=un(),yi.Qu(Lt,st);var Jn=Ye.allocAt(st[0],st[1]);if(Jn.add(oe.i(0)),yi.type===ti.j?Jn.offset(-yi.startX,-yi.startY):(yi=yi.figures.first(),yi!==null&&Jn.offset(-yi.startX,-yi.startY)),yi=st[2],hi!==Zl){var kn=oe.computeAngle(rt,hi,yi);rt.Kb=kn}kn=Jn.x-y.x;var Cr=Jn.y-y.y;Ye.free(Jn),En(st)}else if(ct<-fe||ct>=fe)st=Ye.alloc(),oe.vg(),oe.computeMidPoint(st),yi=oe.midAngle,hi!==Zl&&(kn=oe.computeAngle(rt,hi,yi),rt.Kb=kn),kn=st.x-y.x,Cr=st.y-y.y,Ye.free(st);else{if(kn=0,0<=ct?(Cr=ue.M(ct),st=ct<fe-1?ue.M(ct+1):Cr):(kn=fe+ct,Cr=ue.M(kn),st=0<kn?ue.M(kn-1):Cr),Cr.Xa(st)){0<=ct?(yi=0<ct?ue.M(ct-1):Cr,kn=ct<fe-2?ue.M(ct+2):st):(yi=kn<fe-1?ue.M(kn+1):Cr,kn=1<kn?ue.M(kn-2):st),Jn=yi.Bf(Cr);var fr=st.Bf(kn);yi=Jn>fr+10?0<=ct?yi.ab(Cr):Cr.ab(yi):fr>Jn+10?0<=ct?st.ab(kn):kn.ab(st):0<=ct?yi.ab(kn):kn.ab(yi)}else yi=0<=ct?Cr.ab(st):st.ab(Cr);hi!==Zl&&(kn=oe.computeAngle(rt,hi,yi),rt.Kb=kn),kn=Cr.x+(st.x-Cr.x)*Lt-y.x,Cr=Cr.y+(st.y-Cr.y)*Lt-y.y}rt.measure(1/0,1/0,0,0),st=rt.measuredBounds,Jn=rt.naturalBounds;var Do=0;rt instanceof Dr&&(Do=rt.strokeWidth),fr=Jn.width+Do;var ra=Jn.height+Do;Le.reset(),Le.translate(-st.x,-st.y),Le.scale(rt.scale,rt.scale),Le.rotate(hi===Zl?rt.angle:yi,fr/2,ra/2),hi!==Fp&&hi!==Tp||Le.rotate(90,fr/2,ra/2),hi!==Np&&hi!==Dp||Le.rotate(-90,fr/2,ra/2),hi===i0&&(45<yi&&135>yi||225<yi&&315>yi)&&Le.rotate(-yi,fr/2,ra/2),Jn=new dn(0,0,fr,ra),Be.xi(Jn,Xt),Le.Ga(Be),Xt=-Be.x+Do/2*rt.scale,rt=-Be.y+Do/2*rt.scale,$e.assign(bi),Do=isNaN(bi.x);var Ks=isNaN(bi.y);if(Do||Ks){fr=fr/2+3,ra=ra/2+3;var qs=45<=yi&&135>=yi,Fl=225<=yi&&315>=yi;hi===Zl&&(qs||Fl)?($e.x=Ks?fr:bi.y,$e.y=Do?ra:bi.x,qs?0<=ct||isNaN(ct)&&.5>Lt||!Do||($e.y=-ra):Fl&&((0<=ct||isNaN(ct)&&.5>Lt)&&Do&&($e.y=-ra),Ks&&($e.x=-fr))):(Do&&($e.x=0<=ct||isNaN(ct)&&.5>Lt?fr:-fr),Ks&&($e.y=-ra),$e.rotate(yi))}else $e.rotate(yi);kn+=$e.x,Cr+=$e.y,Jn.set(st),Jn.h(kn+Xt,Cr+rt,st.width,st.height),Ce.push(Jn),x.ed(Jn)}}if(ee!==null)for(b=ee.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),js(E,x.width||0,x.height||0),Mr.free(Le),Ye.free(Be),Ye.free($e)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ao||a instanceof qn){var b=a,E=null;a instanceof Ao&&(E=a,b=E.adornedPart);var z=a instanceof Ao?null:b.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var le=y[oe];if(le!==z&&re<ee.length){var ue=ee[re];re++,le.arrange(ue.x-a.jg.x,ue.y-a.jg.y,ue.width,ue.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof qn)for(z=a.labelNodes;z.next();){var fe=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var ye=ee.alignmentFocus;if(le=ee.segmentOrientation,ue=ee.segmentOffset,isNaN(re)){var Ce=fe.ua,Le=un();Ce.Qu(oe,Le);var Be=Ye.allocAt(Le[0],Le[1]);Be.add(fe.i(0)),Ce.type===ti.j||(Ce=Ce.figures.first()),Be.offset(-Ce.startX,-Ce.startY),Ce=Le[2],le!==Zl&&(fe=fe.computeAngle(ee,le,Ce),ee.angle=fe),fe=Be.x;var $e=Be.y;Ye.free(Be),En(Le)}else if(re<-x||re>=x)Le=Ye.alloc(),Ce=fe,$e=Le,Ce.vg(),Ce.computeMidPoint($e),Ce=fe.midAngle,le!==Zl&&(fe=fe.computeAngle(ee,le,Ce),ee.angle=fe),fe=Le.x,$e=Le.y,Ye.free(Le);else{if(Be=0,0<=re?(Le=y.s[re],$e=re<x-1?y.s[re+1]:Le):(Be=x+re,Le=y.s[Be],$e=0<Be?y.s[Be-1]:Le),Le.Xa($e)){0<=re?(Ce=0<re?y.s[re-1]:Le,Be=re<x-2?y.s[re+2]:$e):(Ce=Be<x-1?y.s[Be+1]:Le,Be=1<Be?y.s[Be-2]:$e);var Ze=Ce.Bf(Le),rt=$e.Bf(Be);Ce=Ze>rt+10?0<=re?Ce.ab(Le):Le.ab(Ce):rt>Ze+10?0<=re?$e.ab(Be):Be.ab($e):0<=re?Ce.ab(Be):Be.ab(Ce)}else Ce=0<=re?Le.ab($e):$e.ab(Le);le!==Zl&&(fe=fe.computeAngle(ee,le,Ce),ee.angle=fe),fe=Le.x+($e.x-Le.x)*oe,$e=Le.y+($e.y-Le.y)*oe}if(ye.ys())ee.location=new Ye(fe,$e);else{ye.Mc()&&(ye=lo),Le=Mr.alloc(),Le.reset(),Le.scale(ee.scale,ee.scale),Le.rotate(ee.angle,0,0);var st=ee.naturalBounds;Be=dn.allocAt(0,0,st.width,st.height),Ze=Ye.alloc(),Ze.xi(Be,ye),Le.Ga(Ze),ye=-Ze.x,rt=-Ze.y;var ct=st.width,Lt=st.height;st=Ye.alloc(),st.assign(ue);var Xt=isNaN(ue.x),hi=isNaN(ue.y);if(Xt||hi){ct=ct/2+3,Lt=Lt/2+3;var bi=45<=Ce&&135>=Ce,yi=225<=Ce&&315>=Ce;le===Zl&&(bi||yi)?(st.x=hi?ct:ue.y,st.y=Xt?Lt:ue.x,bi?0<=re||isNaN(re)&&.5>oe||!Xt||(st.y=-Lt):yi&&((0<=re||isNaN(re)&&.5>oe)&&Xt&&(st.y=-Lt),hi&&(st.x=-ct))):(Xt&&(st.x=0<=re||isNaN(re)&&.5>oe?ct:-ct),hi&&(st.y=-Lt),st.rotate(Ce))}else st.rotate(Ce);fe+=st.x,$e+=st.y,Le.pp(Be),ye+=Be.x,rt+=Be.y,re=Ye.allocAt(fe+ye,$e+rt),ee.move(re),Ye.free(re),Ye.free(st),Ye.free(Ze),dn.free(Be),Mr.free(Le)}}E!==null?E.Ul(!1):b.Ul(!1),b=TS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Ye.free(b)}};function iS(a,y,x,b){if(Ru(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ao&&a.type===Kn.Link&&a.adornedObject instanceof Dr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof qn&&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 Ao&&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),Fs(b,!1)}}function yp(){this.xa="Base"}Jt(yp,Rs),yp.prototype.measure=function(a,y,x,b,E,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,le=oe.right+oe.left,ue=oe.top+oe.bottom;re.measure(y,x,z,ee);var fe=re.measuredBounds,ye=new dn(-oe.left,-oe.top,Math.max(fe.width+le,0),Math.max(fe.height+ue,0));a.graduatedBounds.push(ye),E.assign(ye);for(var Ce=re.geometry,Le=re.strokeWidth,Be=Ce.flattenedSegments,$e=Ce.flattenedLengths,Ze=Ce.flattenedTotalLength,rt=Be.length,st=0,ct=0,Lt=un(),Xt=0;Xt<rt;Xt++){var hi=Be[Xt],bi=[];ct=st=0;for(var yi=hi.length,Jn=0;Jn<yi;Jn+=2){var kn=hi[Jn],Cr=hi[Jn+1];if(Jn!==0){var fr=180*Math.atan2(Cr-ct,kn-st)/Math.PI;0>fr&&(fr+=360),bi.push(fr)}st=kn,ct=Cr}Lt.push(bi)}if(a.graduatedIntervals===null){for(var Do=[],ra=a.O.s,Ks=ra.length,qs=0;qs<Ks;qs++){var Fl=ra[qs],Vs=[];if(Do.push(Vs),Fl.visible){var Mc=Fl.interval;if(!(0>Mc)){for(var ms=0;ms<Ks;ms++)if(ms!==qs){var Xh=ra[ms];if(Xh.visible&&Fl.constructor===Xh.constructor){var Nl=Xh.interval;Nl>Mc&&Vs.push(Nl)}}}}}a.graduatedIntervals=Do}var Ac=a.graduatedIntervals,Wu=a.O.s,mh=Wu.length,ku=0,vu=0,rf=Ze;a.graduatedMarks=[];for(var Jh,$g=0;$g<mh;$g++){var Fu=Wu[$g];if(Jh=[],Fu.visible&&Fu!==re){var Tl=Math.abs(Fu.interval),im=a.graduatedTickUnit;if(!(2>im*Tl*Ze/a.graduatedRange&&Fu.graduatedSkip===null)){var dg=$e[0][0],hd=0,yu=0;vu=Ze*Fu.graduatedStart-1e-4,rf=Ze*Fu.graduatedEnd+1e-4;var Bf=im*Tl,Nu=a.graduatedTickBase;if(Nu<a.graduatedMin){var of=(a.graduatedMin-Nu)/Bf;of=of%1===0?of:Math.floor(of+1),Nu+=of*Bf}else Nu>a.graduatedMin+Bf&&(Nu-=Math.floor((Nu-a.graduatedMin)/Bf)*Bf);for(var V0=Ac[$g],rm=Nu,Hy=1e-6*a.graduatedMax,Nd=1;Nu<=a.graduatedMax+Hy;Nd++){e:{for(var $d=V0.length,cg=0;cg<$d;cg++){var af=(Nu-a.graduatedTickBase)%(V0[cg]*a.graduatedTickUnit),qg=1e-6*a.graduatedTickUnit;if(af<qg&&af>-qg){var sf=!1;break e}}sf=!0}if(sf&&(Nu>a.graduatedMax&&(Nu=a.graduatedMax),Fu.graduatedSkip===null||Fu instanceof aa&&!Fu.graduatedSkip(Nu,Fu)||Fu instanceof Dr&&!Fu.graduatedSkip(Nu,Fu))&&(ku=(Nu-a.graduatedMin)*Ze/a.graduatedRange,ku>Ze&&(ku=Ze),vu<=ku&&ku<=rf)){for(var Td=Lt[hd][yu],kc=$e[hd][yu];hd<$e.length;){for(;ku>dg&&yu<$e[hd].length-1;)yu++,Td=Lt[hd][yu],kc=$e[hd][yu],dg+=kc;if(ku<=dg)break;hd++,yu=0,Td=Lt[hd][yu],kc=$e[hd][yu],dg+=kc}var Su=Be[hd],dd=Su[2*yu],Y0=Su[2*yu+1],qd=(ku-(dg-kc))/kc,_g=new Ye(dd+(Su[2*yu+2]-dd)*qd+Le/2-Ce.bounds.x,Y0+(Su[2*yu+3]-Y0)*qd+Le/2-Ce.bounds.y);_g.scale(re.scale,re.scale);e:{var Qh=Td,Of=Lt[hd];if(!(.5005>qd&&.4995<qd)){var cd=Qh;if(.5>qd?0<yu?cd=Of[yu-1]:Nt.$(Su[0],Su[Su.length-2])&&Nt.$(Su[1],Su[Su.length-1])&&(cd=Of[Of.length-1]):.5<qd&&(yu+1<Of.length?cd=Of[yu+1]:Nt.$(Su[0],Su[Su.length-2])&&Nt.$(Su[1],Su[Su.length-1])&&(cd=Of[0])),Qh!==cd){var fg=Math.abs(Qh-cd);if(180<fg&&(Qh<cd?Qh+=360:cd+=360,fg=Math.abs(Qh-cd)),5e-4>qd||.9995<qd){Td=(Qh+cd)/2%360;break e}if(10>fg){var ep=1-Math.abs(.5-qd);Td=(Qh*ep+cd*(1-ep))%360;break e}}}Td=Qh}if(Fu instanceof aa){var Th="";Fu.graduatedFunction!==null?(Th=Fu.graduatedFunction(Nu,Fu),Th=Th!=null?Th.toString():""):Th=(+Nu.toFixed(2)).toString(),Th!==""&&Jh.push({$l:_g,angle:Td,text:Th})}else Jh.push({$l:_g,angle:Td})}Nu=rm+Nd*Bf}}}a.graduatedMarks.push(Jh)}En(Lt);var al=a.graduatedMarks;if(al!==null)for(var om=b.length,Ul=0;Ul<om;Ul++){var vs=b[Ul],Xl=al[Ul];if(vs.visible&&vs!==re&&Xl.length!==0){if(vs instanceof Dr){var _d=a,Fc=E,If=vs.alignmentFocus;If.Mc()&&(If=Jl);var Wy=vs.angle;vs.Kb=0,vs.measure(1/0,1/0,0,0),vs.Kb=Wy;var U0=vs.measuredBounds,tp=U0.width,Rf=U0.height,gg=dn.allocAt(0,0,tp,Rf),xu=Ye.alloc();xu.xi(gg,If),dn.free(gg);for(var ec=-xu.x,$h=-xu.y,nh=new dn,lf=Xl.length,np=0;np<lf;np++)for(var uf=Xl[np],X0=uf.$l.x,ip=uf.$l.y,rs=uf.angle,Dh=0;4>Dh;Dh++){switch(Dh){case 0:xu.h(ec,$h);break;case 1:xu.h(ec+tp,$h);break;case 2:xu.h(ec,$h+Rf);break;case 3:xu.h(ec+tp,$h+Rf)}xu.rotate(rs+vs.angle),xu.offset(X0,ip),np===0&&Dh===0?nh.h(xu.x,xu.y,0,0):nh.Ye(xu),xu.offset(-X0,-ip),xu.rotate(-rs-vs.angle)}Ye.free(xu),_d.graduatedBounds!==null&&_d.graduatedBounds.push(nh),To(Fc,nh.x,nh.y,nh.width,nh.height)}else if(vs instanceof aa){var vh=a,J0=E;vh.temporaryTextBlock===null&&(vh.temporaryTextBlock=new aa);var Tu=vh.temporaryTextBlock;yS(Tu,vs);var Nc=vs.alignmentFocus;Nc.Mc()&&(Nc=Jl);for(var yh=vs.segmentOrientation,rp=vs.segmentOffset,hf=new dn,am=0,op=0,fd=0,zf=0,df=0,ap=Xl.length,Tc=0;Tc<ap;Tc++){var Dd=Xl[Tc];am=Dd.$l.x,op=Dd.$l.y,fd=Dd.angle,df=zf=vs.angle,yh!==Zl&&(df=yh===kp||yh===n0?fd+vs.angle:fd,zf=qn.computeAngle(yh,df)),Tu.Kb=zf,Tu.text=Dd.text||"",Tu.measure(1/0,1/0,0,0);var Dc=Tu.measuredBounds,tc=Tu.naturalBounds,Bc=tc.width,jf=tc.height,qh=Mr.alloc();qh.reset(),qh.translate(-Dc.x,-Dc.y),qh.scale(Tu.scale,Tu.scale),qh.rotate(df,Bc/2,jf/2),yh!==Fp&&yh!==Tp||qh.rotate(90,Bc/2,jf/2),yh!==Np&&yh!==Dp||qh.rotate(-90,Bc/2,jf/2),yh===i0&&(45<fd&&135>fd||225<fd&&315>fd)&&qh.rotate(-fd,Bc/2,jf/2);var pg=dn.allocAt(0,0,Bc,jf),Oc=Ye.alloc();Oc.xi(pg,Nc),qh.Ga(Oc);var mg=-Oc.x,Zy=-Oc.y,nc=Ye.alloc();nc.assign(rp),isNaN(nc.x)&&(nc.x=Bc/2+3),isNaN(nc.y)&&(nc.y=-(jf/2+3)),nc.rotate(fd),am+=nc.x+mg,op+=nc.y+Zy;var Hf=new dn(am,op,Dc.width,Dc.height),sm=new dn(Dc.x,Dc.y,Dc.width,Dc.height),Gy=new dn(tc.x,tc.y,tc.width,tc.height);Dd.Sz=zf,Dd.lineCount=Tu.lineCount,Dd.lines=[Tu.Cb,Tu.Ih,Tu.df,Tu.Le,Tu.Qc,Tu.Qb,Tu.ze],Dd.actualBounds=Hf,Dd.measuredBounds=sm,Dd.naturalBounds=Gy,Tc===0?hf.assign(Hf):hf.ed(Hf),Ye.free(nc),Ye.free(Oc),dn.free(pg),Mr.free(qh)}vh.graduatedBounds!==null&&vh.graduatedBounds.push(hf),To(J0,hf.x,hf.y,hf.width,hf.height)}Fs(vs,!1)}}},yp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,b!==null&&b.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,le=0;le<oe;le++){var ue=y[le];re=E[le],ue.visible&&ue!==b&&re.length!==0&&(re=z[ee],ee++,ue.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},yp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,ee=E.height;E=y instanceof Lu,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,le=a.graduatedMarks,ue=oe.length,fe=0;fe<ue;fe++){var ye=oe[fe],Ce=le[fe],Le=Ce.length;if(ye.visible&&ye!==z&&Ce.length!==0){if(ye instanceof Dr){if(!(2>a.graduatedTickUnit*ye.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&ye.graduatedSkip===null)){var Be=ye.measuredBounds,$e=ye.strokeWidth*ye.scale,Ze=ye.alignmentFocus;Ze.Mc()&&(Ze=Jl);for(var rt=0;rt<Le;rt++){var st=Ce[rt].$l,ct=Ce[rt].angle,Lt=Ze,Xt=ye.Ab;Xt.reset(),Xt.translate(st.x+re.x,st.y+re.y),Xt.rotate(ct+ye.angle,0,0),Xt.translate(-Be.width*Lt.x+Lt.offsetX+$e/2,-Be.height*Lt.y+Lt.offsetY+$e/2),Xt.scale(ye.scale,ye.scale),dh(ye,!1),ye.wh.set(ye.Ab),ye.Kk=ye.scale,Ju(ye,!1),ye.gc(y,x),E&&(a.svg.appendChild(ye.svg),ye.svg=null),ye.Ab.reset()}}}else if(ye instanceof aa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new aa),Be=a.temporaryTextBlock,yS(Be,ye),$e=0;$e<Le;$e++)Ze=Ce[$e],Ze.actualBounds&&Ze.measuredBounds&&Ze.naturalBounds&&(Be.ec=Ze.text||"",Be.Kb=Ze.Sz||0,Be.Gc=Ze.lineCount||0,rt=Ze.lines,rt!==void 0&&(Be.Cb=rt[0],Be.Ih=rt[1],Be.df=rt[2],Be.Le=rt[3],Be.Qc=rt[4],Be.Qb=rt[5],Be.ze=rt[6]),Ze.naturalBounds&&(Be.dc=Ze.naturalBounds),Ze.actualBounds&&(rt=Ze.actualBounds,Be.arrange(rt.x,rt.y,rt.width,rt.height)),rt=Ze.actualBounds,Be.arrange(rt.x,rt.y,rt.width,rt.height),st=Ze.measuredBounds,Ze=Ze.naturalBounds,ct=Be.Ab,ct.reset(),ct.translate(rt.x+re.x,rt.y+re.y),ct.translate(-st.x,-st.y),Be.no(ct,Ze.x,Ze.y,Ze.width,Ze.height),dh(Be,!1),Be.wh.set(Be.Ab),Be.Kk=Be.scale,Ju(Be,!1),Be.Ng=ye.part,Be.Me=ye.panel,Be.gc(y,x),Be.Me=null,Be.Ng=null,E&&(a.svg.appendChild(Be.svg),Be.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Kn(a,y){if(At.call(this),this.na=null,a===void 0)this.na=Kn.Position;else if(typeof a=="string"){var x=Lh.I(a);x!==null&&(this.na=x)}else a instanceof Rs?this.na=a:a&&(this.na=Kn.Position,y=a);this.na===null&&bt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Kn.Grid?1048576:0),this.O=new xn,this.yb=dl,this.Tm=Bo,this.Uf=Er,this.$g=null,this.$e="",this.jg=new dn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ni,this.jn=Oa,this.kn=$r,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Jt(Kn,At),Kn.prototype.cloneProtected=function(a){At.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},Kn.prototype.Af=function(a){At.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},Kn.prototype.copy=function(){var a=At.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 z=a.O,ee=z.count;if(z.Gb(ee,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof fi&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Un,"elements",a,null,E,null,ee)}}return a}return null},be=Kn.prototype,be.toString=function(){return"Panel("+this.type.name+")#"+oo(this)},be.Pn=function(a){At.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},be.hh=function(a,y){if(this.na===Kn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Kn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Kn.Table)if(a.yc(),a instanceof Lu){var x=a.yd;a.yd=gm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===Kn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];x&&re===b&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===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&&Am(a,y,!0,x,!0),b!==null&&Am(a,y,!1,b,!0),x!==null&&rS(a,y,!0,x),b!==null&&rS(a,y,!1,b),x!==null&&Am(a,y,!0,x,!1),b!==null&&Am(a,y,!1,b,!1)}function rS(a,y,x,b){for(var E=b.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<E;oe++){var le=b[oe];if(le!==void 0&&le.actual!==0)if(re)re=!1;else{if(x){if(le.position>ee.height)continue}else if(le.position>ee.width)continue;var ue=le.separatorStrokeWidth;isNaN(ue)&&(ue=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var fe=le.separatorStroke;if(fe===null&&(fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ue!==0&&fe!==null){qa(a,y,fe,!1,!1,ee,z),fe=!1;var ye=le.separatorDashArray;ye===null&&(ye=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),ye!==null&&(fe=!0,y.js(ye,0)),y.beginPath(),ye=le.position+ue,x?ye>ee.height&&(ue-=ye-ee.height):ye>ee.width&&(ue-=ye-ee.width),le=le.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(le+=ue.top,ye=ee.width-ue.right,y.moveTo(ue.left,le),y.lineTo(ye,le)):(le+=ue.left,ye=ee.height-ue.bottom,y.moveTo(le,ue.top),y.lineTo(le,ye)),y.stroke(),y.Se(),fe&&y.fs()}}}}function Am(a,y,x,b,E){for(var z=b.length,ee=a.actualBounds,re=a.naturalBounds,oe=oS(a,!0),le=oS(a,!1),ue=0;ue<z;ue++){var fe=b[ue];if(fe!==void 0&&fe.background!==null&&fe.coversSeparators!==E&&fe.actual!==0){var ye=x?ee.height:ee.width;if(!(fe.position>ye)){var Ce=fe.Wc(),Le=fe.separatorStrokeWidth;isNaN(Le)&&(Le=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Be=fe.separatorStroke;Be===null&&(Be=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Be===null||fe.index===(x?oe:le))&&(Le=0),Ce-=Le,Le=fe.position+Le,Ce+=fe.actual,Le+Ce>ye&&(Ce=ye-Le),0>=Ce||(ye=a.yb,qa(a,y,fe.background,!0,!1,re,ee),x?y.fillRect(ye.left,Le+ye.top,ee.width-(ye.left+ye.right),Ce):y.fillRect(Le+ye.left,ye.top,Ce,ee.height-(ye.top+ye.bottom)))}}}}function oS(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 pv(a){return a==="LineV"||a==="BarV"}be.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},be.kk=function(a,y,x){if(!At.prototype.kk.call(this,a,y,x))return!1;if(this.type===Kn.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===Kn.Grid||this.na===Kn.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},be.nk=function(){return!0},be.$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,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;E=ee===0?re.x:Math.min(re.x,E),z=ee===0?re.y:Math.min(re.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else At.prototype.$o.call(this,a,y,x,b)},be.Sj=function(a,y,x,b,E){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,le=-ee.m12*re,ue=-ee.m21*re,fe=ee.m11*re,ye=re*(ee.m21*ee.dy-ee.m22*ee.dx),Ce=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Nt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,b,E);if(this.background!==null)return z=a*oe+y*ue+ye,re=a*le+y*fe+Ce,a=x*oe+b*ue+ye,oe=x*le+b*fe+Ce,E.h(0,0),x=this.naturalBounds,z=Nt.Ff(0,0,x.width,x.height,z,re,a,oe,E),E.transform(ee),z;z||(oe=1,ue=le=0,fe=1,Ce=ye=0),re=a*oe+y*ue+ye,a=a*le+y*fe+Ce,oe=x*oe+b*ue+ye,x=x*le+b*fe+Ce,E.h(oe,x),b=(oe-re)*(oe-re)+(x-a)*(x-a),le=!1,fe=this.O.s,Ce=fe.length,ue=Ye.alloc(),ye=null,y=1/0;var Le=null,Be=this.isClipping&&this.na===Kn.Spot;Be&&(Le=Ye.alloc(),ye=this.Pb(),(le=ye.Sj(re,a,oe,x,Le))&&(y=(re-Le.x)*(re-Le.x)+(a-Le.y)*(a-Le.y)));for(var $e=0;$e<Ce;$e++){var Ze=fe[$e];Ze.visible&&Ze!==ye&&Ze.Sj(re,a,oe,x,ue)&&(le=!0,Ze=(re-ue.x)*(re-ue.x)+(a-ue.y)*(a-ue.y),Ze<b&&(b=Ze,E.set(ue)))}return Be&&(y>b&&E.set(Le),Ye.free(Le)),Ye.free(ue),z&&E.transform(ee),le},be.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();At.prototype.Gj.call(this)},be.v=function(a){if(!Ru(this)){At.prototype.v.call(this,a),a=null,(this.na===Kn.Auto||this.na===Kn.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 z=tu(E,!1);(E instanceof Wl||E instanceof Kn||E instanceof aa||z!==Dn)&&E.v(!0)}}}},be.Uj=function(){if(!Ru(this)){Fs(this,!0),xd(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},be.Uk=function(){if(!(this.l&2048)){dh(this,!0),Ju(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},be.Wu=function(){Ju(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},be.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,b=ee.height),x=Math.max(x,ee.width),b=Math.max(b,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(b,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,E,x,b),a=E.width+oe.left+oe.right,oe=E.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(b,oe),js(E,a,oe),js(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},be.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 Xd(a){return a.part!==null?a.part.locationObject:null}be.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=tu(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===b&&(a=Dn),a){case Dn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Hn:this.v(!0),this.measure(x+re,b+ee,0,0);break;case Bi:this.v(!0),this.measure(x+re,z+ee,0,0);break;case er:this.v(!0),this.measure(y+re,b+ee,0,0)}}this.na.arrange(this,E,this.jg)}},be.gh=function(a){var y=this.naturalBounds,x=Xd(this);if(la(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Ye.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(eo(E.set(a),z.transform),z.ca(E)))return Ye.free(E),!0}return Ye.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},be.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},be.qm=function(a,y){if(y(this,a),a instanceof Kn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Lf(a,y){aS(a,a,y)}function aS(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof Kn&&aS(a,z,x)}}function vx(a,y){sS(a,a,y)}function sS(a,y,x){if(x(y),y instanceof Kn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)sS(a,y[E],x)}}be.Nl=function(a){return lS(this,this,a)};function lS(a,y,x){if(x(y))return y;if(y instanceof Kn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=lS(a,y[E],x);if(z!==null)return z}}return null}be.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Sp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Kn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function uS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Kn?x=Math.max(x,uS(E)):E instanceof Dr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}be.se=function(){return!(this.type===Kn.TableRow||this.type===Kn.TableColumn)};function vc(a){return a.type===Kn.TableRow||a.type===Kn.TableColumn}be.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),jl(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),ee=z?a:eo(Ye.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),la(-(le*E),-(le*E),b.width+oe*E,b.height+oe*E,ee.x,ee.y)){if(!this.isAtomic){E=this.O.s;var ue=E.length;if(re=Ye.alloc(),le=(oe=this.isClipping&&this.na===Kn.Spot)?this.Pb():null,oe&&(le.se()?eo(re.set(a),le.transform):re.set(a),!le.ca(re)))return Ye.free(re),z||Ye.free(ee),null;for(var fe=Xd(this);ue--;){var ye=E[ue];if((ye.visible||ye===fe)&&(ye.se()?eo(re.set(a),ye.transform):re.set(a),!oe||ye!==le)){var Ce=null;if(ye instanceof Kn?Ce=ye.ic(re,y,x):ye.pickable===!0&&ye.ca(re)&&(Ce=ye),Ce!==null&&(y!==null&&(Ce=y(Ce)),Ce!==null&&(x===null||x(Ce))))return Ye.free(re),z||Ye.free(ee),Ce}}Ye.free(re)}return this.background===null&&this.areaBackground===null?(z||Ye.free(ee),null):(a=la(0,0,b.width,b.height,ee.x,ee.y)?this:null,z||Ye.free(ee),a)}return z||Ye.free(ee),null},be.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,z=this.se(),ee=z?a:eo(Ye.allocAt(a.x,a.y),this.transform);if(E=la(0,0,E.width,E.height,ee.x,ee.y),vc(this)||E){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,le=Ye.alloc(),ue=Xd(this);oe--;){var fe=re[oe];if(fe.visible||fe===ue){fe.se()?eo(le.set(a),fe.transform):le.set(a);var ye=fe;fe=fe instanceof Kn?fe:null,(fe!==null?fe.ji(le,y,x,b):ye.ca(le))&&ye.pickable!==!1&&(y!==null&&(ye=y(ye)),ye===null||x!==null&&!x(ye)||b.add(ye))}}Ye.free(le)}return z||Ye.free(ee),E&&(this.background!==null||this.areaBackground!==null)}return z||Ye.free(ee),!1},be.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=Mr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return mv(this,y,x,E),z===void 0&&Mr.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=Xd(this),oe=this.O.s,le=oe.length;le--;){var ue=oe[le];if(ue.visible||ue===re){var fe=ue.actualBounds,ye=this.naturalBounds;fe.x>ye.width||fe.y>ye.height||0>fe.x+fe.width||0>fe.y+fe.height||(fe=ue,ue=ue instanceof Kn?ue:null,ye=Mr.alloc(),ye.set(ee),(ue!==null?ue.Cf(a,y,x,b,E,ye):Gs(fe,a,b,ye))&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||E.add(fe)),Mr.free(ye))}}return z===void 0&&Mr.free(ee),b}return z===void 0&&Mr.free(ee),!1};function mv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var ee=E[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof Kn&&mv(ee,y,x,b),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||b.add(ee))}}}be.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var ee=this.naturalBounds,re=this.se(),oe=re?a:eo(Ye.allocAt(a.x,a.y),this.transform),le=re?y:eo(Ye.allocAt(y.x,y.y),this.transform),ue=oe.Bf(le),fe=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||fa(oe.x,oe.y,0,0,0,ee.height)<=ue||fa(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=ue||fa(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=ue||fa(oe.x,oe.y,ee.width,0,0,0)<=ue;if(ee=oe.zd(0,0)<=ue&&oe.zd(0,ee.height)<=ue&&oe.zd(ee.width,0)<=ue&&oe.zd(ee.width,ee.height)<=ue,re||(Ye.free(oe),Ye.free(le)),fe){if(!this.isAtomic){oe=Ye.alloc(),le=Ye.alloc(),ue=Xd(this);for(var ye=this.O.s,Ce=ye.length;Ce--;){var Le=ye[Ce];if(Le.visible||Le===ue){var Be=Le.actualBounds,$e=this.naturalBounds;(!re||!(Be.x>$e.width||Be.y>$e.height||0>Be.x+Be.width||0>Be.y+Be.height))&&(Le.se()?(Be=Le.transform,eo(oe.set(a),Be),eo(le.set(y),Be)):(oe.set(a),le.set(y)),Be=Le,Le=Le instanceof Kn?Le:null,(Le!==null?Le.og(oe,le,x,b,E,z):Be.tx(oe,le,E))&&(x!==null&&(Be=x(Be)),Be===null||b!==null&&!b(Be)||z.add(Be)))}}Ye.free(oe),Ye.free(le)}return E?fe:ee}return!1};function vv(a){var y=null;return a instanceof Dr&&(y=a.spot1,y===Bo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Es),y}function yv(a){var y=null;return a instanceof Dr&&(y=a.spot2,y===Bo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ml),y}be.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},be.M=function(a){return this.O.M(a)},be.Gb=function(a,y){y instanceof ji&&bt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&bt("Cannot make a Panel contain itself: "+this.toString()),bt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&bt("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!==Kn.Grid||y instanceof Dr||bt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Kn.Graduated||y instanceof Dr||y instanceof aa||bt("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 wi),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else bt("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),Ru(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Kn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof fi&&(x.Te=!0),x.Te&&x instanceof fi&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(ui,"elements",this,y,null,b,null),x.cb(Un,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}be.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)},be.mb=function(a){0<=a&&this.pc(a,!0)},be.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),Fs(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof fi&&(b instanceof Kn?b.qm(b,function(ee,re){Zv(z,re,y)}):Zv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ui,"elements",this,b,null,a,null))},be.Fb=function(a){0>a&&gi(a,">= 0",Kn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ns;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Un,"rowdefs",this,null,x,null,a)}return y[a]},be.oA=function(a){if(0>a&&gi(a,">= 0",Kn,"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(ui,"rowdefs",this,x,null,a,null),this.v()}}};function hS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Ns?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}be.Eb=function(a){0>a&&gi(a,">= 0",Kn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ns;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Un,"coldefs",this,null,x,null,a)}return y[a]},be.jA=function(a){if(0>a&&gi(a,">= 0",Kn,"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(ui,"coldefs",this,x,null,a,null),this.v()}}};function dS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Ns?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}be.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Nm(y,a),this},be.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new Ns(y)),this},be.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new Ns(y)),this},be.nz=function(a){if(0>a||this.type!==Kn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},be.fz=function(a){if(0>a||this.type!==Kn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},be.Fz=function(a,y){if(y===void 0&&(y=new Ye(NaN,NaN)),this.type!==Kn.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)},be.Gz=function(a){if(this.type!==Kn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function cS(a){return a=a.allBindings,a!==null&&a._isFrozen}function fh(a){var y=a.allBindings;if(y===null)a.data!==null&&bt("Template cannot have .data be non-null: "+a),a.allBindings=y=new xn;else if(y._isFrozen)return;var x=new xn;Sv(a,!1),a.qm(a,function(le,ue){ue.th();var fe=ue.localBindings;if(fe!==null)for(Qf(ue,!1),fe=fe.iterator;fe.next();){var ye=fe.value;ye.mode===Wp&&Qf(ue,!0);var Ce=ye.sourceName;Ce!==null&&(Ce==="/"&&Sv(le,!0),Ce=L1(ye,le,ue),Ce!==null&&(x.add(Ce),Ce.srcBindings===null&&(Ce.srcBindings=new xn),Ce.srcBindings.add(ye))),y.add(ye)}if(ue instanceof Kn&&ue.type===Kn.Table){if(0<ue.rowCount){for(le=ue.rowDefs,fe=le.length,ye=0;ye<fe;ye++)if(Ce=le[ye],Ce!==void 0&&Ce.be!==null)for(var Le=Ce.be.iterator;Le.next();){var Be=Le.value;Be.xd=Ce,Be.to=2,Be.wl=Ce.index,y.add(Be)}}if(0<ue.columnCount){for(ue=ue.colDefs,le=ue.length,fe=0;fe<le;fe++)if(ye=ue[fe],ye!==void 0&&ye.be!==null)for(Ce=ye.be.iterator;Ce.next();)Le=Ce.value,Le.xd=ye,Le.to=1,Le.wl=ye.index,y.add(Le)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Qf(E,!0);for(var z=E.srcBindings.iterator;z.next();){var ee=z.value;E.localBindings===null&&(E.localBindings=new xn),E.localBindings.add(ee)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var re=E.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof Kn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,E.targetProperty=re):Oi('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+E.toString())),z instanceof Ns?(ee=oo(z.panel),E.Ai=ee===void 0?-1:ee,z.panel.bindingId=E.Ai):z instanceof At?(ee=oo(z),E.Ai=ee===void 0?-1:ee,z.bindingId=E.Ai):bt("Unknown type of binding target: "+z)}y.freeze(),a instanceof ji&&a.Zc()&&a.Va()}be.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof Kn&&(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&&fh(y),y},be.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 z=this,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof Kn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},be.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Kn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var ee=0;E<x&&ee<b;){if(z=a[E],!(z instanceof Kn)||z.data!==y[ee])return!0;E++,ee++}return!1}function Sp(a){if(a.type===Kn.Spot||a.type===Kn.Auto)return Math.min(a.O.length,1);if(a.type===Kn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Dr&&b.isPanelMain))break}return x}return a.type===Kn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Kn&&vc(a))?1:0}be.mv=function(){for(var a=Sp(this);this.O.length>a;)this.pc(this.O.length-1,!1);fS(this,this.itemArray)};function fS(a,y){var x=Sp(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 z=y[E],ee=b<a.O.length?a.O.M(b):null;if(ee instanceof Kn){if(ee.data!==z){var re=wv(a,ee.data),oe=wv(a,z),le=oe!==re;le||(re=Pv(a,re),le=Pv(a,oe)!==re),le?(a.pc(b,!1),km(a,z,E,!1)):ee.data=z}}else km(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xv(a,x,0),Ru(a)||a.v(),a.graduatedIntervals=null,a.If()||Fm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof fi&&(y.Te=!0),y.Te&&y instanceof fi&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=wv(a,y);if(E=Pv(a,E),E!==null){if(fh(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new wi),a.ge.add(y,E)),z=x+Sp(a),a.Gb(z,E),b&&(E.ub=y,xv(a,z,x),E.ub=null),E.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Kn){var E=y,z=x;b.type===Kn.TableRow?b.row=E:b.type===Kn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function wv(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=ds(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;bt("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&&(gS||(gS=!0,Oi('No item template Panel found for category "'+y+'" on '+a),Oi(" Using default item template."),a=new Kn,y=new aa,y.bind(new ps("text","",Vn)),a.add(y),pS=a),b=pS)),b}function Fm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Kn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Kn&&!z.isEnabled||Fm(a,z,x)}}}function ld(a,y){y.name=a,Lh.add(a,y)}ft.Object.defineProperties(Kn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Kn.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&&gi(a,">= 0",Kn,"padding"),a=new Wi(a)):(0>a.left&&gi(a.left,">= 0",Kn,"padding:value.left"),0>a.right&&gi(a.right,">= 0",Kn,"padding:value.right"),0>a.top&&gi(a.top,">= 0",Kn,"padding:value.top"),0>a.bottom&&gi(a.bottom,">= 0",Kn,"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:dl},set:function(a){typeof a=="number"&&(a=new Wi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new qu),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 Go)&&(a instanceof Go&&a.freeze(),this.T===null&&(this.T=new qu),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 qu),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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||bt("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new qu),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 Go)&&(a instanceof Go&&a.freeze(),this.T===null&&(this.T=new qu),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 qu),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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||bt("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new qu),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 qu),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||bt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&lh(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()||bt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&lh(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 Jd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),hl(this)&&(a=this.part,a!==null&&va(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 Jd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),hl(this)&&(a=this.part,a!==null&&va(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 Jd),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 Jd),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 Jd,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 Jd,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 Jd,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 Jd,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 qu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new qu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new qu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new qu),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)&&bt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new qu),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)&&bt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new qu),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 ji&&!(this instanceof Ao);fh(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof qn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ji&&(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 $f),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||fS(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 wi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ji||a.isPanelMain)&&bt("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(););zr(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&&(zr(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 br&&(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&&Fm(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))}}}),ft.Object.defineProperties(Kn,{Position:{get:function(){return Lh.I("Position")}},Horizontal:{get:function(){return Lh.I("Horizontal")}},Vertical:{get:function(){return Lh.I("Vertical")}},Spot:{get:function(){return Lh.I("Spot")}},Auto:{get:function(){return Lh.I("Auto")}},Table:{get:function(){return Lh.I("Table")}},Viewbox:{get:function(){return Lh.I("Viewbox")}},TableRow:{get:function(){return Lh.I("TableRow")}},TableColumn:{get:function(){return Lh.I("TableColumn")}},Link:{get:function(){return Lh.I("Link")}},Grid:{get:function(){return Lh.I("Grid")}},Graduated:{get:function(){return Lh.I("Graduated")}}}),Kn.prototype.rebuildItemElements=Kn.prototype.mv,Kn.prototype.findItemPanelForData=Kn.prototype.sx,Kn.prototype.updateTargetBindings=Kn.prototype.La,Kn.prototype.copyTemplate=Kn.prototype.Uy,Kn.prototype.graduatedValueForPoint=Kn.prototype.Gz,Kn.prototype.graduatedPointForValue=Kn.prototype.Fz,Kn.prototype.findColumnForLocalX=Kn.prototype.fz,Kn.prototype.findRowForLocalY=Kn.prototype.nz,Kn.prototype.addColumnDefinition=Kn.prototype.By,Kn.prototype.addRowDefinition=Kn.prototype.Hy,Kn.prototype.addRowColumnDefinition=Kn.prototype.Gy,Kn.prototype.removeColumnDefinition=Kn.prototype.jA,Kn.prototype.getColumnDefinition=Kn.prototype.Eb,Kn.prototype.removeRowDefinition=Kn.prototype.oA,Kn.prototype.getRowDefinition=Kn.prototype.Fb,Kn.prototype.removeAt=Kn.prototype.mb,Kn.prototype.remove=Kn.prototype.remove,Kn.prototype.insertAt=Kn.prototype.Gb,Kn.prototype.elt=Kn.prototype.M,Kn.prototype.add=Kn.prototype.add,Kn.prototype.findObject=Kn.prototype.fb,Kn.prototype.findInVisualTree=Kn.prototype.Nl,Kn.prototype.walkVisualTreeFrom=Kn.prototype.qm,Kn.prototype.findMainElement=Kn.prototype.Pb;var gS=!1,pS=null,Lh=new wi;Kn.className="Panel",Kn.definePanelLayout=ld,ld("Position",new vm),ld("Vertical",new Sm),ld("Auto",new wm),ld("Link",new Mm);function Jd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Jd.prototype.copy=function(){var a=new Jd;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},Jd.className="GradPanelSettings";function qu(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=dl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}qu.prototype.copy=function(a){for(var y=new qu,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),E[z]=ee}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),E[z]=ee);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},qu.className="TablePanelSettings";function Ns(a){Ir(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Bo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=Er,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))}Ns.prototype.copy=function(){var a=new Ns;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=Wt(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Nm(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=Wt(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}be=Ns.prototype,be.qb=function(a){a.classType===Ns&&(this.sizing=a)},be.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+oo(this)},be.wi=function(a){this.Me=a},be.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)},be.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Kn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var ee=b?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.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)},be.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Gn,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Tm(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}be.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ps(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&cS(y)&&bt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new xn),this.be.add(E),this},ft.Object.defineProperties(Ns.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&&gi(a,">= 0",Ns,"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&&gi(a,">= 0",Ns,"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))&&gi(a,">= 0",Ns,"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&&gi(a,">= 0",Ns,"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 Wi(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&&_f(a,"RowColumnDefinition.separatorStroke"),a instanceof Go&&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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||bt("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&_f(a,"RowColumnDefinition.background"),a instanceof Go&&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}}}),Ns.prototype.computeEffectiveSpacing=Ns.prototype.Wc,Ns.prototype.computeEffectiveSpacingTop=Ns.prototype.Io;var Cv=new Bt(Ns,"Default",0),xp=new Bt(Ns,"None",1),Dm=new Bt(Ns,"ProportionalExtra",2);Ns.className="RowColumnDefinition",Ns.Default=Cv,Ns.None=xp,Ns.ProportionalExtra=Dm;function Dr(a,y){At.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}Jt(Dr,At),Dr.prototype.cloneProtected=function(a){At.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=Wt(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 Mf(a){a.Na===null?a.Na=new Lv:a.Na.nc&&(a.Na=a.Na.copy())}be=Dr.prototype,be.th=function(){At.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},be.qb=function(a){a===Dn||a===Ni||a===ro||a===Er?this.geometryStretch=a:At.prototype.qb.call(this,a)},be.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+oo(this)};function kg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],le,ue,fe,ye,Ce,Le,Be=0,$e=un(),Ze=2;Ze<E;Ze+=2)le=x[Ze],ue=x[Ze+1],fe=le-re,re=ue-oe,fe===0&&(fe=.001),ye=re/fe,Ce=Math.atan2(re,fe),Le=Math.sqrt(fe*fe+re*re),$e.push([fe,Ce,ye,Le]),Be+=Le,re=le,oe=ue;re=x[0],oe=x[1],fe=b.measuredBounds.width,b instanceof Dr&&(fe-=b.strokeWidth),1>fe&&(fe=1),E=x=fe,le=ee/2,ue=le!==0,Ze=0,Le=$e[Ze],fe=Le[0],Ce=Le[1],ye=Le[2],Le=Le[3];for(var rt=0;.1<=Be;){if(rt===0&&(ue?(E=x,E-=le,Be-=le,ue=!1):E=x,E===0&&(E=1)),E>Be){En($e);return}E>Le?(rt=E-Le,E=Le):rt=0;var st=Math.sqrt(E*E/(1+ye*ye));if(0>fe&&(st=-st),re+=st,oe+=ye*st,a.translate(re,oe),a.rotate(Ce),a.translate(-(ee/2),-(z/2)),rt===0&&b.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Ce),a.translate(-re,-oe),Be-=E,Le-=E,rt!==0){if(Ze++,Ze===$e.length){En($e);return}Le=$e[Ze],fe=Le[0],Ce=Le[1],ye=Le[2],Le=Le[3],E=rt}}En($e)}}be.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 z=this.actualBounds,ee=this.naturalBounds;b!==null&&qa(this,a,b,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Kn.Link&&re instanceof Ao&&re.category==="Selection"&&re.adornedObject instanceof Dr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(qa(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||b!==null&&b!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),E.type===ti.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===ti.u){var le=E.startX;oe=E.startY;var ue=E.endX,fe=E.endY;E=Math.min(le,ue);var ye=Math.min(oe,fe);le=Math.abs(ue-le),oe=Math.abs(fe-oe),a.beginPath(),a.rect(E,ye,le,oe),b!==null&&a.ng(b),x!==null&&(re&&z&&wd(a),a.jk(),re&&z&&Vd(a)),a.Se()}else if(E.type===ti.F)le=E.startX,oe=E.startY,ue=E.endX,fe=E.endY,E=Math.abs(ue-le)/2,ye=Math.abs(fe-oe)/2,le=Math.min(le,ue)+E,oe=Math.min(oe,fe)+ye,a.beginPath(),a.moveTo(le,oe-ye),a.bezierCurveTo(le+Nt.wg*E,oe-ye,le+E,oe-Nt.wg*ye,le+E,oe),a.bezierCurveTo(le+E,oe+Nt.wg*ye,le+Nt.wg*E,oe+ye,le,oe+ye),a.bezierCurveTo(le-Nt.wg*E,oe+ye,le-E,oe+Nt.wg*ye,le-E,oe),a.bezierCurveTo(le-E,oe-Nt.wg*ye,le-Nt.wg*E,oe-ye,le,oe-ye),a.closePath(),b!==null&&a.ng(b),x!==null&&(re&&z&&wd(a),a.jk(),re&&z&&Vd(a)),a.Se();else if(E.type===ti.o)for(E=E.figures,oe=E.length,ye=0;ye<oe;ye++){le=E.s[ye],a.beginPath(),a.moveTo(le.startX,le.startY),ue=le.segments.s,fe=ue.length;for(var Ce=null,Le=0;Le<fe;Le++){var Be=ue[Le];switch(Be.type){case as:a.moveTo(Be.endX,Be.endY);break;case ea:a.lineTo(Be.endX,Be.endY);break;case Us:a.bezierCurveTo(Be.point1X,Be.point1Y,Be.point2X,Be.point2Y,Be.endX,Be.endY);break;case Ie:a.quadraticCurveTo(Be.point1X,Be.point1Y,Be.endX,Be.endY);break;case Ve:if(Be.radiusX===Be.radiusY){var $e=Math.PI/180;a.arc(Be.point1X,Be.point1Y,Be.radiusX,Be.startAngle*$e,(Be.startAngle+Be.sweepAngle)*$e,0>Be.sweepAngle,Ce!==null?Ce.endX:le.startX,Ce!==null?Ce.endY:le.startY)}else if(Ce=il(Be,le),$e=Ce.length,$e===0)a.lineTo(Be.centerX,Be.centerY);else for(var Ze=0;Ze<$e;Ze++){var rt=Ce[Ze];Ze===0&&a.lineTo(rt[0],rt[1]),a.bezierCurveTo(rt[2],rt[3],rt[4],rt[5],rt[6],rt[7])}break;case _e:if(Ze=$e=0,Ce!==null&&Ce.type===Ve){if(Ce=il(Ce,le),rt=Ce.length,rt===0){a.lineTo(Be.endX,Be.endY);break}Ce=Ce[rt-1]||null,Ce!==null&&($e=Ce[6],Ze=Ce[7])}else $e=Ce!==null?Ce.endX:le.startX,Ze=Ce!==null?Ce.endY:le.startY;if(Ce=yl(Be,le,$e,Ze),$e=Ce.length,$e===0){a.lineTo(Be.endX,Be.endY);break}for(Ze=0;Ze<$e;Ze++)rt=Ce[Ze],a.bezierCurveTo(rt[2],rt[3],rt[4],rt[5],rt[6],rt[7]);break;default:bt("Segment not of valid type: "+Be.type)}Be.isClosed&&a.closePath(),Ce=Be}ue=le.isFilled,z?le.isShadowed?(ue===!0&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&(ue&&re&&wd(a),a.jk(),ue&&re&&Vd(a))):(wd(a),ue&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk(),Vd(a)):(ue&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk()),a.Se(ye)}if(ee&&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),z=this.geometry,a.save(),a.beginPath(),b=un(),z.type===ti.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),kg(a,y,b,x);else if(z.type===ti.o)for(z=z.figures.iterator;z.next();){for(re=z.value,b.length=0,b.push(re.startX),b.push(re.startY),ee=re.startX,E=re.startY,oe=ee,ye=E,le=re.segments.s,ue=le.length,fe=0;fe<ue;fe++){switch(Le=le[fe],Le.type){case as:kg(a,y,b,x),b.length=0,b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY,oe=ee,ye=E;break;case ea:b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY;break;case Us:Nt.Qe(ee,E,Le.point1X,Le.point1Y,Le.point2X,Le.point2Y,Le.endX,Le.endY,.5,b),ee=Le.endX,E=Le.endY;break;case Ie:Nt.ep(ee,E,Le.point1X,Le.point1Y,Le.endX,Le.endY,.5,b),ee=Le.endX,E=Le.endY;break;case Ve:if(Be=il(Le,re),Ce=Be.length,Ce===0){b.push(Le.centerX),b.push(Le.centerY),ee=Le.centerX,E=Le.centerY;break}for($e=0;$e<Ce;$e++)Ze=Be[$e],Nt.Qe(ee,E,Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7],.5,b),ee=Ze[6],E=Ze[7];break;case _e:if(Be=yl(Le,re,ee,E),Ce=Be.length,Ce===0){b.push(Le.endX),b.push(Le.endY),ee=Le.endX,E=Le.endY;break}for($e=0;$e<Ce;$e++)Ze=Be[$e],Nt.Qe(ee,E,Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7],.5,b),ee=Ze[6],E=Ze[7];break;default:bt("Segment not of valid type: "+Le.type)}Le.isClosed&&(b.push(oe),b.push(ye),kg(a,y,b,x))}kg(a,y,b,x)}else if(z.type===ti.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),kg(a,y,b,x);else if(z.type===ti.F){if(E=new Cs,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,ee=new mo(Ve),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,E.add(ee),z=il(ee,E),re=z.length,re===0)b.push(ee.centerX),b.push(ee.centerY);else for(ee=E.startX,E=E.startY,oe=0;oe<re;oe++)ye=z[oe],Nt.Qe(ee,E,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,b),ee=ye[6],E=ye[7];kg(a,y,b,x)}En(b),a.restore(),a.Vc(!1)}}}},be.kk=function(a,y,x){return!At.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)},be.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:At.prototype.nk.call(this,a)},be.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)}},be.ga=function(a,y){if(y===void 0&&(y=new Ye),a instanceof Fi){a.Mc()&&bt("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},be.mi=function(a){a===void 0&&(a=new dn);var y=this.naturalBounds,x=this.oe;y=dn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Ye.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),To(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),To(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),To(a,b.x,b.y,0,0),dn.free(y),Ye.free(b),a},be.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!==ti.j||y||(E+=2);var z=dn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return dn.free(z),!1;if(b=E+1e-4,x.type===ti.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:(dn.free(z),Nt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===ti.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return dn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),dn.free(z),a}if(x.type===ti.F){ee=x.startX,E=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(E,oe),ee=Math.abs(re-ee)/2,E=Math.abs(oe-E)/2,x=a.x-(x+ee),y=a.y-(y+E),this.fill===null){if(ee-=b,E-=b,0>=ee||0>=E||1>=x*x/(ee*ee)+y*y/(E*E))return dn.free(z),!1;ee+=b,E+=b}return this.stroke!==null&&(ee+=b,E+=b),dn.free(z),0>=ee||0>=E?!1:1>=x*x/(ee*ee)+y*y/(E*E)}if(x.type===ti.o)return dn.free(z),this.fill===null?xh(x,a.x,a.y,E):rh(x,a,E,1<this.strokeWidth,y);bt("Unknown Geometry type: "+x.type)},be.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,oe=Ev[re];if(oe===void 0){var le=Nt.Ze[re];typeof le=="string"&&(le=Nt.Ze[le]),typeof le=="function"?(oe=le(null,100,100),Ev[re]=oe):bt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,le=ee.width;var ue=ee.height;switch(tu(this,!0)){case Dn:b=x=0;break;case Hn:le=Math.max(a-z,0),ue=Math.max(y-z,0);break;case Bi:le=Math.max(a-z,0),b=0;break;case er:x=0,ue=Math.max(y-z,0)}isFinite(E.width)&&(le=E.width),isFinite(E.height)&&(ue=E.height);var fe=this.maxSize,ye=this.minSize;switch(x=Math.max(x-z,ye.width),b=Math.max(b-z,ye.height),le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=isFinite(le)?Math.max(x,le):Math.max(re,x),ue=isFinite(ue)?Math.max(b,ue):Math.max(oe,b),x=bv(this),x){case Dn:break;case Hn:re=le,oe=ue;break;case Ni:x=Math.min(le/re,ue/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:bt(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,b=re/ee.width,ee=oe/ee.height,isFinite(b)||(b=1),isFinite(ee)||(ee=1),this.ua=b===1&&ee===1?x:x.copy().scale(b,ee)):this.ua!==null&&Nt.$(this.ua.Sk,a-z)&&Nt.$(this.ua.Rk,y-z)||(this.ua=Dr.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),le+z,ue+z),E.w()?(le=E.width,ue=E.height,le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=Math.max(ye.width,le),ue=Math.max(ye.height,ue),this.dc.h(0,0,le,ue)):this.dc.assign(ee)};function bv(a){var y=a.geometryStretch;return a.Rd!==null?y===Er?Hn:y:y===Er?Ev[a.figure].defaultStretch:y}be.eh=function(a,y,x,b){kl(this,a,y,x,b)},be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},be.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),ye=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*le+fe,ee=a*oe+y*ue+ye,re=x*re+b*le+fe,oe=x*oe+b*ue+ye,fe=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var Ce=le.bounds;if(ue=!1,le.type===ti.j)if(1.5>=this.strokeWidth)ue=Nt.Ve(le.startX,le.startY,le.endX,le.endY,z,ee,re,oe,E);else{if(le.startX===le.endX?(b=fe,ue=0):(y=(le.endY-le.startY)/(le.endX-le.startX),ue=fe/Math.sqrt(1+y*y),b=ue*y),y=un(),a=new Ye,Nt.Ve(le.startX+b,le.startY+ue,le.endX+b,le.endY+ue,z,ee,re,oe,a)&&y.push(a),a=new Ye,Nt.Ve(le.startX-b,le.startY-ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),a=new Ye,Nt.Ve(le.startX+b,le.startY+ue,le.startX-b,le.startY-ue,z,ee,re,oe,a)&&y.push(a),a=new Ye,Nt.Ve(le.endX+b,le.endY+ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return En(y),!1;for(ue=!0,oe=1/0,b=0;b<re;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,E.x=a.x,E.y=a.y);En(y)}else if(le.type===ti.u)ue=Nt.Ff(Ce.x-fe,Ce.y-fe,Ce.x+Ce.width+fe,Ce.y+Ce.height+fe,z,ee,re,oe,E);else if(le.type===ti.F){y=dn.allocAt(Ce.x,Ce.y,Ce.width,Ce.height).Bc(fe,fe);e:if(y.width===0)ue=Nt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,E);else if(y.height===0)ue=Nt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,E);else{if(a=y.width/2,le=y.height/2,b=y.x+a,ue=y.y+le,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-ue-x*(z-b),0>a*a*x*x+le*le-oe*oe){E.x=NaN,E.y=NaN,ue=!1;break e}fe=Math.sqrt(a*a*x*x+le*le-oe*oe),re=(-(a*a*x*oe)+a*le*fe)/(le*le+a*a*x*x)+b,a=(-(a*a*x*oe)-a*le*fe)/(le*le+a*a*x*x)+b,le=x*(re-b)+oe+ue,oe=x*(a-b)+oe+ue,Math.abs((z-re)*(z-re))+Math.abs((ee-le)*(ee-le))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(E.x=re,E.y=le):(E.x=a,E.y=oe)}else{if(re=le*le,oe=z-b,re-=re/(a*a)*oe*oe,0>re){E.x=NaN,E.y=NaN,ue=!1;break e}oe=Math.sqrt(re),re=ue+oe,oe=ue-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(E.x=z,E.y=re):(E.x=z,E.y=oe)}ue=!0}dn.free(y)}else if(le.type===ti.o){ye=Ye.alloc();var Le=re-z,Be=oe-ee,$e=Le*Le+Be*Be,Ze=z,rt=ee;if(0<$e&&Ce.contains(Ze,rt)&&(ye.x=Ze,ye.y=rt,this.ca(ye)))for(Le!==0&&.5>Math.abs(Le)?(Be*=.5/Le,Le=.5):Be!==0&&.5>Math.abs(Be)&&(Le*=.5/Be,Be=.5),Ze-=Le,rt-=Be;Ce.contains(Ze,rt);)Ze-=Le,rt-=Be;for(E.x=re,E.y=oe,Be=0;Be<le.figures.count;Be++){var st=le.figures.s[Be],ct=st.isFilled?Ze:z,Lt=st.isFilled?rt:ee,Xt=st.segments;Ce=st.startX,Le=st.startY;for(var hi=Ce,bi=Le,yi=0;yi<Xt.count;yi++){var Jn=Xt.s[yi],kn=Jn.type,Cr=Jn.endX,fr=Jn.endY,Do=!1;switch(kn){case as:hi=Cr,bi=fr;break;case ea:Do=Om(Ce,Le,Cr,fr,ct,Lt,re,oe,ye);break;case Us:Do=Nt.Eo(Ce,Le,Jn.point1X,Jn.point1Y,Jn.point2X,Jn.point2Y,Cr,fr,ct,Lt,re,oe,.6,ye);break;case Ie:Do=Nt.Eo(Ce,Le,Ce+2/3*(Jn.point1X-Ce),Le+2/3*(Jn.point1Y-Le),Cr+2/3*(Jn.point1X-Cr),fr+2/3*(Jn.point1Y-fr),Cr,fr,ct,Lt,re,oe,.6,ye);break;case Ve:case _e:kn=Jn.type===Ve?il(Jn,st):yl(Jn,st,Ce,Le);var ra=kn.length;if(ra===0){Do=Om(Ce,Le,Jn.type===Ve?Jn.centerX:Jn.endX,Jn.type===Ve?Jn.centerY:Jn.endY,ct,Lt,re,oe,ye);break}for(fr=null,Cr=0;Cr<ra;Cr++){if(fr=kn[Cr],Cr===0&&Om(Ce,Le,fr[0],fr[1],ct,Lt,re,oe,ye)){var Ks=Bm(ct,Lt,ye,$e,E);Ks<$e&&($e=Ks,ue=!0)}Nt.Eo(fr[0],fr[1],fr[2],fr[3],fr[4],fr[5],fr[6],fr[7],ct,Lt,re,oe,.6,ye)&&(Ks=Bm(ct,Lt,ye,$e,E),Ks<$e&&($e=Ks,ue=!0))}Cr=fr[6],fr=fr[7];break;default:bt("Unknown Segment type: "+kn)}Ce=Cr,Le=fr,Do&&(Do=Bm(ct,Lt,ye,$e,E),Do<$e&&($e=Do,ue=!0)),Jn.isClosed&&(Cr=hi,fr=bi,Om(Ce,Le,Cr,fr,ct,Lt,re,oe,ye)&&(Jn=Bm(ct,Lt,ye,$e,E),Jn<$e&&($e=Jn,ue=!0)))}}z=x-a,ee=b-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),E.x-=z*fe,E.y-=ee*fe,Ye.free(ye)}else bt("Unknown Geometry type: "+le.type);return ue?(this.transform.Ga(E),!0):!1};function Bm(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Om(a,y,x,b,E,z,ee,re,oe){if(Nt.$(a,x)&&Nt.$(y,b)||Nt.$(E,ee)&&Nt.$(z,re))return!1;var le=!1,ue=(E-ee)*(y-b)-(z-re)*(a-x);return ue===0?!1:(oe.x=((E*re-z*ee)*(a-x)-(E-ee)*(a*b-y*x))/ue,oe.y=((E*re-z*ee)*(y-b)-(z-re)*(a*b-y*x))/ue,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(oe.y>a||Nt.$(oe.y,a))&&(oe.y<y||Nt.$(oe.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||Nt.$(oe.x,y))&&(oe.x<a||Nt.$(oe.x,a))&&(le=!0)),le)}be.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,z=Ye.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),Ye.free(z),E},be.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Mr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var ee=Ye.alloc();if(ee.h(b,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(E,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0)))return Ye.free(ee),!0;var re=Ye.alloc(),oe=Ye.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=E,re.y=z,re.transform(x),ee.x=b,ee.y=z,ee.transform(x),y=!1,Af(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=a,ee.transform(x),Af(this,ee,re,oe)?y=!0:(re.x=b,re.y=a,re.transform(x),Af(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=z,ee.transform(x),Af(this,ee,re,oe)&&(y=!0)))),Ye.free(ee),Mr.free(x),Ye.free(re),Ye.free(oe),y};function Af(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}be.tx=function(a,y,x){function b($e,Ze){for(var rt=$e.length,st=0;st<rt;st+=2)if(Ze.zd($e[st],$e[st+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=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 ee=y.bounds,re=ee.x,oe=ee.y,le=ee.x+ee.width;if(ee=ee.y+ee.height,sr(a.x,a.y,re,oe)<=E&&sr(a.x,a.y,le,oe)<=E&&sr(a.x,a.y,re,ee)<=E&&sr(a.x,a.y,le,ee)<=E)return!0}if(re=y.startX,oe=y.startY,le=y.endX,ee=y.endY,y.type===ti.j){if(x=(re-le)*(a.x-le)+(oe-ee)*(a.y-ee),fa(a.x,a.y,re,oe,le,ee)<=(0<=(le-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?E:z))return!0}else{if(y.type===ti.u)return y=!1,x&&(y=fa(a.x,a.y,re,oe,re,ee)<=E||fa(a.x,a.y,re,oe,le,oe)<=E||fa(a.x,a.y,le,oe,le,ee)<=E||fa(a.x,a.y,re,ee,le,ee)<=E),y;if(y.type===ti.F){y=a.x-(re+le)/2,z=a.y-(oe+ee)/2;var ue=Math.abs(le-re)/2,fe=Math.abs(ee-oe)/2;if(ue===0||fe===0)return fa(a.x,a.y,re,oe,le,ee)<=E;if(x){if(a=Nt.$y(ue,fe,y,z),a*a<=E)return!0}else return!(sr(y,z,-ue,0)>=E||sr(y,z,0,-fe)>=E||sr(y,z,0,fe)>=E||sr(y,z,ue,0)>=E)}else if(y.type===ti.o){if(le=y.bounds,z=le.x,re=le.y,oe=le.x+le.width,le=le.y+le.height,a.x>oe&&a.x<z&&a.y>le&&a.y<re&&fa(a.x,a.y,z,re,z,le)>E&&fa(a.x,a.y,z,re,oe,re)>E&&fa(a.x,a.y,oe,le,z,le)>E&&fa(a.x,a.y,oe,le,oe,re)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?xh(y,a.x,a.y,z):rh(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,ue=z.startY,a.zd(ee,ue)>E)return!1;for(re=z.segments.s,oe=re.length,le=0;le<oe;le++)switch(fe=re[le],fe.type){case as:case ea:if(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E)return!1;break;case Us:var ye=un();if(Nt.Qe(ee,ue,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,ye),ee=b(ye,a),En(ye),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case Ie:if(ye=un(),Nt.ep(ee,ue,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,ye),ee=b(ye,a),En(ye),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case Ve:case _e:ye=fe.type===Ve?il(fe,z):yl(fe,z,ee,ue);var Ce=ye.length;if(Ce===0){if(ee=fe.type===Ve?fe.centerX:fe.endX,ue=fe.type===Ve?fe.centerY:fe.endY,a.zd(ee,ue)>E)return!1;break}fe=null;for(var Le=un(),Be=0;Be<Ce;Be++)if(fe=ye[Be],Le.length=0,Nt.Qe(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.8,Le),b(Le,a))return En(Le),!1;En(Le),fe!==null&&(ee=fe[6],ue=fe[7]);break;default:bt("Unknown Segment type: "+fe.type)}}return!0}}}return!1},be.qc=function(){this.ua=null},be.kq=function(){return this.ig};function mS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=kp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ls):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Fi(1-Ls.x,Ls.y)))}Dr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Cd[a.toArrow];else a.fromArrow!=="None"?b=Cd[a.fromArrow]:(b=Nt.Ze[a.figure],typeof b=="string"&&(b=Nt.Ze[b]),b===void 0&&bt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Nt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function vS(a){var y=Cd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Cd[x],y===void 0){var b=null,E;for(E in Nt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=ti.parse(Nt.um[b],!1),Cd[b]=a,x!==b&&(Cd[x]=b),b}}return typeof y=="string"?y:y instanceof ti?a:null}ft.Object.defineProperties(Dr.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),hl(this)&&(a=this.part,a!==null&&va(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=ti.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ye.allocAt(-y.x,-y.y),Ye.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&&_f(a,"Shape.fill"),a instanceof Go&&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&&_f(a,"Shape.stroke"),a instanceof Go&&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 gi(a,"value >= 0",Dr,"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"?gi(a,'"butt", "round", or "square"',Dr,"strokeCap"):(Mf(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"?gi(a,'"miter", "bevel", or "round"',Dr,"strokeJoin"):(Mf(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){Mf(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 z=a[E];0<=z&&isFinite(z)||bt("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Mf(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=Nt.Ze[a];typeof x=="function"?x=a:(x=Nt.Ze[a.toLowerCase()])||bt("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=vS(a);x===null?bt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),mS(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=vS(a);x===null?bt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),mS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Bo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Mf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Bo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Mf(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&&(Mf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Er},set:function(a){var y=this.geometryStretch;y!==a&&(Mf(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 bd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&lh(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 bd),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 bd),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 bd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Dr.prototype.intersectsRect=Dr.prototype.Yc,Dr.prototype.containedInRect=Dr.prototype.fh,Dr.prototype.getNearestIntersectionPoint=Dr.prototype.rs,Dr.prototype.getDocumentBounds=Dr.prototype.mi,Dr.prototype.getDocumentPoint=Dr.prototype.ga;var Cd=new ki,Ev=new ki;Dr.className="Shape",Dr.getFigureGenerators=function(){var a=new wi,y;for(y in Nt.Ze)y!==y.toLowerCase()&&a.add(y,Nt.Ze[y]);return a.freeze(),a},Dr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Nt.Ze;b[a]=y,b[x]=a},Dr.getArrowheadGeometries=function(){var a=new wi;for(b in Nt.um)if(Cd[b]===void 0){var y=ti.parse(Nt.um[b],!1);Cd[b]=y,y=b.toLowerCase(),y!==b&&(Cd[y]=b)}for(var x in Cd)if(x!==x.toLowerCase()){var b=Cd[x];b instanceof ti&&a.add(x,b)}return a.freeze(),a},Dr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=ti.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||bt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Cd;b[a]=x,b[y]=a};function Lv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Er,this.gg=this.fg=Bo}Lv.prototype.copy=function(){var a=new Lv;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 aa(a,y){return At.call(this),Hm||(nu=$a?new ch(null).context:null,Hm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Jt(aa,At),aa.prototype.cloneProtected=function(a){At.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 ud(a){a.da===null?a.da=new Dv:a.da.nc&&(a.da=a.da.copy())}be=aa.prototype,be.th=function(){At.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function yS(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}be.qb=function(a){a.classType===aa?this.wrap=a:At.prototype.qb.call(this,a)},be.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},be.v=function(){At.prototype.v.call(this)},be.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,z=x.height,ee=Pp(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var le=this.isStrikethrough;qa(this,a,this.xc,!0,!1,x,b),(oe||le)&&qa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ue=this.oe,fe=ue.dx-(ee*ue.m21+ue.dx);ue=ue.dy-(ee*ue.m22+ue.dy);var ye=y.scale;switch(8>(fe*fe+ue*ue)*ye*ye&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Lu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,fe=this.spacingBelow,this.flip){case So:a.translate(E,0),a.scale(-1,1);break;case Wr:a.translate(0,z),a.scale(1,-1);break;case Jo:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,ye=(y+ee+fe)*ue,z>ye&&(b=this.verticalAlignment,b=b.y*z-b.y*ye+b.offsetY),ue===1&&this.ze!==null)fe=this.Cb,fe>E&&(fe=E),this.Oj(this.ze,a,0,b+y,E,ee,fe,x,re,oe,le);else if(this.Qc!==null&&this.Qb!==null)for(ye=0;ye<ue;ye++){var Ce=this.Qc[ye];Ce>E&&(Ce=E),b+=y,this.Oj(this.Qb[ye],a,0,b,E,ee,Ce,x,re,oe,le),b+=ee+fe}switch(this.flip){case So:a.scale(-1,1),a.translate(-E,0);break;case Wr:a.scale(1,-1),a.translate(0,-z);break;case Jo:a.scale(-1,-1),a.translate(-E,-z)}}},be.Oj=function(a,y,x,b,E,z,ee,re,oe,le,ue){var fe=0;if(re)oe==="left"?fe=0:oe==="right"?fe=E-ee:oe==="center"&&(fe=(E-ee)/2),y.fillRect(x+fe,b+.25*z,ee,1);else{if(oe==="left"?fe=0:oe==="right"?fe=E:oe==="center"&&(fe=E/2),E=Im!==null?Im(this,z):.75*z,y.fillText(a,x+fe,b+E),a=z/20|0,a===0&&(a=1),oe==="right"?fe-=ee:oe==="center"&&(fe-=ee/2),le){re=Rm!==null?Rm(this,z):.8*z,oe=x+fe,le=b+re,E=x+fe+ee,re=b+re;var ye=a;y.beginPath(),y.lineWidth=ye,y.moveTo(oe,le),y.lineTo(E,re),y.stroke(),y.Se(),y instanceof Lu&&y.ad.classList.add("gojs-td")}ue&&(ue=b+z-z/2.2|0,a%2!==0&&(ue+=.5),b=x+fe,z=ue,x=x+fe+ee,ee=ue,fe=a,y.beginPath(),y.lineWidth=fe,y.moveTo(b,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof Lu&&y.ad.classList.add("gojs-td"))}},be.kk=function(a,y,x){if(!At.prototype.kk.call(this,a,y,x))return!1;if(qa(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++)$y(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,$y(a,y,!0);return!0},be.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:At.prototype.nk.call(this,a)},be.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)}},be.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;nu!==null&&ES!==z&&(ES=nu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,oe=!1;!oe;){var le=z.indexOf(`
|
|
|
`,re);le===-1&&(le=z.length,oe=!0),re=z.substr(re,le-re),this.formatting===Cp&&(re=re.trim()),ee=Math.max(ee,Mh(re)),re=le+1}z=ee}else ee=z.indexOf(`
|
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),z=Mh(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),ee=xS(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===zm&&(y=this.Ae,y=this.overflow===zm?SS(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,Pp(this)+le),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/le+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[oe],y=Math.max(1,a-y);Mh(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=bp,y=Mh(le),this.Qb[oe]=le,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+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===wS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(b,ee),js(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},be.eh=function(a,y,x,b){kl(this,a,y,x,b)};function wp(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 Mv(a,y,x,b){var E=a.formatting===Cp;E&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,Pp(a)+re);var oe=a.overflow===zm?SS(ee):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,re);else if(ee=y,a.wrap===Av){a.Le=1;var le=Mh(y);if(oe===0||le<=x)a.Cb=Math.max(a.Cb,le),wp(a,y,a.Cb),b!==null&&b.h(le,re);else{for(z=Fg(a,ee),ee=ee.substr(z.length),y=Fg(a,ee),le=Mh(z+y);0<y.length&&le<=x;)z+=y,ee=ee.substr(y.length),y=Fg(a,ee),le=z+y,E&&(le=le.trim()),le=Mh(le);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);Mh(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=bp;var ue=Mh(z);a.Cb=ue,wp(a,z,ue),b!==null&&b.h(ue,re)}}else{for(oe=0,ee.length===0&&(oe=1,wp(a,ee,0));0<ee.length;){for(y=Fg(a,ee),ee=ee.substr(y.length);Mh(y)>x;){var fe=1;for(le=Mh(y.substr(0,fe)),ue=0;le<=x;)fe++,ue=le,le=Mh(y.substr(0,fe));if(fe===1){var ye=le;z=Math.max(z,le)}else ye=ue,z=Math.max(z,ue);if(fe--,1>fe&&(fe=1),wp(a,y.substr(0,fe),ye),oe++,y=y.substr(fe),a.Gc+oe>a.maxLines)break}for(ue=Fg(a,ee),le=Mh(y+ue);0<ue.length&&le<=x;)y+=ue,ee=ee.substr(ue.length),ue=Fg(a,ee),le=y+ue,E&&(le=le.trim()),le=Mh(le);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ue.length===0?(fe=le,z=Math.max(z,le)):(fe=ue=Mh(y),z=Math.max(z,ue)),wp(a,y,fe),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,re*a.Le)}}function Fg(a,y){if(a.wrap===PS)return y.substr(0,1);for(var x=y.length,b=0,E=Sx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===CS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Mh(a){return nu===null?8*a.length:nu.measureText(a).width}function Pp(a){if(a.df!==null)return a.df;var y=a.Ae;if(nu===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>bS?x=Nv[y]:(x=1.3*nu.measureText("M").width,Nv[y]=x,bS++),a.df=x}function SS(a){if(nu===null)return 6;if(jm[a]!==void 0&&5e3>Tv)var y=jm[a];else y=nu.measureText(bp).width,jm[a]=y,Tv++;return y}function xS(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Pp(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 z=a.Gc=0,ee,re=!1;!re;){if(ee=x.indexOf(`
|
|
|
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Av){a.Le=0;var oe=ei.alloc();Mv(a,z,y,oe),E+=oe.height,ei.free(oe),a.Gc+=a.Le}else Mv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=E}ft.Object.defineProperties(aa.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"||(ud(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&&(ud(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:xs},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),ud(this),this.da.Yr=a,zl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ei.alloc();Mv(this,this.ec,999999,a);var y=a.width;ei.free(a),a=xS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),js(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:kv},set:function(a){var y=this.wrap;y!==a&&(ud(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Fv},set:function(a){var y=this.overflow;y!==a&&(ud(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&&_f(a,"TextBlock.stroke"),a instanceof Go&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Pp(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&&(ud(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&&(ud(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 bd),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 bd),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 bd),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 bd),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 bd),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&&(ud(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&&(ud(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&&(ud(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&&(ud(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Cp},set:function(a){var y=this.formatting;y!==a&&(ud(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&&gi(a,"> 0",aa,"maxLines"),ud(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 Im=null,Rm=null,Av=new Bt(aa,"None",0),wS=new Bt(aa,"WrapFit",1),kv=new Bt(aa,"WrapDesiredSize",2),PS=new Bt(aa,"WrapBreakAll",3),Fv=new Bt(aa,"OverflowClip",0),zm=new Bt(aa,"OverflowEllipsis",1),Cp=new Bt(aa,"FormatTrim",0),CS=new Bt(aa,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new ki,bS=0,jm=new ki,Tv=0,bp="...",ES="",nu=null,Hm=!1;aa.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=Dn,this.gq=Cp,this.Jq=1/0,this.$q=Fv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=xs,this.$r=kv}Dv.prototype.copy=function(){var a=new Dv;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},aa.getEllipsis=function(){return bp},aa.setEllipsis=function(a){bp=a,jm=new ki,Tv=0},aa.getBaseline=function(){return Im},aa.setBaseline=function(a){Im=a},aa.getUnderline=function(){return Rm},aa.setUnderline=function(a){Rm=a},aa.isValidFont=function(a){if(Hm||(nu=$a?new ch(null).context:null,Hm=!0),nu===null)return!0;var y=nu.font;if(a===y||a==="10px sans-serif")return!0;nu.font="10px sans-serif",nu.font=a;var x=nu.font;if(x!=="10px sans-serif")return nu.font=y,!0;nu.font="19px serif";var b=nu.font;return nu.font=a,x=nu.font,nu.font=y,x!==b},aa.FormatNone=CS,aa.FormatTrim=Cp,aa.None=Av,aa.OverflowClip=Fv,aa.OverflowEllipsis=zm,aa.WrapBreakAll=PS,aa.WrapDesiredSize=kv,aa.WrapFit=wS;function bd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}bd.prototype.copy=function(){var a=new bd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},bd.className="GradElementSettings";function iu(a,y){At.call(this),this.Eg=null,this.qo="",this.Xg=zo,this.Nk=Hn,this.Zg=this.Hd=null,this.Mk=lo,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 Ng;Jt(iu,At),iu.prototype.cloneProtected=function(a){At.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},iu.prototype.qb=function(a){a===Dn||a===Ni||a===ro?this.imageStretch=a:At.prototype.qb.call(this,a)},iu.prototype.toString=function(){return"Picture("+this.source+")#"+oo(this)};function Tg(a){a===void 0&&(a=""),a!==""?Ng[a]&&(delete Ng[a],Wm--):(Ng=new ki,Wm=0)}function LS(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 z=y.getAttribute("src")||"",ee=E.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Fs(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,z=y.getAttribute("src")||"",ee=E.Og.I(z);if(ee!==null){E=ee.length,z=un();for(var re=0;re<E;re++)z.push(ee[re]);if(y.hn)for(re=0;re<E;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);En(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}iu.prototype.hA=function(){if(this.source!==""){Tg(this.source);var a=this.source;this.source="",this.source=a}},iu.prototype.redraw=function(){this.N(),this.Uc=!0},iu.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 Ef)){var E=a instanceof Lu;b=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||b.width,re=re||b.height,oe!==0&&re!==0){var le=oe,ue=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var fe=oe,ye=re,Ce=this.Nk,Le=this.Mk;switch(Ce){case Dn:if(this.sourceRect.w())break;fe>=b.width&&(z=z+Le.offsetX+(fe*Le.x-b.width*Le.x)),ye>=b.height&&(ee=ee+Le.offsetY+(ye*Le.y-b.height*Le.y)),oe=Math.min(b.width,fe),re=Math.min(b.height,ye);break;case Hn:fe=b.width,ye=b.height;break;case Ni:case ro:Ce===Ni?(Ce=Math.min(b.height/ye,b.width/fe),fe*=Ce,ye*=Ce):Ce===ro&&(Ce=Math.max(b.height/ye,b.width/fe),fe*=Ce,ye*=Ce,fe>=b.width&&(z=(z+Le.offsetX+(fe*Le.x-b.width*Le.x)/fe)*oe),ye>=b.height&&(ee=(ee+Le.offsetY+(ye*Le.y-b.height*Le.y)/ye)*re),oe*=1/(fe/b.width),re*=1/(ye/b.height),fe=b.width,ye=b.height)}Ce=this.Df()*y.scale;var Be=fe*Ce*ye*Ce,$e=oe*re/Be,Ze=x.__goCache;Ce=null;var rt=xx;if(!E){if(x.sq&&Ze!==void 0&&4<Be&&$e>rt*rt)for(Ze.gi===null&&(AS(Ze,4,le,ue,x),AS(Ze,16,le,ue,x)),E=Ze.gi,le=E.length,ue=0;ue<le&&E[ue].ratio*E[ue].ratio<$e;ue++)Ce=E[ue];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new ch(null).context;try{E.drawImage(this.Eg,0,0)}catch(st){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(st){this.vl=!0}}if(this.vl)return}}switch(E=fe<b.width?Le.offsetX+(b.width*Le.x-fe*Le.x):0,Le=ye<b.height?Le.offsetY+(b.height*Le.y-ye*Le.y):0,this.flip){case So:a.translate(Math.min(b.width,fe),0),a.scale(-1,1);break;case Wr:a.translate(0,Math.min(b.height,ye)),a.scale(1,-1);break;case Jo:a.translate(Math.min(b.width,fe),Math.min(b.height,ye)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ze!==void 0&&Ce!==null&&Ce.ratio!==1){a.save(),y=Ce.ratio;try{a.drawImage(Ce.source,z/y,ee/y,Math.min(Ce.source.width,oe/y),Math.min(Ce.source.height,re/y),E,Le,Math.min(b.width,fe),Math.min(b.height,ye)),a instanceof Lu&&(this.bt=[z/y,ee/y,Math.min(Ce.source.width,oe/y),Math.min(Ce.source.height,re/y),E,Le,Math.min(b.width,fe),Math.min(b.height,ye)])}catch(st){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,E,Le,Math.min(b.width,fe),Math.min(b.height,ye)),a instanceof Lu&&(this.bt=[z,ee,oe,re,E,Le,Math.min(b.width,fe),Math.min(b.height,ye)])}catch(st){this.en=!1}switch(this.flip){case So:a.scale(-1,1),a.translate(-Math.min(b.width,fe),0);break;case Wr:a.scale(1,-1),a.translate(0,-Math.min(b.height,ye));break;case Jo:a.scale(-1,-1),a.translate(-Math.min(b.width,fe),-Math.min(b.height,ye))}}}}},iu.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=tu(this,!0),ee=this.Eg,re=this.qn,oe=0,le=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,le=re?+ee.height:ee.naturalHeight),isFinite(E.width)||z===Hn||z===Bi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(E.height)||z===Hn||z===er?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=le)),b=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:le),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),js(this.dc,a,y),this.Ge(0,0,a,y)},iu.prototype.eh=function(a,y,x,b){kl(this,a,y,x,b)},ft.Object.defineProperties(iu.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||bt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Gf(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new An),b!==null&&x&&Sd(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()||(Fs(this,!1),this.v())):x&&LS(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=Ng;if($a){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Wm&&(Tg(),x=Ng),b=Cn("img"),b.hn=!0,LS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Wm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new MS),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),iu.prototype.redraw=iu.prototype.redraw,iu.prototype.reloadSource=iu.prototype.hA;var Wm=0,xx=4;iu.className="Picture",Ng=new ki,iu.clearCache=Tg;function MS(){this.gi=null}function AS(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new ch(null),ee=z.context,re=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new kS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(E,0,0),a.gi.push(y))}MS.className="PictureCacheArray";function kS(a,y){this.source=a,this.ratio=y}kS.className="PictureCacheInstance";function Dg(){this.os=new ti,this.mc=null}Dg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new ti,this.mc=null};function Bg(a,y,x,b,E,z){a.mc=new Cs,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function wx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Dg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new mo(as);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Dg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new mo(ea);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function yc(a,y,x,b,E,z,ee){var re;re===void 0&&(re=!1);var oe=new mo(Us);oe.point1X=y,oe.point1Y=x,oe.point2X=b,oe.point2Y=E,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function Zm(a,y,x,b,E){var z;z===void 0&&(z=!1);var ee=new mo(Ie);ee.point1X=y,ee.point1Y=x,ee.endX=b,ee.endY=E,z&&ee.close(),a.mc.segments.add(ee)}Dg.prototype.arcTo=function(a,y,x,b,E,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new mo(Ve);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=b,re.radiusX=E,re.radiusY=z!==0?z:E,ee&&re.close(),this.mc.segments.add(re)};function Px(a,y,x,b,E,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new mo(_e,ee,re,y,x,b,E,z),oe&&y.close(),a.mc.segments.add(y)}function FS(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new Dg,y.reset(a),y)}var Gm=null;Dg.className="StreamGeometryContext";function bl(a,y){var x=a.toLowerCase(),b=Nt.Ze;b[a]=y,b[x]=a}bl("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Nt.Mf[a];return b!==void 0||(b=new ti(ti.u),b.endX=y,b.endY=x,Nt.Nf<Nt.vm&&(Nt.Mf[a]=b,Nt.Nf++)),b}),bl("Square",function(a,y,x){a="s"+y+","+x;var b=Nt.Mf[a];return b!==void 0||(b=new ti(ti.u),b.endX=y,b.endY=x,b.defaultStretch=Ni,Nt.Nf<Nt.vm&&(Nt.Mf[a]=b,Nt.Nf++)),b}),bl("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=Nt.Mf[b];if(E!==void 0)return E;var z=a*Nt.wg;return E=new ti().add(new Cs(a,0,!0).add(new mo(ea,y-a,0)).add(new mo(Us,y,a,y-z,0,y,z)).add(new mo(ea,y,x-a)).add(new mo(Us,y-a,x,y,x-z,y-z,x)).add(new mo(ea,a,x)).add(new mo(Us,0,x-a,z,x,0,x-z)).add(new mo(ea,0,a)).add(new mo(Us,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Fi(0,0,z,z),E.spot2=new Fi(1,1,-z,-z)),Nt.Nf<Nt.vm&&(Nt.Mf[b]=E,Nt.Nf++),E}),bl("Border","RoundedRectangle"),bl("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Nt.Mf[a];return b!==void 0||(b=new ti(ti.F),b.endX=y,b.endY=x,b.spot1=ih,b.spot2=Ql,Nt.Nf<Nt.vm&&(Nt.Mf[a]=b,Nt.Nf++)),b}),bl("Circle",function(a,y,x){a="c"+y+","+x;var b=Nt.Mf[a];return b!==void 0||(b=new ti(ti.F),b.endX=y,b.endY=x,b.spot1=ih,b.spot2=Ql,b.defaultStretch=Ni,Nt.Nf<Nt.vm&&(Nt.Mf[a]=b,Nt.Nf++)),b}),bl("TriangleRight",function(a,y,x){return new ti().add(new Cs(0,0).add(new mo(ea,y,.5*x)).add(new mo(ea,0,x).close())).pm(0,.25,.5,.75)}),bl("TriangleDown",function(a,y,x){return new ti().add(new Cs(0,0).add(new mo(ea,y,0)).add(new mo(ea,.5*y,x).close())).pm(.25,0,.75,.5)}),bl("TriangleLeft",function(a,y,x){return new ti().add(new Cs(y,x).add(new mo(ea,0,.5*x)).add(new mo(ea,y,0).close())).pm(.5,.25,1,.75)}),bl("TriangleUp",function(a,y,x){return new ti().add(new Cs(y,x).add(new mo(ea,0,x)).add(new mo(ea,.5*y,0).close())).pm(.25,.5,.75,1)}),bl("Triangle","TriangleUp"),bl("Diamond",function(a,y,x){return new ti().add(new Cs(.5*y,0).add(new mo(ea,0,.5*x)).add(new mo(ea,.5*y,x)).add(new mo(ea,y,.5*x).close())).pm(.25,.25,.75,.75)}),bl("LineH",function(a,y,x){return a=new ti(ti.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),bl("LineV",function(a,y,x){return a=new ti(ti.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),bl("None","Rectangle"),bl("BarH","Rectangle"),bl("BarV","Rectangle"),bl("MinusLine","LineH"),bl("PlusLine",function(a,y,x){return new ti().add(new Cs(0,x/2,!1).add(new mo(ea,y,x/2)).add(new mo(as,y/2,0)).add(new mo(ea,y/2,x)))}),bl("XLine",function(a,y,x){return new ti().add(new Cs(0,x,!1).add(new mo(ea,y,0)).add(new mo(as,0,0)).add(new mo(ea,y,x)))}),bl("LineRight",function(a,y,x){return new ti().add(new Cs(.25*y,0,!1).add(new mo(ea,.75*y,.5*x)).add(new mo(ea,.25*y,x)))}),bl("LineDown",function(a,y,x){return new ti().add(new Cs(0,.25*x,!1).add(new mo(ea,.5*y,.75*x)).add(new mo(ea,y,.25*x)))}),bl("LineLeft",function(a,y,x){return new ti().add(new Cs(.75*y,0,!1).add(new mo(ea,.25*y,.5*x)).add(new mo(ea,.75*y,x)))}),bl("LineUp",function(a,y,x){return new ti().add(new Cs(0,.75*x,!1).add(new mo(ea,.5*y,.25*x)).add(new mo(ea,y,.75*x)))}),Nt.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 Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=ys,this.ir=null,this.jr="",this.lr=Bo,this.Gq="",this.Hq=Es,this.Pq=ca,this.Kq=qr,this.Up=null,this.Cq=127,this.zr=$o,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;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 ji(a,y){a===void 0||a instanceof Rs||typeof a=="string"?Kn.call(this,a):(Kn.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 Ye(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new dn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Jt(ji,Kn),ji.prototype.cloneProtected=function(a){Kn.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},be=ji.prototype,be.Af=function(a){Kn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},be.toString=function(){var a=Nn(this.constructor)+"#"+oo(this);return this.data!==null&&(a+="("+Vn(this.data)+")"),a};function ru(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}be.th=function(){Kn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},be.gk=function(a,y,x,b,E,z,ee){var re=this.diagram;re!==null&&(a===Un&&y==="elements"?E instanceof Kn?Lf(E,function(oe){sy(re.partManager,oe),dc(re,oe)}):Sd(re,E):a===ui&&y==="elements"&&(E instanceof Kn?Lf(E,function(oe){ly(re.partManager,oe,re)}):Gf(re,E)),re.cb(a,y,x,b,E,z,ee))},be.La=function(a){if(Kn.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 Kn&&Lf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},ji.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},ji.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},ji.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 wi),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)))}}},ji.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)}},ji.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=un();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);En(y)}},ji.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 br?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ao))break e;fh(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Kn.Link),x.adornedObject=y)}if(x!==null){x.type===Kn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},ji.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Ov(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 Km(a){if(Kc(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function NS(a){if(a.G|=2097152,Kc(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||BS(a,y,x),x=a.Ib;var b=dn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),dn.free(b),Rv(a,!1)}}ji.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Mr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},ji.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=lo;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Ye.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,b,E,z);a.rotate(this.Kb,ee.x,ee.y),Ye.free(ee)}},ji.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},ji.prototype.moveTo=function(a,y,x){a=Ye.allocAt(a,y),this.move(a,x),Ye.free(a)},ji.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())},ji.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())},ji.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new wi),y.I(a)!==null)return y.I(a);var x=Kn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Sc(a,y,x,b){b===void 0&&(b=new Ye),x=x.Mc()?lo: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}ji.prototype.mi=function(a){return a===void 0&&(a=new dn),a.assign(this.actualBounds)},ji.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function TS(a){var y=Ye.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Dr?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 kf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=uS(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 z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,b-=ee/2,E-=ee/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}ji.prototype.arrange=function(){if(jl(this)===!1)NS(this);else{xd(this,!1);var a=this.Ib,y=dn.alloc();y.assign(a);var x=Vc(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;BS(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()||Nt.B(y.width,a.width)&&Nt.B(y.height,a.height)||0<=this.vw&&this.C(16),dn.free(y),Rv(this,!1)}},be=ji.prototype,be.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=dn.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),dn.free(E)}!(this.G&65536)&&a.D(y)||RS(this,b,x),x.N(),!a.w()&&!y.w()||No(a,y)||(this instanceof fi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},be.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&DS(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 Ye(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Kc(this)===!1&&jl(this)===!1&&(Km(this),NS(this)),!0};function DS(a,y,x,b,E){y===null||a instanceof Ao||(y=y.animationManager,y.zb&&ll(y,a,new Ye(b,E),x))}be.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Kc(this)||jl(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)}Km(this)},be.Av=function(){this.G&=-2097153,Km(this)};function BS(a,y,x){var b=TS(a),E=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?OS(a,y,x,E,b):IS(a,y,x,E,b):z?OS(a,y,x,E,b):ee&&IS(a,y,x,E,b),a.G|=2097152,Ye.free(b),a.Uk()}function OS(a,y,x,b,E){var z=y.x,ee=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 Ao||ll(x,a,new Ye(z,ee),y),b||y.x===z&&y.y===ee||a.g("position",new Ye(z,ee),y.copy()))}function IS(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function RS(a,y,x){zv(a,!1),a instanceof fi&&Rl(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Vc(a)?(pa(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}be.si=function(){return!0},be.Zc=function(){return!0},be.ph=function(){return!1},be.Dd=function(){return!0};function Iv(a,y,x,b){y.constructor===a.constructor||HS||(HS=!0,Oi('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Oi(" Old class: "+Nn(a.constructor)+", new class: "+Nn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,le=!1;a instanceof fi&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,le=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=z?a.G|4096:a.G&-4097,a.G=ee?a.G|524288:a.G&-524289,a instanceof fi&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=le?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)}ji.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},ji.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},ji.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},ji.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},ji.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},ji.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},ji.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},ji.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},ji.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 Kc(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function zv(a,y){a.G=y?a.G|65536:a.G&-65537}function Vc(a){return(a.G&131072)!==0}be=ji.prototype,be.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Vm(a,y){a.G=y?a.G|1048576:a.G&-1048577}be.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},be.N=function(){var a=this.diagram;a!==null&&!jl(this)&&!Kc(this)&&this.isVisible()&&this.Ib.w()&&a.N(kf(this,this.Ib))},be.v=function(){Kn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof fi&&this.labeledLink!==null&&zl(this.labeledLink),a.$b(!0))},be.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},be.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},be.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},be.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof fi&&(y=y.labeledLink,y!==null)?jv(a,y):0}be.sz=function(){return zS(this,this)};function zS(a,y){var x=y.containingGroup;return x!==null||y instanceof fi&&(x=y.labeledLink,x!==null)?zS(a,x):y}be.Td=function(a){return a instanceof br?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 fi&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}be.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof br&&Vm(y,!0),y instanceof fi){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 fi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof br&&Vm(y,!1),y instanceof fi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},ji.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof fi&&this.isLinkLabel)},ji.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 fi&&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 jS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Yc(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ao)){if(a.add(y),y instanceof fi){if(x&&y instanceof br)for(var ee=y.memberParts;ee.next();)Yc(a,ee.value,x,b,E,z);if(E!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,le=re.toNode;oe=oe===null||a.contains(oe),le=le===null||a.contains(le),(E?oe&&le:oe||le)&&Yc(a,re,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Yc(a,y.value,x,b-1,E,z)}else if(y instanceof qn)for(y=y.labelNodes;y.next();)Yc(a,y.value,x,b,E,z)}}ft.Object.defineProperties(ji.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?kr: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(ui,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Un,"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&&(ru(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&&Eu(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 Ao?this.type!==Kn.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:ca},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ru(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:qr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ru(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&&(ru(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:Es},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ru(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,jl(this)===!1&&(Km(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),DS(this,E,x,z.x,z.y),this.g("position",z,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 Ao)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Ao?this instanceof Ao&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(fh(x),x=x.copy(),x!==null&&Iv(this,x,y,a))):(z!==null&&z.jm(b,a),x=d1(x.partManager,b,a),x!==null&&(fh(x),x=x.copy(),x===null||x instanceof qn||(b=this.location.copy(),Iv(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){Iv(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&&(ru(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&&(ru(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&&(ru(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 qn?(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&&(ru(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&&(ru(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&&(ru(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:ys},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ru(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&&(ru(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&&(ru(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:Bo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ru(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&&bt("Cannot make a Group a member of itself: "+this.toString()),bt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof br&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof br&&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 z=E.wa(a!==null?a.data:null);E.mp(b,z)}}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 br){for(x=new An,Yc(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof fi)for(b=b.linksConnected;b.next();)Og(b.value)}if(this instanceof fi){for(x=this.linksConnected;x.next();)Og(x.value);x=this.labeledLink,x!==null&&Og(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Eu(y,-1,a))}}else bt("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&&(ru(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof fi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ru(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&&(ru(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:$o},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ru(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&&(ru(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&&(ru(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),ji.prototype.invalidateLayout=ji.prototype.C,ji.prototype.findCommonContainingGroup=ji.prototype.px,ji.prototype.isMemberOf=ji.prototype.Td,ji.prototype.findTopLevelPart=ji.prototype.sz,ji.prototype.findSubGraphLevel=ji.prototype.oz,ji.prototype.ensureBounds=ji.prototype.Va,ji.prototype.getDocumentBounds=ji.prototype.mi,ji.prototype.findObject=ji.prototype.fb,ji.prototype.moveTo=ji.prototype.moveTo,ji.prototype.invalidateAdornments=ji.prototype.Wb,ji.prototype.clearAdornments=ji.prototype.Ej,ji.prototype.removeAdornment=ji.prototype.Jf,ji.prototype.addAdornment=ji.prototype.bh,ji.prototype.findAdornment=ji.prototype.Pj,ji.prototype.updateTargetBindings=ji.prototype.La;var HS=!1;ji.className="Part",ji.LayoutNone=0,ji.LayoutAdded=1,ji.LayoutRemoved=2,ji.LayoutShown=4,ji.LayoutHidden=8,ji.LayoutNodeSized=16,ji.LayoutGroupLayout=32,ji.LayoutNodeReplaced=64,ji.LayoutStandard=127,ji.LayoutAll=16777215;function Ao(a,y){a===void 0||a instanceof Rs||typeof a=="string"?ji.call(this,a):(ji.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Jt(Ao,ji),Ao.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ao.prototype.updateRelationshipsFromData=function(){},Ao.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof qn&&y instanceof Dr){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 Dr&&(E.ua=a)}}},Ao.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!jl(a))},Ao.prototype.Zc=function(){return!1},Ao.prototype.gk=function(a,y,x,b,E,z,ee){if(a===Un&&y==="elements"){if(E instanceof Wl)this.$a===null&&(this.$a=E);else if(E instanceof Kn){var re=E.Nl(function(oe){return oe instanceof Wl});re instanceof Wl&&this.$a===null&&(this.$a=re)}}else a===ui&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Kn&&this.$a.rg(b)&&(this.$a=null));ji.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ao.prototype.updateAdornments=function(){},Ao.prototype.Lj=function(){},ft.Object.defineProperties(Ao.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}}}),Ao.className="Adornment";function Wv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=lu,this.er=Xm,this.Kr=this.ij=this.Nq=this.Mq=null}Wv.prototype.copy=function(){var a=new Wv;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 fi(a,y){a===void 0||a instanceof Rs||typeof a=="string"?ji.call(this,a):(ji.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new xn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Jt(fi,ji),fi.prototype.cloneProtected=function(a){ji.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},be=fi.prototype,be.Af=function(a){ji.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function xc(a){a.Ba===null?a.Ba=new Wv:a.Ba.nc&&(a.Ba=a.Ba.copy())}be.th=function(){ji.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function WS(a,y){y!==null&&(a.af===null&&(a.af=new An),a.af.add(y))}function ZS(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}be.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=ZS(this,a,y,x),a!==null&&a.Sl()},be.gk=function(a,y,x,b,E,z,ee){a===Un&&y==="elements"?this.wc=null:a===ui&&y==="elements"&&(this.wc=null),ji.prototype.gk.call(this,a,y,x,b,E,z,ee)},be.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Mu(x.fromPort),Mu(x.toPort),x.bb())}};function GS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Mu(x.fromPort),Mu(x.toPort),x.bb())}}function Mu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Mu(y.port)}}be.si=function(){return!0},fi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},fi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},fi.prototype.isVisible=function(){if(!ji.prototype.isVisible.call(this))return!1;var a=!0,y=gc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===gc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ks){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===xg&&(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},fi.prototype.Zb=function(a){ji.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)}},fi.prototype.qx=function(){var a=new An,y=new An;return KS(this,this,a,y),y.iterator};function KS(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(E?ee.fromNode===y:ee.toNode===y)&&KS(a,E?ee.toNode:ee.fromNode,x,b):b.add(ee)})}}fi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ri(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},be=fi.prototype,be.Mo=function(a){a===void 0&&(a=null);var y=new Ri(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},be.Sd=function(a){a===void 0&&(a=null);var y=new Ri(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},be.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 An,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 An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new rr(x):kr},be.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 An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new rr(x):kr},be.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 An,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new rr(x):kr},be.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Ri(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},be.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Ri(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function Ym(a,y,x){Mu(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 z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,y,x),ee!==null&&(ee.aa=z)}}!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,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Um(a,y,x){Mu(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=ee)}}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)):Ep(y)))}function Ep(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}}}fi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},be=fi.prototype,be.Vo=function(a){ji.prototype.Vo.call(this,a),a||(Ep(this),a=this.Yk,a!==null&&_S(a,this))},be.Wo=function(a){ji.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},be.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,ji.prototype.Lj.call(this)},be.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;VS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function VS(a){a.wc===null?a.wc=new wi:a.wc.clear(),a.qm(a,function(y,x){YS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function YS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Zv(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=un()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);En(x)}}}be.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},be.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}},be.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Vm(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;)Vm(y,!1),y=y.pg();return x},be.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},be.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof fi)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},be.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 An;return a(this,y),y},be.uz=function(){return US(this,this)};function US(a,y){return y=y.pg(),y===null?0:1+US(a,y)}be.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Ri(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},be.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 xn,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 xn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new rr(x):kr},be.wz=function(a){a===void 0&&(a=1/0);var y=new An;return Yc(y,this,!1,a,!0),y},fi.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 An;x.add(this),XS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gc),y.Ue=!1}};function XS(a,y,x,b,E,z,ee){if(1<b)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),XS(oe,y,x,b-1,E,z,ee)))}else JS(a,y,x,E,z,ee)}function JS(a,y,x,b,E,z){for(var ee=E===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var le=re.value;if(le.isTreeLink&&(le=le.To(a),le!==null&&le!==a)){var ue=y.contains(le);if(ue||y.add(le),ee){var fe=x?le.Oo():le.Po();oe.uv=a,fe.all(function(ye){return function(Ce){return Ce===ye.uv||!Ce.isTreeExpanded}}(oe))&&b.Aj(le,E),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,ue||JS(le,y,x,b,E,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}fi.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 An;x.add(this),QS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gc),y.Ue=!1}};function QS(a,y,x,b,E,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),le={};oe.next();){var ue=oe.value;if(ue.isTreeLink&&(re||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!re){ue.Zb(!0),ue.oh();var fe=x?ue.Oo():ue.Po();le.vv=a,fe.all(function(ye){return function(Ce){return Ce===ye.vv||!Ce.isTreeExpanded}}(le))&&E.Cj(ue,z)}(2<b||ue.wasTreeExpanded)&&(ue.wasTreeExpanded=!1,QS(ue,y,x,b-1,E,z,ee))}le={vv:le.vv}}a.isTreeExpanded=!0}ft.Object.defineProperties(fi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Xm},set:function(a){var y=this.portSpreading;y!==a&&(xc(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&&Rl(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:lu},set:function(a){typeof a=="number"&&(a=new Wi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),xc(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Rl(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&&(xc(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&&(xc(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&&(xc(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,z=x.model;if(E!==null&&z.ri()){var ee=z.wa(b);ee!==void 0&&z.Qx(E,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(_S(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),zl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&VS(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&&(xc(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))}}}),fi.prototype.expandTree=fi.prototype.expandTree,fi.prototype.collapseTree=fi.prototype.collapseTree,fi.prototype.findTreeParts=fi.prototype.wz,fi.prototype.findTreeChildrenNodes=fi.prototype.Ou,fi.prototype.findTreeChildrenLinks=fi.prototype.Qo,fi.prototype.findTreeLevel=fi.prototype.uz,fi.prototype.findTreeParentChain=fi.prototype.vz,fi.prototype.findTreeParentNode=fi.prototype.pg,fi.prototype.findTreeParentLink=fi.prototype.kh,fi.prototype.findCommonTreeParent=fi.prototype.gz,fi.prototype.findTreeRoot=fi.prototype.xz,fi.prototype.isInTreeOf=fi.prototype.Nz,fi.prototype.findPort=fi.prototype.ns,fi.prototype.findLinksTo=fi.prototype.kz,fi.prototype.findLinksBetween=fi.prototype.jz,fi.prototype.findNodesInto=fi.prototype.Oo,fi.prototype.findNodesOutOf=fi.prototype.Po,fi.prototype.findNodesConnected=fi.prototype.Mu,fi.prototype.findLinksInto=fi.prototype.Sd,fi.prototype.findLinksOutOf=fi.prototype.Mo,fi.prototype.findExternalTreeLinksConnected=fi.prototype.qx,fi.prototype.invalidateConnectedLinks=fi.prototype.Bd,fi.prototype.invalidateLinkBundle=fi.prototype.Lz;var bx=new Bt(fi,"SpreadingNone",10),Xm=new Bt(fi,"SpreadingEvenly",11),Gv=new Bt(fi,"SpreadingPacked",12);fi.className="Node",fi.SpreadingNone=bx,fi.SpreadingEvenly=Xm,fi.SpreadingPacked=Gv;function br(a,y){a===void 0||a instanceof Rs||typeof a=="string"?fi.call(this,a):(fi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new An,this.$a=null,this.Sc=new Aa,this.Sc.group=this,this.gl=new An,this.tb=this.$p=null,y&&Object.assign(this,y)}Jt(br,fi),br.prototype.cloneProtected=function(a){fi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Wl});y instanceof Wl?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())},be=br.prototype,be.Af=function(a){fi.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 fi)x.Bd(y);else if(x instanceof qn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},be.gk=function(a,y,x,b,E,z,ee){if(a===Un&&y==="elements"){if(E instanceof Wl)this.$a===null?this.$a=E:this.$a!==E&&bt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Kn){var re=E.Nl(function(oe){return oe instanceof Wl});re instanceof Wl&&(this.$a===null?this.$a=re:this.$a!==re&&bt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ui&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Kn&&this.$a.rg(b)&&(this.$a=null));fi.prototype.gk.call(this,a,y,x,b,E,z,ee)},be.Xl=function(a,y){fi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Kn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Kn&&(a=a.Pb()),this.tb===null&&(this.tb=new dn),a.mi(this.tb),a instanceof Dr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},be.eh=function(a,y,x,b){this.nf=this.$a,fi.prototype.eh.call(this,a,y,x,b)},be.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof qn||y.Va()}),fi.prototype.Va.call(this)},be.si=function(){if(!fi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof fi){if(y.isVisible()&&jl(y))return!1}else if(y instanceof qn&&y.isVisible()&&jl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof br&&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 qn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Vv(a,y){if(a.Gn.remove(y)){y instanceof br&&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 qn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}be.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)}fi.prototype.Lj.call(this)},br.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=nn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},br.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=nn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},br.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))},be=br.prototype,be.Bd=function(a){var y=(this.U&65536)!==0;if(fi.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()?(Mu(x.fromPort),Mu(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Mu(x.fromPort),Mu(x.toPort),x.bb()))}}},be.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 An,b=y.iterator;b.next();){var E=b.value;if(E instanceof fi)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},be.iz=function(){var a=this.Rj();a.add(this);for(var y=new An,x=a.iterator;x.next();){var b=x.value;if(b instanceof fi)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},be.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new An;return a(this,y),y},be.Rj=function(){var a=new An;return Yc(a,this,!0,0,!0),a.remove(this),a},be.Zb=function(a){fi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},br.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();$S(this,y,a,this),a.Ue=!1}};function $S(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof br&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,$S(z,y,x,b)),z instanceof fi)z.Bd(y),x.Aj(z,b);else if(z instanceof qn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}br.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();qS(this,y,a,this),a.Ue=!1}};function qS(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof br&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,qS(z,y,x,b)),z instanceof fi)z.Bd(y),x.Cj(z,b);else if(z instanceof qn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}br.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,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=Ye.alloc(),fi.prototype.move.call(this,a,y),a=new An,y=this.Rj().iterator;y.next();)E=y.value,E instanceof qn&&(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 fi&&E.isLinkLabel)){var ee=E.position,re=E.location;ee.w()?(z.x=ee.x+b,z.y=ee.y+x,E.position=z):re.w()&&(z.x=re.x+b,z.y=re.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof qn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ee=E.position,z.x=ee.x+b,z.y=ee.y+x,z.w()?E.move(z):E.bb(),Uv(E)&&E.bb());Ye.free(z)}},ft.Object.defineProperties(br.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&&bt("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&&(xc(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&&(xc(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&&(xc(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&&(xc(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)}}}),br.prototype.expandSubGraph=br.prototype.expandSubGraph,br.prototype.collapseSubGraph=br.prototype.collapseSubGraph,br.prototype.findSubGraphParts=br.prototype.Rj,br.prototype.findContainingGroupChain=br.prototype.hz,br.prototype.findExternalNodesConnected=br.prototype.iz,br.prototype.findExternalLinksConnected=br.prototype.Lu,br.prototype.ensureBounds=br.prototype.Va,br.className="Group";function Wl(a){At.call(this),this.yb=dl,this.ko=new dn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Jt(Wl,At),Wl.prototype.cloneProtected=function(a){At.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Wl.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return la(0,0,y.width,y.height,a.x,a.y)},Wl.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof br||a instanceof Ao)||bt("Placeholder is not inside a Group or Adornment."),a instanceof br){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(js(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=Ye.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ye.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof Dr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Kn.Link&&(re=z.ga(a.category==="Selection"?Es:a.locationSpot,Ye.alloc()),a.location=re,Ye.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(Es,Ye.alloc()),le=dn.allocAt(a.x,a.y,0,0),le.Ye(z.ga(ml,a)),le.Ye(z.ga(uu,a)),le.Ye(z.ga(El,a)),js(y,le.width+b||0,le.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Ye.free(a),dn.free(le)):(js(y,le+b||0,ee+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Wl.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Wl.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof br&&!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=dn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof br&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),dn.free(x),b&&y instanceof br&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Wl.prototype.computeMemberBounds=function(a){if(!(this.part instanceof br))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof qn&&(!y.computesBoundsIncludingLinks||Ru(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<b&&(b=re.top),re.right>E&&(E=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},ft.Object.defineProperties(Wl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Wi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Wl.className="Placeholder";function qn(a){ji.call(this,Kn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Zl,this.Om=0,this.Qm=Zl,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new xn().freeze(),this.Tg=this.Mg=null,this.ml=new dn,this.ua=new ti,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ye,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Jt(qn,ji),qn.prototype.cloneProtected=function(a){ji.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())},be=qn.prototype,be.Af=function(a){ji.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&&Mu(y),a=a.toPort,a!==null&&Mu(a)},be.qb=function(a){a.classType===qn?(a.value&2)===2?this.routing=a:a===ju||a===Pc||a===Rg?this.curve=a:a===Ap||a===e0||a===t0?this.adjusting=a:a!==Qv&&a!==Zl&&bt("Unknown Link enum value for a Link property: "+a):ji.prototype.qb.call(this,a)},be.Xc=function(){this.ba===null&&(this.ba=new gp)},be.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),jl(a)||Kc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),jl(a)||Kc(a)))},be.zv=function(){return!1},be.Av=function(){},be.Zc=function(){return!1},qn.prototype.computeAngle=function(a,y,x){return qn.computeAngle(y,x)},qn.computeAngle=function(a,y){switch(a){default:case Zl:a=0;break;case kp:a=y;break;case Fp:a=y+90;break;case Np:a=y-90;break;case $v:a=y+180;break;case n0:a=Nt.bp(y),90<a&&270>a&&(a-=180);break;case Tp:a=Nt.bp(y+90),90<a&&270>a&&(a-=180);break;case Dp:a=Nt.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=Nt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Nt.bp(a)};function Og(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&&Vv(x,a),a.Ah=y,y!==null&&Kv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),E(a,x,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}be=qn.prototype,be.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ji.prototype.oh.call(this)},be.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},be.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function _S(a,y){a.wd===null&&(a.wd=new An),a.wd.add(y),a.v()}be.Vo=function(a){if(ji.prototype.Vo.call(this,a),Ff(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Ym(x,this,b)}Lp(this)}},be.Wo=function(a){if(ji.prototype.Wo.call(this,a),Ff(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}Mp(this)}},be.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))},qn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},qn.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?ji.prototype.move.call(this,a,!1):(a=Ye.allocAt(x.x+b,x.y+E),ji.prototype.move.call(this,a,!1),Ye.free(a)),wc(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},qn.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},qn.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},qn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Fr),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()===ju))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()===ju){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Nt.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 z=this.i(x+2);x=this.i(x+3),Nt.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ee=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=ee[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.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*(z.x-y.x),y.y+x*(z.y-y.y))),a},qn.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()===ju))return this.ua.wx(.5);if(this.computeCurve()===ju&&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),Nt.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 z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,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)},be=qn.prototype,be.i=function(a){return this.Nb.s[a]},be.dd=function(a,y){this.Nb.cd(a,y)},be.L=function(a,y,x){this.Nb.cd(a,new Ye(y,x))},be.Kz=function(a,y){this.Nb.Gb(a,y)},be.m=function(a,y,x){this.Nb.Gb(a,new Ye(y,x))},be.ne=function(a){this.Nb.add(a)},be.yf=function(a,y){this.Nb.add(new Ye(a,y))},be.pv=function(a){this.Nb.mb(a)},be.Fj=function(){this.Nb.clear()};function wc(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 xn,z=a.Nb.iterator;z.next();){var ee=z.value;E.add(new Ye(ee.x+y,ee.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.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),zl(a)),b?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&na(ee.animationManager,a,E),a.g("points",z,E)}}be.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},be.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,ee=0;ee<z;ee++){var re=E[ee];x=Math.min(re.x,x),b=Math.min(re.y,b)}re=ee=1/0;for(var oe=y.s,le=oe.length,ue=0;ue<le;ue++){var fe=oe[ue];ee=Math.min(fe.x,ee),re=Math.min(fe.y,re),fe.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(ue=E[z],fe=oe[z],ue.x-x!==fe.x-ee||ue.y-b!==fe.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&na(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},be.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Jm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),_m(a,!1))}be.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())}},be.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()}}},qn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ng||(ng=new fi,ng.desiredSize=Ro,ng.Va()),this.defaultFromPoint&&(ng.location=this.defaultFromPoint,ng.Va(),y=a=ng)):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?(ig||(ig=new fi,ig.desiredSize=Ro,ig.Va()),this.defaultToPoint&&(ig.location=this.defaultToPoint,ig.Va(),E=b=ig)):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 z=this.pointsCount,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var re=Ig(ee),oe=Ig(x),le=y===E&&y!==null,ue=this.isOrthogonal,fe=this.curve===ju;this.Wf=le&&!ue?fe=!0:!1;var ye=this.computeAdjusting()===Zl||le;if(!ue&&!le&&re&&oe){if(re=!1,!ye&&3<=z&&(ye=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),re=this.adjustPoints(0,ye,z-1,oe))&&(ye=this.getLinkPoint(a,y,ee,!0,!1,b,E),oe=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,ye,z-1,oe)),!re)if(this.Fj(),fe){z=this.getLinkPoint(a,y,ee,!0,!1,b,E),ye=this.getLinkPoint(b,E,x,!1,!1,a,y),re=ye.x-z.x,oe=ye.y-z.y,le=this.computeCurviness(),fe=ue=0;var Ce=z.x+re/3,Le=z.y+oe/3,Be=Ce,$e=Le;Nt.B(oe,0)?$e=0<re?$e-le:$e+le:(ue=-re/oe,fe=Math.sqrt(le*le/(ue*ue+1)),0>le&&(fe=-fe),Be=(0>oe?-1:1)*fe+Ce,$e=ue*(Be-Ce)+Le),Ce=z.x+2*re/3,Le=z.y+2*oe/3;var Ze=Ce,rt=Le;Nt.B(oe,0)?rt=0<re?rt-le:rt+le:(Ze=(0>oe?-1:1)*fe+Ce,rt=ue*(Ze-Ce)+Le),this.Fj(),this.ne(z),this.yf(Be,$e),this.yf(Ze,rt),this.ne(ye),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,ye=E,b=this.getLinkPoint(a,y,ee,!0,!1,z,ye),E=this.getLinkPoint(z,ye,x,!1,!1,a,y),this.hasCurviness()?(ye=E.x-b.x,x=E.y-b.y,ee=this.computeCurviness(),a=b.x+ye/2,y=b.y+x/2,z=a,re=y,Nt.B(x,0)?re=0<ye?re-ee:re+ee:(ye=-ye/x,z=Math.sqrt(ee*ee/(ye*ye+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=ye*(z-a)+y),this.ne(b),this.yf(z,re),this.ne(E)):(this.ne(b),this.ne(E),re=dn.alloc(),y.mi(re),oe=re.ca(E),ye.mi(re),le=re.ca(b),(oe||le)&&(ee=y.ga($m(ee),new Ye),this.dd(0,this.getLinkPointFromPoint(a,y,ee,E,!0,ee)),x=ye.ga($m(x),new Ye),this.dd(1,this.getLinkPointFromPoint(z,ye,x,b,!1,x))),dn.free(re))}else{fe=this.isAvoiding,ye&&(ue&&fe||le)&&this.Fj();var st=le?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ue,b,E),Ce=Be=Le=0,(ue||!re||le)&&($e=this.computeEndSegmentLength(a,y,ee,!0),Ce=this.getLinkDirection(a,y,fe,ee,!0,ue,b,E),le&&(re||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(Ce-=ue?90:30,0>st&&(Ce-=180)),0>Ce?Ce+=360:360<=Ce&&(Ce-=360),le&&($e+=Math.abs(st)*(ue?1:2)),Ce===0?Le=$e:Ce===90?Be=$e:Ce===180?Le=-$e:Ce===270?Be=-$e:(Le=$e*Math.cos(Ce*Math.PI/180),Be=$e*Math.sin(Ce*Math.PI/180)),ee.Mc()&&le&&($e=y.ga(lo,Ye.alloc()),Ze=Ye.allocAt($e.x+1e3*Le,$e.y+1e3*Be),this.getLinkPointFromPoint(a,y,$e,Ze,!0,fe),Ye.free($e),Ye.free(Ze))),$e=this.getLinkPoint(b,E,x,!1,ue,a,y);var ct=rt=Ze=0;if(ue||!oe||le){var Lt=this.computeEndSegmentLength(b,E,x,!1);ct=this.getLinkDirection(b,E,$e,x,!1,ue,a,y),le&&(oe||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(ct+=ue?0:30,0>st&&(ct+=180)),0>ct?ct+=360:360<=ct&&(ct-=360),le&&(Lt+=Math.abs(st)*(ue?1:2)),ct===0?Ze=Lt:ct===90?rt=Lt:ct===180?Ze=-Lt:ct===270?rt=-Lt:(Ze=Lt*Math.cos(ct*Math.PI/180),rt=Lt*Math.sin(ct*Math.PI/180)),x.Mc()&&le&&(x=E.ga(lo,Ye.alloc()),ee=Ye.allocAt(x.x+1e3*Ze,x.y+1e3*rt),this.getLinkPointFromPoint(b,E,x,ee,!1,$e),Ye.free(x),Ye.free(ee))}x=fe,(ue||!re||le)&&(x=new Ye(fe.x+Le,fe.y+Be)),ee=$e,(ue||!oe||le)&&(ee=new Ye($e.x+Ze,$e.y+rt)),!ye&&!ue&&re&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,$e):!ye&&!ue&&oe&&3<z&&this.adjustPoints(1,x,z-1,$e)?this.dd(0,fe):!ye&&(ue?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,fe),this.dd(z-1,$e)):(this.Fj(),this.ne(fe),(ue||!re||le)&&this.ne(x),ue&&this.addOrthoPoints(x,Ce,ee,ct,a,b),(ue||!oe||le)&&this.ne(ee),this.ne($e))}return!0};function Yv(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}qn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Ye),a===null||y===null)return z.assign(x),z;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 ee=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*E;var re=-a.m12*E,oe=-a.m21*E,le=a.m11*E,ue=E*(a.m21*a.dy-a.m22*a.dx),fe=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ee+b.y*oe+ue,b=b.x*re+b.y*le+fe,ee=x.x*ee+x.y*oe+ue,x=x.x*re+x.y*le+fe}return y.Sj(E,b,ee,x,z),a!==null&&z.transform(a),z};function Qm(a,y){var x=y.Zn;return x===null&&(x=new rg,x.port=y,x.node=y.part,y.Zn=x),s1(x,a)}qn.prototype.getLinkPoint=function(a,y,x,b,E,z,ee,re){if(re===void 0&&(re=new Ye),x.sb()&&!Ig(x))return y.ga(x,re),re;if(x.$c()){var oe=Qm(this,y);if(oe!==null){if(re.assign(oe.Zo),E&&this.routing===t1){var le=Qm(this,ee);if(le!==null&&oe.Gl<le.Gl){oe=Ye.alloc(),le=Ye.alloc();var ue=new dn(y.ga(Es,oe),y.ga(ml,le)),fe=this.computeSpot(!b,ee);a=this.getLinkPoint(z,ee,fe,!b,E,a,y,le),(x.Hf(Pu)||x.Hf(vl))&&a.y>=ue.y&&a.y<=ue.y+ue.height?re.y=a.y:(x.Hf(Zu)||x.Hf(Ml))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(re.x=a.x),Ye.free(oe),Ye.free(le)}}return re}}return x=y.ga($m(x),Ye.alloc()),this.pointsCount>(E?6:2)?(ee=b?this.i(1):this.i(this.pointsCount-2),E&&(ee=Yv(x,ee.copy()))):(oe=this.computeSpot(!b,ee),z=Ye.alloc(),ee=ee.ga($m(oe),z),E&&(ee=Yv(x,ee)),Ye.free(z)),this.getLinkPointFromPoint(a,y,x,ee,b,re),Ye.free(x),re},qn.prototype.getLinkDirection=function(a,y,x,b,E,z,ee,re){e:if(b.sb())var oe=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()&&(oe=Qm(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(lo,Ye.alloc()),this.pointsCount>(z?6:2)?(re=E?this.i(1):this.i(this.pointsCount-2),re=z?Yv(oe,re.copy()):x):(x=Ye.alloc(),re=re.ga(lo,x),Ye.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,Ye.free(oe),oe=x}return b.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),Ig(b)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},qn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Qm(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)},qn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=lo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Bo?Ya:y)):(a=y||this.toPort,a===null?a=lo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Bo?Ya:y)),a};function Ig(a){return a===Ya||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:lo}qn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Zl&&4<this.pointsCount?this.computeMidPoint(new Ye):(a=y.Zn,a=a!==null?s1(a,this):null,a!==null?a.Zo:y.ga(lo))},qn.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},qn.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=Mr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return mv(this,y,x,E),z===void 0&&Mr.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,le=oe.length;le--;){var ue=oe[le];if(ue.visible||ue===this.locationObject){var fe=ue.actualBounds,ye=this.naturalBounds;if(!(fe.x>ye.width||fe.y>ye.height||0>fe.x+fe.width||0>fe.y+fe.height)){if(fe=Mr.alloc(),fe.set(ee),ue instanceof Kn)re=ue.Cf(a,y,x,b,E,fe);else if(this.path===ue){if(ue instanceof Dr)if(re=a,ye=b,ue.pickable===!1)re=!1;else if(fe.multiply(ue.transform),ye)e:{var Ce=re,Le=fe;if(ue.fh(Ce,Le))re=!0;else{if(Le===void 0&&(Le=ue.transform,Ce.Re(ue.actualBounds))){re=!0;break e}re=Ce.left,ye=Ce.right;var Be=Ce.top;Ce=Ce.bottom;var $e=Ye.alloc(),Ze=Ye.alloc(),rt=Ye.alloc(),st=Mr.alloc();st.set(Le),st.bv(ue.transform),st.Vj(),Ze.x=ye,Ze.y=Be,Ze.transform(st),$e.x=re,$e.y=Be,$e.transform(st),Le=!1,Af(ue,$e,Ze,rt)?Le=!0:($e.x=ye,$e.y=Ce,$e.transform(st),Af(ue,$e,Ze,rt)?Le=!0:(Ze.x=re,Ze.y=Ce,Ze.transform(st),Af(ue,$e,Ze,rt)?Le=!0:($e.x=re,$e.y=Be,$e.transform(st),Af(ue,$e,Ze,rt)&&(Le=!0)))),Mr.free(st),Ye.free($e),Ye.free(Ze),Ye.free(rt),re=Le}}else re=ue.fh(re,fe)}else re=Gs(ue,a,b,fe);re&&(ye=ue,y!==null&&(ye=y(ue)),ye&&(x===null||x(ye))&&E.add(ye)),Mr.free(fe)}}}return z===void 0&&Mr.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Mr.free(ee),!1},qn.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?ju:this.curve},qn.prototype.computeCorner=function(){if(this.curve===ju)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},qn.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},qn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=i1;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,z=b.margin,ee=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===kp||b===n0||b===$v?a=Math.max(a,E):b===Np||b===Dp||b===Fp||b===Tp?a=Math.max(a,ee):(y=y.ga(lo).ab(x.ga(lo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*E)+1)),this.curve===ju&&(a*=1.333)}}return a},qn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Zl&&x.bb()}},qn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=n1;var y=this.Sf;if(y!==null){for(var x=un(),b=0,E=y.links,z=0;z<E.length;z++){var ee=E[z].computeSpacing();x.push(ee),b+=ee}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),En(x)}}return a},qn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},qn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},qn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===e0)return!1;E===t0&&(E=Ap)}switch(E){case e0:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(b)){E=z.x,z=z.y;var re=ee.x-E,oe=ee.y-z,le=Math.sqrt(re*re+oe*oe);if(!Nt.$(le,0)){if(Nt.$(re,0))var ue=0>oe?-Math.PI/2:Math.PI/2;else ue=Math.atan(oe/Math.abs(re)),0>re&&(ue=Math.PI-ue);ee=y.x;var fe=y.y;re=b.x-ee;var ye=b.y-fe;for(oe=Math.sqrt(re*re+ye*ye),Nt.$(re,0)?ye=0>ye?-Math.PI/2:Math.PI/2:(ye=Math.atan(ye/Math.abs(re)),0>re&&(ye=Math.PI-ye)),le=oe/le,ue=ye-ue,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-E,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),Nt.$(y,0)||(Nt.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ue,y*=le,this.L(a,ee+y*Math.cos(re),fe+y*Math.sin(re)));this.dd(x,b)}}return!0;case t0:if(z=this.i(a),fe=this.i(x),!z.Xa(y)||!fe.Xa(b)){E=z.x,z=z.y,ee=fe.x,fe=fe.y,le=(ee-E)*(ee-E)+(fe-z)*(fe-z),re=y.x,ue=y.y,oe=b.x,ye=b.y;var Ce=1;if(oe-re!==0){var Le=(ye-ue)/(oe-re);Ce=Math.sqrt(1+1/(Le*Le))}else Le=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Be=y.x,$e=y.y,Ze=.5;le!==0&&(Ze=((E-Be)*(E-ee)+(z-$e)*(z-fe))/le);var rt=E+Ze*(ee-E),st=z+Ze*(fe-z);y=Math.sqrt((Be-rt)*(Be-rt)+($e-st)*($e-st)),$e<Le*(Be-rt)+st&&(y=-y),0<Le&&(y=-y),Be=re+Ze*(oe-re),Ze=ue+Ze*(ye-ue),Le!==0?(y=Be+y/Ce,this.L(a,y,Ze-(y-Be)/Le)):this.L(a,Be,Ze+y)}this.dd(x,b)}return!0;case Ap:e:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,ue=z.y,fe=re,le=ue,Nt.B(E.y,z.y)?Nt.B(z.x,ee.x)?ue=y.y:Nt.B(z.y,ee.y)&&(re=y.x):Nt.B(E.x,z.x)&&(Nt.B(z.y,ee.y)?re=y.x:Nt.B(z.x,ee.x)&&(ue=y.y)),this.L(a+1,re,ue),E=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,ue=z.y,oe=re,ye=ue,Nt.B(E.y,z.y)?Nt.B(z.x,ee.x)?ue=b.y:Nt.B(z.y,ee.y)&&(re=b.x):Nt.B(E.x,z.x)&&(Nt.B(z.y,ee.y)?re=b.x:Nt.B(z.x,ee.x)&&(ue=b.y)),this.L(x-1,re,ue),Uv(this))){this.L(a+1,fe,le),this.L(x-1,oe,ye),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},qn.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var ee=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 re=E.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Bp,Bp),oe.Bc(Bp,Bp),re.Ye(a),oe.Ye(x);var le=Ye.alloc(),ue=Ye.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&oe.right>a.x||b===90&&x.y>a.y&&oe.right>a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),b===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(le.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ue.x=le.x,ue.y=x.y):b===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=le.y)):(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===180&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===180||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(b===90||b===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===0?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=le.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&oe.left<a.x||b===90&&x.y>a.y&&oe.left<a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),b===0?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(le.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(b===270&&a.y<oe.top||b===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ue.x=le.x,ue.y=x.y):b===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=le.y)):(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===0&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(b===0||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(b===90||b===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,b===180?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=le.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&oe.bottom>a.y||b===0&&x.x>a.x&&oe.bottom>a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),b===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(le.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ue.x=x.x,ue.y=le.y):b===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ue.x=le.x)):(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===270&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(b===0||b===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===90?re.right:Math.max(re.right,oe.right)),ue.x=le.x,ue.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&oe.top<a.y||b===0&&x.x>a.x&&oe.top<a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),b===90?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(le.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(b===180&&a.x<oe.left||b===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ue.x=x.x,ue.y=le.y):b===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ue.x=le.x)):(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===90&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(b===0||b===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,b===270?re.right:Math.max(re.right,oe.right)),ue.x=le.x,ue.y=x.y)));var fe=x;if(this.isAvoiding){var ye=this.diagram;if(ye===null||E===z||this.layer.isTemporary||!Xo(ye)||re.ca(fe)&&!z.Td(E)||oe.ca(a)&&!E.Td(z))y=!1;else{var Ce=Va(ye,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ce.Yj(Math.min(a.x,le.x),Math.min(a.y,le.y),Math.abs(a.x-le.x),Math.abs(a.y-le.y))&&Ce.Yj(Math.min(le.x,ue.x),Math.min(le.y,ue.y),Math.abs(le.x-ue.x),Math.abs(le.y-ue.y))&&Ce.Yj(Math.min(ue.x,fe.x),Math.min(ue.y,fe.y),Math.abs(ue.x-fe.x),Math.abs(ue.y-fe.y)))y=!1;else{E=a,z=fe;var Le=x=null;if(ye.isVirtualized){ye=Ce.bounds.copy(),ye.Bc(-Ce.Ho,-Ce.Go);var Be=Ye.alloc();zg(Ce,a.x,a.y)||(Nt.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,a.x,a.y,le.x,le.y,Be)?(x=a=Be.copy(),y=Be.ab(le)):Nt.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,le.x,le.y,ue.x,ue.y,Be)?(x=a=Be.copy(),y=Be.ab(ue)):Nt.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,ue.x,ue.y,fe.x,fe.y,Be)&&(x=a=Be.copy(),y=Be.ab(fe))),zg(Ce,fe.x,fe.y)||(Nt.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,fe.x,fe.y,ue.x,ue.y,Be)?(Le=fe=Be.copy(),b=ue.ab(Be)):Nt.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,ue.x,ue.y,le.x,le.y,Be)?(Le=fe=Be.copy(),b=le.ab(Be)):Nt.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,le.x,le.y,a.x,a.y,Be)&&(Le=fe=Be.copy(),b=a.ab(Be))),Ye.free(Be)}re=re.copy().ed(oe),re.Bc(Ce.Ho*Ce.Os,Ce.Go*Ce.Os),o1(Ce,a,y,fe,b,re,!0),oe=Ed(Ce,fe.x,fe.y),!Ce.abort&&oe>=jg&&(r1(Ce),re.Bc(Ce.Ho*Ce.Hx,Ce.Go*Ce.Ix),o1(Ce,a,y,fe,b,re,!1),oe=Ed(Ce,fe.x,fe.y)),!Ce.abort&&oe<jg&&Ed(Ce,fe.x,fe.y)!==Cc?(Xv(this,Ce,fe.x,fe.y,b,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=fe.y):(re.x=fe.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?Nt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):Nt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Ce.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Nt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):Nt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Ce.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Le!==null&&(b===0||b===180?this.yf(z.x,Le.y):this.yf(Le.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ue.copy())),Ye.free(le),Ye.free(ue)}},qn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Uv(a){if(a.diagram===null||!a.isAvoiding||!Xo(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Va(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Xv(a,y,x,b,E,z,ee){var re=y.Ho,oe=y.Go,le=Ed(y,x,b),ue=x,fe=b;for(E===0?ue+=re:E===90?fe+=oe:E===180?ue-=re:fe-=oe,E!==ee&&le>Nf&&Ed(y,ue,fe)!==le-1&&(Ed(y,x-re,b)===le-1?(E=180,ue=x-re,fe=b):Ed(y,x+re,b)===le-1?(E=0,ue=x+re,fe=b):Ed(y,x,b-oe)===le-1?(E=270,ue=x,fe=b-oe):Ed(y,x,b+oe)===le-1&&(E=90,ue=x,fe=b+oe));le>Nf&&Ed(y,ue,fe)===le-1;)x=ue,b=fe,E===0?ue+=re:E===90?fe+=oe:E===180?ue-=re:fe-=oe,--le;z?le>Nf&&(E===180||E===0?x=Math.floor(x/re)*re+re/2:(E===90||E===270)&&(b=Math.floor(b/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,b=Math.floor(b/oe)*oe+oe/2),le>Nf&&(z=E,ee=x,ue=b,E===0?(z=90,ue+=oe):E===90?(z=180,ee-=re):E===180?(z=270,ue-=oe):E===270&&(z=0,ee+=re),Ed(y,ee,ue)===le-1?Xv(a,y,ee,ue,z,!1,z):(ee=x,ue=b,E===0?(z=270,ue-=oe):E===90?(z=0,ee+=re):E===180?(z=90,ue+=oe):E===270&&(z=180,ee-=re),Ed(y,ee,ue)===le-1&&Xv(a,y,ee,ue,z,!1,z))),a.yf(x,b)}qn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=fa(y,a,x.x,x.y,b.x,b.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=fa(y,a,b.x,b.y,x.x,x.y);b=x,re<E&&(z=ee,E=re)}return z},qn.prototype.qc=function(){this.lk=!1,this.v()},qn.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 Dr&&(E.ua=this.ua)}}},qn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Ff(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(),z=E.copy();b=this.Nb.s;var ee=this.computeCurve();if(ee===ju&&3<=y&&!Nt.$(this.smoothness,0))if(y===3){var re=this.i(1);b=Math.min(E.x,re.x);var oe=Math.min(E.y,re.y);re=this.i(2),b=Math.min(b,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),oe=this.i(b),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);b=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=b[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,oe=z.y}if(b-=this.su.x,oe-=this.su.y,E.x-=b,E.y-=oe,y!==2||Ff(this)){if(a.type=ti.o,re=FS(a),this.computeShortLength(!0)!==0&&(E=eg(this,E,!0,z)),Bg(re,E.x,E.y,!1),ee===ju&&3<=y&&!Nt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-oe,E=this.i(2).copy(),E.x-=b,E.y-=oe,this.computeShortLength(!1)!==0&&(E=eg(this,E,!1,z)),yc(re,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Ye.allocAt(b,oe),x=Ye.alloc(),x.assign(this.i(1)),z=Ye.allocAt(b,oe),E=Ye.allocAt(b,oe),ee=this.i(0);for(var le,ue=this.smoothness/3,fe=1;fe<this.pointsCount-1;fe++){le=this.i(fe);var ye=ee,Ce=le,Le=this.i(Jv(this,le,fe,!1));if((!Nt.$(ye.x,Ce.x)||!Nt.$(Ce.x,Le.x))&&(!Nt.$(ye.y,Ce.y)||!Nt.$(Ce.y,Le.y))){var Be=ue;isNaN(Be)&&(Be=this.smoothness/3);var $e=ye.x;ye=ye.y;var Ze=Ce.x;Ce=Ce.y;var rt=Le.x;Le=Le.y;var st=Be*qm($e,ye,Ze,Ce);Be*=qm(Ze,Ce,rt,Le),Nt.$(ye,Ce)&&Nt.$(Ze,rt)&&(Ze>$e?Le>Ce?(z.x=Ze-st,z.y=Ce-st,E.x=Ze+Be,E.y=Ce+Be):(z.x=Ze-st,z.y=Ce+st,E.x=Ze+Be,E.y=Ce-Be):Le>Ce?(z.x=Ze+st,z.y=Ce-st,E.x=Ze-Be,E.y=Ce+Be):(z.x=Ze+st,z.y=Ce+st,E.x=Ze-Be,E.y=Ce-Be)),Nt.$($e,Ze)&&Nt.$(Ce,Le)&&(Ce>ye?(rt>Ze?(z.x=Ze-st,z.y=Ce-st,E.x=Ze+Be):(z.x=Ze+st,z.y=Ce-st,E.x=Ze-Be),E.y=Ce+Be):(rt>Ze?(z.x=Ze-st,z.y=Ce+st,E.x=Ze+Be):(z.x=Ze+st,z.y=Ce+st,E.x=Ze-Be),E.y=Ce-Be)),(Nt.$($e,Ze)&&Nt.$(Ze,rt)||Nt.$(ye,Ce)&&Nt.$(Ce,Le))&&($e=.5*($e+rt),ye=.5*(ye+Le),z.x=$e,z.y=ye,E.x=$e,E.y=ye),(fe===1||fe===2&&Nt.$(ee.x,this.i(0).x)&&Nt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+le.x),x.y=.5*(ee.y+le.y)),yc(re,x.x-b,x.y-oe,z.x-b,z.y-oe,le.x-b,le.y-oe),y.set(z),x.set(E),ee=le}}le=ee.x,ee=ee.y,ue=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ue=eg(this,ue.copy(),!1,$r)),le=.5*(le+ue.x),ee=.5*(ee+ue.y),yc(re,E.x-b,E.y-oe,le-b,ee-oe,ue.x-b,ue.y-oe),Ye.free(y),Ye.free(x),Ye.free(z),Ye.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=eg(this,ee.copy(),!1,$r)),yc(re,z.x-b,z.y-oe,E.x-b,E.y-oe,ee.x-b,ee.y-oe);else{for(z=Ye.alloc(),z.assign(this.i(0)),E=Ye.alloc(),E.assign(z),ee=this.computeCorner(),fe=1,le=0;fe<y;){if(fe=Jv(this,z,fe,1<fe),ue=this.i(fe),fe>=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=eg(this,ue.copy(),!1,$r)),tg(this,re,-b,-oe,z,ue,x);else if(le===0)for(fe=1;fe<y;)E.assign(z),ue=this.i(fe++),tg(this,re,-b,-oe,z,ue,x),z.assign(ue);break}if(le=Jv(this,ue,fe+1,fe<y-3),fe=-b,$e=-oe,ye=ue,Ze=this.i(le),Be=x,Nt.B(z.y,ye.y)&&Nt.B(ye.x,Ze.x))if(Le=Math.min(ee,Math.abs(ye.x-E.x)/2),Le=st=Math.min(Le,Math.abs(Ze.y-ye.y)/2),Nt.B(Le,0))tg(this,re,fe,$e,z,ye,Be),z.assign(ye);else{var ct=ye.x,Lt=ye.y;Ce=ct,rt=Lt,ye.x>z.x?ct=ye.x-Le:ct=ye.x+Le,Ze.y>ye.y?rt=ye.y+st:rt=ye.y-st,Ze=Ye.allocAt(ct,Lt),tg(this,re,fe,$e,z,Ze,Be),Ye.free(Ze),Zm(re,ye.x+fe,ye.y+$e,Ce+fe,rt+$e),z.h(Ce,rt)}else Nt.B(z.x,ye.x)&&Nt.B(ye.y,Ze.y)?(Le=Math.min(ee,Math.abs(ye.y-E.y)/2),Le=st=Math.min(Le,Math.abs(Ze.x-ye.x)/2),Nt.B(st,0)?(tg(this,re,fe,$e,z,ye,Be),z.assign(ye)):(ct=ye.x,Lt=ye.y,Ce=ct,rt=Lt,ye.y>z.y?Lt=ye.y-Le:Lt=ye.y+Le,Ze.x>ye.x?Ce=ye.x+st:Ce=ye.x-st,Ze=Ye.allocAt(ct,Lt),tg(this,re,fe,$e,z,Ze,Be),Ye.free(Ze),Zm(re,ye.x+fe,ye.y+$e,Ce+fe,rt+$e),z.h(Ce,rt))):(tg(this,re,fe,$e,z,ye,Be),z.assign(ye));E.assign(ue),fe=le}Ye.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=b,re.y-=oe,this.computeShortLength(!0)!==0&&(E=eg(this,E,!0,z)),this.computeShortLength(!1)!==0&&(re=eg(this,re,!1,z)),a.type=ti.j,a.startX=E.x,a.startY=E.y,a.endX=re.x,a.endY=re.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),Nt.$(a,0)?y:Nt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function eg(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Jv(a,y,x,b){for(var E=a.pointsCount,z=y;Nt.$(y.x,z.x)&&Nt.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Nt.$(y.x,z.x)&&!Nt.$(y.y,z.y))return x-1;for(var ee=z;Nt.$(y.x,z.x)&&Nt.$(z.x,ee.x)&&(!b||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Nt.$(y.y,z.y)&&Nt.$(z.y,ee.y)&&(!b||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=E)return E-1;ee=a.i(x++)}return x-2}qn.prototype.computeJumpLength=function(){return 10};function tg(a,y,x,b,E,z,ee){if(!ee&&Ff(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],le=0;if(a.isVisible()&&(le=Ex(a,E,z,oe)),0<le){if(Nt.B(E.y,z.y))if(E.x<z.x)for(var ue=0;ue<le;){var fe=Math.max(E.x,Math.min(oe[ue++]-re,z.x-ee));y.lineTo(fe+x,z.y+b);for(var ye=fe+x,Ce=Math.min(fe+ee,z.x);ue<le&&(fe=oe[ue],fe<Ce+ee);)ue++,Ce=Math.min(fe+re,z.x);fe=z.y-ee+b,Ce+=x;var Le=z.y+b;a.curve===Pc?Bg(y,Ce,Le,!1):yc(y,ye,fe,Ce,fe,Ce,Le)}else for(--le;0<=le;){for(ue=Math.min(E.x,Math.max(oe[le--]+re,z.x+ee)),y.lineTo(ue+x,z.y+b),ye=ue+x,fe=Math.max(ue-ee,z.x);0<=le&&(ue=oe[le],ue>fe-ee);)le--,fe=Math.max(ue-re,z.x);ue=z.y-ee+b,fe+=x,Ce=z.y+b,a.curve===Pc?Bg(y,fe,Ce,!1):yc(y,ye,ue,fe,ue,fe,Ce)}else if(Nt.B(E.x,z.x))if(E.y<z.y)for(ue=0;ue<le;){for(fe=Math.max(E.y,Math.min(oe[ue++]-re,z.y-ee)),y.lineTo(z.x+x,fe+b),ye=fe+b,fe=Math.min(fe+ee,z.y);ue<le&&(Ce=oe[ue],Ce<fe+ee);)ue++,fe=Math.min(Ce+re,z.y);Ce=z.x-ee+x,Le=z.x+x,fe+=b,a.curve===Pc?Bg(y,Le,fe,!1):yc(y,Ce,ye,Ce,fe,Le,fe)}else for(--le;0<=le;){for(ue=Math.min(E.y,Math.max(oe[le--]+re,z.y+ee)),y.lineTo(z.x+x,ue+b),ye=ue+b,ue=Math.max(ue-ee,z.y);0<=le&&(fe=oe[le],fe>ue-ee);)le--,ue=Math.max(fe-re,z.y);fe=z.x-ee+x,Ce=z.x+x,ue+=b,a.curve===Pc?Bg(y,Ce,ue,!1):yc(y,fe,ye,fe,ue,Ce,ue)}}}y.lineTo(z.x+x,z.y+b)}function Ex(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof qn){if(oe===a)return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length;if(oe.isVisible()&&Ff(oe)){var le=oe.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(oe)&&(le=oe.path,le!==null&&le.Ed()&&Lx(y,x,b,oe))}}}}}return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length}function Lx(a,y,x,b){for(var E=Nt.B(a.y,y.y),z=b.pointsCount,ee=b.i(0),re=Ye.alloc(),oe=1;oe<z;oe++){var le=b.i(oe);if(oe<z-1){var ue=b.i(oe+1);if(ee.y===le.y&&le.y===ue.y){if(le.x>ee.x&&ue.x>=le.x||le.x<ee.x&&ue.x<=le.x)continue}else if(ee.x===le.x&&le.x===ue.x&&(le.y>ee.y&&ue.y>=le.y||le.y<ee.y&&ue.y<=le.y))continue}e:{ue=a.x;var fe=a.y,ye=y.x,Ce=y.y,Le=ee.x;ee=ee.y;var Be=le.x,$e=le.y;if(Nt.B(ue,ye)){if(!Nt.B(fe,Ce)&&Nt.B(ee,$e)&&Math.min(fe,Ce)<ee&&Math.max(fe,Ce)>ee&&Math.min(Le,Be)<ue&&Math.max(Le,Be)>ue&&!Nt.B(Le,Be)){re.x=ue,re.y=ee,ue=!0;break e}}else if(Nt.B(fe,Ce)&&Nt.B(Le,Be)&&Math.min(ue,ye)<Le&&Math.max(ue,ye)>Le&&Math.min(ee,$e)<fe&&Math.max(ee,$e)>fe&&!Nt.B(ee,$e)){re.x=Le,re.y=fe,ue=!0;break e}re.x=0,re.y=0,ue=!1}ue&&(E?x.push(re.x):x.push(re.y)),ee=le}Ye.free(re)}function Ff(a){return a=a.curve,a===Rg||a===Pc}function _m(a,y){(y||Ff(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()))}qn.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 z=!1;E=E.Pa.s;for(var ee=E.length,re=0;re<ee;re++){var oe=E[re];oe instanceof qn&&(oe===this?z=!0:z&&e1(this,oe,a))}}else if(b)for(z=E.Pa.s,E=z.length,ee=0;ee<E;ee++)re=z[ee],re instanceof qn&&e1(this,re,a)}}}}};function e1(a,y,x){if(y!==null&&y.lk&&y.fd&&Ff(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}qn.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},qn.prototype.isVisible=function(){if(!ji.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},qn.prototype.Zb=function(a){if(ji.prototype.Zb.call(this,a),a&&_m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},qn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Ap:this.qk};function Lp(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,z=a=null,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];(le.ef===y&&le.ff===b&&le.uf===x&&le.vf===E||le.ef===x&&le.ff===E&&le.uf===y&&le.vf===b)&&(z===null?z=le:(a===null&&(a=[],a.push(z)),a.push(le)))}if(a!==null){for(z=ZS(y,x,b,E),z===null&&(z=new r0(y,b,x,E),WS(y,z),WS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Mp(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()))}qn.prototype.ph=function(){return!0},ft.Object.defineProperties(qn.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&&Um(y,this,x),Mp(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,z=this.fromPortChanged;if(z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.uf!==a&&Ym(a,this,E),Lp(this),this.C(1)),this.g("fromNode",y,a),Og(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Mu(x),Mp(this),this.ff=a;var b=this.fromPort;b!==null&&Mu(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),Lp(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&&Um(y,this,x),Mp(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,z=this.toPortChanged;if(z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee)}a!==null&&(this.ef!==a&&Ym(a,this,E),Lp(this),this.C(1)),this.g("toNode",y,a),Og(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Mu(x),Mp(this),this.vf=a;var b=this.toPort;b!==null&&Mu(b);var E=this.diagram;if(E!==null){var z=this.data,ee=E.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee))),Lp(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:Bo},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&&Mu(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&&gi(a,">= 0",qn,"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:Bo},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&&Mu(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&&gi(a,">= 0",qn,"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?kr: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&&Ep(this.fromNode),this.toNode!==null&&Ep(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Dr?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()===ju&&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 z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Nt.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var ee=this.i(z-2);z+3>=b&&(z=b-1);var re=this.i(z-1),oe=this.i(z);Nt.Dl(E.x,E.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),E=oe}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Ye)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Jm(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);Nt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Nt.$(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 xn,b=0;b<a.length/2;b++)E=new Ye(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!Kt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new xn,b=0;b<a.length;b++)E=a[b],x.add(new Ye(E.x,E.y).freeze())}}else if(a instanceof xn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else bt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Jm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&na(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||!Ig(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ig(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),_m(this,y===Pc||y===Rg||a===Pc||a===Rg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),_m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),qn.prototype.invalidateOtherJumpOvers=qn.prototype.Xo,qn.prototype.findClosestSegment=qn.prototype.ez,qn.prototype.updateRoute=qn.prototype.vg,qn.prototype.invalidateRoute=qn.prototype.bb,qn.prototype.rollbackRoute=qn.prototype.rv,qn.prototype.commitRoute=qn.prototype.zf,qn.prototype.startRoute=qn.prototype.uh,qn.prototype.clearPoints=qn.prototype.Fj,qn.prototype.removePoint=qn.prototype.pv,qn.prototype.addPointAt=qn.prototype.yf,qn.prototype.addPoint=qn.prototype.ne,qn.prototype.insertPointAt=qn.prototype.m,qn.prototype.insertPoint=qn.prototype.Kz,qn.prototype.setPointAt=qn.prototype.L,qn.prototype.setPoint=qn.prototype.dd,qn.prototype.getPoint=qn.prototype.i,qn.prototype.getOtherPort=qn.prototype.Cz,qn.prototype.getOtherNode=qn.prototype.To;var ng=null,ig=null,Qv=new Bt(qn,"Normal",1),Mx=new Bt(qn,"Orthogonal",2),Ax=new Bt(qn,"AvoidsNodes",6),t1=new Bt(qn,"AvoidsNodesStraight",7),Zl=new Bt(qn,"None",0),ju=new Bt(qn,"Bezier",9),Pc=new Bt(qn,"JumpGap",10),Rg=new Bt(qn,"JumpOver",11),Ap=new Bt(qn,"End",17),e0=new Bt(qn,"Scale",18),t0=new Bt(qn,"Stretch",19),kp=new Bt(qn,"OrientAlong",21),Fp=new Bt(qn,"OrientPlus90",22),Np=new Bt(qn,"OrientMinus90",23),$v=new Bt(qn,"OrientOpposite",24),n0=new Bt(qn,"OrientUpright",25),Tp=new Bt(qn,"OrientPlus90Upright",26),Dp=new Bt(qn,"OrientMinus90Upright",27),i0=new Bt(qn,"OrientUpright45",28),n1=16,i1=14,Bp=8;qn.className="Link",qn.Normal=Qv,qn.Orthogonal=Mx,qn.AvoidsNodes=Ax,qn.AvoidsNodesStraight=t1,qn.None=Zl,qn.Bezier=ju,qn.JumpGap=Pc,qn.JumpOver=Rg,qn.End=Ap,qn.Scale=e0,qn.Stretch=t0,qn.OrientAlong=kp,qn.OrientPlus90=Fp,qn.OrientMinus90=Np,qn.OrientOpposite=$v,qn.OrientUpright=n0,qn.OrientPlus90Upright=Tp,qn.OrientMinus90Upright=Dp,qn.OrientUpright45=i0,qn.EndSegmentStep=8,qn.CurvinessStart=n1,qn.SpacingMin=i1,qn.OrthoShortCut=Bp;function r0(a,y,x,b){Ir(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}r0.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},r0.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))}},r0.className="LinkBundle";function Op(a){Ir(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}Op.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 zg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Ed(a,y,x){return zg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):qv}function r1(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]>=Nf&&(x[b]=qv)}Op.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 z=y;z<=x;z++)if(E[z]===Cc)return!1}return!0};function Ld(a,y,x,b,E,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var le=y|0,ue=x|0,fe=a.ac[le][ue];if(fe>=Nf&&fe<jg)for(E?ue+=b:le+=b,fe+=1;z<=le&&le<=ee&&re<=ue&&ue<=oe&&!(fe>=a.ac[le][ue]);)a.ac[le][ue]=fe,fe+=1,E?ue+=b:le+=b;if(le=E?ue:le,E)if(0<b)for(x+=b;x<le;x+=b)Ld(a,y,x,1,!E,z,ee,re,oe),Ld(a,y,x,-1,!E,z,ee,re,oe);else for(x+=b;x>le;x+=b)Ld(a,y,x,1,!E,z,ee,re,oe),Ld(a,y,x,-1,!E,z,ee,re,oe);else if(0<b)for(y+=b;y<le;y+=b)Ld(a,y,x,1,!E,z,ee,re,oe),Ld(a,y,x,-1,!E,z,ee,re,oe);else for(y+=b;y>le;y+=b)Ld(a,y,x,1,!E,z,ee,re,oe),Ld(a,y,x,-1,!E,z,ee,re,oe)}}function o0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var le=Cc,ue=Nf;for(a.ac[y][x]=ue;le===Cc&&y>z&&y<ee&&x>re&&x<oe;)ue+=1,a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function a0(a,y,x,b,E,z,ee,re,oe){y|=0,x|=0;var le=Cc,ue=jg;for(a.ac[y][x]=ue;le===Cc&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function o1(a,y,x,b,E,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(zg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var le=b.x,ue=b.y;if(zg(a,le,ue))if(le-=a.Nd,le/=a.rc,ue-=a.Od,ue/=a.sc,1>=Math.abs(re-le)&&1>=Math.abs(oe-ue))a.abort=!0;else{var fe=z.x;b=z.y,y=z.x+z.width;var ye=z.y+z.height;fe-=a.Nd,fe/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,ye-=a.Od,ye/=a.sc,z=Math.max(0,Math.min(a.di,fe|0)),y=Math.min(a.di,Math.max(0,y|0)),fe=Math.max(0,Math.min(a.ei,b|0)),ye=Math.min(a.ei,Math.max(0,ye|0)),b=a.ac,re|=0,oe|=0,le|=0,ue|=0;var Ce=x===0||x===90?1:-1;if(x=x===90||x===270,b[re][oe]===Cc?(o0(a,re,oe,Ce,x,z,y,fe,ye),o0(a,re,oe,1,!x,z,y,fe,ye),o0(a,re,oe,-1,!x,z,y,fe,ye)):o0(a,re,oe,Ce,x,re,oe,re,oe),b[le][ue]===Cc?(a0(a,le,ue,E===0||E===90?1:-1,E===90||E===270,z,y,fe,ye),a0(a,le,ue,1,!(E===90||E===270),z,y,fe,ye),a0(a,le,ue,-1,!(E===90||E===270),z,y,fe,ye)):a0(a,le,ue,Ce,x,le,ue,le,ue),x=un(),ee&&a1(a,le,ue,E,re,oe,x))for((x[0]!==le||x[1]!==ue)&&(x.unshift(ue),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=Nf,E=x[x.length-2],ee=x[x.length-1],b[E][ee]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],ee=x[z+3],y=x[z],le=x[z+1];y>E?E++:y<E?E--:le>ee?ee++:le<ee&&ee--,b[E][ee]=a++,E!==y||ee!==le;);else Ld(a,re,oe,1,!1,z,y,fe,ye),Ld(a,re,oe,-1,!1,z,y,fe,ye),Ld(a,re,oe,1,!0,z,y,fe,ye),Ld(a,re,oe,-1,!0,z,y,fe,ye);En(x)}}}}function a1(a,y,x,b,E,z,ee){for(var re=a.ac,oe=y,le=x;;){if(oe===E&&le===z)return!0;var ue=oe,fe=le;if(b===0)if(ue<E)ue++;else break;else if(b===90)if(fe<z)fe++;else break;else if(b===180)if(ue>E)ue--;else break;else if(fe>z)fe--;else break;var ye=re[ue][fe];if(ye===0||ye===_v)break;oe=ue,le=fe}for(;;){if(ue=b,fe=oe,ye=le,b===0?ye<z?(ue=90,ye++):ye>z&&(ue=270,ye--):b===90?fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--):b===180?ye<z?(ue=90,ye++):ye>z&&(ue=270,ye--):fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--),fe=re[fe][ye],ue!==b&&fe!==0&&fe!==_v){if(ee.push(oe),ee.push(le),a1(a,oe,le,ue,E,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][le]=_v,b===0){if(oe===y)return!1;oe--}else if(b===90){if(le===x)return!1;le--}else if(b===180){if(oe===y)return!1;oe++}else{if(le===x)return!1;le++}}}ft.Object.defineProperties(Op.prototype,{bounds:{get:function(){return new dn(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 Cc=0,Nf=1,jg=999999,qv=jg+1,_v=jg+2;Op.className="PositionArray";function rg(){Ir(this),this.port=this.node=null,this.pe=[],this.ap=!1}rg.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 kx(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}rg.prototype.Sl=function(){this.pe.length=0};function s1(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,z=E instanceof br?E:null;if(z===null||z.isSubGraphExpanded)var ee=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}b=z,ee=b.Lu()}z=a.pe.length=0;var re=a.port.ga(Es,Ye.alloc()),oe=a.port.ga(ml,Ye.alloc());for(E=dn.allocAt(re.x,re.y,0,0),E.Ye(oe),Ye.free(re),Ye.free(oe),re=Ye.allocAt(E.x+E.width/2,E.y+E.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var le=ee.value;if(le.isVisible()&&le.fromPort!==le.toPort){var ue=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(b),fe=le.computeSpot(ue,a.port);if(fe.$c()&&(ue=ue?le.toPort:le.fromPort,ue!==null)){var ye=ue.part;if(ye!==null){var Ce=ye.findVisibleNode();Ce!==null&&Ce!==ye&&(ye=Ce,ue=ye.port),ue=le.computeOtherPoint(ye,ue),ye=re.ab(ue),ye-=oe,0>ye?ye+=360:360<=ye&&(ye-=360),fe=kx(E,fe,ye,le.isOrthogonal),fe===0?(fe=4,180<ye&&(ye-=360)):fe===90?(fe=8,270<ye&&(ye-=360)):fe===180?fe=2:(fe=1,90>ye&&(ye+=360)),Ce=a.pe[z],Ce===void 0?(Ce=new ey(le,ye,fe),a.pe[z]=Ce):(Ce.link=le,Ce.angle=ye,Ce.Nc=fe),Ce.hv.set(ue),z++}}}}for(Ye.free(re),a.pe.sort(rg.prototype.j),oe=a.pe.length,b=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==b&&(b=ee.Nc,re=0),ee.Uo=re,re++);for(b=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==b&&(b=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,fe=a.port,b=a.node.portSpreading,re=Ye.alloc(),oe=Ye.alloc(),ee=Ye.alloc(),le=Ye.alloc(),fe.ga(Es,re),fe.ga(uu,oe),fe.ga(ml,ee),fe.ga(El,le),Ce=ye=ue=fe=0,b===Gv)for(var Le=0;Le<z.length;Le++){var Be=z[Le];if(Be!==null){var $e=Be.link.computeThickness();switch(Be.Nc){case 8:ye+=$e;break;case 2:Ce+=$e;break;case 1:fe+=$e;break;default:case 4:ue+=$e}}}var Ze=Le=0,rt=1,st=Be=0;for($e=0;$e<z.length;$e++){var ct=z[$e];if(ct!==null){if(Le!==ct.Nc){switch(Le=ct.Nc,Le){case 8:var Lt=ee;Ze=le;break;case 2:Lt=le,Ze=re;break;case 1:Lt=re,Ze=oe;break;default:case 4:Lt=oe,Ze=ee}switch(Be=Ze.x-Lt.x,st=Ze.y-Lt.y,Le){case 8:ye>Math.abs(Be)?(rt=Math.abs(Be)/ye,ye=Math.abs(Be)):rt=1;break;case 2:Ce>Math.abs(st)?(rt=Math.abs(st)/Ce,Ce=Math.abs(st)):rt=1;break;case 1:fe>Math.abs(Be)?(rt=Math.abs(Be)/fe,fe=Math.abs(Be)):rt=1;break;default:case 4:ue>Math.abs(st)?(rt=Math.abs(st)/ue,ue=Math.abs(st)):rt=1}Ze=0}var Xt=ct.Zo;if(b===Gv){switch(ct=ct.link.computeThickness(),ct*=rt,Xt.set(Lt),Le){case 8:Xt.x=Lt.x+Be/2+ye/2-Ze-ct/2;break;case 2:Xt.y=Lt.y+st/2+Ce/2-Ze-ct/2;break;case 1:Xt.x=Lt.x+Be/2-fe/2+Ze+ct/2;break;default:case 4:Xt.y=Lt.y+st/2-ue/2+Ze+ct/2}Ze+=ct}else{var hi=.5;b===Xm&&(hi=(ct.Uo+1)/(ct.Gl+1)),Xt.x=Lt.x+Be*hi,Xt.y=Lt.y+st*hi}}}for(Ye.free(re),Ye.free(oe),Ye.free(ee),Ye.free(le),Lt=a.pe,z=0;z<Lt.length;z++)b=Lt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,dn.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}rg.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},rg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ya,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 z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},rg.className="Knot";function ey(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Ye,this.Gl=this.Uo=0,this.Zo=new Ye,this.Ju=0}ey.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()},ey.className="LinkInfo";function Aa(a){Ir(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ye(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Aa.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},Aa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Aa.prototype.qb=function(){},Aa.prototype.toString=function(){var a=Nn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Aa.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},Aa.prototype.createNetwork=function(){return new sa(this)},Aa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Yt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof br?y.lg(a.memberParts):y.lg(a.iterator),y},Aa.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var 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")}},Aa.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},Aa.prototype.doLayout=function(a){var y=new An;a instanceof Yt?(Uc(this,y,a.nodes,!0,this.rh,!0,!1,!0),Uc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof br?Uc(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Aa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;Ip(re);var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(b,E),re instanceof br&&(re.rh=!1),b+=Math.max(le,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,b=x,E+=ee+20,ee=0):z++}},Aa.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof qn)&&(Ip(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,b),re instanceof br&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(oe,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Aa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof br&&a.rh)};function Uc(a,y,x,b,E,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;b&&!oe.isTopLevel||E!==null&&!E(oe)||!oe.canLayout()||(z&&oe instanceof fi?oe.isLinkLabel||(oe instanceof br&&oe.layout===null?Uc(a,y,oe.memberParts,!1,E,z,ee,re):(Ip(oe),y.add(oe))):ee&&oe instanceof qn?y.add(oe):!re||!oe.Zc()||oe instanceof fi||(Ip(oe),y.add(oe)))}}function Ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Aa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new dn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Aa.prototype.ex=function(a){var y=new An;return a instanceof Yt?(Uc(this,y,a.nodes,!0,null,!0,!0,!0),Uc(this,y,a.links,!0,null,!0,!0,!0),Uc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof br?Uc(this,y,a.memberParts,!1,null,!0,!0,!0):Uc(this,y,a.iterator,!1,null,!0,!0,!0),y},Aa.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(Es),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},ft.Object.defineProperties(Aa.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Aa.prototype.collectParts=Aa.prototype.ex,Aa.prototype.getLayoutBounds=Aa.prototype.ni,Aa.prototype.invalidateLayout=Aa.prototype.C,Aa.className="Layout";function sa(a){Ir(this),this.Sc=a,this.wf=new An,this.ye=new An,this.Es=new wi,this.zs=new wi}sa.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 An,this.ye=new An,this.Es=new wi,this.zs=new wi},sa.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},sa.prototype.createVertex=function(){return new zs(this)},sa.prototype.createEdge=function(){return new Au(this)},sa.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof fi)return!ee.isLinkLabel;if(ee instanceof qn){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof fi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof br&&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 qn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},sa.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},be=sa.prototype,be.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},be.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},be.Iu=function(a){if(a!==null&&l1(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 l1(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}be.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},be.ki=function(a){return a===null?null:this.Es.I(a)},be.Bo=function(a){if(a!==null){ty(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ty(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}}be.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},be.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ny(this,a)}};function ny(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}be.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},be.Lo=function(a){return a===null?null:this.zs.I(a)},be.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},be.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))}},be.Ko=function(){for(var a=un(),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]);En(a)},sa.prototype.deleteArtificialVertexes=function(){for(var a=un(),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=un(),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]);En(a),En(y)};function Fx(a){for(var y=un(),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]);En(y)}sa.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Fx(this),this.Ko()),a=new xn;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,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){l1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ny(a,E),ty(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ny(a,x),ty(y,x),iy(a,y,x.toVertex))}}sa.prototype.dz=function(){for(var a=new An,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},ft.Object.defineProperties(sa.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}}}),sa.prototype.findAllParts=sa.prototype.dz,sa.prototype.splitIntoSubNetworks=sa.prototype.Zx,sa.prototype.deleteSelfEdges=sa.prototype.Ko,sa.prototype.reverseEdge=sa.prototype.gm,sa.prototype.linkVertexes=sa.prototype.Zj,sa.prototype.findEdge=sa.prototype.Lo,sa.prototype.deleteLink=sa.prototype.Yy,sa.prototype.deleteEdge=sa.prototype.Mj,sa.prototype.addLink=sa.prototype.Dy,sa.prototype.addEdge=sa.prototype.Bo,sa.prototype.findVertex=sa.prototype.ki,sa.prototype.deleteNode=sa.prototype.Zy,sa.prototype.deleteVertex=sa.prototype.Iu,sa.prototype.addNode=sa.prototype.Bl,sa.prototype.addVertex=sa.prototype.dh,sa.prototype.addParts=sa.prototype.lg,sa.className="LayoutNetwork";function zs(a){Ir(this),this.ob=a,this.j=new dn(0,0,10,10).freeze(),this.o=new Ye(5,5).freeze(),this.Sh=this.ub=null,this.tg=new xn,this.mg=new xn}zs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new xn,this.mg=new xn},zs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+oo(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 z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},zs.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Kt(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 br)){x=dn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(lo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),dn.free(x);return}dn.free(x)}a.moveTo(y.x,y.y)}},zs.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},zs.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},zs.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},zs.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ry(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}ft.Object.defineProperties(zs.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=dn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),dn.free(x),!(a instanceof br)&&(a=a.locationObject.ga(lo),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new An,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new An,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new An,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 xn,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}}}),zs.prototype.deleteDestinationEdge=zs.prototype.Jl,zs.prototype.addDestinationEdge=zs.prototype.zl,zs.prototype.deleteSourceEdge=zs.prototype.Kl,zs.prototype.addSourceEdge=zs.prototype.Cl,zs.className="LayoutVertex",zs.standardComparer=ry,zs.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 Au(a){Ir(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Au.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Au.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+oo(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},Au.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Au.prototype.commit=function(){},Au.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},ft.Object.defineProperties(Au.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)}}}),Au.prototype.getOtherVertex=Au.prototype.Ax,Au.className="LayoutEdge";function ol(a){Aa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ei(NaN,NaN).freeze(),this.tf=new ei(10,10).freeze(),this.Jb=Rp,this.Rb=l0,this.nd=zp,this.hd=u1,a&&Object.assign(this,a)}Jt(ol,Aa),ol.prototype.cloneProtected=function(a){Aa.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},ol.prototype.qb=function(a){a.classType===ol?a===zp||a===h0||a===oy||a===u0?this.sorting=a:a===l0||a===Kh?this.arrangement=a:a===Rp||a===s0?this.alignment=a:bt("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},ol.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 br)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 zp:E.sort(this.comparer);break;case h0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=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 re=y,oe=x,le=dn.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var fe=ue=0;fe<E.length;fe++){var ye=this.ni(E[fe],le);ue=Math.max(ue,ye.width)}if(ue=Math.max(ue+re,1),fe=Math.max(this.cellSize.height,1),!isFinite(fe))for(ye=fe=0;ye<E.length;ye++){var Ce=this.ni(E[ye],le);fe=Math.max(fe,Ce.height)}fe=Math.max(fe+oe,1),ye=this.arrangement;for(var Le=Ce=this.arrangementOrigin.x,Be=this.arrangementOrigin.y,$e=0,Ze=0,rt=0;rt<E.length;rt++){var st=E[rt],ct=this.ni(st,le),Lt=Math.ceil((ct.width+re)/ue)*ue,Xt=Math.ceil((ct.height+oe)/fe)*fe;switch(ye){case Kh:var hi=Math.abs(Le-ct.width);break;default:hi=Le+ct.width}switch((0<z&&$e>z-1||0<ee&&0<$e&&hi-Ce>ee)&&(b.push(new dn(0,Be,ee+re,Ze)),$e=0,Le=Ce,Be+=Ze,Ze=0),Ze=Math.max(Ze,Xt),ye){case Kh:ct=-ct.width;break;default:ct=0}switch(st.moveTo(Le+ct,Be),ye){case Kh:Le-=Lt;break;default:Le+=Lt}$e++}b.push(new dn(0,Be,ee+re,Ze)),dn.free(le);break;case Rp:for(oe=ee,ue=z,fe=y,ye=x,ee=dn.alloc(),Ce=Math.max(this.cellSize.width,1),z=Be=le=0,re=Ye.alloc(),Le=0;Le<E.length;Le++)Ze=E[Le],$e=this.ni(Ze,ee),Ze=Sc(Ze,Ze.locationObject,Ze.locationSpot,re),le=Math.max(le,Ze.x),Be=Math.max(Be,$e.width-Ze.x),z=Math.max(z,Ze.y);switch(Le=this.arrangement,Le){case Kh:le+=fe;break;default:Be+=fe}Ce=isFinite(Ce)?Math.max(Ce+fe,1):Math.max(le+Be,1);var bi=Ze=this.arrangementOrigin.x;for(rt=this.arrangementOrigin.y,Be=0,oe>=le&&(oe-=le),le=st=0,Lt=Math.max(this.cellSize.height,1),ct=z=0,Xt=!0,$e=Ye.alloc(),hi=0;hi<E.length;hi++){var yi=E[hi],Jn=this.ni(yi,ee),kn=Sc(yi,yi.locationObject,yi.locationSpot,re);if(0<Be)switch(Le){case Kh:bi=(bi-Ze-(Jn.width-kn.x))/Ce,bi=Nt.$(Math.round(bi),bi)?Math.round(bi):Math.floor(bi),bi=bi*Ce+Ze;break;default:bi=(bi-Ze+kn.x)/Ce,bi=Nt.$(Math.round(bi),bi)?Math.round(bi):Math.ceil(bi),bi=bi*Ce+Ze}else switch(Le){case Kh:st=bi+kn.x+Jn.width;break;default:st=bi-kn.x}switch(Le){case Kh:var Cr=-(bi+kn.x)+st;break;default:Cr=bi+Jn.width-kn.x-st}if(0<ue&&Be>ue-1||0<oe&&0<Be&&Cr>oe){for(b.push(new dn(0,Xt?rt-z:rt,oe+fe,ct+z+ye)),bi=0;bi<Be&&hi!==Be;bi++){Cr=E[hi-Be+bi];var fr=Sc(Cr,Cr.locationObject,Cr.locationSpot,$e);Cr.moveTo(Cr.position.x,Cr.position.y+z-fr.y)}ct+=ye,rt=Xt?rt+ct:rt+(ct+z),Be=ct=z=0,bi=Ze,Xt=!1}switch(bi===Ze&&(le=Le===Kh?Math.max(le,Jn.width-kn.x):Math.min(le,-kn.x)),z=Math.max(z,kn.y),ct=Math.max(ct,Jn.height-kn.y),isFinite(Lt)&&(ct=Math.max(ct,Math.max(Jn.height,Lt)-kn.y)),Xt?yi.moveTo(bi-kn.x,rt-kn.y):yi.moveTo(bi-kn.x,rt),Le){case Kh:bi-=kn.x+fe;break;default:bi+=Jn.width-kn.x+fe}Be++}if(b.push(new dn(0,rt,oe+fe,(Xt?ct:ct+z)+ye)),E.length!==Be)for(oe=0;oe<Be;oe++)ue=E[E.length-Be+oe],fe=Sc(ue,ue.locationObject,ue.locationSpot,re),ue.moveTo(ue.position.x,ue.position.y+z-fe.y);if(Ye.free(re),Ye.free($e),Le===Kh)for(E=0;E<b.length;E++)z=b[E],z.width+=le,z.x-=le;else for(E=0;E<b.length;E++)z=b[E],z.x>le&&(z.width+=z.x-le,z.x=le);dn.free(ee)}for(re=z=ee=E=0;re<b.length;re++)oe=b[re],E=Math.min(E,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===Kh?this.commitLayers(b,new Ye(E+y/2-(z+E),ee-x/2)):this.commitLayers(b,new Ye(E-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ol.prototype.commitLayers=function(){};function u1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}ft.Object.defineProperties(ol.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!==Rp&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==Kh||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==u0&&a!==zp&&a!==h0||(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 Bt(ol,"Position",0),Rp=new Bt(ol,"Location",1),l0=new Bt(ol,"LeftToRight",2),Kh=new Bt(ol,"RightToLeft",3),oy=new Bt(ol,"Forward",4),u0=new Bt(ol,"Reverse",5),zp=new Bt(ol,"Ascending",6),h0=new Bt(ol,"Descending",7);ol.className="GridLayout",ol.standardComparer=u1,ol.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},ol.Position=s0,ol.Location=Rp,ol.LeftToRight=l0,ol.RightToLeft=Kh,ol.Forward=oy,ol.Reverse=u0,ol.Ascending=zp,ol.Descending=h0;function Ko(){this.On=new An,this.Dn=new An,this.Pa=new An,this.cf=new wi,this.bf=new wi,this.aj=new wi,this.H=null,this.tp=!1}be=Ko.prototype,be.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},be.Xe=function(a){this.H=a},be.oi=function(a){if(a instanceof fi){if(this.On.add(a),a instanceof br){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 qn?this.Dn.add(a):a instanceof Ao||this.Pa.add(a);y=a.data,y===null||a instanceof Ao||(a instanceof qn?this.bf.add(y,a):this.cf.add(y,a))},be.pc=function(a){if(a.Ej(),a instanceof fi){if(this.On.remove(a),a instanceof br){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 qn?this.Dn.remove(a):a instanceof Ao||this.Pa.remove(a);y=a.data,y===null||a instanceof Ao||(a instanceof qn?this.bf.remove(y):this.cf.remove(y))},be.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 br)&&bt('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 br||bt('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 qn||bt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=un(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=un(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=un(),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]);En(y),En(x),En(a)}},Ko.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Ko.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&h1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&jc(this.diagram,!1)};function h1(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=d1(a,y,b);if(E!==null&&(fh(E),E=E.copy(),E!==null)){var z=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=z,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Ko.prototype.insertLink=function(){return null},Ko.prototype.resolveReferencesForData=function(){},Ko.prototype.Ro=function(a){return this.H.model.Ro(a)};function d1(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&&(g1||(g1=!0,Oi('No Group template found for category "'+x+'"'),Oi(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(f1||(f1=!0,Oi('No Node template found for category "'+x+'"'),Oi(" Using default node template")),y=a.ny))),y}Ko.prototype.getLinkCategoryForData=function(){return""},Ko.prototype.setLinkCategoryForData=function(){},Ko.prototype.setFromNodeForLink=function(){},Ko.prototype.setToNodeForLink=function(){},Ko.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(p1||(p1=!0,Oi('No Link template found for category "'+a+'"'),Oi(" Using default link template")),x=y.my)),x},Ko.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Ko.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Ko.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Gd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Ko.prototype.unresolveReferencesForPart=function(){},Ko.prototype.removeDataForLink=function(){},Ko.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Ko.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof fi?a:null)},Ko.prototype.findLinkForKey=function(){return null},be=Ko.prototype,be.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},be.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof fi?a:null)},be.Kc=function(a){return a===null?null:this.bf.I(a)},be.ms=function(a){for(var y=0;y<arguments.length;++y);y=new An;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Kt(ee)&&ay(this,E,ee)){y.add(b);break}}}return y.iterator},be.ls=function(a){for(var y=0;y<arguments.length;++y);y=new An;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Kt(ee)&&ay(this,E,ee)){y.add(b);break}}}return y.iterator};function ay(a,y,x){for(var b in x){var E=y[b],z=x[b];if(Sn(z)){if(!Sn(E)||E.length<z.length)return!1;for(var ee=0;ee<E.length;ee++){var re=z[ee];if(re!==void 0&&!c1(a,E[ee],re))return!1}}else if(!c1(a,E,z))return!1}return!0}function c1(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(Kt(y)&&Kt(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Ko.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===Gn){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Un){var ee=a.newValue;b==="nodeDataArray"&&Kt(ee)&&h1(this,ee),y.isModified=!0}else if(x===ui){var re=a.oldValue;b==="nodeDataArray"&&Kt(re)&&this.ip(re),y.isModified=!0}else x===mn&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Gn){var oe=a.propertyName,le=a.object;le===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,oe),y.isModified=!0}else if(x===Un||x===ui){var ue=a.change===Un,fe=ue?a.newParam:a.oldParam,ye=ue?a.newValue:a.oldValue,Ce=this.aj.I(a.object);if(Array.isArray(Ce))for(a=0;a<Ce.length;a++){var Le=Ce[a];if(ue)km(Le,ye,fe,!0);else if(!(0>fe)){var Be=fe+Sp(Le);Le.pc(Be,!0),xv(Le,Be,fe)}}y.isModified=!0}}finally{y.aa=!0}}}}},Ko.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)},Ko.prototype.rp=function(){for(var a=this.H.model,y=new An,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||E.push(ee.data)}),E.forEach(function(ee){b1(a,ee,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&C1(a,z,!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()},Ko.prototype.refreshDataBoundLinks=function(){},Ko.prototype.updateRelationshipsFromData=function(){},Ko.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,z=0;z<E.length;z++){var ee=E[z].sx(a);ee!==null&&(x===null&&(x=un()),x.push(ee))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);En(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(Sn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function ly(a,y,x){Lf(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)Gf(x,ee[oe])});var b=y.Hh;if(Sn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}Ko.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new wi;if(Sn(a))for(var E=0;E<a.length;E++)d0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)d0(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 An;for(var z=new wi,ee=b.iterator;ee.next();){var re=ee.value;if(re instanceof qn)a||re.fromNode!==null&&re.toNode!==null||E.add(re);else if(re instanceof fi&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var le=re.pg();le!==null&&(le=b.I(le),le!==null?(x.qe(oe.data,x.wa(le.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ue=new wi;b.each(function(fe){fe.key.data!==null&&ue.add(fe.key.data,fe.value.data)}),x(ue,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function d0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof ji))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof fi){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=b.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=b.I(re),re!==null&&(re.toNode=z))}if(y instanceof br&&z instanceof br)for(y=y.memberParts;y.next();)ee=d0(a,y.value,x,b,E),ee instanceof qn||ee===null||(ee.containingGroup=z)}else if(y instanceof qn&&z instanceof qn)for(ee=y.fromNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=b.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=d0(a,y.value,x,b,E),ee!==null&&ee instanceof fi&&(ee.labeledLink=z);return z}Ko.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof qn||(b=E.copyNodeData(b),Kt(b)&&(E.xf(b),x=y.Lc(b)))}else fh(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 qn||(E=y.copyNodeData(b)),Kt(E)&&(x.data=E)));return x},ft.Object.defineProperties(Ko.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}}}),Ko.prototype.updateAllRelationshipsFromData=Ko.prototype.rp,Ko.prototype.findLinksByExample=Ko.prototype.ls,Ko.prototype.findNodesByExample=Ko.prototype.ms,Ko.prototype.findLinkForData=Ko.prototype.Kc,Ko.prototype.findNodeForData=Ko.prototype.ii,Ko.prototype.findPartForData=Ko.prototype.Lc,Ko.prototype.findNodeForKey=Ko.prototype.Vb,Ko.prototype.removeModeledPart=Ko.prototype.ip,Ko.prototype.removeModeledParts=Ko.prototype.Gs,Ko.prototype.rebuildParts=Ko.prototype.Wd;var f1=!1,g1=!1,p1=!1;Ko.className="PartManager";function $s(a){Ko.apply(this,arguments)}Jt($s,Ko),$s.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),m1(this,a.linkDataArray)},$s.prototype.addModeledParts=function(a){for(Ko.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Og(a.value);jc(this.diagram,!1)};function m1(a,y){y.forEach(function(x){v1(a,x)}),jc(a.diagram,!1)}function v1(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){fh(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 z=p0(x,y,!0);z!==""&&(E.fromPortId=z),z=Hu(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof fi&&(E.fromNode=z)),z=p0(x,y,!1),z!==""&&(E.toPortId=z),z=Hu(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof fi&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}$s.prototype.removeAllModeledParts=function(){var a=this.diagram.model;y1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function y1(a,y){y.forEach(function(x){a.ip(x)})}$s.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},$s.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},$s.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},$s.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},$s.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},$s.prototype.findPartForKey=function(a){var y=Ko.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},$s.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},$s.prototype.doModelChanged=function(a){var y=this;if(Ko.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===Gn){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(E==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(E==="linkFromPortId"){var le=this.Kc(a.object);if(le!==null){var ue=a.newValue;typeof ue=="string"&&(le.fromPortId=ue)}}else if(E==="linkToPortId"){var fe=this.Kc(a.object);if(fe!==null){var ye=a.newValue;typeof ye=="string"&&(fe.toPortId=ye)}}else if(E==="nodeGroupKey"){var Ce=this.Lc(a.object);if(Ce!==null){var Le=a.newValue;if(Le!==void 0){var Be=this.Vb(Le);Be instanceof br?Ce.containingGroup=Be:Ce.containingGroup=null}else Ce.containingGroup=null}}else if(E==="linkLabelKeys"){var $e=this.Kc(a.object);if($e!==null){var Ze=a.oldValue,rt=a.newValue;Array.isArray(Ze)&&Ze.forEach(function(kn){0<=rt.indexOf(kn)||(kn=y.Vb(kn),kn!==null&&(kn.labeledLink=null))}),Array.isArray(rt)&&rt.forEach(function(kn){kn=y.Vb(kn),kn!==null&&(kn.labeledLink=$e)})}}else if(E==="linkCategory"){var st=this.Kc(a.object),ct=a.newValue;st!==null&&typeof ct=="string"&&(st.category=ct)}else E==="linkDataArray"&&(y1(this,a.oldValue),m1(this,a.newValue));x.isModified=!0}else if(b===Un){var Lt=a.newValue;if(E==="linkDataArray"&&typeof Lt=="object"&&Lt!==null)v1(this,Lt);else if(E==="linkLabelKeys"&&Jc(Lt)){var Xt=this.Kc(a.object),hi=this.Vb(Lt);Xt!==null&&hi!==null&&(hi.labeledLink=Xt)}x.isModified=!0}else if(b===ui){var bi=a.oldValue;if(E==="linkDataArray"&&typeof bi=="object"&&bi!==null)this.ip(bi);else if(E==="linkLabelKeys"&&Jc(bi)){var yi=this.Vb(bi);yi!==null&&(yi.labeledLink=null)}x.isModified=!0}}else if(b===Gn){var Jn=a.propertyName;a.object!==x.model||Jn!=="linkFromKeyProperty"&&Jn!=="linkToKeyProperty"&&Jn!=="linkFromPortIdProperty"&&Jn!=="linkToPortIdProperty"&&Jn!=="linkLabelKeysProperty"&&Jn!=="nodeIsGroupProperty"&&Jn!=="nodeGroupKeyProperty"&&Jn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},$s.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new An,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){F1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&k1(y,z,!1)})},$s.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 qn){var E=Hu(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Hu(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 z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new An().addAll(y);var ee=new An;a.labelNodes.each(function(re){re.data!==null&&(re=b.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(E),E=E.copy(),E.hp(ee),(0<y.count||0<E.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),E.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Ao)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof br)&&(a.containingGroup=y)}}},$s.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var ee=b.value;y.lb(ee)?E instanceof br&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=E)):(z.link=this.Kc(ee),z.link!==null&&E instanceof fi&&(Hu(y,ee,!0)===x&&(z.link.fromNode=E),Hu(y,ee,!1)===x&&(z.link.toNode=E),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(E.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}Yh(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof br&&(E.containingGroup=a))}},$s.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof fi){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Vh(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Vh(y,x,b.data)),a instanceof br)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Vh(y,x,b)}}},$s.prototype.copyPartData=function(a,y){var x=Ko.prototype.copyPartData.call(this,a,y);if(a instanceof qn)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},$s.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,ee=E.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ee.archetypeLinkData,b instanceof qn){if(fh(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,E.add(z),a=ee.archetypeLabelNodeData,a instanceof fi&&(fh(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Wg(z,b,z.wa(a.data),!0),Zg(z,b,re,!0),x!==null&&Wg(z,b,z.wa(x.data),!1),Zg(z,b,y,!1),z.fi(b),a=ee.archetypeLabelNodeData,a===null||a instanceof fi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},$s.prototype.findLinkForKey=$s.prototype.findLinkForKey,$s.prototype.findPartForKey=$s.prototype.findPartForKey,$s.prototype.removeAllModeledParts=$s.prototype.removeAllModeledParts,$s.prototype.addModeledParts=$s.prototype.addModeledParts,$s.prototype.addAllModeledParts=$s.prototype.addAllModeledParts,$s.className="GraphLinksPartManager";function _u(){Ko.apply(this,arguments),this.Sg=null}Jt(_u,Ko);function c0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!bn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(fh(b),b=b.copy(),b!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=ee}}}_u.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},_u.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},_u.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}},_u.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))},_u.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},_u.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},_u.prototype.doModelChanged=function(a){if(Ko.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===Gn){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),ee=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:c0(this,z,ee)}}else if(b==="parentLinkCategory"){var oe=this.ii(a.object),le=a.newValue;if(oe!==null&&typeof le=="string"){var ue=oe.kh();ue!==null&&(ue.category=le)}}y.isModified=!0}}else if(x===Gn){var fe=a.propertyName;a.object===y.model&&fe==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},_u.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof fi&&(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:c0(this,y,a):b!==null&&Gd(x,b,!1)))}}},_u.prototype.updateDataBindings=function(a,y){Ko.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},_u.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof fi&&y.mh(z)===x&&c0(this,E,this.ii(z))}Yh(y,x)}a=y.mh(a),a!==void 0&&E instanceof fi&&(a=this.Vb(a),c0(this,a,E))}},_u.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof fi){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 z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(ui,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(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)&&Vh(y,x,E)}},_u.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},_u.prototype.findLinkForKey=_u.prototype.findLinkForKey,_u.className="TreePartManager";function Ti(a,y){this.kl=new An,this.il=new An,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Ir(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new wi,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 wi,this.Lt=new xn,this.Wg=!1,this.o=null,this.undoManager=new li,a!==void 0&&(Sn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ti.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},Ti.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ti.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ti.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)+":"+Vn(E)}}return y},Ti.prototype.xA=function(a){a.change!==mn&&bt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ii?(x1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ti.prototype.Qv=function(a,y){var x=this,b=!1,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===Un?E.add(fe.newValue):fe.change===ui&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==Gn||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(ye){x.lb(ye)&&z.add(ye)}):fe.object instanceof Ti||x.ri()&&x.Jc(fe.object)||w1(x,fe.object).each(function(ye){z.add(ye)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(fe){oe.add(x.wa(fe)),y||z.add(fe)});var le=this.kl;le.clear(),ee.each(function(fe){le.add(x.wa(fe)),y&&z.add(fe)}),a=x.cloneDeep(z.Fa());var ue=null;return b&&(ue===null&&(ue={}),ue.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(ue===null&&(ue={}),y?ue.removedNodeKeys=oe.Fa():ue.insertedNodeKeys=oe.Fa()),0<a.length&&(ue===null&&(ue={}),ue.modifiedNodeData=a),0<le.count&&(ue===null&&(ue={}),y?ue.insertedNodeKeys=le.Fa():ue.removedNodeKeys=le.Fa()),le.clear(),oe.clear(),ue},Ti.prototype.cloneDeep=function(a){return Hg(this,a,!0)};function Hg(a,y,x,b,E,z){function ee(fe,ye){re?(fe.__gohashid===void 0&&z.push(fe),b.set(fe,ye)):(fe=Fa++,b.set(fe,ye),E.set(fe,y))}if(!Kt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new wi),re){var oe=b.get(y);if(oe)return oe}else for(E||(E=new wi),oe=E.iterator;oe.next();){var le=oe.key;if(oe.value===y&&(le=b.get(le)))return le}if(Array.isArray(y)){oe=[],ee(y,oe);for(var ue=0;ue<y.length;ue++)oe.push(Hg(a,y[ue],!1,b,E,z))}else if(y instanceof Ye||y instanceof ei||y instanceof dn||y instanceof Wi||y instanceof Fi)oe=y.copy(),ee(y,oe);else{if(y instanceof Go||y instanceof ti||y instanceof Bt)return y;if(y instanceof xn)oe=new xn().addAll(Hg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof An)oe=new An().addAll(Hg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof wi)oe=new wi().addAll(Hg(a,y.Fa(),!1,b,E,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(ue in oe={},ee(y,oe),y)ue!=="__gohashid"&&(oe[ue]=Hg(a,y[ue],!1,b,E,z))}return x&&z.forEach(function(fe){delete fe.__gohashid}),oe}be=Ti.prototype,be.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},be.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},be.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 S1(a,y){y=y.modelData,Kt(y)&&(a.dm(y),a.modelData=y)}be.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!P1(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+uy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+Xc(this,this.nodeDataArray,!0)},be.kv=function(a){S1(this,a),a=a.nodeDataArray,Sn(a)&&(this.dm(a),this.nodeDataArray=a)};function x1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var ee=b.get(E);ee===null?(ee=new An,ee.add(z),b.add(E,ee)):ee.add(z)}}var b=a.vh;b===null&&(b=new wi,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Gn?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Un||z===ui)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function w1(a,y){for(var x=new An,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 z=0;z<x.length;z++){var ee=x[z];if(ee===y)return E.add(b),!0;if(f0(a,y,ee,b,E))return!0}else if(Kt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return E.add(b),!0;if(f0(a,y,ee,b,E))return!0}return!1}be.Pv=function(a,y){var x=this,b=!1,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===x&&(ue.modelChange==="nodeDataArray"?ue.change===Un?E.add(ue.newValue):ue.change===ui&&ee.add(ue.oldValue):x.lb(ue.object)?z.add(ue.object):ue.change!==Gn||x.modelData!==ue.object&&ue.propertyName!=="modelData"?ue.object!==null&&(re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){x.lb(fe)&&z.add(fe)}):ue.object instanceof Ti||x.ri()&&x.Jc(ue.object)||w1(x,ue.object).each(function(fe){z.add(fe)})):b=!0)});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(x.wa(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(x.wa(ue)),y&&z.add(ue)}),a="",b&&(a+=`,
|
|
|
"modelData": `+uy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+Xc(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+Xc(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+Xc(this,le.Fa(),!0)),le.clear(),oe.clear(),a},be.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)&&bt("applyIncrementalJson cannot change Model properties"),S1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new wi;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],ee=this.wa(z);ee!=null&&b.set(ee,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=b.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var oe in E)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,E[oe]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},be.$x=function(a,y){a.change!==mn&&bt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ii?(y===void 0&&(y=Hp(this,this)),x1(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 }'},be.yA=function(a,y){return this.$x(a,y)},be.np=function(a){return a===void 0&&(a=Hp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},be.toJSON=function(a){return this.np(a)},be.Zw=function(a){var y=null;if(typeof a=="string")try{y=lt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:bt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&bt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},be.Ky=function(a){return this.Zw(a)},Ti.constructGraphLinksModel=function(){return new Ti},be=Ti.prototype,be.dm=function(a){if(Sn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Kt(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:bt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(Kt(a)){for(y in a)if(x=a[y],Kt(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 xn,b=0;b<x.length/2;b++)E.add(new Ye(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nx(a)}return a},be.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Sn(a)?Xc(this,a):Kt(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function Xc(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Hi;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var z=0;z<b;z++){var ee=y[z];ee!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(ee)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function P1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Gl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Ye)y={class:"go.Point",x:Gl(x.x),y:Gl(x.y)};else if(x instanceof ei)y={class:"go.Size",width:Gl(x.width),height:Gl(x.height)};else if(x instanceof dn)y={class:"go.Rect",x:Gl(x.x),y:Gl(x.y),width:Gl(x.width),height:Gl(x.height)};else if(x instanceof Wi)y={class:"go.Margin",top:Gl(x.top),right:Gl(x.right),bottom:Gl(x.bottom),left:Gl(x.left)};else if(x instanceof Fi)x.sb()?y={class:"go.Spot",x:Gl(x.x),y:Gl(x.y),offsetX:Gl(x.offsetX),offsetY:Gl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Go){if(y={class:"go.Brush",type:x.type.name},x.type===mc?y.color=x.color:(x.type===Ud||x.type===$u)&&(y.start=x.start,y.end=x.end,x.type===$u&&(x.startRadius!==0&&(y.startRadius=Gl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Gl(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 ti?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Gl(x.startX)),x.startY!==0&&(y.startY=Gl(x.startY)),x.endX!==0&&(y.endX=Gl(x.endX)),x.endY!==0&&(y.endY=Gl(x.endY)),x.spot1.D(Es)||(y.spot1=x.spot1),x.spot2.D(ml)||(y.spot2=x.spot2),x.type===ti.o&&(y.path=ti.ia(x))):x instanceof Bt&&(y={class:"go.EnumValue",classType:Hp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=ds(y,E);if(!P1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof xn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",b+=ee}else b+=a.sm(z)}return b+"}"}function Kl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Ye(Kl(a.x),Kl(a.y));else if(y==="Size")x=new ei(Kl(a.width),Kl(a.height));else if(y==="Rect")x=new dn(Kl(a.x),Kl(a.y),Kl(a.width),Kl(a.height));else if(y==="Margin")x=new Wi(Kl(a.top),Kl(a.right),Kl(a.bottom),Kl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ic(a.enum):x=new Fi(Kl(a.x),Kl(a.y),Kl(a.offsetX),Kl(a.offsetY));else if(y==="Brush"){if(x=new Go,x.type=Si(Go,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Fi&&(x.start=a.start),a.end instanceof Fi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Kl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Kl(a.endRadius)),a=a.colorStops,Kt(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=ti.parse(a.path):x=new ti,x.type=Si(ti,a.type),typeof a.startX=="number"&&(x.startX=Kl(a.startX)),typeof a.startY=="number"&&(x.startY=Kl(a.startY)),typeof a.endX=="number"&&(x.endX=Kl(a.endX)),typeof a.endY=="number"&&(x.endY=Kl(a.endY)),a.spot1 instanceof Fi&&(x.spot1=a.spot1),a.spot2 instanceof Fi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Si(b,a.name)));return x}be.Pe=function(a){return this.Lt.add(a),this},be.ik=function(a){this.Lt.remove(a)},be.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)},be.cb=function(a,y,x,b,E,z,ee){Ts(this,"",a,y,x,b,E,z,ee)},be.g=function(a,y,x,b,E){Ts(this,"",Gn,a,this,y,x,b,E)},be.Fs=function(a,y,x,b,E,z){Ts(this,"",Gn,y,a,x,b,E,z)};function Ts(a,y,x,b,E,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var le=new fn;le.model=a,le.change=x,le.modelChange=y,le.propertyName=b,le.object=E,le.oldValue=z,le.oldParam=re,le.newValue=ee,le.newParam=oe,a.ds(le)}Ti.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Gn){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)),Ea(x,b,E)}else a.change===Un?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Kt(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&&on(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Sn(b)&&a.propertyName&&(b=ds(a.object,a.propertyName)),Sn(b)&&typeof x=="number"&&(a=a.newValue,y?gn(b,x):on(b,x,a))):bt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ui?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Kt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&on(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)&&!Sn(b)&&a.propertyName&&(b=ds(a.object,a.propertyName)),Sn(b)&&typeof x=="number"&&(a=a.oldValue,y?on(b,x,a):gn(b,x))):bt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==mn&&bt("unknown ChangedEvent: "+a.toString())},Ti.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ti.prototype.eb=function(a){return this.undoManager.eb(a)},Ti.prototype.Kf=function(){return this.undoManager.Kf()},Ti.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}},be=Ti.prototype,be.La=function(a,y){y===void 0&&(y=""),Ts(this,"SourceChanged",mn,y,a,null,null)},be.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;bt("Key value for node data "+a+" is not a number or a string: "+y)}}},be.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=ds(a,x);b!==y&&this.hc(y)===null&&(Ea(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ts(this,"nodeKey",Gn,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ea(a,x,y)}};function Jc(a){return typeof a=="number"||typeof a=="string"}be.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},be.hc=function(a){return a===null&&bt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.kb.I(a):null},be.$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))){Ea(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ea(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ea(a,y,x)}}}}},be.xf=function(a){a!==null&&(_o(a),this.lb(a)||C1(this,a,!0))};function C1(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&&bt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,on(a.Tc,b,y)),Ts(a,"nodeDataArray",Un,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}be.Fy=function(a){if(Sn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},be.cm=function(a){a!==null&&b1(this,a,!0)};function b1(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)}Ts(a,"nodeDataArray",ui,"nodeDataArray",a,y,null,b,null),a.qp(y)}be.nA=function(a){if(Sn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},be.$z=function(a){if(a!==this.nodeDataArray&&Sn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},be.jp=function(a,y){y!==void 0&&(a=jp(this,a),a instanceof An&&this.Vf.add(y,a))},be.Lv=function(){},be.fm=function(){},be.em=function(){},be.qp=function(){};function Vh(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new An,a.Vf.add(y,b)),b.add(x)}}function Yh(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof An&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function jp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof An?a:null)}be.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ti.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),Kt(a)&&Ir(a),a};function g0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=g0(a,y[x],a.copiesArrayObjects);b.push(E)}return Ir(b),b}if(x&&Kt(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 z=ds(y,b),ee=Hp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Ti||z instanceof li||z instanceof Ii||z instanceof fn||(z=g0(a,z,!1)),Ea(x,b,z)}return Ir(x),x}return y instanceof Ye||y instanceof ei||y instanceof dn||y instanceof Fi||y instanceof Wi?y.copy():y}Ti.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!E1&&a instanceof At&&(E1=!0,Oi('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Oi(" Is that really your intent?"));var b=ds(a,y);b!==x&&(Ea(a,y,x),this.Fs(a,y,b,x))},be=Ti.prototype,be.set=function(a,y,x){this.setDataProperty(a,y,x)},be.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])}},be.Ay=function(a,y){this.ts(a,-1,y)},be.ts=function(a,y,x){0>y&&(y=a.length),on(a,y,x),Ts(this,"",Un,"",a,null,x,null,y)},be.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&bt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];gn(a,y),Ts(this,"",ui,"",a,x,null,y,null)},be.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ds(a,y),y===void 0))return"";if(typeof y=="string")return y;bt("getCategoryForNodeData found a non-string category for "+a+": "+y)},be.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=ds(a,x);b===void 0&&(b=""),b!==y&&(Ea(a,x,y),Ts(this,"nodeCategory",Gn,x,a,b,y))}else Ea(a,x,y)}},be.lm=function(a,y){this.jm(y,this.Ro(a))},be.Tl=function(){return!1},be.Wj=function(){return!1},be.ri=function(){return!1},be.xs=function(){return!1},be.Xj=function(){return!1};function hy(){return new Ti}function Hp(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 Hp(a,y.constructor);return typeof y}function dy(a){return Ah[a]?Ah[a]:lt.go!==void 0&<.go[a]?lt.go[a]:null}function ds(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 Ea(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){}}ft.Object.defineProperties(Ti.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===""&&bt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&bt("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];Kt(E)||bt("Model.nodeDataArray must only contain Objects, not: "+E),_o(E)}for(this.Tc=a,b=new xn,E=0;E<x;E++){var z=a[E],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?b.add(z):this.kb.add(ee,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Ts(this,"nodeDataArray",Gn,"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"}}}),Ti.prototype.setCategoryForNodeData=Ti.prototype.jm,Ti.prototype.getCategoryForNodeData=Ti.prototype.Ro,Ti.prototype.removeArrayItem=Ti.prototype.ov,Ti.prototype.insertArrayItem=Ti.prototype.ts,Ti.prototype.addArrayItem=Ti.prototype.Ay,Ti.prototype.assignAllDataProperties=Ti.prototype.Do,Ti.prototype.set=Ti.prototype.set,Ti.prototype.clearUnresolvedReferences=Ti.prototype.Qy,Ti.prototype.mergeNodeDataArray=Ti.prototype.$z,Ti.prototype.removeNodeDataCollection=Ti.prototype.nA,Ti.prototype.removeNodeData=Ti.prototype.cm,Ti.prototype.addNodeDataCollection=Ti.prototype.Fy,Ti.prototype.addNodeData=Ti.prototype.xf,Ti.prototype.makeNodeDataKeyUnique=Ti.prototype.$u,Ti.prototype.findNodeDataForKey=Ti.prototype.hc,Ti.prototype.containsNodeData=Ti.prototype.lb,Ti.prototype.setKeyForNodeData=Ti.prototype.km,Ti.prototype.getKeyForNodeData=Ti.prototype.wa,Ti.prototype.updateTargetBindings=Ti.prototype.La,Ti.prototype.commit=Ti.prototype.commit,Ti.prototype.rollbackTransaction=Ti.prototype.Kf,Ti.prototype.commitTransaction=Ti.prototype.eb,Ti.prototype.startTransaction=Ti.prototype.Ea,Ti.prototype.raiseDataChanged=Ti.prototype.Fs,Ti.prototype.raiseChanged=Ti.prototype.g,Ti.prototype.raiseChangedEvent=Ti.prototype.cb,Ti.prototype.removeChangedListener=Ti.prototype.ik,Ti.prototype.addChangedListener=Ti.prototype.Pe,Ti.prototype.writeJsonValue=Ti.prototype.sm,Ti.prototype.replaceJsonObjects=Ti.prototype.dm,Ti.prototype.applyIncrementalJSON=Ti.prototype.Ky,Ti.prototype.applyIncrementalJson=Ti.prototype.Zw,Ti.prototype.toJSON=Ti.prototype.toJSON,Ti.prototype.toJson=Ti.prototype.np,Ti.prototype.toIncrementalJSON=Ti.prototype.yA,Ti.prototype.toIncrementalJson=Ti.prototype.$x,Ti.prototype.toIncrementalData=Ti.prototype.xA,Ti.prototype.clear=Ti.prototype.clear;var E1=!1,Ah={};Ti.className="Model",Ti.fromJSON=Ti.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=lt.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:bt("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=lt[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Ti?y=a:bt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ti.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ti.safePropertyValue=ds,Ti.safePropertySet=Ea,Ah.Brush=Go,Ah.ChangedEvent=fn,Ah.Geometry=ti,Ah.Margin=Wi,Ah.Panel=Kn,Ah.Point=Ye,Ah.Rect=dn,Ah.Size=ei,Ah.Spot=Fi,Ah.Transaction=Ii,Ah.UndoManager=li;function ps(a,y,x,b){Ir(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=M1,this.wk=null):(this.el=Wp,this.wk=b),this.st=new An}ps.prototype.copy=function(){var a=new ps;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},be=ps.prototype,be.qb=function(a){a.classType===ps&&(this.mode=a)},be.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.Kx=function(a){return a===void 0&&(a=null),this.mode=Wp,this.backConverter=a,this},be.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},be.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function L1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}be.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==="")Oi("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=ds(y,b)),z!==void 0)if(E===null)x!==""&&Ea(a,x,z);else try{if(x!==""){var ee=E(z,a);Ea(a,x,ee)}else E(z,a)}catch(re){}}}},be.sp=function(a,y,x,b){if(this.el===Wp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,ee=a;if(E!==""&&(ee=ds(a,E)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=b!==null?b.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):Ea(y,x,ee);else if(oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var le=b.itemIndex,ue=b.panel.itemArray;oe.ov(ue,le),oe.ts(ue,le,ee)}}else try{if(x!==""){var fe=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,fe):Ea(y,x,fe)}else{var ye=z(ee,y,oe);if(ye!==void 0&&oe!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Ce=b.itemIndex,Le=b.panel.itemArray;oe.ov(Le,Ce),oe.ts(Le,Ce,ye)}}}catch(Be){}}finally{this.st.remove(a)}}}},ft.Object.defineProperties(ps.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&In(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&In(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&In(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&In(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&In(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&In(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&In(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&In(this),this.el=a}}}),ps.prototype.updateSource=ps.prototype.sp,ps.prototype.updateTarget=ps.prototype.Mv,ps.prototype.ofModel=ps.prototype.dA,ps.prototype.ofObject=ps.prototype.cp,ps.prototype.makeTwoWay=ps.prototype.Kx;var Tx="Binding",M1=new Bt(ps,"OneWay",1),Wp=new Bt(ps,"TwoWay",2);ps.className="Binding",ps.parseEnum=function(a,y){return function(x){return x=Si(a,x),x===null?y:x}},ps.toString=Vn,ps.OneWay=M1,ps.TwoWay=Wp;function co(a,y,x){Ti.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new An,this.wb=new wi,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Sn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Jt(co,Ti),co.constructGraphLinksModel=Ti.constructGraphLinksModel,co.prototype.cloneProtected=function(a){Ti.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},be=co.prototype,be.clear=function(){Ti.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},be.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)+":"+Vn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Hu(this,E,!0)+"-->"+Hu(this,E,!1)}return y},be.Qv=function(a,y){this.linkKeyProperty===""&&bt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ti.prototype.Qv.call(this,a,y),b=this,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===Un?E.add(ue.newValue):ue.change===ui&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof Ti||b.lb(ue.object)||A1(b,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(b.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(b.Ac(ue)),y&&z.add(ue)}),a=b.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<le.count&&(x===null&&(x={}),y?x.insertedLinkKeys=le.Fa():x.removedLinkKeys=le.Fa()),le.clear(),oe.clear(),x},be.rm=function(){var a=Ti.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},be.gp=function(a){Ti.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)},be.Rv=function(){var a=Ti.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Xc(this,this.linkDataArray,!0);return a+y},be.kv=function(a){Ti.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function A1(a,y){for(var x=new An,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];f0(a,y,E,E,x)}return x}be.Pv=function(a,y){this.linkKeyProperty===""&&bt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ti.prototype.Pv.call(this,a,y),b=this,E=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===Un?E.add(ue.newValue):ue.change===ui&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof Ti||b.lb(ue.object)||A1(b,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),E.each(function(ue){oe.add(b.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ee.each(function(ue){le.add(b.Ac(ue)),y&&z.add(ue)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+Xc(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+Xc(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+Xc(this,le.Fa(),!0)),le.clear(),oe.clear(),a},be.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)&&bt("applyIncrementalJson cannot change Model properties"),Ti.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],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var ee in E)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,E[ee]);N1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},co.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Gn){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),Ea(x,b,E);return}}else if(a.change===Un){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Kt(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===ui){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Kt(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}}Ti.prototype.changeState.call(this,a,y)}},be=co.prototype,be.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),Ea(x,this.nodeKeyProperty,a),this.xf(x))}return a}},be.yx=function(a){return Hu(this,a,!0)},be.wv=function(a,y){Wg(this,a,y,!0)},be.Bx=function(a){return Hu(this,a,!1)},be.Bv=function(a,y){Wg(this,a,y,!1)};function Hu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ds(y,a),a!==void 0))){if(Jc(a))return a;bt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Wg(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 z=ds(y,E);z!==x&&(Yh(a,z,y),Ea(y,E,x),a.hc(x)===null&&Vh(a,x,y),Ts(a,b?"linkFromKey":"linkToKey",Gn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ea(y,E,x)}}be.zx=function(a){return p0(this,a,!0)},be.xv=function(a,y){Zg(this,a,y,!0)},be.Cx=function(a){return p0(this,a,!1)},be.Cv=function(a,y){Zg(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ds(y,a),y===void 0?"":y)}function Zg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=ds(y,E);z===void 0&&(z=""),z!==x&&(Ea(y,E,x),Ts(a,b?"linkFromPortId":"linkToPortId",Gn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ea(y,E,x)}}be.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=ds(a,y),a===void 0?m0:a)},be.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=ds(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)Yh(this,b[z],a);for(Ea(a,x,y),E=y.length,z=0;z<E;z++){var ee=y[z];this.hc(ee)===null&&Vh(this,ee,a)}Ts(this,"linkLabelKeys",Gn,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ea(a,x,y)}},be.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ds(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&&Vh(this,y,a),Ts(this,"linkLabelKeys",Un,x,a,null,y,null,E)))}else bt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},be.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ds(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Yh(this,y,a),Ts(this,"linkLabelKeys",ui,x,a,y,null,E,null)))}else b!==void 0&&bt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},be.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;bt("Key value for link data "+a+" is not a number or a string: "+y)}}},be.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=ds(a,x);b!==y&&this.jh(y)===null&&(Ea(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ts(this,"linkKey",Gn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},be.jh=function(a){return a===null&&bt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.wb.I(a):null},be.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))){Ea(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ea(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ea(a,y,x)}}}}},be.Jc=function(a){return a===null?!1:this.$f.contains(a)},be.fi=function(a){a!==null&&(_o(a),this.Jc(a)||k1(this,a,!0))};function k1(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&&bt("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)),Ts(a,"linkDataArray",Un,"linkDataArray",a,null,y,null,b),cy(a,y)}be.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)},be.bm=function(a){a!==null&&F1(this,a,!0)};function F1(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(Ts(a,"linkDataArray",ui,"linkDataArray",a,y,null,b,null),x=Hu(a,y,!0),Yh(a,x,y),x=Hu(a,y,!1),Yh(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Yh(a,x,y)}be.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)},be.Zz=function(a){if(this.linkKeyProperty===""&&bt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Sn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),N1(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function cy(a,y){var x=Hu(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Vh(a,x,y),x=Hu(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Vh(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&Vh(a,x,y)}be.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),Kt(a)&&(Ir(a),this.lf!==""&&Ea(a,this.lf,void 0),this.mf!==""&&Ea(a,this.mf,void 0),this.je!==""&&Ea(a,this.je,[])),a},be.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ds(a,y)},be.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;bt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},be.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=ds(a,x);b!==y&&(Yh(this,b,a),Ea(a,x,y),this.hc(y)===null&&Vh(this,y,a),Ts(this,"nodeGroupKey",Gn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},co.prototype.copyNodeData=function(a){return a===null?null:(a=Ti.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ds(a,this.Je)===void 0||Ea(a,this.Je,void 0),a)},co.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){Wg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Wg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Zg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Zg(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=ds(a,y);b!==x&&(Ea(a,y,x),this.Fs(a,y,b,x))},be=co.prototype,be.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&&ds(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},be.jp=function(a,y){Ti.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,z=y;if(Hu(this,b,!0)===E){var ee=this.lf;Ea(b,ee,z),Ts(this,"linkFromKey",Gn,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)}if(Hu(this,b,!1)===E&&(ee=this.mf,Ea(b,ee,z),Ts(this,"linkToKey",Gn,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)),ee=this.Ef(b),Array.isArray(ee))for(var re=ee.length,oe=this.je,le=0;le<re;le++)ee[le]===E&&(ee[le]=z,Ts(this,"linkLabelKeys",Un,oe,b,E,z,le,le))}},be.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ea(a,b,x),Ts(this,"nodeGroupKey",Gn,b,a,y,x),typeof b=="string"&&this.La(a,b)}},be.Lv=function(){Ti.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},be.fm=function(a){Ti.prototype.fm.call(this,a),a=this.wa(a);var y=jp(this,a);if(y!==null){var x=un();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Ts(this,"nodeGroupKey",Gn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Hu(this,b,!0)===a&&(E=this.lf,Ts(this,"linkFromKey",Gn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Hu(this,b,!1)===a&&(E=this.mf,Ts(this,"linkToKey",Gn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,ee=this.je,re=0;re<z;re++)E[re]===a&&(Ts(this,"linkLabelKeys",Un,ee,b,a,a,re,re),x.push(b))}for(y=0;y<x.length;y++)Yh(this,a,x[y]);En(x)}},be.em=function(a){Ti.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Vh(this,y,a)},be.qp=function(a){Ti.prototype.qp.call(this,a);var y=this.lh(a);Yh(this,y,a)},be.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ds(a,y),y===void 0))return"";if(typeof y=="string")return y;bt("getCategoryForLinkData found a non-string category for "+a+": "+y)},co.prototype.getLinkCategoryForData=function(a){return this.ps(a)},co.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=ds(a,x);b===void 0&&(b=""),b!==y&&(Ea(a,x,y),Ts(this,"linkCategory",Gn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},co.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},be=co.prototype,be.lm=function(a,y){Ti.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function N1(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))}be.Wj=function(){return!0},be.ri=function(){return!0},be.xs=function(){return!0},be.Xj=function(){return!0},ft.Object.defineProperties(co.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];Kt(E)||bt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),_o(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new xn,E=0;E<x;E++){var z=a[E],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?b.add(z):this.wb.add(ee,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new An,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Ts(this,"linkDataArray",Gn,"linkDataArray",this,y,a),y=0;y<x;y++)cy(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],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,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"}}}),co.prototype.setCategoryForLinkData=co.prototype.lp,co.prototype.getCategoryForLinkData=co.prototype.ps,co.prototype.assignAllDataProperties=co.prototype.Do,co.prototype.setGroupKeyForNodeData=co.prototype.mp,co.prototype.getGroupKeyForNodeData=co.prototype.lh,co.prototype.isGroupForNodeData=co.prototype.Yu,co.prototype.copyLinkData=co.prototype.Jo,co.prototype.mergeLinkDataArray=co.prototype.Zz,co.prototype.removeLinkDataCollection=co.prototype.lA,co.prototype.removeLinkData=co.prototype.bm,co.prototype.addLinkDataCollection=co.prototype.Ey,co.prototype.addLinkData=co.prototype.fi,co.prototype.containsLinkData=co.prototype.Jc,co.prototype.makeLinkDataKeyUnique=co.prototype.Bs,co.prototype.findLinkDataForKey=co.prototype.jh,co.prototype.setKeyForLinkData=co.prototype.Ks,co.prototype.getKeyForLinkData=co.prototype.Ac,co.prototype.removeLabelKeyForLinkData=co.prototype.Qx,co.prototype.addLabelKeyForLinkData=co.prototype.Bu,co.prototype.setLabelKeysForLinkData=co.prototype.Ls,co.prototype.getLabelKeysForLinkData=co.prototype.Ef,co.prototype.setToPortIdForLinkData=co.prototype.Cv,co.prototype.getToPortIdForLinkData=co.prototype.Cx,co.prototype.setFromPortIdForLinkData=co.prototype.xv,co.prototype.getFromPortIdForLinkData=co.prototype.zx,co.prototype.setToKeyForLinkData=co.prototype.Bv,co.prototype.getToKeyForLinkData=co.prototype.Bx,co.prototype.setFromKeyForLinkData=co.prototype.wv,co.prototype.getFromKeyForLinkData=co.prototype.yx,co.prototype.clear=co.prototype.clear;var m0=Object.freeze([]);co.className="GraphLinksModel",Ah.GraphLinksModel=co,Ti.constructGraphLinksModel=Ti.constructGraphLinksModel=function(){return new co},Ti.initDiagramModel=hy=function(){return new co};function Vl(a,y){Ti.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Sn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Jt(Vl,Ti),Vl.constructGraphLinksModel=Ti.constructGraphLinksModel,Vl.prototype.cloneProtected=function(a){Ti.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},be=Vl.prototype,be.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)+":"+Vn(E)}}return y},be.rm=function(){var a=Ti.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},be.gp=function(a){Ti.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},be.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&bt("applyIncrementalJson cannot change Model properties"),Ti.prototype.fp.call(this,a)},be.Vl=function(a){return a},be.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;bt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},be.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=ds(a,x);b!==y&&(Yh(this,b,a),Ea(a,x,y),this.hc(y)===null&&Vh(this,y,a),Ts(this,"nodeParentKey",Gn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},be.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ds(a,y),y===void 0)?"":typeof y=="string"?y:(bt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Vl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Vl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=ds(a,x);b===void 0&&(b=""),b!==y&&(Ea(a,x,y),Ts(this,"parentLinkCategory",Gn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ea(a,x,y)}},Vl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Vl.prototype.copyNodeData=function(a){return a===null?null:(a=Ti.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ds(a,this.Ke)===void 0||Ea(a,this.Ke,void 0),a)},Vl.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=ds(a,y);b!==x&&(Ea(a,y,x),this.Fs(a,y,b,x))},be=Vl.prototype,be.jp=function(a,y){Ti.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},be.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ea(a,b,x),Ts(this,"nodeParentKey",Gn,b,a,y,x),typeof b=="string"&&this.La(a,b)}},be.fm=function(a){Ti.prototype.fm.call(this,a),a=this.wa(a);var y=jp(this,a);if(y!==null){var x=un();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Ts(this,"nodeParentKey",Gn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Yh(this,a,x[y]);En(x)}},be.em=function(a){Ti.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Vh(this,y,a)},be.qp=function(a){Ti.prototype.qp.call(this,a);var y=this.mh(a);Yh(this,y,a)},be.lm=function(a,y){Ti.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},be.Tl=function(){return!0},be.xs=function(){return!0},ft.Object.defineProperties(Vl.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"}}}),Vl.prototype.setParentLinkCategoryForNodeData=Vl.prototype.Ms,Vl.prototype.getParentLinkCategoryForNodeData=Vl.prototype.ss,Vl.prototype.setParentKeyForNodeData=Vl.prototype.qe,Vl.prototype.getParentKeyForNodeData=Vl.prototype.mh,Vl.className="TreeModel",Ah.TreeModel=Vl;function Wa(a){Aa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=kh,this.Ti=0,this.Zv=new Ye,this.Jp=this.me=0,this.Xr=new Vp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=kh,this.K=Yl,this.nd=Kg,this.hd=ry,this.tf=6,this.Nn=C0,a&&Object.assign(this,a)}Jt(Wa,Aa),Wa.prototype.cloneProtected=function(a){Aa.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},Wa.prototype.qb=function(a){a.classType===Wa?a===w0||a===P0||a===S0||a===x0||a===Kg?this.sorting=a:a===Tf||a===Gg||a===Yl||a===$c?this.direction=a:a===bc||a===Qc||a===kh||a===Fh?this.arrangement=a:(a===og||a===C0)&&(this.nodeDiameterFormula=a):Aa.prototype.qb.call(this,a)},Wa.prototype.createNetwork=function(){return new Vg(this)},Wa.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 xn;y.addAll(a.iterator),a=new xn;var x=new xn,b=this.sort(y),E,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var ue=this.aspectRatio;(!isFinite(ue)||0>=ue)&&(ue=1);var fe=this.startAngle;isFinite(fe)||(fe=0);var ye=this.sweepAngle;if((!isFinite(ye)||360<ye||1>ye)&&(ye=360),y=this.spacing,isFinite(y)||(y=NaN),re===Fh&&oe===og?re=kh:re===Fh&&oe!==og&&(re=this.arrangement),(this.direction===Tf||this.direction===Gg)&&this.sorting!==Kg){for(oe=0;!(oe>=b.length)&&(a.add(b.M(oe)),!(oe+1>=b.length));oe+=2)x.add(b.M(oe+1));this.direction===Tf?(this.arrangement===Fh&&a.reverse(),b=new xn,b.addAll(a),b.addAll(x)):(this.arrangement===Fh&&x.reverse(),b=new xn,b.addAll(x),b.addAll(a))}oe=b.length;for(var Ce=z=E=0;Ce<b.length;Ce++){var Le=fe+ye*z*(this.direction===Yl?1:-1)/oe,Be=b.M(Ce).diameter;isNaN(Be)&&(Be=qc(b.M(Ce),Le)),360>ye&&(Ce===0||Ce===b.length-1)&&(Be/=2),E+=Be,z++}if(isNaN(le)||re===Fh){if(isNaN(y)&&(y=6),re!==kh&&re!==Fh){for(z=-1/0,ee=0;ee<oe;ee++)Ce=b.M(ee),E=b.M(ee===oe-1?0:ee+1),isNaN(Ce.diameter)&&qc(Ce,0),isNaN(E.diameter)&&qc(E,0),z=Math.max(z,(Ce.diameter+E.diameter)/2);ee=z+y,re===bc?le=(z+y)/(2*Math.PI/oe):le=v0(this,ee*(360<=ye?oe:oe-1),ue,fe*Math.PI/180,ye*Math.PI/180)}else le=v0(this,E+(360<=ye?oe:oe-1)*(re!==Fh?y:1.6*y),ue,fe*Math.PI/180,ye*Math.PI/180);z=le*ue}else if(z=le*ue,Ce=fy(this,le,z,fe*Math.PI/180,ye*Math.PI/180),isNaN(y))(re===kh||re===Fh)&&(y=(Ce-E)/(360<=ye?oe:oe-1));else if(re===kh||re===Fh)Ce=(Ce-E)/(360<=ye?oe:oe-1),Ce<y?(le=v0(this,E+y*(360<=ye?oe:oe-1),ue,fe*Math.PI/180,ye*Math.PI/180),z=le*ue):y=Ce;else{for(ee=-1/0,E=0;E<oe;E++)Le=b.M(E),Be=b.M(E===oe-1?0:E+1),isNaN(Le.diameter)&&qc(Le,0),isNaN(Be.diameter)&&qc(Be,0),ee=Math.max(ee,(Le.diameter+Be.diameter)/2);ee+=y,E=v0(this,ee*(360<=ye?oe:oe-1),ue,fe*Math.PI/180,ye*Math.PI/180),E>le?(le=E,z=le*ue):ee=Ce/(360<=ye?oe:oe-1)}if(this.kw=re,this.lc=le,this.Zm=ue,this.lw=fe,this.Wp=ye,this.Ti=y,this.me=z,this.Jp=ee,y=b,b=this.kw,re=this.lc,le=this.lw,ue=this.Wp,fe=this.Ti,ye=this.me,oe=this.Jp,this.direction!==Tf&&this.direction!==Gg||b!==Fh)if(this.direction===Tf||this.direction===Gg){switch(ee=0,b){case Qc:ee=180*y0(this,re,ye,le,oe)/Math.PI;break;case kh:oe=y=0,ee=a.first(),ee!==null&&(y=qc(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=qc(ee,Math.PI/2)),ee=180*y0(this,re,ye,le,fe+(y+oe)/2)/Math.PI;break;case bc:ee=ue/y.length}if(this.direction===Tf){switch(b){case Qc:Kp(this,a,le,$c);break;case kh:Gp(this,a,le,$c);break;case bc:Zp(this,a,ue/2,le,$c)}switch(b){case Qc:Kp(this,x,le+ee,Yl);break;case kh:Gp(this,x,le+ee,Yl);break;case bc:Zp(this,x,ue/2,le+ee,Yl)}}else{switch(b){case Qc:Kp(this,x,le,$c);break;case kh:Gp(this,x,le,$c);break;case bc:Zp(this,x,ue/2,le,$c)}switch(b){case Qc:Kp(this,a,le+ee,Yl);break;case kh:Gp(this,a,le+ee,Yl);break;case bc:Zp(this,a,ue/2,le+ee,Yl)}}}else switch(b){case Qc:Kp(this,y,le,this.direction);break;case kh:Gp(this,y,le,this.direction);break;case bc:Zp(this,y,ue,le,this.direction);break;case Fh:T1(this,y,ue,le,this.direction)}else T1(this,y,ue,le-ue/2,Yl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Zp(a,y,x,b,E){var z=a.Wp,ee=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=b+(E===Yl?oe*x/(360<=z?re:re-1):-(oe*x)/re),ue=y.M(oe),fe=ee*Math.tan(le)/a;fe=Math.sqrt((ee*ee+a*a*fe*fe)/(1+fe*fe)),ue.centerX=fe*Math.cos(le),ue.centerY=fe*Math.sin(le),ue.actualAngle=180*le/Math.PI}}function Gp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe),ue=y.M(oe===re-1?0:oe+1),fe=z*Math.sin(x);le.centerX=E*Math.cos(x),le.centerY=fe,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&qc(le,0),isNaN(ue.diameter)&&qc(ue,0),le=y0(a,E,z,b===Yl?x:-x,(le.diameter+ue.diameter)/2+ee),x+=b===Yl?le:-le}}function Kp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe);le.centerX=E*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=y0(a,E,z,b===Yl?x:-x,ee),x+=b===Yl?le:-le}}function T1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Vp,360>x){for(z=b+(E===Yl?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,B1(a,y,x,b,E)}else D1(a,y,x,b,E);a.Xr.commit(y)}function D1(a,y,x,b,E){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),le=a.me*Math.sin(b*Math.PI/180),ue=y.Fa();if(ue.length===3)ue[0].centerX=z,ue[0].centerY=0,ue[1].centerX=ue[0].centerX-ue[0].width/2-ue[1].width/2-ee,ue[1].y=ue[0].y,ue[2].centerX=(ue[0].centerX+ue[1].centerX)/2,ue[2].y=ue[0].y-ue[2].height-ee;else if(ue.length===4)ue[0].centerX=z,ue[0].centerY=0,ue[2].centerX=-ue[0].centerX,ue[2].centerY=ue[0].centerY,ue[1].centerX=0,ue[1].y=Math.min(ue[0].y,ue[2].y)-ue[1].height-ee,ue[3].centerX=0,ue[3].y=Math.max(ue[0].y+ue[0].height+ee,ue[2].y+ue[2].height+ee);else{z=Ye.alloc();for(var fe=0;fe<ue.length&&(ue[fe].centerX=oe,ue[fe].centerY=le,!(fe>=ue.length-1));fe++)O1(a,oe,le,ue,fe,E,z)||I1(a,oe,le,ue,fe,E,z),oe=z.x,le=z.y;if(Ye.free(z),a.mj++,!(23<a.mj)){oe=ue[0].centerX,le=ue[0].centerY,z=ue[ue.length-1].centerX,fe=ue[ue.length-1].centerY;var ye=Math.abs(oe-z)-((ue[0].width+ue[ue.length-1].width)/2+ee),Ce=Math.abs(le-fe)-((ue[0].height+ue[ue.length-1].height)/2+ee);ee=0,1>Math.abs(Ce)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0<Ce?Ce:1>Math.abs(ye)?0:ye,oe=Math.abs(z)>Math.abs(fe)?0<z!=le>fe:0<fe!=oe<z,(oe=E===Yl?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-ue[ue.length-1].width),ee=Math.min(ee,-ue[ue.length-1].height)),a.Xr.compare(ee,ue),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>ue.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,D1(a,y,x,b,E))}}}function B1(a,y,x,b,E){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(b*Math.PI/180),le=ee*Math.sin(b*Math.PI/180),ue=Ye.alloc(),fe=y.Fa(),ye=0;ye<fe.length&&(fe[ye].centerX=oe,fe[ye].centerY=le,!(ye>=fe.length-1));ye++)O1(a,oe,le,fe,ye,E,ue)||I1(a,oe,le,fe,ye,E,ue),oe=ue.x,le=ue.y;if(Ye.free(ue),a.mj++,!(23<a.mj)){if(oe=Math.atan2(le,oe),oe=E===Yl?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<fe.length;oe++)ee.mk[oe]=fe[oe].bounds.x,ee.tm[oe]=fe[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,B1(a,y,x,b,E))}}function O1(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,le=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ue=!1;if(0<=x!=(z===Yl)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=le,!1;ue=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=le,!1;ue=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ue&&(le=-le),Math.abs(x-le)>(b[E].height+b[E+1].height)/2?(ee.x=z,ee.y=le,!1):(ee.x=z,ee.y=le,!0)}function I1(a,y,x,b,E,z,ee){var re=a.lc,oe=a.me,le=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Yl)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=le,ee.y=z;return}b=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=le,ee.y=z;return}b=!0}le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==b&&(le=-le),ee.x=le,ee.y=z}Wa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Wa.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 Ye(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))},Wa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,b,E){var z=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 ee=0,re=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),oe=0,le=0;le<=z;le++){b!==void 0&&E!==void 0?oe=b+le*E/z:oe=le*Math.PI/(2*z);var ue=Math.sin(oe);ee+=Math.sqrt(1-a*a*ue*ue)*re}return b!==void 0&&E!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function v0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?fy(a,1,x,b,E):fy(a,1,x))}function y0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(b+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=E)return re*a}}Wa.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case P0:a.sort(this.comparer),a.reverse();break;case Kg:return this.ak(Dx(a));default:bt("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new xn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>E&&(E=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>E&&(E=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)E=a.indexOf(ee.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Wa.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.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(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var ee=[],re=[];b=[],E=new xn;for(var oe=0,le=0;le<y.length;le++){var ue=y[le].length;if(ue===1)b.push(le);else if(ue===0)E.add(a.M(le));else{if(oe===0)x.push(le);else{for(var fe=ue=1/0,ye=-1,Ce=[],Le=0;Le<x.length;Le++)0>y[x[Le]].indexOf(x[Le===x.length-1?0:Le+1])&&Ce.push(Le===x.length-1?0:Le+1);if(Ce.length===0)for(Le=0;Le<x.length;Le++)Ce.push(Le);for(Le=0;Le<Ce.length;Le++){for(var Be=Ce[Le],$e=y[le],Ze=0,rt=0;rt<ee.length;rt++){var st=z[ee[rt]],ct=z[re[rt]];if(st<ct){var Lt=st;st=ct}else Lt=ct;if(Lt<Be&&Be<=st)for(ct=0;ct<$e.length;ct++){var Xt=$e[ct];0>x.indexOf(Xt)||Lt<z[Xt]&&z[Xt]<st||Lt===z[Xt]||st===z[Xt]||Ze++}else for(ct=0;ct<$e.length;ct++)Xt=$e[ct],0>x.indexOf(Xt)||Lt<z[Xt]&&z[Xt]<st&&Lt!==z[Xt]&&st!==z[Xt]&&Ze++}for($e=Ze,rt=Ze=0;rt<y[le].length;rt++)Lt=x.indexOf(y[le][rt]),0<=Lt&&(Lt=Math.abs(Be-(Lt>=Be?Lt+1:Lt)),Ze+=Lt<x.length+1-Lt?Lt:x.length+1-Lt);for(rt=0;rt<ee.length;rt++)Lt=z[ee[rt]],st=z[re[rt]],Lt>=Be&&Lt++,st>=Be&&st++,Lt>st&&(ct=st,st=Lt,Lt=ct),st-Lt<(x.length+2)/2==(Lt<Be&&Be<=st)&&Ze++;($e<ue||$e===ue&&Ze<fe)&&(ue=$e,fe=Ze,ye=Be)}for(x.splice(ye,0,le),ue=0;ue<x.length;ue++)z[x[ue]]=ue;for(ue=0;ue<y[le].length;ue++)fe=y[le][ue],0<=x.indexOf(fe)&&(ee.push(le),re.push(fe))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<b.length;re++)if(oe=b[re],le=y[oe][0],ue=x.indexOf(le),0<=ue){for(ye=fe=0;ye<y[le].length;ye++)Ce=x.indexOf(y[le][ye]),0>Ce||Ce===ue||(Le=Ce>ue?Ce-ue:ue-Ce,fe+=Ce<ue!=Le>ee-Le?1:-1);x.splice(0>fe?ue:ue+1,0,oe),b.splice(re,1),re--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},ft.Object.defineProperties(Wa.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!==Fh&&a!==kh&&a!==Qc&&a!==bc||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Yl&&a!==$c&&a!==Tf&&a!==Gg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!P0&&a!==Kg||(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!==C0&&a!==og||(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 kh=new Bt(Wa,"ConstantSpacing",0),Qc=new Bt(Wa,"ConstantDistance",1),bc=new Bt(Wa,"ConstantAngle",2),Fh=new Bt(Wa,"Packed",3),Yl=new Bt(Wa,"Clockwise",4),$c=new Bt(Wa,"Counterclockwise",5),Tf=new Bt(Wa,"BidirectionalLeft",6),Gg=new Bt(Wa,"BidirectionalRight",7),S0=new Bt(Wa,"Forwards",8),x0=new Bt(Wa,"Reverse",9),w0=new Bt(Wa,"Ascending",10),P0=new Bt(Wa,"Descending",11),Kg=new Bt(Wa,"Optimized",12),C0=new Bt(Wa,"Pythagorean",13),og=new Bt(Wa,"Circular",14);Wa.className="CircularLayout",Wa.ConstantSpacing=kh,Wa.ConstantDistance=Qc,Wa.ConstantAngle=bc,Wa.Packed=Fh,Wa.Clockwise=Yl,Wa.Counterclockwise=$c,Wa.BidirectionalLeft=Tf,Wa.BidirectionalRight=Gg,Wa.Forwards=S0,Wa.Reverse=x0,Wa.Ascending=w0,Wa.Descending=P0,Wa.Optimized=Kg,Wa.Pythagorean=C0,Wa.Circular=og;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.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},Vp.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]}},Vp.className="VertexArrangement";function Vg(a){sa.call(this,a)}Jt(Vg,sa),Vg.prototype.createVertex=function(){return new Yp(this)},Vg.prototype.createEdge=function(){return new b0(this)},Vg.className="CircularNetwork";function Yp(a){zs.call(this,a),this.u=this.Si=NaN}Jt(Yp,zs);function qc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Fh)if(x.nodeDiameterFormula===og)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===og?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}ft.Object.defineProperties(Yp.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)}}}),Yp.className="CircularVertex";function b0(a){Au.call(this,a)}Jt(b0,Au),b0.className="CircularEdge";function pl(a){Aa.call(this),this.ah=null,this.An=0,this.$d=new ei(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}Jt(pl,Aa),pl.prototype.cloneProtected=function(a){Aa.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},pl.prototype.createNetwork=function(){return new ag(this)},pl.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 z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}R1(this,0,a)}this.network=y;var ee=b=x.iterator;b=this.arrangementSpacing;var re=ee.count,oe=!0;z=E=0;for(var le=un(),ue=0;ue<re+y.vertexes.count+2;ue++)le[ue]=null;re=0,ee.reset();for(var fe=dn.alloc();ee.next();)if(ue=ee.value,this.computeBounds(ue,fe),oe)oe=!1,E=fe.x+fe.width/2,z=fe.y+fe.height/2,le[0]=new Ye(fe.x+fe.width+b.width,fe.y),le[1]=new Ye(fe.x,fe.y+fe.height+b.height),re=2;else{var ye=z1(le,re,E,z,fe.width,fe.height,b),Ce=le[ye],Le=new Ye(Ce.x+fe.width+b.width,Ce.y),Be=new Ye(Ce.x,Ce.y+fe.height+b.height);for(ye+1<re&&le.splice(ye+1,0,null),le[ye]=Le,le[ye+1]=Be,re++,ye=Ce.x-fe.x,Ce=Ce.y-fe.y,ue=ue.vertexes.iterator;ue.next();)Le=ue.value,Le.centerX+=ye,Le.centerY+=Ce}for(dn.free(fe),ue=y.vertexes.iterator;ue.next();)ee=ue.value,ye=ee.bounds,2>re?(E=ye.x+ye.width/2,z=ye.y+ye.height/2,le[0]=new Ye(ye.x+ye.width+b.width,ye.y),le[1]=new Ye(ye.x,ye.y+ye.height+b.height),re=2):(oe=z1(le,re,E,z,ye.width,ye.height,b),fe=le[oe],Ce=new Ye(fe.x+ye.width+b.width,fe.y),ye=new Ye(fe.x,fe.y+ye.height+b.height),oe+1<re&&le.splice(oe+1,0,null),le[oe]=Ce,le[oe+1]=ye,re++,ee.centerX=fe.x+ee.width/2,ee.centerY=fe.y+ee.height/2);for(En(le),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)}}H1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},pl.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},pl.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 R1(a,y,x){if(Bx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,R1(a,y+1,x),H1(a,z),Ix(a,E),y=E.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Bx(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 Ox(a,y){for(var x=a.network,b=new ag(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var ee=new W1;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new xn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;E=re.fromVertex,ee=re.toVertex,E.network===b&&ee.network===b?b.Bo(re):E.network===b?(re=E.Hj,re===null&&(re=new xn,E.Hj=re),re.add(ee),E.Vd--,E.sh+=ee.sh):ee.network===b&&(re=ee.Hj,re===null&&(re=new xn,ee.Hj=re),re.add(E),ee.Vd--,ee.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Nt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var oe=E.Hj;if(oe!==null&&0<oe.count&&(ee=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ee))){for(var le=re=0,ue=oe.count-ee;ue<oe.count;ue++){var fe=oe.M(ue),ye=null;for(z=fe.edges.iterator;z.next();){var Ce=z.value;if(Ce.Ax(fe)===E){ye=Ce;break}}ye!==null&&(le+=ye.length,re+=fe.width*fe.height)}z=E.centerX,oe=E.centerY,ue=E.width,fe=E.height,ye=E.focus,Ce=ue*fe,1>Ce&&(Ce=1),re=Nt.sqrt((re+Ce+le*le*4/(ee*ee))/Ce),ee=(re-1)*ue/2,re=(re-1)*fe/2,E.bounds=new dn(z-ye.x-ee,oe-ye.y-re,ue+2*ee,fe+2*re),E.focus=new Ye(ye.x+ee,ye.y+re)}}return a.network=b,x}function Ix(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 z=E.Sv,ee=E.Tv;b.bounds=new dn(b.centerX-z,b.centerY-ee,E.Ss,E.Qs),b.focus=new Ye(z,ee),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,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=Nt.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,le=0,ue=y.vertexes.iterator;ue.next();){var fe=ue.value;1>=fe.Vd?oe++:(re=!0,le++,ee+=Math.atan2(y.centerY-fe.centerY,y.centerX-fe.centerX))}if(oe!==0){for(0<le&&(ee/=le),le=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(le=y/2),1<x.count&&x.sort(function(Ce,Le){return Ce===null||Le===null||Ce===Le?0:Le.width*Le.height-Ce.width*Ce.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(ue=null,fe=oe.edges.iterator;fe.next();){ue=fe.value;break}fe=oe.width;var ye=oe.height;fe=Nt.sqrt(fe*fe+ye*ye)/2,ue=z+ue.length+fe,fe=ee+(y*(re/2>>1)+le)*(re%2===0?1:-1),oe.centerX=b+ue*Math.cos(fe),oe.centerY=E+ue*Math.sin(fe),re++}}}}function z1(a,y,x,b,E,z,ee){var re=9e19,oe=-1,le=0;e:for(;le<y;le++){var ue=a[le],fe=ue.x-x,ye=ue.y-b;if(fe=fe*fe+ye*ye,fe<re){for(ye=le-1;0<=ye;ye--)if(a[ye].y>ue.y&&a[ye].x-ue.x<E+ee.width)continue e;for(ye=le+1;ye<y;ye++)if(a[ye].x>ue.x&&a[ye].y-ue.y<z+ee.height)continue e;oe=le,re=fe}}return oe}pl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},pl.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 z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function j1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,b+E<ee?a>y+z?(x=b+E-ee,a=a-y-z,Nt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ee,a=a+x-y,Nt.sqrt(b*b+a*a)):ee-(b+E):b>ee+re?a>y+z?(x=b-ee-re,a=a-y-z,Nt.sqrt(x*x+a*a)):a+x<y?(b=b-ee-re,a=a+x-y,Nt.sqrt(b*b+a*a)):b-(ee+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function H1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(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,z=x=x.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,b=Math.min(b,oe),E=Math.max(E,oe),x=Math.min(x,re),z=Math.max(z,re)}(E=E-b>z-x)?y.sort(function(Be,$e){return Be===null||$e===null||Be===$e?0:Be.centerX-$e.centerX}):y.sort(function(Be,$e){return Be===null||$e===null||Be===$e?0:Be.centerY-$e.centerY}),x=a.Zf;var le=b=re=0;for(z=0;z<y.length;z++){ee=y[z],b=ee.bounds,re=ee.focus,oe=b.x+re.x;var ue=b.y+re.y;b=ee.charge*a.electricalFieldX(oe,ue),le=ee.charge*a.electricalFieldY(oe,ue),b+=ee.mass*a.gravitationalFieldX(oe,ue),le+=ee.mass*a.gravitationalFieldY(oe,ue),ee.forceX+=b,ee.forceY+=le;for(var fe=z+1;fe<y.length;fe++){var ye=y[fe];if(ye!==ee){b=ye.bounds,re=ye.focus,le=b.x+re.x;var Ce=b.y+re.y;if(oe-le>x||le-oe>x){if(E)break}else if(ue-Ce>x||Ce-ue>x){if(!E)break}else{var Le=j1(ee,ye);1>Le?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new E0),Le=b.random(),re=b.random(),oe>le?(b=Math.abs(ye.bounds.right-ee.bounds.x),b=(1+b)*Le):oe<le?(b=Math.abs(ye.bounds.x-ee.bounds.right),b=-(1+b)*Le):(b=Math.max(ye.width,ee.width),b=(1+b)*Le-b/2),ue>Ce?(le=Math.abs(ye.bounds.bottom-ee.bounds.y),le=(1+le)*re):oe<le?(le=Math.abs(ye.bounds.y-ee.bounds.bottom),le=-(1+le)*re):(le=Math.max(ye.height,ee.height),le=(1+le)*re-le/2)):(re=-(ee.charge*ye.charge)/(Le*Le),b=(le-oe)/Le*re,le=(Ce-ue)/Le*re),ee.forceX+=b,ee.forceY+=le,ye.forceX-=b,ye.forceY-=le}}}}for(E=a.network.edges.iterator;E.next();)re=E.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,b=ee.x+oe.x,ee=ee.y+oe.y,ue=z.bounds,fe=z.focus,oe=ue.x+fe.x,ue=ue.y+fe.y,fe=j1(x,z),1>fe?(fe=a.randomNumberGenerator,fe===null&&(a.randomNumberGenerator=fe=new E0),re=fe.random(),fe=fe.random(),b=(b>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(ee>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*fe):(re=re.stiffness*(fe-re.length),b=(oe-b)/fe*re,le=(ue-ee)/fe*re),x.forceX+=b,x.forceY+=le,z.forceX-=b,z.forceY-=le;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}pl.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},pl.prototype.moveFixedVertex=function(){},pl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},pl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Bo,y.toSpot=Bo)}},pl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=dn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,dn.free(x)}x=dn.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()}dn.free(x)},pl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},pl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},pl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},pl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},pl.prototype.electricalFieldX=function(){return 0},pl.prototype.electricalFieldY=function(){return 0},pl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},pl.prototype.gravitationalFieldX=function(){return 0},pl.prototype.gravitationalFieldY=function(){return 0},pl.prototype.isFixed=function(a){return a.isFixed},ft.Object.defineProperties(pl.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"&&bt('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())}}}),pl.className="ForceDirectedLayout";function W1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}W1.className="ForceDirectedSubnet";function ag(a){sa.call(this,a)}Jt(ag,sa),ag.prototype.createVertex=function(){return new Up(this)},ag.prototype.createEdge=function(){return new Xp(this)},ag.className="ForceDirectedNetwork";function Up(a){zs.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Jt(Up,zs),ft.Object.defineProperties(Up.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)}}}),Up.className="ForceDirectedVertex";function Xp(a){Au.call(this,a),this.j=this.o=NaN}Jt(Xp,Au),ft.Object.defineProperties(Xp.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)}}}),Xp.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 Vo(a){Aa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=F0,this.Zk=N0,this.Qk=T0,this.bj=4,this.rk=D0,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 Ye,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Jt(Vo,Aa),Vo.prototype.cloneProtected=function(a){Aa.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Vo.prototype.qb=function(a){a.classType===Vo?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:bt("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},Vo.prototype.createNetwork=function(){return new Ug(this)},Vo.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!==Qp&&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===Qp&&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,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var ee=0,re=0,oe=0,le=0;if(b.link!==null){if(re=b.link,re===null)continue;var ue=E.node;if(ee=z.node,ue===null||ee===null)continue;var fe=re.fromNode;oe=re.toNode;for(var ye=re.fromPort;ye!==null&&!ye.Ed();)ye=ye.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(b.rev){le=fe;var Ce=ye;fe=oe,ye=re,oe=le,re=Ce}var Le=E.focus;le=z.focus;var Be=b.rev?z.bounds:E.bounds;Ce=Ye.alloc(),ue!==fe?Be.w()&&fe.isVisible()?fe.actualBounds.w()?(Sc(fe,ye,lo,Ce),Ce.x+=fe.actualBounds.x-Be.x,Ce.y+=fe.actualBounds.y-Be.y):(Sc(fe,ye,lo,Ce),Ce.w()||Ce.assign(Le)):Ce.assign(Le):Be.w()?(Sc(fe,ye,lo,Ce),Ce.w()||Ce.assign(Le)):Ce.assign(Le),fe=b.rev?E.bounds:z.bounds,ue=Ye.alloc(),ee!==oe?fe.w()&&oe.isVisible()?oe.actualBounds.w()?(Sc(oe,re,lo,ue),ue.x+=oe.actualBounds.x-fe.x,ue.y+=oe.actualBounds.y-fe.y):(Sc(oe,re,lo,ue),ue.w()||ue.assign(le)):ue.assign(le):fe.w()?(Sc(oe,re,lo,ue),ue.w()||ue.assign(le)):ue.assign(le),this.K===90||this.K===270?(ee=Math.round((Ce.x-Le.x)/this.kc),oe=Ce.x,re=Math.round((ue.x-le.x)/this.kc),le=ue.x):(ee=Math.round((Ce.y-Le.y)/this.kc),oe=Ce.y,re=Math.round((ue.y-le.y)/this.kc),le=ue.y),Ye.free(Ce),Ye.free(ue),b.portFromColOffset=ee,b.portFromPos=oe,b.portToColOffset=re,b.portToPos=le}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Ce=E.layer,ue=z.layer,fe=0,Be=b.link,Be!==null){var $e=Be.fromPort,Ze=Be.toPort;if($e!==null&&Ze!==null){var rt=Be.fromNode;if(ye=Be.toNode,rt!==null&&ye!==null){var st=k0(this,!0),ct=k0(this,!1),Lt=this.setsPortSpots?st:Be.computeSpot(!0,$e);Le=this.setsPortSpots?ct:Be.computeSpot(!1,Ze);var Xt=Be.isOrthogonal;Lt.$c()&&Lt.Hf(ct)&&Le.$c()&&Le.Hf(st)?fe=0:(st=Be.getLinkPoint(rt,$e,Lt,!0,Xt,ye,Ze,Ye.alloc()),ct=Be.getLinkDirection(rt,$e,st,Lt,!0,Xt,ye,Ze),Ye.free(st),Lt.ys()||ct!==Q1(this,b,!0)?this.setsPortSpots&&rt!==null&&rt.ports.count===1&&b.rev&&(fe+=1):fe+=1,Lt=Be.getLinkPoint(ye,Ze,Le,!1,Xt,rt,$e,Ye.alloc()),Be=Be.getLinkDirection(ye,Ze,Lt,Le,!1,Xt,rt,$e),Ye.free(Lt),Le.ys()||Be!==Q1(this,b,!1)?this.setsPortSpots&&ye!==null&&ye.ports.count===1&&b.rev&&(fe+=2):fe+=2)}}}if(ye=fe,fe=ye===1||ye===3,(ye=ye===2||ye===3)&&(Le=a.createVertex(),Le.node=null,Le.Dj=1,Le.layer=Ce,Le.near=E,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ee,E.portToColOffset=0,E.portFromPos=oe,E.portToPos=0,E=Le),Be=1,fe&&Be--,Ce-ue>Be&&0<Ce){for(b.valid=!1,Le=a.createVertex(),Le.node=null,Le.Dj=2,Le.layer=Ce-1,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=ye?0:ee,E.portToColOffset=0,E.portFromPos=ye?0:oe,E.portToPos=0,E=Le,Ce--;Ce-ue>Be&&0<Ce;)Le=a.createVertex(),Le.node=null,Le.Dj=3,Le.layer=Ce-1,a.dh(Le),E=a.Zj(E,Le,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Le,Ce--;E=a.Zj(Le,z,b.link),E.valid=!fe,fe&&(Le.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=re,E.portFromPos=0,E.portToPos=le}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=_c(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),ef(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Vo.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}Vo.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},Vo.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 ou(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 eh(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 Z1(a,y,x){var b=_c(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<E;ee++){var re=0,oe=b[ee],le=oe.near;if(le!==null&&le.layer===oe.layer)if(oe=le.index,oe>ee)for(var ue=ee+1;ue<oe;ue++){var fe=b[ue];fe.near===le&&fe.Dj===le.Dj||re++}else for(ue=ee-1;ue>oe;ue--)fe=b[ue],fe.near===le&&fe.Dj===le.Dj||re++;var ye;if(0<=x)for(oe=b[ee].sourceEdgesArrayAccess,le=0;le<oe.length;le++){var Ce=oe[le];if(Ce.valid&&Ce.fromVertex.layer!==y)for(fe=Ce.fromVertex.index,ue=Ce.portToPos,Ce=Ce.portFromPos,ye=le+1;ye<oe.length;ye++){var Le=oe[ye];if(Le.valid&&Le.fromVertex.layer!==y){var Be=Le.fromVertex.index,$e=Le.portToPos;Le=Le.portFromPos,ue<$e&&(fe>Be||fe===Be&&Ce>Le)&&re++,$e<ue&&(Be>fe||Be===fe&&Le>Ce)&&re++}}}if(0>=x){for(oe=b[ee].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(Ce=oe[le],Ce.valid&&Ce.toVertex.layer!==y)for(fe=Ce.toVertex.index,ue=Ce.portToPos,Ce=Ce.portFromPos,ye=le+1;ye<oe.length;ye++)Le=oe[ye],Le.valid&&Le.toVertex.layer!==y&&(Be=Le.toVertex.index,$e=Le.portToPos,Le=Le.portFromPos,Ce<Le&&(fe>Be||fe===Be&&ue>$e)&&re++,Le<Ce&&(Be>fe||Be===fe&&$e>ue)&&re++)}for(z[ee*E+ee]=re,oe=ee+1;oe<E;oe++){var Ze=0,rt=0;if(0<=x){re=b[ee].sourceEdgesArrayAccess;var st=b[oe].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(Ce=re[le],Ce.valid&&Ce.fromVertex.layer!==y)for(fe=Ce.fromVertex.index,Ce=Ce.portFromPos,ye=0;ye<st.length;ye++)Le=st[ye],Le.valid&&Le.fromVertex.layer!==y&&(Be=Le.fromVertex.index,Le=Le.portFromPos,(fe<Be||fe===Be&&Ce<Le)&&rt++,(Be<fe||Be===fe&&Le<Ce)&&Ze++)}if(0>=x){for(re=b[ee].destinationEdgesArrayAccess,st=b[oe].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(Ce=re[le],Ce.valid&&Ce.toVertex.layer!==y)for(fe=Ce.toVertex.index,ue=Ce.portToPos,ye=0;ye<st.length;ye++)Le=st[ye],Le.valid&&Le.toVertex.layer!==y&&(Be=Le.toVertex.index,$e=Le.portToPos,(fe<Be||fe===Be&&ue<$e)&&rt++,(Be<fe||Be===fe&&$e<ue)&&Ze++)}z[ee*E+oe]=Ze,z[oe*E+ee]=rt}}return ef(a,y,b),z}Vo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Z1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function L0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=_c(b,E),ee=b.tc[E],re=0,oe=0;oe<ee;oe++){var le=z[oe].destinationEdgesArrayAccess;if(le!==null)for(var ue=0;ue<le.length;ue++){var fe=le[ue];if(fe.valid&&fe.toVertex.layer!==E){var ye=fe.fromVertex.column+fe.portFromColOffset,Ce=fe.toVertex.column+fe.portToColOffset;re+=(Math.abs(ye-Ce)+1)*gy(fe)}}}ef(b,E,z),y+=re}return y}Vo.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 py(a,y,x){for(var b=_c(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,fe=0,ye=re.near;if(ye!==null&&ye.layer===re.layer&&(ue+=ye.column-1,fe++),oe!==null)for(ye=0;ye<oe.length;ye++){re=oe[ye];var Ce=re.fromVertex;re.valid&&!re.rev&&Ce.layer!==y&&(ue+=Ce.column,fe++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],ye=re.toVertex,re.valid&&!re.rev&&ye.layer!==y&&(ue+=ye.column,fe++);z[ee]=fe===0?-1:ue/fe}return ef(a,y,b),z}function G1(a,y,x){for(var b=_c(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var re=b[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,fe=[],ye=re.near;if(ye!==null&&ye.layer===re.layer&&(fe[ue]=ye.column-1,ue++),re=void 0,oe!==null)for(ye=0;ye<oe.length;ye++){re=oe[ye];var Ce=re.fromVertex;re.valid&&!re.rev&&Ce.layer!==y&&(fe[ue]=Ce.column+re.portFromColOffset,ue++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],ye=re.toVertex,re.valid&&!re.rev&&ye.layer!==y&&(fe[ue]=ye.column+re.portToColOffset,ue++);ue===0?z[ee]=-1:(fe.sort(function(Le,Be){return Le-Be}),le=ue>>1,z[ee]=ue&1?fe[le]:fe[le-1]+fe[le]>>1)}return ef(a,y,b),z}function Jp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,le=y.layer-oe.layer;re=a.linkMinLength(re),le===re&&Jp(a,oe,x,b,E,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,le=oe.layer-y.layer,re=a.linkMinLength(re),le===re&&Jp(a,oe,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();)my(a,ee.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}Vo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy: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(;jx(a)!==null;){for(E=K1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=K1(a);for(E=V1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=V1(a);E=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&oe++;le=0;for(var ue=re.sourceEdges;ue.next();)ue.value.fromVertex.valid&&le++;(E===null||z<oe-le)&&(E=re,z=oe-le)}}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 F0: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&&vy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Qp: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(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function K1(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 V1(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 vy(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,vy(a,E))}y.finish=a.Kn,a.Kn++}Vo.prototype.assignLayers=function(){switch(this.Zk){case xy:Y1(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=X1(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 N0:for(Y1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&J1(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 Y1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=U1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function U1(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,U1(a,z)+E)}y.layer=x}else x=y.layer;return x}function X1(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,X1(a,z)+E)}y.layer=x}else x=y.layer;return x}function J1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)J1(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var ee=b[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&Jp(a,re,0,-1,!0,!1)}for(Jp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var le=ee.value;if(le.component===1){var ue=0,fe=!1,ye=le.sourceEdgesArrayAccess;E=ye.length;for(var Ce=0;Ce<E;Ce++){var Le=ye[Ce],Be=Le.fromVertex;ue+=1,Be.component!==1&&(z+=1,Be=Be.layer-le.layer,Le=a.linkMinLength(Le),b=Math.min(b,Be-Le))}for(ye=le.destinationEdgesArrayAccess,E=ye.length,Ce=0;Ce<E;Ce++)Le=ye[Ce].toVertex,--ue,Le.component!==1?--z:fe=!0;(oe===null||ue<re)&&!fe&&(oe=le,re=ue)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Jp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(le=0,ue=!1,ye=ee.sourceEdgesArrayAccess,fe=ye.length,Ce=0;Ce<fe;Ce++)Le=ye[Ce].fromVertex,le+=1,Le.component!==1?b+=1:ue=!0;for(ye=ee.destinationEdgesArrayAccess,fe=ye.length,Ce=0;Ce<fe;Ce++)Le=ye[Ce],Be=Le.toVertex,--le,Be.component!==1&&(--b,Be=ee.layer-Be.layer,Le=a.linkMinLength(Le),E=Math.min(E,Be-Le));(re===null||le>z)&&!ue&&(re=ee,z=le)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else re.component=0}}}function Q1(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}Vo.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 T0: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&&$1(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&&q1(this,x)}};function $1(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],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&$1(a,b))}function q1(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],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&q1(a,b))}Vo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=ou(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,1),gh(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=ou(this)),b=this.Ia;0<=b;b--)M0(this,b,-1),gh(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=ou(this))}for(eh(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,0),gh(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=ou(this)),b=this.Ia;0<=b;b--)M0(this,b,0),gh(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=ou(this))}eh(this,y);var z,ee,re;switch(this.rk){case by:break;case Ey:for(re=a+1;(b=this.countCrossings())<re;)for(re=b,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=gh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=gh(this,b,1)||z;for(E=this.countCrossings(),E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=gh(this,b,1)||z;for(E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=gh(this,b,-1)||z;for(E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=gh(this,b,0)||z;for(E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=gh(this,b,0)||z;E>=a?eh(this,y):(a=E,y=ou(this))}break;default:case D0:for(x=this.Ia,ee=0,re=a+1;(b=this.countCrossings())<re;){for(re=b,z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=gh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=gh(this,b,1)||z;for(E=this.countCrossings(),E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=gh(this,b,1)||z;for(E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=gh(this,b,-1)||z;for(E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=gh(this,b,0)||z;for(E>=a?eh(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=gh(this,b,0)||z;E>=a?eh(this,y):(a=E,y=ou(this))}}eh(this,y)};function M0(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),ee=py(a,y,x);for(x=0;x<E;x++)ee[x]===-1&&(ee[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=b[x],b[x]=b[x+1],b[x+1]=oe);for(x=z=0;x<E;x++)oe=b[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);ef(a,y,b)}function gh(a,y,x){var b=_c(a,y),E=a.tc[y];x=Z1(a,y,x);var z,ee=[];for(z=0;z<E;z++)ee[z]=-1;var re=[];for(z=0;z<E;z++)re[z]=-1;for(var oe=!1,le=!0;le;)for(le=!1,z=0;z<E-1;z++){var ue=x[b[z].index*E+b[z+1].index],fe=x[b[z+1].index*E+b[z].index],ye=0,Ce=0,Le=b[z].column,Be=b[z+1].column,$e=a.nodeMinColumnSpace(b[z],!0),Ze=a.nodeMinColumnSpace(b[z],!1),rt=a.nodeMinColumnSpace(b[z+1],!0),st=a.nodeMinColumnSpace(b[z+1],!1);$e=Le-$e+rt,Ze=Be-Ze+st;var ct=b[z].sourceEdges.iterator;for(ct.reset();ct.next();)if(rt=ct.value,st=rt.fromVertex,rt.valid&&st.layer===y){for(rt=0;b[rt]!==st;)rt++;rt<z&&(ye+=2*(z-rt),Ce+=2*(z+1-rt)),rt===z+1&&(ye+=1),rt>z+1&&(ye+=4*(rt-z),Ce+=4*(rt-(z+1)))}for(ct=b[z].destinationEdges.iterator,ct.reset();ct.next();)if(rt=ct.value,st=rt.toVertex,rt.valid&&st.layer===y){for(rt=0;b[rt]!==st;)rt++;rt===z+1&&(Ce+=1)}for(ct=b[z+1].sourceEdges.iterator,ct.reset();ct.next();)if(rt=ct.value,st=rt.fromVertex,rt.valid&&st.layer===y){for(rt=0;b[rt]!==st;)rt++;rt<z&&(ye+=2*(z+1-rt),Ce+=2*(z-rt)),rt===z&&(Ce+=1),rt>z+1&&(ye+=4*(rt-(z+1)),Ce+=4*(rt-z))}for(ct=b[z+1].destinationEdges.iterator,ct.reset();ct.next();)if(rt=ct.value,st=rt.toVertex,rt.valid&&st.layer===y){for(rt=0;b[rt]!==st;)rt++;rt===z&&(ye+=1)}rt=st=0,ct=ee[b[z].index];var Lt=re[b[z].index],Xt=ee[b[z+1].index],hi=re[b[z+1].index];ct!==-1&&(st+=Math.abs(ct-Le),rt+=Math.abs(ct-Ze)),Lt!==-1&&(st+=Math.abs(Lt-Le),rt+=Math.abs(Lt-Ze)),Xt!==-1&&(st+=Math.abs(Xt-Be),rt+=Math.abs(Xt-$e)),hi!==-1&&(st+=Math.abs(hi-Be),rt+=Math.abs(hi-$e)),(Ce<ye-.5||Ce===ye&&fe<ue-.5||Ce===ye&&fe===ue&&rt<st-.5)&&(le=oe=!0,b[z].column=Ze,b[z+1].column=$e,ue=b[z],b[z]=b[z+1],b[z+1]=ue)}for(z=0;z<E;z++)b[z].index=z;return ef(a,y,b),oe}Vo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Ux)!==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 z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.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=Yg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,-1)||x;x=Yg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&(_1(this,-1),_1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Yg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,0)||x}}else Gx(this)};function Yg(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=_c(a,y),z=a.tc[y],ee=py(a,y,-1);if(0<x)for(b=0;b<z;b++)ee[b]=-1;var re=py(a,y,1);if(0>x)for(b=0;b<z;b++)re[b]=-1;for(var oe=!1,le=!0;le;)for(le=!1,b=0;b<z;b++){var ue=E[b].column,fe=a.nodeMinColumnSpace(E[b],!0),ye=a.nodeMinColumnSpace(E[b],!1),Ce=0;0>b-1||ue-E[b-1].column-1>fe+a.nodeMinColumnSpace(E[b-1],!1)?Ce=ue-1:Ce=ue,fe=b+1>=z||E[b+1].column-ue-1>ye+a.nodeMinColumnSpace(E[b+1],!0)?ue+1:ue;var Le=ye=0,Be=0;if(0>=x)for(var $e=E[b].sourceEdges.iterator;$e.next();){var Ze=$e.value,rt=Ze.fromVertex;if(Ze.valid&&rt.layer!==y){var st=gy(Ze),ct=Ze.portFromColOffset;Ze=Ze.portToColOffset,rt=rt.column,ye+=(Math.abs(ue+Ze-(rt+ct))+1)*st,Le+=(Math.abs(Ce+Ze-(rt+ct))+1)*st,Be+=(Math.abs(fe+Ze-(rt+ct))+1)*st}}if(0<=x)for($e=E[b].destinationEdges.iterator;$e.next();)Ze=$e.value,rt=Ze.toVertex,Ze.valid&&rt.layer!==y&&(st=gy(Ze),ct=Ze.portFromColOffset,Ze=Ze.portToColOffset,rt=rt.column,ye+=(Math.abs(ue+ct-(rt+Ze))+1)*st,Le+=(Math.abs(Ce+ct-(rt+Ze))+1)*st,Be+=(Math.abs(fe+ct-(rt+Ze))+1)*st);Ze=ct=st=0,$e=ee[E[b].index],rt=re[E[b].index],$e!==-1&&(st+=Math.abs($e-ue),ct+=Math.abs($e-Ce),Ze+=Math.abs($e-fe)),rt!==-1&&(st+=Math.abs(rt-ue),ct+=Math.abs(rt-Ce),Ze+=Math.abs(rt-fe)),Le<ye||Le===ye&&ct<st?(le=oe=!0,E[b].column=Ce):(Be<ye||Be===ye&&Ze<st)&&(le=oe=!0,E[b].column=fe)}return ef(a,y,E),a.normalize(),oe}function yy(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),ee=[];for(x=0;x<E;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var re=b[x].column,oe=a.nodeMinColumnSpace(b[x],!0),le=a.nodeMinColumnSpace(b[x],!1),ue=0;if(ee[x]===-1)if(x===0&&x===E-1)ue=re;else if(x===0){var fe=b[x+1].column;fe-re===le+a.nodeMinColumnSpace(b[x+1],!0)?ue=re-1:ue=re}else x===E-1?(fe=b[x-1].column,ue=re-fe===oe+a.nodeMinColumnSpace(b[x-1],!1)?re+1:re):(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=(oe+le)/2|0);else x===0&&x===E-1?ue=ee[x]:x===0?(fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=Math.min(ee[x],le)):x===E-1?(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,ue=Math.max(ee[x],oe)):(fe=b[x-1].column,oe=fe+a.nodeMinColumnSpace(b[x-1],!1)+oe+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,oe<ee[x]&&ee[x]<le?ue=ee[x]:oe>=ee[x]?ue=oe:le<=ee[x]&&(ue=le));ue!==re&&(z=!0,b[x].column=ue)}ef(a,y,b),a.normalize()}function Wx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),ee=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+ee>=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 Zx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){b=ee.value;var re=b.column-a.nodeMinColumnSpace(b,!0),oe=b.column+a.nodeMinColumnSpace(b,!1);re<=y&&oe>=y&&(E[b.layer]=!0),re<=x&&oe>=x&&(z[b.layer]=!0)}for(re=!0,x=!1,b=0;b<=a.Ia;b++)re=re&&!(E[b]&&z[b]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function _1(a,y){for(var x=0;x<=a.Ra;x++)for(;Wx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Zx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=ou(a),z=L0(a);for(b=z+1;z<b;){b=z,ex(a,x,1);var ee=L0(a);ee>z?eh(a,E):ee<z&&(z=ee,E=ou(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=ou(a),z=L0(a),b=z+1;z<b;)b=z,ex(a,x,-1),ee=L0(a),ee>z?eh(a,E):ee<z&&(z=ee,E=ou(a));a.normalize()}function ex(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&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)E[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee+1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee+1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)E[z*(a.Ra+1)+ee]!==-1&&E[z*(a.Ra+1)+ee-1]!==-1&&E[z*(a.Ra+1)+ee]!==E[z*(a.Ra+1)+ee-1]&&(y[E[z*(a.Ra+1)+ee]*a.le+E[z*(a.Ra+1)+ee-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),E[oe])for(E[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.splice(0,0,z);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 Gx(a){for(var y=un(),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 An,Kx(y,x);var z=null,ee=null,re=null,oe=null,le=(a.ve&1)!==0,ue=(a.ve&2)!==0,fe=(a.ve&4)!==0,ye=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=A0(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),re=A0(a,y,!1,!1)),b=Gi(y),E=b.next();!E.done;E=b.next())E.value.reverse();ye&&(a.verticalAlignment(y,x,!1),oe=A0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=A0(a,y,!0,!0)),En(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Ce){var Le=un();le&&Le.push(z.get(Ce)),ue&&Le.push(ee.get(Ce)),fe&&Le.push(re.get(Ce)),ye&&Le.push(oe.get(Ce)),Le.sort(function($e,Ze){return $e-Ze});var Be=Le.length;Be=(Le[Math.floor((Be-1)/2)]+Le[Math.ceil((Be-1)/2)])/2,En(Le),Ce.zc=Be})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,ee=a[b],re=a[b+1],oe=0;z<re.length;oe++){var le=re[oe];e:{if(le.node===null){var ue=Ly(le);if(0<ue.length){ue=ue[0].node===null;break e}}ue=!1}var fe=ue;if(oe===re.length-1||fe){for(ue=ee.length-1,fe&&(ue=Ly(le)[0].index);z<=oe;){if(le=re[z],!le.bo){fe=[];for(var ye=Gi(le.sourceEdgesArrayAccess),Ce=ye.next();!Ce.done;Ce=ye.next())Ce=Ce.value,Ce.valid&&fe.push(Ce);le.bo=fe}for(le=Gi(le.bo),fe=le.next();!fe.done;fe=le.next())fe=fe.value,ye=fe.fromVertex.index,(ye<E||ye>ue)&&y.add(fe);z++}E=ue}}}Vo.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Gi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Gi(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ee=x?Ly(z):Xx(z),re=ee.length;if(0<re){ee.sort(function(fe,ye){return fe.vi-ye.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var le=ee[re],ue=void 0;ue=x?B0(le,z):B0(z,le),!y.contains(ue)&&E<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,E=le.vi)}}}}};function Vx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function A0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Gi(y),ee=z.next();!ee.done;ee=z.next()){var re=Gi(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=Gi(y),re=z.next();!re.done;re=z.next()){re=Gi(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var le=0,ue=oe;ue.align!==oe;){var fe=ue.align,ye=ee?ue.width:ue.height,Ce=ee?fe.width:fe.height;if(x){var Le=B0(ue,fe),Be=Le.portFromPos,$e=Le.portToPos;Le.link!==null&&(ue.node&&ue.node!==Le.link.fromNode&&(Be=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Le.link.toNode&&($e=ee?fe.focusX:fe.focusY))}else Le=B0(fe,ue),Be=Le.portToPos,$e=Le.portFromPos,Le.link!==null&&(ue.node&&ue.node!==Le.link.toNode&&(Be=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Le.link.fromNode&&($e=ee?fe.focusX:fe.focusY));ye=b?ue.qg+(ye-Be)-(Ce-$e):ue.qg+Be-$e,fe.qg=ye,le=Math.min(le,ye),ue=ue.align}ue=oe;do ue.qg=ue.qg-le,ue=ue.align;while(ue!==oe)}}for(x=Gi(y),ee=x.next();!ee.done;ee=x.next())for(z=Gi(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&tx(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=nx(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(E?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new wi,y=Gi(y),ee=y.next();!ee.done;ee=y.next())for(x=Gi(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=E?ee.width:ee.height,a.add(ee,b?-ee.zc-z:ee.zc);return a}function tx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=nx(b,x),z=E.root;tx(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+ee-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 nx(a,y){var x=a.Tz;return a=a.vi,1>a&&bt("Could not determine previous vertex in layer"),y[x][a-1]}Vo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=un(),E=un(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=Yx(this,y[ee],b,E,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?b[x]-b[ee]:E[x]-E[ee],z.delta!==0&&y[ee].each(function(oe){return function(le){le.value+=oe.delta}}(z)));En(b),En(E)};function Yx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[E]=z,b[E]=ee,ee-z}Vo.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?_a:Ps:a.K===90?y?Ps:_a:a.K===180?y?ls:Ls:y?Ls:ls}Vo.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 z=1/0,ee=E=1/0,re=-1/0;a.next();){var oe=a.value,le=oe.layer,ue=oe.column|0;b?(ee=y.x+this.kc*ue,le=this.Kd[le]):(ee=this.Kd[le],le=y.y+this.kc*ue),oe.centerX=ee,oe.centerY=le,x&&isFinite(oe.zc)&&(b?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),E=Math.min(oe.y,E),b?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=E,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-E,this.Rf=new Ye(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Vo.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 dn(0,0,x,Math.abs(this.Ta[0]))):y.push(new dn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new dn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new dn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new dn(0,0,Math.abs(this.Ta[0]),x)):y.push(new dn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new dn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new dn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Vo.prototype.commitLayers=function(){},Vo.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,z=b.toNode,ee=b.fromPort,re=b.toPort;if(E!==null){var oe=E.findVisibleNode();oe!==null&&oe!==E&&(E=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var le=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var ue=x.fromVertex,fe=x.toVertex;if(x.valid)y.curve===ju&&y.pointsCount===4&&(ue.column===fe.column&&this.alignOption===0?(x=y.getLinkPoint(E,ee,le,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,E,ee),x.w()||x.set(E.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=b=!1,ee!==null&&le===Ya&&(b=!0),re!==null&&oe===Ya&&(x=!0),(b||x)&&(oe=null,b&&(oe=y.getLinkPointFromPoint(E,ee,ee.ga(lo),y.i(3),!0),oe.w()||oe.set(E.actualBounds.center),y.L(0,oe.x,oe.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,re,re.ga(lo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ue.layer===fe.layer)y.zf();else{var ye=!1,Ce=!1,Le=this.ie,Be=y.firstPickIndex+1;if(y.isOrthogonal){Ce=!0;var $e=y.pointsCount;4<$e&&y.points.removeRange(2,$e-3)}else if(y.curve===ju)ye=!0,$e=y.pointsCount,4<$e&&y.points.removeRange(2,$e-3),$e===4&&(Be=2);else{$e=y.pointsCount;var Ze=le===Ya,rt=oe===Ya;2<$e&&Ze&&rt?y.points.removeRange(1,$e-2):3<$e&&Ze&&!rt?y.points.removeRange(1,$e-3):3<$e&&!Ze&&rt?y.points.removeRange(2,$e-2):4<$e&&!Ze&&!rt&&y.points.removeRange(2,$e-3)}if(x.rev){for(;fe!==null&&ue!==fe;){var st=$e=null;for(Ze=fe.sourceEdges.iterator;Ze.next()&&(rt=Ze.value,rt.link!==x.link||($e=rt.fromVertex,st=rt.toVertex,$e.node!==null)););if($e===null)break;if($e!==ue){Ze=y.i(Be-1).x,rt=y.i(Be-1).y;var ct=$e.centerX,Lt=$e.centerY;if(Ce)this.K===180||this.K===0?Be===y.firstPickIndex+1?(y.m(Be++,Ze,rt),y.m(Be++,Ze,Lt)):(st!==null?st.centerY:rt)!==Lt&&(st=this.Ta[$e.layer-1]+this.Rf.x,y.m(Be++,st,rt),y.m(Be++,st,Lt)):Be===y.firstPickIndex+1?(y.m(Be++,Ze,rt),y.m(Be++,ct,rt)):(st!==null?st.centerX:Ze)!==ct&&(st=this.Ta[$e.layer-1]+this.Rf.y,y.m(Be++,Ze,st),y.m(Be++,ct,st));else if(Be===y.firstPickIndex+1){st=Math.max(10,this.he[fe.layer]);var Xt=Math.max(10,this.Ld[fe.layer]);if(ye)this.K===180?ct<=fe.bounds.x?(fe=fe.bounds.x,y.m(Be++,fe-st,Lt),y.m(Be++,fe,Lt),y.m(Be++,fe+Xt,Lt)):(y.m(Be++,ct-st,Lt),y.m(Be++,ct,Lt),y.m(Be++,ct+Xt,Lt)):this.K===90?Lt>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(Be++,ct,fe+Xt),y.m(Be++,ct,fe),y.m(Be++,ct,fe-st)):(y.m(Be++,ct,Lt+Xt),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt-st)):this.K===270?Lt<=fe.bounds.y?(fe=fe.bounds.y,y.m(Be++,ct,fe-st),y.m(Be++,ct,fe),y.m(Be++,ct,fe+Xt)):(y.m(Be++,ct,Lt-st),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt+Xt)):this.K===0&&(ct>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(Be++,fe+Xt,Lt),y.m(Be++,fe,Lt),y.m(Be++,fe-st,Lt)):(y.m(Be++,ct+Xt,Lt),y.m(Be++,ct,Lt),y.m(Be++,ct-st,Lt)));else{y.m(Be++,Ze,rt);var hi=0;this.K===180||this.K===0?((this.K===180?ct>=fe.bounds.right:ct<=fe.bounds.x)&&(hi=(this.K===0?-st:Xt)/2),y.m(Be++,Ze+hi,Lt)):((this.K===270?Lt>=fe.bounds.bottom:Lt<=fe.bounds.y)&&(hi=(this.K===90?-st:Xt)/2),y.m(Be++,ct,rt+hi)),y.m(Be++,ct,Lt)}}else st=Math.max(10,this.he[$e.layer]),Xt=Math.max(10,this.Ld[$e.layer]),ye?this.K===180?(y.m(Be++,ct-st-Le,Lt),y.m(Be++,Math.min(ct-st+Le/2,ct),Lt),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt),y.m(Be++,Math.max(ct+Xt-Le/2,ct),Lt),y.m(Be++,ct+Xt+Le,Lt)):this.K===90?(y.m(Be++,ct,Lt+Xt+Le),y.m(Be++,ct,Math.max(Lt+Xt-Le/2,Lt)),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt),y.m(Be++,ct,Math.min(Lt-st+Le/2,Lt)),y.m(Be++,ct,Lt-st-Le)):this.K===270?(y.m(Be++,ct,Lt-st-Le),y.m(Be++,ct,Math.min(Lt-st+Le/2,Lt)),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt),y.m(Be++,ct,Math.max(Lt+Xt-Le/2,Lt)),y.m(Be++,ct,Lt+Xt+Le)):(y.m(Be++,ct+Xt+Le,Lt),y.m(Be++,Math.max(ct+Xt-Le/2,ct),Lt),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt),y.m(Be++,Math.min(ct-st+Le/2,ct),Lt),y.m(Be++,ct-st-Le,Lt)):y.m(Be++,ct,Lt)}fe=$e}(re===null||le!==Ya||Ce)&&(Ze=y.i(Be-1).x,rt=y.i(Be-1).y,ct=y.i(Be).x,Lt=y.i(Be).y,Ce?(Le=this.Ld[ue.layer],this.K===180||this.K===0?(Ce=rt,Ce>=ue.bounds.y&&Ce<=ue.bounds.bottom&&(this.K===180?ct>=ue.bounds.x:ct<=ue.bounds.right)&&(fe=ue.centerX+(this.K===180?-Le:Le),Ce<ue.bounds.y+ue.bounds.height/2?Ce=ue.bounds.y-this.kc/2:Ce=ue.bounds.bottom+this.kc/2,y.m(Be++,fe,rt),y.m(Be++,fe,Ce)),y.m(Be++,ct,Ce)):(Ce=Ze,Ce>=ue.bounds.x&&Ce<=ue.bounds.right&&(this.K===270?Lt>=ue.bounds.y:Lt<=ue.bounds.bottom)&&(fe=ue.centerY+(this.K===270?-Le:Le),Ce<ue.bounds.x+ue.bounds.width/2?Ce=ue.bounds.x-this.kc/2:Ce=ue.bounds.right+this.kc/2,y.m(Be++,Ze,fe),y.m(Be++,Ce,fe)),y.m(Be++,Ce,Lt)),y.m(Be++,ct,Lt)):ye?(st=Math.max(10,this.he[ue.layer]),Xt=Math.max(10,this.Ld[ue.layer]),this.K===180&&ct>=ue.bounds.x?(fe=ue.bounds.x+ue.bounds.width,y.L(Be-2,fe,rt),y.L(Be-1,fe+Xt,rt)):this.K===90&&Lt<=ue.bounds.bottom?(fe=ue.bounds.y,y.L(Be-2,Ze,fe),y.L(Be-1,Ze,fe-st)):this.K===270&&Lt>=ue.bounds.y?(fe=ue.bounds.y+ue.bounds.height,y.L(Be-2,Ze,fe),y.L(Be-1,Ze,fe+Xt)):this.K===0&&ct<=ue.bounds.right&&(fe=ue.bounds.x,y.L(Be-2,fe,rt),y.L(Be-1,fe-st,rt))):(st=Math.max(10,this.he[ue.layer]),Xt=Math.max(10,this.Ld[ue.layer]),Ce=0,this.K===180||this.K===0?((this.K===180?ct<=ue.bounds.x:ct>=ue.bounds.right)&&(Ce=(this.K===0?Xt:-st)/2),y.m(Be++,ct+Ce,rt)):((this.K===270?Lt<=ue.bounds.y:Lt>=ue.bounds.bottom)&&(Ce=(this.K===90?Xt:-st)/2),y.m(Be++,Ze,Lt+Ce)),y.m(Be++,ct,Lt)))}else{for(;ue!==null&&ue!==fe;){for(st=$e=null,ue=ue.destinationEdges.iterator;ue.next()&&(Ze=ue.value,Ze.link!==x.link||($e=Ze.toVertex,st=Ze.fromVertex,st.node!==null&&(st=null),$e.node!==null)););if($e===null)break;$e!==fe&&(Ze=y.i(Be-1).x,rt=y.i(Be-1).y,ct=$e.centerX,Lt=$e.centerY,Ce?this.K===180||this.K===0?(st!==null?st.centerY:rt)!==Lt&&(st=this.Ta[$e.layer]+this.Rf.x,Be===y.firstPickIndex+1&&(st=this.K===0?Math.max(st,Ze):Math.min(st,Ze)),y.m(Be++,st,rt),y.m(Be++,st,Lt)):(st!==null?st.centerX:Ze)!==ct&&(st=this.Ta[$e.layer]+this.Rf.y,Be===y.firstPickIndex+1&&(st=this.K===90?Math.max(st,rt):Math.min(st,rt)),y.m(Be++,Ze,st),y.m(Be++,ct,st)):(st=Math.max(10,this.he[$e.layer]),Xt=Math.max(10,this.Ld[$e.layer]),ye?this.K===180?(y.m(Be++,ct+Xt+Le,Lt),y.m(Be++,Math.max(ct+Xt-Le/2,ct),Lt),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt),y.m(Be++,Math.min(ct-st+Le/2,ct),Lt),y.m(Be++,ct-st-Le,Lt)):this.K===90?(y.m(Be++,ct,Lt-st-Le),y.m(Be++,ct,Math.min(Lt-st+Le/2,Lt)),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt),y.m(Be++,ct,Math.max(Lt+Xt-Le/2,Lt)),y.m(Be++,ct,Lt+Xt+Le)):this.K===270?(y.m(Be++,ct,Lt+Xt+Le),y.m(Be++,ct,Math.max(Lt+Xt-Le/2,Lt)),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt),y.m(Be++,ct,Math.min(Lt-st+Le/2,Lt)),y.m(Be++,ct,Lt-st-Le)):(y.m(Be++,ct-st-Le,Lt),y.m(Be++,Math.min(ct-st+Le/2,ct),Lt),y.m(Be++,ct,Lt),y.m(Be++,ct,Lt),y.m(Be++,Math.max(ct+Xt-Le/2,ct),Lt),y.m(Be++,ct+Xt+Le,Lt)):this.K===180?(y.m(Be++,ct+Xt,Lt),y.m(Be++,ct-st,Lt)):this.K===90?(y.m(Be++,ct,Lt-st),y.m(Be++,ct,Lt+Xt)):this.K===270?(y.m(Be++,ct,Lt+Xt),y.m(Be++,ct,Lt-st)):(y.m(Be++,ct-st,Lt),y.m(Be++,ct+Xt,Lt)))),ue=$e}Ce&&(Ze=y.i(Be-1).x,rt=y.i(Be-1).y,ct=y.i(Be).x,Lt=y.i(Be).y,this.K===180||this.K===0?rt!==Lt&&(st=this.K===0?Math.min(Math.max((ct+Ze)/2,this.Ta[fe.layer]+this.Rf.x),ct):Math.max(Math.min((ct+Ze)/2,this.Ta[fe.layer]+this.Rf.x),ct),y.m(Be++,st,rt),y.m(Be++,st,Lt)):Ze!==ct&&(st=this.K===90?Math.min(Math.max((Lt+rt)/2,this.Ta[fe.layer]+this.Rf.y),Lt):Math.max(Math.min((Lt+rt)/2,this.Ta[fe.layer]+this.Rf.y),Lt),y.m(Be++,Ze,st),y.m(Be++,ct,st)))}b!==null&&ye&&4<=y.pointsCount&&(ee!==null&&(ee=le===Ya?y.getLinkPointFromPoint(E,ee,ee.ga(lo),y.i(3),!0):y.i(0),le===Ya&&(le=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+le.x)/2,le.y),y.L(2,b.x,(le.y+b.y)/2)):(y.L(1,le.x,(ee.y+le.y)/2),y.L(2,(le.x+b.x)/2,b.y))),ee.w()||ee.set(E.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(E=oe===Ya?y.getLinkPointFromPoint(z,re,re.ga(lo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Ya&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(E.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Vo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new xn,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 z=b.i(E),ee=b.i(E+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new tf;re.layer=Math.floor(z.y/2);var oe=b.i(0),le=b.i(b.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=le.x*le.x+le.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=E,re.link=b,E+2<b.pointsCount){oe=b.i(E-1),le=b.i(E+2);var ue=0;oe.y<z.y?ue=le.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(ue=le.y>z.y?0:ee.x<z.x?2:1),re.j=ue}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<E;oe++)le=x[oe],le.jc!==re&&(ue++,re=le.jc);this.zi(x,this.Ux,z,z+ee);var fe=1;for(re=x[z].first,oe=z;oe<E;oe++)le=x[oe],le.first!==re&&(fe++,re=le.first);for(oe=!0,le=fe,ue<fe?(oe=!1,le=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<E;fe++){var ye=x[fe];(oe?ye.first:ye.jc)!==re&&(ue++,re=oe?ye.first:ye.jc);var Ce=ye.link;z=Ce.i(ye.index),ee=Ce.i(ye.index+1);var Le=this.linkSpacing*(ue-(le-1)/2);y++,Ce.uh(),Ce.L(ye.index,z.x,z.y+Le),Ce.L(ye.index+1,ee.x,ee.y+Le),Ce.zf()}}z=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++)z=b.i(E),ee=b.i(E+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new tf,re.layer=Math.floor(z.x/2),oe=b.i(0),le=b.i(b.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=le.x+le.y*le.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=E,re.link=b,E+2<b.pointsCount&&(oe=b.i(E-1),le=b.i(E+2),ue=0,oe.x<z.x?ue=le.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(ue=le.x>z.x?0:ee.y<z.y?2:1),re.j=ue),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ee=x[z].Ic,E=a+1;E<b&&x[E].rd<ee;)ee=Math.max(ee,x[E].Ic),E++;if(ee=E-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<E;oe++)le=x[oe],le.jc!==re&&(ue++,re=le.jc);for(this.zi(x,this.Ux,z,z+ee),fe=1,re=x[z].first,oe=z;oe<E;oe++)le=x[oe],le.first!==re&&(fe++,re=le.first);for(oe=!0,le=fe,ue<fe?(oe=!1,le=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<E;fe++)ye=x[fe],(oe?ye.first:ye.jc)!==re&&(ue++,re=oe?ye.first:ye.jc),Ce=ye.link,z=Ce.i(ye.index),ee=Ce.i(ye.index+1),Le=this.linkSpacing*(ue-(le-1)/2),y++,Ce.uh(),Ce.L(ye.index,z.x+Le,z.y),Ce.L(ye.index+1,ee.x+Le,ee.y),Ce.zf()}z=E}a=b}}}},be=Vo.prototype,be.Vx=function(a,y){return a instanceof tf&&y instanceof tf&&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},be.Ux=function(a,y){return a instanceof tf&&y instanceof tf&&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},be.Js=function(a,y){return a instanceof tf&&y instanceof tf&&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},be.B=function(a,y){return a-=y,-1<a&&1>a},be.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&bt("not in range 0 <= from < length: "+x),z===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 _c(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 ef(a,y,x){a.He[a.tc[y]]=x}ft.Object.defineProperties(Vo.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()):bt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==F0&&a!==Qp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==N0&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==T0&&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!==by&&a!==D0&&a!==Ey||(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 F0=new Bt(Vo,"CycleDepthFirst",0),Sy=new Bt(Vo,"CycleGreedy",1),Qp=new Bt(Vo,"CycleFromLayers",2),N0=new Bt(Vo,"LayerOptimalLinkLength",0),xy=new Bt(Vo,"LayerLongestPathSink",1),wy=new Bt(Vo,"LayerLongestPathSource",2),T0=new Bt(Vo,"InitDepthFirstOut",0),Py=new Bt(Vo,"InitDepthFirstIn",1),Cy=new Bt(Vo,"InitNaive",2),by=new Bt(Vo,"AggressiveNone",0),D0=new Bt(Vo,"AggressiveLess",1),Ey=new Bt(Vo,"AggressiveMore",2),Ux=8;Vo.className="LayeredDigraphLayout",Vo.CycleDepthFirst=F0,Vo.CycleGreedy=Sy,Vo.CycleFromLayers=Qp,Vo.LayerOptimalLinkLength=N0,Vo.LayerLongestPathSink=xy,Vo.LayerLongestPathSource=wy,Vo.InitDepthFirstOut=T0,Vo.InitDepthFirstIn=Py,Vo.InitNaive=Cy,Vo.AggressiveNone=by,Vo.AggressiveLess=D0,Vo.AggressiveMore=Ey,Vo.PackNone=0,Vo.PackExpand=1,Vo.PackStraighten=2,Vo.PackMedian=4,Vo.PackAll=15,Vo.AlignNone=0,Vo.AlignUpperLeft=1,Vo.AlignUpperRight=2,Vo.AlignLowerLeft=4,Vo.AlignLowerRight=8,Vo.AlignAll=15;function tf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}tf.className="SegInfo";function Ug(a){sa.call(this,a)}Jt(Ug,sa),Ug.prototype.createVertex=function(){return new th(this)},Ug.prototype.createEdge=function(){return new $p(this)},Ug.className="LayeredDigraphNetwork";function th(a){zs.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Jt(th,zs);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],b=Gi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Gi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;bt("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=Gi(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=Gi(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}th.prototype.Cl=function(a){zs.prototype.Cl.call(this,a),this.bo=this.co=null},th.prototype.Kl=function(a){zs.prototype.Kl.call(this,a),this.bo=this.co=null},th.prototype.zl=function(a){zs.prototype.zl.call(this,a),this.$n=this.ao=null},th.prototype.Jl=function(a){zs.prototype.Jl.call(this,a),this.$n=this.ao=null},ft.Object.defineProperties(th.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)}}}),th.prototype.deleteDestinationEdge=th.prototype.Jl,th.prototype.addDestinationEdge=th.prototype.zl,th.prototype.deleteSourceEdge=th.prototype.Kl,th.prototype.addSourceEdge=th.prototype.Cl,th.className="LayeredDigraphVertex";function $p(a){Au.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Jt($p,Au),ft.Object.defineProperties($p.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)}}}),$p.className="LayeredDigraphEdge";function Qr(a){Aa.call(this),this.Ub=new An,this.Wn=z0,this.ud=Md,this.vo=H0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new ei(10,10).freeze();var y=new hg(this);this.W=new ph(y),this.Y=new ph(y),this.ru=[],a&&Object.assign(this,a)}Jt(Qr,Aa),Qr.prototype.cloneProtected=function(a){Aa.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Qr.prototype.qb=function(a){a.classType===Qr?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:bt("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},Qr.prototype.createNetwork=function(){return new hg(this)},Qr.prototype.makeNetwork=function(a){function y(b){if(b instanceof fi)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof qn){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 Yt?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof br?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Qr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Z0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Yt&&(y=a),this.path===z0&&y!==null?this.ud=y.isTreePathToChildren?Md:lg:this.ud=this.path===z0?Md: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 An,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof fi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof ph&&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,My(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=rx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,My(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&lx(this,y);if(this.Cu(),this.layerStyle===G0){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===zy)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 z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new An,this.isValidLayout=!0};function Jx(a){var y=new An;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Qr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Md:x.sourceEdges.count===0&&this.Ub.add(x);break;case lg:x.destinationEdges.count===0&&this.Ub.add(x);break;default:bt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=rx(this,a),a!==null&&this.Ub.add(a))};function rx(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Md:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case lg:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:bt("Unhandled path value "+a.ud.toString())}}return b}function My(a,y){if(y!==null){switch(a.ud){case Md:if(0<y.destinationEdges.count){for(var x=new xn,b=y.destinationVertexes;b.next();){var E=b.value;ox(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case lg:if(0<y.sourceEdges.count){for(x=new xn,b=y.sourceVertexes;b.next();)E=b.value,ox(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:bt("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)My(a,x[y])}}function ox(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}Qr.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 z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Fd&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];ax(a,oe),x+=oe.descendantCount+1,b=Math.max(b,oe.maxChildrenCount),E=Math.max(E,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case H0:return y.parent!==null?y.parent:a.W;case Oy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Dy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Qr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===Fd){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 sx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)sx(a,y[b])}}Qr.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==Fd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Qr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xg:break;case _p:a.children.reverse();break;case em:a.children.sort(a.comparer);break;case tm:a.children.sort(a.comparer),a.children.reverse();break;default:bt("Unhandled sorting value "+a.sorting.toString())}},Qr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Qr.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=nf(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var le=a.node.Mu();le.next();){var ue=le.value;ue.category==="Comment"&&ue.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ue),ue.Va(),ue=ue.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ue.width),ee+=ue.height+Math.abs(re)):(z+=ue.width+Math.abs(re),ee=Math.max(ee,ue.height)),re=oe)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=dn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=E,dn.free(E))};function nf(a){return a===Ec||a===Fd||a===Lc||a===Qd}function qp(a){return a===Ec||a===Fd}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(nf(x)){if(qp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Lc)return!0}}return!1}Qr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=nf(z)),b=b===90||b===270,x=E===90||E===270;for(var ee=a.childrenCount===0,re=Ay(a),oe=0,le=a.comments,ue=le.length,fe=Ye.alloc(),ye=0;ye<ue;ye++){var Ce=le[ye],Le=Ce.measuredBounds;if(b&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<E&&!z||x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x-a.commentMargin-Le.width,a.bounds.y+oe),Ce.move(fe),Ce=Ce.Sd();Ce.next();){var Be=Ce.value;Be.fromSpot=ls,Be.toSpot=Ls}else for(fe.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Ce.move(fe),Ce=Ce.Sd();Ce.next();)Be=Ce.value,Be.fromSpot=Ls,Be.toSpot=ls;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Ce.move(fe),Ce=Ce.Sd();Ce.next();)Be=Ce.value,Be.fromSpot=Ls,Be.toSpot=ls;else for(fe.h(a.bounds.x+a.commentMargin-Le.width,a.bounds.y+oe),Ce.move(fe),Ce=Ce.Sd();Ce.next();)Be=Ce.value,Be.fromSpot=ls,Be.toSpot=Ls;oe=0<=a.commentSpacing?oe+(Le.height+a.commentSpacing):oe+(a.commentSpacing-Le.height)}else{if(135<E&&!z||!x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Le.height),Ce.move(fe),Ce=Ce.Sd();Ce.next();)Be=Ce.value,Be.fromSpot=_a,Be.toSpot=Ps;else for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Ce.move(fe),Ce=Ce.Sd();Ce.next();)Be=Ce.value,Be.fromSpot=Ps,Be.toSpot=_a;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Ce.move(fe),Ce=Ce.Sd();Ce.next();)Be=Ce.value,Be.fromSpot=Ps,Be.toSpot=_a;else for(fe.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Le.height),Ce.move(fe),Ce=Ce.Sd();Ce.next();)Be=Ce.value,Be.fromSpot=_a,Be.toSpot=Ps;oe=0<=a.commentSpacing?oe+(Le.width+a.commentSpacing):oe+(a.commentSpacing-Le.width)}}if(Ye.free(fe),y=oe-a.commentSpacing-(b?y.height:y.width),this.ud===Md)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)}},Qr.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 j0:ux(this,a);break;case nm:if(a.alignment===Fd)ux(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=nf(x)),b=Ay(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=Nh(a);y=E===90||E===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)b=ee[x],z=Math.max(z,y?b.Da.width:b.Da.height);var oe=a.alignment;b=oe===Ad;var le=oe===kd,ue=nf(oe),fe=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var ye=a.nodeSpacing,Ce=this.computeNodeIndent(a),Le=a.rowSpacing,Be=0;(b||le||a.hm||a.im&&a.maxGenerationCount===1)&&(Be=Math.max(0,a.rowIndent)),b=a.width;var $e=a.height,Ze=0,rt=0,st=0,ct=null,Lt=null,Xt=0,hi=0,bi=0,yi=0,Jn=0,kn=0,Cr=0,fr=0;if(ue&&!qp(oe)&&135<E&&ee.reverse(),qp(oe))if(1<re)for(var Do=0;Do<re;Do++)Do%2===0&&Do!==re-1&&(fr=Math.max(fr,y?ee[Do].Da.width:ee[Do].Da.height));else re===1&&(fr=y?ee[0].Da.width:ee[0].Da.height);if(ue){switch(oe){case Ec:rt=135>E?hx(this,a,ee,fr,Ze,rt):dx(this,a,ee,fr,Ze,rt),fr=rt.x,Ze=rt.width,rt=rt.height;break;case Lc:for(ct=0;ct<re;ct++)Lt=ee[ct],fe=Lt.Da,st=kn===0?0:Le,y?(Lt.S.h(z-fe.width,yi+st),Ze=Math.max(Ze,fe.width),rt=Math.max(rt,yi+st+fe.height),yi+=st+fe.height):(Lt.S.h(bi+st,z-fe.height),Ze=Math.max(Ze,bi+st+fe.width),rt=Math.max(rt,fe.height),bi+=st+fe.width),kn++;break;case Qd:for(ct=0;ct<re;ct++)Lt=ee[ct],z=Lt.Da,fe=kn===0?0:Le,y?(Lt.S.h(ye/2+a.focus.x,yi+fe),Ze=Math.max(Ze,z.width),rt=Math.max(rt,yi+fe+z.height),yi+=fe+z.height):(Lt.S.h(bi+fe,ye/2+a.focus.y),Ze=Math.max(Ze,bi+fe+z.width),rt=Math.max(rt,z.height),bi+=fe+z.width),kn++}ct=mu(this,2),Lt=mu(this,2),y?(ct[0].h(0,0),ct[1].h(0,rt),Lt[0].h(Ze,0)):(ct[0].h(0,0),ct[1].h(Ze,0),Lt[0].h(0,rt)),Lt[1].h(Ze,rt)}else for(Do=0;Do<re;Do++){var ra=ee[Do],Ks=ra.Da;if(y){0<fe&&0<kn&&bi+ye+Ks.width>fe&&(bi<z&&Df(a,oe,z-bi,0,Cr,Do-1),Jn++,kn=0,Cr=Do,st=rt,bi=0,yi=135<E?-rt-Le:rt+Le),I0(this,ra,0,yi);var qs=0;if(kn===0)ct=ra.Yo,Lt=ra.kp,Xt=Ks.width,hi=Ks.height,(ct===null||Lt===null||E!==Nh(ra))&&(ct=mu(this,2),Lt=mu(this,2),ct[0].h(0,0),ct[1].h(0,hi),Lt[0].h(Xt,0),Lt[1].h(Xt,hi));else{var Fl=un();hi=cx(this,a,ra,ct,Lt,Xt,hi,Fl),qs=hi.x,ct=Fl[0],Lt=Fl[1],Xt=hi.width,hi=hi.height,En(Fl),bi<Ks.width&&0>qs&&(sg(a,-qs,0,Cr,Do-1),R0(ct,-qs,0),R0(Lt,-qs,0),qs=0)}ra.S.h(qs,yi),Ze=Math.max(Ze,Xt),rt=Math.max(rt,st+(Jn===0?0:Le)+Ks.height),bi=Xt}else 0<fe&&0<kn&&yi+ye+Ks.height>fe&&(yi<z&&Df(a,oe,0,z-yi,Cr,Do-1),Jn++,kn=0,Cr=Do,st=Ze,yi=0,bi=135<E?-Ze-Le:Ze+Le),I0(this,ra,bi,0),qs=0,kn===0?(ct=ra.Yo,Lt=ra.kp,Xt=Ks.width,hi=Ks.height,(ct===null||Lt===null||E!==Nh(ra))&&(ct=mu(this,2),Lt=mu(this,2),ct[0].h(0,0),ct[1].h(Xt,0),Lt[0].h(0,hi),Lt[1].h(Xt,hi))):(Fl=un(),hi=cx(this,a,ra,ct,Lt,Xt,hi,Fl),qs=hi.x,ct=Fl[0],Lt=Fl[1],Xt=hi.width,hi=hi.height,En(Fl),yi<Ks.height&&0>qs&&(sg(a,0,-qs,Cr,Do-1),R0(ct,0,-qs),R0(Lt,0,-qs),qs=0)),ra.S.h(bi,qs),rt=Math.max(rt,hi),Ze=Math.max(Ze,st+(Jn===0?0:Le)+Ks.width),yi=hi;kn++}switch(0<Jn&&(y?(rt+=Math.max(0,x),bi<Ze&&Df(a,oe,Ze-bi,0,Cr,re-1),0<Be&&(le||sg(a,Be,0,0,re-1),Ze+=Be)):(Ze+=Math.max(0,x),yi<rt&&Df(a,oe,0,rt-yi,Cr,re-1),0<Be&&(le||sg(a,0,Be,0,re-1),rt+=Be))),Be=le=0,oe){case Jg:y?le+=Ze/2-a.focus.x-Ce/2:Be+=rt/2-a.focus.y-Ce/2;break;case ug:0<Jn?y?le+=Ze/2-a.focus.x-Ce/2:Be+=rt/2-a.focus.y-Ce/2:y?(fr=ee[0].S.x+ee[0].la.x,le+=fr+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-fr)/2-a.focus.x-Ce/2):(fr=ee[0].S.y+ee[0].la.y,Be+=fr+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-fr)/2-a.focus.y-Ce/2);break;case Ad:y?(le-=Ce,Ze+=Ce):(Be-=Ce,rt+=Ce);break;case kd:y?(le+=Ze-a.width+Ce,Ze+=Ce):(Be+=rt-a.height+Ce,rt+=Ce);break;case Ec:y?1<re?le+=fr+ye/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Be+=fr+ye/2-a.focus.y:Be+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Lc:y?le+=Ze+ye/2-a.focus.x:Be+=rt+ye/2-a.focus.y;break;case Qd:break;default:rt=this.customAlignment(a,le,Be,Ze,rt),le=rt[0],Be=rt[1],Ze=rt[2],rt=rt[3]}for(Ce=0;Ce<re;Ce++)fr=ee[Ce],y?fr.S.h(fr.S.x+fr.la.x-le,fr.S.y+(135<E?(ue?-rt:-fr.Da.height)+fr.la.y-x:$e+x+fr.la.y)):fr.S.h(fr.S.x+(135<E?(ue?-Ze:-fr.Da.width)+fr.la.x-x:b+x+fr.la.x),fr.S.y+fr.la.y-Be);if(re=ee=0,ue?y?(Ze=ky(a,Ze,le),0>le&&(le=0),135<E&&(Be+=rt+x),rt+=$e+x,oe===Qd&&(ee+=ye/2+a.focus.x),re+=$e+x):(135<E&&(le+=Ze+x),Ze+=b+x,rt=Fy(a,rt,Be),0>Be&&(Be=0),oe===Qd&&(re+=ye/2+a.focus.y),ee+=b+x):y?(a.comments===null?b>Ze&&(Ze=Ny(oe,b-Ze,0),ee=Ze.x,re=Ze.y,Ze=b,le=0):Ze=ky(a,Ze,le),0>le&&(ee-=le,le=0),135<E&&(Be+=rt+x),rt=Math.max(Math.max(rt,$e),rt+$e+x),re+=$e+x):(135<E&&(le+=Ze+x),Ze=Math.max(Math.max(Ze,b),Ze+b+x),a.comments===null?$e>rt&&(rt=Ny(oe,0,$e-rt),ee=rt.x,re=rt.y,rt=$e,Be=0):rt=Fy(a,rt,Be),0>Be&&(re-=Be,Be=0),ee+=b+x),0<Jn)E=mu(this,4),Jn=mu(this,4),y?(E[2].h(0,$e+x),E[3].h(E[2].x,rt),Jn[2].h(Ze,E[2].y),Jn[3].h(Jn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Ze,E[2].y),Jn[2].h(E[2].x,rt),Jn[3].h(E[3].x,Jn[2].y));else{for(E=mu(this,ct.length+2),Jn=mu(this,Lt.length+2),oe=0;oe<ct.length;oe++)ue=ct[oe],E[oe+2].h(ue.x+ee,ue.y+re);for(oe=0;oe<Lt.length;oe++)ue=Lt[oe],Jn[oe+2].h(ue.x+ee,ue.y+re)}y?(E[0].h(le,0),E[1].h(E[0].x,$e),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])),Jn[0].h(le+b,0),Jn[1].h(Jn[0].x,$e),Jn[2].y<Jn[1].y&&(Jn[2].x<Jn[0].x?Jn[2].assign(Jn[1]):Jn[1].assign(Jn[2])),Jn[3].y<Jn[2].y&&(Jn[3].x<Jn[0].x?Jn[3].assign(Jn[2]):Jn[2].assign(Jn[3])),E[2].y-=x/2,Jn[2].y-=x/2):(E[0].h(0,Be),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])),Jn[0].h(0,Be+$e),Jn[1].h(b,Jn[0].y),Jn[2].x<Jn[1].x&&(Jn[2].y<Jn[0].y?Jn[2].assign(Jn[1]):Jn[1].assign(Jn[2])),Jn[3].x<Jn[2].x&&(Jn[3].y<Jn[0].y?Jn[3].assign(Jn[2]):Jn[2].assign(Jn[3])),E[2].x-=x/2,Jn[2].x-=x/2),Uh(this,ct),Uh(this,Lt),a.Yo=E,a.kp=Jn,a.la.h(le,Be),a.Da.h(Ze,rt)}break;default:bt("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=nf(x));var E=Ay(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=Nh(y),x=b===90||b===270;var z=0;E=y.children;for(var ee=E.length,re=0;re<ee;re++){var oe=E[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var le=y.alignment,ue=le===Ad,fe=le===kd;re=nf(le);var ye=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Ce=y.nodeSpacing,Le=a.computeNodeIndent(y),Be=ue||fe?0:Le/2,$e=y.rowSpacing,Ze=0;(ue||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(Ze=Math.max(0,y.rowIndent)),ue=y.width;var rt=y.height,st=0,ct=0,Lt=0,Xt=0,hi=0,bi=0,yi=0,Jn=0,kn=0,Cr=0;if(re&&!qp(le)&&135<b&&E.reverse(),qp(le))if(1<ee)for(var fr=0;fr<ee;fr++){var Do=E[fr],ra=Do.Da;fr%2===0&&fr!==ee-1?kn=Math.max(kn,(x?ra.width:ra.height)+a.computeBusNodeSpacing(Do)-Ce):fr%2!==0&&(Cr=Math.max(Cr,(x?ra.width:ra.height)+a.computeBusNodeSpacing(Do)-Ce))}else ee===1&&(kn=x?E[0].Da.width:E[0].Da.height);if(re)switch(le){case Ec:case Fd:ct=135>b?hx(a,y,E,kn,st,ct):dx(a,y,E,kn,st,ct),kn=ct.x,st=ct.width,ct=ct.height;break;case Lc:for(ye=0;ye<ee;ye++)Be=E[ye],Lt=Be.Da,Cr=yi===0?0:$e,x?(Be.S.h(z-Lt.width,hi+Cr),st=Math.max(st,Lt.width),ct=Math.max(ct,hi+Cr+Lt.height),hi+=Cr+Lt.height):(Be.S.h(Xt+Cr,z-Lt.height),st=Math.max(st,Xt+Cr+Lt.width),ct=Math.max(ct,Lt.height),Xt+=Cr+Lt.width),yi++;break;case Qd:for(z=0;z<ee;z++)ye=E[z],Be=ye.Da,Lt=yi===0?0:$e,x?(ye.S.h(Ce/2+y.focus.x,hi+Lt),st=Math.max(st,Be.width),ct=Math.max(ct,hi+Lt+Be.height),hi+=Lt+Be.height):(ye.S.h(Xt+Lt,Ce/2+y.focus.y),st=Math.max(st,Xt+Lt+Be.width),ct=Math.max(ct,Be.height),Xt+=Lt+Be.width),yi++}else for(Cr=0;Cr<ee;Cr++)fr=E[Cr],Do=fr.Da,x?(0<ye&&0<yi&&Xt+Ce+Do.width>ye&&(Xt<z&&Df(y,le,z-Xt,0,Jn,Cr-1),bi++,yi=0,Jn=Cr,Lt=ct,Xt=0,hi=135<b?-ct-$e:ct+$e),ra=yi===0?Be:Ce,I0(a,fr,0,hi),fr.S.h(Xt+ra,hi),st=Math.max(st,Xt+ra+Do.width),ct=Math.max(ct,Lt+(bi===0?0:$e)+Do.height),Xt+=ra+Do.width):(0<ye&&0<yi&&hi+Ce+Do.height>ye&&(hi<z&&Df(y,le,0,z-hi,Jn,Cr-1),bi++,yi=0,Jn=Cr,Lt=st,hi=0,Xt=135<b?-st-$e:st+$e),ra=yi===0?Be:Ce,I0(a,fr,Xt,0),fr.S.h(Xt,hi+ra),ct=Math.max(ct,hi+ra+Do.height),st=Math.max(st,Lt+(bi===0?0:$e)+Do.width),hi+=ra+Do.height),yi++;switch(0<bi&&(x?(ct+=Math.max(0,oe),Xt<st&&Df(y,le,st-Xt,0,Jn,ee-1),0<Ze&&(fe||sg(y,Ze,0,0,ee-1),st+=Ze)):(st+=Math.max(0,oe),hi<ct&&Df(y,le,0,ct-hi,Jn,ee-1),0<Ze&&(fe||sg(y,0,Ze,0,ee-1),ct+=Ze))),Ze=fe=0,le){case Jg:x?fe+=st/2-y.focus.x-Le/2:Ze+=ct/2-y.focus.y-Le/2;break;case ug:0<bi?x?fe+=st/2-y.focus.x-Le/2:Ze+=ct/2-y.focus.y-Le/2:x?(a=E[0].S.x+E[0].la.x,fe+=a+(E[ee-1].S.x+E[ee-1].la.x+2*E[ee-1].focus.x-a)/2-y.focus.x-Le/2):(a=E[0].S.y+E[0].la.y,Ze+=a+(E[ee-1].S.y+E[ee-1].la.y+2*E[ee-1].focus.y-a)/2-y.focus.y-Le/2);break;case Ad:x?(fe-=Le,st+=Le):(Ze-=Le,ct+=Le);break;case kd:x?(fe+=st-y.width+Le,st+=Le):(Ze+=ct-y.height+Le,ct+=Le);break;case Ec:case Fd:x?1<ee?fe+=kn+Ce/2-y.focus.x:fe+=E[0].focus.x-y.focus.x+E[0].la.x:1<ee?Ze+=kn+Ce/2-y.focus.y:Ze+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Lc:x?fe+=st+Ce/2-y.focus.x:Ze+=ct+Ce/2-y.focus.y;break;case Qd:break;default:a=a.customAlignment(y,fe,Ze,st,ct),fe=a[0],Ze=a[1],st=a[2],ct=a[3]}for(a=0;a<ee;a++)Le=E[a],x?Le.S.h(Le.S.x+Le.la.x-fe,Le.S.y+(135<b?(re?-ct:-Le.Da.height)+Le.la.y-oe:rt+oe+Le.la.y)):Le.S.h(Le.S.x+(135<b?(re?-st:-Le.Da.width)+Le.la.x-oe:ue+oe+Le.la.x),Le.S.y+Le.la.y-Ze);x?(st=ky(y,st,fe),0>fe&&(fe=0),135<b&&(Ze+=ct+oe),ct=Math.max(Math.max(ct,rt),ct+rt+oe)):(135<b&&(fe+=st+oe),st=Math.max(Math.max(st,ue),st+ue+oe),ct=Fy(y,ct,Ze),0>Ze&&(Ze=0)),y.la.h(fe,Ze),y.Da.h(st,ct)}}Qr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new dn(b,0,E,z);if(ee===1)return y=x[0],E=y.Da.width,z=y.Da.height,new dn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Nh(y)===90,ue=0,fe=0,ye=0,Ce=0;Ce<ee;Ce++)if(!(Ce%2!==0||1<ee&&Ce===ee-1)){var Le=x[Ce],Be=Le.Da,$e=ue===0?0:oe;if(le){var Ze=a.computeBusNodeSpacing(Le)-re;Le.S.h(b-(Be.width+Ze),ye+$e),E=Math.max(E,Be.width+Ze),z=Math.max(z,ye+$e+Be.height),ye+=$e+Be.height}else Ze=a.computeBusNodeSpacing(Le)-re,Le.S.h(fe+$e,b-(Be.height+Ze)),z=Math.max(z,Be.height+Ze),E=Math.max(E,fe+$e+Be.width),fe+=$e+Be.width;ue++}for(ue=0,Le=fe,Ce=ye,le?(fe=b+re,ye=0):(fe=0,ye=b+re),Be=0;Be<ee;Be++)if(Be%2!==0){$e=x[Be],Ze=$e.Da;var rt=ue===0?0:oe;if(le){var st=a.computeBusNodeSpacing($e)-re;$e.S.h(fe+st,ye+rt),E=Math.max(E,fe+Ze.width+st),z=Math.max(z,ye+rt+Ze.height),ye+=rt+Ze.height}else st=a.computeBusNodeSpacing($e)-re,$e.S.h(fe+rt,ye+st),E=Math.max(E,fe+rt+Ze.width),z=Math.max(z,ye+Ze.height+st),fe+=rt+Ze.width;ue++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(Ce),Math.abs(ye)):Math.max(Math.abs(Le),Math.abs(fe))),le?(x.S.h(b+re/2-x.focus.x-x.la.x,z+a),le=b+re/2-x.focus.x-x.la.x,E=Math.max(E,le+ee.width),0>le&&(E-=le),z=Math.max(z,Math.max(Ce,ye)+a+ee.height),0>x.S.x&&(b=O0(y,x.S.x,!1,b,re))):(x.S.h(E+a,b+re/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Le,fe)+a+ee.width),ye=b+re/2-x.focus.y-x.la.y,z=Math.max(z,ye+ee.height),0>ye&&(z-=ye),0>x.S.y&&(b=O0(y,x.S.y,!0,b,re)))),new dn(b,0,E,z)}function dx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new dn(b,0,E,z);if(ee===1)return x=x[0],E=x.Da.width,z=x.Da.height,new dn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Nh(y)===270,ue=0,fe=0,ye=0,Ce=0;Ce<ee;Ce++)if(!(Ce%2!==0||1<ee&&Ce===ee-1)){var Le=x[Ce],Be=Le.Da,$e=ue===0?0:oe;if(le){var Ze=a.computeBusNodeSpacing(Le)-re;ye-=$e+Be.height,Le.S.h(b-(Be.width+Ze),ye),E=Math.max(E,Be.width+Ze),z=Math.max(z,Math.abs(ye))}else Ze=a.computeBusNodeSpacing(Le)-re,fe-=$e+Be.width,Le.S.h(fe,b-(Be.height+Ze)),z=Math.max(z,Be.height+Ze),E=Math.max(E,Math.abs(fe));ue++}for(ue=0,Le=fe,Ce=ye,le?(fe=b+re,ye=0):(fe=0,ye=b+re),Be=0;Be<ee;Be++)if(Be%2!==0){$e=x[Be],Ze=$e.Da;var rt=ue===0?0:oe;if(le){var st=a.computeBusNodeSpacing($e)-re;ye-=rt+Ze.height,$e.S.h(fe+st,ye),E=Math.max(E,fe+Ze.width+st),z=Math.max(z,Math.abs(ye))}else st=a.computeBusNodeSpacing($e)-re,fe-=rt+Ze.width,$e.S.h(fe,ye+st),z=Math.max(z,ye+Ze.height+st),E=Math.max(E,Math.abs(fe));ue++}for(1<ee&&ee%2===1&&(oe=x[ee-1],ue=oe.Da,a=a.computeBusLastRowSpacing(oe,le?Math.max(Math.abs(Ce),Math.abs(ye)):Math.max(Math.abs(Le),Math.abs(fe))),le?(oe.S.h(b+re/2-oe.focus.x-oe.la.x,-z-ue.height-a),fe=b+re/2-oe.focus.x-oe.la.x,E=Math.max(E,fe+ue.width),0>fe&&(E-=fe),z=Math.max(z,Math.abs(Math.min(Ce,ye))+a+ue.height),0>oe.S.x&&(b=O0(y,oe.S.x,!1,b,re))):(oe.S.h(-E-ue.width-a,b+re/2-oe.focus.y-oe.la.y),E=Math.max(E,Math.abs(Math.min(Le,fe))+a+ue.width),ye=b+re/2-oe.focus.y-oe.la.y,z=Math.max(z,ye+ue.height),0>ye&&(z-=ye),0>oe.S.y&&(b=O0(y,oe.S.y,!0,b,re)))),y=0;y<ee;y++)re=x[y],le?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+E,re.S.y);return new dn(b,0,E,z)}Qr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Qr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function O0(a,y,x,b,E){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function ky(a,y,x){switch(a.alignment){case ug:case Jg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Ad:return a.width>y?a.width:y;case kd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Ec:case Fd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Lc:return a.width-a.focus.x+a.nodeSpacing/2+y;case Qd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a.alignment){case ug:case Jg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Ad:return a.height>y?a.height:y;case kd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Ec:case Fd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Lc:return a.height-a.focus.y+a.nodeSpacing/2+y;case Qd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case Jg:y/=2,x/=2;break;case ug:y/=2,x/=2;break;case Ad:x=y=0;break;case kd:break;default:bt("Unhandled alignment value "+a.toString())}return new Ye(y,x)}function Df(a,y,x,b,E,z){y=Ny(y,x,b),sg(a,y.x,y.y,E,z)}function sg(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function I0(a,y,x,b){var E=y.parent;switch(a.ud){case Md:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case lg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:bt("Unhandled path value "+a.ud.toString())}}function R0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function cx(a,y,x,b,E,z,ee,re){var oe=Nh(y),le=oe===90||oe===270,ue=y.nodeSpacing;y=b;var fe=E;b=z;var ye=ee,Ce=x.Yo,Le=x.kp;ee=x.Da;var Be=le?Math.max(ye,ee.height):Math.max(b,ee.width);if((Ce===null||oe!==Nh(x))&&(Ce=mu(a,2),Le=mu(a,2),le?(Ce[0].h(0,0),Ce[1].h(0,ee.height),Le[0].h(ee.width,0),Le[1].h(Le[0].x,Ce[1].y)):(Ce[0].h(0,0),Ce[1].h(ee.width,0),Le[0].h(0,ee.height),Le[1].h(Ce[1].x,Le[0].y))),le){if(ye=9999999,!(fe===null||2>fe.length||Ce===null||2>Ce.length))for(E=x=0;x<fe.length&&E<Ce.length;){z=fe[x];var $e=Ce[E];oe=$e.x,le=$e.y,oe+=b;var Ze=z;x+1<fe.length&&(Ze=fe[x+1]);var rt=$e;$e=rt.x,rt=rt.y,E+1<Ce.length&&(rt=Ce[E+1],$e=rt.x,rt=rt.y,$e+=b);var st=ye;z.y===le?st=oe-z.x:z.y>le&&z.y<rt?st=oe+(z.y-le)/(rt-le)*($e-oe)-z.x:le>z.y&&le<Ze.y&&(st=oe-(z.x+(le-z.y)/(Ze.y-z.y)*(Ze.x-z.x))),st<ye&&(ye=st),Ze.y<=z.y?x++:rt<=le?E++:(Ze.y<=rt&&x++,rt<=Ze.y&&E++)}if(ye=b-ye,ye+=ue,x=Ce,E=ye,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=mu(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],ue[b++].h(le.x+E,le.y);for(;oe<y.length;)le=y[oe++],ue[b++].h(le.x,le.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)le=x[z++],ue[b++].h(le.x+E,le.y);for(x=mu(a,b),oe=0;oe<b;oe++)x[oe].assign(ue[oe]);Uh(a,ue),b=x}if(z=Le,oe=ye,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=mu(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].y<z[0].y;)Ze=fe[x++],ue[E++].h(Ze.x,Ze.y);for(;le<z.length;)Ze=z[le++],ue[E++].h(Ze.x+oe,Ze.y);for(z=z[z.length-1].y;x<fe.length&&fe[x].y<=z;)x++;for(;x<fe.length&&fe[x].y>z;)oe=fe[x++],ue[E++].h(oe.x,oe.y);for(z=mu(a,E),x=0;x<E;x++)z[x].assign(ue[x]);Uh(a,ue),E=z}return z=Math.max(0,ye)+ee.width,ee=Be,Uh(a,y),Uh(a,Ce),Uh(a,fe),Uh(a,Le),re[0]=b,re[1]=E,new dn(ye,0,z,ee)}if(b=9999999,!(fe===null||2>fe.length||Ce===null||2>Ce.length))for(E=x=0;x<fe.length&&E<Ce.length;)z=fe[x],$e=Ce[E],oe=$e.x,le=$e.y,le+=ye,Ze=z,x+1<fe.length&&(Ze=fe[x+1]),rt=$e,$e=rt.x,rt=rt.y,E+1<Ce.length&&(rt=Ce[E+1],$e=rt.x,rt=rt.y,rt+=ye),st=b,z.x===oe?st=le-z.y:z.x>oe&&z.x<$e?st=le+(z.x-oe)/($e-oe)*(rt-le)-z.y:oe>z.x&&oe<Ze.x&&(st=le-(z.y+(oe-z.x)/(Ze.x-z.x)*(Ze.y-z.y))),st<b&&(b=st),Ze.x<=z.x?x++:$e<=oe?E++:(Ze.x<=$e&&x++,$e<=Ze.x&&E++);if(ye-=b,ye+=ue,x=Ce,E=ye,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=mu(a,y.length+x.length),b=z=oe=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],ue[b++].h(le.x,le.y+E);for(;oe<y.length;)le=y[oe++],ue[b++].h(le.x,le.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)le=x[z++],ue[b++].h(le.x,le.y+E);for(x=mu(a,b),oe=0;oe<b;oe++)x[oe].assign(ue[oe]);Uh(a,ue),b=x}if(z=Le,oe=ye,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=mu(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].x<z[0].x;)Ze=fe[x++],ue[E++].h(Ze.x,Ze.y);for(;le<z.length;)Ze=z[le++],ue[E++].h(Ze.x,Ze.y+oe);for(z=z[z.length-1].x;x<fe.length&&fe[x].x<=z;)x++;for(;x<fe.length&&fe[x].x>z;)oe=fe[x++],ue[E++].h(oe.x,oe.y);for(z=mu(a,E),x=0;x<E;x++)z[x].assign(ue[x]);Uh(a,ue),E=z}return z=Be,ee=Math.max(0,ye)+ee.height,Uh(a,y),Uh(a,Ce),Uh(a,fe),Uh(a,Le),re[0]=b,re[1]=E,new dn(ye,0,z,ee)}function mu(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 Ye;return a}function Uh(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Qr.prototype.arrangeTrees=function(){if(this.Rb===Z0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof ph){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),Ty(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof ph&&a.push(x);switch(this.sorting){case Xg:break;case _p:a.reverse();break;case em:a.sort(this.comparer);break;case tm:a.sort(this.comparer),a.reverse();break;default:bt("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(Ty(this,E,y+E.la.x,x+E.la.y),this.Rb){case W0:x+=E.Da.height+this.$d.height;break;case Iy:y+=E.Da.width+this.$d.width;break;default:bt("Unhandled arrangement value "+this.Rb.toString())}}}};function Ty(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var ee=y[z];Ty(a,ee,x+ee.S.x,b+ee.S.y)}}}Qr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Qr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Qr.prototype.Gu=function(){if(this.layerStyle===G0){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 z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}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 Ye(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Ye(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,E.push(new dn(0,z,x,re))):this.angle===90?(E.push(new dn(0,z,x,re)),z+=re):this.angle===180?(z-=re,E.push(new dn(z,0,re,x))):(E.push(new dn(z,0,re,x)),z+=re)}this.commitLayers(E,b)}},Qr.prototype.commitLayers=function(){},Qr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Qr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof ph&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}Qr.prototype.setPortSpots=function(a){var y=a.alignment;if(nf(y)){var x=this.ud===Md,b=Nh(a);switch(b){case 0:var E=Ls;break;case 90:E=Ps;break;case 180:E=ls;break;default:E=_a}var z=a.children,ee=z.length;switch(y){case Ec:case Fd:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=b===90||b===270?ls:_a;if(ee===1||y===ee-1&&ee%2===1)switch(b){case 0:oe=ls;break;case 90:oe=_a;break;case 180:oe=Ls;break;default:oe=Ps}else y%2===0&&(oe=b===90||b===270?Ls:Ps);x?(a.setsPortSpot&&(re.fromSpot=E),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=E))}}break;case Lc:for(b=b===90||b===270?Ls:Ps,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)));break;case Qd:for(b=b===90||b===270?ls:_a,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)):(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)))}}else if(x=Nh(a),this.ud===Md){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=Ls;break;case 90:b.fromSpot=Ps;break;case 180:b.fromSpot=ls;break;default:b.fromSpot=_a}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=ls;break;case 90:b.toSpot=_a;break;case 180:b.toSpot=Ls;break;default:b.toSpot=Ps}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=Ls;break;case 90:b.toSpot=Ps;break;case 180:b.toSpot=ls;break;default:b.toSpot=_a}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=ls;break;case 90:b.fromSpot=_a;break;case 180:b.fromSpot=Ls;break;default:b.fromSpot=Ps}else b.fromSpot=a.childPortSpot}};function Nh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Qr.prototype.computeLayerSpacing=function(a){var y=Nh(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},Qr.prototype.computeNodeIndent=function(a){var y=Nh(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)},ft.Object.defineProperties(Qr.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!==H0&&a!==By&&a!==Dy&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==G0||(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!==W0&&a!==Iy&&a!==Z0||(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!==Xg&&a!==_p&&a!==em&&!tm||(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()):bt("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!==j0&&a!==nm||(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!==Xg&&a!==_p&&a!==em&&!tm||(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!==j0&&a!==nm||(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 z0=new Bt(Qr,"PathDefault",-1),Md=new Bt(Qr,"PathDestination",0),lg=new Bt(Qr,"PathSource",1),Xg=new Bt(Qr,"SortingForwards",10),_p=new Bt(Qr,"SortingReverse",11),em=new Bt(Qr,"SortingAscending",12),tm=new Bt(Qr,"SortingDescending",13),Jg=new Bt(Qr,"AlignmentCenterSubtrees",20),ug=new Bt(Qr,"AlignmentCenterChildren",21),Ad=new Bt(Qr,"AlignmentStart",22),kd=new Bt(Qr,"AlignmentEnd",23),Ec=new Bt(Qr,"AlignmentBus",24),Fd=new Bt(Qr,"AlignmentBusBranching",25),Lc=new Bt(Qr,"AlignmentTopLeftBus",26),Qd=new Bt(Qr,"AlignmentBottomRightBus",27),j0=new Bt(Qr,"CompactionNone",30),nm=new Bt(Qr,"CompactionBlock",31),H0=new Bt(Qr,"StyleLayered",40),Dy=new Bt(Qr,"StyleLastParents",41),By=new Bt(Qr,"StyleAlternating",42),Oy=new Bt(Qr,"StyleRootOnly",43),W0=new Bt(Qr,"ArrangementVertical",50),Iy=new Bt(Qr,"ArrangementHorizontal",51),Z0=new Bt(Qr,"ArrangementFixedRoots",52),Ry=new Bt(Qr,"LayerIndividual",60),zy=new Bt(Qr,"LayerSiblings",61),G0=new Bt(Qr,"LayerUniform",62);Qr.className="TreeLayout",Qr.PathDefault=z0,Qr.PathDestination=Md,Qr.PathSource=lg,Qr.SortingForwards=Xg,Qr.SortingReverse=_p,Qr.SortingAscending=em,Qr.SortingDescending=tm,Qr.AlignmentCenterSubtrees=Jg,Qr.AlignmentCenterChildren=ug,Qr.AlignmentStart=Ad,Qr.AlignmentEnd=kd,Qr.AlignmentBus=Ec,Qr.AlignmentBusBranching=Fd,Qr.AlignmentTopLeftBus=Lc,Qr.AlignmentBottomRightBus=Qd,Qr.CompactionNone=j0,Qr.CompactionBlock=nm,Qr.StyleLayered=H0,Qr.StyleLastParents=Dy,Qr.StyleAlternating=By,Qr.StyleRootOnly=Oy,Qr.ArrangementVertical=W0,Qr.ArrangementHorizontal=Iy,Qr.ArrangementFixedRoots=Z0,Qr.LayerIndividual=Ry,Qr.LayerSiblings=zy,Qr.LayerUniform=G0;function hg(a){sa.call(this,a)}Jt(hg,sa),hg.prototype.createVertex=function(){return new ph(this)},hg.prototype.createEdge=function(){return new Qg(this)},hg.className="TreeNetwork";function ph(a){zs.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 Ye(0,0),this.Da=new ei(0,0),this.la=new Ye(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xg,this.hd=ry,this.Kb=0,this.Jb=ug,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=nm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Bo,this.wr=!0,this.Dp=Bo}Jt(ph,zs),ph.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)},ft.Object.defineProperties(ph.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)}}}),ph.className="TreeVertex";function Qg(a){Au.call(this,a),this.$t=new Ye(0,0)}Jt(Qg,Au),Qg.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 Md:x=this.fromVertex,b=this.toVertex;break;case lg:x=this.toVertex,b=this.fromVertex;break;default:bt("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 z=Nh(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===ju,le=a.isOrthogonal,ue;if(a.uh(),le||oe){for(ue=2;4<a.pointsCount;)a.pv(2);var fe=a.i(1),ye=a.i(2)}else{for(ue=1;3<a.pointsCount;)a.pv(1);fe=a.i(0),ye=a.i(a.pointsCount-1)}var Ce=a.i(a.pointsCount-1);z===0?(x.alignment===kd?(z=b.bottom+E.y,E.y===0&&fe.y>Ce.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&fe.y<Ce.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,b.right+ee,z),ue++,a.m(ue,b.right+ee+(E.x-re)/3,z),ue++,a.m(ue,b.right+ee+2*(E.x-re)/3,z),ue++,a.m(ue,b.right+ee+(E.x-re),z),ue++,a.m(ue,ye.x,z)):(le&&(a.m(ue,b.right+ee/2,fe.y),ue++),a.m(ue,b.right+ee/2,z),ue++,a.m(ue,b.right+ee+E.x-(le?re/2:re),z),ue++,le&&a.m(ue,a.i(ue-1).x,ye.y))):z===90?(x.alignment===kd?(z=b.right+E.x,E.x===0&&fe.x>Ce.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&fe.x<Ce.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.bottom+ee),ue++,a.m(ue,z,b.bottom+ee+(E.y-re)/3),ue++,a.m(ue,z,b.bottom+ee+2*(E.y-re)/3),ue++,a.m(ue,z,b.bottom+ee+(E.y-re)),ue++,a.m(ue,z,ye.y)):(le&&(a.m(ue,fe.x,b.bottom+ee/2),ue++),a.m(ue,z,b.bottom+ee/2),ue++,a.m(ue,z,b.bottom+ee+E.y-(le?re/2:re)),ue++,le&&a.m(ue,ye.x,a.i(ue-1).y))):z===180?(x.alignment===kd?(z=b.bottom+E.y,E.y===0&&fe.y>Ce.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&fe.y<Ce.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,b.left-ee,z),ue++,a.m(ue,b.left-ee+(E.x+re)/3,z),ue++,a.m(ue,b.left-ee+2*(E.x+re)/3,z),ue++,a.m(ue,b.left-ee+(E.x+re),z),ue++,a.m(ue,ye.x,z)):(le&&(a.m(ue,b.left-ee/2,fe.y),ue++),a.m(ue,b.left-ee/2,z),ue++,a.m(ue,b.left-ee+E.x+(le?re/2:re),z),ue++,le&&a.m(ue,a.i(ue-1).x,ye.y))):z===270?(x.alignment===kd?(z=b.right+E.x,E.x===0&&fe.x>Ce.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&fe.x<Ce.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.top-ee),ue++,a.m(ue,z,b.top-ee+(E.y+re)/3),ue++,a.m(ue,z,b.top-ee+2*(E.y+re)/3),ue++,a.m(ue,z,b.top-ee+(E.y+re)),ue++,a.m(ue,z,ye.y)):(le&&(a.m(ue,fe.x,b.top-ee/2),ue++),a.m(ue,z,b.top-ee/2),ue++,a.m(ue,z,b.top-ee+E.y+(le?re/2:re)),ue++,le&&a.m(ue,ye.x,a.i(ue-1).y))):bt("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Nh(x),y!==Nh(E)&&(ee=b.computeLayerSpacing(x),re=x.bounds,x=E.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===ju,E=a.isOrthogonal,b=nf(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/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=re.bottom+ee/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=re.left-ee/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=re.top-ee/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()))}}},ft.Object.defineProperties(Qg.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)}}}),Qg.className="TreeEdge",zn.prototype.initializeStandardTools=function(){this.gb("Action",new cr,this.mouseDownTools),this.gb("Relinking",new vi,this.mouseDownTools),this.gb("LinkReshaping",new xi,this.mouseDownTools),this.gb("Rotating",new Ar,this.mouseDownTools),this.gb("Resizing",new pr,this.mouseDownTools),this.gb("Linking",new jn,this.mouseMoveTools),this.gb("Dragging",new zi,this.mouseMoveTools),this.gb("DragSelecting",new mr,this.mouseMoveTools),this.gb("Panning",new Zi,this.mouseMoveTools),this.gb("ContextMenu",new so,this.mouseUpTools),this.gb("TextEditing",new Jr,this.mouseUpTools),this.gb("ClickCreating",new Or,this.mouseUpTools),this.gb("ClickSelecting",new bo,this.mouseUpTools)},ld("Horizontal",new ym),ld("Spot",new xm),ld("Table",new Pm),ld("Viewbox",new Em),ld("TableRow",new Cm),ld("TableColumn",new bm),ld("Graduated",new yp),ld("Grid",new vp),Zh.add("GraphLinksModel",$s),Zh.add("TreeModel",_u);var K0=lt.go,jy={get licenseKey(){return Yt.licenseKey},set licenseKey(a){Yt.licenseKey=a},get version(){return Yt.version},Group:br,EnumValue:Bt,List:xn,Set:An,Map:wi,Point:Ye,Size:ei,Rect:dn,Margin:Wi,Spot:Fi,Geometry:ti,PathFigure:Cs,PathSegment:mo,InputEvent:Rt,DiagramEvent:Zt,ChangedEvent:fn,Model:Ti,GraphLinksModel:co,TreeModel:Vl,Binding:ps,Transaction:Ii,UndoManager:li,CommandHandler:Qe,Tool:si,DraggingTool:zi,DraggingInfo:Kd,DraggingOptions:ae,LinkingBaseTool:Vt,LinkingTool:jn,RelinkingTool:vi,LinkReshapingTool:xi,ResizingTool:pr,RotatingTool:Ar,ClickSelectingTool:bo,ActionTool:cr,ClickCreatingTool:Or,HTMLInfo:or,ContextMenuTool:so,DragSelectingTool:mr,PanningTool:Zi,TextEditingTool:Jr,ToolManager:zn,Animation:Ha,AnimationManager:ya,AnimationTrigger:ql,Layer:ba,Diagram:Yt,Palette:ce,Overview:pe,Brush:Go,GraphObject:At,Panel:Kn,RowColumnDefinition:Ns,Shape:Dr,TextBlock:aa,Picture:iu,Part:ji,Adornment:Ao,Node:fi,Link:qn,Placeholder:Wl,Layout:Aa,LayoutNetwork:sa,LayoutVertex:zs,LayoutEdge:Au,GridLayout:ol,PanelLayout:Rs,CircularLayout:Wa,CircularNetwork:Vg,CircularVertex:Yp,CircularEdge:b0,ForceDirectedLayout:pl,ForceDirectedNetwork:ag,ForceDirectedVertex:Up,ForceDirectedEdge:Xp,LayeredDigraphLayout:Vo,LayeredDigraphNetwork:Ug,LayeredDigraphVertex:th,LayeredDigraphEdge:$p,TreeLayout:Qr,TreeNetwork:hg,TreeVertex:ph,TreeEdge:Qg};typeof K0=="object"&&K0.version&&Oi("WARNING: a `go` object on the root object is already defined. "+("Debug"in K0?"debug ":"")+"version: "+K0.version+", replaced with version: "+jy.version),Yt.prototype.go=jy,lt.go=jy,typeof On.exports=="object"&&(On.exports=typeof Se.g!="undefined"?Se.g.go:self.go)}();var Ee=typeof Se.g!="undefined"?Se.g.go:self.go;const je=typeof Se.g!="undefined"?Se.g.go:self.go,it=je.Group,kt=je.EnumValue,Xe=je.List,pt=je.Set,Fe=je.Map,Ft=je.Point,Ct=je.Size,nt=je.Rect,gt=je.Margin,wt=je.Spot,xt=je.Geometry,Te=je.PathFigure,te=je.PathSegment,ne=je.InputEvent,he=je.DiagramEvent,se=je.ChangedEvent,ge=je.Model,ve=je.GraphLinksModel,Pe=je.TreeModel,ke=je.Binding,we=je.Transaction,Oe=je.UndoManager,ze=je.CommandHandler,We=je.Tool,Ue=je.DraggingTool,ut=je.DraggingInfo,Ke=je.LinkingBaseTool,Ht=je.LinkingTool,St=je.RelinkingTool,_t=je.LinkReshapingTool,Qt=je.ResizingTool,qt=je.RotatingTool,sn=je.ClickSelectingTool,Bn=je.ActionTool,yt=je.ClickCreatingTool,Ge=je.HTMLInfo,tn=je.ContextMenuTool,Wn=je.DragSelectingTool,Qn=je.PanningTool,Dt=je.TextEditingTool,$t=je.ToolManager,cn=je.Animation,Zn=je.AnimationManager,hn=je.AnimationTrigger,ii=je.Layer,mt=je.Diagram,Xn=je.Palette,ri=je.Overview,pi=je.Brush,Mn=je.GraphObject,Gt=je.Panel,zt=je.RowColumnDefinition,Mt=je.Shape,at=je.TextBlock,jt=je.TextBlockMetrics,Et=je.Picture,dt=je.Part,ot=je.Adornment,De=je.Node,xe=je.Link,me=je.Placeholder,Ne=je.Layout,He=je.LayoutNetwork,Me=je.LayoutVertex,et=je.LayoutEdge,Ut=je.GridLayout,rn=je.PanelLayout,ht=je.CircularLayout,Pt=je.CircularNetwork,ln=je.CircularVertex,Fn=je.CircularEdge,oi=je.ForceDirectedLayout,ci=je.ForceDirectedNetwork,di=je.ForceDirectedVertex,mi=je.ForceDirectedEdge,Ui=je.LayeredDigraphLayout,vr=je.LayeredDigraphNetwork,lr=je.LayeredDigraphVertex,gr=je.LayeredDigraphEdge,wr=je.TreeLayout,Zr=je.TreeNetwork,Ki=je.TreeVertex,Xr=je.TreeEdge,Vi=je.version},17115:function(On,Pn,Se){"use strict";Se.d(Pn,{ZP:function(){return Fe}});var Ee=Se(29043),je=Se(59301),it=Se(87746),kt=0,Xe=(0,it.Z)();function pt(){var Ft;return Xe?(Ft=kt,kt+=1):Ft="TEST_OR_SSR",Ft}function Fe(Ft){var Ct=je.useState(),nt=(0,Ee.Z)(Ct,2),gt=nt[0],wt=nt[1];return je.useEffect(function(){wt("rc_select_".concat(pt()))},[]),Ft||gt}},77861:function(On,Pn,Se){"use strict";Se.d(Pn,{Ac:function(){return Ne},Xo:function(){return mi},Wx:function(){return vr},ZP:function(){return Rn},lk:function(){return Pe}});var Ee=Se(5891),je=Se(26390),it=Se(80962),kt=Se(57259),Xe=Se(29043),pt=Se(19149),Fe=Se(80665),Ft=Se(35788),Ct=Se(51395),nt=Se(59301),gt=Se(92310),wt=Se.n(gt),xt=Se(28800),Te=Se(93144),te=Se(85108),ne=Se(20475),he=function(lt){var yn=lt.className,Yn=lt.customizeIcon,Di=lt.customizeIconProps,Cn=lt.onMouseDown,bt=lt.onClick,In=lt.children,gi;return typeof Yn=="function"?gi=Yn(Di):gi=Yn,nt.createElement("span",{className:yn,onMouseDown:function(Kt){Kt.preventDefault(),Cn&&Cn(Kt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:bt,"aria-hidden":!0},gi!==void 0?gi:nt.createElement("span",{className:wt()(yn.split(/\s+/).map(function(Oi){return"".concat(Oi,"-icon")}))},In))},se=he;function ge(It,lt,yn,Yn,Di){var Cn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,bt=arguments.length>6?arguments[6]:void 0,In=arguments.length>7?arguments[7]:void 0,gi=nt.useMemo(function(){if((0,Fe.Z)(Yn)==="object")return Yn.clearIcon;if(Di)return Di},[Yn,Di]),Oi=nt.useMemo(function(){return!!(!Cn&&Yn&&(yn.length||bt)&&!(In==="combobox"&&bt===""))},[Yn,Cn,yn.length,bt,In]);return{allowClear:Oi,clearIcon:nt.createElement(se,{className:"".concat(It,"-clear"),onMouseDown:lt,customizeIcon:gi},"\xD7")}}var ve=nt.createContext(null);function Pe(){return nt.useContext(ve)}function ke(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,lt=nt.useState(!1),yn=(0,Xe.Z)(lt,2),Yn=yn[0],Di=yn[1],Cn=nt.useRef(null),bt=function(){window.clearTimeout(Cn.current)};nt.useEffect(function(){return bt},[]);var In=function(Oi,Kt){bt(),Cn.current=window.setTimeout(function(){Di(Oi),Kt&&Kt()},It)};return[Yn,In,bt]}function we(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,lt=nt.useRef(null),yn=nt.useRef(null);nt.useEffect(function(){return function(){window.clearTimeout(yn.current)}},[]);function Yn(Di){(Di||lt.current===null)&&(lt.current=Di),window.clearTimeout(yn.current),yn.current=window.setTimeout(function(){lt.current=null},It)}return[function(){return lt.current},Yn]}function Oe(It,lt,yn,Yn){var Di=nt.useRef(null);Di.current={open:lt,triggerOpen:yn,customizedTrigger:Yn},nt.useEffect(function(){function Cn(bt){var In;if(!((In=Di.current)!==null&&In!==void 0&&In.customizedTrigger)){var gi=bt.target;gi.shadowRoot&&bt.composed&&(gi=bt.composedPath()[0]||gi),Di.current.open&&It().filter(function(Oi){return Oi}).every(function(Oi){return!Oi.contains(gi)&&Oi!==gi})&&Di.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Cn),function(){return window.removeEventListener("mousedown",Cn)}},[])}var ze=Se(36994),We=Se(11780),Ue=function(lt,yn){var Yn,Di,Cn=lt.prefixCls,bt=lt.id,In=lt.inputElement,gi=lt.disabled,Oi=lt.tabIndex,Kt=lt.autoFocus,Sn=lt.autoComplete,Wt=lt.editable,on=lt.activeDescendantId,gn=lt.value,un=lt.maxLength,En=lt.onKeyDown,Nn=lt.onMouseDown,Vn=lt.onChange,$n=lt.onPaste,Tn=lt.onCompositionStart,ai=lt.onCompositionEnd,Qi=lt.open,Lr=lt.attrs,qi=In||nt.createElement("input",null),Bt=qi,Si=Bt.ref,Hi=Bt.props,ki=Hi.onKeyDown,Pr=Hi.onChange,yr=Hi.onMouseDown,kr=Hi.onCompositionStart,rr=Hi.onCompositionEnd,Ri=Hi.style;return(0,Ct.Kp)(!("maxLength"in qi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),qi=nt.cloneElement(qi,(0,kt.Z)((0,kt.Z)((0,kt.Z)({type:"search"},Hi),{},{id:bt,ref:(0,ne.sQ)(yn,Si),disabled:gi,tabIndex:Oi,autoComplete:Sn||"off",autoFocus:Kt,className:wt()("".concat(Cn,"-selection-search-input"),(Yn=qi)===null||Yn===void 0||(Di=Yn.props)===null||Di===void 0?void 0:Di.className),role:"combobox","aria-label":"Search","aria-expanded":Qi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(bt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(bt,"_list"),"aria-activedescendant":Qi?on:void 0},Lr),{},{value:Wt?gn:"",maxLength:un,readOnly:!Wt,unselectable:Wt?null:"on",style:(0,kt.Z)((0,kt.Z)({},Ri),{},{opacity:Wt?null:0}),onKeyDown:function(xn){En(xn),ki&&ki(xn)},onMouseDown:function(xn){Nn(xn),yr&&yr(xn)},onChange:function(xn){Vn(xn),Pr&&Pr(xn)},onCompositionStart:function(xn){Tn(xn),kr&&kr(xn)},onCompositionEnd:function(xn){ai(xn),rr&&rr(xn)},onPaste:$n})),qi},ut=nt.forwardRef(Ue);ut.displayName="Input";var Ke=ut;function Ht(It){return Array.isArray(It)?It:It!==void 0?[It]:[]}var St=typeof window!="undefined"&&window.document&&window.document.documentElement,_t=St;function Qt(It){return It!=null}function qt(It){return!It&&It!==0}function sn(It){return["string","number"].includes((0,Fe.Z)(It))}function Bn(It){var lt=void 0;return It&&(sn(It.title)?lt=It.title.toString():sn(It.label)&&(lt=It.label.toString())),lt}function yt(It,lt){_t?nt.useLayoutEffect(It,lt):nt.useEffect(It,lt)}function Ge(It){var lt;return(lt=It.key)!==null&<!==void 0?lt:It.value}var tn=function(lt){lt.preventDefault(),lt.stopPropagation()},Wn=function(lt){var yn=lt.id,Yn=lt.prefixCls,Di=lt.values,Cn=lt.open,bt=lt.searchValue,In=lt.autoClearSearchValue,gi=lt.inputRef,Oi=lt.placeholder,Kt=lt.disabled,Sn=lt.mode,Wt=lt.showSearch,on=lt.autoFocus,gn=lt.autoComplete,un=lt.activeDescendantId,En=lt.tabIndex,Nn=lt.removeIcon,Vn=lt.maxTagCount,$n=lt.maxTagTextLength,Tn=lt.maxTagPlaceholder,ai=Tn===void 0?function($r){return"+ ".concat($r.length," ...")}:Tn,Qi=lt.tagRender,Lr=lt.onToggleOpen,qi=lt.onRemove,Bt=lt.onInputChange,Si=lt.onInputPaste,Hi=lt.onInputKeyDown,ki=lt.onInputMouseDown,Pr=lt.onInputCompositionStart,yr=lt.onInputCompositionEnd,kr=nt.useRef(null),rr=(0,nt.useState)(0),Ri=(0,Xe.Z)(rr,2),Gr=Ri[0],xn=Ri[1],Fo=(0,nt.useState)(!1),An=(0,Xe.Z)(Fo,2),Ir=An[0],_o=An[1],oo="".concat(Yn,"-selection"),Fa=Cn||Sn==="multiple"&&In===!1||Sn==="tags"?bt:"",Qo=Sn==="tags"||Sn==="multiple"&&In===!1||Wt&&(Cn||Ir);yt(function(){xn(kr.current.scrollWidth)},[Fa]);function dr($r,ca,qr,$o,Fr){return nt.createElement("span",{className:wt()("".concat(oo,"-item"),(0,it.Z)({},"".concat(oo,"-item-disabled"),qr)),title:Bn($r)},nt.createElement("span",{className:"".concat(oo,"-item-content")},ca),$o&&nt.createElement(se,{className:"".concat(oo,"-item-remove"),onMouseDown:tn,onClick:Fr,customizeIcon:Nn},"\xD7"))}function nr($r,ca,qr,$o,Fr){var Sr=function(Wo){tn(Wo),Lr(!Cn)};return nt.createElement("span",{onMouseDown:Sr},Qi({label:ca,value:$r,disabled:qr,closable:$o,onClose:Fr}))}function no($r){var ca=$r.disabled,qr=$r.label,$o=$r.value,Fr=!Kt&&!ca,Sr=qr;if(typeof $n=="number"&&(typeof qr=="string"||typeof qr=="number")){var xo=String(Sr);xo.length>$n&&(Sr="".concat(xo.slice(0,$n),"..."))}var Wo=function(fa){fa&&fa.stopPropagation(),qi($r)};return typeof Qi=="function"?nr($o,Sr,ca,Fr,Wo):dr($r,Sr,ca,Fr,Wo)}function Lo($r){var ca=typeof ai=="function"?ai($r):ai;return dr({title:ca},ca,!1)}var wi=nt.createElement("div",{className:"".concat(oo,"-search"),style:{width:Gr},onFocus:function(){_o(!0)},onBlur:function(){_o(!1)}},nt.createElement(Ke,{ref:gi,open:Cn,prefixCls:Yn,id:yn,inputElement:null,disabled:Kt,autoFocus:on,autoComplete:gn,editable:Qo,activeDescendantId:un,value:Fa,onKeyDown:Hi,onMouseDown:ki,onChange:Bt,onPaste:Si,onCompositionStart:Pr,onCompositionEnd:yr,tabIndex:En,attrs:(0,ze.Z)(lt,!0)}),nt.createElement("span",{ref:kr,className:"".concat(oo,"-search-mirror"),"aria-hidden":!0},Fa,"\xA0")),Ye=nt.createElement(We.Z,{prefixCls:"".concat(oo,"-overflow"),data:Di,renderItem:no,renderRest:Lo,suffix:wi,itemKey:Ge,maxCount:Vn});return nt.createElement(nt.Fragment,null,Ye,!Di.length&&!Fa&&nt.createElement("span",{className:"".concat(oo,"-placeholder")},Oi))},Qn=Wn,Dt=function(lt){var yn=lt.inputElement,Yn=lt.prefixCls,Di=lt.id,Cn=lt.inputRef,bt=lt.disabled,In=lt.autoFocus,gi=lt.autoComplete,Oi=lt.activeDescendantId,Kt=lt.mode,Sn=lt.open,Wt=lt.values,on=lt.placeholder,gn=lt.tabIndex,un=lt.showSearch,En=lt.searchValue,Nn=lt.activeValue,Vn=lt.maxLength,$n=lt.onInputKeyDown,Tn=lt.onInputMouseDown,ai=lt.onInputChange,Qi=lt.onInputPaste,Lr=lt.onInputCompositionStart,qi=lt.onInputCompositionEnd,Bt=lt.title,Si=nt.useState(!1),Hi=(0,Xe.Z)(Si,2),ki=Hi[0],Pr=Hi[1],yr=Kt==="combobox",kr=yr||un,rr=Wt[0],Ri=En||"";yr&&Nn&&!ki&&(Ri=Nn),nt.useEffect(function(){yr&&Pr(!1)},[yr,Nn]);var Gr=Kt!=="combobox"&&!Sn&&!un?!1:!!Ri,xn=Bt===void 0?Bn(rr):Bt,Fo=function(){if(rr)return null;var Ir=Gr?{visibility:"hidden"}:void 0;return nt.createElement("span",{className:"".concat(Yn,"-selection-placeholder"),style:Ir},on)};return nt.createElement(nt.Fragment,null,nt.createElement("span",{className:"".concat(Yn,"-selection-search")},nt.createElement(Ke,{ref:Cn,prefixCls:Yn,id:Di,open:Sn,inputElement:yn,disabled:bt,autoFocus:In,autoComplete:gi,editable:kr,activeDescendantId:Oi,value:Ri,onKeyDown:$n,onMouseDown:Tn,onChange:function(Ir){Pr(!0),ai(Ir)},onPaste:Qi,onCompositionStart:Lr,onCompositionEnd:qi,tabIndex:gn,attrs:(0,ze.Z)(lt,!0),maxLength:yr?Vn:void 0})),!yr&&rr?nt.createElement("span",{className:"".concat(Yn,"-selection-item"),title:xn,style:Gr?{visibility:"hidden"}:void 0},rr.label):null,Fo())},$t=Dt;function cn(It){return![te.Z.ESC,te.Z.SHIFT,te.Z.BACKSPACE,te.Z.TAB,te.Z.WIN_KEY,te.Z.ALT,te.Z.META,te.Z.WIN_KEY_RIGHT,te.Z.CTRL,te.Z.SEMICOLON,te.Z.EQUALS,te.Z.CAPS_LOCK,te.Z.CONTEXT_MENU,te.Z.F1,te.Z.F2,te.Z.F3,te.Z.F4,te.Z.F5,te.Z.F6,te.Z.F7,te.Z.F8,te.Z.F9,te.Z.F10,te.Z.F11,te.Z.F12].includes(It)}var Zn=function(lt,yn){var Yn=(0,nt.useRef)(null),Di=(0,nt.useRef)(!1),Cn=lt.prefixCls,bt=lt.open,In=lt.mode,gi=lt.showSearch,Oi=lt.tokenWithEnter,Kt=lt.autoClearSearchValue,Sn=lt.onSearch,Wt=lt.onSearchSubmit,on=lt.onToggleOpen,gn=lt.onInputKeyDown,un=lt.domRef;nt.useImperativeHandle(yn,function(){return{focus:function(){Yn.current.focus()},blur:function(){Yn.current.blur()}}});var En=we(0),Nn=(0,Xe.Z)(En,2),Vn=Nn[0],$n=Nn[1],Tn=function(Ri){var Gr=Ri.which;(Gr===te.Z.UP||Gr===te.Z.DOWN)&&Ri.preventDefault(),gn&&gn(Ri),Gr===te.Z.ENTER&&In==="tags"&&!Di.current&&!bt&&(Wt==null||Wt(Ri.target.value)),cn(Gr)&&on(!0)},ai=function(){$n(!0)},Qi=(0,nt.useRef)(null),Lr=function(Ri){Sn(Ri,!0,Di.current)!==!1&&on(!0)},qi=function(){Di.current=!0},Bt=function(Ri){Di.current=!1,In!=="combobox"&&Lr(Ri.target.value)},Si=function(Ri){var Gr=Ri.target.value;if(Oi&&Qi.current&&/[\r\n]/.test(Qi.current)){var xn=Qi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Gr=Gr.replace(xn,Qi.current)}Qi.current=null,Lr(Gr)},Hi=function(Ri){var Gr=Ri.clipboardData,xn=Gr.getData("text");Qi.current=xn},ki=function(Ri){var Gr=Ri.target;if(Gr!==Yn.current){var xn=document.body.style.msTouchAction!==void 0;xn?setTimeout(function(){Yn.current.focus()}):Yn.current.focus()}},Pr=function(Ri){var Gr=Vn();Ri.target!==Yn.current&&!Gr&&In!=="combobox"&&Ri.preventDefault(),(In!=="combobox"&&(!gi||!Gr)||!bt)&&(bt&&Kt!==!1&&Sn("",!0,!1),on())},yr={inputRef:Yn,onInputKeyDown:Tn,onInputMouseDown:ai,onInputChange:Si,onInputPaste:Hi,onInputCompositionStart:qi,onInputCompositionEnd:Bt},kr=In==="multiple"||In==="tags"?nt.createElement(Qn,(0,Ee.Z)({},lt,yr)):nt.createElement($t,(0,Ee.Z)({},lt,yr));return nt.createElement("div",{ref:un,className:"".concat(Cn,"-selector"),onClick:ki,onMouseDown:Pr},kr)},hn=nt.forwardRef(Zn);hn.displayName="Selector";var ii=hn,mt=Se(35593),Xn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ri=function(lt){var yn=lt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:yn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:yn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:yn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:yn,adjustY:1},htmlRegion:"scroll"}}},pi=function(lt,yn){var Yn=lt.prefixCls,Di=lt.disabled,Cn=lt.visible,bt=lt.children,In=lt.popupElement,gi=lt.animation,Oi=lt.transitionName,Kt=lt.dropdownStyle,Sn=lt.dropdownClassName,Wt=lt.direction,on=Wt===void 0?"ltr":Wt,gn=lt.placement,un=lt.builtinPlacements,En=lt.dropdownMatchSelectWidth,Nn=lt.dropdownRender,Vn=lt.dropdownAlign,$n=lt.getPopupContainer,Tn=lt.empty,ai=lt.getTriggerDOMNode,Qi=lt.onPopupVisibleChange,Lr=lt.onPopupMouseEnter,qi=(0,pt.Z)(lt,Xn),Bt="".concat(Yn,"-dropdown"),Si=In;Nn&&(Si=Nn(In));var Hi=nt.useMemo(function(){return un||ri(En)},[un,En]),ki=gi?"".concat(Bt,"-").concat(gi):Oi,Pr=typeof En=="number",yr=nt.useMemo(function(){return Pr?null:En===!1?"minWidth":"width"},[En,Pr]),kr=Kt;Pr&&(kr=(0,kt.Z)((0,kt.Z)({},kr),{},{width:En}));var rr=nt.useRef(null);return nt.useImperativeHandle(yn,function(){return{getPopupElement:function(){return rr.current}}}),nt.createElement(mt.Z,(0,Ee.Z)({},qi,{showAction:Qi?["click"]:[],hideAction:Qi?["click"]:[],popupPlacement:gn||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Hi,prefixCls:Bt,popupTransitionName:ki,popup:nt.createElement("div",{ref:rr,onMouseEnter:Lr},Si),stretch:yr,popupAlign:Vn,popupVisible:Cn,getPopupContainer:$n,popupClassName:wt()(Sn,(0,it.Z)({},"".concat(Bt,"-empty"),Tn)),popupStyle:kr,getTriggerDOMNode:ai,onPopupVisibleChange:Qi}),bt)},Mn=nt.forwardRef(pi);Mn.displayName="SelectTrigger";var Gt=Mn,zt=Se(17953);function Mt(It,lt){var yn=It.key,Yn;return"value"in It&&(Yn=It.value),yn!=null?yn:Yn!==void 0?Yn:"rc-index-key-".concat(lt)}function at(It,lt){var yn=It||{},Yn=yn.label,Di=yn.value,Cn=yn.options,bt=yn.groupLabel,In=Yn||(lt?"children":"label");return{label:In,value:Di||"value",options:Cn||"options",groupLabel:bt||In}}function jt(It){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yn=lt.fieldNames,Yn=lt.childrenAsData,Di=[],Cn=at(yn,!1),bt=Cn.label,In=Cn.value,gi=Cn.options,Oi=Cn.groupLabel;function Kt(Sn,Wt){Sn.forEach(function(on){if(Wt||!(gi in on)){var gn=on[In];Di.push({key:Mt(on,Di.length),groupOption:Wt,data:on,label:on[bt],value:gn})}else{var un=on[Oi];un===void 0&&Yn&&(un=on.label),Di.push({key:Mt(on,Di.length),group:!0,data:on,label:un}),Kt(on[gi],!0)}})}return Kt(It,!1),Di}function Et(It){var lt=(0,kt.Z)({},It);return"props"in lt||Object.defineProperty(lt,"props",{get:function(){return(0,Ct.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),lt}}),lt}function dt(It,lt){if(!lt||!lt.length)return null;var yn=!1;function Yn(Cn,bt){var In=(0,zt.Z)(bt),gi=In[0],Oi=In.slice(1);if(!gi)return[Cn];var Kt=Cn.split(gi);return yn=yn||Kt.length>1,Kt.reduce(function(Sn,Wt){return[].concat((0,je.Z)(Sn),(0,je.Z)(Yn(Wt,Oi)))},[]).filter(function(Sn){return Sn})}var Di=Yn(It,lt);return yn?Di:null}var ot=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],De=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xe(It){return It==="tags"||It==="multiple"}var me=nt.forwardRef(function(It,lt){var yn,Yn,Di=It.id,Cn=It.prefixCls,bt=It.className,In=It.showSearch,gi=It.tagRender,Oi=It.direction,Kt=It.omitDomProps,Sn=It.displayValues,Wt=It.onDisplayValuesChange,on=It.emptyOptions,gn=It.notFoundContent,un=gn===void 0?"Not Found":gn,En=It.onClear,Nn=It.mode,Vn=It.disabled,$n=It.loading,Tn=It.getInputElement,ai=It.getRawInputElement,Qi=It.open,Lr=It.defaultOpen,qi=It.onDropdownVisibleChange,Bt=It.activeValue,Si=It.onActiveValueChange,Hi=It.activeDescendantId,ki=It.searchValue,Pr=It.autoClearSearchValue,yr=It.onSearch,kr=It.onSearchSplit,rr=It.tokenSeparators,Ri=It.allowClear,Gr=It.suffixIcon,xn=It.clearIcon,Fo=It.OptionList,An=It.animation,Ir=It.transitionName,_o=It.dropdownStyle,oo=It.dropdownClassName,Fa=It.dropdownMatchSelectWidth,Qo=It.dropdownRender,dr=It.dropdownAlign,nr=It.placement,no=It.builtinPlacements,Lo=It.getPopupContainer,wi=It.showAction,Ye=wi===void 0?[]:wi,$r=It.onFocus,ca=It.onBlur,qr=It.onKeyUp,$o=It.onKeyDown,Fr=It.onMouseDown,Sr=(0,pt.Z)(It,ot),xo=xe(Nn),Wo=(In!==void 0?In:xo)||Nn==="combobox",eo=(0,kt.Z)({},Sr);De.forEach(function(Bo){delete eo[Bo]}),Kt==null||Kt.forEach(function(Bo){delete eo[Bo]});var fa=nt.useState(!1),sr=(0,Xe.Z)(fa,2),tr=sr[0],Nr=sr[1];nt.useEffect(function(){Nr((0,Te.Z)())},[]);var ei=nt.useRef(null),Ro=nt.useRef(null),ia=nt.useRef(null),Za=nt.useRef(null),ha=nt.useRef(null),Oa=ke(),Ia=(0,Xe.Z)(Oa,3),ys=Ia[0],Ds=Ia[1],_s=Ia[2];nt.useImperativeHandle(lt,function(){var Bo,da;return{focus:(Bo=Za.current)===null||Bo===void 0?void 0:Bo.focus,blur:(da=Za.current)===null||da===void 0?void 0:da.blur,scrollTo:function(xs){var ws;return(ws=ha.current)===null||ws===void 0?void 0:ws.scrollTo(xs)}}});var Ys=nt.useMemo(function(){var Bo;if(Nn!=="combobox")return ki;var da=(Bo=Sn[0])===null||Bo===void 0?void 0:Bo.value;return typeof da=="string"||typeof da=="number"?String(da):""},[ki,Nn,Sn]),dn=Nn==="combobox"&&typeof Tn=="function"&&Tn()||null,js=typeof ai=="function"&&ai(),au=(0,ne.x1)(Ro,js==null||(yn=js.props)===null||yn===void 0?void 0:yn.ref),su=nt.useState(!1),No=(0,Xe.Z)(su,2),ga=No[0],os=No[1];(0,xt.Z)(function(){os(!0)},[]);var pa=(0,Ft.Z)(!1,{defaultValue:Lr,value:Qi}),To=(0,Xe.Z)(pa,2),la=To[0],bs=To[1],to=ga?la:!1,zo=!un&&on;(Vn||zo&&to&&Nn==="combobox")&&(to=!1);var Oo=zo?!1:to,Wi=nt.useCallback(function(Bo){var da=Bo!==void 0?Bo:!to;Vn||(bs(da),to!==da&&(qi==null||qi(da)))},[Vn,to,bs,qi]),cs=nt.useMemo(function(){return(rr||[]).some(function(Bo){return[`
|
|
|
`,`\r
|
|
|
`].includes(Bo)})},[rr]),Ss=function(da,cl,xs){var ws=!0,_a=da;Si==null||Si(null);var ls=xs?null:dt(da,rr);return Nn!=="combobox"&&ls&&(_a="",kr==null||kr(ls),Wi(!1),ws=!1),yr&&Ys!==_a&&yr(_a,{source:cl?"typing":"effect"}),ws},dl=function(da){!da||!da.trim()||yr(da,{source:"submit"})};nt.useEffect(function(){!to&&!xo&&Nn!=="combobox"&&Ss("",!1,!1)},[to]),nt.useEffect(function(){la&&Vn&&bs(!1),Vn&&Ds(!1)},[Vn]);var lu=we(),wu=(0,Xe.Z)(lu,2),Fi=wu[0],Ya=wu[1],Es=function(da){var cl=Fi(),xs=da.which;if(xs===te.Z.ENTER&&(Nn!=="combobox"&&da.preventDefault(),to||Wi(!0)),Ya(!!Ys),xs===te.Z.BACKSPACE&&!cl&&xo&&!Ys&&Sn.length){for(var ws=(0,je.Z)(Sn),_a=null,ls=ws.length-1;ls>=0;ls-=1){var Ls=ws[ls];if(!Ls.disabled){ws.splice(ls,1),_a=Ls;break}}_a&&Wt(ws,{type:"remove",values:[_a]})}for(var Ps=arguments.length,ih=new Array(Ps>1?Ps-1:0),Ql=1;Ql<Ps;Ql++)ih[Ql-1]=arguments[Ql];if(to&&ha.current){var fs;(fs=ha.current).onKeyDown.apply(fs,[da].concat(ih))}$o==null||$o.apply(void 0,[da].concat(ih))},Jl=function(da){for(var cl=arguments.length,xs=new Array(cl>1?cl-1:0),ws=1;ws<cl;ws++)xs[ws-1]=arguments[ws];if(to&&ha.current){var _a;(_a=ha.current).onKeyUp.apply(_a,[da].concat(xs))}qr==null||qr.apply(void 0,[da].concat(xs))},uu=function(da){var cl=Sn.filter(function(xs){return xs!==da});Wt(cl,{type:"remove",values:[da]})},hu=nt.useRef(!1),lo=function(){Ds(!0),Vn||($r&&!hu.current&&$r.apply(void 0,arguments),Ye.includes("focus")&&Wi(!0)),hu.current=!0},Sh=function(){Ds(!1,function(){hu.current=!1,Wi(!1)}),!Vn&&(Ys&&(Nn==="tags"?yr(Ys,{source:"submit"}):Nn==="multiple"&&yr("",{source:"blur"})),ca&&ca.apply(void 0,arguments))},El=[];nt.useEffect(function(){return function(){El.forEach(function(Bo){return clearTimeout(Bo)}),El.splice(0,El.length)}},[]);var Ll=function(da){var cl,xs=da.target,ws=(cl=ia.current)===null||cl===void 0?void 0:cl.getPopupElement();if(ws&&ws.contains(xs)){var _a=setTimeout(function(){var ih=El.indexOf(_a);if(ih!==-1&&El.splice(ih,1),_s(),!tr&&!ws.contains(document.activeElement)){var Ql;(Ql=Za.current)===null||Ql===void 0||Ql.focus()}});El.push(_a)}for(var ls=arguments.length,Ls=new Array(ls>1?ls-1:0),Ps=1;Ps<ls;Ps++)Ls[Ps-1]=arguments[Ps];Fr==null||Fr.apply(void 0,[da].concat(Ls))},ml=nt.useState({}),Zu=(0,Xe.Z)(ml,2),Pu=Zu[1];function vl(){Pu({})}var Ml;js&&(Ml=function(da){Wi(da)}),Oe(function(){var Bo;return[ei.current,(Bo=ia.current)===null||Bo===void 0?void 0:Bo.getPopupElement()]},Oo,Wi,!!js);var Bh=nt.useMemo(function(){return(0,kt.Z)((0,kt.Z)({},It),{},{notFoundContent:un,open:to,triggerOpen:Oo,id:Di,showSearch:Wo,multiple:xo,toggleOpen:Wi})},[It,un,Oo,to,Di,Wo,xo,Wi]),_h=!!Gr||$n,Oh;_h&&(Oh=nt.createElement(se,{className:wt()("".concat(Cn,"-arrow"),(0,it.Z)({},"".concat(Cn,"-arrow-loading"),$n)),customizeIcon:Gr,customizeIconProps:{loading:$n,searchValue:Ys,open:to,focused:ys,showSearch:Wo}}));var gd=function(){var da;En==null||En(),(da=Za.current)===null||da===void 0||da.focus(),Wt([],{type:"clear",values:Sn}),Ss("",!1,!1)},Ih=ge(Cn,gd,Sn,Ri,xn,Vn,Ys,Nn),Gu=Ih.allowClear,Dl=Ih.clearIcon,Bl=nt.createElement(Fo,{ref:ha}),pd=wt()(Cn,bt,(Yn={},(0,it.Z)(Yn,"".concat(Cn,"-focused"),ys),(0,it.Z)(Yn,"".concat(Cn,"-multiple"),xo),(0,it.Z)(Yn,"".concat(Cn,"-single"),!xo),(0,it.Z)(Yn,"".concat(Cn,"-allow-clear"),Ri),(0,it.Z)(Yn,"".concat(Cn,"-show-arrow"),_h),(0,it.Z)(Yn,"".concat(Cn,"-disabled"),Vn),(0,it.Z)(Yn,"".concat(Cn,"-loading"),$n),(0,it.Z)(Yn,"".concat(Cn,"-open"),to),(0,it.Z)(Yn,"".concat(Cn,"-customize-input"),dn),(0,it.Z)(Yn,"".concat(Cn,"-show-search"),Wo),Yn)),ed=nt.createElement(Gt,{ref:ia,disabled:Vn,prefixCls:Cn,visible:Oo,popupElement:Bl,animation:An,transitionName:Ir,dropdownStyle:_o,dropdownClassName:oo,direction:Oi,dropdownMatchSelectWidth:Fa,dropdownRender:Qo,dropdownAlign:dr,placement:nr,builtinPlacements:no,getPopupContainer:Lo,empty:on,getTriggerDOMNode:function(){return Ro.current},onPopupVisibleChange:Ml,onPopupMouseEnter:vl},js?nt.cloneElement(js,{ref:au}):nt.createElement(ii,(0,Ee.Z)({},It,{domRef:Ro,prefixCls:Cn,inputElement:dn,ref:Za,id:Di,showSearch:Wo,autoClearSearchValue:Pr,mode:Nn,activeDescendantId:Hi,tagRender:gi,values:Sn,open:to,onToggleOpen:Wi,activeValue:Bt,searchValue:Ys,onSearch:Ss,onSearchSubmit:dl,onRemove:uu,tokenWithEnter:cs}))),Cu;return js?Cu=ed:Cu=nt.createElement("div",(0,Ee.Z)({className:pd},eo,{ref:ei,onMouseDown:Ll,onKeyDown:Es,onKeyUp:Jl,onFocus:lo,onBlur:Sh}),ys&&!to&&nt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Sn.map(function(Bo){var da=Bo.label,cl=Bo.value;return["number","string"].includes((0,Fe.Z)(da))?da:cl}).join(", "))),ed,Oh,Gu&&Dl),nt.createElement(ve.Provider,{value:Bh},Cu)}),Ne=me,He=function(It,lt){var yn=nt.useRef({values:new Map,options:new Map}),Yn=nt.useMemo(function(){var Cn=yn.current,bt=Cn.values,In=Cn.options,gi=It.map(function(Sn){if(Sn.label===void 0){var Wt;return(0,kt.Z)((0,kt.Z)({},Sn),{},{label:(Wt=bt.get(Sn.value))===null||Wt===void 0?void 0:Wt.label})}return Sn}),Oi=new Map,Kt=new Map;return gi.forEach(function(Sn){Oi.set(Sn.value,Sn),Kt.set(Sn.value,lt.get(Sn.value)||In.get(Sn.value))}),yn.current.values=Oi,yn.current.options=Kt,gi},[It,lt]),Di=nt.useCallback(function(Cn){return lt.get(Cn)||yn.current.options.get(Cn)},[lt]);return[Yn,Di]};function Me(It,lt){return Ht(It).join("").toUpperCase().includes(lt)}var et=function(It,lt,yn,Yn,Di){return nt.useMemo(function(){if(!yn||Yn===!1)return It;var Cn=lt.options,bt=lt.label,In=lt.value,gi=[],Oi=typeof Yn=="function",Kt=yn.toUpperCase(),Sn=Oi?Yn:function(on,gn){return Di?Me(gn[Di],Kt):gn[Cn]?Me(gn[bt!=="children"?bt:"label"],Kt):Me(gn[In],Kt)},Wt=Oi?function(on){return Et(on)}:function(on){return on};return It.forEach(function(on){if(on[Cn]){var gn=Sn(yn,Wt(on));if(gn)gi.push(on);else{var un=on[Cn].filter(function(En){return Sn(yn,Wt(En))});un.length&&gi.push((0,kt.Z)((0,kt.Z)({},on),{},(0,it.Z)({},Cn,un)))}return}Sn(yn,Wt(on))&&gi.push(on)}),gi},[It,Yn,Di,yn,lt])},Ut=Se(17115),rn=Se(38298),ht=["children","value"],Pt=["children"];function ln(It){var lt=It,yn=lt.key,Yn=lt.props,Di=Yn.children,Cn=Yn.value,bt=(0,pt.Z)(Yn,ht);return(0,kt.Z)({key:yn,value:Cn!==void 0?Cn:yn,children:Di},bt)}function Fn(It){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,rn.Z)(It).map(function(yn,Yn){if(!nt.isValidElement(yn)||!yn.type)return null;var Di=yn,Cn=Di.type.isSelectOptGroup,bt=Di.key,In=Di.props,gi=In.children,Oi=(0,pt.Z)(In,Pt);return lt||!Cn?ln(yn):(0,kt.Z)((0,kt.Z)({key:"__RC_SELECT_GRP__".concat(bt===null?Yn:bt,"__"),label:bt},Oi),{},{options:Fn(gi)})}).filter(function(yn){return yn})}function oi(It,lt,yn,Yn,Di){return nt.useMemo(function(){var Cn=It,bt=!It;bt&&(Cn=Fn(lt));var In=new Map,gi=new Map,Oi=function(Wt,on,gn){gn&&typeof gn=="string"&&Wt.set(on[gn],on)};function Kt(Sn){for(var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<Sn.length;on+=1){var gn=Sn[on];!gn[yn.options]||Wt?(In.set(gn[yn.value],gn),Oi(gi,gn,yn.label),Oi(gi,gn,Yn),Oi(gi,gn,Di)):Kt(gn[yn.options],!0)}}return Kt(Cn),{options:Cn,valueOptions:In,labelOptions:gi}},[It,lt,yn,Yn,Di])}function ci(It){var lt=nt.useRef();lt.current=It;var yn=nt.useCallback(function(){return lt.current.apply(lt,arguments)},[]);return yn}var di=function(){return null};di.isSelectOptGroup=!0;var mi=di,Ui=function(){return null};Ui.isSelectOption=!0;var vr=Ui,lr=Se(79722),gr=Se(64002),wr=Se(21881),Zr=nt.createContext(null),Ki=Zr;function Xr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Vi=["disabled","title","children","style","className"];function be(It){return typeof It=="string"||typeof It=="number"}var Pi=function(lt,yn){var Yn=Pe(),Di=Yn.prefixCls,Cn=Yn.id,bt=Yn.open,In=Yn.multiple,gi=Yn.mode,Oi=Yn.searchValue,Kt=Yn.toggleOpen,Sn=Yn.notFoundContent,Wt=Yn.onPopupScroll,on=nt.useContext(Ki),gn=on.flattenOptions,un=on.onActiveValue,En=on.defaultActiveFirstOption,Nn=on.onSelect,Vn=on.menuItemSelectedIcon,$n=on.rawValues,Tn=on.fieldNames,ai=on.virtual,Qi=on.direction,Lr=on.listHeight,qi=on.listItemHeight,Bt="".concat(Di,"-item"),Si=(0,lr.Z)(function(){return gn},[bt,gn],function(dr,nr){return nr[0]&&dr[1]!==nr[1]}),Hi=nt.useRef(null),ki=function(nr){nr.preventDefault()},Pr=function(nr){Hi.current&&Hi.current.scrollTo(typeof nr=="number"?{index:nr}:nr)},yr=function(nr){for(var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Lo=Si.length,wi=0;wi<Lo;wi+=1){var Ye=(nr+wi*no+Lo)%Lo,$r=Si[Ye],ca=$r.group,qr=$r.data;if(!ca&&!qr.disabled)return Ye}return-1},kr=nt.useState(function(){return yr(0)}),rr=(0,Xe.Z)(kr,2),Ri=rr[0],Gr=rr[1],xn=function(nr){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Gr(nr);var Lo={source:no?"keyboard":"mouse"},wi=Si[nr];if(!wi){un(null,-1,Lo);return}un(wi.value,nr,Lo)};(0,nt.useEffect)(function(){xn(En!==!1?yr(0):-1)},[Si.length,Oi]);var Fo=nt.useCallback(function(dr){return $n.has(dr)&&gi!=="combobox"},[gi,(0,je.Z)($n).toString(),$n.size]);(0,nt.useEffect)(function(){var dr=setTimeout(function(){if(!In&&bt&&$n.size===1){var no=Array.from($n)[0],Lo=Si.findIndex(function(wi){var Ye=wi.data;return Ye.value===no});Lo!==-1&&(xn(Lo),Pr(Lo))}});if(bt){var nr;(nr=Hi.current)===null||nr===void 0||nr.scrollTo(void 0)}return function(){return clearTimeout(dr)}},[bt,Oi,gn.length]);var An=function(nr){nr!==void 0&&Nn(nr,{selected:!$n.has(nr)}),In||Kt(!1)};if(nt.useImperativeHandle(yn,function(){return{onKeyDown:function(nr){var no=nr.which,Lo=nr.ctrlKey;switch(no){case te.Z.N:case te.Z.P:case te.Z.UP:case te.Z.DOWN:{var wi=0;if(no===te.Z.UP?wi=-1:no===te.Z.DOWN?wi=1:Xr()&&Lo&&(no===te.Z.N?wi=1:no===te.Z.P&&(wi=-1)),wi!==0){var Ye=yr(Ri+wi,wi);Pr(Ye),xn(Ye,!0)}break}case te.Z.ENTER:{var $r=Si[Ri];$r&&!$r.data.disabled?An($r.value):An(void 0),bt&&nr.preventDefault();break}case te.Z.ESC:Kt(!1),bt&&nr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(nr){Pr(nr)}}}),Si.length===0)return nt.createElement("div",{role:"listbox",id:"".concat(Cn,"_list"),className:"".concat(Bt,"-empty"),onMouseDown:ki},Sn);var Ir=Object.keys(Tn).map(function(dr){return Tn[dr]}),_o=function(nr){return nr.label};function oo(dr,nr){var no=dr.group;return{role:no?"presentation":"option",id:"".concat(Cn,"_list_").concat(nr)}}var Fa=function(nr){var no=Si[nr];if(!no)return null;var Lo=no.data||{},wi=Lo.value,Ye=no.group,$r=(0,ze.Z)(Lo,!0),ca=_o(no);return no?nt.createElement("div",(0,Ee.Z)({"aria-label":typeof ca=="string"&&!Ye?ca:null},$r,{key:nr},oo(no,nr),{"aria-selected":Fo(wi)}),wi):null},Qo={role:"listbox",id:"".concat(Cn,"_list")};return nt.createElement(nt.Fragment,null,ai&&nt.createElement("div",(0,Ee.Z)({},Qo,{style:{height:0,width:0,overflow:"hidden"}}),Fa(Ri-1),Fa(Ri),Fa(Ri+1)),nt.createElement(wr.Z,{itemKey:"key",ref:Hi,data:Si,height:Lr,itemHeight:qi,fullHeight:!1,onMouseDown:ki,onScroll:Wt,virtual:ai,direction:Qi,innerProps:ai?null:Qo},function(dr,nr){var no,Lo=dr.group,wi=dr.groupOption,Ye=dr.data,$r=dr.label,ca=dr.value,qr=Ye.key;if(Lo){var $o,Fr=($o=Ye.title)!==null&&$o!==void 0?$o:be($r)?$r.toString():void 0;return nt.createElement("div",{className:wt()(Bt,"".concat(Bt,"-group")),title:Fr},$r!==void 0?$r:qr)}var Sr=Ye.disabled,xo=Ye.title,Wo=Ye.children,eo=Ye.style,fa=Ye.className,sr=(0,pt.Z)(Ye,Vi),tr=(0,gr.Z)(sr,Ir),Nr=Fo(ca),ei="".concat(Bt,"-option"),Ro=wt()(Bt,ei,fa,(no={},(0,it.Z)(no,"".concat(ei,"-grouped"),wi),(0,it.Z)(no,"".concat(ei,"-active"),Ri===nr&&!Sr),(0,it.Z)(no,"".concat(ei,"-disabled"),Sr),(0,it.Z)(no,"".concat(ei,"-selected"),Nr),no)),ia=_o(dr),Za=!Vn||typeof Vn=="function"||Nr,ha=typeof ia=="number"?ia:ia||ca,Oa=be(ha)?ha.toString():void 0;return xo!==void 0&&(Oa=xo),nt.createElement("div",(0,Ee.Z)({},(0,ze.Z)(tr),ai?{}:oo(dr,nr),{"aria-selected":Nr,className:Ro,title:Oa,onMouseMove:function(){Ri===nr||Sr||xn(nr)},onClick:function(){Sr||An(ca)},style:eo}),nt.createElement("div",{className:"".concat(ei,"-content")},ha),nt.isValidElement(Vn)||Nr,Za&&nt.createElement(se,{className:"".concat(Bt,"-option-state"),customizeIcon:Vn,customizeIconProps:{isSelected:Nr}},Nr?"\u2713":null))}))},Gi=nt.forwardRef(Pi);Gi.displayName="OptionList";var hr=Gi;function $i(It){var lt=It.mode,yn=It.options,Yn=It.children,Di=It.backfill,Cn=It.allowClear,bt=It.placeholder,In=It.getInputElement,gi=It.showSearch,Oi=It.onSearch,Kt=It.defaultOpen,Sn=It.autoFocus,Wt=It.labelInValue,on=It.value,gn=It.inputValue,un=It.optionLabelProp,En=isMultiple(lt),Nn=gi!==void 0?gi:En||lt==="combobox",Vn=yn||convertChildrenToData(Yn);if(warning(lt!=="tags"||Vn.every(function(Qi){return!Qi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),lt==="tags"||lt==="combobox"){var $n=Vn.some(function(Qi){return Qi.options?Qi.options.some(function(Lr){return typeof("value"in Lr?Lr.value:Lr.key)=="number"}):typeof("value"in Qi?Qi.value:Qi.key)=="number"});warning(!$n,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(lt!=="combobox"||!un,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(lt==="combobox"||!Di,"`backfill` only works with `combobox` mode."),warning(lt==="combobox"||!In,"`getInputElement` only work with `combobox` mode."),noteOnce(lt!=="combobox"||!In||!Cn||!bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Oi&&!Nn&<!=="combobox"&<!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Kt||Sn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),on!=null){var Tn=toArray(on);warning(!Wt||Tn.every(function(Qi){return _typeof(Qi)==="object"&&("key"in Qi||"value"in Qi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!En||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(Yn){var ai=null;toNodeArray(Yn).some(function(Qi){if(!React.isValidElement(Qi)||!Qi.type)return!1;var Lr=Qi,qi=Lr.type;if(qi.isSelectOption)return!1;if(qi.isSelectOptGroup){var Bt=toNodeArray(Qi.props.children).every(function(Si){return!React.isValidElement(Si)||!Qi.type||Si.type.isSelectOption?!0:(ai=Si.type,!1)});return!Bt}return ai=qi,!0}),ai&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ai.displayName||ai.name||ai,"`.")),warning(gn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function fo(It,lt){if(It){var yn=function Yn(Di){for(var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=0;bt<Di.length;bt++){var In=Di[bt];if(In[lt==null?void 0:lt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Cn&&Array.isArray(In[lt==null?void 0:lt.options])&&Yn(In[lt==null?void 0:lt.options],!0))break}};yn(It)}}var _r=null,Co=["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"],vn=["inputValue"];function an(It){return!It||(0,Fe.Z)(It)!=="object"}var Jt=nt.forwardRef(function(It,lt){var yn=It.id,Yn=It.mode,Di=It.prefixCls,Cn=Di===void 0?"rc-select":Di,bt=It.backfill,In=It.fieldNames,gi=It.inputValue,Oi=It.searchValue,Kt=It.onSearch,Sn=It.autoClearSearchValue,Wt=Sn===void 0?!0:Sn,on=It.onSelect,gn=It.onDeselect,un=It.dropdownMatchSelectWidth,En=un===void 0?!0:un,Nn=It.filterOption,Vn=It.filterSort,$n=It.optionFilterProp,Tn=It.optionLabelProp,ai=It.options,Qi=It.children,Lr=It.defaultActiveFirstOption,qi=It.menuItemSelectedIcon,Bt=It.virtual,Si=It.direction,Hi=It.listHeight,ki=Hi===void 0?200:Hi,Pr=It.listItemHeight,yr=Pr===void 0?20:Pr,kr=It.value,rr=It.defaultValue,Ri=It.labelInValue,Gr=It.onChange,xn=(0,pt.Z)(It,Co),Fo=(0,Ut.ZP)(yn),An=xe(Yn),Ir=!!(!ai&&Qi),_o=nt.useMemo(function(){return Nn===void 0&&Yn==="combobox"?!1:Nn},[Nn,Yn]),oo=nt.useMemo(function(){return at(In,Ir)},[JSON.stringify(In),Ir]),Fa=(0,Ft.Z)("",{value:Oi!==void 0?Oi:gi,postState:function(zo){return zo||""}}),Qo=(0,Xe.Z)(Fa,2),dr=Qo[0],nr=Qo[1],no=oi(ai,Qi,oo,$n,Tn),Lo=no.valueOptions,wi=no.labelOptions,Ye=no.options,$r=nt.useCallback(function(to){var zo=Ht(to);return zo.map(function(Oo){var Wi,cs,Ss,dl,lu;if(an(Oo))Wi=Oo;else{var wu;Ss=Oo.key,cs=Oo.label,Wi=(wu=Oo.value)!==null&&wu!==void 0?wu:Ss}var Fi=Lo.get(Wi);if(Fi){var Ya;if(cs===void 0&&(cs=Fi==null?void 0:Fi[Tn||oo.label]),Ss===void 0&&(Ss=(Ya=Fi==null?void 0:Fi.key)!==null&&Ya!==void 0?Ya:Wi),dl=Fi==null?void 0:Fi.disabled,lu=Fi==null?void 0:Fi.title,0)var Es}return{label:cs,value:Wi,key:Ss,disabled:dl,title:lu}})},[oo,Tn,Lo]),ca=(0,Ft.Z)(rr,{value:kr}),qr=(0,Xe.Z)(ca,2),$o=qr[0],Fr=qr[1],Sr=nt.useMemo(function(){var to,zo=$r($o);return Yn==="combobox"&&qt((to=zo[0])===null||to===void 0?void 0:to.value)?[]:zo},[$o,$r,Yn]),xo=He(Sr,Lo),Wo=(0,Xe.Z)(xo,2),eo=Wo[0],fa=Wo[1],sr=nt.useMemo(function(){if(!Yn&&eo.length===1){var to=eo[0];if(to.value===null&&(to.label===null||to.label===void 0))return[]}return eo.map(function(zo){var Oo;return(0,kt.Z)((0,kt.Z)({},zo),{},{label:(Oo=zo.label)!==null&&Oo!==void 0?Oo:zo.value})})},[Yn,eo]),tr=nt.useMemo(function(){return new Set(eo.map(function(to){return to.value}))},[eo]);nt.useEffect(function(){if(Yn==="combobox"){var to,zo=(to=eo[0])===null||to===void 0?void 0:to.value;nr(Qt(zo)?String(zo):"")}},[eo]);var Nr=ci(function(to,zo){var Oo,Wi=zo!=null?zo:to;return Oo={},(0,it.Z)(Oo,oo.value,to),(0,it.Z)(Oo,oo.label,Wi),Oo}),ei=nt.useMemo(function(){if(Yn!=="tags")return Ye;var to=(0,je.Z)(Ye),zo=function(Wi){return Lo.has(Wi)};return(0,je.Z)(eo).sort(function(Oo,Wi){return Oo.value<Wi.value?-1:1}).forEach(function(Oo){var Wi=Oo.value;zo(Wi)||to.push(Nr(Wi,Oo.label))}),to},[Nr,Ye,Lo,eo,Yn]),Ro=et(ei,oo,dr,_o,$n),ia=nt.useMemo(function(){return Yn!=="tags"||!dr||Ro.some(function(to){return to[$n||"value"]===dr})||Ro.some(function(to){return to[oo.value]===dr})?Ro:[Nr(dr)].concat((0,je.Z)(Ro))},[Nr,$n,Yn,Ro,dr,oo]),Za=nt.useMemo(function(){return Vn?(0,je.Z)(ia).sort(function(to,zo){return Vn(to,zo)}):ia},[ia,Vn]),ha=nt.useMemo(function(){return jt(Za,{fieldNames:oo,childrenAsData:Ir})},[Za,oo,Ir]),Oa=function(zo){var Oo=$r(zo);if(Fr(Oo),Gr&&(Oo.length!==eo.length||Oo.some(function(Ss,dl){var lu;return((lu=eo[dl])===null||lu===void 0?void 0:lu.value)!==(Ss==null?void 0:Ss.value)}))){var Wi=Ri?Oo:Oo.map(function(Ss){return Ss.value}),cs=Oo.map(function(Ss){return Et(fa(Ss.value))});Gr(An?Wi:Wi[0],An?cs:cs[0])}},Ia=nt.useState(null),ys=(0,Xe.Z)(Ia,2),Ds=ys[0],_s=ys[1],Ys=nt.useState(0),dn=(0,Xe.Z)(Ys,2),js=dn[0],au=dn[1],su=Lr!==void 0?Lr:Yn!=="combobox",No=nt.useCallback(function(to,zo){var Oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wi=Oo.source,cs=Wi===void 0?"keyboard":Wi;au(zo),bt&&Yn==="combobox"&&to!==null&&cs==="keyboard"&&_s(String(to))},[bt,Yn]),ga=function(zo,Oo,Wi){var cs=function(){var hu,lo=fa(zo);return[Ri?{label:lo==null?void 0:lo[oo.label],value:zo,key:(hu=lo==null?void 0:lo.key)!==null&&hu!==void 0?hu:zo}:zo,Et(lo)]};if(Oo&&on){var Ss=cs(),dl=(0,Xe.Z)(Ss,2),lu=dl[0],wu=dl[1];on(lu,wu)}else if(!Oo&&gn&&Wi!=="clear"){var Fi=cs(),Ya=(0,Xe.Z)(Fi,2),Es=Ya[0],Jl=Ya[1];gn(Es,Jl)}},os=ci(function(to,zo){var Oo,Wi=An?zo.selected:!0;Wi?Oo=An?[].concat((0,je.Z)(eo),[to]):[to]:Oo=eo.filter(function(cs){return cs.value!==to}),Oa(Oo),ga(to,Wi),Yn==="combobox"?_s(""):(!xe||Wt)&&(nr(""),_s(""))}),pa=function(zo,Oo){Oa(zo);var Wi=Oo.type,cs=Oo.values;(Wi==="remove"||Wi==="clear")&&cs.forEach(function(Ss){ga(Ss.value,!1,Wi)})},To=function(zo,Oo){if(nr(zo),_s(null),Oo.source==="submit"){var Wi=(zo||"").trim();if(Wi){var cs=Array.from(new Set([].concat((0,je.Z)(tr),[Wi])));Oa(cs),ga(Wi,!0),nr("")}return}Oo.source!=="blur"&&(Yn==="combobox"&&Oa(zo),Kt==null||Kt(zo))},la=function(zo){var Oo=zo;Yn!=="tags"&&(Oo=zo.map(function(cs){var Ss=wi.get(cs);return Ss==null?void 0:Ss.value}).filter(function(cs){return cs!==void 0}));var Wi=Array.from(new Set([].concat((0,je.Z)(tr),(0,je.Z)(Oo))));Oa(Wi),Wi.forEach(function(cs){ga(cs,!0)})},bs=nt.useMemo(function(){var to=Bt!==!1&&En!==!1;return(0,kt.Z)((0,kt.Z)({},no),{},{flattenOptions:ha,onActiveValue:No,defaultActiveFirstOption:su,onSelect:os,menuItemSelectedIcon:qi,rawValues:tr,fieldNames:oo,virtual:to,direction:Si,listHeight:ki,listItemHeight:yr,childrenAsData:Ir})},[no,ha,No,su,os,qi,tr,oo,Bt,En,ki,yr,Ir]);return nt.createElement(Ki.Provider,{value:bs},nt.createElement(Ne,(0,Ee.Z)({},xn,{id:Fo,prefixCls:Cn,ref:lt,omitDomProps:vn,mode:Yn,displayValues:sr,onDisplayValuesChange:pa,direction:Si,searchValue:dr,onSearch:To,autoClearSearchValue:Wt,onSearchSplit:la,dropdownMatchSelectWidth:En,OptionList:hr,emptyOptions:!ha.length,activeValue:Ds,activeDescendantId:"".concat(Fo,"_list_").concat(js)})))}),ft=Jt;ft.Option=vr,ft.OptGroup=mi;var pn=ft,Rn=pn},9296:function(On,Pn,Se){"use strict";Se.r(Pn),Se.d(Pn,{ResizableTextArea:function(){return ut},default:function(){return qt}});var Ee=Se(5891),je=Se(57259),it=Se(80962),kt=Se(80665),Xe=Se(29043),pt=Se(19149),Fe=Se(26390),Ft=Se(92310),Ct=Se.n(Ft),nt=Se(93681),gt=Se(5643),wt=Se(35788),xt=Se(59301),Te=Se(29301),te=Se(28800),ne=Se(23073),he=`
|
|
|
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;
|
|
|
`,se=["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"],ge={},ve;function Pe(sn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=sn.getAttribute("id")||sn.getAttribute("data-reactid")||sn.getAttribute("name");if(Bn&&ge[yt])return ge[yt];var Ge=window.getComputedStyle(sn),tn=Ge.getPropertyValue("box-sizing")||Ge.getPropertyValue("-moz-box-sizing")||Ge.getPropertyValue("-webkit-box-sizing"),Wn=parseFloat(Ge.getPropertyValue("padding-bottom"))+parseFloat(Ge.getPropertyValue("padding-top")),Qn=parseFloat(Ge.getPropertyValue("border-bottom-width"))+parseFloat(Ge.getPropertyValue("border-top-width")),Dt=se.map(function(cn){return"".concat(cn,":").concat(Ge.getPropertyValue(cn))}).join(";"),$t={sizingStyle:Dt,paddingSize:Wn,borderSize:Qn,boxSizing:tn};return Bn&&yt&&(ge[yt]=$t),$t}function ke(sn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ve||(ve=document.createElement("textarea"),ve.setAttribute("tab-index","-1"),ve.setAttribute("aria-hidden","true"),document.body.appendChild(ve)),sn.getAttribute("wrap")?ve.setAttribute("wrap",sn.getAttribute("wrap")):ve.removeAttribute("wrap");var tn=Pe(sn,Bn),Wn=tn.paddingSize,Qn=tn.borderSize,Dt=tn.boxSizing,$t=tn.sizingStyle;ve.setAttribute("style","".concat($t,";").concat(he)),ve.value=sn.value||sn.placeholder||"";var cn=void 0,Zn=void 0,hn,ii=ve.scrollHeight;if(Dt==="border-box"?ii+=Qn:Dt==="content-box"&&(ii-=Wn),yt!==null||Ge!==null){ve.value=" ";var mt=ve.scrollHeight-Wn;yt!==null&&(cn=mt*yt,Dt==="border-box"&&(cn=cn+Wn+Qn),ii=Math.max(cn,ii)),Ge!==null&&(Zn=mt*Ge,Dt==="border-box"&&(Zn=Zn+Wn+Qn),hn=ii>Zn?"":"hidden",ii=Math.min(Zn,ii))}var Xn={height:ii,overflowY:hn,resize:"none"};return cn&&(Xn.minHeight=cn),Zn&&(Xn.maxHeight=Zn),Xn}var we=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Oe=0,ze=1,We=2,Ue=xt.forwardRef(function(sn,Bn){var yt=sn,Ge=yt.prefixCls,tn=yt.onPressEnter,Wn=yt.defaultValue,Qn=yt.value,Dt=yt.autoSize,$t=yt.onResize,cn=yt.className,Zn=yt.style,hn=yt.disabled,ii=yt.onChange,mt=yt.onInternalAutoSize,Xn=(0,pt.Z)(yt,we),ri=(0,wt.Z)(Wn,{value:Qn,postState:function(mi){return mi!=null?mi:""}}),pi=(0,Xe.Z)(ri,2),Mn=pi[0],Gt=pi[1],zt=function(mi){Gt(mi.target.value),ii==null||ii(mi)},Mt=xt.useRef();xt.useImperativeHandle(Bn,function(){return{textArea:Mt.current}});var at=xt.useMemo(function(){return Dt&&(0,kt.Z)(Dt)==="object"?[Dt.minRows,Dt.maxRows]:[]},[Dt]),jt=(0,Xe.Z)(at,2),Et=jt[0],dt=jt[1],ot=!!Dt,De=function(){try{if(document.activeElement===Mt.current){var mi=Mt.current,Ui=mi.selectionStart,vr=mi.selectionEnd,lr=mi.scrollTop;Mt.current.setSelectionRange(Ui,vr),Mt.current.scrollTop=lr}}catch(gr){}},xe=xt.useState(We),me=(0,Xe.Z)(xe,2),Ne=me[0],He=me[1],Me=xt.useState(),et=(0,Xe.Z)(Me,2),Ut=et[0],rn=et[1],ht=function(){He(Oe)};(0,te.Z)(function(){ot&&ht()},[Qn,Et,dt,ot]),(0,te.Z)(function(){if(Ne===Oe)He(ze);else if(Ne===ze){var di=ke(Mt.current,!1,Et,dt);He(We),rn(di)}else De()},[Ne]);var Pt=xt.useRef(),ln=function(){ne.Z.cancel(Pt.current)},Fn=function(mi){Ne===We&&($t==null||$t(mi),Dt&&(ln(),Pt.current=(0,ne.Z)(function(){ht()})))};xt.useEffect(function(){return ln},[]);var oi=ot?Ut:null,ci=(0,je.Z)((0,je.Z)({},Zn),oi);return(Ne===Oe||Ne===ze)&&(ci.overflowY="hidden",ci.overflowX="hidden"),xt.createElement(Te.Z,{onResize:Fn,disabled:!(Dt||$t)},xt.createElement("textarea",(0,Ee.Z)({},Xn,{ref:Mt,style:ci,className:Ct()(Ge,cn,(0,it.Z)({},"".concat(Ge,"-disabled"),hn)),disabled:hn,value:Mn,onChange:zt})))}),ut=Ue,Ke=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ht(sn,Bn){return(0,Fe.Z)(sn||"").slice(0,Bn).join("")}function St(sn,Bn,yt,Ge){var tn=yt;return sn?tn=Ht(yt,Ge):(0,Fe.Z)(Bn||"").length<yt.length&&(0,Fe.Z)(yt||"").length>Ge&&(tn=Bn),tn}var _t=xt.forwardRef(function(sn,Bn){var yt,Ge=sn.defaultValue,tn=sn.value,Wn=sn.onFocus,Qn=sn.onBlur,Dt=sn.onChange,$t=sn.allowClear,cn=sn.maxLength,Zn=sn.onCompositionStart,hn=sn.onCompositionEnd,ii=sn.suffix,mt=sn.prefixCls,Xn=mt===void 0?"rc-textarea":mt,ri=sn.classes,pi=sn.showCount,Mn=sn.className,Gt=sn.style,zt=sn.disabled,Mt=sn.hidden,at=sn.classNames,jt=sn.styles,Et=sn.onResize,dt=(0,pt.Z)(sn,Ke),ot=(0,wt.Z)(Ge,{value:tn,defaultValue:Ge}),De=(0,Xe.Z)(ot,2),xe=De[0],me=De[1],Ne=(0,xt.useRef)(null),He=xt.useState(!1),Me=(0,Xe.Z)(He,2),et=Me[0],Ut=Me[1],rn=xt.useState(!1),ht=(0,Xe.Z)(rn,2),Pt=ht[0],ln=ht[1],Fn=xt.useRef(),oi=xt.useRef(0),ci=xt.useState(null),di=(0,Xe.Z)(ci,2),mi=di[0],Ui=di[1],vr=function(){var an;(an=Ne.current)===null||an===void 0||an.textArea.focus()};(0,xt.useImperativeHandle)(Bn,function(){return{resizableTextArea:Ne.current,focus:vr,blur:function(){var an;(an=Ne.current)===null||an===void 0||an.textArea.blur()}}}),(0,xt.useEffect)(function(){Ut(function(vn){return!zt&&vn})},[zt]);var lr=Number(cn)>0,gr=function(an){ln(!0),Fn.current=xe,oi.current=an.currentTarget.selectionStart,Zn==null||Zn(an)},wr=function(an){ln(!1);var Jt=an.currentTarget.value;if(lr){var ft,pn=oi.current>=cn+1||oi.current===((ft=Fn.current)===null||ft===void 0?void 0:ft.length);Jt=St(pn,Fn.current,Jt,cn)}Jt!==xe&&(me(Jt),(0,gt.rJ)(an.currentTarget,an,Dt,Jt)),hn==null||hn(an)},Zr=function(an){var Jt=an.target.value;if(!Pt&&lr){var ft=an.target.selectionStart>=cn+1||an.target.selectionStart===Jt.length||!an.target.selectionStart;Jt=St(ft,xe,Jt,cn)}me(Jt),(0,gt.rJ)(an.currentTarget,an,Dt,Jt)},Ki=function(an){var Jt=dt.onPressEnter,ft=dt.onKeyDown;an.key==="Enter"&&Jt&&Jt(an),ft==null||ft(an)},Xr=function(an){Ut(!0),Wn==null||Wn(an)},Vi=function(an){Ut(!1),Qn==null||Qn(an)},be=function(an){var Jt;me(""),vr(),(0,gt.rJ)((Jt=Ne.current)===null||Jt===void 0?void 0:Jt.textArea,an,Dt)},Pi=(0,gt.D7)(xe);!Pt&&lr&&tn==null&&(Pi=Ht(Pi,cn));var Gi=ii,hr;if(pi){var $i=(0,Fe.Z)(Pi).length;(0,kt.Z)(pi)==="object"?hr=pi.formatter({value:Pi,count:$i,maxLength:cn}):hr="".concat($i).concat(lr?" / ".concat(cn):""),Gi=xt.createElement(xt.Fragment,null,Gi,xt.createElement("span",{className:Ct()("".concat(Xn,"-data-count"),at==null?void 0:at.count),style:jt==null?void 0:jt.count},hr))}var fo=function(an){var Jt;Et==null||Et(an),(Jt=Ne.current)!==null&&Jt!==void 0&&Jt.textArea.style.height&&Ui(!0)},_r=!dt.autoSize&&!pi&&!$t,Co=xt.createElement(nt.BaseInput,{value:Pi,allowClear:$t,handleReset:be,suffix:Gi,prefixCls:Xn,classes:{affixWrapper:Ct()(ri==null?void 0:ri.affixWrapper,(yt={},(0,it.Z)(yt,"".concat(Xn,"-show-count"),pi),(0,it.Z)(yt,"".concat(Xn,"-textarea-allow-clear"),$t),yt))},disabled:zt,focused:et,className:Mn,style:(0,je.Z)((0,je.Z)({},Gt),mi&&!_r?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof hr=="string"?hr:void 0}},hidden:Mt,inputElement:xt.createElement(ut,(0,Ee.Z)({},dt,{onKeyDown:Ki,onChange:Zr,onFocus:Xr,onBlur:Vi,onCompositionStart:gr,onCompositionEnd:wr,className:at==null?void 0:at.textarea,style:(0,je.Z)((0,je.Z)({},jt==null?void 0:jt.textarea),{},{resize:Gt==null?void 0:Gt.resize}),disabled:zt,prefixCls:Xn,onResize:fo,ref:Ne}))});return Co}),Qt=_t,qt=Qt},39417:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return ze}});var Ee=Se(5891),je=Se(80962),it=Se(19149),kt=Se(57259),Xe=Se(79545),pt=Se(68550),Fe=Se(21882),Ft=Se(17928),Ct=Se(7711),nt=Se(92310),gt=Se.n(nt),wt=Se(36994),xt=Se(59301),Te=Se(39378),te=function(Ue){for(var ut=Ue.prefixCls,Ke=Ue.level,Ht=Ue.isStart,St=Ue.isEnd,_t="".concat(ut,"-indent-unit"),Qt=[],qt=0;qt<Ke;qt+=1){var sn;Qt.push(xt.createElement("span",{key:qt,className:gt()(_t,(sn={},(0,je.Z)(sn,"".concat(_t,"-start"),Ht[qt]),(0,je.Z)(sn,"".concat(_t,"-end"),St[qt]),sn))}))}return xt.createElement("span",{"aria-hidden":"true",className:"".concat(ut,"-indent")},Qt)},ne=xt.memo(te),he=Se(67841),se=Se(71430),ge=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ve="open",Pe="close",ke="---",we=function(We){(0,Ft.Z)(ut,We);var Ue=(0,Ct.Z)(ut);function ut(){var Ke;(0,Xe.Z)(this,ut);for(var Ht=arguments.length,St=new Array(Ht),_t=0;_t<Ht;_t++)St[_t]=arguments[_t];return Ke=Ue.call.apply(Ue,[this].concat(St)),Ke.state={dragNodeHighlight:!1},Ke.selectHandle=void 0,Ke.cacheIndent=void 0,Ke.onSelectorClick=function(Qt){var qt=Ke.props.context.onNodeClick;qt(Qt,(0,se.F)(Ke.props)),Ke.isSelectable()?Ke.onSelect(Qt):Ke.onCheck(Qt)},Ke.onSelectorDoubleClick=function(Qt){var qt=Ke.props.context.onNodeDoubleClick;qt(Qt,(0,se.F)(Ke.props))},Ke.onSelect=function(Qt){if(!Ke.isDisabled()){var qt=Ke.props.context.onNodeSelect;qt(Qt,(0,se.F)(Ke.props))}},Ke.onCheck=function(Qt){if(!Ke.isDisabled()){var qt=Ke.props,sn=qt.disableCheckbox,Bn=qt.checked,yt=Ke.props.context.onNodeCheck;if(!(!Ke.isCheckable()||sn)){var Ge=!Bn;yt(Qt,(0,se.F)(Ke.props),Ge)}}},Ke.onMouseEnter=function(Qt){var qt=Ke.props.context.onNodeMouseEnter;qt(Qt,(0,se.F)(Ke.props))},Ke.onMouseLeave=function(Qt){var qt=Ke.props.context.onNodeMouseLeave;qt(Qt,(0,se.F)(Ke.props))},Ke.onContextMenu=function(Qt){var qt=Ke.props.context.onNodeContextMenu;qt(Qt,(0,se.F)(Ke.props))},Ke.onDragStart=function(Qt){var qt=Ke.props.context.onNodeDragStart;Qt.stopPropagation(),Ke.setState({dragNodeHighlight:!0}),qt(Qt,(0,Fe.Z)(Ke));try{Qt.dataTransfer.setData("text/plain","")}catch(sn){}},Ke.onDragEnter=function(Qt){var qt=Ke.props.context.onNodeDragEnter;Qt.preventDefault(),Qt.stopPropagation(),qt(Qt,(0,Fe.Z)(Ke))},Ke.onDragOver=function(Qt){var qt=Ke.props.context.onNodeDragOver;Qt.preventDefault(),Qt.stopPropagation(),qt(Qt,(0,Fe.Z)(Ke))},Ke.onDragLeave=function(Qt){var qt=Ke.props.context.onNodeDragLeave;Qt.stopPropagation(),qt(Qt,(0,Fe.Z)(Ke))},Ke.onDragEnd=function(Qt){var qt=Ke.props.context.onNodeDragEnd;Qt.stopPropagation(),Ke.setState({dragNodeHighlight:!1}),qt(Qt,(0,Fe.Z)(Ke))},Ke.onDrop=function(Qt){var qt=Ke.props.context.onNodeDrop;Qt.preventDefault(),Qt.stopPropagation(),Ke.setState({dragNodeHighlight:!1}),qt(Qt,(0,Fe.Z)(Ke))},Ke.onExpand=function(Qt){var qt=Ke.props,sn=qt.loading,Bn=qt.context.onNodeExpand;sn||Bn(Qt,(0,se.F)(Ke.props))},Ke.setSelectHandle=function(Qt){Ke.selectHandle=Qt},Ke.getNodeState=function(){var Qt=Ke.props.expanded;return Ke.isLeaf()?null:Qt?ve:Pe},Ke.hasChildren=function(){var Qt=Ke.props.eventKey,qt=Ke.props.context.keyEntities,sn=(0,he.Z)(qt,Qt)||{},Bn=sn.children;return!!(Bn||[]).length},Ke.isLeaf=function(){var Qt=Ke.props,qt=Qt.isLeaf,sn=Qt.loaded,Bn=Ke.props.context.loadData,yt=Ke.hasChildren();return qt===!1?!1:qt||!Bn&&!yt||Bn&&sn&&!yt},Ke.isDisabled=function(){var Qt=Ke.props.disabled,qt=Ke.props.context.disabled;return!!(qt||Qt)},Ke.isCheckable=function(){var Qt=Ke.props.checkable,qt=Ke.props.context.checkable;return!qt||Qt===!1?!1:qt},Ke.syncLoadData=function(Qt){var qt=Qt.expanded,sn=Qt.loading,Bn=Qt.loaded,yt=Ke.props.context,Ge=yt.loadData,tn=yt.onNodeLoad;sn||Ge&&qt&&!Ke.isLeaf()&&!Ke.hasChildren()&&!Bn&&tn((0,se.F)(Ke.props))},Ke.isDraggable=function(){var Qt=Ke.props,qt=Qt.data,sn=Qt.context.draggable;return!!(sn&&(!sn.nodeDraggable||sn.nodeDraggable(qt)))},Ke.renderDragHandler=function(){var Qt=Ke.props.context,qt=Qt.draggable,sn=Qt.prefixCls;return qt!=null&&qt.icon?xt.createElement("span",{className:"".concat(sn,"-draggable-icon")},qt.icon):null},Ke.renderSwitcherIconDom=function(Qt){var qt=Ke.props.switcherIcon,sn=Ke.props.context.switcherIcon,Bn=qt||sn;return typeof Bn=="function"?Bn((0,kt.Z)((0,kt.Z)({},Ke.props),{},{isLeaf:Qt})):Bn},Ke.renderSwitcher=function(){var Qt=Ke.props.expanded,qt=Ke.props.context.prefixCls;if(Ke.isLeaf()){var sn=Ke.renderSwitcherIconDom(!0);return sn!==!1?xt.createElement("span",{className:gt()("".concat(qt,"-switcher"),"".concat(qt,"-switcher-noop"))},sn):null}var Bn=gt()("".concat(qt,"-switcher"),"".concat(qt,"-switcher_").concat(Qt?ve:Pe)),yt=Ke.renderSwitcherIconDom(!1);return yt!==!1?xt.createElement("span",{onClick:Ke.onExpand,className:Bn},yt):null},Ke.renderCheckbox=function(){var Qt=Ke.props,qt=Qt.checked,sn=Qt.halfChecked,Bn=Qt.disableCheckbox,yt=Ke.props.context.prefixCls,Ge=Ke.isDisabled(),tn=Ke.isCheckable();if(!tn)return null;var Wn=typeof tn!="boolean"?tn:null;return xt.createElement("span",{className:gt()("".concat(yt,"-checkbox"),qt&&"".concat(yt,"-checkbox-checked"),!qt&&sn&&"".concat(yt,"-checkbox-indeterminate"),(Ge||Bn)&&"".concat(yt,"-checkbox-disabled")),onClick:Ke.onCheck},Wn)},Ke.renderIcon=function(){var Qt=Ke.props.loading,qt=Ke.props.context.prefixCls;return xt.createElement("span",{className:gt()("".concat(qt,"-iconEle"),"".concat(qt,"-icon__").concat(Ke.getNodeState()||"docu"),Qt&&"".concat(qt,"-icon_loading"))})},Ke.renderSelector=function(){var Qt=Ke.state.dragNodeHighlight,qt=Ke.props,sn=qt.title,Bn=sn===void 0?ke:sn,yt=qt.selected,Ge=qt.icon,tn=qt.loading,Wn=qt.data,Qn=Ke.props.context,Dt=Qn.prefixCls,$t=Qn.showIcon,cn=Qn.icon,Zn=Qn.loadData,hn=Qn.titleRender,ii=Ke.isDisabled(),mt="".concat(Dt,"-node-content-wrapper"),Xn;if($t){var ri=Ge||cn;Xn=ri?xt.createElement("span",{className:gt()("".concat(Dt,"-iconEle"),"".concat(Dt,"-icon__customize"))},typeof ri=="function"?ri(Ke.props):ri):Ke.renderIcon()}else Zn&&tn&&(Xn=Ke.renderIcon());var pi;typeof Bn=="function"?pi=Bn(Wn):hn?pi=hn(Wn):pi=Bn;var Mn=xt.createElement("span",{className:"".concat(Dt,"-title")},pi);return xt.createElement("span",{ref:Ke.setSelectHandle,title:typeof Bn=="string"?Bn:"",className:gt()("".concat(mt),"".concat(mt,"-").concat(Ke.getNodeState()||"normal"),!ii&&(yt||Qt)&&"".concat(Dt,"-node-selected")),onMouseEnter:Ke.onMouseEnter,onMouseLeave:Ke.onMouseLeave,onContextMenu:Ke.onContextMenu,onClick:Ke.onSelectorClick,onDoubleClick:Ke.onSelectorDoubleClick},Xn,Mn,Ke.renderDropIndicator())},Ke.renderDropIndicator=function(){var Qt=Ke.props,qt=Qt.disabled,sn=Qt.eventKey,Bn=Ke.props.context,yt=Bn.draggable,Ge=Bn.dropLevelOffset,tn=Bn.dropPosition,Wn=Bn.prefixCls,Qn=Bn.indent,Dt=Bn.dropIndicatorRender,$t=Bn.dragOverNodeKey,cn=Bn.direction,Zn=!!yt,hn=!qt&&Zn&&$t===sn,ii=Qn!=null?Qn:Ke.cacheIndent;return Ke.cacheIndent=Qn,hn?Dt({dropPosition:tn,dropLevelOffset:Ge,indent:ii,prefixCls:Wn,direction:cn}):null},Ke}return(0,pt.Z)(ut,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ht=this.props.selectable,St=this.props.context.selectable;return typeof Ht=="boolean"?Ht:St}},{key:"render",value:function(){var Ht,St=this.props,_t=St.eventKey,Qt=St.className,qt=St.style,sn=St.dragOver,Bn=St.dragOverGapTop,yt=St.dragOverGapBottom,Ge=St.isLeaf,tn=St.isStart,Wn=St.isEnd,Qn=St.expanded,Dt=St.selected,$t=St.checked,cn=St.halfChecked,Zn=St.loading,hn=St.domRef,ii=St.active,mt=St.data,Xn=St.onMouseMove,ri=St.selectable,pi=(0,it.Z)(St,ge),Mn=this.props.context,Gt=Mn.prefixCls,zt=Mn.filterTreeNode,Mt=Mn.keyEntities,at=Mn.dropContainerKey,jt=Mn.dropTargetKey,Et=Mn.draggingNodeKey,dt=this.isDisabled(),ot=(0,wt.Z)(pi,{aria:!0,data:!0}),De=(0,he.Z)(Mt,_t)||{},xe=De.level,me=Wn[Wn.length-1],Ne=this.isDraggable(),He=!dt&&Ne,Me=Et===_t,et=ri!==void 0?{"aria-selected":!!ri}:void 0;return xt.createElement("div",(0,Ee.Z)({ref:hn,className:gt()(Qt,"".concat(Gt,"-treenode"),(Ht={},(0,je.Z)(Ht,"".concat(Gt,"-treenode-disabled"),dt),(0,je.Z)(Ht,"".concat(Gt,"-treenode-switcher-").concat(Qn?"open":"close"),!Ge),(0,je.Z)(Ht,"".concat(Gt,"-treenode-checkbox-checked"),$t),(0,je.Z)(Ht,"".concat(Gt,"-treenode-checkbox-indeterminate"),cn),(0,je.Z)(Ht,"".concat(Gt,"-treenode-selected"),Dt),(0,je.Z)(Ht,"".concat(Gt,"-treenode-loading"),Zn),(0,je.Z)(Ht,"".concat(Gt,"-treenode-active"),ii),(0,je.Z)(Ht,"".concat(Gt,"-treenode-leaf-last"),me),(0,je.Z)(Ht,"".concat(Gt,"-treenode-draggable"),Ne),(0,je.Z)(Ht,"dragging",Me),(0,je.Z)(Ht,"drop-target",jt===_t),(0,je.Z)(Ht,"drop-container",at===_t),(0,je.Z)(Ht,"drag-over",!dt&&sn),(0,je.Z)(Ht,"drag-over-gap-top",!dt&&Bn),(0,je.Z)(Ht,"drag-over-gap-bottom",!dt&&yt),(0,je.Z)(Ht,"filter-node",zt&&zt((0,se.F)(this.props))),Ht)),style:qt,draggable:He,"aria-grabbed":Me,onDragStart:He?this.onDragStart:void 0,onDragEnter:Ne?this.onDragEnter:void 0,onDragOver:Ne?this.onDragOver:void 0,onDragLeave:Ne?this.onDragLeave:void 0,onDrop:Ne?this.onDrop:void 0,onDragEnd:Ne?this.onDragEnd:void 0,onMouseMove:Xn},et,ot),xt.createElement(ne,{prefixCls:Gt,level:xe,isStart:tn,isEnd:Wn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ut}(xt.Component),Oe=function(Ue){return xt.createElement(Te.k.Consumer,null,function(ut){return xt.createElement(we,(0,Ee.Z)({},Ue,{context:ut}))})};Oe.displayName="TreeNode",Oe.isTreeNode=1;var ze=Oe},39378:function(On,Pn,Se){"use strict";Se.d(Pn,{k:function(){return je}});var Ee=Se(59301),je=Ee.createContext(null)},99581:function(On,Pn,Se){"use strict";Se.d(Pn,{O:function(){return ze.Z},Z:function(){return Mn}});var Ee=Se(5891),je=Se(80962),it=Se(80665),kt=Se(57259),Xe=Se(26390),pt=Se(79545),Fe=Se(68550),Ft=Se(21882),Ct=Se(17928),nt=Se(7711),gt=Se(92310),wt=Se.n(gt),xt=Se(85108),Te=Se(36994),te=Se(51395),ne=Se(59301),he=Se(39378);function se(Gt){var zt=Gt.dropPosition,Mt=Gt.dropLevelOffset,at=Gt.indent,jt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(zt){case-1:jt.top=0,jt.left=-Mt*at;break;case 1:jt.bottom=0,jt.left=-Mt*at;break;case 0:jt.bottom=0,jt.left=at;break}return ne.createElement("div",{style:jt})}function ge(Gt){if(Gt==null)throw new TypeError("Cannot destructure "+Gt)}var ve=Se(29043),Pe=Se(19149),ke=Se(28800),we=Se(21881),Oe=Se(43469),ze=Se(39417);function We(Gt,zt){var Mt=ne.useState(!1),at=(0,ve.Z)(Mt,2),jt=at[0],Et=at[1];ne.useLayoutEffect(function(){if(jt)return Gt(),function(){zt()}},[jt]),ne.useLayoutEffect(function(){return Et(!0),function(){Et(!1)}},[])}var Ue=Se(71430),ut=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ke=function(zt,Mt){var at=zt.className,jt=zt.style,Et=zt.motion,dt=zt.motionNodes,ot=zt.motionType,De=zt.onMotionStart,xe=zt.onMotionEnd,me=zt.active,Ne=zt.treeNodeRequiredProps,He=(0,Pe.Z)(zt,ut),Me=ne.useState(!0),et=(0,ve.Z)(Me,2),Ut=et[0],rn=et[1],ht=ne.useContext(he.k),Pt=ht.prefixCls,ln=dt&&ot!=="hide";(0,ke.Z)(function(){dt&&ln!==Ut&&rn(ln)},[dt]);var Fn=function(){dt&&De()},oi=ne.useRef(!1),ci=function(){dt&&!oi.current&&(oi.current=!0,xe())};We(Fn,ci);var di=function(Ui){ln===Ui&&ci()};return dt?ne.createElement(Oe.default,(0,Ee.Z)({ref:Mt,visible:Ut},Et,{motionAppear:ot==="show",onVisibleChanged:di}),function(mi,Ui){var vr=mi.className,lr=mi.style;return ne.createElement("div",{ref:Ui,className:wt()("".concat(Pt,"-treenode-motion"),vr),style:lr},dt.map(function(gr){var wr=(0,Ee.Z)({},(ge(gr.data),gr.data)),Zr=gr.title,Ki=gr.key,Xr=gr.isStart,Vi=gr.isEnd;delete wr.children;var be=(0,Ue.H8)(Ki,Ne);return ne.createElement(ze.Z,(0,Ee.Z)({},wr,be,{title:Zr,active:me,data:gr.data,key:Ki,isStart:Xr,isEnd:Vi}))}))}):ne.createElement(ze.Z,(0,Ee.Z)({domRef:Mt,className:at,style:jt},He,{active:me}))};Ke.displayName="MotionTreeNode";var Ht=ne.forwardRef(Ke),St=Ht;function _t(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Mt=Gt.length,at=zt.length;if(Math.abs(Mt-at)!==1)return{add:!1,key:null};function jt(Et,dt){var ot=new Map;Et.forEach(function(xe){ot.set(xe,!0)});var De=dt.filter(function(xe){return!ot.has(xe)});return De.length===1?De[0]:null}return Mt<at?{add:!0,key:jt(Gt,zt)}:{add:!1,key:jt(zt,Gt)}}function Qt(Gt,zt,Mt){var at=Gt.findIndex(function(ot){return ot.key===Mt}),jt=Gt[at+1],Et=zt.findIndex(function(ot){return ot.key===Mt});if(jt){var dt=zt.findIndex(function(ot){return ot.key===jt.key});return zt.slice(Et+1,dt)}return zt.slice(Et+1)}var qt=["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"],sn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Bn=function(){},yt="RC_TREE_MOTION_".concat(Math.random()),Ge={key:yt},tn={key:yt,level:0,index:0,pos:"0",node:Ge,nodes:[Ge]},Wn={parent:null,children:[],pos:tn.pos,data:Ge,title:null,key:yt,isStart:[],isEnd:[]};function Qn(Gt,zt,Mt,at){return zt===!1||!Mt?Gt:Gt.slice(0,Math.ceil(Mt/at)+1)}function Dt(Gt){var zt=Gt.key,Mt=Gt.pos;return(0,Ue.km)(zt,Mt)}function $t(Gt){for(var zt=String(Gt.data.key),Mt=Gt;Mt.parent;)Mt=Mt.parent,zt="".concat(Mt.data.key," > ").concat(zt);return zt}var cn=ne.forwardRef(function(Gt,zt){var Mt=Gt.prefixCls,at=Gt.data,jt=Gt.selectable,Et=Gt.checkable,dt=Gt.expandedKeys,ot=Gt.selectedKeys,De=Gt.checkedKeys,xe=Gt.loadedKeys,me=Gt.loadingKeys,Ne=Gt.halfCheckedKeys,He=Gt.keyEntities,Me=Gt.disabled,et=Gt.dragging,Ut=Gt.dragOverNodeKey,rn=Gt.dropPosition,ht=Gt.motion,Pt=Gt.height,ln=Gt.itemHeight,Fn=Gt.virtual,oi=Gt.focusable,ci=Gt.activeItem,di=Gt.focused,mi=Gt.tabIndex,Ui=Gt.onKeyDown,vr=Gt.onFocus,lr=Gt.onBlur,gr=Gt.onActiveChange,wr=Gt.onListChangeStart,Zr=Gt.onListChangeEnd,Ki=(0,Pe.Z)(Gt,qt),Xr=ne.useRef(null),Vi=ne.useRef(null);ne.useImperativeHandle(zt,function(){return{scrollTo:function(Sn){Xr.current.scrollTo(Sn)},getIndentWidth:function(){return Vi.current.offsetWidth}}});var be=ne.useState(dt),Pi=(0,ve.Z)(be,2),Gi=Pi[0],hr=Pi[1],$i=ne.useState(at),fo=(0,ve.Z)($i,2),_r=fo[0],Co=fo[1],vn=ne.useState(at),an=(0,ve.Z)(vn,2),Jt=an[0],ft=an[1],pn=ne.useState([]),Rn=(0,ve.Z)(pn,2),It=Rn[0],lt=Rn[1],yn=ne.useState(null),Yn=(0,ve.Z)(yn,2),Di=Yn[0],Cn=Yn[1],bt=ne.useRef(at);bt.current=at;function In(){var Kt=bt.current;Co(Kt),ft(Kt),lt([]),Cn(null),Zr()}(0,ke.Z)(function(){hr(dt);var Kt=_t(Gi,dt);if(Kt.key!==null)if(Kt.add){var Sn=_r.findIndex(function(Nn){var Vn=Nn.key;return Vn===Kt.key}),Wt=Qn(Qt(_r,at,Kt.key),Fn,Pt,ln),on=_r.slice();on.splice(Sn+1,0,Wn),ft(on),lt(Wt),Cn("show")}else{var gn=at.findIndex(function(Nn){var Vn=Nn.key;return Vn===Kt.key}),un=Qn(Qt(at,_r,Kt.key),Fn,Pt,ln),En=at.slice();En.splice(gn+1,0,Wn),ft(En),lt(un),Cn("hide")}else _r!==at&&(Co(at),ft(at))},[dt,at]),ne.useEffect(function(){et||In()},[et]);var gi=ht?Jt:at,Oi={expandedKeys:dt,selectedKeys:ot,loadedKeys:xe,loadingKeys:me,checkedKeys:De,halfCheckedKeys:Ne,dragOverNodeKey:Ut,dropPosition:rn,keyEntities:He};return ne.createElement(ne.Fragment,null,di&&ci&&ne.createElement("span",{style:sn,"aria-live":"assertive"},$t(ci)),ne.createElement("div",null,ne.createElement("input",{style:sn,disabled:oi===!1||Me,tabIndex:oi!==!1?mi:null,onKeyDown:Ui,onFocus:vr,onBlur:lr,value:"",onChange:Bn,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(Mt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(Mt,"-indent")},ne.createElement("div",{ref:Vi,className:"".concat(Mt,"-indent-unit")}))),ne.createElement(we.Z,(0,Ee.Z)({},Ki,{data:gi,itemKey:Dt,height:Pt,fullHeight:!1,virtual:Fn,itemHeight:ln,prefixCls:"".concat(Mt,"-list"),ref:Xr,onVisibleChange:function(Sn,Wt){var on=new Set(Sn),gn=Wt.filter(function(un){return!on.has(un)});gn.some(function(un){return Dt(un)===yt})&&In()}}),function(Kt){var Sn=Kt.pos,Wt=(0,Ee.Z)({},(ge(Kt.data),Kt.data)),on=Kt.title,gn=Kt.key,un=Kt.isStart,En=Kt.isEnd,Nn=(0,Ue.km)(gn,Sn);delete Wt.key,delete Wt.children;var Vn=(0,Ue.H8)(Nn,Oi);return ne.createElement(St,(0,Ee.Z)({},Wt,Vn,{title:on,active:!!ci&&gn===ci.key,pos:Sn,data:Kt.data,isStart:un,isEnd:En,motion:ht,motionNodes:gn===yt?It:null,motionType:Di,onMotionStart:wr,onMotionEnd:In,treeNodeRequiredProps:Oi,onMouseMove:function(){gr(null)}}))}))});cn.displayName="NodeList";var Zn=cn,hn=Se(35654),ii=Se(90782),mt=Se(67841),Xn=10,ri=function(Gt){(0,Ct.Z)(Mt,Gt);var zt=(0,nt.Z)(Mt);function Mt(){var at;(0,pt.Z)(this,Mt);for(var jt=arguments.length,Et=new Array(jt),dt=0;dt<jt;dt++)Et[dt]=arguments[dt];return at=zt.call.apply(zt,[this].concat(Et)),at.destroyed=!1,at.delayedDragEnterLogic=void 0,at.loadingRetryTimes={},at.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,Ue.w$)()},at.dragStartMousePosition=null,at.dragNode=void 0,at.currentMouseOverDroppableNodeKey=null,at.listRef=ne.createRef(),at.onNodeDragStart=function(ot,De){var xe=at.state,me=xe.expandedKeys,Ne=xe.keyEntities,He=at.props.onDragStart,Me=De.props.eventKey;at.dragNode=De,at.dragStartMousePosition={x:ot.clientX,y:ot.clientY};var et=(0,hn._5)(me,Me);at.setState({draggingNodeKey:Me,dragChildrenKeys:(0,hn.wA)(Me,Ne),indent:at.listRef.current.getIndentWidth()}),at.setExpandedKeys(et),window.addEventListener("dragend",at.onWindowDragEnd),He==null||He({event:ot,node:(0,Ue.F)(De.props)})},at.onNodeDragEnter=function(ot,De){var xe=at.state,me=xe.expandedKeys,Ne=xe.keyEntities,He=xe.dragChildrenKeys,Me=xe.flattenNodes,et=xe.indent,Ut=at.props,rn=Ut.onDragEnter,ht=Ut.onExpand,Pt=Ut.allowDrop,ln=Ut.direction,Fn=De.props,oi=Fn.pos,ci=Fn.eventKey,di=(0,Ft.Z)(at),mi=di.dragNode;if(at.currentMouseOverDroppableNodeKey!==ci&&(at.currentMouseOverDroppableNodeKey=ci),!mi){at.resetDragState();return}var Ui=(0,hn.OM)(ot,mi,De,et,at.dragStartMousePosition,Pt,Me,Ne,me,ln),vr=Ui.dropPosition,lr=Ui.dropLevelOffset,gr=Ui.dropTargetKey,wr=Ui.dropContainerKey,Zr=Ui.dropTargetPos,Ki=Ui.dropAllowed,Xr=Ui.dragOverNodeKey;if(He.indexOf(gr)!==-1||!Ki){at.resetDragState();return}if(at.delayedDragEnterLogic||(at.delayedDragEnterLogic={}),Object.keys(at.delayedDragEnterLogic).forEach(function(Vi){clearTimeout(at.delayedDragEnterLogic[Vi])}),mi.props.eventKey!==De.props.eventKey&&(ot.persist(),at.delayedDragEnterLogic[oi]=window.setTimeout(function(){if(at.state.draggingNodeKey!==null){var Vi=(0,Xe.Z)(me),be=(0,mt.Z)(Ne,De.props.eventKey);be&&(be.children||[]).length&&(Vi=(0,hn.L0)(me,De.props.eventKey)),"expandedKeys"in at.props||at.setExpandedKeys(Vi),ht==null||ht(Vi,{node:(0,Ue.F)(De.props),expanded:!0,nativeEvent:ot.nativeEvent})}},800)),mi.props.eventKey===gr&&lr===0){at.resetDragState();return}at.setState({dragOverNodeKey:Xr,dropPosition:vr,dropLevelOffset:lr,dropTargetKey:gr,dropContainerKey:wr,dropTargetPos:Zr,dropAllowed:Ki}),rn==null||rn({event:ot,node:(0,Ue.F)(De.props),expandedKeys:me})},at.onNodeDragOver=function(ot,De){var xe=at.state,me=xe.dragChildrenKeys,Ne=xe.flattenNodes,He=xe.keyEntities,Me=xe.expandedKeys,et=xe.indent,Ut=at.props,rn=Ut.onDragOver,ht=Ut.allowDrop,Pt=Ut.direction,ln=(0,Ft.Z)(at),Fn=ln.dragNode;if(Fn){var oi=(0,hn.OM)(ot,Fn,De,et,at.dragStartMousePosition,ht,Ne,He,Me,Pt),ci=oi.dropPosition,di=oi.dropLevelOffset,mi=oi.dropTargetKey,Ui=oi.dropContainerKey,vr=oi.dropAllowed,lr=oi.dropTargetPos,gr=oi.dragOverNodeKey;me.indexOf(mi)!==-1||!vr||(Fn.props.eventKey===mi&&di===0?at.state.dropPosition===null&&at.state.dropLevelOffset===null&&at.state.dropTargetKey===null&&at.state.dropContainerKey===null&&at.state.dropTargetPos===null&&at.state.dropAllowed===!1&&at.state.dragOverNodeKey===null||at.resetDragState():ci===at.state.dropPosition&&di===at.state.dropLevelOffset&&mi===at.state.dropTargetKey&&Ui===at.state.dropContainerKey&&lr===at.state.dropTargetPos&&vr===at.state.dropAllowed&&gr===at.state.dragOverNodeKey||at.setState({dropPosition:ci,dropLevelOffset:di,dropTargetKey:mi,dropContainerKey:Ui,dropTargetPos:lr,dropAllowed:vr,dragOverNodeKey:gr}),rn==null||rn({event:ot,node:(0,Ue.F)(De.props)}))}},at.onNodeDragLeave=function(ot,De){at.currentMouseOverDroppableNodeKey===De.props.eventKey&&!ot.currentTarget.contains(ot.relatedTarget)&&(at.resetDragState(),at.currentMouseOverDroppableNodeKey=null);var xe=at.props.onDragLeave;xe==null||xe({event:ot,node:(0,Ue.F)(De.props)})},at.onWindowDragEnd=function(ot){at.onNodeDragEnd(ot,null,!0),window.removeEventListener("dragend",at.onWindowDragEnd)},at.onNodeDragEnd=function(ot,De){var xe=at.props.onDragEnd;at.setState({dragOverNodeKey:null}),at.cleanDragState(),xe==null||xe({event:ot,node:(0,Ue.F)(De.props)}),at.dragNode=null,window.removeEventListener("dragend",at.onWindowDragEnd)},at.onNodeDrop=function(ot,De){var xe,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ne=at.state,He=Ne.dragChildrenKeys,Me=Ne.dropPosition,et=Ne.dropTargetKey,Ut=Ne.dropTargetPos,rn=Ne.dropAllowed;if(rn){var ht=at.props.onDrop;if(at.setState({dragOverNodeKey:null}),at.cleanDragState(),et!==null){var Pt=(0,kt.Z)((0,kt.Z)({},(0,Ue.H8)(et,at.getTreeNodeRequiredProps())),{},{active:((xe=at.getActiveItem())===null||xe===void 0?void 0:xe.key)===et,data:(0,mt.Z)(at.state.keyEntities,et).node}),ln=He.indexOf(et)!==-1;(0,te.ZP)(!ln,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Fn=(0,hn.yx)(Ut),oi={event:ot,node:(0,Ue.F)(Pt),dragNode:at.dragNode?(0,Ue.F)(at.dragNode.props):null,dragNodesKeys:[at.dragNode.props.eventKey].concat(He),dropToGap:Me!==0,dropPosition:Me+Number(Fn[Fn.length-1])};me||ht==null||ht(oi),at.dragNode=null}}},at.cleanDragState=function(){var ot=at.state.draggingNodeKey;ot!==null&&at.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),at.dragStartMousePosition=null,at.currentMouseOverDroppableNodeKey=null},at.triggerExpandActionExpand=function(ot,De){var xe=at.state,me=xe.expandedKeys,Ne=xe.flattenNodes,He=De.expanded,Me=De.key,et=De.isLeaf;if(!(et||ot.shiftKey||ot.metaKey||ot.ctrlKey)){var Ut=Ne.filter(function(ht){return ht.key===Me})[0],rn=(0,Ue.F)((0,kt.Z)((0,kt.Z)({},(0,Ue.H8)(Me,at.getTreeNodeRequiredProps())),{},{data:Ut.data}));at.setExpandedKeys(He?(0,hn._5)(me,Me):(0,hn.L0)(me,Me)),at.onNodeExpand(ot,rn)}},at.onNodeClick=function(ot,De){var xe=at.props,me=xe.onClick,Ne=xe.expandAction;Ne==="click"&&at.triggerExpandActionExpand(ot,De),me==null||me(ot,De)},at.onNodeDoubleClick=function(ot,De){var xe=at.props,me=xe.onDoubleClick,Ne=xe.expandAction;Ne==="doubleClick"&&at.triggerExpandActionExpand(ot,De),me==null||me(ot,De)},at.onNodeSelect=function(ot,De){var xe=at.state.selectedKeys,me=at.state,Ne=me.keyEntities,He=me.fieldNames,Me=at.props,et=Me.onSelect,Ut=Me.multiple,rn=De.selected,ht=De[He.key],Pt=!rn;Pt?Ut?xe=(0,hn.L0)(xe,ht):xe=[ht]:xe=(0,hn._5)(xe,ht);var ln=xe.map(function(Fn){var oi=(0,mt.Z)(Ne,Fn);return oi?oi.node:null}).filter(function(Fn){return Fn});at.setUncontrolledState({selectedKeys:xe}),et==null||et(xe,{event:"select",selected:Pt,node:De,selectedNodes:ln,nativeEvent:ot.nativeEvent})},at.onNodeCheck=function(ot,De,xe){var me=at.state,Ne=me.keyEntities,He=me.checkedKeys,Me=me.halfCheckedKeys,et=at.props,Ut=et.checkStrictly,rn=et.onCheck,ht=De.key,Pt,ln={event:"check",node:De,checked:xe,nativeEvent:ot.nativeEvent};if(Ut){var Fn=xe?(0,hn.L0)(He,ht):(0,hn._5)(He,ht),oi=(0,hn._5)(Me,ht);Pt={checked:Fn,halfChecked:oi},ln.checkedNodes=Fn.map(function(lr){return(0,mt.Z)(Ne,lr)}).filter(function(lr){return lr}).map(function(lr){return lr.node}),at.setUncontrolledState({checkedKeys:Fn})}else{var ci=(0,ii.S)([].concat((0,Xe.Z)(He),[ht]),!0,Ne),di=ci.checkedKeys,mi=ci.halfCheckedKeys;if(!xe){var Ui=new Set(di);Ui.delete(ht);var vr=(0,ii.S)(Array.from(Ui),{checked:!1,halfCheckedKeys:mi},Ne);di=vr.checkedKeys,mi=vr.halfCheckedKeys}Pt=di,ln.checkedNodes=[],ln.checkedNodesPositions=[],ln.halfCheckedKeys=mi,di.forEach(function(lr){var gr=(0,mt.Z)(Ne,lr);if(gr){var wr=gr.node,Zr=gr.pos;ln.checkedNodes.push(wr),ln.checkedNodesPositions.push({node:wr,pos:Zr})}}),at.setUncontrolledState({checkedKeys:di},!1,{halfCheckedKeys:mi})}rn==null||rn(Pt,ln)},at.onNodeLoad=function(ot){var De=ot.key,xe=new Promise(function(me,Ne){at.setState(function(He){var Me=He.loadedKeys,et=Me===void 0?[]:Me,Ut=He.loadingKeys,rn=Ut===void 0?[]:Ut,ht=at.props,Pt=ht.loadData,ln=ht.onLoad;if(!Pt||et.indexOf(De)!==-1||rn.indexOf(De)!==-1)return null;var Fn=Pt(ot);return Fn.then(function(){var oi=at.state.loadedKeys,ci=(0,hn.L0)(oi,De);ln==null||ln(ci,{event:"load",node:ot}),at.setUncontrolledState({loadedKeys:ci}),at.setState(function(di){return{loadingKeys:(0,hn._5)(di.loadingKeys,De)}}),me()}).catch(function(oi){if(at.setState(function(di){return{loadingKeys:(0,hn._5)(di.loadingKeys,De)}}),at.loadingRetryTimes[De]=(at.loadingRetryTimes[De]||0)+1,at.loadingRetryTimes[De]>=Xn){var ci=at.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),at.setUncontrolledState({loadedKeys:(0,hn.L0)(ci,De)}),me()}Ne(oi)}),{loadingKeys:(0,hn.L0)(rn,De)}})});return xe.catch(function(){}),xe},at.onNodeMouseEnter=function(ot,De){var xe=at.props.onMouseEnter;xe==null||xe({event:ot,node:De})},at.onNodeMouseLeave=function(ot,De){var xe=at.props.onMouseLeave;xe==null||xe({event:ot,node:De})},at.onNodeContextMenu=function(ot,De){var xe=at.props.onRightClick;xe&&(ot.preventDefault(),xe({event:ot,node:De}))},at.onFocus=function(){var ot=at.props.onFocus;at.setState({focused:!0});for(var De=arguments.length,xe=new Array(De),me=0;me<De;me++)xe[me]=arguments[me];ot==null||ot.apply(void 0,xe)},at.onBlur=function(){var ot=at.props.onBlur;at.setState({focused:!1}),at.onActiveChange(null);for(var De=arguments.length,xe=new Array(De),me=0;me<De;me++)xe[me]=arguments[me];ot==null||ot.apply(void 0,xe)},at.getTreeNodeRequiredProps=function(){var ot=at.state,De=ot.expandedKeys,xe=ot.selectedKeys,me=ot.loadedKeys,Ne=ot.loadingKeys,He=ot.checkedKeys,Me=ot.halfCheckedKeys,et=ot.dragOverNodeKey,Ut=ot.dropPosition,rn=ot.keyEntities;return{expandedKeys:De||[],selectedKeys:xe||[],loadedKeys:me||[],loadingKeys:Ne||[],checkedKeys:He||[],halfCheckedKeys:Me||[],dragOverNodeKey:et,dropPosition:Ut,keyEntities:rn}},at.setExpandedKeys=function(ot){var De=at.state,xe=De.treeData,me=De.fieldNames,Ne=(0,Ue.oH)(xe,ot,me);at.setUncontrolledState({expandedKeys:ot,flattenNodes:Ne},!0)},at.onNodeExpand=function(ot,De){var xe=at.state.expandedKeys,me=at.state,Ne=me.listChanging,He=me.fieldNames,Me=at.props,et=Me.onExpand,Ut=Me.loadData,rn=De.expanded,ht=De[He.key];if(!Ne){var Pt=xe.indexOf(ht),ln=!rn;if((0,te.ZP)(rn&&Pt!==-1||!rn&&Pt===-1,"Expand state not sync with index check"),ln?xe=(0,hn.L0)(xe,ht):xe=(0,hn._5)(xe,ht),at.setExpandedKeys(xe),et==null||et(xe,{node:De,expanded:ln,nativeEvent:ot.nativeEvent}),ln&&Ut){var Fn=at.onNodeLoad(De);Fn&&Fn.then(function(){var oi=(0,Ue.oH)(at.state.treeData,xe,He);at.setUncontrolledState({flattenNodes:oi})}).catch(function(){var oi=at.state.expandedKeys,ci=(0,hn._5)(oi,ht);at.setExpandedKeys(ci)})}}},at.onListChangeStart=function(){at.setUncontrolledState({listChanging:!0})},at.onListChangeEnd=function(){setTimeout(function(){at.setUncontrolledState({listChanging:!1})})},at.onActiveChange=function(ot){var De=at.state.activeKey,xe=at.props.onActiveChange;De!==ot&&(at.setState({activeKey:ot}),ot!==null&&at.scrollTo({key:ot}),xe==null||xe(ot))},at.getActiveItem=function(){var ot=at.state,De=ot.activeKey,xe=ot.flattenNodes;return De===null?null:xe.find(function(me){var Ne=me.key;return Ne===De})||null},at.offsetActiveKey=function(ot){var De=at.state,xe=De.flattenNodes,me=De.activeKey,Ne=xe.findIndex(function(et){var Ut=et.key;return Ut===me});Ne===-1&&ot<0&&(Ne=xe.length),Ne=(Ne+ot+xe.length)%xe.length;var He=xe[Ne];if(He){var Me=He.key;at.onActiveChange(Me)}else at.onActiveChange(null)},at.onKeyDown=function(ot){var De=at.state,xe=De.activeKey,me=De.expandedKeys,Ne=De.checkedKeys,He=De.fieldNames,Me=at.props,et=Me.onKeyDown,Ut=Me.checkable,rn=Me.selectable;switch(ot.which){case xt.Z.UP:{at.offsetActiveKey(-1),ot.preventDefault();break}case xt.Z.DOWN:{at.offsetActiveKey(1),ot.preventDefault();break}}var ht=at.getActiveItem();if(ht&&ht.data){var Pt=at.getTreeNodeRequiredProps(),ln=ht.data.isLeaf===!1||!!(ht.data[He.children]||[]).length,Fn=(0,Ue.F)((0,kt.Z)((0,kt.Z)({},(0,Ue.H8)(xe,Pt)),{},{data:ht.data,active:!0}));switch(ot.which){case xt.Z.LEFT:{ln&&me.includes(xe)?at.onNodeExpand({},Fn):ht.parent&&at.onActiveChange(ht.parent.key),ot.preventDefault();break}case xt.Z.RIGHT:{ln&&!me.includes(xe)?at.onNodeExpand({},Fn):ht.children&&ht.children.length&&at.onActiveChange(ht.children[0].key),ot.preventDefault();break}case xt.Z.ENTER:case xt.Z.SPACE:{Ut&&!Fn.disabled&&Fn.checkable!==!1&&!Fn.disableCheckbox?at.onNodeCheck({},Fn,!Ne.includes(xe)):!Ut&&rn&&!Fn.disabled&&Fn.selectable!==!1&&at.onNodeSelect({},Fn);break}}}et==null||et(ot)},at.setUncontrolledState=function(ot){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!at.destroyed){var me=!1,Ne=!0,He={};Object.keys(ot).forEach(function(Me){if(Me in at.props){Ne=!1;return}me=!0,He[Me]=ot[Me]}),me&&(!De||Ne)&&at.setState((0,kt.Z)((0,kt.Z)({},He),xe))}},at.scrollTo=function(ot){at.listRef.current.scrollTo(ot)},at}return(0,Fe.Z)(Mt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var jt=this.props.activeKey;jt!==void 0&&jt!==this.state.activeKey&&(this.setState({activeKey:jt}),jt!==null&&this.scrollTo({key:jt}))}},{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 jt,Et=this.state,dt=Et.focused,ot=Et.flattenNodes,De=Et.keyEntities,xe=Et.draggingNodeKey,me=Et.activeKey,Ne=Et.dropLevelOffset,He=Et.dropContainerKey,Me=Et.dropTargetKey,et=Et.dropPosition,Ut=Et.dragOverNodeKey,rn=Et.indent,ht=this.props,Pt=ht.prefixCls,ln=ht.className,Fn=ht.style,oi=ht.showLine,ci=ht.focusable,di=ht.tabIndex,mi=di===void 0?0:di,Ui=ht.selectable,vr=ht.showIcon,lr=ht.icon,gr=ht.switcherIcon,wr=ht.draggable,Zr=ht.checkable,Ki=ht.checkStrictly,Xr=ht.disabled,Vi=ht.motion,be=ht.loadData,Pi=ht.filterTreeNode,Gi=ht.height,hr=ht.itemHeight,$i=ht.virtual,fo=ht.titleRender,_r=ht.dropIndicatorRender,Co=ht.onContextMenu,vn=ht.onScroll,an=ht.direction,Jt=ht.rootClassName,ft=ht.rootStyle,pn=(0,Te.Z)(this.props,{aria:!0,data:!0}),Rn;return wr&&((0,it.Z)(wr)==="object"?Rn=wr:typeof wr=="function"?Rn={nodeDraggable:wr}:Rn={}),ne.createElement(he.k.Provider,{value:{prefixCls:Pt,selectable:Ui,showIcon:vr,icon:lr,switcherIcon:gr,draggable:Rn,draggingNodeKey:xe,checkable:Zr,checkStrictly:Ki,disabled:Xr,keyEntities:De,dropLevelOffset:Ne,dropContainerKey:He,dropTargetKey:Me,dropPosition:et,dragOverNodeKey:Ut,indent:rn,direction:an,dropIndicatorRender:_r,loadData:be,filterTreeNode:Pi,titleRender:fo,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}},ne.createElement("div",{role:"tree",className:wt()(Pt,ln,Jt,(jt={},(0,je.Z)(jt,"".concat(Pt,"-show-line"),oi),(0,je.Z)(jt,"".concat(Pt,"-focused"),dt),(0,je.Z)(jt,"".concat(Pt,"-active-focused"),me!==null),jt)),style:ft},ne.createElement(Zn,(0,Ee.Z)({ref:this.listRef,prefixCls:Pt,style:Fn,data:ot,disabled:Xr,selectable:Ui,checkable:!!Zr,motion:Vi,dragging:xe!==null,height:Gi,itemHeight:hr,virtual:$i,focusable:ci,focused:dt,tabIndex:mi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Co,onScroll:vn},this.getTreeNodeRequiredProps(),pn))))}}],[{key:"getDerivedStateFromProps",value:function(jt,Et){var dt=Et.prevProps,ot={prevProps:jt};function De(ci){return!dt&&ci in jt||dt&&dt[ci]!==jt[ci]}var xe,me=Et.fieldNames;if(De("fieldNames")&&(me=(0,Ue.w$)(jt.fieldNames),ot.fieldNames=me),De("treeData")?xe=jt.treeData:De("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xe=(0,Ue.zn)(jt.children)),xe){ot.treeData=xe;var Ne=(0,Ue.I8)(xe,{fieldNames:me});ot.keyEntities=(0,kt.Z)((0,je.Z)({},yt,tn),Ne.keyEntities)}var He=ot.keyEntities||Et.keyEntities;if(De("expandedKeys")||dt&&De("autoExpandParent"))ot.expandedKeys=jt.autoExpandParent||!dt&&jt.defaultExpandParent?(0,hn.r7)(jt.expandedKeys,He):jt.expandedKeys;else if(!dt&&jt.defaultExpandAll){var Me=(0,kt.Z)({},He);delete Me[yt],ot.expandedKeys=Object.keys(Me).map(function(ci){return Me[ci].key})}else!dt&&jt.defaultExpandedKeys&&(ot.expandedKeys=jt.autoExpandParent||jt.defaultExpandParent?(0,hn.r7)(jt.defaultExpandedKeys,He):jt.defaultExpandedKeys);if(ot.expandedKeys||delete ot.expandedKeys,xe||ot.expandedKeys){var et=(0,Ue.oH)(xe||Et.treeData,ot.expandedKeys||Et.expandedKeys,me);ot.flattenNodes=et}if(jt.selectable&&(De("selectedKeys")?ot.selectedKeys=(0,hn.BT)(jt.selectedKeys,jt):!dt&&jt.defaultSelectedKeys&&(ot.selectedKeys=(0,hn.BT)(jt.defaultSelectedKeys,jt))),jt.checkable){var Ut;if(De("checkedKeys")?Ut=(0,hn.E6)(jt.checkedKeys)||{}:!dt&&jt.defaultCheckedKeys?Ut=(0,hn.E6)(jt.defaultCheckedKeys)||{}:xe&&(Ut=(0,hn.E6)(jt.checkedKeys)||{checkedKeys:Et.checkedKeys,halfCheckedKeys:Et.halfCheckedKeys}),Ut){var rn=Ut,ht=rn.checkedKeys,Pt=ht===void 0?[]:ht,ln=rn.halfCheckedKeys,Fn=ln===void 0?[]:ln;if(!jt.checkStrictly){var oi=(0,ii.S)(Pt,!0,He);Pt=oi.checkedKeys,Fn=oi.halfCheckedKeys}ot.checkedKeys=Pt,ot.halfCheckedKeys=Fn}}return De("loadedKeys")&&(ot.loadedKeys=jt.loadedKeys),ot}}]),Mt}(ne.Component);ri.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:se,allowDrop:function(){return!0},expandAction:!1},ri.TreeNode=ze.Z;var pi=ri,Mn=pi},35654:function(On,Pn,Se){"use strict";Se.d(Pn,{BT:function(){return ne},E6:function(){return ge},L0:function(){return nt},OM:function(){return te},_5:function(){return Ct},r7:function(){return ve},wA:function(){return wt},yx:function(){return gt}});var Ee=Se(26390),je=Se(80665),it=Se(51395),kt=Se(59301),Xe=Se(39417),pt=Se(67841),Fe=Se(71430),Ft=null;function Ct(Pe,ke){if(!Pe)return[];var we=Pe.slice(),Oe=we.indexOf(ke);return Oe>=0&&we.splice(Oe,1),we}function nt(Pe,ke){var we=(Pe||[]).slice();return we.indexOf(ke)===-1&&we.push(ke),we}function gt(Pe){return Pe.split("-")}function wt(Pe,ke){var we=[],Oe=(0,pt.Z)(ke,Pe);function ze(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];We.forEach(function(Ue){var ut=Ue.key,Ke=Ue.children;we.push(ut),ze(Ke)})}return ze(Oe.children),we}function xt(Pe){if(Pe.parent){var ke=gt(Pe.pos);return Number(ke[ke.length-1])===Pe.parent.children.length-1}return!1}function Te(Pe){var ke=gt(Pe.pos);return Number(ke[ke.length-1])===0}function te(Pe,ke,we,Oe,ze,We,Ue,ut,Ke,Ht){var St,_t=Pe.clientX,Qt=Pe.clientY,qt=Pe.target.getBoundingClientRect(),sn=qt.top,Bn=qt.height,yt=(Ht==="rtl"?-1:1)*(((ze==null?void 0:ze.x)||0)-_t),Ge=(yt-12)/Oe,tn=(0,pt.Z)(ut,we.props.eventKey);if(Qt<sn+Bn/2){var Wn=Ue.findIndex(function(Mn){return Mn.key===tn.key}),Qn=Wn<=0?0:Wn-1,Dt=Ue[Qn].key;tn=(0,pt.Z)(ut,Dt)}var $t=tn.key,cn=tn,Zn=tn.key,hn=0,ii=0;if(!Ke.includes($t))for(var mt=0;mt<Ge&&xt(tn);mt+=1)tn=tn.parent,ii+=1;var Xn=ke.props.data,ri=tn.node,pi=!0;return Te(tn)&&tn.level===0&&Qt<sn+Bn/2&&We({dragNode:Xn,dropNode:ri,dropPosition:-1})&&tn.key===we.props.eventKey?hn=-1:(cn.children||[]).length&&Ke.includes(Zn)?We({dragNode:Xn,dropNode:ri,dropPosition:0})?hn=0:pi=!1:ii===0?Ge>-1.5?We({dragNode:Xn,dropNode:ri,dropPosition:1})?hn=1:pi=!1:We({dragNode:Xn,dropNode:ri,dropPosition:0})?hn=0:We({dragNode:Xn,dropNode:ri,dropPosition:1})?hn=1:pi=!1:We({dragNode:Xn,dropNode:ri,dropPosition:1})?hn=1:pi=!1,{dropPosition:hn,dropLevelOffset:ii,dropTargetKey:tn.key,dropTargetPos:tn.pos,dragOverNodeKey:Zn,dropContainerKey:hn===0?null:((St=tn.parent)===null||St===void 0?void 0:St.key)||null,dropAllowed:pi}}function ne(Pe,ke){if(Pe){var we=ke.multiple;return we?Pe.slice():Pe.length?[Pe[0]]:Pe}}var he=function(ke){return ke};function se(Pe,ke){if(!Pe)return[];var we=ke||{},Oe=we.processProps,ze=Oe===void 0?he:Oe,We=Array.isArray(Pe)?Pe:[Pe];return We.map(function(Ue){var ut=Ue.children,Ke=_objectWithoutProperties(Ue,Ft),Ht=se(ut,ke);return React.createElement(TreeNode,_extends({key:Ke.key},ze(Ke)),Ht)})}function ge(Pe){if(!Pe)return null;var ke;if(Array.isArray(Pe))ke={checkedKeys:Pe,halfCheckedKeys:void 0};else if((0,je.Z)(Pe)==="object")ke={checkedKeys:Pe.checked||void 0,halfCheckedKeys:Pe.halfChecked||void 0};else return(0,it.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ke}function ve(Pe,ke){var we=new Set;function Oe(ze){if(!we.has(ze)){var We=(0,pt.Z)(ke,ze);if(We){we.add(ze);var Ue=We.parent,ut=We.node;ut.disabled||Ue&&Oe(Ue.key)}}}return(Pe||[]).forEach(function(ze){Oe(ze)}),(0,Ee.Z)(we)}},90782:function(On,Pn,Se){"use strict";Se.d(Pn,{S:function(){return Fe}});var Ee=Se(51395),je=Se(67841);function it(Ft,Ct){var nt=new Set;return Ft.forEach(function(gt){Ct.has(gt)||nt.add(gt)}),nt}function kt(Ft){var Ct=Ft||{},nt=Ct.disabled,gt=Ct.disableCheckbox,wt=Ct.checkable;return!!(nt||gt)||wt===!1}function Xe(Ft,Ct,nt,gt){for(var wt=new Set(Ft),xt=new Set,Te=0;Te<=nt;Te+=1){var te=Ct.get(Te)||new Set;te.forEach(function(ge){var ve=ge.key,Pe=ge.node,ke=ge.children,we=ke===void 0?[]:ke;wt.has(ve)&&!gt(Pe)&&we.filter(function(Oe){return!gt(Oe.node)}).forEach(function(Oe){wt.add(Oe.key)})})}for(var ne=new Set,he=nt;he>=0;he-=1){var se=Ct.get(he)||new Set;se.forEach(function(ge){var ve=ge.parent,Pe=ge.node;if(!(gt(Pe)||!ge.parent||ne.has(ge.parent.key))){if(gt(ge.parent.node)){ne.add(ve.key);return}var ke=!0,we=!1;(ve.children||[]).filter(function(Oe){return!gt(Oe.node)}).forEach(function(Oe){var ze=Oe.key,We=wt.has(ze);ke&&!We&&(ke=!1),!we&&(We||xt.has(ze))&&(we=!0)}),ke&&wt.add(ve.key),we&&xt.add(ve.key),ne.add(ve.key)}})}return{checkedKeys:Array.from(wt),halfCheckedKeys:Array.from(it(xt,wt))}}function pt(Ft,Ct,nt,gt,wt){for(var xt=new Set(Ft),Te=new Set(Ct),te=0;te<=gt;te+=1){var ne=nt.get(te)||new Set;ne.forEach(function(ve){var Pe=ve.key,ke=ve.node,we=ve.children,Oe=we===void 0?[]:we;!xt.has(Pe)&&!Te.has(Pe)&&!wt(ke)&&Oe.filter(function(ze){return!wt(ze.node)}).forEach(function(ze){xt.delete(ze.key)})})}Te=new Set;for(var he=new Set,se=gt;se>=0;se-=1){var ge=nt.get(se)||new Set;ge.forEach(function(ve){var Pe=ve.parent,ke=ve.node;if(!(wt(ke)||!ve.parent||he.has(ve.parent.key))){if(wt(ve.parent.node)){he.add(Pe.key);return}var we=!0,Oe=!1;(Pe.children||[]).filter(function(ze){return!wt(ze.node)}).forEach(function(ze){var We=ze.key,Ue=xt.has(We);we&&!Ue&&(we=!1),!Oe&&(Ue||Te.has(We))&&(Oe=!0)}),we||xt.delete(Pe.key),Oe&&Te.add(Pe.key),he.add(Pe.key)}})}return{checkedKeys:Array.from(xt),halfCheckedKeys:Array.from(it(Te,xt))}}function Fe(Ft,Ct,nt,gt){var wt=[],xt;gt?xt=gt:xt=kt;var Te=new Set(Ft.filter(function(se){var ge=!!(0,je.Z)(nt,se);return ge||wt.push(se),ge})),te=new Map,ne=0;Object.keys(nt).forEach(function(se){var ge=nt[se],ve=ge.level,Pe=te.get(ve);Pe||(Pe=new Set,te.set(ve,Pe)),Pe.add(ge),ne=Math.max(ne,ve)}),(0,Ee.ZP)(!wt.length,"Tree missing follow keys: ".concat(wt.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var he;return Ct===!0?he=Xe(Te,te,ne,xt):he=pt(Te,Ct.halfCheckedKeys,te,ne,xt),he}},67841:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ee}});function Ee(je,it){return je[it]}},71430:function(On,Pn,Se){"use strict";Se.d(Pn,{F:function(){return ve},H8:function(){return ge},I8:function(){return se},km:function(){return wt},oH:function(){return ne},w$:function(){return xt},zn:function(){return te}});var Ee=Se(80665),je=Se(26390),it=Se(57259),kt=Se(19149),Xe=Se(38298),pt=Se(64002),Fe=Se(51395),Ft=Se(67841),Ct=["children"];function nt(Pe,ke){return"".concat(Pe,"-").concat(ke)}function gt(Pe){return Pe&&Pe.type&&Pe.type.isTreeNode}function wt(Pe,ke){return Pe!=null?Pe:ke}function xt(Pe){var ke=Pe||{},we=ke.title,Oe=ke._title,ze=ke.key,We=ke.children,Ue=we||"title";return{title:Ue,_title:Oe||[Ue],key:ze||"key",children:We||"children"}}function Te(Pe,ke){var we=new Map;function Oe(ze){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ze||[]).forEach(function(Ue){var ut=Ue[ke.key],Ke=Ue[ke.children];warning(ut!=null,"Tree node must have a certain key: [".concat(We).concat(ut,"]"));var Ht=String(ut);warning(!we.has(Ht)||ut===null||ut===void 0,"Same 'key' exist in the Tree: ".concat(Ht)),we.set(Ht,!0),Oe(Ke,"".concat(We).concat(Ht," > "))})}Oe(Pe)}function te(Pe){function ke(we){var Oe=(0,Xe.Z)(we);return Oe.map(function(ze){if(!gt(ze))return(0,Fe.ZP)(!ze,"Tree/TreeNode can only accept TreeNode as children."),null;var We=ze.key,Ue=ze.props,ut=Ue.children,Ke=(0,kt.Z)(Ue,Ct),Ht=(0,it.Z)({key:We},Ke),St=ke(ut);return St.length&&(Ht.children=St),Ht}).filter(function(ze){return ze})}return ke(Pe)}function ne(Pe,ke,we){var Oe=xt(we),ze=Oe._title,We=Oe.key,Ue=Oe.children,ut=new Set(ke===!0?[]:ke),Ke=[];function Ht(St){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return St.map(function(Qt,qt){for(var sn=nt(_t?_t.pos:"0",qt),Bn=wt(Qt[We],sn),yt,Ge=0;Ge<ze.length;Ge+=1){var tn=ze[Ge];if(Qt[tn]!==void 0){yt=Qt[tn];break}}var Wn=(0,it.Z)((0,it.Z)({},(0,pt.Z)(Qt,[].concat((0,je.Z)(ze),[We,Ue]))),{},{title:yt,key:Bn,parent:_t,pos:sn,children:null,data:Qt,isStart:[].concat((0,je.Z)(_t?_t.isStart:[]),[qt===0]),isEnd:[].concat((0,je.Z)(_t?_t.isEnd:[]),[qt===St.length-1])});return Ke.push(Wn),ke===!0||ut.has(Bn)?Wn.children=Ht(Qt[Ue]||[],Wn):Wn.children=[],Wn})}return Ht(Pe),Ke}function he(Pe,ke,we){var Oe={};(0,Ee.Z)(we)==="object"?Oe=we:Oe={externalGetKey:we},Oe=Oe||{};var ze=Oe,We=ze.childrenPropName,Ue=ze.externalGetKey,ut=ze.fieldNames,Ke=xt(ut),Ht=Ke.key,St=Ke.children,_t=We||St,Qt;Ue?typeof Ue=="string"?Qt=function(Bn){return Bn[Ue]}:typeof Ue=="function"&&(Qt=function(Bn){return Ue(Bn)}):Qt=function(Bn,yt){return wt(Bn[Ht],yt)};function qt(sn,Bn,yt,Ge){var tn=sn?sn[_t]:Pe,Wn=sn?nt(yt.pos,Bn):"0",Qn=sn?[].concat((0,je.Z)(Ge),[sn]):[];if(sn){var Dt=Qt(sn,Wn),$t={node:sn,index:Bn,pos:Wn,key:Dt,parentPos:yt.node?yt.pos:null,level:yt.level+1,nodes:Qn};ke($t)}tn&&tn.forEach(function(cn,Zn){qt(cn,Zn,{node:sn,pos:Wn,level:yt?yt.level+1:-1},Qn)})}qt(null)}function se(Pe){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=ke.initWrapper,Oe=ke.processEntity,ze=ke.onProcessFinished,We=ke.externalGetKey,Ue=ke.childrenPropName,ut=ke.fieldNames,Ke=arguments.length>2?arguments[2]:void 0,Ht=We||Ke,St={},_t={},Qt={posEntities:St,keyEntities:_t};return we&&(Qt=we(Qt)||Qt),he(Pe,function(qt){var sn=qt.node,Bn=qt.index,yt=qt.pos,Ge=qt.key,tn=qt.parentPos,Wn=qt.level,Qn=qt.nodes,Dt={node:sn,nodes:Qn,index:Bn,key:Ge,pos:yt,level:Wn},$t=wt(Ge,yt);St[yt]=Dt,_t[$t]=Dt,Dt.parent=St[tn],Dt.parent&&(Dt.parent.children=Dt.parent.children||[],Dt.parent.children.push(Dt)),Oe&&Oe(Dt,Qt)},{externalGetKey:Ht,childrenPropName:Ue,fieldNames:ut}),ze&&ze(Qt),Qt}function ge(Pe,ke){var we=ke.expandedKeys,Oe=ke.selectedKeys,ze=ke.loadedKeys,We=ke.loadingKeys,Ue=ke.checkedKeys,ut=ke.halfCheckedKeys,Ke=ke.dragOverNodeKey,Ht=ke.dropPosition,St=ke.keyEntities,_t=(0,Ft.Z)(St,Pe),Qt={eventKey:Pe,expanded:we.indexOf(Pe)!==-1,selected:Oe.indexOf(Pe)!==-1,loaded:ze.indexOf(Pe)!==-1,loading:We.indexOf(Pe)!==-1,checked:Ue.indexOf(Pe)!==-1,halfChecked:ut.indexOf(Pe)!==-1,pos:String(_t?_t.pos:""),dragOver:Ke===Pe&&Ht===0,dragOverGapTop:Ke===Pe&&Ht===-1,dragOverGapBottom:Ke===Pe&&Ht===1};return Qt}function ve(Pe){var ke=Pe.data,we=Pe.expanded,Oe=Pe.selected,ze=Pe.checked,We=Pe.loaded,Ue=Pe.loading,ut=Pe.halfChecked,Ke=Pe.dragOver,Ht=Pe.dragOverGapTop,St=Pe.dragOverGapBottom,_t=Pe.pos,Qt=Pe.active,qt=Pe.eventKey,sn=(0,it.Z)((0,it.Z)({},ke),{},{expanded:we,selected:Oe,checked:ze,loaded:We,loading:Ue,halfChecked:ut,dragOver:Ke,dragOverGapTop:Ht,dragOverGapBottom:St,pos:_t,active:Qt,key:qt});return"props"in sn||Object.defineProperty(sn,"props",{get:function(){return(0,Fe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Pe}}),sn}},8178:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return je}});var Ee=Se(4676);function je(it,kt,Xe,pt){var Fe=Ee.unstable_batchedUpdates?function(Ct){Ee.unstable_batchedUpdates(Xe,Ct)}:Xe;return it!=null&&it.addEventListener&&it.addEventListener(kt,Fe,pt),{remove:function(){it!=null&&it.removeEventListener&&it.removeEventListener(kt,Fe,pt)}}}},21783:function(On,Pn,Se){"use strict";Se.d(Pn,{g1:function(){return gt},os:function(){return xt}});var Ee=/margin|padding|width|height|max|min|offset/,je={left:!0,top:!0},it={cssFloat:1,styleFloat:1,float:1};function kt(Te){return Te.nodeType===1?Te.ownerDocument.defaultView.getComputedStyle(Te,null):{}}function Xe(Te,te,ne){if(te=te.toLowerCase(),ne==="auto"){if(te==="height")return Te.offsetHeight;if(te==="width")return Te.offsetWidth}return te in je||(je[te]=Ee.test(te)),je[te]?parseFloat(ne)||0:ne}function pt(Te,te){var ne=arguments.length,he=kt(Te);return te=it[te]?"cssFloat"in Te.style?"cssFloat":"styleFloat":te,ne===1?he:Xe(Te,te,he[te]||Te.style[te])}function Fe(Te,te,ne){var he=arguments.length;if(te=it[te]?"cssFloat"in Te.style?"cssFloat":"styleFloat":te,he===3)return typeof ne=="number"&&Ee.test(te)&&(ne="".concat(ne,"px")),Te.style[te]=ne,ne;for(var se in te)te.hasOwnProperty(se)&&Fe(Te,se,te[se]);return kt(Te)}function Ft(Te){return Te===document.body?document.documentElement.clientWidth:Te.offsetWidth}function Ct(Te){return Te===document.body?window.innerHeight||document.documentElement.clientHeight:Te.offsetHeight}function nt(){var Te=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),te=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Te,height:te}}function gt(){var Te=document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight;return{width:Te,height:te}}function wt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function xt(Te){var te=Te.getBoundingClientRect(),ne=document.documentElement;return{left:te.left+(window.pageXOffset||ne.scrollLeft)-(ne.clientLeft||document.body.clientLeft||0),top:te.top+(window.pageYOffset||ne.scrollTop)-(ne.clientTop||document.body.clientTop||0)}}},24387:function(On,Pn,Se){"use strict";Se.d(Pn,{G:function(){return kt}});var Ee=Se(87746),je=function(pt){if((0,Ee.Z)()&&window.document.documentElement){var Fe=Array.isArray(pt)?pt:[pt],Ft=window.document.documentElement;return Fe.some(function(Ct){return Ct in Ft.style})}return!1},it=function(pt,Fe){if(!je(pt))return!1;var Ft=document.createElement("div"),Ct=Ft.style[pt];return Ft.style[pt]=Fe,Ft.style[pt]!==Ct};function kt(Xe,pt){return!Array.isArray(Xe)&&pt!==void 0?it(Xe,pt):je(Xe)}},21881:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return pi}});var Ee=Se(5891),je=Se(80665),it=Se(57259),kt=Se(80962),Xe=Se(29043),pt=Se(19149),Fe=Se(92310),Ft=Se.n(Fe),Ct=Se(29301),nt=Se(80764),gt=Se(28800),wt=Se(59301),xt=Se(4676),Te=wt.forwardRef(function(Mn,Gt){var zt=Mn.height,Mt=Mn.offsetY,at=Mn.offsetX,jt=Mn.children,Et=Mn.prefixCls,dt=Mn.onInnerResize,ot=Mn.innerProps,De=Mn.rtl,xe=Mn.extra,me={},Ne={display:"flex",flexDirection:"column"};return Mt!==void 0&&(me={height:zt,position:"relative",overflow:"hidden"},Ne=(0,it.Z)((0,it.Z)({},Ne),{},(0,kt.Z)((0,kt.Z)((0,kt.Z)((0,kt.Z)((0,kt.Z)({transform:"translateY(".concat(Mt,"px)")},De?"marginRight":"marginLeft",-at),"position","absolute"),"left",0),"right",0),"top",0))),wt.createElement("div",{style:me},wt.createElement(Ct.Z,{onResize:function(Me){var et=Me.offsetHeight;et&&dt&&dt()}},wt.createElement("div",(0,Ee.Z)({style:Ne,className:Ft()((0,kt.Z)({},"".concat(Et,"-holder-inner"),Et)),ref:Gt},ot),jt,xe)))});Te.displayName="Filler";var te=Te;function ne(Mn){var Gt=Mn.children,zt=Mn.setRef,Mt=wt.useCallback(function(at){zt(at)},[]);return wt.cloneElement(Gt,{ref:Mt})}function he(Mn,Gt,zt,Mt,at,jt,Et,dt){var ot=dt.getKey;return Mn.slice(Gt,zt+1).map(function(De,xe){var me=Gt+xe,Ne=Et(De,me,{style:{width:Mt},offsetX:at}),He=ot(De);return wt.createElement(ne,{key:He,setRef:function(et){return jt(De,et)}},Ne)})}function se(Mn,Gt,zt,Mt){var at=zt-Mn,jt=Gt-zt,Et=Math.min(at,jt)*2;if(Mt<=Et){var dt=Math.floor(Mt/2);return Mt%2?zt+dt+1:zt-dt}return at>jt?zt-(Mt-jt):zt+(Mt-at)}function ge(Mn,Gt,zt){var Mt=Mn.length,at=Gt.length,jt,Et;if(Mt===0&&at===0)return null;Mt<at?(jt=Mn,Et=Gt):(jt=Gt,Et=Mn);var dt={__EMPTY_ITEM__:!0};function ot(Me){return Me!==void 0?zt(Me):dt}for(var De=null,xe=Math.abs(Mt-at)!==1,me=0;me<Et.length;me+=1){var Ne=ot(jt[me]),He=ot(Et[me]);if(Ne!==He){De=me,xe=xe||Ne!==ot(Et[me+1]);break}}return De===null?null:{index:De,multiple:xe}}function ve(Mn,Gt,zt){var Mt=wt.useState(Mn),at=(0,Xe.Z)(Mt,2),jt=at[0],Et=at[1],dt=wt.useState(null),ot=(0,Xe.Z)(dt,2),De=ot[0],xe=ot[1];return wt.useEffect(function(){var me=ge(jt||[],Mn||[],Gt);(me==null?void 0:me.index)!==void 0&&(zt==null||zt(me.index),xe(Mn[me.index])),Et(Mn)},[Mn]),[De]}var Pe=Se(23073),ke=(typeof navigator=="undefined"?"undefined":(0,je.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),we=ke,Oe=function(Mn,Gt,zt,Mt){var at=(0,wt.useRef)(!1),jt=(0,wt.useRef)(null);function Et(){clearTimeout(jt.current),at.current=!0,jt.current=setTimeout(function(){at.current=!1},50)}var dt=(0,wt.useRef)({top:Mn,bottom:Gt,left:zt,right:Mt});return dt.current.top=Mn,dt.current.bottom=Gt,dt.current.left=zt,dt.current.right=Mt,function(ot,De){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,me=ot?De<0&&dt.current.left||De>0&&dt.current.right:De<0&&dt.current.top||De>0&&dt.current.bottom;return xe&&me?(clearTimeout(jt.current),at.current=!1):(!me||at.current)&&Et(),!at.current&&me}};function ze(Mn,Gt,zt,Mt,at,jt,Et){var dt=(0,wt.useRef)(0),ot=(0,wt.useRef)(null),De=(0,wt.useRef)(null),xe=(0,wt.useRef)(!1),me=Oe(Gt,zt,Mt,at);function Ne(ht,Pt){if(Pe.Z.cancel(ot.current),!me(!1,Pt)){var ln=ht;if(!ln._virtualHandled)ln._virtualHandled=!0;else return;dt.current+=Pt,De.current=Pt,we||ln.preventDefault(),ot.current=(0,Pe.Z)(function(){var Fn=xe.current?10:1;Et(dt.current*Fn,!1),dt.current=0})}}function He(ht,Pt){Et(Pt,!0),we||ht.preventDefault()}var Me=(0,wt.useRef)(null),et=(0,wt.useRef)(null);function Ut(ht){if(Mn){Pe.Z.cancel(et.current),et.current=(0,Pe.Z)(function(){Me.current=null},2);var Pt=ht.deltaX,ln=ht.deltaY,Fn=ht.shiftKey,oi=Pt,ci=ln;(Me.current==="sx"||!Me.current&&Fn&&ln&&!Pt)&&(oi=ln,ci=0,Me.current="sx");var di=Math.abs(oi),mi=Math.abs(ci);Me.current===null&&(Me.current=jt&&di>mi?"x":"y"),Me.current==="y"?Ne(ht,ci):He(ht,oi)}}function rn(ht){Mn&&(xe.current=ht.detail===De.current)}return[Ut,rn]}function We(Mn,Gt,zt,Mt){var at=wt.useMemo(function(){return[new Map,[]]},[Mn,zt.id,Mt]),jt=(0,Xe.Z)(at,2),Et=jt[0],dt=jt[1],ot=function(xe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xe,Ne=Et.get(xe),He=Et.get(me);if(Ne===void 0||He===void 0)for(var Me=Mn.length,et=dt.length;et<Me;et+=1){var Ut,rn=Mn[et],ht=Gt(rn);Et.set(ht,et);var Pt=(Ut=zt.get(ht))!==null&&Ut!==void 0?Ut:Mt;if(dt[et]=(dt[et-1]||0)+Pt,ht===xe&&(Ne=et),ht===me&&(He=et),Ne!==void 0&&He!==void 0)break}return{top:dt[Ne-1]||0,bottom:dt[He]}};return ot}var Ue=Se(85899),ut=Se(79545),Ke=Se(68550),Ht=function(){function Mn(){(0,ut.Z)(this,Mn),(0,kt.Z)(this,"maps",void 0),(0,kt.Z)(this,"id",0),(0,kt.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ke.Z)(Mn,[{key:"set",value:function(zt,Mt){this.maps[zt]=Mt,this.id+=1,this.diffKeys.add(zt)}},{key:"get",value:function(zt){return this.maps[zt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Mn}(),St=Ht;function _t(Mn){var Gt=parseFloat(Mn);return isNaN(Gt)?0:Gt}function Qt(Mn,Gt,zt){var Mt=wt.useState(0),at=(0,Xe.Z)(Mt,2),jt=at[0],Et=at[1],dt=(0,wt.useRef)(new Map),ot=(0,wt.useRef)(new St),De=(0,wt.useRef)(0);function xe(){De.current+=1}function me(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;xe();var Me=function(){var rn=!1;dt.current.forEach(function(ht,Pt){if(ht&&ht.offsetParent){var ln=(0,Ue.ZP)(ht),Fn=ln.offsetHeight,oi=getComputedStyle(ln),ci=oi.marginTop,di=oi.marginBottom,mi=_t(ci),Ui=_t(di),vr=Fn+mi+Ui;ot.current.get(Pt)!==vr&&(ot.current.set(Pt,vr),rn=!0)}}),rn&&Et(function(ht){return ht+1})};if(He)Me();else{De.current+=1;var et=De.current;Promise.resolve().then(function(){et===De.current&&Me()})}}function Ne(He,Me){var et=Mn(He),Ut=dt.current.get(et);Me?(dt.current.set(et,Me),me()):dt.current.delete(et),!Ut!=!Me&&(Me?Gt==null||Gt(He):zt==null||zt(He))}return(0,wt.useEffect)(function(){return xe},[]),[Ne,me,ot.current,jt]}var qt=14/15;function sn(Mn,Gt,zt){var Mt=(0,wt.useRef)(!1),at=(0,wt.useRef)(0),jt=(0,wt.useRef)(0),Et=(0,wt.useRef)(null),dt=(0,wt.useRef)(null),ot,De=function(He){if(Mt.current){var Me=Math.ceil(He.touches[0].pageX),et=Math.ceil(He.touches[0].pageY),Ut=at.current-Me,rn=jt.current-et,ht=Math.abs(Ut)>Math.abs(rn);ht?at.current=Me:jt.current=et;var Pt=zt(ht,ht?Ut:rn,!1,He);Pt&&He.preventDefault(),clearInterval(dt.current),Pt&&(dt.current=setInterval(function(){ht?Ut*=qt:rn*=qt;var ln=Math.floor(ht?Ut:rn);(!zt(ht,ln,!0)||Math.abs(ln)<=.1)&&clearInterval(dt.current)},16))}},xe=function(){Mt.current=!1,ot()},me=function(He){ot(),He.touches.length===1&&!Mt.current&&(Mt.current=!0,at.current=Math.ceil(He.touches[0].pageX),jt.current=Math.ceil(He.touches[0].pageY),Et.current=He.target,Et.current.addEventListener("touchmove",De,{passive:!1}),Et.current.addEventListener("touchend",xe,{passive:!0}))};ot=function(){Et.current&&(Et.current.removeEventListener("touchmove",De),Et.current.removeEventListener("touchend",xe))},(0,gt.Z)(function(){return Mn&&Gt.current.addEventListener("touchstart",me,{passive:!0}),function(){var Ne;(Ne=Gt.current)===null||Ne===void 0||Ne.removeEventListener("touchstart",me),ot(),clearInterval(dt.current)}},[Mn])}function Bn(Mn){return Math.floor(Math.pow(Mn,.5))}function yt(Mn,Gt){var zt="touches"in Mn?Mn.touches[0]:Mn;return zt[Gt?"pageX":"pageY"]-window[Gt?"scrollX":"scrollY"]}function Ge(Mn,Gt,zt){wt.useEffect(function(){var Mt=Gt.current;if(Mn&&Mt){var at=!1,jt,Et,dt=function(){Pe.Z.cancel(jt)},ot=function Ne(){dt(),jt=(0,Pe.Z)(function(){zt(Et),Ne()})},De=function(He){var Me=He;Me._virtualHandled||(Me._virtualHandled=!0,at=!0)},xe=function(){at=!1,dt()},me=function(He){if(at){var Me=yt(He,!1),et=Mt.getBoundingClientRect(),Ut=et.top,rn=et.bottom;if(Me<=Ut){var ht=Ut-Me;Et=-Bn(ht),ot()}else if(Me>=rn){var Pt=Me-rn;Et=Bn(Pt),ot()}else dt()}};return Mt.addEventListener("mousedown",De),Mt.ownerDocument.addEventListener("mouseup",xe),Mt.ownerDocument.addEventListener("mousemove",me),function(){Mt.removeEventListener("mousedown",De),Mt.ownerDocument.removeEventListener("mouseup",xe),Mt.ownerDocument.removeEventListener("mousemove",me),dt()}}},[Mn])}var tn=10;function Wn(Mn,Gt,zt,Mt,at,jt,Et,dt){var ot=wt.useRef(),De=wt.useState(null),xe=(0,Xe.Z)(De,2),me=xe[0],Ne=xe[1];return(0,gt.Z)(function(){if(me&&me.times<tn){if(!Mn.current){Ne(function(be){return(0,it.Z)({},be)});return}jt();var He=me.targetAlign,Me=me.originAlign,et=me.index,Ut=me.offset,rn=Mn.current.clientHeight,ht=!1,Pt=He,ln=null;if(rn){for(var Fn=He||Me,oi=0,ci=0,di=0,mi=Math.min(Gt.length-1,et),Ui=0;Ui<=mi;Ui+=1){var vr=at(Gt[Ui]);ci=oi;var lr=zt.get(vr);di=ci+(lr===void 0?Mt:lr),oi=di}for(var gr=Fn==="top"?Ut:rn-Ut,wr=mi;wr>=0;wr-=1){var Zr=at(Gt[wr]),Ki=zt.get(Zr);if(Ki===void 0){ht=!0;break}if(gr-=Ki,gr<=0)break}switch(Fn){case"top":ln=ci-Ut;break;case"bottom":ln=di-rn+Ut;break;default:{var Xr=Mn.current.scrollTop,Vi=Xr+rn;ci<Xr?Pt="top":di>Vi&&(Pt="bottom")}}ln!==null&&Et(ln),ln!==me.lastTop&&(ht=!0)}ht&&Ne((0,it.Z)((0,it.Z)({},me),{},{times:me.times+1,targetAlign:Pt,lastTop:ln}))}},[me,Mn.current]),function(He){if(He==null){dt();return}if(Pe.Z.cancel(ot.current),typeof He=="number")Et(He);else if(He&&(0,je.Z)(He)==="object"){var Me,et=He.align;"index"in He?Me=He.index:Me=Gt.findIndex(function(ht){return at(ht)===He.key});var Ut=He.offset,rn=Ut===void 0?0:Ut;Ne({times:0,index:Me,offset:rn,originAlign:et})}}}var Qn=wt.forwardRef(function(Mn,Gt){var zt=Mn.prefixCls,Mt=Mn.rtl,at=Mn.scrollOffset,jt=Mn.scrollRange,Et=Mn.onStartMove,dt=Mn.onStopMove,ot=Mn.onScroll,De=Mn.horizontal,xe=Mn.spinSize,me=Mn.containerSize,Ne=Mn.style,He=Mn.thumbStyle,Me=wt.useState(!1),et=(0,Xe.Z)(Me,2),Ut=et[0],rn=et[1],ht=wt.useState(null),Pt=(0,Xe.Z)(ht,2),ln=Pt[0],Fn=Pt[1],oi=wt.useState(null),ci=(0,Xe.Z)(oi,2),di=ci[0],mi=ci[1],Ui=!Mt,vr=wt.useRef(),lr=wt.useRef(),gr=wt.useState(!1),wr=(0,Xe.Z)(gr,2),Zr=wr[0],Ki=wr[1],Xr=wt.useRef(),Vi=function(){clearTimeout(Xr.current),Ki(!0),Xr.current=setTimeout(function(){Ki(!1)},3e3)},be=jt-me||0,Pi=me-xe||0,Gi=wt.useMemo(function(){if(at===0||be===0)return 0;var ft=at/be;return ft*Pi},[at,be,Pi]),hr=function(pn){pn.stopPropagation(),pn.preventDefault()},$i=wt.useRef({top:Gi,dragging:Ut,pageY:ln,startTop:di});$i.current={top:Gi,dragging:Ut,pageY:ln,startTop:di};var fo=function(pn){rn(!0),Fn(yt(pn,De)),mi($i.current.top),Et(),pn.stopPropagation(),pn.preventDefault()};wt.useEffect(function(){var ft=function(lt){lt.preventDefault()},pn=vr.current,Rn=lr.current;return pn.addEventListener("touchstart",ft,{passive:!1}),Rn.addEventListener("touchstart",fo,{passive:!1}),function(){pn.removeEventListener("touchstart",ft),Rn.removeEventListener("touchstart",fo)}},[]);var _r=wt.useRef();_r.current=be;var Co=wt.useRef();Co.current=Pi,wt.useEffect(function(){if(Ut){var ft,pn=function(lt){var yn=$i.current,Yn=yn.dragging,Di=yn.pageY,Cn=yn.startTop;Pe.Z.cancel(ft);var bt=vr.current.getBoundingClientRect(),In=me/(De?bt.width:bt.height);if(Yn){var gi=(yt(lt,De)-Di)*In,Oi=Cn;!Ui&&De?Oi-=gi:Oi+=gi;var Kt=_r.current,Sn=Co.current,Wt=Sn?Oi/Sn:0,on=Math.ceil(Wt*Kt);on=Math.max(on,0),on=Math.min(on,Kt),ft=(0,Pe.Z)(function(){ot(on,De)})}},Rn=function(){rn(!1),dt()};return window.addEventListener("mousemove",pn,{passive:!0}),window.addEventListener("touchmove",pn,{passive:!0}),window.addEventListener("mouseup",Rn,{passive:!0}),window.addEventListener("touchend",Rn,{passive:!0}),function(){window.removeEventListener("mousemove",pn),window.removeEventListener("touchmove",pn),window.removeEventListener("mouseup",Rn),window.removeEventListener("touchend",Rn),Pe.Z.cancel(ft)}}},[Ut]),wt.useEffect(function(){return Vi(),function(){clearTimeout(Xr.current)}},[at]),wt.useImperativeHandle(Gt,function(){return{delayHidden:Vi}});var vn="".concat(zt,"-scrollbar"),an={position:"absolute",visibility:Zr?null:"hidden"},Jt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return De?(an.height=8,an.left=0,an.right=0,an.bottom=0,Jt.height="100%",Jt.width=xe,Ui?Jt.left=Gi:Jt.right=Gi):(an.width=8,an.top=0,an.bottom=0,Ui?an.right=0:an.left=0,Jt.width="100%",Jt.height=xe,Jt.top=Gi),wt.createElement("div",{ref:vr,className:Ft()(vn,(0,kt.Z)((0,kt.Z)((0,kt.Z)({},"".concat(vn,"-horizontal"),De),"".concat(vn,"-vertical"),!De),"".concat(vn,"-visible"),Zr)),style:(0,it.Z)((0,it.Z)({},an),Ne),onMouseDown:hr,onMouseMove:Vi},wt.createElement("div",{ref:lr,className:Ft()("".concat(vn,"-thumb"),(0,kt.Z)({},"".concat(vn,"-thumb-moving"),Ut)),style:(0,it.Z)((0,it.Z)({},Jt),He),onMouseDown:fo}))}),Dt=Qn,$t=20;function cn(){var Mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,zt=Mn/Gt*Mn;return isNaN(zt)&&(zt=0),zt=Math.max(zt,$t),Math.floor(zt)}var Zn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],hn=[],ii={overflowY:"auto",overflowAnchor:"none"};function mt(Mn,Gt){var zt=Mn.prefixCls,Mt=zt===void 0?"rc-virtual-list":zt,at=Mn.className,jt=Mn.height,Et=Mn.itemHeight,dt=Mn.fullHeight,ot=dt===void 0?!0:dt,De=Mn.style,xe=Mn.data,me=Mn.children,Ne=Mn.itemKey,He=Mn.virtual,Me=Mn.direction,et=Mn.scrollWidth,Ut=Mn.component,rn=Ut===void 0?"div":Ut,ht=Mn.onScroll,Pt=Mn.onVirtualScroll,ln=Mn.onVisibleChange,Fn=Mn.innerProps,oi=Mn.extraRender,ci=Mn.styles,di=(0,pt.Z)(Mn,Zn),mi=wt.useCallback(function(Fr){return typeof Ne=="function"?Ne(Fr):Fr==null?void 0:Fr[Ne]},[Ne]),Ui=Qt(mi,null,null),vr=(0,Xe.Z)(Ui,4),lr=vr[0],gr=vr[1],wr=vr[2],Zr=vr[3],Ki=!!(He!==!1&&jt&&Et),Xr=wt.useMemo(function(){return Object.values(wr.maps).reduce(function(Fr,Sr){return Fr+Sr},0)},[wr.id,wr.maps]),Vi=Ki&&xe&&(Math.max(Et*xe.length,Xr)>jt||!!et),be=Me==="rtl",Pi=Ft()(Mt,(0,kt.Z)({},"".concat(Mt,"-rtl"),be),at),Gi=xe||hn,hr=(0,wt.useRef)(),$i=(0,wt.useRef)(),fo=(0,wt.useRef)(),_r=(0,wt.useState)(0),Co=(0,Xe.Z)(_r,2),vn=Co[0],an=Co[1],Jt=(0,wt.useState)(0),ft=(0,Xe.Z)(Jt,2),pn=ft[0],Rn=ft[1],It=(0,wt.useState)(!1),lt=(0,Xe.Z)(It,2),yn=lt[0],Yn=lt[1],Di=function(){Yn(!0)},Cn=function(){Yn(!1)},bt={getKey:mi};function In(Fr){an(function(Sr){var xo;typeof Fr=="function"?xo=Fr(Sr):xo=Fr;var Wo=Pr(xo);return hr.current.scrollTop=Wo,Wo})}var gi=(0,wt.useRef)({start:0,end:Gi.length}),Oi=(0,wt.useRef)(),Kt=ve(Gi,mi),Sn=(0,Xe.Z)(Kt,1),Wt=Sn[0];Oi.current=Wt;var on=wt.useMemo(function(){if(!Ki)return{scrollHeight:void 0,start:0,end:Gi.length-1,offset:void 0};if(!Vi){var Fr;return{scrollHeight:((Fr=$i.current)===null||Fr===void 0?void 0:Fr.offsetHeight)||0,start:0,end:Gi.length-1,offset:void 0}}for(var Sr=0,xo,Wo,eo,fa=Gi.length,sr=0;sr<fa;sr+=1){var tr=Gi[sr],Nr=mi(tr),ei=wr.get(Nr),Ro=Sr+(ei===void 0?Et:ei);Ro>=vn&&xo===void 0&&(xo=sr,Wo=Sr),Ro>vn+jt&&eo===void 0&&(eo=sr),Sr=Ro}return xo===void 0&&(xo=0,Wo=0,eo=Math.ceil(jt/Et)),eo===void 0&&(eo=Gi.length-1),eo=Math.min(eo+1,Gi.length-1),{scrollHeight:Sr,start:xo,end:eo,offset:Wo}},[Vi,Ki,vn,Gi,Zr,jt]),gn=on.scrollHeight,un=on.start,En=on.end,Nn=on.offset;gi.current.start=un,gi.current.end=En,wt.useLayoutEffect(function(){var Fr=wr.getRecord();if(Fr.size===1){var Sr=Array.from(Fr)[0],xo=mi(Gi[un]);if(xo===Sr){var Wo=wr.get(Sr),eo=Wo-Et;In(function(fa){return fa+eo})}}wr.resetRecord()},[gn]);var Vn=wt.useState({width:0,height:jt}),$n=(0,Xe.Z)(Vn,2),Tn=$n[0],ai=$n[1],Qi=function(Sr){ai({width:Sr.offsetWidth,height:Sr.offsetHeight})},Lr=(0,wt.useRef)(),qi=(0,wt.useRef)(),Bt=wt.useMemo(function(){return cn(Tn.width,et)},[Tn.width,et]),Si=wt.useMemo(function(){return cn(Tn.height,gn)},[Tn.height,gn]),Hi=gn-jt,ki=(0,wt.useRef)(Hi);ki.current=Hi;function Pr(Fr){var Sr=Fr;return Number.isNaN(ki.current)||(Sr=Math.min(Sr,ki.current)),Sr=Math.max(Sr,0),Sr}var yr=vn<=0,kr=vn>=Hi,rr=pn<=0,Ri=pn>=et,Gr=Oe(yr,kr,rr,Ri),xn=function(){return{x:be?-pn:pn,y:vn}},Fo=(0,wt.useRef)(xn()),An=(0,nt.useEvent)(function(Fr){if(Pt){var Sr=(0,it.Z)((0,it.Z)({},xn()),Fr);(Fo.current.x!==Sr.x||Fo.current.y!==Sr.y)&&(Pt(Sr),Fo.current=Sr)}});function Ir(Fr,Sr){var xo=Fr;Sr?((0,xt.flushSync)(function(){Rn(xo)}),An()):In(xo)}function _o(Fr){var Sr=Fr.currentTarget.scrollTop;Sr!==vn&&In(Sr),ht==null||ht(Fr),An()}var oo=function(Sr){var xo=Sr,Wo=et?et-Tn.width:0;return xo=Math.max(xo,0),xo=Math.min(xo,Wo),xo},Fa=(0,nt.useEvent)(function(Fr,Sr){Sr?((0,xt.flushSync)(function(){Rn(function(xo){var Wo=xo+(be?-Fr:Fr);return oo(Wo)})}),An()):In(function(xo){var Wo=xo+Fr;return Wo})}),Qo=ze(Ki,yr,kr,rr,Ri,!!et,Fa),dr=(0,Xe.Z)(Qo,2),nr=dr[0],no=dr[1];sn(Ki,hr,function(Fr,Sr,xo,Wo){var eo=Wo;return Gr(Fr,Sr,xo)?!1:!eo||!eo._virtualHandled?(eo&&(eo._virtualHandled=!0),nr({preventDefault:function(){},deltaX:Fr?Sr:0,deltaY:Fr?0:Sr}),!0):!1}),Ge(Vi,hr,function(Fr){In(function(Sr){return Sr+Fr})}),(0,gt.Z)(function(){function Fr(xo){var Wo=yr&&xo.detail<0,eo=kr&&xo.detail>0;Ki&&!Wo&&!eo&&xo.preventDefault()}var Sr=hr.current;return Sr.addEventListener("wheel",nr,{passive:!1}),Sr.addEventListener("DOMMouseScroll",no,{passive:!0}),Sr.addEventListener("MozMousePixelScroll",Fr,{passive:!1}),function(){Sr.removeEventListener("wheel",nr),Sr.removeEventListener("DOMMouseScroll",no),Sr.removeEventListener("MozMousePixelScroll",Fr)}},[Ki,yr,kr]),(0,gt.Z)(function(){if(et){var Fr=oo(pn);Rn(Fr),An({x:Fr})}},[Tn.width,et]);var Lo=function(){var Sr,xo;(Sr=Lr.current)===null||Sr===void 0||Sr.delayHidden(),(xo=qi.current)===null||xo===void 0||xo.delayHidden()},wi=Wn(hr,Gi,wr,Et,mi,function(){return gr(!0)},In,Lo);wt.useImperativeHandle(Gt,function(){return{nativeElement:fo.current,getScrollInfo:xn,scrollTo:function(Sr){function xo(Wo){return Wo&&(0,je.Z)(Wo)==="object"&&("left"in Wo||"top"in Wo)}xo(Sr)?(Sr.left!==void 0&&Rn(oo(Sr.left)),wi(Sr.top)):wi(Sr)}}}),(0,gt.Z)(function(){if(ln){var Fr=Gi.slice(un,En+1);ln(Fr,Gi)}},[un,En,Gi]);var Ye=We(Gi,mi,wr,Et),$r=oi==null?void 0:oi({start:un,end:En,virtual:Vi,offsetX:pn,offsetY:Nn,rtl:be,getSize:Ye}),ca=he(Gi,un,En,et,pn,lr,me,bt),qr=null;jt&&(qr=(0,it.Z)((0,kt.Z)({},ot?"height":"maxHeight",jt),ii),Ki&&(qr.overflowY="hidden",et&&(qr.overflowX="hidden"),yn&&(qr.pointerEvents="none")));var $o={};return be&&($o.dir="rtl"),wt.createElement("div",(0,Ee.Z)({ref:fo,style:(0,it.Z)((0,it.Z)({},De),{},{position:"relative"}),className:Pi},$o,di),wt.createElement(Ct.Z,{onResize:Qi},wt.createElement(rn,{className:"".concat(Mt,"-holder"),style:qr,ref:hr,onScroll:_o,onMouseEnter:Lo},wt.createElement(te,{prefixCls:Mt,height:gn,offsetX:pn,offsetY:Nn,scrollWidth:et,onInnerResize:gr,ref:$i,innerProps:Fn,rtl:be,extra:$r},ca))),Vi&&gn>jt&&wt.createElement(Dt,{ref:Lr,prefixCls:Mt,scrollOffset:vn,scrollRange:gn,rtl:be,onScroll:Ir,onStartMove:Di,onStopMove:Cn,spinSize:Si,containerSize:Tn.height,style:ci==null?void 0:ci.verticalScrollBar,thumbStyle:ci==null?void 0:ci.verticalScrollBarThumb}),Vi&&et>Tn.width&&wt.createElement(Dt,{ref:qi,prefixCls:Mt,scrollOffset:pn,scrollRange:et,rtl:be,onScroll:Ir,onStartMove:Di,onStopMove:Cn,spinSize:Bt,containerSize:Tn.width,horizontal:!0,style:ci==null?void 0:ci.horizontalScrollBar,thumbStyle:ci==null?void 0:ci.horizontalScrollBarThumb}))}var Xn=wt.forwardRef(mt);Xn.displayName="List";var ri=Xn,pi=ri},25510:function(On){"use strict";On.exports="data:image/png;base64,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KFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF9t3n31svWlr28GHHWIPPPhX22STje1HJ59iyyy7jL362iy7//4HbM899rQHH3jIDj/kkHAMwJ9uucWOOPLwEEczdcmpNmWJKSGe56Hnnrbnn3zSll1iKfvYHh+x/fbZz669/no76Scn2+lnnWnLrbyiXX81gGZyOOCRYws4KTqYi8h+O9IBlvm8r4iWAlgKYGlXHBbAkk+5AlgKYMnnmg48UQBLAmCZ7xP6/SWX2tlnnGEnfv/79o+77mIHfe1gW2vatL6ji/G3zE8pj6+CBGz/+7//a9854bshv8n7/+V9dsJxx4dYl7+99LzdcdfttuUWW9viS04JW54BLLPnzLVbb7nV9tp9z2AhIYbkpz/BwjLJfn/55XbFFVfat775LVt/w+l2+umn2cOPPmo/P+2Xdvwxx9hKq/6D/fDEH9qmm2xiE8ct0medmDfXbrjuOrv4ggvsvvvusw9/9GO2wYbT7bHHn7Srrr7GPvmf/2nbbvsO+8Y3vm7rrbeuLUKm3dfNjjnmGPvlaafbX+673z7+7x+3rbfYzA446AC79957bNq0dUKcy8RJEwNgeeCBB23vvfe22/98hx33rWNt1ZVXsRtvvMG+ccThNmrsaFt6uWVs6lJL2quzXrOZYyzE0Cw9ZartsOU77D8+/Um76ppr7KQfnWSnn/krW2Oj9e388863pSZNslE0ZNYcGzV6HBnl5h87PTIAn+AW0tlK84NYCmApgKVdcVgASz7lehKw1HWDFNYc9pZz4e9PPbxK9XL6cspBZEF+vf66UX799dc3GDD1IkYh9+A/4gteeuml1FeEcl/+8pfDx1/+LKSqM4ze/e53B1dAKg2yGjS/cC8Alm7wmWir80j4P9tzORTOx6eoXKsYFh0BwVice+659o1vfMPe80/vsSOOPMKmTSMPy7yQxI006ToXhXeRFfeII46wxx57zN7+9reHZ7n/l7/cZ9ddd53tvffHwtkvlCN2hrbeeOON9m//9m8hTfyaa64ZLCzElpx11lkhhuV73/uebb75Fvbzn58a5tP5559v//7v/x6exZWzzTbbhLq4x3zADXXCCSfYs889Z//xH/9hn/jEJ0JEDu/56Ec/YmuttVYAKGSCXXzxxQONPvvZz9pvf/vb0IZjjz02lPnUpz5lHPq51FJL2U033WSkgKf+GTPuCfUQ/3PkkUeGNj/4wIP22c991kiHv+eee9r73ve+EEtz94wZNnnSJJswYUJ4nnl3/fXX2/e///1gZdpg+nS78IILQmyQrpSzvSgbp+b32ZMZH9qn9O/QhrGiTdTPuDLXcrLdtpPptp353EoGLkyZbuuyXUMzDnPs5oUMvPLKKyvPU6tqF7899NBDtsEGG1TK5qqs6jxTDj/s5igOw7qff/75cDYQ3712oUwQcvFVN1H5fbvttgtK6s0KWAYyhp0ELAIhHOD5m9/8xv7nf/4nbEN+73vfa8svv3wABzp0k7/JdEtsC7t+vvSlL9ndd98djoAA6FAeAfy73/0ugBCU9tlnnx3O4AF0sK35wx/+cOBhTp3FSsM5VwTX/uEPfwi5WN7xjneE/0+dOtVuv/32AFQALgALANQee+wR3k9beRfPAIxOOumk0G5ACefNcBo67iISzwFY1lhjjQAgADgciUGbAVOAi3/9138NQp3yhxxyiO200072+OOP2x//+Ec79NBDg7I/+uijgxCnzIc+9KEAPHbb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"},32637:function(On,Pn,Se){"use strict";On.exports=Se.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(On){"use strict";On.exports="data:image/png;base64,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"},16722:function(On,Pn,Se){"use strict";Se.d(Pn,{Z:function(){return Ft}});const Ee=Ct=>typeof Ct=="object"&&Ct!=null&&Ct.nodeType===1,je=(Ct,nt)=>(!nt||Ct!=="hidden")&&Ct!=="visible"&&Ct!=="clip",it=(Ct,nt)=>{if(Ct.clientHeight<Ct.scrollHeight||Ct.clientWidth<Ct.scrollWidth){const gt=getComputedStyle(Ct,null);return je(gt.overflowY,nt)||je(gt.overflowX,nt)||(wt=>{const xt=(Te=>{if(!Te.ownerDocument||!Te.ownerDocument.defaultView)return null;try{return Te.ownerDocument.defaultView.frameElement}catch(te){return null}})(wt);return!!xt&&(xt.clientHeight<wt.scrollHeight||xt.clientWidth<wt.scrollWidth)})(Ct)}return!1},kt=(Ct,nt,gt,wt,xt,Te,te,ne)=>Te<Ct&&te>nt||Te>Ct&&te<nt?0:Te<=Ct&&ne<=gt||te>=nt&&ne>=gt?Te-Ct-wt:te>nt&&ne<gt||Te<Ct&&ne>gt?te-nt+xt:0,Xe=Ct=>{const nt=Ct.parentElement;return nt==null?Ct.getRootNode().host||null:nt},pt=(Ct,nt)=>{var gt,wt,xt,Te;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:he,boundary:se,skipOverflowHiddenElements:ge}=nt,ve=typeof se=="function"?se:Qn=>Qn!==se;if(!Ee(Ct))throw new TypeError("Invalid target");const Pe=document.scrollingElement||document.documentElement,ke=[];let we=Ct;for(;Ee(we)&&ve(we);){if(we=Xe(we),we===Pe){ke.push(we);break}we!=null&&we===document.body&&it(we)&&!it(document.documentElement)||we!=null&&it(we,ge)&&ke.push(we)}const Oe=(wt=(gt=window.visualViewport)==null?void 0:gt.width)!=null?wt:innerWidth,ze=(Te=(xt=window.visualViewport)==null?void 0:xt.height)!=null?Te:innerHeight,{scrollX:We,scrollY:Ue}=window,{height:ut,width:Ke,top:Ht,right:St,bottom:_t,left:Qt}=Ct.getBoundingClientRect(),{top:qt,right:sn,bottom:Bn,left:yt}=(Qn=>{const Dt=window.getComputedStyle(Qn);return{top:parseFloat(Dt.scrollMarginTop)||0,right:parseFloat(Dt.scrollMarginRight)||0,bottom:parseFloat(Dt.scrollMarginBottom)||0,left:parseFloat(Dt.scrollMarginLeft)||0}})(Ct);let Ge=ne==="start"||ne==="nearest"?Ht-qt:ne==="end"?_t+Bn:Ht+ut/2-qt+Bn,tn=he==="center"?Qt+Ke/2-yt+sn:he==="end"?St+sn:Qt-yt;const Wn=[];for(let Qn=0;Qn<ke.length;Qn++){const Dt=ke[Qn],{height:$t,width:cn,top:Zn,right:hn,bottom:ii,left:mt}=Dt.getBoundingClientRect();if(te==="if-needed"&&Ht>=0&&Qt>=0&&_t<=ze&&St<=Oe&&(Dt===Pe&&!it(Dt)||Ht>=Zn&&_t<=ii&&Qt>=mt&&St<=hn))return Wn;const Xn=getComputedStyle(Dt),ri=parseInt(Xn.borderLeftWidth,10),pi=parseInt(Xn.borderTopWidth,10),Mn=parseInt(Xn.borderRightWidth,10),Gt=parseInt(Xn.borderBottomWidth,10);let zt=0,Mt=0;const at="offsetWidth"in Dt?Dt.offsetWidth-Dt.clientWidth-ri-Mn:0,jt="offsetHeight"in Dt?Dt.offsetHeight-Dt.clientHeight-pi-Gt:0,Et="offsetWidth"in Dt?Dt.offsetWidth===0?0:cn/Dt.offsetWidth:0,dt="offsetHeight"in Dt?Dt.offsetHeight===0?0:$t/Dt.offsetHeight:0;if(Pe===Dt)zt=ne==="start"?Ge:ne==="end"?Ge-ze:ne==="nearest"?kt(Ue,Ue+ze,ze,pi,Gt,Ue+Ge,Ue+Ge+ut,ut):Ge-ze/2,Mt=he==="start"?tn:he==="center"?tn-Oe/2:he==="end"?tn-Oe:kt(We,We+Oe,Oe,ri,Mn,We+tn,We+tn+Ke,Ke),zt=Math.max(0,zt+Ue),Mt=Math.max(0,Mt+We);else{zt=ne==="start"?Ge-Zn-pi:ne==="end"?Ge-ii+Gt+jt:ne==="nearest"?kt(Zn,ii,$t,pi,Gt+jt,Ge,Ge+ut,ut):Ge-(Zn+$t/2)+jt/2,Mt=he==="start"?tn-mt-ri:he==="center"?tn-(mt+cn/2)+at/2:he==="end"?tn-hn+Mn+at:kt(mt,hn,cn,ri,Mn+at,tn,tn+Ke,Ke);const{scrollLeft:ot,scrollTop:De}=Dt;zt=dt===0?0:Math.max(0,Math.min(De+zt/dt,Dt.scrollHeight-$t/dt+jt)),Mt=Et===0?0:Math.max(0,Math.min(ot+Mt/Et,Dt.scrollWidth-cn/Et+at)),Ge+=De-zt,tn+=ot-Mt}Wn.push({el:Dt,top:zt,left:Mt})}return Wn},Fe=Ct=>Ct===!1?{block:"end",inline:"nearest"}:(nt=>nt===Object(nt)&&Object.keys(nt).length!==0)(Ct)?Ct:{block:"start",inline:"nearest"};function Ft(Ct,nt){if(!Ct.isConnected||!(xt=>{let Te=xt;for(;Te&&Te.parentNode;){if(Te.parentNode===document)return!0;Te=Te.parentNode instanceof ShadowRoot?Te.parentNode.host:Te.parentNode}return!1})(Ct))return;const gt=(xt=>{const Te=window.getComputedStyle(xt);return{top:parseFloat(Te.scrollMarginTop)||0,right:parseFloat(Te.scrollMarginRight)||0,bottom:parseFloat(Te.scrollMarginBottom)||0,left:parseFloat(Te.scrollMarginLeft)||0}})(Ct);if((xt=>typeof xt=="object"&&typeof xt.behavior=="function")(nt))return nt.behavior(pt(Ct,nt));const wt=typeof nt=="boolean"||nt==null?void 0:nt.behavior;for(const{el:xt,top:Te,left:te}of pt(Ct,Fe(nt))){const ne=Te-gt.top+gt.bottom,he=te-gt.left+gt.right;xt.scroll({top:ne,left:he,behavior:wt})}}}}]);
|